智慧保安互联网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
50
51
52
53
54
55
56
57
58
59
<template>
    <view class="content" style="width: 100%; height: 100%;">
 
        <!-- <u-loading size="66" :show="flag" mode="circle"></u-loading> -->
 
        <view v-show="flag" class="loading">{{loadingText}}</view>
        
        <view v-show="!flag">
            
            <web-view :src="urls" style="width: 100%; height: 100%;"></web-view>
            
        </view>
 
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                urls: '',
                flag: true,
                loadingText: '加载中...'
                // dataList: [],
            }
        },
        methods: {},
        mounted() {
            // uni.showNavigationBarLoading();
 
            this.urls = "http://web.byisf.com/mapWz/xcxmap.html?id=" + this.$store.state.UserData.jurisdiction +
                "&userid=" + this.$store.state.UserData.user_id +
                "&roleName=" + this.$store.state.UserData.rname[0] +
                "&deptid=" + this.$store.state.UserData.dept_id;
 
 
            setTimeout(() => {
                // uni.hideNavigationBarLoading();
                this.flag = false
            }, 3000)
 
        },
        onLoad: function(options) {
 
 
 
            // this.urls = "http://127.0.0.1:5500/mapWz/xcxmap.html?id=" + this.$store.state.UserData.jurisdiction +
            //     "&userid=" + this.$store.state.UserData.user_id;
 
        },
    }
</script>
 
<style>
    .loading {
        text-align: center;
        line-height: 80px;
    }
</style>