From cafc346dadbc12a91efc3623e309f8ef90195387 Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Sat, 22 Jan 2022 16:17:05 +0800 Subject: [PATCH] =?UTF-8?q?=20=E6=B4=BB=E5=8A=A8=E6=9A=82=E5=81=9C?= =?UTF-8?q?=EF=BC=8C=E7=A6=81=E6=AD=A2=E8=BF=9B=E5=85=A5=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index a1560b3..e37c2d6 100644 --- a/index.html +++ b/index.html @@ -285,6 +285,7 @@ sessionStorage.setItem('showType', 1); sessionStorage.setItem('white_link',window.location.href); let tokenArr = res.data.data; + let istoGoods=true; for(item of tokenArr){ let obj={} let data = { @@ -298,6 +299,7 @@ self.maskshow = true; self.tiptext = res.message; self.popboxshow = true; + istoGoods=false; } }).catch(err => { self.maskshow = true; @@ -305,12 +307,15 @@ self.popboxshow = true; }); }; + if(istoGoods){ sessionStorage.setItem('getTokenList',JSON.stringify(getTokenList)); - this.promttip = '正在加载商品...'; - this.openDialog(); - setTimeout(() => { - window.location.href = './homepage.html'; - }, 2000); + this.promttip = '正在加载商品...'; + this.openDialog(); + setTimeout(() => { + window.location.href = './homepage.html'; + }, 2000); + + } } else { self.maskshow = true; self.tiptext = res.data.message;