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
| <template>
| <div id="userLayout" :class="['user-layout-wrapper', device]">
| <div class="container">
| <route-view></route-view>
| </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>
| #userLayout.user-layout-wrapper {
| height: 100%;
|
| &.mobile {
| .container {
| background: #f0f2f5 url(~@/assets/page/login/background.svg) no-repeat center;
| background-size: cover;
| padding: 110px 0 144px;
|
| .main {
| max-width: 368px;
| width: 98%;
| margin: 0 auto;
| }
| }
| }
|
| .container {
| width: 100%;
| min-height: 100%;
| background: #f0f2f5 url(~@/assets/page/login/background.svg) no-repeat center;
| background-size: cover;
| padding-top: 200px;
| position: relative;
|
| .main {
| min-width: 260px;
| width: 450px;
| margin-left: 10%;
|
| }
| }
| }
| </style>
|
|