后端返回了两个key批次,只要有一个批次可兑,进入并兑换
This commit is contained in:
parent
8d4bc47f2e
commit
acc98c0025
17
index.html
17
index.html
|
@ -13,7 +13,6 @@
|
||||||
<link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/loading.css">
|
<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>
|
<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">
|
<link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/homepage1_1_0.css">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
@ -292,7 +291,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;
|
let istoGoods = false;
|
||||||
for (item of tokenArr) {
|
for (item of tokenArr) {
|
||||||
let obj = {}
|
let obj = {}
|
||||||
let data = {
|
let data = {
|
||||||
|
@ -302,11 +301,12 @@
|
||||||
let wait = await req.axiosPostKey('/key/loginFromMobileKey', data).then(res => {
|
let wait = await req.axiosPostKey('/key/loginFromMobileKey', data).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
getTokenList.push(res.data.token);
|
getTokenList.push(res.data.token);
|
||||||
|
istoGoods = true;
|
||||||
} else {
|
} else {
|
||||||
self.maskshow = true;
|
if(res.message=='活动暂停中'){
|
||||||
self.tiptext = res.message;
|
self.tiptext = res.message;
|
||||||
self.popboxshow = true;
|
istoGoods = false;
|
||||||
istoGoods = false;
|
}
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
self.maskshow = true;
|
self.maskshow = true;
|
||||||
|
@ -321,7 +321,10 @@
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.location.href = './homepage.html';
|
window.location.href = './homepage.html';
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
}else{
|
||||||
|
self.maskshow = true;
|
||||||
|
self.tiptext = self.tiptext;
|
||||||
|
self.popboxshow = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
self.maskshow = true;
|
self.maskshow = true;
|
||||||
|
|
Loading…
Reference in New Issue