fix: 修复白名单

This commit is contained in:
zhangds 2024-02-28 16:11:48 +08:00
parent 80279f902a
commit 4488da1536
2 changed files with 14 additions and 8 deletions

View File

@ -364,6 +364,13 @@
localStorage.setItem('getTokenList', JSON.stringify(getTokenList));
this.openDialog('正在加载商品...');
localStorage.setItem('entryLink', window.location.href);//存储起始页链接
/** TODO: 判断是否是包码逻辑 **/
if (res.data.settlement_data && res.data.settlement_data.settlement_type > 0) {
setTimeout(() => {
self.goToPackKey({ token: res.data.token, settlement_data: res.data.settlement_data });
}, 1000);
} else {
setTimeout(() => {
if (this.pageType === 4 || this.pageType === 8) {
window.location.href = './coupon/couponCollection.html';
@ -371,7 +378,7 @@
window.location.href = './homepage.html';
}
}, 1000);
}
} else {
self.openErrorDialog(self.tiptext);
}

View File

@ -342,7 +342,6 @@
};
self.popboxshow = false;
req.axiosPost('/key/usage', data).then(res => {
debugger
// 使用结算 6
// 卡密做特殊处理,复制才会触发
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 6 && self.goodInfo.product_type !== 2) {