From 49ce121677b71a0f52937cd1624196cbe53744d9 Mon Sep 17 00:00:00 2001 From: wolter Date: Tue, 10 Dec 2024 09:23:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BE=AE=E4=BF=A1=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/templates/success.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 || '支付失败'; } }); }