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(
|
builder: (dialogContext) => AlertDialog(
|
||||||
title: const Text('确认领取'),
|
title: const Text('确认领取'),
|
||||||
content: Text(
|
content: Text(
|
||||||
'确定领取全部收益吗?\n绿积分: ${_formatNumber(_pendingUsdt)}\n贡献值: ${_formatNumber(_pendingPower)}',
|
'确定领取全部收益吗?\n绿积分: ${_formatNumber(_pendingUsdt)}',
|
||||||
|
// TODO: 暂时隐藏贡献值显示
|
||||||
|
// '确定领取全部收益吗?\n绿积分: ${_formatNumber(_pendingUsdt)}\n贡献值: ${_formatNumber(_pendingPower)}',
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
|
|
@ -1780,32 +1782,33 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 4),
|
// TODO: 暂时隐藏贡献值显示
|
||||||
// 贡献值
|
// const SizedBox(height: 4),
|
||||||
Row(
|
// // 贡献值
|
||||||
children: [
|
// Row(
|
||||||
const Text(
|
// children: [
|
||||||
'贡献值:',
|
// const Text(
|
||||||
style: TextStyle(
|
// '贡献值:',
|
||||||
fontSize: 14,
|
// style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
// fontSize: 14,
|
||||||
fontWeight: FontWeight.w500,
|
// fontFamily: 'Inter',
|
||||||
height: 1.5,
|
// fontWeight: FontWeight.w500,
|
||||||
color: Color(0xCC5D4037),
|
// height: 1.5,
|
||||||
),
|
// color: Color(0xCC5D4037),
|
||||||
),
|
// ),
|
||||||
Text(
|
// ),
|
||||||
_formatNumber(_pendingPower),
|
// Text(
|
||||||
style: const TextStyle(
|
// _formatNumber(_pendingPower),
|
||||||
fontSize: 16,
|
// style: const TextStyle(
|
||||||
fontFamily: 'Inter',
|
// fontSize: 16,
|
||||||
fontWeight: FontWeight.w500,
|
// fontFamily: 'Inter',
|
||||||
height: 1.25,
|
// fontWeight: FontWeight.w500,
|
||||||
color: Color(0xFF5D4037),
|
// height: 1.25,
|
||||||
),
|
// color: Color(0xFF5D4037),
|
||||||
),
|
// ),
|
||||||
],
|
// ),
|
||||||
),
|
// ],
|
||||||
|
// ),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
// 待领取奖励列表 - 使用堆叠卡片展示
|
// 待领取奖励列表 - 使用堆叠卡片展示
|
||||||
|
|
@ -1863,9 +1866,10 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
if (item.usdtAmount > 0) {
|
if (item.usdtAmount > 0) {
|
||||||
amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
|
amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
|
||||||
}
|
}
|
||||||
if (item.hashpowerAmount > 0) {
|
// TODO: 暂时隐藏贡献值显示
|
||||||
amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值');
|
// if (item.hashpowerAmount > 0) {
|
||||||
}
|
// amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值');
|
||||||
|
// }
|
||||||
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
|
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
|
|
@ -1990,9 +1994,10 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
if (item.usdtAmount > 0) {
|
if (item.usdtAmount > 0) {
|
||||||
amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
|
amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
|
||||||
}
|
}
|
||||||
if (item.hashpowerAmount > 0) {
|
// TODO: 暂时隐藏贡献值显示
|
||||||
amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值');
|
// if (item.hashpowerAmount > 0) {
|
||||||
}
|
// amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值');
|
||||||
|
// }
|
||||||
// 如果都为0,显示默认文本
|
// 如果都为0,显示默认文本
|
||||||
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
|
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
|
||||||
|
|
||||||
|
|
@ -2219,9 +2224,10 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
if (item.usdtAmount > 0) {
|
if (item.usdtAmount > 0) {
|
||||||
amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
|
amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
|
||||||
}
|
}
|
||||||
if (item.hashpowerAmount > 0) {
|
// TODO: 暂时隐藏贡献值显示
|
||||||
amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值');
|
// if (item.hashpowerAmount > 0) {
|
||||||
}
|
// amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值');
|
||||||
|
// }
|
||||||
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
|
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
|
|
@ -2299,9 +2305,10 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
if (item.usdtAmount > 0) {
|
if (item.usdtAmount > 0) {
|
||||||
amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
|
amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
|
||||||
}
|
}
|
||||||
if (item.hashpowerAmount > 0) {
|
// TODO: 暂时隐藏贡献值显示
|
||||||
amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值');
|
// if (item.hashpowerAmount > 0) {
|
||||||
}
|
// amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值');
|
||||||
|
// }
|
||||||
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
|
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
|
|
@ -2451,32 +2458,33 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
// TODO: 暂时隐藏贡献值显示
|
||||||
// 已过期 贡献值
|
// const SizedBox(height: 8),
|
||||||
Row(
|
// // 已过期 贡献值
|
||||||
children: [
|
// Row(
|
||||||
const Text(
|
// children: [
|
||||||
'贡献值:',
|
// const Text(
|
||||||
style: TextStyle(
|
// '贡献值:',
|
||||||
fontSize: 14,
|
// style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
// fontSize: 14,
|
||||||
fontWeight: FontWeight.w500,
|
// fontFamily: 'Inter',
|
||||||
height: 1.5,
|
// fontWeight: FontWeight.w500,
|
||||||
color: Color(0xCC5D4037),
|
// height: 1.5,
|
||||||
),
|
// color: Color(0xCC5D4037),
|
||||||
),
|
// ),
|
||||||
Text(
|
// ),
|
||||||
_formatNumber(_expiredPower),
|
// Text(
|
||||||
style: const TextStyle(
|
// _formatNumber(_expiredPower),
|
||||||
fontSize: 14,
|
// style: const TextStyle(
|
||||||
fontFamily: 'Inter',
|
// fontSize: 14,
|
||||||
fontWeight: FontWeight.w700,
|
// fontFamily: 'Inter',
|
||||||
height: 1.5,
|
// fontWeight: FontWeight.w700,
|
||||||
color: Color(0xFF5D4037),
|
// height: 1.5,
|
||||||
),
|
// color: Color(0xFF5D4037),
|
||||||
),
|
// ),
|
||||||
],
|
// ),
|
||||||
),
|
// ],
|
||||||
|
// ),
|
||||||
// 已过期奖励明细列表
|
// 已过期奖励明细列表
|
||||||
if (_expiredRewards.isNotEmpty) ...[
|
if (_expiredRewards.isNotEmpty) ...[
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
|
|
@ -2530,9 +2538,10 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
if (item.usdtAmount > 0) {
|
if (item.usdtAmount > 0) {
|
||||||
amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
|
amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
|
||||||
}
|
}
|
||||||
if (item.hashpowerAmount > 0) {
|
// TODO: 暂时隐藏贡献值显示
|
||||||
amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值');
|
// if (item.hashpowerAmount > 0) {
|
||||||
}
|
// amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值');
|
||||||
|
// }
|
||||||
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
|
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
|
|
@ -2609,9 +2618,10 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
if (item.usdtAmount > 0) {
|
if (item.usdtAmount > 0) {
|
||||||
amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
|
amountParts.add('${_formatNumber(item.usdtAmount)} 绿积分');
|
||||||
}
|
}
|
||||||
if (item.hashpowerAmount > 0) {
|
// TODO: 暂时隐藏贡献值显示
|
||||||
amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值');
|
// if (item.hashpowerAmount > 0) {
|
||||||
}
|
// amountParts.add('${_formatNumber(item.hashpowerAmount)} 贡献值');
|
||||||
|
// }
|
||||||
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
|
final amountText = amountParts.isNotEmpty ? amountParts.join(' ') : '0 绿积分';
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue