From 76c9ca5099fa9b7ba2bdee291a12749795f87186 Mon Sep 17 00:00:00 2001 From: JianWeie Date: Wed, 15 Sep 2021 00:30:32 +0800 Subject: [PATCH] =?UTF-8?q?5=E3=80=81=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=94=AF=E4=BB=98=E6=88=90=E5=8A=9F=E5=90=8E?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=80=BC=E4=B8=8E=E9=A1=B5=E9=9D=A2=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E5=80=BC=E5=AD=98=E5=9C=A8=E5=B7=AE=E5=BC=82=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82=20#I48LS5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CoreShop/pages/payment/result/result.vue | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/payment/result/result.vue b/CoreCms.Net.Uni-App/CoreShop/pages/payment/result/result.vue index 431a396..21b0bc8 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages/payment/result/result.vue +++ b/CoreCms.Net.Uni-App/CoreShop/pages/payment/result/result.vue @@ -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 {