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
| <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 = [];
| if (options.data == undefined) {
| data = [{
| "id": '100000',
| "place": '无数据',
| "state": '0',
| "dtype": '0',
| "size": '300',
| "jd": "115.822311",
| "wd": "28.646341"
| }]
| data = JSON.stringify(data);
| } else {
| data = options.data;
| }
| // console.log(options.html)
| var a = options.html != undefined ? options.html : "xcxMapJQ/xcxmap.html";
| // console.log(a)
| this.urls = "http://61.131.136.25:2082/" + a + "?data=" + data;
| // this.dataList = data;
| // console.log(this.urls);
| },
| }
| </script>
|
| <style>
| </style>
|
|