12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <template>
- <view id="videoPlayer">
- <!-- <web-view src="http://10.111.224.196:8080/?type=4&id=1793100035379396609"></web-view> -->
- <web-view :src="webViewUrl" v-if="pageType"></web-view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- pageType:false,
- webViewUrl:'',
- }
- },
- onLoad(option) {
- let obj = JSON.parse(decodeURIComponent(option.item))
- console.log('obj',obj)
- let url = '';
- if(obj.type == 4){
- url = uni.getStorageSync('cameraExtranetAgent')+'?type=4&subId='+obj.subId
- // url = 'http://192.168.1.10:8080/?type=4&subId='+obj.subId
- }else if(obj.type == 5){
- url = uni.getStorageSync('cameraExtranetAgent')+'?type=5&floorId='+obj.floorId+'&subId='+obj.subId
- // url = 'http://192.168.1.10:8080/?type=5&floorId='+obj.floorId+'&subId='+obj.subId
- }
- this.$set(this,'webViewUrl',url);
- this.$set(this,'pageType',true);
- },
- onShow(){
-
- },
- methods: {
-
- }
- }
- </script>
- <style lang="stylus" scoped>
- #videoPlayer{
- height: 100%;
- display flex;
- flex-direction column;
- }
- </style>
|