|
|
@@ -28,10 +28,10 @@ export default { |
|
|
|
this.getToken(); |
|
|
|
this.getAuth(); |
|
|
|
this.getParams(); |
|
|
|
//this.checkImei(); |
|
|
|
this.checkImei(); |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.checkBrowser(); |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
checkImei() { |
|
|
@@ -46,6 +46,7 @@ export default { |
|
|
|
this.isRecharge = data.isRecharge; |
|
|
|
console.log("是否已经支付", this.isRecharge); |
|
|
|
}; |
|
|
|
this.checkBrowser(); |
|
|
|
}).catch(e => { |
|
|
|
console.log("e", e.message); |
|
|
|
}) |
|
|
@@ -112,11 +113,11 @@ export default { |
|
|
|
getWxCode() { |
|
|
|
let params = this.params; |
|
|
|
let commonUrl = process.env.VUE_APP_BASE_API; |
|
|
|
let redUrl = encodeURIComponent(`${commonUrl}/h5-frontendweb/#/${params.routerName}?imei=${params.imei}&appId=${params.appId}&iccid=${params.iccid}`); |
|
|
|
/* 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; |
|
|
|
window.location.href = url; */ |
|
|
|
// todo 暂时去掉 |
|
|
|
/* if(this.isRecharge) { |
|
|
|
if(this.isRecharge) { |
|
|
|
// 如果是已经支付,但未激活,跳转激活界面 |
|
|
|
this.$router.replace({ |
|
|
|
name: 'cardActive', |
|
|
@@ -129,7 +130,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传过来的参数 |
|
|
|