650/670增加关闭探测功能,删除一些跟供应商调试的页面

This commit is contained in:
liub
2025-09-23 08:36:21 +08:00
parent 1cd9853f2f
commit 50373f407d
21 changed files with 125 additions and 15890 deletions

View File

@ -17,6 +17,9 @@
<view class="deviceId">
设备Mac:{{device.macAddress}}
</view>
<view class="deviceId">
设备IMEI:{{device.imei}}
</view>
<view class="bound" v-bind:class="boundStatu">
{{Statu.boundRemark}}
</view>
@ -63,7 +66,8 @@
],
"linkStatu": false,
"macAddress": "",
"communicationMode":""
"communicationMode":"",
"imei":""
},
serverDevice:null
}
@ -118,7 +122,7 @@
console.log("收到设备消息,", receive);
if (these.device.deviceId == receive.deviceId) {
console.log("11111:",receive);
these.device.imei=f.imei;
if (receive.bytes[0] == 0xFC || receive.str.indexOf('mac address:') == 0) {
if (f && f.macAddress) {
these.device.macAddress = f.macAddress;
@ -153,11 +157,14 @@
}
})
// let inteval = setInterval(this.initDevice, 5000);
let inteval = setInterval(this.initDevice, 5000);
},
methods: {
initDevice: function() {
if(!these.device.macAddress){
return;
}
clearTimeout(this.Statu.timeInteval);
this.Statu.timeInteval = setTimeout(() => {
@ -251,7 +258,7 @@
data: {
deviceImei: '',
deviceMac: these.device.macAddress,
communicationMode: '1', //0是4g,1是蓝牙
communicationMode: 1, //0是4g,1是蓝牙,2蓝牙&4G
}
});
promise.then((res) => {