appHead.vue
5.52 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
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<template>
<!-- 头部 -->
<div class="header">
<div class="header-conter">
<div class="header-conter-cursor-left">
<img src="../assets/img/boxshow.png" alt="" srcset="" class="cursor-left" />
<dv-decoration-6 class="datav-one" style="width: 20vh; height: 2vw" />
</div>
<div class="header-conter-test">
<div class="test sys-title-zhuti">{{ title }}</div>
<div class="header-title-zhuti-animate">
<ul class="center-animate center-left-animate">
<li></li>
<li></li>
<li></li>
</ul>
<ul class="center-animate center-right-animate">
<li></li>
<li></li>
<li></li>
</ul>
</div>
</div>
<div class="header-conter-cursor-right">
<img src="../assets/img/boxshow.png" alt="" srcset="" class="cursor-right" />
<dv-decoration-6 class="datav-tow" style="width: 20vh; height: 2vw" />
</div>
</div>
<p class="head-time" id="head_time"> {{ sysHeadTime }}</p>
<p style="position: absolute;right: 35px; top: 3%;font-size: 1.2vw;color: #ffffff;">v:{{ sysHeadVer }} time:{{ sysInitTimeNum }}</p>
</div>
</template>
<script>
export default {
props: ['title', 'sysInitTimeNum'],
data() {
return {
active: '/home',
sysHeadTime: '',
sysHeadVer: '',
sysData: {},
}
},
methods: {
getData() {
let opt = {
urlSuffix: window.appConfig.baseUrlOnLine6 + 'api/BulletinBoard/Mes/V1/getTimestamp',
logTitle: 'getTimestamp',
isUrlALL: true,
headers: false,
isHanderAjaxSuccessActionLoad: true,
}
''.ajax(this, opt, null)
},
intInterval: function() {
//1个小时读取一次
setInterval(() => {
this.getData()
}, 3600000)
},
},
created() {
this.active = this.$route.path
this.sysHeadVer = window.appConfig.ver
},
computed: {},
mounted() {
//eslint-disable-next-line no-debugger
debugger
//this.getData()
// 本地一定要测试定时器 会存在数据多次绑定问题4
//this.intInterval()
},
}
</script>
<style lang="scss" scoped>
.header {
width: 100%;
height: 11vh;
background: url('../assets/img/fh-title.png') no-repeat;
background-size: 100% 100%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
.datav-one {
margin: 5vh 0 0 5vw;
}
.datav-tow {
margin: -0.7vh 0 0 15vw;
}
.header-conter {
position: relative;
display: flex;
width: 100%;
height: 11vh;
.header-conter-cursor-left {
width: 30%;
height: 100%;
}
.header-conter-test {
width: 40%;
height: 100%;
background: url('../assets/img/fh-title1.png') no-repeat 4.5vw 5.2vh;
background-size: 30vw;
.test {
margin: auto;
text-align: center;
padding-top: 3vh;
img {
width: 105px;
margin-right: 10px;
}
transform: translateY(-0.6vh);
// color: #fff;
text-align: center;
font-size: 2.5vw;
font-weight: bold;
// background-image: -webkit-linear-gradient(bottom, #0fccff, #fff);
// -webkit-background-clip: text;
// -webkit-text-fill-color: transparent;
}
.header-title-zhuti-animate {
display: flex;
margin: auto;
// border: 1px red solid;
position: relative;
.center-left-animate {
position: absolute;
right: 26vw;
top: -1vw;
transform: skewX(-45deg);
}
.center-right-animate {
position: absolute;
right: 13vw;
top: -1vw;
transform: skewX(45deg);
}
}
}
.header-conter-cursor-right {
width: 30%;
height: 100%;
}
}
.head-time {
color: #ffffff;
font-size: 1.2vw;
position: absolute;
top: 3%;
right: 11.5vw;
font-family: electronicFont;
}
}
.center-animate {
display: flex;
width: 2.2105vw;
}
.center-animate li {
flex: 1;
height: 0.3158vw;
background-image: linear-gradient(to right, rgba(11, 178, 249, 1), rgba(11, 178, 249, 1));
}
.center-animate li + li {
margin-left: 0.2632vw;
}
.center-left-animate li:nth-child(1) {
animation: mymove 2s infinite;
animation-delay: 0.5s;
}
.center-left-animate li:nth-child(2) {
animation: mymove 2s infinite;
animation-delay: 1s;
}
.center-left-animate li:nth-child(3) {
animation: mymove 2s infinite;
animation-delay: 1.5s;
}
.center-right-animate li:nth-child(3) {
animation: mymove 2s infinite;
animation-delay: 0.5s;
}
.center-right-animate li:nth-child(2) {
animation: mymove 2s infinite;
animation-delay: 1s;
}
.center-right-animate li:nth-child(1) {
animation: mymove 2s infinite;
animation-delay: 1.5s;
}
@keyframes mymove {
0% {
background: rgba(11, 178, 249, 0.4);
}
30% {
background: rgba(11, 178, 249, 1);
}
100% {
background: rgba(11, 178, 249, 0);
}
}
ol,
ul {
list-style: none;
}
.cursor-left {
width: 25%;
float: left;
margin-top: 4.9vh;
animation: flying 6s ease-in infinite;
}
@keyframes flying {
0% {
margin-left: 0;
transform: translateX(0vw);
}
100% {
margin-left: 15vw;
transform: translateX(15vw);
}
}
.cursor-right {
width: 25%;
margin: 4.9vh 0 0 22vw;
animation: meng 6s ease-in infinite;
}
@keyframes meng {
0% {
margin-left: 22vw;
transform: translateX(0vw);
}
100% {
margin-left: -5vw;
transform: translateX(-5vw);
}
}
//看板标题炫酷效果
.sys-title-zhuti {
background-image: -webkit-linear-gradient(left, blue, #66ffff 10%, #cc00ff 20%, #cc00cc 30%, #ccccff 40%, #00ffff 50%, #ccccff 60%, #cc00cc 70%, #cc00ff 80%, #66ffff 90%, blue 100%);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
-webkit-background-size: 200% 100%;
-webkit-animation: masked-animation 4s linear infinite;
}
@keyframes masked-animation {
0% {
background-position: 0 0;
}
100% {
background-position: -100% 0;
}
}
</style>