红河财经CCTV调整

This commit is contained in:
fan 2022-09-01 16:09:49 +08:00
parent e47e38003e
commit f9f05f12fd
3 changed files with 18 additions and 4 deletions

View File

@ -914,6 +914,12 @@ export const RegisterCodeList = ['cgy', 'designcgy'];
export const RichorContectUsList = ['richor', 'richorygy', 'richorhhcj', 'designrichorhhcj', 'richorcxjs', 'designrichorcxjs'];
/** 帮助中不展示版权(福州 佛山) */
export const NoCopyrightList = ['richor', 'richorygy', 'richorhhcj', 'designrichorhhcj', 'richorcxjs', 'designrichorcxjs'];
/** 真实cctv */
export const RealCctvList = ['richorjoint', 'richorhhcj'];
export const RealCctvMap = {
richorjoint: 'http://192.168.1.254',
richorhhcj: 'http://192.168.0.254'
};
/** 导航栏快速切换平台 */
export const goOtherPlatformMenu = {
login: '/design/login',

View File

@ -148,7 +148,7 @@ import bgPsdImg from '@/assets/bg_psd.png';
import HandRight from '@/assets/hand-o-right.png';
import wchat from '@/assets/wchat.png';
import { UrlConfig } from '@/scripts/ConstDic';
import { loginInfo, ProjectIcon, ProjectLoginStyleList, VersionBaseNoShow, MainBodyNoShow, NoQrcodeList, localPackageProject, RegisterCodeList} from '@/scripts/ProjectConfig';
import { loginInfo, ProjectIcon, ProjectLoginStyleList, VersionBaseNoShow, MainBodyNoShow, NoQrcodeList, localPackageProject, RegisterCodeList, RealCctvList} from '@/scripts/ProjectConfig';
import { removeToken, getToken } from '@/utils/auth';
import LangStorage from '@/utils/lang';
import FloatPart from './floatPart';
@ -485,7 +485,7 @@ export default {
projectDevice: this.$route.query.projectDevice,
type: this.$route.query.type} });
} else if (this.$route.query.type == 'CCTV') {
if (this.project == 'richorjoint') {
if (RealCctvList.includes(this.project)) {
this.$router.push({
path:'/jointTrainingNewCCTV',
query:{

View File

@ -3,12 +3,12 @@
<div id="jlReal3d" class="jlReal3d">
<div class="realCctv1">
<video id="myvideo0" class="video-js">
<source src="http://192.168.1.254/hls/cctv1.m3u8" type="application/x-mpegURL">
<source :src="`${host}/hls/cctv1.m3u8`" type="application/x-mpegURL">
</video>
</div>
<div class="realCctv2">
<video id="myvideo1" class="video-js">
<source src="http://192.168.1.254/hls/cctv2.m3u8" type="application/x-mpegURL">
<source :src="`${host}/hls/cctv2.m3u8`" type="application/x-mpegURL">
</video>
</div>
</div>
@ -22,6 +22,8 @@
<script>
import Video from 'video.js';
import 'video.js/dist/video-js.css';
import { RealCctvMap } from '@/scripts/ProjectConfig';
import { getSessionStorage } from '@/utils/auth';
export default {
name:'RealCCTV',
data() {
@ -29,6 +31,12 @@ export default {
videoList:[]
};
},
computed: {
host() {
const project = getSessionStorage('project');
return RealCctvMap[project];
}
},
mounted() {
for (var i = 0; i < 2; i++) {
const videoPlay = new Video('myvideo' + i, {