fix(mobile-app): display actual values in profile referral info card

- Show referrer serial number, community names, and company info
- Add _buildInfoItem helper for consistent label+value layout

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-09 00:10:11 -08:00
parent 20e0f6c953
commit 681f77fbf7
1 changed files with 40 additions and 56 deletions

View File

@ -558,83 +558,38 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// |
Row(
children: [
Expanded(
child: Text(
'推荐人的序列号:',
style: const TextStyle(
fontSize: 14,
fontFamily: 'Inter',
height: 1.5,
color: Color(0xCC5D4037),
),
),
child: _buildInfoItem('推荐人的序列号', _referrerSerial),
),
Expanded(
child: Text(
'下级社区:',
style: const TextStyle(
fontSize: 14,
fontFamily: 'Inter',
height: 1.5,
color: Color(0xCC5D4037),
),
),
child: _buildInfoItem('下级社区', _childCommunity),
),
],
),
const SizedBox(height: 4),
const SizedBox(height: 12),
// |
Row(
children: [
Expanded(
child: Text(
'所属社区:',
style: const TextStyle(
fontSize: 14,
fontFamily: 'Inter',
height: 1.5,
color: Color(0xCC5D4037),
),
),
child: _buildInfoItem('所属社区', _community),
),
Expanded(
child: Text(
'授权市公司:',
style: const TextStyle(
fontSize: 14,
fontFamily: 'Inter',
height: 1.5,
color: Color(0xCC5D4037),
),
),
child: _buildInfoItem('授权市公司', _cityCompany),
),
],
),
const SizedBox(height: 4),
const SizedBox(height: 12),
// |
Row(
children: [
Expanded(
child: Text(
'上级社区:',
style: const TextStyle(
fontSize: 14,
fontFamily: 'Inter',
height: 1.5,
color: Color(0xCC5D4037),
),
),
child: _buildInfoItem('上级社区', _parentCommunity),
),
Expanded(
child: Text(
'授权省公司:',
style: const TextStyle(
fontSize: 14,
fontFamily: 'Inter',
height: 1.5,
color: Color(0xCC5D4037),
),
),
child: _buildInfoItem('授权省公司', _provinceCompany),
),
],
),
@ -643,6 +598,35 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
);
}
/// +
Widget _buildInfoItem(String label, String value) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'$label:',
style: const TextStyle(
fontSize: 12,
fontFamily: 'Inter',
height: 1.5,
color: Color(0x995D4037),
),
),
const SizedBox(height: 2),
Text(
value,
style: const TextStyle(
fontSize: 14,
fontFamily: 'Inter',
fontWeight: FontWeight.w600,
height: 1.5,
color: Color(0xFF5D4037),
),
),
],
);
}
/// /
Widget _buildCommunityLabel() {
return const Text(