fix(落地页):修改落地页类型跳转

This commit is contained in:
Apple 2022-10-25 17:14:34 +08:00
parent 7945cc82f8
commit ff429da996
1 changed files with 7 additions and 3 deletions

View File

@ -313,8 +313,12 @@
this.openDialog('正在加载商品...'); this.openDialog('正在加载商品...');
localStorage.setItem('entryLink', window.location.href);//存储起始页链接 localStorage.setItem('entryLink', window.location.href);//存储起始页链接
setTimeout(() => { setTimeout(() => {
window.location.href = '../homepage.html'; if (this.pageType === 4 || this.pageType === 8) {
}, 1000); window.location.href = './coupon/couponCollection.html';
} else {
window.location.href = './homepage.html';
}
}, 1000);
} else { } else {
self.openErrorDialog(self.tiptext); self.openErrorDialog(self.tiptext);
} }
@ -349,7 +353,7 @@
}, },
watch: { watch: {
key (val) { key (val) {
this.disabled = Boolean(!(this.pageType == 1 && val.length == 11)); this.disabled = Boolean(!([1,8].includes(this.pageType)&& val.length == 11));
} }
} }
}); });