FenXiNspUniapp/packDetail1/pages/device/index3.vue

44 lines
971 B
Vue

<template>
<view class="hello-ezuikit-js">
<web-view :src="webViewUrl" id="video-container"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
allInfo: {
monitorUrl:'',
row:{
accessToken:'',
deviceName:''
}
},
webViewUrl:""
};
},
onLoad(option) {
// this.allInfo = JSON.parse(decodeURIComponent(option.config));
this.allInfo.monitorUrl = 'ezopen://open.ys7.com/J27717024/1.hd.live'
this.allInfo.row.accessToken = 'at.57raf90md7novzie1aieiqb269ajx15j-32hgf1gt81-1iyo8sf-xbfnjnjbk'
this.allInfo.row.deviceName = '视频监控1'
console.log(this.allInfo);
uni.setNavigationBarTitle({
title: this.allInfo.row.deviceName,
});
this.webViewUrl =
"https://pan.baidu.com/disk/main?_at_=1689663823447#/index?category=all"
},
mounted() {},
methods: {},
};
</script>
<style lang="scss" scoped>
#video-container {
width: 100%;
height: 400px;
}
</style>