63 lines
1.5 KiB
Vue
63 lines
1.5 KiB
Vue
|
|
<!--
|
||
|
|
* @Author: zhangtq 2452618307@qq.com
|
||
|
|
* @Date: 2024-11-15 14:42:08
|
||
|
|
* @LastEditors: zhangtq 2452618307@qq.com
|
||
|
|
* @LastEditTime: 2024-11-18 17:34:26
|
||
|
|
* @FilePath: pages/videoSurveillance/videoTest.vue
|
||
|
|
* @Description: 这是默认设置,可以在设置》工具》File Description中进行配置
|
||
|
|
-->
|
||
|
|
<template>
|
||
|
|
<view>
|
||
|
|
<view>
|
||
|
|
<web-view id="iframeVideo" :src="`/static/videoPage/videoPlay.html?puid=${puid}&ballIndex=${ballIndex}&qxToken=${qxToken}&q2Url=${qxInfo.q2Url}`" @message = "goBack">
|
||
|
|
</web-view>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
</template>
|
||
|
|
<script>
|
||
|
|
import { getQxToken, selectVideoLoginInfo } from '../../api/project'
|
||
|
|
|
||
|
|
export default {
|
||
|
|
name: 'videoTest',
|
||
|
|
data() {
|
||
|
|
return {
|
||
|
|
puid: '201115203294827151',
|
||
|
|
ballIndex:'',
|
||
|
|
qxToken: '',
|
||
|
|
qxInfo: {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
created() {
|
||
|
|
this.getQxToken()
|
||
|
|
this.selectVideoLoginInfo()
|
||
|
|
},
|
||
|
|
onLoad(options) {
|
||
|
|
this.puid = options.puid;
|
||
|
|
this.ballIndex = options.ballIndex;
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
|
goBack() {
|
||
|
|
uni.navigateBack();
|
||
|
|
},
|
||
|
|
getQxToken() {
|
||
|
|
const params = {
|
||
|
|
|
||
|
|
}
|
||
|
|
console.log('🚀 ~ getQxToken ~ params:', params)
|
||
|
|
getQxToken().then(res => {
|
||
|
|
console.log('🚀 ~ getQxToken ~ res:', res)
|
||
|
|
this.qxToken = res.msg
|
||
|
|
})
|
||
|
|
},
|
||
|
|
selectVideoLoginInfo() {
|
||
|
|
selectVideoLoginInfo().then(res => {
|
||
|
|
this.qxInfo = res.data
|
||
|
|
console.log('selectVideoLoginInfo', res)
|
||
|
|
})
|
||
|
|
},
|
||
|
|
},
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
<style scoped lang="scss">
|
||
|
|
</style>
|