fix(mobile-app): 排名详情页隐藏敏感统计字段

火柴人排名详情页 (UserProfilePage) 暂时隐藏以下显示元素(代码保留,注释隐藏):
- 统计卡片:引荐数、同伴数、本人认种数(仅保留"同伴认种")
- 基本信息卡片:用户ID (accountSequence)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-04 17:41:11 -08:00
parent d075853a7f
commit f13814e577
1 changed files with 21 additions and 19 deletions

View File

@ -240,7 +240,7 @@ class _UserProfilePageState extends ConsumerState<UserProfilePage> {
_buildInfoCard(
title: '基本信息',
children: [
_buildInfoRow('用户ID', profile.accountSequence),
// _buildInfoRow('用户ID', profile.accountSequence), //
_buildInfoRow('注册时间', _formatDate(profile.registeredAtDateTime)),
if (profile.inviterNickname != null)
_buildInfoRow('引荐人', profile.inviterNickname!),
@ -390,24 +390,26 @@ class _UserProfilePageState extends ConsumerState<UserProfilePage> {
),
child: Row(
children: [
_buildStatItem(
label: '引荐',
value: '${profile.directReferralCount}',
color: const Color(0xFF4CAF50),
),
_buildStatDivider(),
_buildStatItem(
label: '同伴',
value: '${profile.umbrellaUserCount}',
color: const Color(0xFF2196F3),
),
_buildStatDivider(),
_buildStatItem(
label: '本人认种',
value: '${profile.personalPlantingCount}',
color: const Color(0xFF8BC34A),
),
_buildStatDivider(),
// --- ---
// _buildStatItem(
// label: '引荐',
// value: '${profile.directReferralCount}',
// color: const Color(0xFF4CAF50),
// ),
// _buildStatDivider(),
// _buildStatItem(
// label: '同伴',
// value: '${profile.umbrellaUserCount}',
// color: const Color(0xFF2196F3),
// ),
// _buildStatDivider(),
// _buildStatItem(
// label: '本人认种',
// value: '${profile.personalPlantingCount}',
// color: const Color(0xFF8BC34A),
// ),
// _buildStatDivider(),
// --- ---
_buildStatItem(
label: '同伴认种',
value: '${profile.teamPlantingCount}',