fix: 只有钱包ready时才显示序列号

- mining_page: unknown状态也显示"创建账号审核中..."
- profile_page: 默认分支改为显示"创建账号审核中..."
- 符合设计:只要不成功就持续轮询重试

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-21 18:15:15 -08:00
parent c77cb7a55f
commit ffd4fae0b6
2 changed files with 38 additions and 13 deletions

View File

@ -470,7 +470,7 @@ class _MiningPageState extends ConsumerState<MiningPage> {
), ),
], ],
) )
else else if (_walletStatus == WalletCreationStatus.ready)
Text( Text(
'序列号$_serialNumber', '序列号$_serialNumber',
style: const TextStyle( style: const TextStyle(
@ -481,6 +481,30 @@ class _MiningPageState extends ConsumerState<MiningPage> {
letterSpacing: -0.3, letterSpacing: -0.3,
color: Color(0xFF5D4037), color: Color(0xFF5D4037),
), ),
)
else
// unknown "创建账号审核中..."
Row(
children: [
const SizedBox(
width: 16,
height: 16,
child: CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(Color(0xFF8B5A2B)),
),
),
const SizedBox(width: 8),
Text(
'创建账号审核中...',
style: const TextStyle(
fontSize: 16,
fontFamily: 'Inter',
fontWeight: FontWeight.w600,
color: Color(0xFF8B5A2B),
),
),
],
), ),
const SizedBox(height: 4), const SizedBox(height: 4),
Text( Text(

View File

@ -4124,25 +4124,26 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
); );
} }
// // unknown状态"创建账号审核中..."
return Row( return Row(
children: [ children: [
const SizedBox(
width: 12,
height: 12,
child: CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(Color(0xFFD4AF37)),
),
),
const SizedBox(width: 8),
Text( Text(
'序列号: $_serialNumber', '创建账号审核中...',
style: const TextStyle( style: const TextStyle(
fontSize: 14, fontSize: 14,
fontFamily: 'Inter', fontFamily: 'Inter',
height: 1.5, height: 1.5,
color: Color(0xCC5D4037), color: Color(0xFFD4AF37),
), fontStyle: FontStyle.italic,
),
const SizedBox(width: 8),
GestureDetector(
onTap: _copySerialNumber,
child: const Icon(
Icons.copy,
size: 16,
color: Color(0xCC5D4037),
), ),
), ),
], ],