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 | 37 +++++++++++++++++++++----------------
1 files changed, 21 insertions(+), 16 deletions(-)
diff --git a/pages/my/help-feedback.vue b/pages/my/help-feedback.vue
index cae0300..fce927f 100644
--- a/pages/my/help-feedback.vue
+++ b/pages/my/help-feedback.vue
@@ -2,30 +2,31 @@
<view class="pages-my">
<view class="group">
<view class="item line">
- <view>杩滅▼鍗忓姪锛�/view>
+ <view>{{translate('remote_assistance')}}</view>
<view class="right"></view>
<a @click="clickRemoteAssistance">
<uni-icons class="icon" type="right" size="24" color="#888"></uni-icons>
</a>
</view>
<view class="item line">
- <view>鏃ュ織涓婁紶锛�/view>
+ <view>{{translate('log_upload')}}</view>
<view class="right"></view>
<a @click="clickUploadLog">
<uni-icons class="icon" type="right" size="24" color="#888"></uni-icons>
</a>
</view>
- <view class="item line">
- <view>鏌ョ湅璇存槑涔︼細</view>
+ <!-- <view class="item line">
+ <view>{{translate('check_the_manual')}}</view>
<view class="right"></view>
<a @click="clickViewInstruction">
<uni-icons class="icon" type="right" size="24" color="#888"></uni-icons>
</a>
- </view>
+ </view> -->
<view class="item line">
- <view>鎺ュ彛鏃ュ織锛�/view>
+ <view>{{translate('interface_log')}}</view>
- <switch :checked="withLog" style="transform:scale(0.7)" @change="switchChangeLog"/>{{withLog?"璁板綍鎺ュ彛鏃ュ織":"涓嶈褰曟帴鍙f棩蹇�}}
+ <switch :checked="withLog" style="transform:scale(0.7)" @change="switchChangeLog" />
+ {{translate('record_interface_log')}}
<view class="right"></view>
<a @click="clickApiLog">
<uni-icons class="icon" type="right" size="24" color="#888"></uni-icons>
@@ -54,7 +55,9 @@
}
},
onLoad() {
-
+ uni.setNavigationBarTitle({
+ title:this.translate('help_and_feedback')
+ })
},
computed: {
@@ -62,15 +65,17 @@
methods: {
switchChangeLog(e) {
this.withLog = e.detail.value
- getApp().globalData.withLog =this.withLog
- session.setValue("write_log",this.withLog ? 1:0)
+ 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({
@@ -82,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