From 0a60609a6774488501cc1526c80011718d77afb1 Mon Sep 17 00:00:00 2001 From: Codex Date: Fri, 3 Jul 2026 22:43:25 +0800 Subject: [PATCH] fix: stabilize SMS login form --- apps/taro/src/pages/student/student.css | 34 +++++++++++++++++++++++++ apps/taro/src/services/api.ts | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/apps/taro/src/pages/student/student.css b/apps/taro/src/pages/student/student.css index efc14afa..b66b60d7 100644 --- a/apps/taro/src/pages/student/student.css +++ b/apps/taro/src/pages/student/student.css @@ -110,6 +110,7 @@ } .login-field-label { + display: block; color: #334155; font-size: 17px; font-weight: 850; @@ -145,6 +146,39 @@ .login-send-button { width: 104px; min-width: 104px; + max-width: 104px; + padding: 0; + white-space: nowrap; +} + +.login-card .login-input { + display: block; + width: 100%; + height: 54px; + min-height: 54px; + padding: 0 16px; + border: 1px solid #dbe3ef; + border-radius: 10px; + background: #fff; + color: #111827; + font-size: 17px; + line-height: 54px; +} + +.login-card .login-code-row .login-code-input { + width: 100%; +} + +.login-card .login-send-button.secondary-button { + width: 104px; + min-width: 104px; + max-width: 104px; + height: 54px; + min-height: 54px; + padding: 0; + border-radius: 10px; + font-size: 15px; + line-height: 54px; } .login-page-admin { diff --git a/apps/taro/src/services/api.ts b/apps/taro/src/services/api.ts index 4e63a4ad..e0f79895 100644 --- a/apps/taro/src/services/api.ts +++ b/apps/taro/src/services/api.ts @@ -100,7 +100,7 @@ export async function apiRequest( throw new ApiError({ status: response.statusCode, code: String(payload.code || 'API_ERROR'), - message: String(payload.message || '请求失败'), + message: String(payload.message || payload.error || '请求失败'), details: payload, }); }