Blame view

ant-design-vue-base/src/components/layouts/UserLayout.vue 1.52 KB
1a2d344e   wxy   初始化项目
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
  <template>
    <div id="userLayout" :class="['user-layout-wrapper', device]">
      <div class="container">
        <div class="header">
          <a href="/"><span class="title">东西湖未检家庭教育</span></a>
        </div>
        <route-view></route-view>
        <div class="footer">
          <div class="copyright">
            Copyright &copy; 2022 弘新智能科技(武汉)有限公司
          </div>
        </div>
      </div>
    </div>
  </template>
  
  <script>
  import RouteView from '@/components/layouts/RouteView'
  import { mixinDevice } from '@/utils/mixin.js'
  
  export default {
      name: 'UserLayout',
      components: { RouteView },
      mixins: [mixinDevice],
      data() {
        return {}
      },
      mounted() {
        document.body.classList.add('userLayout')
      },
      beforeDestroy() {
        document.body.classList.remove('userLayout')
      }
    }
  </script>
  
  <style lang="less" scoped>
    .user-layout-wrapper {
      width: 100%;
      height: 100%;
      background: url("../../assets/loginbg.jpg") center center no-repeat;
      background-size: 100%;
      display: flex;
      align-items: center;
    }
  
    .container {
      margin-left: 60%;
      padding: 0 40px;
      background-color: #fff;
      border-radius: 10px;
    }
  
    .header {
      text-align: center;
    }
  
    .title {
      color: #1890FF;
      font-size: 30px;
      font-weight: bold;
      line-height: 100px;
    }
  
    .main {
      width: 340px;
      margin: 0 auto;
    }
  
    .footer {
      width: 100%;
      padding: 20px 0;
      text-align: center;
    }
  
    .copyright {
      color: #b4b4b4;
      font-size: 14px;
    }
  
  </style>