|
|
@@ -184,7 +184,7 @@ export default { |
|
|
|
}, |
|
|
|
getWxCode() { |
|
|
|
let params = this.params; |
|
|
|
let commonUrl = process.env.VUE_APP_BASE_API; |
|
|
|
let commonUrl = process.env.NODE_ENV === "production" ? process.env.VUE_APP_BASE_API : 'https://id.gdssjl.com'; |
|
|
|
let redUrl = encodeURIComponent(`${commonUrl}/h5-frontendweb/#/cardInfo?imei=${params.imei}&iccid=${params.iccid}`); |
|
|
|
let url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${AppId}&redirect_uri=${redUrl}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`; |
|
|
|
window.location.href = url; |
|
|
|