From 9cadc2387275441003c45f2e74d898188a271cce Mon Sep 17 00:00:00 2001 From: xiaowang Date: Thu, 2 Apr 2026 14:35:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=EF=BC=9A=E5=B1=85=E4=B8=AD?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E8=AE=A4=E8=AF=81=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WeChatProgram/pages/auth/index.wxss | 15 +++++++++++++-- docs/changes/2026-04-02-登录页整体居中对齐.md | 16 ++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 docs/changes/2026-04-02-登录页整体居中对齐.md diff --git a/WeChatProgram/pages/auth/index.wxss b/WeChatProgram/pages/auth/index.wxss index 341c23aa..f94f6e09 100644 --- a/WeChatProgram/pages/auth/index.wxss +++ b/WeChatProgram/pages/auth/index.wxss @@ -5,11 +5,18 @@ } .auth-content { - padding-top: 8rpx; + min-height: calc(100vh - 120rpx); + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + padding: 24rpx 24rpx 40rpx; } .auth-panel, .reset-card { + width: 100%; + max-width: 680rpx; padding: 30rpx 28rpx; } @@ -19,6 +26,8 @@ .reset-card { margin-top: 18rpx; + margin-left: auto; + margin-right: auto; } .tab-row, @@ -217,13 +226,15 @@ inset: 0; z-index: 60; display: flex; - align-items: flex-end; + align-items: center; + justify-content: center; padding: 24rpx; background: rgba(45, 36, 48, 0.34); } .mini-shop-modal { width: 100%; + max-width: 680rpx; padding: 30rpx 28rpx; border-radius: 36rpx; background: #ffffff; diff --git a/docs/changes/2026-04-02-登录页整体居中对齐.md b/docs/changes/2026-04-02-登录页整体居中对齐.md new file mode 100644 index 00000000..ffdecbce --- /dev/null +++ b/docs/changes/2026-04-02-登录页整体居中对齐.md @@ -0,0 +1,16 @@ +# 登录页整体居中对齐 + +## 本轮调整 + +- 将小程序登录页主内容区改为上下左右整体居中布局 +- 登录主卡片与重置密码卡片统一限制版心宽度,并沿同一中轴显示 +- 补选门店弹层由底部弹出样式改为屏幕中央弹窗样式 + +## 影响文件 + +- `WeChatProgram/pages/auth/index.wxss` + +## 说明 + +- 本轮仅调整布局和弹窗位置 +- 不涉及登录逻辑和 SQL 变更