From dbdfed378e53e8b96b32441f30e936eb682e2d28 Mon Sep 17 00:00:00 2001 From: zhanjunhao <642307404@qq.com> Date: Wed, 18 Nov 2026 17:27:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E7=BB=9F=E4=B8=80=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E9=A1=B5=E8=BE=93=E5=85=A5=E6=A1=86=2036px=20=E4=B8=8E?= =?UTF-8?q?=E8=A7=86=E8=A7=89=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/CHANGELOG.md | 10 +- docs/ui/GLOBAL_UI_BASELINE.md | 6 +- src/components/auth/AuthCardHeader.jsx | 14 +- src/components/auth/AuthDivider.jsx | 35 ++++ src/components/auth/GlassCard.jsx | 8 +- src/components/auth/LoginForm.jsx | 132 ++++-------- src/components/auth/PasswordResetConfirm.jsx | 208 +++++++++---------- src/components/auth/PasswordResetForm.jsx | 149 ++++++------- src/components/auth/RegisterForm.jsx | 160 +++++--------- src/components/auth/TwoFAVerification.jsx | 16 +- src/components/layout/PageLayout.jsx | 7 +- src/pages/OrgLogin/index.jsx | 12 +- src/pages/OrgRegister/index.jsx | 41 +--- src/styles/prototype.css | 139 ++++++++++++- 14 files changed, 472 insertions(+), 465 deletions(-) create mode 100644 src/components/auth/AuthDivider.jsx diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index a56fc680..9fab5901 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,6 +1,6 @@ # 变更记录(CHANGELOG) -> 状态:有效(持续追加) · 更新:2026-11-18 · 版本:v3.3 +> 状态:有效(持续追加) · 更新:2026-11-18 · 版本:v3.4 对现状仍有影响的功能与修复记录,按日期倒序。改造、迁移、优化等一次性过程不在此记录。 @@ -10,6 +10,14 @@ ## 2026-11-18 +### 调整 · 认证页输入框 36px 与视觉统一 + +- **范围**:`/login`、`/org/login`、`/org/:slug/login`、`/register`、`/org/register`、`/reset`、`/user/reset`,以及两步验证、微信验证码弹窗。 +- **变更**:输入框、下拉、整行按钮统一 36px / 8px 圆角,字段节奏 24px;隐藏卡片外发光、角落光晕、漂移光斑与 Logo 光环 / 星标;第三方登录与注册提交按钮去掉渐变、扫光和上浮动效;新增 `AuthDivider` 统一分隔线;找回密码两页改用登录页同款背景、卡片与头部;六个认证页统一使用登录顶栏;两步验证链接色改用品牌色。 +- **影响**:仅视图层,保留请求、载荷、校验规则、提交触发与禁用条件;`OrgCredentialResult` 和 `/client/authorize` 不变。 +- **回滚**:按文件还原 `src/components/auth/`(含删除新增的 `AuthDivider.jsx`)、`src/pages/OrgLogin/index.jsx`、`src/pages/OrgRegister/index.jsx`、`src/components/layout/PageLayout.jsx`、`src/styles/prototype.css` 中的 `.auth-login-page` 段及 `GLOBAL_UI_BASELINE.md` 第 4.5 节。 +- **关联**:`docs/ui/GLOBAL_UI_BASELINE.md` 第 4.5 节。 + ### 规范 · 适配层日期契约、标签写法与控制台页头 - **范围**:`src/components/ui/controls.jsx`;`docs/standards/{DEV_STANDARDS,UI_COMPONENT_STANDARDS}.md`、`docs/ui/{ORG_CENTER_SPEC,CONSOLE_SPEC}.md`。 diff --git a/docs/ui/GLOBAL_UI_BASELINE.md b/docs/ui/GLOBAL_UI_BASELINE.md index 952cb881..69e402c9 100644 --- a/docs/ui/GLOBAL_UI_BASELINE.md +++ b/docs/ui/GLOBAL_UI_BASELINE.md @@ -1,6 +1,6 @@ # 后台 UI 全局基线 -> 状态:有效 · 适用:antd 6.7.0 · 更新:2026-11-17 · 版本:v3.6 +> 状态:有效 · 适用:antd 6.7.0 · 更新:2026-11-18 · 版本:v3.7 后台外壳与布局基线:顶栏、侧栏、公告、页头与内容边距、登录页,以及原型未定义场景、登录关卡与验收流程。主题与组件样式见 `UI_COMPONENT_STANDARDS.md`。 @@ -80,8 +80,8 @@ ### 4.5 登录页与认证顶栏 -- `/org/login` 与 `/login` 顶栏采用后台标准样式,无品牌条、玻璃渐变与反光层。登录页局部布局 `.auth-login-page`;其他认证顶栏 `.auth-layout-header` 透出既有背景;登录顶栏 `.login-layout-header`。 -- 登录卡片无顶部装饰线与反光;企业 / 个人切换用 antd `Button`;输入框 34px 高、8px 圆角,必填标识经 `Form.Item` 呈现;凭据字段只预留必要的错误提示高度,正常、报错、修正三态布局稳定。 +- 认证页(`/login`、`/org/login`、`/org/:slug/login`、`/register`、`/org/register`、`/reset`、`/user/reset`)统一使用登录顶栏 `.login-layout-header` 与局部布局 `.auth-login-page`,顶栏采用后台标准样式,无品牌条、玻璃渐变与反光层;仅客户端授权页 `/client/authorize` 保留 `.auth-layout-header` 透出背景。 +- 登录卡片无顶部装饰线、反光、外发光、角落光晕与 Logo 光环 / 星标;企业 / 个人切换用 antd `Button`;输入框、下拉、整行按钮与认证弹窗(`.auth-login-modal`)控件统一 36px 高、8px 圆角(`--auth-control-height`),必填标识经 `Form.Item` 呈现;字段节奏 24px,凭据字段只预留必要的错误提示高度,正常、报错、修正三态布局稳定。第三方登录用描边整行按钮,无位移与扫光;分隔线用 `AuthDivider`。规则集中在 `src/styles/prototype.css` 的 `.auth-login-page` 段。 - 副标题、“记住登录名”、管理员重置提示与“忘记密码”使用加深 20% 的次文字色,无悬停底色,“忘记密码”悬停再加深;“切换企业”与“登录”同为主按钮样式。个人登录必填校验用 `rules`,通过后调用原登录处理函数。样式调整不得改变登录校验、回调与载荷。 ### 4.6 导航入口 diff --git a/src/components/auth/AuthCardHeader.jsx b/src/components/auth/AuthCardHeader.jsx index 5851ee8e..feef02ed 100644 --- a/src/components/auth/AuthCardHeader.jsx +++ b/src/components/auth/AuthCardHeader.jsx @@ -42,12 +42,12 @@ const AuthCardHeader = ({ const { t } = useTranslation(); return (
diff --git a/src/components/auth/AuthDivider.jsx b/src/components/auth/AuthDivider.jsx
new file mode 100644
index 00000000..796e0bfa
--- /dev/null
+++ b/src/components/auth/AuthDivider.jsx
@@ -0,0 +1,35 @@
+/*
+Copyright (C) 2025 QuantumNous
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see