|
@@ -2,7 +2,7 @@
|
|
|
<app-view class="market">
|
|
<app-view class="market">
|
|
|
<template #header>
|
|
<template #header>
|
|
|
<app-navbar class="market-header" :show-back-button="false"
|
|
<app-navbar class="market-header" :show-back-button="false"
|
|
|
- :style="'--header-bg:url(\'../img/market-title-bg.jpg\')'" />
|
|
|
|
|
|
|
+ :style="topBG" />
|
|
|
<div style="padding: 12px;font-size: 14px;display: flex;justify-content: space-between;">
|
|
<div style="padding: 12px;font-size: 14px;display: flex;justify-content: space-between;">
|
|
|
<span>
|
|
<span>
|
|
|
{{ serverTime?.format('YYYY/MM/DD HH:mm:ss') }}
|
|
{{ serverTime?.format('YYYY/MM/DD HH:mm:ss') }}
|
|
@@ -64,12 +64,13 @@
|
|
|
import { shallowRef, computed, onActivated, onDeactivated, ref } from 'vue'
|
|
import { shallowRef, computed, onActivated, onDeactivated, ref } from 'vue'
|
|
|
import moment, { Moment } from 'moment'
|
|
import moment, { Moment } from 'moment'
|
|
|
import { getServerTime } from '@/services/api/common'
|
|
import { getServerTime } from '@/services/api/common'
|
|
|
-import { handleNumberValue, formatDecimal } from '@/filters'
|
|
|
|
|
|
|
+import { handleNumberValue, formatDecimal, getFileUrl } from '@/filters'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { queryTouristGoods, queryTouristQuoteDay } from '@/services/api/goods'
|
|
import { queryTouristGoods, queryTouristQuoteDay } from '@/services/api/goods'
|
|
|
import { useFuturesStore, useLoginStore } from '@/stores'
|
|
import { useFuturesStore, useLoginStore } from '@/stores'
|
|
|
import { timerTask } from '@/utils/timer'
|
|
import { timerTask } from '@/utils/timer'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
import { useRequest } from '@/hooks/request'
|
|
|
|
|
+import { queryImageConfigs } from "@/services/api/common"
|
|
|
import { getRunStatusName } from '@/constants/market'
|
|
import { getRunStatusName } from '@/constants/market'
|
|
|
import { queryMarketRun } from '@/services/api/market'
|
|
import { queryMarketRun } from '@/services/api/market'
|
|
|
import quoteSocket from '@/services/websocket/quote'
|
|
import quoteSocket from '@/services/websocket/quote'
|
|
@@ -82,6 +83,20 @@ const subscribe = quoteSocket.createSubscribe()
|
|
|
const subscribeData = shallowRef<string[]>([])
|
|
const subscribeData = shallowRef<string[]>([])
|
|
|
// 系统时间
|
|
// 系统时间
|
|
|
const serverTime = ref<Moment>()
|
|
const serverTime = ref<Moment>()
|
|
|
|
|
+const topBG = ref<string>('--header-bg:url(\'../img/market-title-bg.jpg\')')
|
|
|
|
|
+
|
|
|
|
|
+// 请求背景图
|
|
|
|
|
+useRequest(queryImageConfigs, {
|
|
|
|
|
+ params: {
|
|
|
|
|
+ imageType: 2
|
|
|
|
|
+ },
|
|
|
|
|
+ onSuccess: (res) => {
|
|
|
|
|
+ console.log(res.data)
|
|
|
|
|
+ if (res.data.length != 0) {
|
|
|
|
|
+ topBG.value = `${getFileUrl(res.data[0].imagepath)}`
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+})
|
|
|
|
|
|
|
|
// 构建游客交易商品
|
|
// 构建游客交易商品
|
|
|
const touristTradeGoodsList = computed(() => {
|
|
const touristTradeGoodsList = computed(() => {
|