5、【修复】订单支付成功后返回值与页面判断值存在差异问题。 #I48LS5

pull/131/head
JianWeie 3 years ago
parent 6c44a5c6ad
commit 76c9ca5099

@ -69,22 +69,14 @@
this.$u.api.paymentInfo(data).then(res => {
if (res.status) {
let info = res.data;
if (info.payment_code === 'alipay') {
info.payment_name = '支付宝支付';
} else if (info.payment_code === 'wechatpay') {
info.payment_name = '微信支付';
} else if (info.payment_code === 'balancepay') {
info.payment_name = '余额支付';
}
//
if (info.rel.length) {
for (let i = 0; i < info.rel.length; i++) {
if (info.rel[i].sourceId) {
this.orderId = info.rel[i].sourceId;
break;
}
}
if (info.paymentCode === 'alipay') {
info.paymentCodeName = '支付宝支付';
} else if (info.paymentCode === 'wechatpay') {
info.paymentCodeName = '微信支付';
} else if (info.paymentCode === 'balancepay') {
info.paymentCodeName = '余额支付';
}
this.orderId = info.sourceId;
this.status = true;
this.paymentInfo = info;
} else {

Loading…
Cancel
Save