fix:修复兑换码无商品时 关闭天窗没跳转bug

This commit is contained in:
wangsongsole 2022-10-17 11:17:06 +08:00
parent 8f5b7b6520
commit 2a5f4c237a
1 changed files with 6 additions and 0 deletions

View File

@ -457,6 +457,12 @@
if (this.gstatus == 8) { if (this.gstatus == 8) {
window.history.go(0); window.history.go(0);
} }
if (this.tiptext === '暂无可兑换码商品') {
setTimeout(() => {
window.location.href = "../index.html?id=" + localStorage.getItem('linkId');
}, 1000);
}
}, },
//刷新页面 //刷新页面
successchangeBtnFn () { successchangeBtnFn () {