From 5272ade9833422ba1dc8ad6f55b7f83f49684499 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Sat, 15 Apr 2023 13:56:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20checkimei=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=88=A4=E6=96=AD=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/package-home/index.vue | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/views/package-home/index.vue b/src/views/package-home/index.vue index 70d7c7b..77af019 100644 --- a/src/views/package-home/index.vue +++ b/src/views/package-home/index.vue @@ -1,7 +1,7 @@ @@ -29,7 +29,6 @@ export default { /* this.getToken(); */ this.getAuth(); this.getParams(); - this.checkImei(); }, methods: { checkImei() { @@ -38,10 +37,9 @@ export default { iccid: this.params.iccid || '' }; APIWx.CheckImei(reqBody).then(res =>{ - let data = res.data; - if(data) { - this.isRecharge = data.isRecharge; - }; + console.log("res", res.data.isRecharge); + this.isRecharge = res.data.isRecharge; + this.getWxCode(); }).catch(e => { console.log("e", e.message); }) @@ -135,11 +133,9 @@ export default { this.$store.commit("appId", AppId); if(params.reqUrl) { const reqUrl = encodeURI(params.reqUrl); - console.log("reqUrl", params.reqUrl, reqUrl); window.location.href = reqUrl; } else { - console.log("不存在redUrl"); - this.checkBrowser(); + this.checkImei(); } console.log("this.params", this.params); }