fix(ui): 我的页面 '算力' → '贡献值'
🤖 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
a5d5f78f17
commit
5c7d43b6ca
|
|
@ -595,11 +595,11 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
|
||||
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<ProfilePage> {
|
|||
Future<void> _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<ProfilePage> {
|
|||
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<ProfilePage> {
|
|||
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<ProfilePage> {
|
|||
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<ProfilePage> {
|
|||
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<ProfilePage> {
|
|||
],
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
// 已过期 算力
|
||||
// 已过期 贡献值
|
||||
Row(
|
||||
children: [
|
||||
const Text(
|
||||
|
|
@ -2531,7 +2531,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
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<ProfilePage> {
|
|||
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 绿积分';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue