智慧保安互联网APP
zengh
2022-06-21 4efeb31d5b4921d7e851c256009486ad86bc70e2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<template>
    <view class="content">
        <web-view :src="urls"></web-view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                urls: '',
                // dataList: [],
            }
        },
        methods: {},
        mounted() {},
        onLoad: function(options) {
            var data = [];
            // console.log(options,"options")
            if (options.data == undefined) {
                data = [{
                    "id": '100000',
                    "place": '无数据',
                    "state": '0',
                    "dtype": '0',
                    "size": '300',
                    "jd": "114.822311",
                    "wd": "28.646341"
                }]
                data = JSON.stringify(data);
            } else {
                // data = options.data;
            }
            console.log(data)
            // console.log(options.html)
            // var a = options.html != undefined ? options.html : "xcxMapWz/xcxmap.html";
            // console.log(a)
            this.urls = "http://web.byisf.com/xcxMapWz/xcxmap.html?id="+ this.$store.state.UserData.jurisdiction+"&data=" + data;
            // this.urls = "http://127.0.0.1:5500/xcxMapWz/xcxmap.html?id="+ this.$store.state.UserData.jurisdiction +"&data=" + data;
            
            
            // this.dataList = data;
            // console.log(this.urls,'url');
        },
    }
</script>
 
<style>
</style>