From 2f9ec7786ea46ba1287c4d012f3a32d567b4966c Mon Sep 17 00:00:00 2001 From: xiaohei <11674173+xiaohei102908@user.noreply.gitee.com> Date: Fri, 10 Nov 2023 18:11:10 +0800 Subject: [PATCH] 1110 --- pages/Bluetooth/Bluetooth.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/Bluetooth/Bluetooth.js b/pages/Bluetooth/Bluetooth.js index e09dd78..0355b19 100644 --- a/pages/Bluetooth/Bluetooth.js +++ b/pages/Bluetooth/Bluetooth.js @@ -1755,10 +1755,14 @@ Page({ var superAdmin = [] var superAdminId var deviceimei - if (this.data.deviceNum.length <= 15) { - deviceimei = this.data.deviceNum - } else { - deviceimei = this.data.deviceNum.slice(this.data.deviceNum.length - 15, this.data.deviceNum.length) + if(this.data.selectRadio1 == 1201){ + deviceimei = this.data.lock.imei + }else if(this.data.selectRadio1 == 1241) { + if (this.data.deviceNum.length <= 15) { + deviceimei = this.data.deviceNum + } else { + deviceimei = this.data.deviceNum.slice(this.data.deviceNum.length - 15, this.data.deviceNum.length) + } } for (let i = 0; i < superAdminIdlist.length; i++) { if (superAdminIdlist[i] >= 0 && superAdminIdlist[i] <= 9) {