feat: 微信取消支付

This commit is contained in:
wolter 2024-12-10 09:23:34 +08:00
parent 4c955e345b
commit 49ce121677
1 changed files with 2 additions and 2 deletions

View File

@ -111,11 +111,11 @@
} else if (res.err_msg == "get_brand_wcpay_request:cancel") { } else if (res.err_msg == "get_brand_wcpay_request:cancel") {
document.getElementsByClassName('error')[0].style.display = 'block'; document.getElementsByClassName('error')[0].style.display = 'block';
document.getElementsByClassName('success')[0].style.display = 'none'; document.getElementsByClassName('success')[0].style.display = 'none';
document.getElementsByClassName('error')[0].innerHTML = '取消支付'; document.getElementsByClassName('error-txt')[0].innerHTML = '取消支付';
} else { } else {
document.getElementsByClassName('error')[0].style.display = 'block'; document.getElementsByClassName('error')[0].style.display = 'block';
document.getElementsByClassName('success')[0].style.display = 'none'; document.getElementsByClassName('success')[0].style.display = 'none';
document.getElementsByClassName('error')[0].innerHTML = res.err_msg || '支付失败'; document.getElementsByClassName('error-txt')[0].innerHTML = res.err_msg || '支付失败';
} }
}); });
} }