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/help-feedback.vue |   54 +++++++++++++++++++++++++++++++++---------------------
 1 files changed, 33 insertions(+), 21 deletions(-)

diff --git a/pages/my/help-feedback.vue b/pages/my/help-feedback.vue
index ec3c404..fce927f 100644
--- a/pages/my/help-feedback.vue
+++ b/pages/my/help-feedback.vue
@@ -1,31 +1,34 @@
 <template>
 	<view class="pages-my">
 		<view class="group">
-			<view class="item line" @click="clickRemoteAssistance">
-				<view>杩滅▼鍗忓姪锛�/view>
+			<view class="item line">
+				<view>{{translate('remote_assistance')}}</view>
 				<view class="right"></view>
-				<a>
+				<a @click="clickRemoteAssistance">
 					<uni-icons class="icon" type="right" size="24" color="#888"></uni-icons>
 				</a>
 			</view>
-			<view class="item line" @click="clickUploadLog">
-				<view>鏃ュ織涓婁紶锛�/view>
+			<view class="item line">
+				<view>{{translate('log_upload')}}</view>
 				<view class="right"></view>
-				<a>
+				<a @click="clickUploadLog">
 					<uni-icons class="icon" type="right" size="24" color="#888"></uni-icons>
 				</a>
 			</view>
-			<view class="item line" @click="clickViewInstruction">
-				<view>鏌ョ湅璇存槑涔︼細</view>
+			<!-- <view class="item line">
+				<view>{{translate('check_the_manual')}}</view>
 				<view class="right"></view>
-				<a>
+				<a @click="clickViewInstruction">
 					<uni-icons class="icon" type="right" size="24" color="#888"></uni-icons>
 				</a>
-			</view>
-			<view class="item line" @click="clickApiLog">
-				<view>鎺ュ彛鏃ュ織锛�/view>
+			</view> -->
+			<view class="item line">
+				<view>{{translate('interface_log')}}</view>
+
+				<switch :checked="withLog" style="transform:scale(0.7)" @change="switchChangeLog" />
+				{{translate('record_interface_log')}}
 				<view class="right"></view>
-				<a>
+				<a @click="clickApiLog">
 					<uni-icons class="icon" type="right" size="24" color="#888"></uni-icons>
 				</a>
 			</view>
@@ -48,22 +51,31 @@
 		},
 		data() {
 			return {
-
+				withLog: getApp().globalData.withLog || false
 			}
 		},
 		onLoad() {
-
+			uni.setNavigationBarTitle({
+				title:this.translate('help_and_feedback')
+			})
 		},
 		computed: {
 
 		},
 		methods: {
+			switchChangeLog(e) {
+				this.withLog = e.detail.value
+				getApp().globalData.withLog = this.withLog
+				session.setValue("write_log", this.withLog ? 1 : 0)
+			},
 
 			clickRemoteAssistance() {
-				showToast("鏆傛湭瀹炵幇")
+				showToast(this.translate('unrealized'))
 			},
 			clickUploadLog() {
-				showToast("鏆傛湭瀹炵幇")
+				uni.navigateTo({
+					url: "/pages/my/log_upload"
+				})
 			},
 			clickViewInstruction() {
 				uni.navigateTo({
@@ -75,10 +87,10 @@
 					url: "/pages/my/log"
 				})
 			},
-
-
-
-
+			translate(t) {
+				if (typeof this.$t == "function") return this.$t(`page.${t}`)
+				else return t;
+			},
 		}
 	}
 </script>

--
Gitblit v1.9.1