Handy_Cao 1 år sedan
förälder
incheckning
1d17881eac
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      src/packages/pc/components/modules/quote/price/index.vue

+ 4 - 4
src/packages/pc/components/modules/quote/price/index.vue

@@ -6,11 +6,11 @@
             </div>
             <div class="block-bottom">
                 <div class="block-bottom-left">
-                    <span :class="quote.lastColor" v-if="[10, 53].includes(quote.trademode)">{{ handleNumberValue(formatDecimal(quote.last, quote.decimalplace)) }}</span>
+                    <span :class="quote.lastColor" v-if="quote.trademode != 10">{{ handleNumberValue(quote.last.toFixed(quote.decimalplace)) }}</span>
                     <div v-else>
-                        <span :class="quote.askColor">{{ handleNumberValue(formatDecimal(quote.ask, quote.decimalplace)) }}</span>
+                        <span :class="quote.askColor">{{ handleNumberValue(quote.ask.toFixed(quote.decimalplace)) }}</span>
                         <span>{{ ' / ' }}</span>
-                        <span :class="quote.bidColor">{{ handleNumberValue(formatDecimal(quote.bid, quote.decimalplace)) }}</span>
+                        <span :class="quote.bidColor">{{ handleNumberValue(quote.bid.toFixed(quote.decimalplace)) }}</span>
                     </div>
                 </div>
                 <div class="block-bottom-right">
@@ -79,7 +79,7 @@
 </template>
 
 <script lang="ts" setup>
-import { parsePercent, handleNumberValue, changeUnit, formatDecimal } from '@/filters'
+import { parsePercent, handleNumberValue, changeUnit } from '@/filters'
 import { useGlobalStore, useFuturesStore, i18n } from '@/stores'
 
 const props = defineProps({