Handy_Cao 1 рік тому
батько
коміт
b0bbae6835

+ 2 - 2
src/packages/pc/components/modules/goods-detail/chart/index.vue

@@ -5,7 +5,7 @@
         </div>
         <el-scrollbar class="block-right">
             <Price v-bind="{ goodsCode }" />
-            <Forex v-if="quote?.trademode != 10" v-bind="{ goodsCode }" />
+            <Forex v-if="![10, 53].includes(trademode)" v-bind="{ goodsCode }" />
             <Tik v-bind="{ goodsCode }" />
         </el-scrollbar>
     </div>
@@ -27,7 +27,7 @@ const props = defineProps({
 })
 
 const futuresStore = useFuturesStore()
-const quote = futuresStore.getGoodsQuote(props.goodsCode)
+const { trademode = 10 } = futuresStore.getGoodsQuote(props.goodsCode).value ?? {}
 
 </script>
 

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

@@ -6,7 +6,8 @@
             </div>
             <div class="block-bottom">
                 <div class="block-bottom-left">
-                    <span :class="quote.lastColor" v-if="quote.trademode != 10">{{ handleNumberValue(quote.last.toFixed(quote.decimalplace)) }}</span>
+                    <span :class="quote.lastColor" v-if="[10].includes(quote.trademode)">{{ handleNumberValue(quote.last.toFixed(quote.decimalplace)) }}</span>
+                    <span v-else-if="[53].includes(quote.trademode)" />
                     <div v-else>
                         <span :class="quote.askColor">{{ handleNumberValue(quote.ask.toFixed(quote.decimalplace)) }}</span>
                         <span>{{ ' / ' }}</span>