refactor(ui): 将"个人"替换为"本人"
- team_tree_widget.dart: 节点详情弹窗中"个人参与"改为"本人参与" - team_page.dart: 统计卡片中"个人参与"改为"本人参与" - contribution_page.dart: 贡献值统计中"个人贡献值"改为"本人贡献值","个人参与产生的贡献值"改为"本人参与产生的贡献值" - contribution_records_page.dart: 筛选标签"个人"改为"本人",来源类型标签"个人参与"改为"本人参与" Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
9c705d7478
commit
728497afc1
|
|
@ -263,7 +263,7 @@ class ContributionPage extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
_buildStatColumn(context, '个人贡献值', contribution?.personalContribution, isLoading, false, hideAmounts),
|
_buildStatColumn(context, '本人贡献值', contribution?.personalContribution, isLoading, false, hideAmounts),
|
||||||
_buildStatColumn(context, '同伴下贡献值', contribution?.teamLevelContribution, isLoading, true, hideAmounts),
|
_buildStatColumn(context, '同伴下贡献值', contribution?.teamLevelContribution, isLoading, true, hideAmounts),
|
||||||
_buildStatColumn(context, '同伴上贡献值', contribution?.teamBonusContribution, isLoading, true, hideAmounts),
|
_buildStatColumn(context, '同伴上贡献值', contribution?.teamBonusContribution, isLoading, true, hideAmounts),
|
||||||
],
|
],
|
||||||
|
|
@ -419,7 +419,7 @@ class ContributionPage extends ConsumerWidget {
|
||||||
icon: Icons.eco_outlined,
|
icon: Icons.eco_outlined,
|
||||||
iconColor: _orange,
|
iconColor: _orange,
|
||||||
title: '本人',
|
title: '本人',
|
||||||
subtitle: '个人参与产生的贡献值',
|
subtitle: '本人参与产生的贡献值',
|
||||||
amount: contribution?.personalContribution ?? '0',
|
amount: contribution?.personalContribution ?? '0',
|
||||||
hideAmounts: hideAmounts,
|
hideAmounts: hideAmounts,
|
||||||
),
|
),
|
||||||
|
|
@ -479,7 +479,7 @@ class ContributionPage extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
const SizedBox(height: 2),
|
const SizedBox(height: 2),
|
||||||
ShimmerText(
|
ShimmerText(
|
||||||
placeholder: '个人参与产生的贡献值',
|
placeholder: '本人参与产生的贡献值',
|
||||||
style: TextStyle(fontSize: 12, color: AppColors.textSecondaryOf(context)),
|
style: TextStyle(fontSize: 12, color: AppColors.textSecondaryOf(context)),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ class _ContributionRecordsListPageState extends ConsumerState<ContributionRecord
|
||||||
children: [
|
children: [
|
||||||
_buildFilterChip('全部', null),
|
_buildFilterChip('全部', null),
|
||||||
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),
|
||||||
|
|
@ -383,7 +383,7 @@ class _ContributionRecordsListPageState extends ConsumerState<ContributionRecord
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case ContributionSourceType.personal:
|
case ContributionSourceType.personal:
|
||||||
label = '个人参与';
|
label = '本人参与';
|
||||||
bgColor = _orange.withOpacity(0.1);
|
bgColor = _orange.withOpacity(0.1);
|
||||||
textColor = _orange;
|
textColor = _orange;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -195,7 +195,7 @@ class _TeamPageState extends ConsumerState<TeamPage> {
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||||
children: [
|
children: [
|
||||||
_buildStatItem(
|
_buildStatItem(
|
||||||
'个人参与',
|
'本人参与',
|
||||||
'${_rootNode?.personalPlantingCount ?? 0} 棵',
|
'${_rootNode?.personalPlantingCount ?? 0} 棵',
|
||||||
Icons.eco,
|
Icons.eco,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -472,8 +472,8 @@ class _NodeDetailsSheet extends StatelessWidget {
|
||||||
_buildDetailRow('序列号', node.accountSequence),
|
_buildDetailRow('序列号', node.accountSequence),
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
|
|
||||||
// 个人参与数
|
// 本人参与数
|
||||||
_buildDetailRow('个人参与', '${node.personalPlantingCount} 棵'),
|
_buildDetailRow('本人参与', '${node.personalPlantingCount} 棵'),
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
|
|
||||||
// 同伴参与数
|
// 同伴参与数
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue