fix(c2c): 修正资产概览显示,C2C只涉及积分值不涉及积分股

左栏改回"可用积分值",右栏改为"冻结积分值",消除重复显示。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-31 09:23:59 -08:00
parent f60e3751b8
commit 0ad1136e48
1 changed files with 5 additions and 5 deletions

View File

@ -110,8 +110,8 @@ class _C2cMarketPageState extends ConsumerState<C2cMarketPage>
}
Widget _buildAssetOverview(BuildContext context, asset) {
final availableShares = asset?.availableShares ?? '0';
final availableCash = asset?.availableCash ?? '0';
final frozenCash = asset?.frozenCash ?? '0';
return Container(
margin: const EdgeInsets.all(16),
@ -127,12 +127,12 @@ class _C2cMarketPageState extends ConsumerState<C2cMarketPage>
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'可用积分',
'可用积分',
style: TextStyle(fontSize: 12, color: AppColors.textSecondaryOf(context)),
),
const SizedBox(height: 4),
Text(
formatAmount(availableShares),
formatAmount(availableCash),
style: const TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
@ -150,12 +150,12 @@ class _C2cMarketPageState extends ConsumerState<C2cMarketPage>
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'可用积分值',
'冻结积分值',
style: TextStyle(fontSize: 12, color: AppColors.textSecondaryOf(context)),
),
const SizedBox(height: 4),
Text(
formatAmount(availableCash),
formatAmount(frozenCash),
style: const TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,