feat(mining-app): UI调整 - 隐藏部分功能和文案修改
- 兑换页面:将"挖矿账户"改为"分配账户" - 我的页面:隐藏"账户设置"栏目(2.0版本暂不需要) - 贡献值页面:隐藏"今日预估收益"栏目 - 贡献值明细页:同伴上贡献值不显示用户ID - 参与记录页:将"算力"改为"贡献值" Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
8f0fc09a4c
commit
7a5faad665
|
|
@ -74,9 +74,9 @@ class ContributionPage extends ConsumerWidget {
|
|||
// 三栏统计
|
||||
_buildThreeColumnStats(context, ref, contribution, isLoading),
|
||||
const SizedBox(height: 16),
|
||||
// 今日预估收益
|
||||
_buildTodayEstimateCard(context, ref, estimatedEarnings, isLoading),
|
||||
const SizedBox(height: 16),
|
||||
// 今日预估收益 - 2.0版本暂时隐藏
|
||||
// _buildTodayEstimateCard(context, ref, estimatedEarnings, isLoading),
|
||||
// const SizedBox(height: 16),
|
||||
// 贡献值明细(三类汇总)
|
||||
_buildContributionDetailCard(context, ref, contribution, isLoading),
|
||||
const SizedBox(height: 16),
|
||||
|
|
|
|||
|
|
@ -267,7 +267,7 @@ class _ContributionRecordsListPageState extends ConsumerState<ContributionRecord
|
|||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// 第一行:来源类型 + 获得算力
|
||||
// 第一行:来源类型 + 获得贡献值
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
|
|
@ -293,19 +293,20 @@ class _ContributionRecordsListPageState extends ConsumerState<ContributionRecord
|
|||
),
|
||||
const SizedBox(height: 12),
|
||||
|
||||
// 第二行:来源用户
|
||||
Row(
|
||||
children: [
|
||||
Icon(Icons.person_outline, size: 14, color: _grayText),
|
||||
const SizedBox(width: 4),
|
||||
Text(
|
||||
record.sourceType == ContributionSourceType.personal
|
||||
? '本人参与'
|
||||
: record.sourceAccountSequence ?? '未知用户',
|
||||
style: TextStyle(fontSize: 13, color: _grayText),
|
||||
),
|
||||
],
|
||||
),
|
||||
// 第二行:来源用户(同伴上贡献值不显示ID,因为都是自己种的树)
|
||||
if (record.sourceType != ContributionSourceType.teamBonus)
|
||||
Row(
|
||||
children: [
|
||||
Icon(Icons.person_outline, size: 14, color: _grayText),
|
||||
const SizedBox(width: 4),
|
||||
Text(
|
||||
record.sourceType == ContributionSourceType.personal
|
||||
? '本人参与'
|
||||
: record.sourceAccountSequence ?? '未知用户',
|
||||
style: TextStyle(fontSize: 13, color: _grayText),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
|
||||
// 第三行:详细信息
|
||||
|
|
@ -314,7 +315,7 @@ class _ContributionRecordsListPageState extends ConsumerState<ContributionRecord
|
|||
runSpacing: 4,
|
||||
children: [
|
||||
_buildInfoItem('棵数', '${record.treeCount}'),
|
||||
_buildInfoItem('基础算力', formatAmount(record.baseContribution)),
|
||||
_buildInfoItem('基础贡献值', formatAmount(record.baseContribution)),
|
||||
_buildInfoItem('分配比例', _formatPercent(record.distributionRate)),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
|
|
@ -341,14 +341,14 @@ class _PlantingRecordsPageState extends ConsumerState<PlantingRecordsPage> {
|
|||
),
|
||||
const SizedBox(height: 12),
|
||||
|
||||
// 第二行:参与数量 + 单个算力 + 总算力
|
||||
// 第二行:参与数量 + 单个贡献值 + 总贡献值
|
||||
Wrap(
|
||||
spacing: 12,
|
||||
runSpacing: 8,
|
||||
children: [
|
||||
_buildInfoItem('参与数量', '${record.treeCount}个'),
|
||||
_buildInfoItem('单个算力', formatAmount(record.contributionPerTree)),
|
||||
_buildInfoItem('总算力', formatAmount(record.totalContribution), isHighlight: true),
|
||||
_buildInfoItem('单个贡献值', formatAmount(record.contributionPerTree)),
|
||||
_buildInfoItem('总贡献值', formatAmount(record.totalContribution), isHighlight: true),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
|
|
|
|||
|
|
@ -84,10 +84,9 @@ class ProfilePage extends ConsumerWidget {
|
|||
|
||||
const SizedBox(height: 16),
|
||||
|
||||
// 账户设置
|
||||
_buildAccountSettings(context, user),
|
||||
|
||||
const SizedBox(height: 16),
|
||||
// 账户设置 - 2.0版本暂时隐藏
|
||||
// _buildAccountSettings(context, user),
|
||||
// const SizedBox(height: 16),
|
||||
|
||||
// 记录入口
|
||||
_buildRecordsSection(context),
|
||||
|
|
|
|||
|
|
@ -1383,7 +1383,7 @@ class _TransferBottomSheetState extends ConsumerState<_TransferBottomSheet> {
|
|||
: null,
|
||||
),
|
||||
child: Text(
|
||||
'划出到挖矿账户',
|
||||
'划出到分配账户',
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 13,
|
||||
|
|
@ -1413,7 +1413,7 @@ class _TransferBottomSheetState extends ConsumerState<_TransferBottomSheet> {
|
|||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
_direction == 0 ? '挖矿账户' : '交易账户',
|
||||
_direction == 0 ? '分配账户' : '交易账户',
|
||||
style: TextStyle(fontSize: 12, color: grayText),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
|
|
@ -1434,7 +1434,7 @@ class _TransferBottomSheetState extends ConsumerState<_TransferBottomSheet> {
|
|||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
Text(
|
||||
_direction == 0 ? '交易账户' : '挖矿账户',
|
||||
_direction == 0 ? '交易账户' : '分配账户',
|
||||
style: TextStyle(fontSize: 12, color: grayText),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
|
|
@ -1556,7 +1556,7 @@ class _TransferBottomSheetState extends ConsumerState<_TransferBottomSheet> {
|
|||
),
|
||||
)
|
||||
: Text(
|
||||
_direction == 0 ? '划入交易账户' : '划出到挖矿账户',
|
||||
_direction == 0 ? '划入交易账户' : '划出到分配账户',
|
||||
style: const TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.bold,
|
||||
|
|
|
|||
Loading…
Reference in New Issue