From 446070712afcedc5b1b773f75c2d3bd6dd6a14bb Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Thu, 20 Nov 2025 17:20:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E7=BB=91=E5=AE=9A=EF=BC=9A=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E5=88=B7=E5=8D=A1-=E7=BB=91=E5=AE=9A=EF=BC=8C?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=88=B7=E5=8D=A1-=E6=94=B6=E5=88=B0?= =?UTF-8?q?=E5=8D=A1=E5=8F=B7=EF=BC=8C=E4=BA=8C=E6=AC=A1=E5=88=B7=E5=8D=A1?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/memorial/index.js | 2 +- pages/memorial/nfcPairing.vue | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) 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 || "读取成功";