From b806d0c7e044f44319a313419d40a9e33a79fbbf Mon Sep 17 00:00:00 2001 From: milky0217 Date: Sun, 7 Jun 2026 10:24:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E4=BB=98=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E9=A1=B5=E8=BD=AE=E8=AF=A2=E7=A1=AE=E8=AE=A4+=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E9=A1=B5onShow=E8=87=AA=E5=8A=A8=E5=90=8C=E6=AD=A5pen?= =?UTF-8?q?ding=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/handlers/payment.rs | 50 ++++++++++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 10 deletions(-) diff --git a/src/handlers/payment.rs b/src/handlers/payment.rs index b5778e1..351dcfb 100644 --- a/src/handlers/payment.rs +++ b/src/handlers/payment.rs @@ -865,6 +865,7 @@ pub struct AlipaySuccessQuery { fn build_success_html(order_no: &str) -> String { let green = "#52c41a"; let white = "white"; + let orange = "#fa8c16"; let html = format!( r##" @@ -876,26 +877,55 @@ fn build_success_html(order_no: &str) -> String { body {{ font-family: -apple-system, BlinkMacSystemFont, sans-serif; background: #f0f2f5; margin: 0; padding: 40px; text-align: center; }} .card {{ background: #fff; border-radius: 16px; padding: 48px 32px; max-width: 400px; margin: 0 auto; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }} .icon {{ width: 64px; height: 64px; margin-bottom: 16px; }} - h2 {{ color: {0}; font-size: 22px; margin-bottom: 8px; }} + h2 {{ font-size: 22px; margin-bottom: 8px; }} p {{ color: #666; font-size: 14px; margin-bottom: 24px; }} .tip {{ background: #f0f7ff; border-radius: 8px; padding: 16px; font-size: 13px; color: #1677ff; margin-top: 16px; }} .order-no {{ font-size: 12px; color: #bbb; margin-top: 12px; }} + .loader {{ display: inline-block; width: 32px; height: 32px; border: 3px solid #f0f0f0; border-top-color: {0}; border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 16px; }} + @keyframes spin {{ to {{ transform: rotate(360deg); }} }}
- - - - -

支付成功!

-

恭喜您已成为会员,额度已自动到账

-
请返回微信小程序查看您的会员状态
-
订单号: {2}
+ +
+
+

支付确认中...

+

我们正在确认您的付款,请稍候

+
系统会自动处理,无需重复操作
+
订单号: {2}
+
+ "##, - green, white, order_no + green, white, order_no, orange ); html }