refactor(mining-app): rename team contribution labels
Update contribution page labels: - "团队层级" → "团队下级" - "团队奖励" → "团队上级" - "直推人数" → "引荐人数" - "已解锁奖励" → "已解锁上级" (with unit "档" → "级") - "已解锁层级" → "已解锁下级" - "直推及间推" → "引荐及间推" in subtitle Update contribution records page labels: - "团队层级" → "团队下级" - "团队奖励" → "团队上级" Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
84fa3e5e19
commit
cd938f4a34
|
|
@ -82,7 +82,7 @@ class ContributionPage extends ConsumerWidget {
|
||||||
// 贡献值明细(三类汇总)
|
// 贡献值明细(三类汇总)
|
||||||
_buildContributionDetailCard(context, ref, contribution, isLoading),
|
_buildContributionDetailCard(context, ref, contribution, isLoading),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
// 团队层级统计
|
// 团队下级统计
|
||||||
_buildTeamStatsCard(contribution, isLoading),
|
_buildTeamStatsCard(contribution, isLoading),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
// 贡献值失效倒计时
|
// 贡献值失效倒计时
|
||||||
|
|
@ -235,8 +235,8 @@ class ContributionPage extends ConsumerWidget {
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
_buildStatColumn('个人贡献值', contribution?.personalContribution, isLoading, false, hideAmounts),
|
_buildStatColumn('个人贡献值', contribution?.personalContribution, isLoading, false, hideAmounts),
|
||||||
_buildStatColumn('团队层级', contribution?.teamLevelContribution, isLoading, true, hideAmounts),
|
_buildStatColumn('团队下级', contribution?.teamLevelContribution, isLoading, true, hideAmounts),
|
||||||
_buildStatColumn('团队奖励', contribution?.teamBonusContribution, isLoading, true, hideAmounts),
|
_buildStatColumn('团队上级', contribution?.teamBonusContribution, isLoading, true, hideAmounts),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
@ -394,8 +394,8 @@ class ContributionPage extends ConsumerWidget {
|
||||||
_buildDetailSummaryRow(
|
_buildDetailSummaryRow(
|
||||||
icon: Icons.groups_outlined,
|
icon: Icons.groups_outlined,
|
||||||
iconColor: Colors.blue,
|
iconColor: Colors.blue,
|
||||||
title: '团队层级',
|
title: '团队下级',
|
||||||
subtitle: '直推及间推用户认种产生的贡献值',
|
subtitle: '引荐及间推用户认种产生的贡献值',
|
||||||
amount: contribution?.teamLevelContribution ?? '0',
|
amount: contribution?.teamLevelContribution ?? '0',
|
||||||
hideAmounts: hideAmounts,
|
hideAmounts: hideAmounts,
|
||||||
),
|
),
|
||||||
|
|
@ -403,7 +403,7 @@ class ContributionPage extends ConsumerWidget {
|
||||||
_buildDetailSummaryRow(
|
_buildDetailSummaryRow(
|
||||||
icon: Icons.card_giftcard_outlined,
|
icon: Icons.card_giftcard_outlined,
|
||||||
iconColor: Colors.purple,
|
iconColor: Colors.purple,
|
||||||
title: '团队奖励',
|
title: '团队上级',
|
||||||
subtitle: '满足条件后获得的额外奖励贡献值',
|
subtitle: '满足条件后获得的额外奖励贡献值',
|
||||||
amount: contribution?.teamBonusContribution ?? '0',
|
amount: contribution?.teamBonusContribution ?? '0',
|
||||||
hideAmounts: hideAmounts,
|
hideAmounts: hideAmounts,
|
||||||
|
|
@ -511,7 +511,7 @@ class ContributionPage extends ConsumerWidget {
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
const Text(
|
const Text(
|
||||||
'团队层级统计',
|
'团队下级统计',
|
||||||
style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: _darkText),
|
style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: _darkText),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
|
|
@ -519,16 +519,16 @@ class ContributionPage extends ConsumerWidget {
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
_buildTeamStatItem(
|
_buildTeamStatItem(
|
||||||
'直推人数',
|
'引荐人数',
|
||||||
contribution?.directReferralAdoptedCount.toString(),
|
contribution?.directReferralAdoptedCount.toString(),
|
||||||
'人',
|
'人',
|
||||||
isLoading,
|
isLoading,
|
||||||
),
|
),
|
||||||
const SizedBox(width: 16),
|
const SizedBox(width: 16),
|
||||||
_buildTeamStatItem(
|
_buildTeamStatItem(
|
||||||
'已解锁奖励',
|
'已解锁上级',
|
||||||
contribution?.unlockedBonusTiers.toString(),
|
contribution?.unlockedBonusTiers.toString(),
|
||||||
'档',
|
'级',
|
||||||
isLoading,
|
isLoading,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
@ -538,7 +538,7 @@ class ContributionPage extends ConsumerWidget {
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
_buildTeamStatItem(
|
_buildTeamStatItem(
|
||||||
'已解锁层级',
|
'已解锁下级',
|
||||||
contribution?.unlockedLevelDepth.toString(),
|
contribution?.unlockedLevelDepth.toString(),
|
||||||
'级',
|
'级',
|
||||||
isLoading,
|
isLoading,
|
||||||
|
|
|
||||||
|
|
@ -101,9 +101,9 @@ class _ContributionRecordsListPageState extends ConsumerState<ContributionRecord
|
||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
_buildFilterChip('个人', ContributionSourceType.personal),
|
_buildFilterChip('个人', ContributionSourceType.personal),
|
||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
_buildFilterChip('团队层级', ContributionSourceType.teamLevel),
|
_buildFilterChip('团队下级', ContributionSourceType.teamLevel),
|
||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
_buildFilterChip('团队奖励', ContributionSourceType.teamBonus),
|
_buildFilterChip('团队上级', ContributionSourceType.teamBonus),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
@ -388,12 +388,12 @@ class _ContributionRecordsListPageState extends ConsumerState<ContributionRecord
|
||||||
textColor = _orange;
|
textColor = _orange;
|
||||||
break;
|
break;
|
||||||
case ContributionSourceType.teamLevel:
|
case ContributionSourceType.teamLevel:
|
||||||
label = '团队层级';
|
label = '团队下级';
|
||||||
bgColor = Colors.blue.withOpacity(0.1);
|
bgColor = Colors.blue.withOpacity(0.1);
|
||||||
textColor = Colors.blue;
|
textColor = Colors.blue;
|
||||||
break;
|
break;
|
||||||
case ContributionSourceType.teamBonus:
|
case ContributionSourceType.teamBonus:
|
||||||
label = '团队奖励';
|
label = '团队上级';
|
||||||
bgColor = Colors.purple.withOpacity(0.1);
|
bgColor = Colors.purple.withOpacity(0.1);
|
||||||
textColor = Colors.purple;
|
textColor = Colors.purple;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue