Handy_Cao 1 anno fa
parent
commit
e21da55071

+ 2 - 2
src/packages/mobile/views/pricing/list/Index.vue

@@ -65,13 +65,13 @@ const { router, getQueryString } = useNavigation()
 const futuresStore = useFuturesStore()
 const subscribe = quoteSocket.createSubscribe()
 
-const { quoteGoodsList: dataList } = futuresStore
+const dataList = computed(() => futuresStore.getGoodsListByTradeMode(ETradeMode.TRADEMODE_MARKETMAKE))
 
 const title = getQueryString('title')
 const titleName = computed(() => title ? decodeURIComponent(title) : props.marketSection?.displayname ?? '订单点价')
 
 const tableList = computed(() => {
-    return dataList.map((item) => {
+    return dataList.value.map((item) => {
         const quote = futuresStore.getGoodsQuote(item.goodscode)
         const { lastColor, openedColor, lowestColor, highestColor, last = 0, presettle = 0, rise = 0, change, amplitude, highest = 0, lowest = 0, opened = 0, ask = 0, bid = 0, bidColor, askColor, decimalplace } = quote.value ?? {}
         return {

+ 1 - 2
src/packages/tjmd/views/home/main/Index.vue

@@ -42,14 +42,13 @@ import { Cell, Swipe, SwipeItem } from 'vant'
 import { parsePercent, handleNumberValue, formatDecimal } from '@/filters'
 import { queryQuoteGoodsList } from '@/services/api/swap'
 import { queryImageConfigs } from '@/services/api/common'
-import { useGlobalStore, useUserStore, useFuturesStore } from '@/stores'
+import { useUserStore, useFuturesStore } from '@/stores'
 import quoteSocket from '@/services/websocket/quote'
 import Banner from '@mobile/components/base/banner/index.vue'
 
 const LineChart = defineAsyncComponent(() => import('@mobile/components/modules/echarts/line/index.vue'))
 
 const subscribe = quoteSocket.createSubscribe()
-const globalStore = useGlobalStore()
 const userStore = useUserStore()
 const futuresStore = useFuturesStore()
 const topBanners = shallowRef<string[]>([]) // 轮播图列表