This commit is contained in:
red-deng-deng 2022-01-22 15:20:34 +08:00
parent c22ec5c0f1
commit 9eb242a53d
2 changed files with 2 additions and 1 deletions

View File

@ -194,7 +194,7 @@
//刷新页面 //刷新页面
successchangeBtnFn() { successchangeBtnFn() {
console.log(window); console.log(window);
window.replace(document.referrer); window.location.replace(document.referrer);
}, },
//兑换商品 //兑换商品
exchangeGoodsFn() { exchangeGoodsFn() {

View File

@ -366,6 +366,7 @@
self.swiperDataList = res.data; self.swiperDataList = res.data;
self.goodsShow = res.data.length > 1; self.goodsShow = res.data.length > 1;
if (res.data && res.data.length == 1&&res.data[0].available==1) { if (res.data && res.data.length == 1&&res.data[0].available==1) {
console.log(123,res.data);
sessionStorage.setItem('goodsInfo', JSON.stringify(res.data[0])); sessionStorage.setItem('goodsInfo', JSON.stringify(res.data[0]));
window.location.href = "./exchange.html"; window.location.href = "./exchange.html";
return false; return false;