未绑定:手机刷卡-绑定,设备刷卡-收到卡号,二次刷卡操作设备
This commit is contained in:
parent
b9f55dbacb
commit
446070712a
|
|
@ -128,7 +128,7 @@ export function bindNfcCard(data) {
|
||||||
/**
|
/**
|
||||||
* 手机端读取卡号后上报
|
* 手机端读取卡号后上报
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
* @param {string} data.cardId - 卡片唯一标识
|
* @param {string} data.nfcMac - 卡片唯一标识
|
||||||
* @returns {Promise}
|
* @returns {Promise}
|
||||||
*/
|
*/
|
||||||
export function swipeNfcCard(params) {
|
export function swipeNfcCard(params) {
|
||||||
|
|
|
||||||
|
|
@ -745,11 +745,11 @@ export default {
|
||||||
cardNo = cardNo.replace(/[\s:]/g, "").toUpperCase();
|
cardNo = cardNo.replace(/[\s:]/g, "").toUpperCase();
|
||||||
this.cardNo = cardNo;
|
this.cardNo = cardNo;
|
||||||
this.lastMessage = "已通过 NFC 读取卡号";
|
this.lastMessage = "已通过 NFC 读取卡号";
|
||||||
uni.showToast({
|
// uni.showToast({
|
||||||
title: "读取成功",
|
// title: "读取成功",
|
||||||
icon: "success",
|
// icon: "success",
|
||||||
duration: 1500,
|
// duration: 1500,
|
||||||
});
|
// });
|
||||||
console.log("NFC 读取到的卡号:", cardNo);
|
console.log("NFC 读取到的卡号:", cardNo);
|
||||||
this.reportSwipeCard(cardNo);
|
this.reportSwipeCard(cardNo);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -810,7 +810,7 @@ export default {
|
||||||
mask: true,
|
mask: true,
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
const res = await swipeNfcCard({ cardId: cardNo });
|
const res = await swipeNfcCard({ nfcMac: cardNo });
|
||||||
if (res && res.code === 200) {
|
if (res && res.code === 200) {
|
||||||
const message = (res && res.msg) || "";
|
const message = (res && res.msg) || "";
|
||||||
const displayMessage = message || "读取成功";
|
const displayMessage = message || "读取成功";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user