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