增加当日盈亏显示,完全对齐长桥持仓布局
This commit is contained in:
parent
dad59388ca
commit
9cbb7fabd6
@ -93,11 +93,18 @@
|
|||||||
<text class="weight-tag">比例 {{ (item.ratio || 0).toFixed(1) }}%</text>
|
<text class="weight-tag">比例 {{ (item.ratio || 0).toFixed(1) }}%</text>
|
||||||
<text class="cost-text">{{ getCurrencySymbol(portfolioData.currency) }}{{ (item.averagePrice || 0).toLocaleString('zh-CN', { minimumFractionDigits: 3, maximumFractionDigits: 3 }) }}</text>
|
<text class="cost-text">{{ getCurrencySymbol(portfolioData.currency) }}{{ (item.averagePrice || 0).toLocaleString('zh-CN', { minimumFractionDigits: 3, maximumFractionDigits: 3 }) }}</text>
|
||||||
</view>
|
</view>
|
||||||
<!-- 第四行:(空) + 持仓盈亏 -->
|
<!-- 第四行:(空) + 当日盈亏 -->
|
||||||
|
<view class="flex-row justify-between items-center mt-1">
|
||||||
|
<text></text>
|
||||||
|
<text class="pnl-val" :class="(item.changeAmount || 0) >= 0 ? 'text-red' : 'text-green'">
|
||||||
|
当日 {{ (item.changeAmount || 0) >= 0 ? '+' : '' }}{{ getCurrencySymbol(portfolioData.currency) }}{{ (item.changeAmount || 0).toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) }}
|
||||||
|
</text>
|
||||||
|
</view>
|
||||||
|
<!-- 第五行:(空) + 持仓盈亏 -->
|
||||||
<view class="flex-row justify-between items-center mt-1">
|
<view class="flex-row justify-between items-center mt-1">
|
||||||
<text></text>
|
<text></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 class="pnl-rate"> ({{ (item.profitRate || 0) >= 0 ? '+' : '' }}{{ (item.profitRate || 0).toFixed(2) }}%)</text>
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user