fix: 首页组合显示收益率标签

This commit is contained in:
claw_bot 2026-03-16 08:56:14 +00:00
parent 393ec7cfe7
commit 69cf5a614a

View File

@ -116,7 +116,7 @@
<text class="data-val">{{ getCurrencySymbol(holding.currency) }}{{ (holding.value || 0).toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) }}</text> <text class="data-val">{{ getCurrencySymbol(holding.currency) }}{{ (holding.value || 0).toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) }}</text>
</view> </view>
<view class="data-col align-right"> <view class="data-col align-right">
<text class="data-label">历史总变动</text> <text class="data-label">收益率</text>
<text class="data-val" :class="holding.returnType === 'positive' ? 'text-red' : 'text-green'">{{ (holding.returnRate || 0) >= 0 ? '+' : '' }}{{ holding.returnRate || 0 }}%</text> <text class="data-val" :class="holding.returnType === 'positive' ? 'text-red' : 'text-green'">{{ (holding.returnRate || 0) >= 0 ? '+' : '' }}{{ holding.returnRate || 0 }}%</text>
</view> </view>
</view> </view>