fix: 增加包码,链接模式
This commit is contained in:
parent
60bf3ad202
commit
a00c6744bd
23
index.html
23
index.html
|
@ -164,17 +164,22 @@
|
|||
localStorage.setItem('token', res.data.token);
|
||||
localStorage.setItem('haskey', keyCode);
|
||||
|
||||
// 判断是否是包码逻辑
|
||||
this.openDialog('正在加载商品...');
|
||||
localStorage.setItem('entryLink', window.location.href);//存储起始页链接
|
||||
let clr = setTimeout(() => {
|
||||
if (this.pageType === 4 || this.pageType === 8) {
|
||||
window.location.replace('/coupon/couponCollection.html');
|
||||
} else {
|
||||
window.location.replace('/homepage.html');
|
||||
}
|
||||
clearTimeout(clr);
|
||||
}, 1000);
|
||||
|
||||
/** TODO: 判断是否是包码逻辑 **/
|
||||
if (res.data.settlement_data && res.data.settlement_data.settlement_type > 0) {
|
||||
self.goToPackKey({ token: res.data.token, settlement_data: res.data.settlement_data });
|
||||
} else {
|
||||
let clr = setTimeout(() => {
|
||||
if (this.pageType === 4 || this.pageType === 8) {
|
||||
window.location.replace('/coupon/couponCollection.html');
|
||||
} else {
|
||||
window.location.replace('/homepage.html');
|
||||
}
|
||||
clearTimeout(clr);
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
} else {
|
||||
self.openErrorDialog(res.message);
|
||||
|
|
Loading…
Reference in New Issue