fix: 首页组合显示收益率标签
This commit is contained in:
parent
393ec7cfe7
commit
69cf5a614a
@ -116,7 +116,7 @@
|
||||
<text class="data-val">{{ getCurrencySymbol(holding.currency) }}{{ (holding.value || 0).toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) }}</text>
|
||||
</view>
|
||||
<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>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user