Bladeren bron

update

- packageHome
    - 增加 进入首页判断是否存在redUrl的逻辑
feat
JinxChen 1 jaar geleden
bovenliggende
commit
b68ccefb59
3 gewijzigde bestanden met toevoegingen van 17 en 9 verwijderingen
  1. +6
    -0
      README.md
  2. +1
    -1
      src/config/models.js
  3. +10
    -8
      src/views/package-home/index.vue

+ 6
- 0
README.md Bestand weergeven

@@ -322,3 +322,9 @@ update
- packageList
- 修改 微信支付方式


## v1.0.38
`2023.4.3`
update
- packageHome
- 增加 进入首页判断是否存在redUrl的逻辑

+ 1
- 1
src/config/models.js Bestand weergeven

@@ -5,7 +5,7 @@
* @FilePath: \TelpoH5FrontendWeb\src\config\models.js
* @description:
*/
export const VERSION_MODEL = '1.0.37F'; //版本号
export const VERSION_MODEL = '1.0.38F'; //版本号
export const IMAGE_URL = {
production: 'http://zfb.ssjlai.com/web/',
test: 'http://zfb.ssjlai.com/web/',


+ 10
- 8
src/views/package-home/index.vue Bestand weergeven

@@ -1,7 +1,7 @@
<!--
* @Date: 2023-02-24 14:18:25
* @LastEditors: JinxChen
* @LastEditTime: 2023-03-02 01:30:58
* @LastEditTime: 2023-04-03 11:02:11
* @FilePath: \TelpoH5FrontendWeb\src\views\package-home\index.vue
* @description:
-->
@@ -27,11 +27,8 @@ export default {
created() {
this.getToken();
this.getAuth();
this.getParams();
this.checkImei();
},
mounted() {

this.getParams();
},
methods: {
checkImei() {
@@ -40,13 +37,10 @@ export default {
iccid: this.params.imei || ''
};
APIWx.CheckImei(reqBody).then(res =>{
console.log("checkImei", res);
let data = res.data;
if(data) {
this.isRecharge = data.isRecharge;
console.log("是否已经支付", this.isRecharge);
};
this.checkBrowser();
}).catch(e => {
console.log("e", e.message);
})
@@ -141,6 +135,14 @@ export default {
console.log("params", params);
this.params = {...params};
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);
}
},


Laden…
Annuleren
Opslaan