shuishen
2022-04-11 99dc0cc2172ac8bc267e85435195318e40f03595
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<template>
    <div id="homeL">
        <div class="homeL-up">
            <span class="h1">智慧校园大数据三维可视化平台</span>
        </div>
        <div class="homeL-bar">
            <div
                class="outS"
                v-for="(item, index) in usedata.list"
                :key="index"
                @click="down(item.value)"
            >
                <div class="down1" :style="{ backgroundImage: item.imgs, color: 'red' }">
                    <span>{{ item.label }}</span>
                </div>
            </div>
            <!-- <div class="outS" @click="down1">
        <div class="down1"><span>保安员管理</span></div>
      </div>
      <div class="outS" @click="down2">
        <div class="down2"><span>保安单位</span></div>
      </div>
      <div class="outS" @click="down3">
        <div class="down3"><span>派遣管理</span></div>
      </div>
      <div class="outS" @click="down4">
        <div class="down4"><span>培训公司</span></div>
      </div>
      <div class="outS" @click="down5">
        <div class="down5"><span>通知公告</span></div>
            </div>-->
        </div>
    </div>
</template>
 
<script>
import { mapGetters } from "vuex"
export default {
    data () {
        return {
            usedata:
            {
                userName: 'administrator',
                list: [
                    {
                        label: '校内机构',
                        value: '/mechanism/index',
                        imgs: 'url(/img/glba.jpg)'
                    }, {
                        label: '校内建筑',
                        value: '/architecture/index',
                        imgs: 'url(/img/gltz.jpg)'
                    }, {
                        label: '生活服务设施',
                        value: '/life/index',
                        imgs: 'url(/img/glgj.jpg)'
                    }, {
                        label: '实景管理',
                        value: '/vr/index',
                        imgs: 'url(/img/gldw.jpg)'
                    }, {
                        label: '视频管理',
                        value: '/sp/index',
                        imgs: 'url(/img/glgz.jpg)'
                    }]
            }
            ,
        }
    },
    mounted () {
    },
    computed: {
        ...mapGetters(["userInfo"]),
    },
    methods: {
        down (path) {
            this.$router.push({ path: path })
        },
    },
    mouted () { },
};
</script>
 
<style lang="scss">
#homeL {
    width: 100%;
    height: 96%;
    //   border: 1px solid #000;
    .homeL-up {
        width: 100%;
        height: 70%;
        // border: 1px solid rgb(39, 164, 185);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        background-image: url('../../../public/img/bjkeji.png');
        background-color: #fff;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        -moz-background-size: 100% 100%;
        color: #4ba3fe;
        .h1,
        .h2 {
            position: relative;
            left: 20%;
        }
        .h1 {
            font-size: 54px;
        }
        .h2 {
            font-size: 28px;
        }
    }
    .homeL-bar {
        width: 100%;
        height: 30%;
        position: relative;
        top: 2.5px;
        // border: 1px solid rgb(51, 22, 180);
        display: flex;
        align-items: center;
        justify-content: center;
        .outS {
            width: 20%;
            height: 100%;
            //   border: 1px solid rgb(180, 22, 75);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .down1,
        .down2,
        .down3,
        .down4,
        .down5 {
            width: 96%;
            height: 96%;
            background-repeat: no-repeat;
            background-size: 100% 100%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 5px;
            &:hover {
                width: 99%;
                height: 99%;
                transition: all 0.3s ease;
            }
            span {
                position: relative;
                top: -40px;
                left: -50px;
                font-weight: 600;
                font-size: 30px;
                color: #fff;
                display: inline-block;
                // border: 1px solid rgb(180, 22, 75);
            }
        }
        // .down1 {
        //   background-image: url("../../../public/img/yijianbaoj.jpg");
        // }
        // .down2 {
        //   background-image: url("../../../public/img/fangyi.jpg");
        // }
        // .down3 {
        //   background-image: url("../../../public/img/anjian.jpg");
        // }
        // .down4 {
        //   background-image: url("../../../public/img/tiwen.jpg");
        // }
        // .down5 {
        //   background-image: url("../../../public/img/tongji.jpg");
        // }
    }
}
</style>