fix(mobile-app): 排名详情页隐藏敏感统计字段
火柴人排名详情页 (UserProfilePage) 暂时隐藏以下显示元素(代码保留,注释隐藏): - 统计卡片:引荐数、同伴数、本人认种数(仅保留"同伴认种") - 基本信息卡片:用户ID (accountSequence) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
d075853a7f
commit
f13814e577
|
|
@ -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}',
|
||||
|
|
|
|||
Loading…
Reference in New Issue