fix: 增加包码,链接模式

This commit is contained in:
zhangds 2024-02-25 14:37:56 +08:00
parent 60bf3ad202
commit a00c6744bd
1 changed files with 14 additions and 9 deletions

View File

@ -164,9 +164,13 @@
localStorage.setItem('token', res.data.token);
localStorage.setItem('haskey', keyCode);
// 判断是否是包码逻辑
this.openDialog('正在加载商品...');
localStorage.setItem('entryLink', window.location.href);//存储起始页链接
/** 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');
@ -175,6 +179,7 @@
}
clearTimeout(clr);
}, 1000);
}
} else {
self.openErrorDialog(res.message);