diff --git a/api/memorial/index.js b/api/memorial/index.js index 256abd2..200b830 100644 --- a/api/memorial/index.js +++ b/api/memorial/index.js @@ -128,7 +128,7 @@ export function bindNfcCard(data) { /** * 手机端读取卡号后上报 * @param {Object} data - * @param {string} data.cardId - 卡片唯一标识 + * @param {string} data.nfcMac - 卡片唯一标识 * @returns {Promise} */ export function swipeNfcCard(params) { diff --git a/pages/memorial/nfcPairing.vue b/pages/memorial/nfcPairing.vue index 6862599..3507c31 100644 --- a/pages/memorial/nfcPairing.vue +++ b/pages/memorial/nfcPairing.vue @@ -745,11 +745,11 @@ export default { cardNo = cardNo.replace(/[\s:]/g, "").toUpperCase(); this.cardNo = cardNo; this.lastMessage = "已通过 NFC 读取卡号"; - uni.showToast({ - title: "读取成功", - icon: "success", - duration: 1500, - }); + // uni.showToast({ + // title: "读取成功", + // icon: "success", + // duration: 1500, + // }); console.log("NFC 读取到的卡号:", cardNo); this.reportSwipeCard(cardNo); } else { @@ -810,7 +810,7 @@ export default { mask: true, }); try { - const res = await swipeNfcCard({ cardId: cardNo }); + const res = await swipeNfcCard({ nfcMac: cardNo }); if (res && res.code === 200) { const message = (res && res.msg) || ""; const displayMessage = message || "读取成功";