fix: 总盈亏百分比增加左边距,调小字体更协调

This commit is contained in:
claw_bot 2026-03-12 10:45:31 +00:00
parent d63813fbcd
commit 62246fef8d

View File

@ -25,7 +25,7 @@
<text class="stat-label">总盈亏</text>
<text class="stat-val" :class="(portfolioData.totalReturn || 0) >= 0 ? 'text-red' : 'text-green'">
{{ (portfolioData.totalReturn || 0) >= 0 ? '+' : '' }}{{ getCurrencySymbol(portfolioData.currency) }}{{ (portfolioData.totalReturn || 0).toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) }}
<text style="font-size: 24rpx; opacity: 0.9;"> ({{ (portfolioData.historicalChange || 0) >= 0 ? '+' : '' }}{{ (portfolioData.historicalChange || 0).toFixed(2) }}%)</text>
<text style="font-size: 22rpx; opacity: 0.8; margin-left: 8rpx;">({{ (portfolioData.historicalChange || 0) >= 0 ? '+' : '' }}{{ (portfolioData.historicalChange || 0).toFixed(2) }}%)</text>
</text>
</view>
<view class="stat-item align-right">