feat(mobile-app): rename "社区" to "部门" in profile page and add SPECIAL_DEDUCTION display name

- 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 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-03 23:44:16 -08:00
parent 083c0fd540
commit 439dcb95ac
2 changed files with 15 additions and 14 deletions

View File

@ -1160,6 +1160,7 @@ class LedgerEntry {
'FREEZE': '冻结',
'UNFREEZE': '解冻',
'SYSTEM_ALLOCATION': '系统分配',
'SPECIAL_DEDUCTION': '面对面结算',
};
return nameMap[entryType] ?? entryType;
}

View File

@ -1722,18 +1722,18 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
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<ProfilePage> {
);
}
/// /
/// /
Widget _buildCommunityLabel() {
return const Text(
'社区 / 省份',
'部门 / 省份',
style: TextStyle(
fontSize: 16,
fontFamily: 'Inter',
@ -3493,9 +3493,9 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
);
}
///
///
Widget _buildCommunityAssessment() {
//
//
if (!_hasCommunityAuth) {
return Container(
padding: const EdgeInsets.all(16),
@ -3514,7 +3514,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
const Text(
'社区权益考核',
'部门权益考核',
style: TextStyle(
fontSize: 18,
fontFamily: 'Inter',
@ -3543,7 +3543,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
),
const SizedBox(height: 15),
const Text(
'暂无社区授权',
'暂无部门授权',
style: TextStyle(
fontSize: 14,
fontFamily: 'Inter',
@ -3554,7 +3554,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
),
const SizedBox(height: 8),
const Text(
'请联系管理员申请社区授权',
'请联系管理员申请部门授权',
style: TextStyle(
fontSize: 12,
fontFamily: 'Inter',
@ -3601,7 +3601,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
const Text(
'社区权益考核',
'部门权益考核',
style: TextStyle(
fontSize: 18,
fontFamily: 'Inter',
@ -3704,11 +3704,11 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
),
),
const SizedBox(height: 16),
//
//
Row(
children: [
const Text(
'社区贡献奖励',
'部门贡献奖励',
style: TextStyle(
fontSize: 14,
fontFamily: 'Inter',