From 35774d28ea0b9645e474e013a560d6674587c6f4 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Thu, 2 Mar 2023 00:38:37 +0800 Subject: [PATCH] =?UTF-8?q?feature=20-=20=E4=BF=AE=E6=94=B9=20=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=94=AF=E4=BB=98=E9=80=BB=E8=BE=91=EF=BC=8C=E7=94=B1?= =?UTF-8?q?=E6=9C=AA=E6=BF=80=E6=B4=BB=E5=85=85=E5=80=BC=E8=B4=AD=E4=B9=B0?= =?UTF-8?q?=E5=8F=98=E6=88=90=E5=B7=B2=E6=BF=80=E6=B4=BB=E5=85=85=E5=80=BC?= =?UTF-8?q?=E8=B4=AD=E4=B9=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +++-- src/views/package-home/index.vue | 17 ++++++++++------- src/views/package-list/index.vue | 12 ++++++------ src/views/pay-result/index.vue | 10 +++++----- 4 files changed, 24 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 852c9da..f26bab9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ @@ -241,4 +241,5 @@ update feature - 增加 已购买未激活容错页面 - 修复 已购买未激活未跳转容错页面的问题 -- 修改 激活界面文字提示 \ No newline at end of file +- 修改 激活界面文字提示 +- 修改 页面支付逻辑,由未激活充值购买变成已激活充值购买 \ No newline at end of file diff --git a/src/views/package-home/index.vue b/src/views/package-home/index.vue index 814af95..e6b81c8 100644 --- a/src/views/package-home/index.vue +++ b/src/views/package-home/index.vue @@ -1,7 +1,7 @@ @@ -28,10 +28,10 @@ export default { this.getToken(); this.getAuth(); this.getParams(); - this.checkImei(); + //this.checkImei(); }, mounted() { - //this.checkBrowser(); + this.checkBrowser(); }, methods: { checkImei() { @@ -46,7 +46,6 @@ export default { this.isRecharge = data.isRecharge; console.log("是否已经支付", this.isRecharge); }; - this.checkBrowser(); }).catch(e => { console.log("e", e.message); }) @@ -76,7 +75,7 @@ export default { this.getWxCode(); } } else { - /* this.getWxCode(); */ + //this.getWxCode(); console.log("当前浏览器内核并非支付宝或者微信"); } }, @@ -113,7 +112,11 @@ export default { getWxCode() { let params = this.params; let commonUrl = process.env.VUE_APP_BASE_API; - if(this.isRecharge) { + let redUrl = encodeURIComponent(`${commonUrl}/h5-frontendweb/#/${params.routerName}?imei=${params.imei}&appId=${params.appId}&iccid=${params.iccid}`); + let url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${params.appId}&redirect_uri=${redUrl}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`; + window.location.href = url; + // todo 暂时去掉 + /* if(this.isRecharge) { // 如果是已经支付,但未激活,跳转激活界面 this.$router.replace({ name: 'cardActive', @@ -126,7 +129,7 @@ export default { let redUrl = encodeURIComponent(`${commonUrl}/h5-frontendweb/#/${params.routerName}?imei=${params.imei}&appId=${params.appId}&iccid=${params.iccid}`); let url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${params.appId}&redirect_uri=${redUrl}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`; window.location.href = url; - } + } */ }, // 获取url传过来的参数 diff --git a/src/views/package-list/index.vue b/src/views/package-list/index.vue index 01f8d19..397b3b5 100644 --- a/src/views/package-list/index.vue +++ b/src/views/package-list/index.vue @@ -1,7 +1,7 @@ @@ -45,7 +45,7 @@

- 低至 + ¥{{(item.packagePrice/(item.packageIssue === 0 ? 1: item.packageIssue)).toFixed(0)}}元/月,

@@ -59,7 +59,7 @@

-

可切换支付方式:

+

支付方式:

@@ -81,7 +81,7 @@ @@ -106,11 +106,11 @@ export default { name: "packageList", data() { return { - topupTitle: "请选择套餐充值激活电话卡", //充值页面标题 + topupTitle: "请选择套餐充值电话卡", //充值页面标题 // 套餐列表, todo 需要从接口获取 packageOrderList: [ { - packageName: '移动语音卡套餐(1年)', + packageName: '语音卡套餐(1年)', packagePayType: 1, packagePrice: 240, packageIssue: 12, diff --git a/src/views/pay-result/index.vue b/src/views/pay-result/index.vue index 4102d52..1d506e0 100644 --- a/src/views/pay-result/index.vue +++ b/src/views/pay-result/index.vue @@ -1,7 +1,7 @@ @@ -42,11 +42,11 @@ -
+ +
+

第二步:去使用功能