From 9c705d7478959033353f705a8921cdfb4fb66308 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 20 Jan 2026 04:24:54 -0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E5=B0=86UI=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E4=B8=8A=E6=89=80=E6=9C=89"=E5=9B=A2=E9=98=9F"=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=E4=B8=BA"=E5=90=8C=E4=BC=B4"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .../lib/domain/entities/contribution_record.dart | 4 ++-- .../pages/contribution/contribution_page.dart | 10 +++++----- .../pages/contribution/contribution_records_page.dart | 8 ++++---- .../lib/presentation/pages/profile/about_page.dart | 4 ++-- .../presentation/pages/profile/help_center_page.dart | 6 +++--- .../lib/presentation/pages/profile/profile_page.dart | 8 ++++---- .../lib/presentation/pages/profile/team_page.dart | 4 ++-- .../lib/presentation/widgets/team_tree_widget.dart | 4 ++-- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/frontend/mining-app/lib/domain/entities/contribution_record.dart b/frontend/mining-app/lib/domain/entities/contribution_record.dart index 70002a69..3cf993d8 100644 --- a/frontend/mining-app/lib/domain/entities/contribution_record.dart +++ b/frontend/mining-app/lib/domain/entities/contribution_record.dart @@ -50,9 +50,9 @@ class ContributionRecord extends Equatable { if (levelDepth == 1) { return '引荐奖励'; } - return '团队奖励($levelDepth级)'; + return '同伴奖励($levelDepth级)'; case ContributionSourceType.teamBonus: - return '团队额外奖励'; + return '同伴额外奖励'; } } diff --git a/frontend/mining-app/lib/presentation/pages/contribution/contribution_page.dart b/frontend/mining-app/lib/presentation/pages/contribution/contribution_page.dart index be8df5a6..8b4cd0c8 100644 --- a/frontend/mining-app/lib/presentation/pages/contribution/contribution_page.dart +++ b/frontend/mining-app/lib/presentation/pages/contribution/contribution_page.dart @@ -264,8 +264,8 @@ class ContributionPage extends ConsumerWidget { child: Row( children: [ _buildStatColumn(context, '个人贡献值', contribution?.personalContribution, isLoading, false, hideAmounts), - _buildStatColumn(context, '团队下贡献值', contribution?.teamLevelContribution, isLoading, true, hideAmounts), - _buildStatColumn(context, '团队上贡献值', contribution?.teamBonusContribution, isLoading, true, hideAmounts), + _buildStatColumn(context, '同伴下贡献值', contribution?.teamLevelContribution, isLoading, true, hideAmounts), + _buildStatColumn(context, '同伴上贡献值', contribution?.teamBonusContribution, isLoading, true, hideAmounts), ], ), ); @@ -429,7 +429,7 @@ class ContributionPage extends ConsumerWidget { isDark: isDark, icon: Icons.groups_outlined, iconColor: Colors.blue, - title: '团队下贡献值', + title: '同伴下贡献值', subtitle: '股行用户引荐', amount: contribution?.teamLevelContribution ?? '0', hideAmounts: hideAmounts, @@ -440,7 +440,7 @@ class ContributionPage extends ConsumerWidget { isDark: isDark, icon: Icons.card_giftcard_outlined, iconColor: Colors.purple, - title: '团队上贡献值', + title: '同伴上贡献值', subtitle: '满足条件后获得的额外奖励贡献值', amount: contribution?.teamBonusContribution ?? '0', hideAmounts: hideAmounts, @@ -550,7 +550,7 @@ class ContributionPage extends ConsumerWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - '团队下贡献值统计', + '同伴下贡献值统计', style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: AppColors.textPrimaryOf(context)), ), const SizedBox(height: 16), diff --git a/frontend/mining-app/lib/presentation/pages/contribution/contribution_records_page.dart b/frontend/mining-app/lib/presentation/pages/contribution/contribution_records_page.dart index 9f8b47ad..cb752c67 100644 --- a/frontend/mining-app/lib/presentation/pages/contribution/contribution_records_page.dart +++ b/frontend/mining-app/lib/presentation/pages/contribution/contribution_records_page.dart @@ -101,9 +101,9 @@ class _ContributionRecordsListPageState extends ConsumerState { const SizedBox(height: 12), _buildFeatureItem( icon: Icons.people, - title: '团队收益', - description: '邀请好友,获得团队贡献值奖励', + title: '同伴收益', + description: '邀请好友,获得同伴贡献值奖励', ), ], ), diff --git a/frontend/mining-app/lib/presentation/pages/profile/help_center_page.dart b/frontend/mining-app/lib/presentation/pages/profile/help_center_page.dart index 93ae1ccb..c84a24e1 100644 --- a/frontend/mining-app/lib/presentation/pages/profile/help_center_page.dart +++ b/frontend/mining-app/lib/presentation/pages/profile/help_center_page.dart @@ -82,14 +82,14 @@ class HelpCenterPage extends StatelessWidget { ), ]), const SizedBox(height: 16), - _buildSection('团队收益', [ + _buildSection('同伴收益', [ _FAQItem( question: '如何邀请好友?', answer: '您的手机号就是您的邀请码。好友注册时填写您的手机号作为邀请人,即可建立引荐关系。', ), _FAQItem( - question: '团队收益如何计算?', - answer: '当您引荐的好友参与后,您将获得团队下贡献值奖励。引荐的用户越多、参与数量越多,您的团队收益越高。', + question: '同伴收益如何计算?', + answer: '当您引荐的好友参与后,您将获得同伴下贡献值奖励。引荐的用户越多、参与数量越多,您的同伴收益越高。', ), ]), const SizedBox(height: 16), diff --git a/frontend/mining-app/lib/presentation/pages/profile/profile_page.dart b/frontend/mining-app/lib/presentation/pages/profile/profile_page.dart index 35ff5041..58158141 100644 --- a/frontend/mining-app/lib/presentation/pages/profile/profile_page.dart +++ b/frontend/mining-app/lib/presentation/pages/profile/profile_page.dart @@ -265,14 +265,14 @@ class ProfilePage extends ConsumerWidget { _buildDivider(context), _buildStatItem( context, - '团队下贡献值', + '同伴下贡献值', stats?.unlockedLevelDepth.toString() ?? '0', isLoading, ), _buildDivider(context), _buildStatItem( context, - '团队上贡献值', + '同伴上贡献值', '15', isLoading, ), @@ -476,7 +476,7 @@ class ProfilePage extends ConsumerWidget { Padding( padding: const EdgeInsets.fromLTRB(16, 16, 16, 8), child: Text( - '团队与收益', + '同伴与收益', style: TextStyle( fontSize: 16, fontWeight: FontWeight.bold, @@ -487,7 +487,7 @@ class ProfilePage extends ConsumerWidget { _buildSettingItem( context: context, icon: Icons.people, - label: '我的团队', + label: '我的同伴', onTap: () => context.push(Routes.myTeam), showDivider: false, ), diff --git a/frontend/mining-app/lib/presentation/pages/profile/team_page.dart b/frontend/mining-app/lib/presentation/pages/profile/team_page.dart index 799fe878..6e56c484 100644 --- a/frontend/mining-app/lib/presentation/pages/profile/team_page.dart +++ b/frontend/mining-app/lib/presentation/pages/profile/team_page.dart @@ -71,7 +71,7 @@ class _TeamPageState extends ConsumerState { backgroundColor: _bgGray, appBar: AppBar( title: const Text( - '我的团队', + '我的同伴', style: TextStyle( fontSize: 18, fontWeight: FontWeight.bold, @@ -201,7 +201,7 @@ class _TeamPageState extends ConsumerState { ), _buildDivider(), _buildStatItem( - '团队参与', + '同伴参与', '${_rootNode?.teamPlantingCount ?? 0} 棵', Icons.groups, ), diff --git a/frontend/mining-app/lib/presentation/widgets/team_tree_widget.dart b/frontend/mining-app/lib/presentation/widgets/team_tree_widget.dart index 7d715a9e..a2778ada 100644 --- a/frontend/mining-app/lib/presentation/widgets/team_tree_widget.dart +++ b/frontend/mining-app/lib/presentation/widgets/team_tree_widget.dart @@ -476,8 +476,8 @@ class _NodeDetailsSheet extends StatelessWidget { _buildDetailRow('个人参与', '${node.personalPlantingCount} 棵'), const SizedBox(height: 12), - // 团队参与数 - _buildDetailRow('团队参与', '${node.teamPlantingCount} 棵'), + // 同伴参与数 + _buildDetailRow('同伴参与', '${node.teamPlantingCount} 棵'), const SizedBox(height: 12), // 引荐人数