diff --git a/pages/memorial/nfcPairing.vue b/pages/memorial/nfcPairing.vue index f569152..8a888b5 100644 --- a/pages/memorial/nfcPairing.vue +++ b/pages/memorial/nfcPairing.vue @@ -98,12 +98,22 @@ - - - {{ binding ? "提交中..." : "提交绑定" }} + + + {{ binding ? "提交中..." : "提交绑定" }} + + + 设备操作 + @@ -642,6 +652,7 @@ export default { async handleBind() { if (!this.canSubmit || this.binding) return; this.binding = true; + uni.showLoading({ title: "提交中...", mask: true }); try { const payload = { @@ -846,7 +857,7 @@ export default { // duration: 1500, // }); console.log("NFC 读取到的卡号:", cardNo); - this.reportSwipeCard(cardNo); + // this.reportSwipeCard(cardNo); } else { console.warn("无法从 NFC 标签中提取卡号:", res); uni.showToast({ @@ -896,10 +907,9 @@ export default { }); }, async reportSwipeCard(cardNo) { - return; - // if (!cardNo || this.reportingSwipe) { - // return; - // } + if (!cardNo || this.reportingSwipe) { + return; + } this.reportingSwipe = true; uni.showLoading({ title: "处理中...", diff --git a/utils/request.js b/utils/request.js index bfe54bd..75e0f82 100644 --- a/utils/request.js +++ b/utils/request.js @@ -6,7 +6,7 @@ import debounce from "uview-ui/libs/function/debounce"; const ENV_CONFIG = { release: { // 正式版 - // baseUrl: "http://192.168.1.4:4501", + // baseUrl: "http://192.168.1.2:4501", baseUrl: "https://tech-ape.top/prod-api", // baseUrl: "https://tech-ape.top/prod-api", appId: 1,