解决【营销计划-C端】key码只绑定一个商品,在商品详情页暂停兑换码,点击立即兑换页面跳转错误
This commit is contained in:
parent
2b1847fb1e
commit
7f7d7dbe66
|
@ -292,10 +292,13 @@
|
||||||
window.location.replace('./homepage.html');
|
window.location.replace('./homepage.html');
|
||||||
}, 3000);
|
}, 3000);
|
||||||
} else {
|
} else {
|
||||||
let backUrl = window.history.length;
|
// let backUrl = window.history.length;
|
||||||
if (backUrl) {
|
// if (backUrl) {
|
||||||
history.go(-backUrl + 1);
|
// history.go(-backUrl + 1);
|
||||||
}
|
// }
|
||||||
|
/*跳转起始页面*/
|
||||||
|
let entryLink=sessionStorage.getItem('entryLink');
|
||||||
|
window.location.replace(entryLink);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,7 +150,9 @@
|
||||||
sessionStorage.setItem('token', res.data.token);
|
sessionStorage.setItem('token', res.data.token);
|
||||||
sessionStorage.setItem('haskey', keyCode);
|
sessionStorage.setItem('haskey', keyCode);
|
||||||
this.openDialog('正在加载商品...');
|
this.openDialog('正在加载商品...');
|
||||||
|
sessionStorage.setItem('entryLink',window.location.href);//存储起始页链接
|
||||||
window.location.replace("/homepage.html");
|
window.location.replace("/homepage.html");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
self.openErrorDialog(res.message);
|
self.openErrorDialog(res.message);
|
||||||
}
|
}
|
||||||
|
@ -233,6 +235,7 @@
|
||||||
sessionStorage.setItem('key', self.key);
|
sessionStorage.setItem('key', self.key);
|
||||||
sessionStorage.setItem('token', res.data.token);
|
sessionStorage.setItem('token', res.data.token);
|
||||||
this.openDialog('正在加载商品...');
|
this.openDialog('正在加载商品...');
|
||||||
|
sessionStorage.setItem('entryLink',window.location.href);//存储起始页链接
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.location.href = './homepage.html';
|
window.location.href = './homepage.html';
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
@ -278,6 +281,7 @@
|
||||||
if (istoGoods) {
|
if (istoGoods) {
|
||||||
sessionStorage.setItem('getTokenList', JSON.stringify(getTokenList));
|
sessionStorage.setItem('getTokenList', JSON.stringify(getTokenList));
|
||||||
this.openDialog('正在加载商品...');
|
this.openDialog('正在加载商品...');
|
||||||
|
sessionStorage.setItem('entryLink',window.location.href);//存储起始页链接
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.location.href = './homepage.html';
|
window.location.href = './homepage.html';
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
|
Loading…
Reference in New Issue