fix(ui): 将UI界面上所有"团队"替换为"同伴"
- team_tree_widget: 团队参与 → 同伴参与 - contribution_records_page: 团队下/上贡献值 → 同伴下/上贡献值 - about_page: 团队收益 → 同伴收益 - help_center_page: 团队收益/计算 → 同伴收益/计算 - contribution_page: 团队下/上贡献值 → 同伴下/上贡献值 - team_page: 我的团队 → 我的同伴, 团队参与 → 同伴参与 - profile_page: 团队与收益 → 同伴与收益, 我的团队 → 我的同伴 - contribution_record: 团队奖励/额外奖励 → 同伴奖励/额外奖励 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
21e536d829
commit
9c705d7478
|
|
@ -50,9 +50,9 @@ class ContributionRecord extends Equatable {
|
||||||
if (levelDepth == 1) {
|
if (levelDepth == 1) {
|
||||||
return '引荐奖励';
|
return '引荐奖励';
|
||||||
}
|
}
|
||||||
return '团队奖励($levelDepth级)';
|
return '同伴奖励($levelDepth级)';
|
||||||
case ContributionSourceType.teamBonus:
|
case ContributionSourceType.teamBonus:
|
||||||
return '团队额外奖励';
|
return '同伴额外奖励';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -264,8 +264,8 @@ 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),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
@ -429,7 +429,7 @@ class ContributionPage extends ConsumerWidget {
|
||||||
isDark: isDark,
|
isDark: isDark,
|
||||||
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,
|
||||||
|
|
@ -440,7 +440,7 @@ class ContributionPage extends ConsumerWidget {
|
||||||
isDark: isDark,
|
isDark: isDark,
|
||||||
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,
|
||||||
|
|
@ -550,7 +550,7 @@ class ContributionPage extends ConsumerWidget {
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'团队下贡献值统计',
|
'同伴下贡献值统计',
|
||||||
style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: AppColors.textPrimaryOf(context)),
|
style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: AppColors.textPrimaryOf(context)),
|
||||||
),
|
),
|
||||||
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;
|
||||||
|
|
|
||||||
|
|
@ -197,8 +197,8 @@ class _AboutPageState extends State<AboutPage> {
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
_buildFeatureItem(
|
_buildFeatureItem(
|
||||||
icon: Icons.people,
|
icon: Icons.people,
|
||||||
title: '团队收益',
|
title: '同伴收益',
|
||||||
description: '邀请好友,获得团队贡献值奖励',
|
description: '邀请好友,获得同伴贡献值奖励',
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -82,14 +82,14 @@ class HelpCenterPage extends StatelessWidget {
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
_buildSection('团队收益', [
|
_buildSection('同伴收益', [
|
||||||
_FAQItem(
|
_FAQItem(
|
||||||
question: '如何邀请好友?',
|
question: '如何邀请好友?',
|
||||||
answer: '您的手机号就是您的邀请码。好友注册时填写您的手机号作为邀请人,即可建立引荐关系。',
|
answer: '您的手机号就是您的邀请码。好友注册时填写您的手机号作为邀请人,即可建立引荐关系。',
|
||||||
),
|
),
|
||||||
_FAQItem(
|
_FAQItem(
|
||||||
question: '团队收益如何计算?',
|
question: '同伴收益如何计算?',
|
||||||
answer: '当您引荐的好友参与后,您将获得团队下贡献值奖励。引荐的用户越多、参与数量越多,您的团队收益越高。',
|
answer: '当您引荐的好友参与后,您将获得同伴下贡献值奖励。引荐的用户越多、参与数量越多,您的同伴收益越高。',
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
|
|
|
||||||
|
|
@ -265,14 +265,14 @@ class ProfilePage extends ConsumerWidget {
|
||||||
_buildDivider(context),
|
_buildDivider(context),
|
||||||
_buildStatItem(
|
_buildStatItem(
|
||||||
context,
|
context,
|
||||||
'团队下贡献值',
|
'同伴下贡献值',
|
||||||
stats?.unlockedLevelDepth.toString() ?? '0',
|
stats?.unlockedLevelDepth.toString() ?? '0',
|
||||||
isLoading,
|
isLoading,
|
||||||
),
|
),
|
||||||
_buildDivider(context),
|
_buildDivider(context),
|
||||||
_buildStatItem(
|
_buildStatItem(
|
||||||
context,
|
context,
|
||||||
'团队上贡献值',
|
'同伴上贡献值',
|
||||||
'15',
|
'15',
|
||||||
isLoading,
|
isLoading,
|
||||||
),
|
),
|
||||||
|
|
@ -476,7 +476,7 @@ class ProfilePage extends ConsumerWidget {
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.fromLTRB(16, 16, 16, 8),
|
padding: const EdgeInsets.fromLTRB(16, 16, 16, 8),
|
||||||
child: Text(
|
child: Text(
|
||||||
'团队与收益',
|
'同伴与收益',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
|
|
@ -487,7 +487,7 @@ class ProfilePage extends ConsumerWidget {
|
||||||
_buildSettingItem(
|
_buildSettingItem(
|
||||||
context: context,
|
context: context,
|
||||||
icon: Icons.people,
|
icon: Icons.people,
|
||||||
label: '我的团队',
|
label: '我的同伴',
|
||||||
onTap: () => context.push(Routes.myTeam),
|
onTap: () => context.push(Routes.myTeam),
|
||||||
showDivider: false,
|
showDivider: false,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ class _TeamPageState extends ConsumerState<TeamPage> {
|
||||||
backgroundColor: _bgGray,
|
backgroundColor: _bgGray,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: const Text(
|
title: const Text(
|
||||||
'我的团队',
|
'我的同伴',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
|
|
@ -201,7 +201,7 @@ class _TeamPageState extends ConsumerState<TeamPage> {
|
||||||
),
|
),
|
||||||
_buildDivider(),
|
_buildDivider(),
|
||||||
_buildStatItem(
|
_buildStatItem(
|
||||||
'团队参与',
|
'同伴参与',
|
||||||
'${_rootNode?.teamPlantingCount ?? 0} 棵',
|
'${_rootNode?.teamPlantingCount ?? 0} 棵',
|
||||||
Icons.groups,
|
Icons.groups,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -476,8 +476,8 @@ class _NodeDetailsSheet extends StatelessWidget {
|
||||||
_buildDetailRow('个人参与', '${node.personalPlantingCount} 棵'),
|
_buildDetailRow('个人参与', '${node.personalPlantingCount} 棵'),
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
|
|
||||||
// 团队参与数
|
// 同伴参与数
|
||||||
_buildDetailRow('团队参与', '${node.teamPlantingCount} 棵'),
|
_buildDetailRow('同伴参与', '${node.teamPlantingCount} 棵'),
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
|
|
||||||
// 引荐人数
|
// 引荐人数
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue