From 98a2c368e9412473b2b2f82a23aecdaf40f05802 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Tue, 28 Feb 2023 16:44:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/package-list/index.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/package-list/index.vue b/src/views/package-list/index.vue index 22a0e31..1f9e75d 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 = 0; + this.packageIssue = 1; this.aliPay(data); } else if (this.payType === '3') { this.payProductId = process.env.NODE_ENV === "production" ? '1629407705558630400': '1629405558344859648', //支付宝花呗支付 @@ -370,6 +370,7 @@ export default { this.aliPay(data); } else { let openId = this.$store.getters.openId; + this.payProductId = process.env.NODE_ENV === "production" ? '1629407705558630400': '1629405558344859648'; //支付宝花呗支付 if(openId === null || openId === 'null') { this.$dialog.confirm({ message: '获取OpenId失败,请您重新进入', @@ -398,9 +399,9 @@ export default { openId: this.$store.getters.openId, //openId imei: this.params.imei, //imei productId: this.payProductId, //套餐id - packageName: /* data.productModel */ + ',' + data.packageName, //套餐名字 + packageName: /* data.productModel */ data.packageName, //套餐名字 packagePayType: Number(this.payType), //支付类型 - packageIssue: this.packageIssue, //分期 + packageIssue: 1, //分期 packagePrice: process.env.NODE_ENV === "production" ? data.packagePrice * 100 : 1 //总金额单位为分,测试环境写死 }; APICore.payLiveBaseDevice(reqBody) @@ -508,7 +509,7 @@ export default { that.outTradeNo = alipayData.outTradeNo; let alipayForm = decodeURI(alipayData.payXmlStr); that.$store.commit("isFromWx", true); - let alipayUserId = process.env.NODE_ENV === "production" ? 42 : 18 + let alipayUserId = process.env.NODE_ENV === "production" ? 42 : 18; this.$router.replace({ name: "payResult", query: {