|
@@ -1,33 +1,35 @@
|
|
<template>
|
|
<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> -->
|
|
<!-- <iframe v-else :src="url" width="340" height="360" allowfullscreen allow="autoplay; fullscreen; microphone;"></iframe> -->
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
export default {
|
|
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;
|
|
this.url = option.url;
|
|
uni.setNavigationBarTitle({
|
|
uni.setNavigationBarTitle({
|
|
- title:"库点监控"
|
|
|
|
|
|
+ title: "库点监控"
|
|
})
|
|
})
|
|
this.flag = false
|
|
this.flag = false
|
|
}
|
|
}
|
|
- },
|
|
|
|
- methods: {
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ methods: {}
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
-<style>
|
|
|
|
|
|
|
|
-</style>
|
|
|
|
|
|
+<style>
|
|
|
|
+ .map {
|
|
|
|
+ /* height: 400px; */
|
|
|
|
+ }
|
|
|
|
+</style>
|