Handy_Cao 1 년 전
부모
커밋
8d5094b3fa

+ 1 - 1
oem/sbyj/config/appconfig.json

@@ -3,7 +3,7 @@
   "appName": "水贝亿爵",
   "version": "1.0.23",
   "versionCode": "100023",
-  "apiUrl": "http://192.168.31.171:8080/cfg?key=test_171",
+  "apiUrl": "http://120.25.76.98:8280/cfg?key=ykhj_ddgl",
   "tradeChannel": "ws",
   "modules": [
     "register",

+ 1 - 1
public/locales/en-US.json

@@ -225,7 +225,7 @@
         "totalturnover": "Total Turnover",
         "buyhall": "Buy Hall",
         "sellhall": "Sell Hall",
-        "buysellhall": "Buy Sell Hall",
+        "buysellhall": "Buy&Sell Hall",
         "listinghall": "Listing Hall",
         "enableQty": "Estimate Buy Qty",
         "deposit": "Deposit",

+ 1 - 1
src/packages/pc/views/footer/goods/position/index.vue

@@ -57,7 +57,7 @@ const tableColumns = shallowRef<Model.TableColumn[]>([
     { field: 'curholderamount', label: 'position.goods.curholderamount' },
     { field: 'marketValue', label: 'position.goods.marketValue' },
     { field: 'closepl', label: 'position.goods.closepl' },
-    { field: 'operate', label: 'common.operate', fixed: 'right', width: 140 },
+    { field: 'operate', label: 'common.operate', fixed: 'right', width: 180 },
 ])
 
 const handleOperateButtons = (row: Model.TradePositionRsp) => {

+ 17 - 2
src/packages/sbyj/views/market/list/index.vue

@@ -2,7 +2,7 @@
     <app-view class="market">
         <template #header>
             <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;">
                 <span>
                     {{ serverTime?.format('YYYY/MM/DD HH:mm:ss') }}
@@ -64,12 +64,13 @@
 import { shallowRef, computed, onActivated, onDeactivated, ref } from 'vue'
 import moment, { Moment } from 'moment'
 import { getServerTime } from '@/services/api/common'
-import { handleNumberValue, formatDecimal } from '@/filters'
+import { handleNumberValue, formatDecimal, getFileUrl } from '@/filters'
 import { useNavigation } from '@mobile/router/navigation'
 import { queryTouristGoods, queryTouristQuoteDay } from '@/services/api/goods'
 import { useFuturesStore, useLoginStore } from '@/stores'
 import { timerTask } from '@/utils/timer'
 import { useRequest } from '@/hooks/request'
+import { queryImageConfigs } from "@/services/api/common"
 import { getRunStatusName } from '@/constants/market'
 import { queryMarketRun } from '@/services/api/market'
 import quoteSocket from '@/services/websocket/quote'
@@ -82,6 +83,20 @@ const subscribe = quoteSocket.createSubscribe()
 const subscribeData = shallowRef<string[]>([])
 // 系统时间
 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(() => {