Browse Source

1110

master
xiaohei 1 year ago
parent
commit
c569d54aae
1 changed files with 20 additions and 20 deletions
  1. +20
    -20
      pages/Bluetooth/Bluetooth.js

+ 20
- 20
pages/Bluetooth/Bluetooth.js View File

@ -3079,26 +3079,26 @@ Page({
isBindLock: data.data.isBind
})
if (data.data.isBind) {
var dataStr = {
code: "lwj/registerSupperAdmin",
data: {
lockerId: that.data.deviceNum,
lockerSuperAdminId: basecode,
bluetoothMac: lockMac,
}
}
WXAPI.sendCommand(dataStr).then((res2) => {
})
wx.showToast({
title: '绑定成功!',
})
} else {
wx.showToast({
title: '绑定失败!',
})
}
// if (data.data.isBind) {
// var dataStr = {
// code: "lwj/registerSupperAdmin",
// data: {
// lockerId: that.data.deviceNum,
// lockerSuperAdminId: basecode,
// bluetoothMac: lockMac,
// }
// }
// WXAPI.sendCommand(dataStr).then((res2) => {
// })
// wx.showToast({
// title: '绑定成功!',
// })
// } else {
// wx.showToast({
// title: '绑定失败!',
// })
// }
break
}
case 'sendUnbindLock': {


Loading…
Cancel
Save