diff --git a/pages/goods/order/index.vue b/pages/goods/order/index.vue index 7e9f918..9daf62a 100644 --- a/pages/goods/order/index.vue +++ b/pages/goods/order/index.vue @@ -1012,6 +1012,7 @@ }, }) .then(async (res) => { + this.buyingFlag = false console.log("res at line 598:", res); if (res.code == 0) { if (res.orderSn == null) { @@ -1041,8 +1042,7 @@ title: "加载中", }); console.log(res, "支付支付"); - if (res.success) { - this.buyingFlag = false + if (res.success) { uni.showToast({ title: "支付成功", }); @@ -1062,7 +1062,7 @@ }, 1000); } else { console.log("失败失败失败"); - this.buyingFlag = false + // this.buyingFlag = false // that.$commonJS.showToast('支付是失败') setTimeout(() => { console.log("延迟调用 失败提示"); @@ -1091,7 +1091,7 @@ }; setWXPay(data1, (res) => { if (res.success) { - this.buyingFlag = false + // this.buyingFlag = false uni.showToast({ title: "支付成功", }); @@ -1111,7 +1111,7 @@ } }, 1000); } else { - this.buyingFlag = false + // this.buyingFlag = false console.log(res, "微信支付111111111111111"); if (res.data.errMsg.indexOf("User canceled") != -1) { uni.showToast({ @@ -1129,7 +1129,7 @@ } }); } else if (this.payType == 4) { - this.buyingFlag = false + // this.buyingFlag = false // 天医币支付 uni.showToast({ title: "购买成功", @@ -1149,6 +1149,8 @@ } } } + }).catch(e => { + this.buyingFlag = false }); },