|
@@ -6,40 +6,41 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<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: {
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ 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+ '&source=2'
|
|
|
|
+ // 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 + '&source=5'
|
|
|
|
+ // 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>
|
|
</script>
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
<style lang="stylus" scoped>
|
|
- #videoPlayer{
|
|
|
|
|
|
+ #videoPlayer {
|
|
height: 100%;
|
|
height: 100%;
|
|
display flex;
|
|
display flex;
|
|
flex-direction column;
|
|
flex-direction column;
|
|
- }
|
|
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|