Browse Source

Merge branch 'feat' into develop

feat
JinxChen 1 year ago
parent
commit
bf86b2e603
3 changed files with 17 additions and 11 deletions
  1. +3
    -2
      README.md
  2. +11
    -6
      src/views/package-home/index.vue
  3. +3
    -3
      src/views/package-list/index.vue

+ 3
- 2
README.md View File

@@ -1,7 +1,7 @@
<!--
* @Date: 2022-08-17 16:19:13
* @LastEditors: JinxChen
* @LastEditTime: 2023-02-28 14:55:00
* @LastEditTime: 2023-03-01 17:52:40
* @FilePath: \TelpoH5FrontendWeb\README.md
* @description: 项目说明
-->
@@ -239,4 +239,5 @@ update
## v1.0.27
`2023.3.1`
feature
- 增加 已购买未激活容错页面
- 增加 已购买未激活容错页面
- 修复 已购买未激活未跳转容错页面的问题

+ 11
- 6
src/views/package-home/index.vue View File

@@ -1,7 +1,7 @@
<!--
* @Date: 2023-02-24 14:18:25
* @LastEditors: JinxChen
* @LastEditTime: 2023-03-01 17:08:02
* @LastEditTime: 2023-03-01 17:50:46
* @FilePath: \TelpoH5FrontendWeb\src\views\package-home\index.vue
* @description:
-->
@@ -31,7 +31,7 @@ export default {
this.checkImei();
},
mounted() {
this.checkBrowser();
//this.checkBrowser();
},
methods: {
checkImei() {
@@ -45,7 +45,8 @@ export default {
if(data) {
this.isRecharge = data.isRecharge;
console.log("是否已经支付", this.isRecharge);
}
};
this.checkBrowser();
}).catch(e => {
console.log("e", e.message);
})
@@ -114,9 +115,13 @@ export default {
let commonUrl = process.env.VUE_APP_BASE_API;
if(this.isRecharge) {
// 如果是已经支付,但未激活,跳转激活界面
let redUrl = encodeURIComponent(`${commonUrl}/h5-frontendweb/#/cardActive?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;
this.$router.replace({
name: 'cardActive',
query: {
imei: params.imei,
iccid: params.iccid
}
})
} else {
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`;


+ 3
- 3
src/views/package-list/index.vue View File

@@ -1,7 +1,7 @@
<!--
* @Date: 2022-03-29 16:57:58
* @LastEditors: JinxChen
* @LastEditTime: 2023-03-01 16:59:47
* @LastEditTime: 2023-03-01 17:51:58
* @FilePath: \TelpoH5FrontendWeb\src\views\package-list\index.vue
* @description: TODO 小台风充值h5
-->
@@ -315,9 +315,9 @@ export default {
packageIssue: 12, //分期
packagePrice: process.env.NODE_ENV === "production" ? data.packagePrice * 100 : 1 //总金额单位为分,测试环境写死
};
this.$toast.clear();
APICore.payLiveBaseDevice(reqBody)
.then(res => {
this.$toast.clear();
if (res.data.code === 104 || res.data.code === 106) {
this.getAuth();
setTimeout(() => {
@@ -354,7 +354,7 @@ export default {
paySign: wxData.paySign, // 支付签名
success: function(res) {
// 支付成功后的回调函数
that.$router.push({
that.$router.replace({
name: "payResult",
query: {
outTradeNo: that.outTradeNo,


Loading…
Cancel
Save