1
0
forked from dyf/APP

完成008A功能开发

This commit is contained in:
liub
2026-05-19 17:38:56 +08:00
parent 6d9df4c945
commit 8f53a45280
63 changed files with 4162 additions and 766 deletions

View File

@ -27,6 +27,12 @@
<text class="title">版本更新 ({{appVersion}})</text>
<uni-icons type="right" size="25" color="rgba(255, 255, 255, 0.4)" class="uniIcon"></uni-icons>
</view>
<view class="menu-item" @click="clearCatch">
<image src="/static/images/common/clear.png" class="icon"></image>
<text class="title">清理缓存</text>
<uni-icons type="right" size="25" color="rgba(255, 255, 255, 0.4)" class="uniIcon"></uni-icons>
</view>
<view class="menu-item" @click="sendCounsel">
<image src="/static/images/common/yijianfankui.png" class="icon"></image>
<text class="title">举报反馈</text>
@ -37,16 +43,11 @@
<text class="title">关于我们</text>
<uni-icons type="right" size="25" color="rgba(255, 255, 255, 0.4)" class="uniIcon"></uni-icons>
</view>
<!-- <view class="menu-item" @click="logOff">
<image src="/static/images/common/zhuxiao.png" class="icon"></image>
<text class="title">注销账号</text>
<uni-icons type="right" size="25" color="rgba(255, 255, 255, 0.4)" class="uniIcon"></uni-icons>
</view> -->
<view class="menu-item" @click="account">
<image src="/static/images/common/wm.png" class="icon"></image>
<text class="title">账号</text>
<uni-icons type="right" size="25" color="rgba(255, 255, 255, 0.4)" class="uniIcon"></uni-icons>
</view>
<view class="menu-item" @click="account">
<image src="/static/images/common/wm.png" class="icon"></image>
<text class="title">账号</text>
<uni-icons type="right" size="25" color="rgba(255, 255, 255, 0.4)" class="uniIcon"></uni-icons>
</view>
<view class="btn_footer">
<button class="logout" @click="logout">退出登录</button>
</view>
@ -69,6 +70,8 @@
</view>
</view>
</view>
<MsgBox ref="msgPop" />
</view>
</template>
@ -78,6 +81,15 @@
Logout
} from '@/api/common/login.js'
import bleTool from '@/utils/BleHelper.js';
import {
MsgSuccess,
MsgError,
MsgClose,
MsgWarning,
showPop,
MsgInfo,
MsgClear
} from '@/utils/MsgPops.js'
var ble=null;
export default {
data() {
@ -106,6 +118,32 @@
},
methods: {
clearCatch(){
MsgWarning("将清除以下缓存数据:设备配对、网络缓存、音频、视频,清除后下次使用将重新加载,您确认清除?",'确定',this,true,()=>{
let store = uni.getStorageInfoSync();
store.keys.forEach((val, index, array) => {
if (val == "linkedDevices") {
//设备配对只保留已连接的数据
if(ble){
let linked=ble.data.LinkedList.filter((v,i)=>{
return v.Linked;
});
ble.data.LinkedList=linked;
ble.updateCache();
}
} else if (val == "tokenTime" || val == "token" || val == "clientID" || val == 'phone') {
console.log("忽略登陆信息");
} else {
uni.removeStorageSync(val);
}
});
MsgSuccess("清理成功",'',this);
},true);
},
//版本更新
gotoAppStore(){
let os=uni.getSystemInfoSync().platform;
@ -196,6 +234,7 @@
url: '/pages/common/account/index'
})
}
},
}
</script>