From a70e0c7cbdcad3a2753312989b7b41e05a54af58 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Tue, 28 Feb 2023 18:37:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E5=A4=B1=E8=B4=A5=E6=96=87=E5=AD=97=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/package-list/index.vue | 8 ++++++-- src/views/pay-result/index.vue | 9 +++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/views/package-list/index.vue b/src/views/package-list/index.vue index 1f9e75d..fb54a34 100644 --- a/src/views/package-list/index.vue +++ b/src/views/package-list/index.vue @@ -1,7 +1,7 @@ @@ -361,7 +361,7 @@ export default { // 需要区分是要用微信支付还是支付宝花呗支付 if (this.payType === '2') { this.payProductId = process.env.NODE_ENV === "production" ? '1629407413618294784' : '1629405716684029952', //支付宝全额支付 - this.packageIssue = 1; + this.packageIssue = 0; this.aliPay(data); } else if (this.payType === '3') { this.payProductId = process.env.NODE_ENV === "production" ? '1629407705558630400': '1629405558344859648', //支付宝花呗支付 @@ -412,6 +412,10 @@ export default { setTimeout(() => { this.wxPay(orderData); }, 1000); + } else if (res.data.code === 104) { + this.$dialog.confirm({ + message: `${res.data.message}` + }) } let that = this; let wxData = res.data.data; diff --git a/src/views/pay-result/index.vue b/src/views/pay-result/index.vue index 1775f60..ba147bd 100644 --- a/src/views/pay-result/index.vue +++ b/src/views/pay-result/index.vue @@ -1,7 +1,7 @@ @@ -25,7 +25,8 @@

订单状态

-

{{isPayStatus ? '支付成功' : '查询失败'}}

+

支付成功

+

查询失败

订单尾号

@@ -355,6 +356,10 @@ export default { .left-text { color: gray; } + .error { + color: red; + font-size: 24px; + } } .price { padding: 20px 0;