diff --git a/front/templates/success.html b/front/templates/success.html index e273fb8..16acc2d 100644 --- a/front/templates/success.html +++ b/front/templates/success.html @@ -111,11 +111,11 @@ } 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')[0].innerHTML = '取消支付'; + 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 || '支付失败'; } }); }