From c56f7fb553dac3f2687d50d0df9a0698f0318b86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BD=AA?= Date: Wed, 30 Apr 2025 14:24:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=A8=E5=93=B2=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/cleanPlan.vue | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/pages/index/cleanPlan.vue b/pages/index/cleanPlan.vue index 852d9b0..22930f5 100644 --- a/pages/index/cleanPlan.vue +++ b/pages/index/cleanPlan.vue @@ -195,6 +195,12 @@ export default { } const res = await GetAwaitUploadAreaApi(req) console.log(res, 'res---') + uni.showModal({ + title: "开发调试查看", + content: JSON.stringify(res) || "未传入参数 initFn", + showCancel: true, + success: function (res) {}, + }); // 刷卡失败 if (!res.succeed) { console.log('%c%s', 'color:red', '刷卡失败') @@ -205,22 +211,11 @@ export default { this.successShow = false return } + // 刷卡成功 this.successShow = true // 同时关闭失败弹窗 this.errorShow = false - return - if (data) { - console.log('%c%s', 'color:red', 'nfc刷卡成功') - this.successShow = true - // 同时关闭失败弹窗 - this.errorShow = false - } else { - console.log('%c%s', 'color:red', '刷卡失败') - this.errorShow = true - // 同时关闭成功弹窗 - this.successShow = false - } }, // 上传图片 toUploadPage() {