diff --git a/WeChatProgram/pages/auth/index.js b/WeChatProgram/pages/auth/index.js
index 8097ffc6..ed19c070 100644
--- a/WeChatProgram/pages/auth/index.js
+++ b/WeChatProgram/pages/auth/index.js
@@ -31,6 +31,7 @@ Page({
countdown: 0,
forgotCountdown: 0,
showResetPanel: false,
+ traditionalLoginExpanded: false,
wechatMiniSupported: false,
wechatMiniDisabledReason: '',
wechatMiniLoading: false,
@@ -160,6 +161,7 @@ Page({
activeTab: tab,
authHelperText: this.buildAuthHelperText(tab, this.data.loginType),
showResetPanel: false,
+ traditionalLoginExpanded: false,
loginAccountStatusText: '',
loginAccountStatusType: '',
registerAccountStatusText: '',
@@ -185,6 +187,13 @@ Page({
})
},
+ handleShowTraditionalLogin() {
+ this.setData({
+ traditionalLoginExpanded: true,
+ showResetPanel: false
+ })
+ },
+
handleToggleResetPanel() {
this.setData({
showResetPanel: !this.data.showResetPanel
diff --git a/WeChatProgram/pages/auth/index.wxml b/WeChatProgram/pages/auth/index.wxml
index 0595b67e..368132e4 100644
--- a/WeChatProgram/pages/auth/index.wxml
+++ b/WeChatProgram/pages/auth/index.wxml
@@ -42,19 +42,25 @@
继续选择门店
-
-
- 传统登录方式
-
+
+ 使用账号密码或验证码登录
-
- 账号密码登录
- 验证码登录
+
+
+
+ 传统登录方式
+
+
+
+
+ 账号密码登录
+ 验证码登录
+
- {{authHelperText}}
+ {{authHelperText}}
@@ -63,25 +69,25 @@
-
+
账号
{{loginAccountStatusText}}
{{registerAccountStatusText}}
-
+
手机号
{{registerPhoneStatusText}}
-
+
密码
-
+
验证码
@@ -106,20 +112,20 @@
-
+
选择登录门店
{{loginShopDisplayName || '请选择登录门店'}}
- {{loginShopMessage}}
+ {{loginShopMessage}}
-
+
忘记密码?
- {{activeTab === 'login' ? '立即登录' : '完成注册'}}
+ {{activeTab === 'login' ? '立即登录' : '完成注册'}}
diff --git a/WeChatProgram/pages/auth/index.wxss b/WeChatProgram/pages/auth/index.wxss
index efb5f019..341c23aa 100644
--- a/WeChatProgram/pages/auth/index.wxss
+++ b/WeChatProgram/pages/auth/index.wxss
@@ -61,8 +61,9 @@
.wechat-login-panel {
padding: 24rpx 22rpx;
border-radius: 28rpx;
- background: linear-gradient(145deg, #fff9fb 0%, #fff2f6 100%);
- border: 1rpx solid rgba(244, 214, 224, 0.82);
+ background: linear-gradient(145deg, #f3fff8 0%, #e4fff0 52%, #d5fae6 100%);
+ border: 1rpx solid rgba(121, 214, 152, 0.46);
+ box-shadow: 0 18rpx 38rpx rgba(45, 175, 93, 0.12);
}
.wechat-login-copy {
@@ -89,10 +90,15 @@
margin-top: 18rpx;
}
+.wechat-login-btn.primary-btn {
+ background: linear-gradient(135deg, #32d16d 0%, #13a847 100%);
+ box-shadow: 0 16rpx 36rpx rgba(19, 168, 71, 0.24);
+}
+
.wechat-login-btn-disabled {
- color: #99858e;
- border-color: #f0dde5;
- background: #fffafb;
+ color: #5d8f69;
+ border-color: rgba(121, 214, 152, 0.42);
+ background: rgba(255, 255, 255, 0.82);
}
.wechat-login-hint {
@@ -100,7 +106,7 @@
margin-top: 14rpx;
font-size: 22rpx;
line-height: 1.6;
- color: #8d7a84;
+ color: #58806a;
}
.mini-login-resume {
@@ -120,11 +126,24 @@
flex-shrink: 0;
}
+.traditional-entry {
+ margin-top: 18rpx;
+}
+
+.traditional-entry-btn {
+ color: #7a5262;
+ background: rgba(255, 255, 255, 0.92);
+}
+
+.traditional-login-panel {
+ margin-top: 18rpx;
+}
+
.login-divider {
display: flex;
align-items: center;
gap: 18rpx;
- margin: 22rpx 0 16rpx;
+ margin: 0 0 16rpx;
}
.login-divider-text {
diff --git a/docs/changes/2026-04-02-微信优先登录布局调整.md b/docs/changes/2026-04-02-微信优先登录布局调整.md
new file mode 100644
index 00000000..191eedc8
--- /dev/null
+++ b/docs/changes/2026-04-02-微信优先登录布局调整.md
@@ -0,0 +1,19 @@
+# 微信优先登录布局调整
+
+## 本轮调整
+
+- 小程序登录页默认只展示微信手机号一键登录主路径
+- 账号密码登录和验证码登录默认折叠隐藏
+- 用户点击“使用账号密码或验证码登录”后,才展开传统登录区域
+- 微信一键登录按钮改为更鲜艳的绿色主按钮,提升首屏主路径识别度
+
+## 影响文件
+
+- `WeChatProgram/pages/auth/index.js`
+- `WeChatProgram/pages/auth/index.wxml`
+- `WeChatProgram/pages/auth/index.wxss`
+
+## 说明
+
+- 本轮仅调整登录页交互层级和视觉样式
+- 不涉及后端逻辑和 SQL 变更