diff --git a/it0_app/lib/features/auth/presentation/pages/login_page.dart b/it0_app/lib/features/auth/presentation/pages/login_page.dart index 651acc8..5fe3190 100644 --- a/it0_app/lib/features/auth/presentation/pages/login_page.dart +++ b/it0_app/lib/features/auth/presentation/pages/login_page.dart @@ -124,15 +124,14 @@ class _LoginPageState extends ConsumerState { if (_mode == _LoginMode.password) ...[ TextFormField( controller: _emailController, - keyboardType: TextInputType.emailAddress, - decoration: InputDecoration( - labelText: AppLocalizations.of(context).emailLabel, - hintText: AppLocalizations.of(context).emailHint, - prefixIcon: const Icon(Icons.email_outlined), + keyboardType: TextInputType.text, + decoration: const InputDecoration( + labelText: '邮箱 / 手机号', + hintText: '请输入邮箱或手机号', + prefixIcon: Icon(Icons.person_outline), ), validator: (v) { - if (v == null || v.isEmpty) return '请输入邮箱地址'; - if (!v.contains('@')) return '请输入有效的邮箱地址'; + if (v == null || v.isEmpty) return '请输入邮箱或手机号'; return null; }, ),