From 6ed492b4ebc335605c2c4c7e95ef919bf338a4b2 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Thu, 6 Apr 2023 14:23:49 +0800 Subject: [PATCH] =?UTF-8?q?update=20-=20packageList=20=20=20=20=20-=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E8=B4=AD=E4=B9=B0=E5=A5=97=E9=A4=90?= =?UTF-8?q?=E6=97=B6=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=B8=8D=E4=B8=80=E8=87=B4=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E8=B4=AD=E4=B9=B0=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20=20=20=20=20-=20=E6=B3=A8=E9=87=8A=20=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1jssdk=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 ++++--- src/views/package-list/index.vue | 15 +++++---------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 316cfa1..23e77b2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ @@ -337,6 +337,7 @@ update - 修改 正式环境的appid - packageList - 修改 正式环境 代理商用户的userId - + - 修复 购买套餐时接口返回数据类型不一致导致购买异常的问题 + - 注释 获取微信jssdk接口 - packageHome - - 修改 appId获取的方式,本地配置文件固定配置,不再从url路由获取 \ No newline at end of file + - 修改 appId获取的方式,本地配置文件固定配置,不再从url路由获取 diff --git a/src/views/package-list/index.vue b/src/views/package-list/index.vue index 1f85082..ffc9cf0 100644 --- a/src/views/package-list/index.vue +++ b/src/views/package-list/index.vue @@ -1,7 +1,7 @@ @@ -144,15 +144,10 @@ export default { created() { this.getAuth(); this.getParams(); - this.getWxAutograph(); + //this.getWxAutograph(); // 套餐列表 this.getDevicePayPackage(); }, - /* mounted() { - this.getParams(); - this.getWxAutograph(); - this.getLiveBasePackage(); - }, */ methods: { // 根据code获取openId getOpenId() { @@ -284,7 +279,7 @@ export default { if (this.payType === '2') { // 全额 this.payProductId = payTypeToPackAgeId.filter(item => { - return item.payType === '2' + return item.payType === '2' || item.payType === 2 })[0].productId; this.packageIssue = 0; console.log("this.payProductId", this.payProductId); @@ -292,7 +287,7 @@ export default { } else if (this.payType === '3') { // 分期 this.payProductId = payTypeToPackAgeId.filter(item => { - return item.payType === '3' + return item.payType === '3' || item.payType === 3 })[0].productId; this.packageIssue = 12; this.payType = '2'; @@ -302,7 +297,7 @@ export default { // 微信 let openId = this.$store.getters.openId; this.payProductId = payTypeToPackAgeId.filter(item => { - return item.payType === '1' + return item.payType === '1' || item.payType === 1 })[0].productId; this.packageIssue = 0; console.log("this.payProductId3", this.payProductId);