feat(商品页):跳转立减金领取金链接增加版本标识

This commit is contained in:
Apple 2022-10-12 09:49:55 +08:00
parent e2e255b5e9
commit 561f3bdd1d
1 changed files with 3 additions and 3 deletions

View File

@ -328,7 +328,7 @@
sessionStorage.setItem('goodsInfo', JSON.stringify(goodsArr[0]));
sessionStorage.setItem('key', goodsArr[0].key);
sessionStorage.setItem('token', goodsArr[0].token);
window.location.replace(goodsArr[0].type == 1 ? "./exchange.html" : "./reduce.html");
window.location.replace(goodsArr[0].type == 1 ? "./exchange.html" : "./reduce.html?v=1");
return false;
} else if (goodsArr && goodsArr.length >= 1) {
self.goodsNum = true;
@ -362,7 +362,7 @@
self.goodsShow = res.data.length > 1;
if (res.data && res.data.length == 1){//单个商品直接进入详情页面
sessionStorage.setItem('goodsInfo', JSON.stringify(res.data[0]));
window.location.replace(res.data[0].type == 1 ? "./exchange.html" : "./reduce.html");
window.location.replace(res.data[0].type == 1 ? "./exchange.html" : "./reduce.html?v=1");
return false;
} else if (res.data && res.data.length >= 1) {
self.goodsNum = true;
@ -420,7 +420,7 @@
}
sessionStorage.setItem('goodsInfo', JSON.stringify(row));
//type :1 兑换码 2:立减金
window.location.replace(row.type == 1 ? "./exchange.html" : "./reduce.html");
window.location.replace(row.type == 1 ? "./exchange.html" : "./reduce.html?v=1");
} else {
this.maskshow = true;
this.popboxshow = true;