后端返回了两个key批次,只要有一个批次可兑,进入并兑换

This commit is contained in:
red-deng-deng 2022-01-25 11:49:39 +08:00
parent 8d4bc47f2e
commit acc98c0025
1 changed files with 10 additions and 7 deletions

View File

@ -13,7 +13,6 @@
<link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/loading.css">
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/api1_1_0.js"></script>
<link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/homepage1_1_0.css">
</head>
<style scoped>
@ -292,7 +291,7 @@
sessionStorage.setItem('showType', 1);
sessionStorage.setItem('white_link', window.location.href);
let tokenArr = res.data.data;
let istoGoods = true;
let istoGoods = false;
for (item of tokenArr) {
let obj = {}
let data = {
@ -302,11 +301,12 @@
let wait = await req.axiosPostKey('/key/loginFromMobileKey', data).then(res => {
if (res.code == 200) {
getTokenList.push(res.data.token);
istoGoods = true;
} else {
self.maskshow = true;
self.tiptext = res.message;
self.popboxshow = true;
istoGoods = false;
if(res.message=='活动暂停中'){
self.tiptext = res.message;
istoGoods = false;
}
}
}).catch(err => {
self.maskshow = true;
@ -321,7 +321,10 @@
setTimeout(() => {
window.location.href = './homepage.html';
}, 2000);
}else{
self.maskshow = true;
self.tiptext = self.tiptext;
self.popboxshow = true;
}
} else {
self.maskshow = true;