Browse Source

添加地图

wangchao 3 years ago
parent
commit
ee69482c00
1 changed files with 20 additions and 18 deletions
  1. 20 18
      pages/user/report.vue

+ 20 - 18
pages/user/report.vue

@@ -1,33 +1,35 @@
 <template>
-    <web-view  :src="url"></web-view>
-    <!-- <web-view v-if="flag" :src="url"></web-view> -->
+	<web-view :src="url" class="map"></web-view>
+	<!-- <web-view v-if="flag" :src="url"></web-view> -->
 	<!-- <iframe v-else :src="url" width="340" height="360" allowfullscreen allow="autoplay; fullscreen; microphone;"></iframe> -->
 </template>
 
 <script>
 	export default {
-        data() {
-            return {
-                url:"https://datav.aliyuncs.com/share/235518097ffd673bc1eb05011b9a02b6",
-				flag:true
-            }
-        },
-        onLoad: function(option) {
-			if(option.url){
+		data() {
+			return {
+				// url:"https://datav.aliyuncs.com/share/235518097ffd673bc1eb05011b9a02b6",
+				url: 'http://192.168.1.116:8011',
+				flag: true
+			}
+		},
+		onLoad: function(option) {
+			if (option.url) {
 				this.url = option.url;
 				uni.setNavigationBarTitle({
-					title:"库点监控"
+					title: "库点监控"
 				})
 				this.flag = false
 			}
-        },
-        methods: {
-        }
-    }
+		},
+		methods: {}
+	}
 </script>
-    
 
 
-<style>
 
-</style>
+<style>
+	.map {
+		/* height: 400px; */
+	}
+</style>