This commit is contained in:
@fawn-nine
2024-08-28 10:37:11 +08:00
parent 78a1c5ad98
commit 85c2782b8a

View File

@@ -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) {
@@ -1042,7 +1043,6 @@
});
console.log(res, "支付支付");
if (res.success) {
this.buyingFlag = false
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
});
},