gaosp
2024-01-17 c4705bdf860ec458ec84601f36821441beb7674c
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
<!--
 * @Date: 2024-01-04 23:08:48
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-17 22:35:41
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/home/Welcome.vue
-->
<template>
    <div class="container">
        <img class="bg" src="./earth.png" alt="">
        <div class="welcome">
            {{userInfo.name}}您好,欢迎使用千文科技MDC展示系统
        </div>
    </div>
</template>
<script>
    import { mapGetters } from 'vuex';
    export default {
        computed: {
            ...mapGetters(['userInfo'])
        }
    }
</script>
<style lang="scss" scoped>
.container {
    top: 0;
    left: 50%;
    width: 60%;
    transform: translateX(-50%);
    height: 100%;
    // background-image: url('./earth.png');
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
 
    .bg {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        max-width: 100%;
        ;
        max-height: 100%;
    }
}
 
.welcome {
    width: 100%;
    height: 102px;
    position: absolute;
    top: 30%;
    font-size: 40px;
    color: #68D9FF;
    line-height: 102px;
    background: url('./welcome.png') 0 0 no-repeat;
    background-size: contain;
    text-align: center;
    user-select: none;
}</style>