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() {