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 } },