|
@@ -1,7 +1,7 @@ |
|
|
<!-- |
|
|
<!-- |
|
|
* @Date: 2023-02-24 14:18:25 |
|
|
* @Date: 2023-02-24 14:18:25 |
|
|
* @LastEditors: JinxChen |
|
|
* @LastEditors: JinxChen |
|
|
* @LastEditTime: 2023-03-02 01:30:58 |
|
|
|
|
|
|
|
|
* @LastEditTime: 2023-04-03 11:02:11 |
|
|
* @FilePath: \TelpoH5FrontendWeb\src\views\package-home\index.vue |
|
|
* @FilePath: \TelpoH5FrontendWeb\src\views\package-home\index.vue |
|
|
* @description: |
|
|
* @description: |
|
|
--> |
|
|
--> |
|
@@ -27,11 +27,8 @@ export default { |
|
|
created() { |
|
|
created() { |
|
|
this.getToken(); |
|
|
this.getToken(); |
|
|
this.getAuth(); |
|
|
this.getAuth(); |
|
|
this.getParams(); |
|
|
|
|
|
this.checkImei(); |
|
|
this.checkImei(); |
|
|
}, |
|
|
|
|
|
mounted() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.getParams(); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
checkImei() { |
|
|
checkImei() { |
|
@@ -40,13 +37,10 @@ export default { |
|
|
iccid: this.params.imei || '' |
|
|
iccid: this.params.imei || '' |
|
|
}; |
|
|
}; |
|
|
APIWx.CheckImei(reqBody).then(res =>{ |
|
|
APIWx.CheckImei(reqBody).then(res =>{ |
|
|
console.log("checkImei", res); |
|
|
|
|
|
let data = res.data; |
|
|
let data = res.data; |
|
|
if(data) { |
|
|
if(data) { |
|
|
this.isRecharge = data.isRecharge; |
|
|
this.isRecharge = data.isRecharge; |
|
|
console.log("是否已经支付", this.isRecharge); |
|
|
|
|
|
}; |
|
|
}; |
|
|
this.checkBrowser(); |
|
|
|
|
|
}).catch(e => { |
|
|
}).catch(e => { |
|
|
console.log("e", e.message); |
|
|
console.log("e", e.message); |
|
|
}) |
|
|
}) |
|
@@ -141,6 +135,14 @@ export default { |
|
|
console.log("params", params); |
|
|
console.log("params", params); |
|
|
this.params = {...params}; |
|
|
this.params = {...params}; |
|
|
this.$store.commit("appId", params.appId); |
|
|
this.$store.commit("appId", params.appId); |
|
|
|
|
|
if(params.redUrl) { |
|
|
|
|
|
const redUrl = encodeURI(params.redUrl); |
|
|
|
|
|
console.log("redUrl", params.redUrl, redUrl); |
|
|
|
|
|
window.location.href = redUrl; |
|
|
|
|
|
} else { |
|
|
|
|
|
console.log("不存在redUrl"); |
|
|
|
|
|
this.checkBrowser(); |
|
|
|
|
|
} |
|
|
console.log("this.params", this.params); |
|
|
console.log("this.params", this.params); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|