refactor(frontend): rename '团队上级/下级' to '团队上/下贡献值'
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
747e8bfee1
commit
1c9bb1aa60
|
|
@ -87,7 +87,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),
|
||||||
// 贡献值失效倒计时
|
// 贡献值失效倒计时
|
||||||
|
|
@ -265,8 +265,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),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
@ -424,7 +424,7 @@ 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,
|
||||||
|
|
@ -433,7 +433,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,
|
||||||
|
|
@ -541,7 +541,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),
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ class HelpCenterPage extends StatelessWidget {
|
||||||
),
|
),
|
||||||
_FAQItem(
|
_FAQItem(
|
||||||
question: '团队收益如何计算?',
|
question: '团队收益如何计算?',
|
||||||
answer: '当您引荐的好友参与后,您将获得团队下级贡献值奖励。引荐的用户越多、参与数量越多,您的团队收益越高。',
|
answer: '当您引荐的好友参与后,您将获得团队下贡献值奖励。引荐的用户越多、参与数量越多,您的团队收益越高。',
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
|
|
|
||||||
|
|
@ -240,13 +240,13 @@ class ProfilePage extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
_buildDivider(),
|
_buildDivider(),
|
||||||
_buildStatItem(
|
_buildStatItem(
|
||||||
'团队下级',
|
'团队下贡献值',
|
||||||
stats?.unlockedLevelDepth.toString() ?? '0',
|
stats?.unlockedLevelDepth.toString() ?? '0',
|
||||||
isLoading,
|
isLoading,
|
||||||
),
|
),
|
||||||
_buildDivider(),
|
_buildDivider(),
|
||||||
_buildStatItem(
|
_buildStatItem(
|
||||||
'团队上级',
|
'团队上贡献值',
|
||||||
'15',
|
'15',
|
||||||
isLoading,
|
isLoading,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue