|
|
@@ -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`; |
|
|
|