From 28f34957246cece76774f7b45c91682a779d8652 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Tue, 3 Nov 2026 08:38:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=9F=AD=E4=BF=A1=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E6=94=B9=E6=88=90=E7=99=BB=E5=BD=95=E9=A1=B5?= =?UTF-8?q?=E5=9B=BE=E7=BA=B8=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/features/auth/LoginView.vue | 16 ++++-- web/src/features/auth/login-gate.css | 83 ++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+), 6 deletions(-) diff --git a/web/src/features/auth/LoginView.vue b/web/src/features/auth/LoginView.vue index 0f2852f..fb09406 100644 --- a/web/src/features/auth/LoginView.vue +++ b/web/src/features/auth/LoginView.vue @@ -340,12 +340,16 @@ async function finishNqi() {

请使用大数据平台账号登录

- - -
- 返回 - {{ countdown > 0 ? `重新发送(${countdown})` : "发送验证码" }} - 提交 + +
diff --git a/web/src/features/auth/login-gate.css b/web/src/features/auth/login-gate.css index 6b5e15f..230780e 100644 --- a/web/src/features/auth/login-gate.css +++ b/web/src/features/auth/login-gate.css @@ -194,3 +194,86 @@ html[data-theme="dark"] .gate.lv-tower { @keyframes lv-mast { to { clip-path: inset(0 0 0 0); } } + +.lv-sms-sheet { + --paper: color-mix(in srgb, #ebe4d2 70%, #d7dce2); + --ink-line: #2c3038; + --field: color-mix(in srgb, var(--paper) 70%, #fff); + --muted-line: color-mix(in srgb, var(--ink-line) 42%, var(--paper)); + width: min(320px, calc(100vw - 48px)); + padding: 28px 24px 24px; + background: var(--paper); + color: var(--ink-line); + border: 1px solid var(--ink-line); + border-radius: 0; + box-shadow: none; + font-family: SimSun, "Songti SC", serif; +} +html[data-theme="dark"] .lv-sms-sheet { + --paper: #161512; + --ink-line: #e6dece; + --field: #24211b; +} +.lv-sms-sheet h2 { + margin: 0 0 18px; + font-size: 22px; + font-weight: 700; + letter-spacing: 0.12em; + text-align: center; +} +.lv-sms-sheet label { + display: block; + margin: 0 0 8px; +} +.lv-sms-sheet input { + display: block; + width: 100%; + height: 36px; + margin: 0 0 16px; + padding: 0 8px; + border: 1px solid var(--ink-line); + border-radius: 0; + background: var(--field); + color: var(--ink-line); + font: inherit; + outline: none; + caret-color: var(--ink-line); +} +.lv-sms-sheet input::placeholder { color: var(--muted-line); } +.lv-sms-sheet input:focus { box-shadow: inset 0 0 0 1px var(--ink-line); } +.lv-sms-actions { + display: flex; + gap: 8px; + margin: 0 0 10px; +} +.lv-sms-actions button, +.lv-sms-go { + height: 36px; + padding: 0 12px; + border: 1px solid var(--ink-line); + border-radius: 0; + background: var(--paper); + color: var(--ink-line); + font: inherit; + cursor: pointer; +} +.lv-sms-actions button { flex: 1; } +.lv-sms-go { + display: block; + width: 100%; + height: 40px; + background: var(--ink-line); + color: var(--paper); + letter-spacing: 0.3em; + font-size: 16px; +} +.lv-sms-actions button:hover, +.lv-sms-go:hover { filter: brightness(1.08); } +.lv-sms-actions button:disabled, +.lv-sms-go:disabled { opacity: 0.6; cursor: default; filter: none; } +body:has(.lv-sms-sheet) .n-modal-mask { + background: color-mix(in srgb, #2c3038 42%, transparent); +} +html[data-theme="dark"] body:has(.lv-sms-sheet) .n-modal-mask { + background: color-mix(in srgb, #000 64%, transparent); +}