更新 front/templates/payPage.html
This commit is contained in:
parent
c65d00689f
commit
d39d581a80
|
@ -345,7 +345,7 @@
|
|||
|
||||
// 页面加载时执行
|
||||
window.onload = function() {
|
||||
alert(`auto-redirect:${!localStorage.getItem('auto-redirect')}`);
|
||||
alert(localStorage.getItem('auto-redirect'));
|
||||
if (localStorage.getItem('auto-redirect') == 2) {
|
||||
alert('支付回调且不是自动跳转');
|
||||
handlePaymentCallback(); // 如果是支付回调且不是自动跳转,处理支付结果
|
||||
|
@ -356,10 +356,6 @@
|
|||
}
|
||||
};
|
||||
|
||||
window.onunload = function() {
|
||||
localStorage.removeItem('auto-redirect'); // 离开页面时清除自动跳转标记
|
||||
};
|
||||
|
||||
</script>
|
||||
|
||||
{{ else}}
|
||||
|
|
Loading…
Reference in New Issue