fix(ui): 优化"我的"页面已过期和结算栏的显示格式

将绿积分和贡献值的数字改为跟在标签后面显示:
- 已过期栏:绿积分:xxx,贡献值:xxx
- 可结算栏:可结算 (绿积分):xxx
- 已结算栏:已结算 (绿积分):xxx

🤖 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 2025-12-17 03:31:31 -08:00
parent 1cc27731d9
commit 76108328c3
1 changed files with 34 additions and 34 deletions

View File

@ -2090,11 +2090,10 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// USDT
Column(
crossAxisAlignment: CrossAxisAlignment.start,
Row(
children: [
const Text(
'可结算 (绿积分)',
'可结算 (绿积分)',
style: TextStyle(
fontSize: 14,
fontFamily: 'Inter',
@ -2106,10 +2105,10 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
Text(
_formatNumber(_settleableUsdt),
style: const TextStyle(
fontSize: 20,
fontSize: 14,
fontFamily: 'Inter',
fontWeight: FontWeight.w700,
height: 1.25,
height: 1.5,
color: Color(0xFF5D4037),
),
),
@ -2157,15 +2156,29 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
const Text(
'已结算 (绿积分)',
style: TextStyle(
fontSize: 14,
fontFamily: 'Inter',
fontWeight: FontWeight.w500,
height: 1.5,
color: Color(0xCC5D4037),
),
Row(
children: [
const Text(
'已结算 (绿积分)',
style: TextStyle(
fontSize: 14,
fontFamily: 'Inter',
fontWeight: FontWeight.w500,
height: 1.5,
color: Color(0xCC5D4037),
),
),
Text(
_formatNumber(_settledUsdt),
style: const TextStyle(
fontSize: 14,
fontFamily: 'Inter',
fontWeight: FontWeight.w700,
height: 1.5,
color: Color(0xFF5D4037),
),
),
],
),
GestureDetector(
onTap: _onSettlement,
@ -2190,17 +2203,6 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
),
],
),
const SizedBox(height: 4),
Text(
_formatNumber(_settledUsdt),
style: const TextStyle(
fontSize: 20,
fontFamily: 'Inter',
fontWeight: FontWeight.w700,
height: 1.25,
color: Color(0xFF5D4037),
),
),
],
),
);
@ -2423,8 +2425,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
),
const SizedBox(height: 7),
// USDT
Column(
crossAxisAlignment: CrossAxisAlignment.start,
Row(
children: [
const Text(
'绿积分:',
@ -2439,19 +2440,18 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
Text(
_formatNumber(_expiredUsdt),
style: const TextStyle(
fontSize: 20,
fontSize: 14,
fontFamily: 'Inter',
fontWeight: FontWeight.w700,
height: 1.25,
height: 1.5,
color: Color(0xFF5D4037),
),
),
],
),
const SizedBox(height: 11),
const SizedBox(height: 8),
//
Column(
crossAxisAlignment: CrossAxisAlignment.start,
Row(
children: [
const Text(
'贡献值:',
@ -2466,10 +2466,10 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
Text(
_formatNumber(_expiredPower),
style: const TextStyle(
fontSize: 20,
fontSize: 14,
fontFamily: 'Inter',
fontWeight: FontWeight.w700,
height: 1.25,
height: 1.5,
color: Color(0xFF5D4037),
),
),