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