From 031086583446f2614c3d6c9e93df27189af9b137 Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 17 Dec 2025 08:55:04 -0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E6=9A=82=E6=97=B6=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E6=88=91=E7=9A=84=E9=A1=B5=E9=9D=A2=E6=89=80=E6=9C=89=E8=B4=A1?= =?UTF-8?q?=E7=8C=AE=E5=80=BC=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 用 TODO 注释隐藏以下位置的贡献值: - 待领取区域的贡献值汇总 - 待领取明细卡片中的贡献值 - 可结算明细卡片中的贡献值 - 已过期区域的贡献值汇总 - 已过期明细卡片中的贡献值 - 领取确认对话框中的贡献值 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../presentation/pages/profile_page.dart | 152 ++++++++++-------- 1 file changed, 81 insertions(+), 71 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 33cdc763..b75827fe 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 @@ -878,7 +878,9 @@ class _ProfilePageState extends ConsumerState { builder: (dialogContext) => AlertDialog( title: const Text('确认领取'), content: Text( - '确定领取全部收益吗?\n绿积分: ${_formatNumber(_pendingUsdt)}\n贡献值: ${_formatNumber(_pendingPower)}', + '确定领取全部收益吗?\n绿积分: ${_formatNumber(_pendingUsdt)}', + // TODO: 暂时隐藏贡献值显示 + // '确定领取全部收益吗?\n绿积分: ${_formatNumber(_pendingUsdt)}\n贡献值: ${_formatNumber(_pendingPower)}', ), actions: [ TextButton( @@ -1780,32 +1782,33 @@ class _ProfilePageState extends ConsumerState { ), ], ), - const SizedBox(height: 4), - // 贡献值 - Row( - children: [ - const Text( - '贡献值:', - style: TextStyle( - fontSize: 14, - fontFamily: 'Inter', - fontWeight: FontWeight.w500, - height: 1.5, - color: Color(0xCC5D4037), - ), - ), - Text( - _formatNumber(_pendingPower), - style: const TextStyle( - fontSize: 16, - fontFamily: 'Inter', - fontWeight: FontWeight.w500, - height: 1.25, - color: Color(0xFF5D4037), - ), - ), - ], - ), + // TODO: 暂时隐藏贡献值显示 + // const SizedBox(height: 4), + // // 贡献值 + // Row( + // children: [ + // const Text( + // '贡献值:', + // style: TextStyle( + // fontSize: 14, + // fontFamily: 'Inter', + // fontWeight: FontWeight.w500, + // height: 1.5, + // color: Color(0xCC5D4037), + // ), + // ), + // Text( + // _formatNumber(_pendingPower), + // style: const TextStyle( + // fontSize: 16, + // fontFamily: 'Inter', + // fontWeight: FontWeight.w500, + // height: 1.25, + // color: Color(0xFF5D4037), + // ), + // ), + // ], + // ), ], ), // 待领取奖励列表 - 使用堆叠卡片展示 @@ -1863,9 +1866,10 @@ class _ProfilePageState extends ConsumerState { if (item.usdtAmount > 0) { amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分'); } - if (item.hashpowerAmount > 0) { - amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); - } + // TODO: 暂时隐藏贡献值显示 + // if (item.hashpowerAmount > 0) { + // amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); + // } final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分'; return Container( @@ -1990,9 +1994,10 @@ class _ProfilePageState extends ConsumerState { if (item.usdtAmount > 0) { amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分'); } - if (item.hashpowerAmount > 0) { - amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); - } + // TODO: 暂时隐藏贡献值显示 + // if (item.hashpowerAmount > 0) { + // amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); + // } // 如果都为0,显示默认文本 final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分'; @@ -2219,9 +2224,10 @@ class _ProfilePageState extends ConsumerState { if (item.usdtAmount > 0) { amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分'); } - if (item.hashpowerAmount > 0) { - amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); - } + // TODO: 暂时隐藏贡献值显示 + // if (item.hashpowerAmount > 0) { + // amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); + // } final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分'; return Container( @@ -2299,9 +2305,10 @@ class _ProfilePageState extends ConsumerState { if (item.usdtAmount > 0) { amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分'); } - if (item.hashpowerAmount > 0) { - amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); - } + // TODO: 暂时隐藏贡献值显示 + // if (item.hashpowerAmount > 0) { + // amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); + // } final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分'; return Container( @@ -2451,32 +2458,33 @@ class _ProfilePageState extends ConsumerState { ), ], ), - const SizedBox(height: 8), - // 已过期 贡献值 - Row( - children: [ - const Text( - '贡献值:', - style: TextStyle( - fontSize: 14, - fontFamily: 'Inter', - fontWeight: FontWeight.w500, - height: 1.5, - color: Color(0xCC5D4037), - ), - ), - Text( - _formatNumber(_expiredPower), - style: const TextStyle( - fontSize: 14, - fontFamily: 'Inter', - fontWeight: FontWeight.w700, - height: 1.5, - color: Color(0xFF5D4037), - ), - ), - ], - ), + // TODO: 暂时隐藏贡献值显示 + // const SizedBox(height: 8), + // // 已过期 贡献值 + // Row( + // children: [ + // const Text( + // '贡献值:', + // style: TextStyle( + // fontSize: 14, + // fontFamily: 'Inter', + // fontWeight: FontWeight.w500, + // height: 1.5, + // color: Color(0xCC5D4037), + // ), + // ), + // Text( + // _formatNumber(_expiredPower), + // style: const TextStyle( + // fontSize: 14, + // fontFamily: 'Inter', + // fontWeight: FontWeight.w700, + // height: 1.5, + // color: Color(0xFF5D4037), + // ), + // ), + // ], + // ), // 已过期奖励明细列表 if (_expiredRewards.isNotEmpty) ...[ const SizedBox(height: 16), @@ -2530,9 +2538,10 @@ class _ProfilePageState extends ConsumerState { if (item.usdtAmount > 0) { amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分'); } - if (item.hashpowerAmount > 0) { - amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); - } + // TODO: 暂时隐藏贡献值显示 + // if (item.hashpowerAmount > 0) { + // amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); + // } final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分'; return Container( @@ -2609,9 +2618,10 @@ class _ProfilePageState extends ConsumerState { if (item.usdtAmount > 0) { amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分'); } - if (item.hashpowerAmount > 0) { - amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); - } + // TODO: 暂时隐藏贡献值显示 + // if (item.hashpowerAmount > 0) { + // amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值'); + // } final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分'; return Container(