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