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/my/index.vue |   51 +++++++++++++++++++++++++++------------------------
 1 files changed, 27 insertions(+), 24 deletions(-)

diff --git a/pages/my/index.vue b/pages/my/index.vue
index d3cf4c8..a5825bb 100644
--- a/pages/my/index.vue
+++ b/pages/my/index.vue
@@ -1,17 +1,17 @@
 <template>
 	<view class="pages-my">
 		<view class="group">
-			<view class="item line"  @click="clickAppVersion">
-				<view>App鐗堟湰锛�/view>
+			<view class="item line" @click="clickAppVersion">
+				<view>{{translate('app_version')}}</view>
 				<view class="right">{{app_version}}</view>
 				<a>
 					<uni-icons class="icon" type="right" size="24" color="#888"></uni-icons>
 				</a>
 			</view>
 			<view class="item line" @click="clickLanguage">
-				<view>璇█鍒囨崲锛�/view>
+				<view>{{translate('language_switch')}}</view>
 				<view class="right">{{languageStr}}</view>
-				<a >
+				<a>
 					<uni-icons class="icon" type="right" size="24" color="#888"></uni-icons>
 				</a>
 			</view>
@@ -32,14 +32,14 @@
 			</view>
 		 -->
 			<view class="item line" @click="clickClearCache">
-				<view>娓呴櫎缂撳瓨锛�/view>
+				<view>{{translate('clear_cache')}}</view>
 				<view class="right">{{cacheSizeStr}}</view>
-				<a >
+				<a>
 					<uni-icons class="icon" type="right" size="24" color="#888"></uni-icons>
 				</a>
 			</view>
-			<view class="item line"  @click="clickHelp">
-				<view>甯姪涓庡弽棣堬細</view>
+			<view class="item line" @click="clickHelp">
+				<view>{{translate('help_and_feedback')}}</view>
 				<view class="right"></view>
 				<a>
 					<uni-icons class="icon" type="right" size="24" color="#888"></uni-icons>
@@ -57,7 +57,7 @@
 		<view class="button-group">
 			<!-- 	<button class="button" @click="clickModifyPassword">淇敼瀵嗙爜</button>
 			<button class="button" @click="clickChangeAccount">鍒囨崲璐﹀彿</button> -->
-			<a-button class="button" type="ghost" @click="clickExitAccount">閫�嚭鐧诲綍</a-button>
+			<a-button class="button" type="ghost" @click="clickExitAccount">{{translate('exit_login')}}</a-button>
 		</view>
 		<view>
 			<uni-popup ref="refPopupMenu" background-color="transparent" maskBackgroundColor="rgba(0, 0, 0, 0.2)">
@@ -100,7 +100,7 @@
 					name: "涓枃绠�綋"
 				}, {
 					value: "zh-Hant",
-					name: "涓枃绻佷綋"
+					name: " 涓枃绻侀珨"
 				}, {
 					value: "en",
 					name: "English"
@@ -109,7 +109,9 @@
 		},
 		onLoad() {
 			// this.loadData()
-
+			uni.setNavigationBarTitle({
+				title:this.translate('my')
+			})	
 		},
 		computed: {
 			cacheSizeStr() {
@@ -182,14 +184,9 @@
 						_this.setData({
 							cache_size: res.currentSize
 						})
-						console.log('褰撳墠缂撳瓨澶у皬锛�, res, 'KB');
 					},
-					fail: (err) => {
-						console.error('鑾峰彇缂撳瓨淇℃伅澶辫触锛�, err);
-					},
-					complete: () => {
-						console.log('缂撳瓨淇℃伅鑾峰彇瀹屾垚');
-					},
+					fail: (err) => {},
+					complete: () => {},
 				});
 			},
 			bindLanguageChange(e) {
@@ -203,7 +200,7 @@
 			},
 			clickAppVersion() {
 				uni.navigateTo({
-					url: "/pages/my/version-update"
+					url: "/pages/version/app-update"
 				})
 			},
 			clickPrivacyPolicy() {
@@ -214,7 +211,10 @@
 			},
 			clickLanguage() {
 
-				this.$refs.refPopupMenu.open("right")
+				uni.navigateTo({
+					url: "/pages/my/language"
+				})
+				//this.$refs.refPopupMenu.open("right")
 			},
 			clickClearCache() {
 				try {
@@ -223,7 +223,7 @@
 					uni.clearStorageSync();
 					session.setValue("vehicles", list)
 					session.setValue("login_info", info)
-					showToast("娓呴櫎缂撳瓨鎴愬姛锛�)
+					showToast(this.translate('clear_cache_success'))
 					this.loadCache()
 				} catch (e) {
 					// error
@@ -237,7 +237,7 @@
 			clickUserAgreement() {
 
 			},
-	
+
 			clickModifyPassword() {
 
 			},
@@ -246,10 +246,13 @@
 			},
 			clickExitAccount() {
 				uni.reLaunch({
-					url: "/pages/login/index"
+					url: "/pages/login/index?flag=1"
 				})
 			},
-
+			translate(t) {
+				if (typeof this.$t == "function") return this.$t(`page.${t}`)
+				else return t;
+			},
 		}
 	}
 </script>

--
Gitblit v1.9.1