From 4829e95a71dd2992adf30cdac3ae09cbe7adc711 Mon Sep 17 00:00:00 2001 From: Default User Date: Wed, 4 Mar 2026 14:38:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=8B=E5=86=99=E7=AD=BE?= =?UTF-8?q?=E5=90=8D=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C=EF=BC=8C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=94=BE=E5=A4=A7=E7=AD=BE=E5=90=8D=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E5=92=8C=E7=82=B9=E5=87=BB=E5=A4=96=E9=83=A8=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- certificate.html | 437 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 412 insertions(+), 25 deletions(-) diff --git a/certificate.html b/certificate.html index 1b81159..79c20e8 100644 --- a/certificate.html +++ b/certificate.html @@ -348,35 +348,157 @@ } #signatureCanvas { - border: 1px solid #ced4da; - border-radius: 4px; - background-color: #f8f9fa; + border: 2px solid #ced4da; + border-radius: 8px; + background-color: white; cursor: crosshair; + width: 100%; + height: 200px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } .signature-actions { - margin-top: 8px; - text-align: right; + margin-top: 12px; + display: flex; + justify-content: space-between; + align-items: center; } .signature-actions button { - padding: 6px 12px; + padding: 8px 16px; background-color: #6c757d; color: white; border: none; border-radius: 4px; font-size: 14px; + font-weight: 500; cursor: pointer; + transition: background-color 0.3s ease; } .signature-actions button:hover { background-color: #5a6268; } + .signature-actions .sign-hint { + font-size: 14px; + color: #666; + } + /* 签名显示样式 */ .signature-display img { - max-width: 200px; - max-height: 100px; + max-width: 250px; + max-height: 120px; + border: 1px solid #e0e0e0; + border-radius: 4px; + padding: 8px; + background-color: white; + } + + /* 签名弹窗样式 */ + .signature-modal { + display: none; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.8); + z-index: 2000; + align-items: center; + justify-content: center; + padding: 20px; + } + + .signature-modal.show { + display: flex; + } + + .signature-modal-content { + background-color: white; + border-radius: 12px; + padding: 24px; + width: 90%; + max-width: 500px; + max-height: 80vh; + overflow: hidden; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); + } + + .signature-modal-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 20px; + } + + .signature-modal-header h3 { + font-size: 18px; + font-weight: 600; + color: #333; + margin: 0; + } + + .signature-modal-close { + background: none; + border: none; + font-size: 24px; + color: #666; + cursor: pointer; + } + + #signatureModalCanvas { + border: 2px solid #ced4da; + border-radius: 8px; + background-color: white; + cursor: crosshair; + width: 100%; + height: 300px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); + } + + .signature-modal-actions { + margin-top: 20px; + display: flex; + gap: 12px; + } + + .signature-modal-actions button { + flex: 1; + padding: 12px; + border: none; + border-radius: 4px; + font-size: 16px; + font-weight: 500; + cursor: pointer; + transition: background-color 0.3s ease; + } + + .signature-modal-actions .cancel-btn { + background-color: #6c757d; + color: white; + } + + .signature-modal-actions .clear-btn { + background-color: #ffc107; + color: #212529; + } + + .signature-modal-actions .confirm-btn { + background-color: #28a745; + color: white; + } + + .signature-modal-actions .cancel-btn:hover { + background-color: #5a6268; + } + + .signature-modal-actions .clear-btn:hover { + background-color: #e0a800; + } + + .signature-modal-actions .confirm-btn:hover { + background-color: #218838; } /* 响应式设计 */ @@ -455,13 +577,30 @@
- +
+ 点击签名区域开始签名
+ + +
+
+
+

手写签名

+ +
+ +
+ + + +
+
+
@@ -481,6 +620,8 @@