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;