This commit is contained in:
aihe 2024-08-05 22:51:32 +08:00
parent 26b0a8dc9a
commit b18b7d3ef7
4 changed files with 10 additions and 10 deletions

View File

@ -84,12 +84,11 @@
// #endif
},
queryCode: function(code) {
let { hongWaiSwitch } = getSessionSystemInfo()
// 红外开启,才可使用该功能
if(!hongWaiSwitch) {
return false;
}
// let { hongWaiSwitch } = getSessionSystemInfo()
// // 红外开启,才可使用该功能
// if(!hongWaiSwitch) {
// return false;
// }
let that = this;
// #ifdef APP
console.log('queryCode');

View File

@ -3,7 +3,7 @@
"appid" : "__UNI__BCB0FB5",
"description" : "探路国际速运",
"versionName" : "1.0.1",
"versionCode" : "1029",
"versionCode" : "1030",
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {

View File

@ -101,7 +101,7 @@
</u-row>
</u-row>
<u-line></u-line>
<u-row custom-style="padding: 30rpx;" justify="between">
<!-- <u-row custom-style="padding: 30rpx;" justify="between">
<u-row>
<u-image :src="getCdnUrl(`mine/sao.png`)" height="34" width="34"></u-image>
<u-text margin="0 0 0 30rpx" text="红线扫描模式" size="28" color="#333"></u-text>
@ -109,7 +109,7 @@
<u-row>
<u-switch v-model="hongWaiSwitch" @change="handleHongWaiChange" active-color="#B12D29" size="34"></u-switch>
</u-row>
</u-row>
</u-row> -->
<u-line></u-line>
<u-row @click="goto(`user/updatePassword`)" custom-style="padding: 30rpx;" justify="between">
<u-row>

View File

@ -36,11 +36,12 @@ export const getSessionLoginInfo = ()=> {
}
export const setSessionSystemInfo = (val = {})=> {
let oldVal = getSessionSystemInfo()
// {
// hongWaiSwitch: false, // 红外扫描
// lastActiveTime: 时间戳, // 上次活跃时间戳
// }
uni.setStorageSync(SYSTEM_INFO_KEY, val)
uni.setStorageSync(SYSTEM_INFO_KEY, { ...oldVal, ...val})
}
export const getSessionSystemInfo = ()=> {