|
|
@ -910,7 +910,7 @@ Page({ |
|
|
|
if (data.length > 0) { |
|
|
|
let passwordIndex = JSON.parse(data[0].content).index || '' |
|
|
|
var dataPasswod = { |
|
|
|
code: "lwj/passwordOperate", |
|
|
|
code: "lwj/cardOperate", |
|
|
|
data: { |
|
|
|
lockerId: deviceinfo.deviceNum, |
|
|
|
lockerUserId: personInfo.userId, |
|
|
@ -1525,7 +1525,7 @@ Page({ |
|
|
|
wx.showLoading({ |
|
|
|
title: '删除房卡中', |
|
|
|
}) |
|
|
|
var bytes = plugin.delRfCard(lockDevice.name, basecode, rfCardId, rfCardIndex) |
|
|
|
var bytes = plugin.delRfCard(lockDevice.name, basecode, 0, rfCardIndex) |
|
|
|
console.debug('bytes', bytes) |
|
|
|
that.sendBytes(bytes) |
|
|
|
}, |
|
|
@ -2933,6 +2933,7 @@ Page({ |
|
|
|
ids: [passwordLiAll.id] |
|
|
|
} |
|
|
|
WXAPI.deleteCertificates(data).then(res1 => { |
|
|
|
console.log(res1, '2936'); |
|
|
|
if (res1.success) { |
|
|
|
that.getNfc() |
|
|
|
wx.showToast({ |
|
|
@ -3764,7 +3765,8 @@ Page({ |
|
|
|
}) |
|
|
|
var startTime = new Date(Number(moment(that.data.starttime).format('x'))) |
|
|
|
var endTime = new Date(Number(moment(that.data.endtime).format('x'))) |
|
|
|
var bytes = plugin.addRfCard(lockDevice.name, basecode, rfCardId, rfCardIndex, startTime, endTime) |
|
|
|
console.log("锁", lockDevice.name, basecode, 0, rfCardIndex, startTime, endTime); |
|
|
|
var bytes = plugin.addRfCard(lockDevice.name, basecode, 0, rfCardIndex, startTime, endTime) |
|
|
|
console.debug('bytes', bytes) |
|
|
|
that.sendBytes(bytes) |
|
|
|
}, |
|
|
@ -3902,6 +3904,7 @@ Page({ |
|
|
|
cardName: cardName, |
|
|
|
} |
|
|
|
} |
|
|
|
console.log("平台", dataPasswod); |
|
|
|
WXAPI.sendCommand(dataPasswod).then(res => { |
|
|
|
console.log(res, '获取索引') |
|
|
|
if (res.success) { |
|
|
|