diff --git a/miniprogram/miniprogram/pages/index/index.js b/miniprogram/miniprogram/pages/index/index.js
index 8a5b397..6374570 100644
--- a/miniprogram/miniprogram/pages/index/index.js
+++ b/miniprogram/miniprogram/pages/index/index.js
@@ -51,15 +51,15 @@ Page({
}
starEventOn('registerFingerprintConfirm', async (data) => {
if (data.code === 0) {
- this.fingerprintId = data.data.fingerprintId
- this.fingerprintNumber = data.data.fingerprintNumber
+ this.data.fingerprintId = data.data.fingerprintId
+ this.data.fingerprintNumber = data.data.fingerprintNumber
console.log('收到指纹确认事件', data, this.fingerprintId, this.fingerprintNumber);
}
});
starEventOn('registerCardConfirm', async (data) => {
if (data.code === 0) {
- this.cardId = data.data.cardId
- this.cardNumber = data.data.cardNumber
+ this.data.cardId = data.data.cardId
+ this.data.cardNumber = data.data.cardNumber
console.log('收到卡片确认事件', data, this.cardId, this.cardNumber);
}
});
@@ -237,11 +237,11 @@ Page({
console.log('registerExtendedProductsResult', registerExtendedProductsResult);
},
async findAllCard() {
- const result = await getIcCardList({lockId: this.lock.lockId})
+ const result = await getIcCardList({lockId: this.data.lock.lockId})
console.log('findAllCard', result)
},
async findAllFingerprint() {
- const result = await getFingerprintList({lockId: this.lock.lockId})
+ const result = await getFingerprintList({lockId: this.data.lock.lockId})
console.log('findAllFingerprint', result)
}
})
diff --git a/miniprogram/miniprogram/pages/index/index.wxml b/miniprogram/miniprogram/pages/index/index.wxml
index b9dfe30..d3cd56d 100644
--- a/miniprogram/miniprogram/pages/index/index.wxml
+++ b/miniprogram/miniprogram/pages/index/index.wxml
@@ -18,5 +18,5 @@
-
+