|
|
@@ -42,7 +42,7 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { onMounted, onUnmounted, computed } from 'vue'
|
|
|
-import { parsePercent, handleNumberValue } from '@/filters'
|
|
|
+import { parsePercent, handleNumberValue, formatDecimal } from '@/filters'
|
|
|
import { useNavigation } from '../../../router/navigation'
|
|
|
import { useFuturesStore } from '@/stores'
|
|
|
import quoteSocket from '@/services/websocket/quote'
|
|
|
@@ -61,15 +61,15 @@ const dataList = computed(() => {
|
|
|
openedColor: e.openedColor,
|
|
|
lowestColor: e.lowestColor,
|
|
|
highestColor: e.highestColor,
|
|
|
- ask: handleNumberValue(e.ask),
|
|
|
- bid: handleNumberValue(e.bid),
|
|
|
- last: handleNumberValue(e.last),
|
|
|
- rise: handleNumberValue(e.rise.toFixed(e.decimalplace)),
|
|
|
+ ask: handleNumberValue(formatDecimal(e.ask, e.decimalplace)),
|
|
|
+ bid: handleNumberValue(formatDecimal(e.bid, e.decimalplace)),
|
|
|
+ last: handleNumberValue(formatDecimal(e.last, e.decimalplace)),
|
|
|
+ rise: handleNumberValue(formatDecimal(e.rise, e.decimalplace)),
|
|
|
change: parsePercent(e.change),
|
|
|
- opened: handleNumberValue(e.opened),
|
|
|
- presettle: handleNumberValue(e.presettle),
|
|
|
- lowest: handleNumberValue(e.lowest),
|
|
|
- highest: handleNumberValue(e.highest),
|
|
|
+ opened: handleNumberValue(formatDecimal(e.opened, e.decimalplace)),
|
|
|
+ presettle: handleNumberValue(formatDecimal(e.presettle, e.decimalplace)),
|
|
|
+ lowest: handleNumberValue(formatDecimal(e.lowest, e.decimalplace)),
|
|
|
+ highest: handleNumberValue(formatDecimal(e.highest, e.decimalplace)),
|
|
|
amplitude: parsePercent(e.amplitude),
|
|
|
}))
|
|
|
})
|