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