From ffd4fae0b66cdf099fd19aca6708d30ecef6a302 Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 21 Dec 2025 18:15:15 -0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=AA=E6=9C=89=E9=92=B1=E5=8C=85read?= =?UTF-8?q?y=E6=97=B6=E6=89=8D=E6=98=BE=E7=A4=BA=E5=BA=8F=E5=88=97?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - mining_page: unknown状态也显示"创建账号审核中..." - profile_page: 默认分支改为显示"创建账号审核中..." - 符合设计:只要不成功就持续轮询重试 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../presentation/pages/mining_page.dart | 26 ++++++++++++++++++- .../presentation/pages/profile_page.dart | 25 +++++++++--------- 2 files changed, 38 insertions(+), 13 deletions(-) diff --git a/frontend/mobile-app/lib/features/mining/presentation/pages/mining_page.dart b/frontend/mobile-app/lib/features/mining/presentation/pages/mining_page.dart index 6ed03f49..ee4ed3f7 100644 --- a/frontend/mobile-app/lib/features/mining/presentation/pages/mining_page.dart +++ b/frontend/mobile-app/lib/features/mining/presentation/pages/mining_page.dart @@ -470,7 +470,7 @@ class _MiningPageState extends ConsumerState { ), ], ) - else + else if (_walletStatus == WalletCreationStatus.ready) Text( '序列号$_serialNumber', style: const TextStyle( @@ -481,6 +481,30 @@ class _MiningPageState extends ConsumerState { letterSpacing: -0.3, color: Color(0xFF5D4037), ), + ) + else + // unknown 状态也显示"创建账号审核中..." + Row( + children: [ + const SizedBox( + width: 16, + height: 16, + child: CircularProgressIndicator( + strokeWidth: 2, + valueColor: AlwaysStoppedAnimation(Color(0xFF8B5A2B)), + ), + ), + const SizedBox(width: 8), + Text( + '创建账号审核中...', + style: const TextStyle( + fontSize: 16, + fontFamily: 'Inter', + fontWeight: FontWeight.w600, + color: Color(0xFF8B5A2B), + ), + ), + ], ), const SizedBox(height: 4), Text( diff --git a/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart b/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart index 857641dd..a291c01c 100644 --- a/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart +++ b/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart @@ -4124,25 +4124,26 @@ class _ProfilePageState extends ConsumerState { ); } - // 默认情况显示序列号 + // 默认情况(unknown状态)显示"创建账号审核中..." return Row( children: [ + const SizedBox( + width: 12, + height: 12, + child: CircularProgressIndicator( + strokeWidth: 2, + valueColor: AlwaysStoppedAnimation(Color(0xFFD4AF37)), + ), + ), + const SizedBox(width: 8), Text( - '序列号: $_serialNumber', + '创建账号审核中...', style: const TextStyle( fontSize: 14, fontFamily: 'Inter', height: 1.5, - color: Color(0xCC5D4037), - ), - ), - const SizedBox(width: 8), - GestureDetector( - onTap: _copySerialNumber, - child: const Icon( - Icons.copy, - size: 16, - color: Color(0xCC5D4037), + color: Color(0xFFD4AF37), + fontStyle: FontStyle.italic, ), ), ],