gcx/frontend/genex-mobile
hailin 4b1cdf9fb3 feat(genex-mobile): Flutter 前端对接 SMS 认证 API
Phase 6 — Flutter 前端完整对接后端 SMS 认证系统:

新增组件:
- OtpInput: 6位验证码输入框,支持自动跳转、粘贴、错误状态
- CountdownButton: 短信验证码倒计时按钮(60s),发送失败不启动倒计时

新增服务:
- AuthService: 单例认证服务,封装全部 auth API
  · sendSmsCode (REGISTER/LOGIN/RESET_PASSWORD/CHANGE_PHONE)
  · register / loginByPassword / loginByPhone
  · resetPassword / changePassword / changePhone
  · refreshToken / logout
  · ValueNotifier<AuthResult?> 状态管理

页面重写 (对接真实 API):
- LoginPage: 双 Tab (密码/验证码登录),错误提示 Banner,账户锁定展示
- RegisterPage: 三步注册流程,CountdownButton 集成,密码强度检查
- ForgotPasswordPage: 四步找回密码,验证码重发,密码一致性校验

i18n 补充 (4语言 × 13 新 key):
- login: noAccount, registerNow, networkError, errorPhoneRequired,
         errorPasswordMin, errorCodeInvalid
- register: hasAccount, loginNow, errorPhoneRequired, errorCodeInvalid,
            errorPasswordWeak, errorTermsRequired
- forgot: errorPasswordMismatch

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 19:23:25 -08:00
..
android fix(android): 启用 core library desugaring — 修复 flutter_local_notifications 构建失败 2026-02-23 17:00:46 -08:00
assets/images fix(branding): 统一Logo色调与App主色调 #6C5CE7 2026-02-23 18:12:35 -08:00
ios fix(branding): 重新生成全平台图标 — 基于更新后的Logo SVG v2 2026-02-22 08:00:19 -08:00
lib feat(genex-mobile): Flutter 前端对接 SMS 认证 API 2026-02-23 19:23:25 -08:00
.gitignore feat: Create genex-mobile app with coupon lifecycle management redesign 2026-02-11 17:57:16 -08:00
.metadata feat: Create genex-mobile app with coupon lifecycle management redesign 2026-02-11 17:57:16 -08:00
README.md feat: Create genex-mobile app with coupon lifecycle management redesign 2026-02-11 17:57:16 -08:00
analysis_options.yaml feat: Create genex-mobile app with coupon lifecycle management redesign 2026-02-11 17:57:16 -08:00
pubspec.yaml feat(branding): 全平台品牌Logo替换 — 新双色渐变券印标识 2026-02-22 04:07:46 -08:00

README.md

genex_consumer

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.