|
@@ -14,29 +14,31 @@
|
|
|
<tr>
|
|
<tr>
|
|
|
<td>
|
|
<td>
|
|
|
<span class="text-small">账户权益(USDT)</span>
|
|
<span class="text-small">账户权益(USDT)</span>
|
|
|
- <span>{{ accountItem.balance }}</span>
|
|
|
|
|
|
|
+ <span>{{ accountItem.balance.toFixed(accountItem.currencydecimalplace) }}</span>
|
|
|
</td>
|
|
</td>
|
|
|
<td>
|
|
<td>
|
|
|
<span class="text-small">浮动盈亏</span>
|
|
<span class="text-small">浮动盈亏</span>
|
|
|
- <span>{{ formatDecimal(accountItem.profitLoss) }}</span>
|
|
|
|
|
|
|
+ <span :class="handlePriceColor(accountItem.profitLoss)">{{ accountItem.profitLoss.toFixed(accountItem.currencydecimalplace) }}</span>
|
|
|
</td>
|
|
</td>
|
|
|
<td>
|
|
<td>
|
|
|
<span class="text-small">风险率</span>
|
|
<span class="text-small">风险率</span>
|
|
|
- <span :class="accountItem.hazardRatioColor">{{ parsePercent(accountItem.hazardRatio) }}</span>
|
|
|
|
|
|
|
+ <span :class="accountItem.hazardRatioColor">
|
|
|
|
|
+ {{ parsePercent(accountItem.hazardRatio) }}
|
|
|
|
|
+ </span>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
<tr>
|
|
<tr>
|
|
|
<td>
|
|
<td>
|
|
|
<span class="text-small">可用(USDT)</span>
|
|
<span class="text-small">可用(USDT)</span>
|
|
|
- <span>{{ accountItem.avaiableBalance }}</span>
|
|
|
|
|
|
|
+ <span>{{ accountItem.avaiableBalance.toFixed(accountItem.currencydecimalplace) }}</span>
|
|
|
</td>
|
|
</td>
|
|
|
<td>
|
|
<td>
|
|
|
<span class="text-small">占用(USDT)</span>
|
|
<span class="text-small">占用(USDT)</span>
|
|
|
- <span>{{ accountItem.usedmargin }}</span>
|
|
|
|
|
|
|
+ <span>{{ accountItem.usedmargin.toFixed(accountItem.currencydecimalplace) }}</span>
|
|
|
</td>
|
|
</td>
|
|
|
<td>
|
|
<td>
|
|
|
<span class="text-small">冻结(USDT)</span>
|
|
<span class="text-small">冻结(USDT)</span>
|
|
|
- <span>{{ accountItem.freezeMargin }}</span>
|
|
|
|
|
|
|
+ <span>{{ accountItem.freezeMargin.toFixed(accountItem.currencydecimalplace) }}</span>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
</tbody>
|
|
</tbody>
|
|
@@ -70,7 +72,7 @@
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef, computed } from 'vue'
|
|
import { shallowRef, computed } from 'vue'
|
|
|
import { Cell, CellGroup, Tab, Tabs, Grid, GridItem, ActionSheet } from 'vant'
|
|
import { Cell, CellGroup, Tab, Tabs, Grid, GridItem, ActionSheet } from 'vant'
|
|
|
-import { formatDecimal,parsePercent } from '@/filters'
|
|
|
|
|
|
|
+import { handlePriceColor, parsePercent } from '@/filters'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { useAccountStore, useFuturesStore } from '@/stores'
|
|
import { useAccountStore, useFuturesStore } from '@/stores'
|
|
|
import ContractOrder from '../components/order/index.vue'
|
|
import ContractOrder from '../components/order/index.vue'
|