Compare commits

...

2 Commits

Author SHA1 Message Date
wolter 49ce121677 feat: 微信取消支付 2024-12-10 09:23:34 +08:00
wolter 4c955e345b feat: 微信取消支付 2024-12-10 09:09:58 +08:00
1 changed files with 5 additions and 1 deletions

View File

@ -108,10 +108,14 @@
document.getElementsByClassName('success')[0].style.display = 'block';
document.getElementsByClassName('error')[0].style.display = 'none';
window.location.href = {{.returnUrl}}; // 跳转
} else if (res.err_msg == "get_brand_wcpay_request:cancel") {
document.getElementsByClassName('error')[0].style.display = 'block';
document.getElementsByClassName('success')[0].style.display = 'none';
document.getElementsByClassName('error-txt')[0].innerHTML = '取消支付';
} else {
document.getElementsByClassName('error')[0].style.display = 'block';
document.getElementsByClassName('success')[0].style.display = 'none';
document.getElementsByClassName('error')[0].innerHTML = res.err_msg || '支付失败';
document.getElementsByClassName('error-txt')[0].innerHTML = res.err_msg || '支付失败';
}
});
}