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

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('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;