From 46500f1c9362a367b85dd2baae97dd4f659d1b7a Mon Sep 17 00:00:00 2001 From: zhangguoping Date: Fri, 9 Jan 2026 16:03:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E9=97=AE=E9=A2=98=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/templates/payPage.html | 277 +++++++++++++++++++++++++++++++---- 1 file changed, 247 insertions(+), 30 deletions(-) diff --git a/front/templates/payPage.html b/front/templates/payPage.html index 02ce6da..b66be54 100644 --- a/front/templates/payPage.html +++ b/front/templates/payPage.html @@ -52,6 +52,101 @@ background-color: #0056b3; } + /* 弹窗样式 */ + .modal { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.5); + z-index: 1000; + display: flex; + justify-content: center; + align-items: center; + } + + .modal-content { + background-color: white; + padding: 30px; + border-radius: 10px; + text-align: center; + box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); + width: 90%; + max-width: 400px; + } + + .modal-content h3 { + margin-top: 0; + color: #333; + } + + .modal-content p { + color: #666; + margin-bottom: 30px; + } + + .modal-buttons { + display: flex; + justify-content: space-around; + gap: 20px; + } + + .modal-button { + padding: 12px 24px; + font-size: 16px; + border: none; + border-radius: 5px; + cursor: pointer; + transition: background-color 0.3s ease; + flex: 1; + max-width: 150px; + } + + .paid-button { + background-color: #28a745; + color: white; + } + + .paid-button:hover { + background-color: #218838; + } + + .unpaid-button { + background-color: #dc3545; + color: white; + } + + .unpaid-button:hover { + background-color: #c82333; + } + + /* Toast提示样式 */ + .toast { + position: fixed; + bottom: 30px; + left: 50%; + transform: translateX(-50%); + padding: 12px 24px; + border-radius: 5px; + color: white; + font-size: 14px; + z-index: 1001; + background-color: rgba(0, 0, 0, 0.7); + transition: opacity 0.3s ease, transform 0.3s ease; + } + + .toast.show { + display: block; + opacity: 1; + transform: translateX(-50%) translateY(0); + } + + .toast.hide { + opacity: 0; + transform: translateX(-50%) translateY(20px); + } + /* loading样式 */ .loading-container { display: flex; @@ -151,17 +246,32 @@

支付处理中,请稍等...

+ + + + + +