Browse Source

图片替换

CzRger 1 year ago
parent
commit
67f7537b0c

+ 1 - 1
src/store/index.ts

@@ -2,7 +2,7 @@ import { createStore } from "vuex";
 import app from "./modules/app";
 
 export default createStore({
-  state: {},
+  state: <any>{},
   mutations: {},
   actions: {},
   modules: {

+ 3 - 1
src/store/modules/app.ts

@@ -1,7 +1,9 @@
 
 const state = {
 	apiProxy: {
-		EzServer6Api: 'EzServer6-api',	// 地图底图代理
+		tesApi: 'api-tes',	//	托尔斯视频拉流服务
+		wazxApi: 'api-wazx',	//	网安中心
+		staticApi: 'api-static',	//	静态资源代理
 	},
 }
 const mutations = {

BIN
src/views/common/img/info-sub-1.png


BIN
src/views/common/img/info-sub-2.png


BIN
src/views/common/img/info-sub-3.png


BIN
src/views/common/img/info-sub-4.png


BIN
src/views/common/img/info-sub-5.png


BIN
src/views/common/img/info-sub-6.png


+ 2 - 1
src/views/common/static.ts

@@ -14,6 +14,7 @@ import InfoMain4 from './img/info-main-4.jpg'
 import InfoMain5 from './img/info-main-5.png'
 import LogoIcon from './img/logo-icon.png'
 import LogoIconZwww from './img/logo-icon_zwww.png'
+import store from '@/store/index'
 
 export const logoIcon = window?.cusConfig?.version === 'zwww' ? LogoIconZwww : LogoIcon
 
@@ -60,6 +61,6 @@ export const infoMapper = [
     enLabel: 'Achievement-Exhibition',
     remark: '近年来,平台通过船舶管控系统精准预警重点海域和重要时段涉海信息,配合海南海警局、海岸警察总队等部门破获了系列重大案件...',
     subImg: InfoSub6,
-    href: 'http://www.baidu.com'
+    href: `/${store.state.app.apiProxy.staticApi}/video/cgzs.mp4`
   },
 ]