From 2af5f043b60c1f7ac38ecccc8f5bf44743134325 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 12 十二月 2025 18:08:00 +0800
Subject: [PATCH] test

---
 pages/task/index.vue |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/pages/task/index.vue b/pages/task/index.vue
index 00fa805..4d96bf7 100644
--- a/pages/task/index.vue
+++ b/pages/task/index.vue
@@ -3,15 +3,15 @@
 		<view class="header">
 			<view class="item">
 				<view class="title">{{accumulated_duration}}<text class="text">min</text></view>
-				<view class="text">绱鏃堕暱</view>
+				<view class="text">{{translate("cumulative_duration")}}</view>
 			</view>
 			<view class="item">
 				<view class="title">{{accumulated_mileage}}<text class="text">m</text></view>
-				<view class="text">绱閲岀▼</view>
+				<view class="text">{{translate("accumulated_mileage")}}</view>
 			</view>
 			<view class="item">
 				<view class="title">{{cumulative_number}}</view>
-				<view class="text">绱娆℃暟</view>
+				<view class="text">{{translate("cumulative_count")}}</view>
 			</view>
 		</view>
 		<view class="list">
@@ -96,7 +96,11 @@
 				uni.navigateTo({
 					url: "/pages/task/map-task"
 				})
-			}
+			},
+			translate(t) {
+				if (typeof this.$t == "function") return this.$t(`page.${t}`)
+				else return t;
+			},
 
 		}
 	}

--
Gitblit v1.9.1