fix(ui): 暂时隐藏我的页面所有贡献值显示
用 TODO 注释隐藏以下位置的贡献值: - 待领取区域的贡献值汇总 - 待领取明细卡片中的贡献值 - 可结算明细卡片中的贡献值 - 已过期区域的贡献值汇总 - 已过期明细卡片中的贡献值 - 领取确认对话框中的贡献值 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
30db6b4238
commit
0310865834
|
|
@ -878,7 +878,9 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
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<ProfilePage> {
|
|||
),
|
||||
],
|
||||
),
|
||||
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<ProfilePage> {
|
|||
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<ProfilePage> {
|
|||
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<ProfilePage> {
|
|||
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<ProfilePage> {
|
|||
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<ProfilePage> {
|
|||
),
|
||||
],
|
||||
),
|
||||
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<ProfilePage> {
|
|||
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<ProfilePage> {
|
|||
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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue