From 4c955e345b7728ec382b2e5a17f3024e9fd4e347 Mon Sep 17 00:00:00 2001 From: wolter Date: Tue, 10 Dec 2024 09:09:58 +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, 4 insertions(+) diff --git a/front/templates/success.html b/front/templates/success.html index e1a50a6..e273fb8 100644 --- a/front/templates/success.html +++ b/front/templates/success.html @@ -108,6 +108,10 @@ 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')[0].innerHTML = '取消支付'; } else { document.getElementsByClassName('error')[0].style.display = 'block'; document.getElementsByClassName('success')[0].style.display = 'none';