还原登录问题,h5支付宝支付无法支付原因。

This commit is contained in:
Chopper
2021-06-16 16:44:30 +08:00
parent c65df5c741
commit c6dd5eac67
2 changed files with 20 additions and 34 deletions

View File

@@ -148,7 +148,7 @@
awaitPay(payment){
this.$u.debounce(this.pay(payment), 3000)
this.pay(payment)
},
@@ -225,16 +225,17 @@
await API_Trade.initiatePay(paymentMethod, paymentClient, params).then(
(res) => {
let response = res.data;
//如果支付异常
if (!response.success) {
uni.showModal({
content: response.message,
showCancel: false,
})
return;
//如果非支付宝支付才需要进行判定因为支付宝h5支付是直接输出的没有返回所谓的消息状态
if(paymentMethod !== "ALIPAY"){
//如果支付异常
if (!response.success) {
uni.showModal({
content: response.message,
showCancel: false,
})
return;
}
}
if (paymentMethod === "ALIPAY") {
document.write(response);
} else if (paymentMethod === "WECHAT") {