From 175b7f70a54abd222412d67f82811b6d97027047 Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Wed, 28 Aug 2024 22:40:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E8=B0=83=E8=AF=95=E8=AF=AD?= =?UTF-8?q?=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bundle_b/pages/local_shop/local_pay.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bundle_b/pages/local_shop/local_pay.vue b/bundle_b/pages/local_shop/local_pay.vue index f5e1138..3214c37 100644 --- a/bundle_b/pages/local_shop/local_pay.vue +++ b/bundle_b/pages/local_shop/local_pay.vue @@ -113,7 +113,6 @@ }, onLoad(query) { - console.log('query=', query) if (query?.id) { this.lstore_id = query.id } else { @@ -151,7 +150,7 @@ id: this.goods_id, lstore_id: this.lstore_id }) - + if (code == 1) { this.goods = data this.money = data.price @@ -272,10 +271,15 @@ // 支付后处理 handPayResult(result) { this.payMoney = this.money - this.money = '' + if (result === 'success') { + this.money = '' this.successPopup = true } else if (result === 'fail') { + if (this.goods_id == 0) { + this.money = '' + } + this.cancelPopup = true } },