feat(商品页):跳转立减金领取金链接增加版本标识
This commit is contained in:
parent
e2e255b5e9
commit
561f3bdd1d
|
@ -328,7 +328,7 @@
|
||||||
sessionStorage.setItem('goodsInfo', JSON.stringify(goodsArr[0]));
|
sessionStorage.setItem('goodsInfo', JSON.stringify(goodsArr[0]));
|
||||||
sessionStorage.setItem('key', goodsArr[0].key);
|
sessionStorage.setItem('key', goodsArr[0].key);
|
||||||
sessionStorage.setItem('token', goodsArr[0].token);
|
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;
|
return false;
|
||||||
} else if (goodsArr && goodsArr.length >= 1) {
|
} else if (goodsArr && goodsArr.length >= 1) {
|
||||||
self.goodsNum = true;
|
self.goodsNum = true;
|
||||||
|
@ -362,7 +362,7 @@
|
||||||
self.goodsShow = res.data.length > 1;
|
self.goodsShow = res.data.length > 1;
|
||||||
if (res.data && res.data.length == 1){//单个商品直接进入详情页面
|
if (res.data && res.data.length == 1){//单个商品直接进入详情页面
|
||||||
sessionStorage.setItem('goodsInfo', JSON.stringify(res.data[0]));
|
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;
|
return false;
|
||||||
} else if (res.data && res.data.length >= 1) {
|
} else if (res.data && res.data.length >= 1) {
|
||||||
self.goodsNum = true;
|
self.goodsNum = true;
|
||||||
|
@ -420,7 +420,7 @@
|
||||||
}
|
}
|
||||||
sessionStorage.setItem('goodsInfo', JSON.stringify(row));
|
sessionStorage.setItem('goodsInfo', JSON.stringify(row));
|
||||||
//type :1 兑换码 2:立减金
|
//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 {
|
} else {
|
||||||
this.maskshow = true;
|
this.maskshow = true;
|
||||||
this.popboxshow = true;
|
this.popboxshow = true;
|
||||||
|
|
Loading…
Reference in New Issue