|
@@ -40,7 +40,7 @@
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef, defineAsyncComponent, computed } from 'vue'
|
|
import { shallowRef, defineAsyncComponent, computed } from 'vue'
|
|
|
-import { Tab, Tabs, Button, showToast,Empty } from 'vant'
|
|
|
|
|
|
|
+import { Tab, Tabs, Button, showToast, Empty } from 'vant'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
import { useComponent } from '@/hooks/component'
|
|
@@ -82,8 +82,9 @@ const { dataList: protocolList } = useRequest(queryMdUserSwapProtocol, {
|
|
|
|
|
|
|
|
/// 估算价格
|
|
/// 估算价格
|
|
|
const estimateprice = (row: Model.TjmdTradeOrderDetailRsp) => {
|
|
const estimateprice = (row: Model.TjmdTradeOrderDetailRsp) => {
|
|
|
- const decimalplace = (item.decimalplace ?? 2.0)
|
|
|
|
|
- return formatDecimal((row.marketmaxsub + (quote.value?.last ?? 0.0)), decimalplace)
|
|
|
|
|
|
|
+ const { last = 0, presettle = 0 } = quote.value ?? {}
|
|
|
|
|
+ const value = row.marketmaxsub + (last || presettle)
|
|
|
|
|
+ return formatDecimal(value, item.decimalplace)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const isDisable = (row: Model.TjmdTradeOrderDetailRsp) => {
|
|
const isDisable = (row: Model.TjmdTradeOrderDetailRsp) => {
|