App.vue
2.17 KB
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
<template>
<div class="scrm-base-entry">
<div id="main">
<router-view></router-view>
</div>
<div class="el-loading-mask" v-show="app.isLoading" style="background-color: rgba(0, 0, 0, 0.1)">
<div class="el-loading-spinner">
<i class="el-icon-loading"></i>
</div>
</div>
<!-- <div v-show="app.isLoadFaild" class="load-faild">加载失败,请检查服务是否开启</div> -->
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import { helper } from '@/common'
export default {
computed: {
...mapGetters(['app'])
},
mounted() {
this.customized()
},
methods: {
customized() {
const { cdn, customized } = this.$config
helper.customized(cdn, customized)
}
}
}
</script>
<style lang="scss">
@import '~@/assets/style/mixins.scss';
// 统一边距 begin
#app {
background-color: transparent !important;
padding: $left #{$left + 6px} $left $left !important;
margin: 0 !important;
position: relative !important;
}
// 统一边距 end
html {
margin: 0;
padding: 0;
font-size: 625%;
-webkit-text-size-adjust: 100%; // 4
-ms-text-size-adjust: 100%; // 4
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); // 6
height: 100%;
max-height: 100%;
// overflow-x: hidden;
// overflow-y: auto;
}
body {
margin: 0;
padding: 0;
height: 100vh;
width: 100vw;
overflow: auto;
padding-left: calc(100vw - 100%);
font-size: 14px;
font-family: $font-family;
@include hideScroll;
}
button,
button > span {
font-family: $font-family !important;
}
.footer {
box-shadow: 20px 10px 20px 10px rgba(88, 80, 255, 0.1);
}
.scrm-base-entry {
height: 100%;
.load-faild {
text-align: center;
color: #999;
position: absolute;
z-index: 1;
top: 80px;
left: 0;
right: 0;
pointer-events: none;
}
#main {
height: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.el-loading-spinner {
i,
.el-loading-text {
color: $main-color;
font-size: 26px;
margin-left: $menu-width;
}
.circular {
height: 26px;
width: 26px;
.path {
stroke: $main-color;
}
}
}
}
</style>