|
|
@@ -26,18 +26,36 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="bank">
|
|
|
- <div class="bank-item">
|
|
|
- <span>余额</span>
|
|
|
- <span>{{ currentAccount.currentbalance?.toFixed(2) ?? '0.00' }}</span>
|
|
|
- </div>
|
|
|
- <div class="bank-item">
|
|
|
- <span>预扣</span>
|
|
|
- <span>{{ currentAccount.freezeMargin?.toFixed(2) }}</span>
|
|
|
- </div>
|
|
|
- <div class="bank-item">
|
|
|
- <span>可用</span>
|
|
|
- <span>{{ currentAccount.avaiableMoney?.toFixed(2) }}</span>
|
|
|
- </div>
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <span>余额</span>
|
|
|
+ <span>{{ currentAccount.currentbalance?.toFixed(2) }}</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>净值</span>
|
|
|
+ <span>{{ currentAccount.hazardValue?.toFixed(2) }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <span>预扣</span>
|
|
|
+ <span>{{ currentAccount.freezeMargin?.toFixed(2) }}</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>占用</span>
|
|
|
+ <span>{{ currentAccount.usedmargin?.toFixed(2) }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <span>可用</span>
|
|
|
+ <span>{{ currentAccount.avaiableMoney?.toFixed(2) }}</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>风险率</span>
|
|
|
+ <span>{{ parsePercent(currentAccount.hazardRatio) }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
</div>
|
|
|
<div class="button">
|
|
|
<Button type="danger" size="small" round @click="doInOutMoney('0')">入金</Button>
|
|
|
@@ -50,6 +68,9 @@
|
|
|
<li @click="routerTo('order-position')">
|
|
|
<Iconfont label-direction="bottom" icon="g-icon-position--line">我的持仓</Iconfont>
|
|
|
</li>
|
|
|
+ <li @click="routerTo('order-inout')">
|
|
|
+ <Iconfont label-direction="bottom" icon="g-icon-inout--line">持仓过户</Iconfont>
|
|
|
+ </li>
|
|
|
<li @click="routerTo('order-list')">
|
|
|
<Iconfont label-direction="bottom" icon="g-icon-order--line">我的订单</Iconfont>
|
|
|
</li>
|
|
|
@@ -119,6 +140,7 @@
|
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef, onMounted, onActivated, computed } from 'vue'
|
|
|
import { Cell, CellGroup, Button, Icon } from 'vant'
|
|
|
+import { parsePercent } from '@/filters'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { AuthStatus } from '@/constants/account'
|