mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-24 05:46:09 +08:00
48 lines
856 B
Vue
48 lines
856 B
Vue
<template>
|
|
<view>
|
|
<web-view :src="url"></web-view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
getIotOpenApi,
|
|
} from '../../api/machine/machineApi.js';
|
|
export default {
|
|
data() {
|
|
return {
|
|
url:'',
|
|
machineId:'',
|
|
communityId:'',
|
|
}
|
|
},
|
|
onLoad(options) {
|
|
this.machineId = options.machineId;
|
|
this.communityId = options.communityId;
|
|
this._loadVideoUrl();
|
|
},
|
|
methods: {
|
|
_loadVideoUrl:function(){
|
|
let _that =this;
|
|
getIotOpenApi(this, {
|
|
machineId: this.machineId,
|
|
communityId: this.communityId,
|
|
iotApiCode: 'getBarrierCloudVideoBmoImpl',
|
|
}).then(_data => {
|
|
_that.machines = _data.data;
|
|
let _url = "../../static/jessibuca/video.html?tt="
|
|
+encodeURI(_data.data.url)
|
|
+"&time="+new Date().getTime();
|
|
_that.url = _url;
|
|
})
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
|
|
</style>
|