From 439dcb95acc95b3b4b6a0224f5fb741803f9f0bb Mon Sep 17 00:00:00 2001 From: hailin Date: Sat, 3 Jan 2026 23:44:16 -0800 Subject: [PATCH] =?UTF-8?q?feat(mobile-app):=20rename=20"=E7=A4=BE?= =?UTF-8?q?=E5=8C=BA"=20to=20"=E9=83=A8=E9=97=A8"=20in=20profile=20page=20?= =?UTF-8?q?and=20add=20SPECIAL=5FDEDUCTION=20display=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change all "社区" labels to "部门" in profile page (所属部门, 上级部门, 下级部门, 部门权益考核, 部门贡献奖励) - Add SPECIAL_DEDUCTION entry type display name as "面对面结算" in ledger 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../lib/core/services/wallet_service.dart | 1 + .../presentation/pages/profile_page.dart | 28 +++++++++---------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/frontend/mobile-app/lib/core/services/wallet_service.dart b/frontend/mobile-app/lib/core/services/wallet_service.dart index 6d7e93be..505dad3c 100644 --- a/frontend/mobile-app/lib/core/services/wallet_service.dart +++ b/frontend/mobile-app/lib/core/services/wallet_service.dart @@ -1160,6 +1160,7 @@ class LedgerEntry { 'FREEZE': '冻结', 'UNFREEZE': '解冻', 'SYSTEM_ALLOCATION': '系统分配', + 'SPECIAL_DEDUCTION': '面对面结算', }; return nameMap[entryType] ?? entryType; } diff --git a/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart b/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart index 119bf62c..28282347 100644 --- a/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart +++ b/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart @@ -1722,18 +1722,18 @@ class _ProfilePageState extends ConsumerState { child: Row( crossAxisAlignment: CrossAxisAlignment.start, children: [ - // 左列:推荐人序列号、所属社区、上级社区、下级社区 + // 左列:推荐人序列号、所属部门、上级部门、下级部门 Expanded( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ _buildInfoItem('推荐人的序列号', _referrerSerial), const SizedBox(height: 12), - _buildInfoItem('所属社区', _community), + _buildInfoItem('所属部门', _community), const SizedBox(height: 12), - _buildInfoItem('上级社区', _parentCommunity), + _buildInfoItem('上级部门', _parentCommunity), const SizedBox(height: 12), - _buildInfoItem('下级社区', _childCommunity), + _buildInfoItem('下级部门', _childCommunity), ], ), ), @@ -1786,10 +1786,10 @@ class _ProfilePageState extends ConsumerState { ); } - /// 构建社区/省份标签 + /// 构建部门/省份标签 Widget _buildCommunityLabel() { return const Text( - '社区 / 省份', + '部门 / 省份', style: TextStyle( fontSize: 16, fontFamily: 'Inter', @@ -3493,9 +3493,9 @@ class _ProfilePageState extends ConsumerState { ); } - /// 构建社区权益考核 + /// 构建部门权益考核 Widget _buildCommunityAssessment() { - // 如果没有社区授权,显示红色提示信息 + // 如果没有部门授权,显示红色提示信息 if (!_hasCommunityAuth) { return Container( padding: const EdgeInsets.all(16), @@ -3514,7 +3514,7 @@ class _ProfilePageState extends ConsumerState { mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ const Text( - '社区权益考核', + '部门权益考核', style: TextStyle( fontSize: 18, fontFamily: 'Inter', @@ -3543,7 +3543,7 @@ class _ProfilePageState extends ConsumerState { ), const SizedBox(height: 15), const Text( - '暂无社区授权', + '暂无部门授权', style: TextStyle( fontSize: 14, fontFamily: 'Inter', @@ -3554,7 +3554,7 @@ class _ProfilePageState extends ConsumerState { ), const SizedBox(height: 8), const Text( - '请联系管理员申请社区授权', + '请联系管理员申请部门授权', style: TextStyle( fontSize: 12, fontFamily: 'Inter', @@ -3601,7 +3601,7 @@ class _ProfilePageState extends ConsumerState { mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ const Text( - '社区权益考核', + '部门权益考核', style: TextStyle( fontSize: 18, fontFamily: 'Inter', @@ -3704,11 +3704,11 @@ class _ProfilePageState extends ConsumerState { ), ), const SizedBox(height: 16), - // 社区贡献奖励 + // 部门贡献奖励 Row( children: [ const Text( - '社区贡献奖励', + '部门贡献奖励', style: TextStyle( fontSize: 14, fontFamily: 'Inter',