| | |
| | | <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?"记录接口日志":"不记录接口日志"}} |
| | | <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> |
| | |
| | | } |
| | | }, |
| | | 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) |
| | | 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({ |
| | |
| | | url: "/pages/my/log" |
| | | }) |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | translate(t) { |
| | | if (typeof this.$t == "function") return this.$t(`page.${t}`) |
| | | else return t; |
| | | }, |
| | | } |
| | | } |
| | | </script> |