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;