|
@ -234,6 +234,7 @@ Page({ |
|
|
} |
|
|
} |
|
|
let superAdminId = superAdmin.join('').slice(superAdmin.length - 8, superAdmin.length) |
|
|
let superAdminId = superAdmin.join('').slice(superAdmin.length - 8, superAdmin.length) |
|
|
basecode = superAdminId |
|
|
basecode = superAdminId |
|
|
|
|
|
console.log(superAdminId, basecode); |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
deviceInfo: res.data.list[0], |
|
|
deviceInfo: res.data.list[0], |
|
|
lock: lock, |
|
|
lock: lock, |
|
@ -1764,16 +1765,17 @@ Page({ |
|
|
deviceimei = this.data.deviceNum.slice(this.data.deviceNum.length - 15, this.data.deviceNum.length) |
|
|
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) { |
|
|
|
|
|
superAdmin.push(superAdminIdlist[i]) |
|
|
|
|
|
} else { |
|
|
|
|
|
let adminid = superAdminIdlist.charCodeAt(i) |
|
|
|
|
|
superAdmin.push(adminid) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
superAdminId = superAdmin.join('').slice(superAdmin.length - 8, superAdmin.length) |
|
|
|
|
|
console.log(lockMac, superAdminIdlist, superAdminId); |
|
|
|
|
|
|
|
|
// for (let i = 0; i < superAdminIdlist.length; i++) {
|
|
|
|
|
|
// if (superAdminIdlist[i] >= 0 && superAdminIdlist[i] <= 9) {
|
|
|
|
|
|
// superAdmin.push(superAdminIdlist[i])
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
// let adminid = superAdminIdlist.charCodeAt(i)
|
|
|
|
|
|
// superAdmin.push(adminid)
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// superAdminId = superAdmin.join('').slice(superAdmin.length - 8, superAdmin.length)
|
|
|
|
|
|
// console.log(lockMac, superAdminIdlist, superAdminId);
|
|
|
|
|
|
console.log("123123123123", basecode); |
|
|
let data = { |
|
|
let data = { |
|
|
code: 'lwj/registerDevice', |
|
|
code: 'lwj/registerDevice', |
|
|
data: { |
|
|
data: { |
|
@ -1792,7 +1794,7 @@ Page({ |
|
|
code: 'lwj/registerSupperAdmin', |
|
|
code: 'lwj/registerSupperAdmin', |
|
|
data: { |
|
|
data: { |
|
|
lockerId: that.data.deviceNum, |
|
|
lockerId: that.data.deviceNum, |
|
|
lockerSuperAdminId: superAdminId, |
|
|
|
|
|
|
|
|
lockerSuperAdminId: basecode, |
|
|
bluetoothMac: lockMac |
|
|
bluetoothMac: lockMac |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|