This commit is contained in:
parent
7038e38809
commit
a31d9fe5f9
File diff suppressed because one or more lines are too long
|
@ -13,6 +13,8 @@
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script
|
<script
|
||||||
src="https://webapi.amap.com/maps?v=1.4.15&key=8910226d8d36a41d856262b1a588850c&plugin=AMap.MarkerClusterer"></script>
|
src="https://webapi.amap.com/maps?v=1.4.15&key=8910226d8d36a41d856262b1a588850c&plugin=AMap.MarkerClusterer"></script>
|
||||||
|
<!-- <script src="./public/jquery-3.4.1.min.js"></script>
|
||||||
|
<script src="./public/h5player.min.js"></script> -->
|
||||||
<script src="./jquery-3.4.1.min.js"></script>
|
<script src="./jquery-3.4.1.min.js"></script>
|
||||||
<script src="./h5player.min.js"></script>
|
<script src="./h5player.min.js"></script>
|
||||||
<script type="module" src="/src/main.ts">
|
<script type="module" src="/src/main.ts">
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import {createRouter, createWebHistory,createWebHashHistory} from "vue-router";
|
import { createRouter, createWebHistory, createWebHashHistory } from "vue-router";
|
||||||
import {staticRouter, errorRouter} from "@/router/modules/staticRouters";
|
import { staticRouter, errorRouter } from "@/router/modules/staticRouters";
|
||||||
import {LOGIN_ROUTER, ROUTER_WHITE_LIST} from "@/configs";
|
import { LOGIN_ROUTER, ROUTER_WHITE_LIST } from "@/configs";
|
||||||
import {useUserStore} from "@/stores/modules/userStore";
|
import { useUserStore } from "@/stores/modules/userStore";
|
||||||
import {message, Modal} from "ant-design-vue";
|
import { message, Modal } from "ant-design-vue";
|
||||||
import {start, close} from '@/utils/nporgress'
|
import { start, close } from '@/utils/nporgress'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* createWebHistory & createWebHashHistory
|
* createWebHistory & createWebHashHistory
|
||||||
|
@ -14,7 +14,7 @@ const router = createRouter({
|
||||||
history: createWebHashHistory(),
|
history: createWebHashHistory(),
|
||||||
routes: [...staticRouter, ...errorRouter],
|
routes: [...staticRouter, ...errorRouter],
|
||||||
strict: false,
|
strict: false,
|
||||||
scrollBehavior: () => ({left: 0, top: 0})
|
scrollBehavior: () => ({ left: 0, top: 0 })
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -59,7 +59,7 @@ const loginParams = ref<{
|
||||||
passWord: string
|
passWord: string
|
||||||
code: string
|
code: string
|
||||||
}>({
|
}>({
|
||||||
userNameOrTelephone: import.meta.env.VITE_APP_ENV === 'development' ? 'admin' : '',
|
userNameOrTelephone: import.meta.env.VITE_APP_ENV === 'development' ? 'test001' : '',
|
||||||
passWord: import.meta.env.VITE_APP_ENV === 'development' ? '123456' : '',
|
passWord: import.meta.env.VITE_APP_ENV === 'development' ? '123456' : '',
|
||||||
code: import.meta.env.VITE_APP_ENV === 'development' ? '1234' : '',
|
code: import.meta.env.VITE_APP_ENV === 'development' ? '1234' : '',
|
||||||
})
|
})
|
||||||
|
|
|
@ -30,6 +30,8 @@ onMounted(() => {
|
||||||
var code = res['code']
|
var code = res['code']
|
||||||
if (code == 0) {
|
if (code == 0) {
|
||||||
var playURL = res.data.videoUrl
|
var playURL = res.data.videoUrl
|
||||||
|
// var playURL = 'wss://www.hnjinglian.cn:2563/haikang_play/openUrl/w64vRni'
|
||||||
|
|
||||||
var IS_MOVE_DEVICE = document.body.clientWidth < 992 // 是否移动设备
|
var IS_MOVE_DEVICE = document.body.clientWidth < 992 // 是否移动设备
|
||||||
var MSE_IS_SUPPORT = !!window.MediaSource // 是否支持mse
|
var MSE_IS_SUPPORT = !!window.MediaSource // 是否支持mse
|
||||||
myPlugin = new window.JSPlugin({
|
myPlugin = new window.JSPlugin({
|
||||||
|
@ -46,20 +48,8 @@ onMounted(() => {
|
||||||
},
|
},
|
||||||
bSupporDoubleClickFull: true, //是否支持双击全屏,默认true
|
bSupporDoubleClickFull: true, //是否支持双击全屏,默认true
|
||||||
})
|
})
|
||||||
myPlugin
|
|
||||||
.JS_SetWindowControlCallback({
|
|
||||||
pluginErrorHandler: function (index: any, iErrorCode: any, oError: any) {
|
|
||||||
console.error('__________pluginErrorHandler错误码________________', index, iErrorCode, oError)
|
|
||||||
|
|
||||||
//插件错误回调
|
console.log('myPlugin________', myPlugin)
|
||||||
// do you want...
|
|
||||||
// 取流失败,流中断等错误都会触发该回调函数,请自行对照错误码表进行判断。
|
|
||||||
// 业务上层可在此做一些个性化操作,如:个性化错误信息展示,重新取流等。
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.then((res: any) => {
|
|
||||||
console.log('JS_SetWindowControlCallback________________', res)
|
|
||||||
})
|
|
||||||
|
|
||||||
var controlIndex = 2
|
var controlIndex = 2
|
||||||
function playVideo() {
|
function playVideo() {
|
||||||
|
|
|
@ -1059,12 +1059,15 @@ const pointCode = ref()
|
||||||
if (a.deviceType == '00') {
|
if (a.deviceType == '00') {
|
||||||
if (a.alarmType == 'isc') {
|
if (a.alarmType == 'isc') {
|
||||||
try {
|
try {
|
||||||
router.push({ path: '/index/hkplay', query: { pointId: a.pointId } })
|
// router.push({ path: '/index/hkplay', query: { pointId: a.pointId } })
|
||||||
// let routeData = router.resolve({ path: '/index/hkplay', query: { pointId: a.pointId } })
|
let routeData = router.resolve({ path: '/index/hkplay', query: { pointId: a.pointId } })
|
||||||
// console.log('🚀 ~ routeData:', JSON.stringify(routeData))
|
// console.log('routeData.href_____________________', routeData.href)
|
||||||
|
// routeData.href = 'index.html' + routeData.href
|
||||||
|
console.log('routeData.href_____________________', routeData.href)
|
||||||
|
|
||||||
// window.location.href = routeData.href
|
// window.location.href = routeData.href
|
||||||
|
|
||||||
// window.open(routeData.href, '_blank')
|
window.open(routeData.href, '_blank')
|
||||||
// window.open('http://172.10.10.161:9527/#/index/hkplay?pointId=43000000581314000013', '_blank') //直接跳要么白屏,要么说未找到token
|
// window.open('http://172.10.10.161:9527/#/index/hkplay?pointId=43000000581314000013', '_blank') //直接跳要么白屏,要么说未找到token
|
||||||
// window.open('https://www.hndyjqrh.cn/#/index/hkplay?pointId=43000000581314000013', '_blank')
|
// window.open('https://www.hndyjqrh.cn/#/index/hkplay?pointId=43000000581314000013', '_blank')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in New Issue