From 5c7d43b6ca3f43ae542a5e85b414c0c92f39d39b Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 17 Dec 2025 08:35:49 -0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E6=88=91=E7=9A=84=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=20'=E7=AE=97=E5=8A=9B'=20=E2=86=92=20'=E8=B4=A1=E7=8C=AE?= =?UTF-8?q?=E5=80=BC'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../presentation/pages/profile_page.dart | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 ab623c56..33cdc763 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 @@ -595,11 +595,11 @@ class _ProfilePageState extends ConsumerState { debugPrint('[ProfilePage] -------- 收益数据加载成功 --------'); debugPrint('[ProfilePage] 待领取 USDT: ${summary.pendingUsdt}'); - debugPrint('[ProfilePage] 待领取 算力: ${summary.pendingHashpower}'); + debugPrint('[ProfilePage] 待领取 贡献值: ${summary.pendingHashpower}'); debugPrint('[ProfilePage] 可结算 USDT: ${summary.settleableUsdt}'); debugPrint('[ProfilePage] 已结算 USDT: ${summary.settledTotalUsdt}'); debugPrint('[ProfilePage] 已过期 USDT: ${summary.expiredTotalUsdt}'); - debugPrint('[ProfilePage] 已过期 算力: ${summary.expiredTotalHashpower}'); + debugPrint('[ProfilePage] 已过期 贡献值: ${summary.expiredTotalHashpower}'); debugPrint('[ProfilePage] 过期时间: ${summary.pendingExpireAt}'); debugPrint('[ProfilePage] 剩余秒数: ${summary.pendingRemainingSeconds}'); debugPrint('[ProfilePage] 待领取奖励条目数: ${pendingRewards.length}'); @@ -901,7 +901,7 @@ class _ProfilePageState extends ConsumerState { Future _doClaimRewards() async { try { debugPrint('[ProfilePage] ========== 执行领取奖励 =========='); - debugPrint('[ProfilePage] 当前待领取: USDT=$_pendingUsdt, 算力=$_pendingPower'); + debugPrint('[ProfilePage] 当前待领取: USDT=$_pendingUsdt, 贡献值=$_pendingPower'); final walletService = ref.read(walletServiceProvider); debugPrint('[ProfilePage] 调用 claimRewards()...'); @@ -1864,7 +1864,7 @@ class _ProfilePageState extends ConsumerState { amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分'); } if (item.hashpowerAmount > 0) { - amountParts.add('${_formatNumber(item.hashpowerAmount)} 算力'); + amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); } final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分'; @@ -1991,7 +1991,7 @@ class _ProfilePageState extends ConsumerState { amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分'); } if (item.hashpowerAmount > 0) { - amountParts.add('${_formatNumber(item.hashpowerAmount)} 算力'); + amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); } // 如果都为0,显示默认文本 final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分'; @@ -2220,7 +2220,7 @@ class _ProfilePageState extends ConsumerState { amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分'); } if (item.hashpowerAmount > 0) { - amountParts.add('${_formatNumber(item.hashpowerAmount)} 算力'); + amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); } final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分'; @@ -2300,7 +2300,7 @@ class _ProfilePageState extends ConsumerState { amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分'); } if (item.hashpowerAmount > 0) { - amountParts.add('${_formatNumber(item.hashpowerAmount)} 算力'); + amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); } final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分'; @@ -2452,7 +2452,7 @@ class _ProfilePageState extends ConsumerState { ], ), const SizedBox(height: 8), - // 已过期 算力 + // 已过期 贡献值 Row( children: [ const Text( @@ -2531,7 +2531,7 @@ class _ProfilePageState extends ConsumerState { amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分'); } if (item.hashpowerAmount > 0) { - amountParts.add('${_formatNumber(item.hashpowerAmount)} 算力'); + amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); } final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分'; @@ -2610,7 +2610,7 @@ class _ProfilePageState extends ConsumerState { amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分'); } if (item.hashpowerAmount > 0) { - amountParts.add('${_formatNumber(item.hashpowerAmount)} 算力'); + amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); } final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';