活动暂停,禁止进入商品列表页

This commit is contained in:
red-deng-deng 2022-01-22 16:17:05 +08:00
parent ea8b62aa10
commit cafc346dad
1 changed files with 10 additions and 5 deletions

View File

@ -285,6 +285,7 @@
sessionStorage.setItem('showType', 1); sessionStorage.setItem('showType', 1);
sessionStorage.setItem('white_link',window.location.href); sessionStorage.setItem('white_link',window.location.href);
let tokenArr = res.data.data; let tokenArr = res.data.data;
let istoGoods=true;
for(item of tokenArr){ for(item of tokenArr){
let obj={} let obj={}
let data = { let data = {
@ -298,6 +299,7 @@
self.maskshow = true; self.maskshow = true;
self.tiptext = res.message; self.tiptext = res.message;
self.popboxshow = true; self.popboxshow = true;
istoGoods=false;
} }
}).catch(err => { }).catch(err => {
self.maskshow = true; self.maskshow = true;
@ -305,12 +307,15 @@
self.popboxshow = true; self.popboxshow = true;
}); });
}; };
if(istoGoods){
sessionStorage.setItem('getTokenList',JSON.stringify(getTokenList)); sessionStorage.setItem('getTokenList',JSON.stringify(getTokenList));
this.promttip = '正在加载商品...'; this.promttip = '正在加载商品...';
this.openDialog(); this.openDialog();
setTimeout(() => { setTimeout(() => {
window.location.href = './homepage.html'; window.location.href = './homepage.html';
}, 2000); }, 2000);
}
} else { } else {
self.maskshow = true; self.maskshow = true;
self.tiptext = res.data.message; self.tiptext = res.data.message;