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(