diff --git a/frontend/mobile-app/lib/features/auth/presentation/pages/guide_page.dart b/frontend/mobile-app/lib/features/auth/presentation/pages/guide_page.dart index 7f796d59..ae2a20ca 100644 --- a/frontend/mobile-app/lib/features/auth/presentation/pages/guide_page.dart +++ b/frontend/mobile-app/lib/features/auth/presentation/pages/guide_page.dart @@ -499,7 +499,7 @@ class _WelcomePageContentState extends ConsumerState<_WelcomePageContent> { SizedBox(height: 60.h), // 欢迎标题 Text( - '欢迎加入', + '加入榴莲皇后大家庭!', style: TextStyle( fontSize: 28.sp, fontWeight: FontWeight.w700, @@ -516,7 +516,7 @@ class _WelcomePageContentState extends ConsumerState<_WelcomePageContent> { SizedBox(height: 12.h), // 副标题 Text( - '注册账号前的最后一步 · 请输入推荐码', + '请输入或者扫描推荐码开始创建账号', style: TextStyle( fontSize: 14.sp, height: 1.43, @@ -610,7 +610,7 @@ class _WelcomePageContentState extends ConsumerState<_WelcomePageContent> { ), style: TextStyle( fontSize: 16.sp, - color: Colors.black87, // 改为深色文字,清晰可见 + color: Colors.black, // 黑色文字,与底色反色 fontWeight: FontWeight.w500, ), ), @@ -627,7 +627,7 @@ class _WelcomePageContentState extends ConsumerState<_WelcomePageContent> { child: Icon( Icons.qr_code_scanner, size: 20.sp, - color: Colors.white, + color: Colors.black, ), ), ), @@ -690,7 +690,7 @@ class _WelcomePageContentState extends ConsumerState<_WelcomePageContent> { ), SizedBox(width: 8.w), Text( - '恢复账号(手机号+密码登录)', + '恢复账号', style: TextStyle( fontSize: 15.sp, fontWeight: FontWeight.w500, diff --git a/frontend/mobile-app/lib/features/auth/presentation/pages/splash_page.dart b/frontend/mobile-app/lib/features/auth/presentation/pages/splash_page.dart index 3c2fac2a..0b415827 100644 --- a/frontend/mobile-app/lib/features/auth/presentation/pages/splash_page.dart +++ b/frontend/mobile-app/lib/features/auth/presentation/pages/splash_page.dart @@ -131,33 +131,21 @@ class _SplashPageState extends ConsumerState { // 根据认证状态决定跳转目标 // 优先级: - // 1. 钱包已创建且已备份 → 主页面 - // 2. 账号已创建但钱包未完成 → 备份助记词页面 - // 3. 首次打开或未看过向导 → 向导页 - // 4. 其他情况 → 创建账户页面 - if (authState.isWalletCreated) { - // 已创建钱包且已备份,进入主页面(龙虎榜) - debugPrint('[SplashPage] 钱包已创建且已备份 → 跳转到龙虎榜'); + // 1. 账号已创建 → 主页面(龙虎榜) + // 2. 首次打开或未看过向导 → 向导页 + // 3. 其他情况 → 主页面(龙虎榜) + if (authState.isAccountCreated) { + // 账号已创建,进入主页面(龙虎榜) + debugPrint('[SplashPage] 账号已创建 → 跳转到龙虎榜'); context.go(RoutePaths.ranking); - } else if (authState.isAccountCreated && authState.userSerialNum != null) { - // 账号已创建但钱包未完成(可能正在生成或未备份),直接进入备份助记词页面 - debugPrint('[SplashPage] 账号已创建但钱包未完成 → 跳转到备份助记词页面'); - debugPrint('[SplashPage] userSerialNum: ${authState.userSerialNum}, isWalletReady: ${authState.isWalletReady}'); - context.go( - RoutePaths.backupMnemonic, - extra: BackupMnemonicParams( - userSerialNum: authState.userSerialNum!, - referralCode: authState.referralCode, - ), - ); } else if (authState.isFirstLaunch || !authState.hasSeenGuide) { // 首次打开或未看过向导,进入向导页 debugPrint('[SplashPage] 首次打开或未看过向导 → 跳转到向导页'); context.go(RoutePaths.guide); } else { - // 已看过向导但未创建钱包,直接进入创建账户页面 - debugPrint('[SplashPage] 已看过向导但未创建钱包 → 跳转到创建账户页面'); - context.go(RoutePaths.onboarding); + // 其他情况,直接进入主页面(龙虎榜) + debugPrint('[SplashPage] 其他情况 → 跳转到龙虎榜'); + context.go(RoutePaths.ranking); } }