This commit is contained in:
aihe 2024-07-06 14:29:57 +08:00
parent 2934cec3e0
commit fb7b14cb24

View File

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