优化组合明细页:持仓盈亏增加收益率百分比显示,字段更简洁
This commit is contained in:
parent
6ab8e4b308
commit
10c0de69a2
@ -92,7 +92,7 @@
|
|||||||
|
|
||||||
<view class="pos-bottom">
|
<view class="pos-bottom">
|
||||||
<view class="pnl-item">
|
<view class="pnl-item">
|
||||||
<text class="pnl-label">持仓成本</text>
|
<text class="pnl-label">成本价</text>
|
||||||
<text class="pnl-val">
|
<text class="pnl-val">
|
||||||
{{ getCurrencySymbol(portfolioData.currency) }}{{ (item.averagePrice || 0).toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) }}
|
{{ getCurrencySymbol(portfolioData.currency) }}{{ (item.averagePrice || 0).toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) }}
|
||||||
</text>
|
</text>
|
||||||
@ -101,6 +101,7 @@
|
|||||||
<text class="pnl-label">持仓盈亏</text>
|
<text class="pnl-label">持仓盈亏</text>
|
||||||
<text class="pnl-val" :class="(item.profit || 0) >= 0 ? 'text-red' : 'text-green'">
|
<text class="pnl-val" :class="(item.profit || 0) >= 0 ? 'text-red' : 'text-green'">
|
||||||
{{ (item.profit || 0) >= 0 ? '+' : '' }}{{ getCurrencySymbol(portfolioData.currency) }}{{ (item.profit || 0).toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) }}
|
{{ (item.profit || 0) >= 0 ? '+' : '' }}{{ getCurrencySymbol(portfolioData.currency) }}{{ (item.profit || 0).toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) }}
|
||||||
|
<text class="pnl-rate"> ({{ (item.profitRate || 0) >= 0 ? '+' : '' }}{{ (item.profitRate || 0).toFixed(2) }}%)</text>
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user