-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
247 lines (225 loc) · 6.9 KB
/
index.html
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
<!DOCTYPE html>
<html lang=zh-ch>
<head>
<meta charset=utf-8>
<meta http-equiv=X-UA-Compatible content="IE=edge">
<meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta http-equiv=Pragma content=no-cache>
<meta http-equiv=Cache-control content=no-cache>
<meta http-equiv=Cache content=no-cache>
<link rel="shortcut icon" href=favicon.ico>
<link href="https://fonts.loli.net/icon?family=Material+Icons" rel="stylesheet">
<title>平安成电智慧通行</title>
<style>
[v-cloak] {
display: none
}
</style>
<meta name=theme-color content=#00C4A4>
<meta name=apple-mobile-web-app-capable content=no>
<meta name=apple-mobile-web-app-status-bar-style content=default>
<meta name=apple-mobile-web-app-title content=平安成电智慧通行>
<meta name=msapplication-TileImage content=/img/icons/ico.png>
<meta name=msapplication-TileColor content=#000000>
<style>
* {
margin: 0;
padding: 0;
}
body {
background-color: #fafafa;
}
.main {
box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px 0px, rgba(0, 0, 0, 0.137255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.117647) 0px 0px 0px 0px;
background-color: #fff;
display: flex;
flex-direction: column;
text-decoration: none;
transition-delay: 0s;
transition-duration: 0.3s;
transition-property: all;
transition-timing-function: cubic-bezier(0.25, 0.8, 0.5, 1);
padding-bottom: 8px;
padding-top: 32px;
}
.header {
-webkit-box-align: center;
align-items: center;
background-color: transparent;
border-bottom-color: rgba(0, 0, 0, 0.870588);
border-left-color: rgba(0, 0, 0, 0.870588);
border-right-color: rgba(0, 0, 0, 0.870588);
border-top-color: rgba(0, 0, 0, 0.870588);
border-top-left-radius: 0px;
border-top-right-radius: 0px;
color: rgba(0, 0, 0, 0.870588);
display: flex;
flex-wrap: wrap;
height: 68px;
padding-bottom: 16px;
padding-left: 16px;
padding-right: 16px;
padding-top: 16px;
}
.header-text {
background-color: transparent;
color: #080;
display: inline-block;
font-size: 24px;
font-weight: bold;
height: 36px;
text-align: justify;
}
.v-divider {
-webkit-box-flex: 1;
background-color: transparent;
border-top-color: rgba(0, 0, 0, 0.117647);
border-top-style: solid;
border-top-width: 1px;
color: rgba(0, 0, 0, 0.870588);
display: block;
flex-basis: 0px;
flex-grow: 1;
flex-shrink: 1;
height: 1px;
max-height: 0px;
max-width: 100%;
transition-delay: 0s;
transition-duration: 0.3s;
transition-property: all;
transition-timing-function: cubic-bezier(0.25, 0.8, 0.5, 1);
}
.v-list {
background-color: transparent;
border-bottom-color: rgba(0, 0, 0, 0.870588);
border-left-color: rgba(0, 0, 0, 0.870588);
border-right-color: rgba(0, 0, 0, 0.870588);
border-top-color: rgba(0, 0, 0, 0.870588);
color: rgba(0, 0, 0, 0.870588);
display: block;
height: 48px;
}
.listitem {
display: flex;
margin-top: 16px;
justify-content: space-between;
align-items: center;
padding-left: 16px;
padding-right: 16px;
}
.layout {
display: flex;
justify-content: start;
align-content: center;
}
.imgv {
margin-top: 2rem;
margin-left:auto;
margin-right:auto;
}
* {
font-family: Roboto, "Noto Sans S Chinese", PingFangSC, "Microsoft YaHei", sans-serif;
}
.marquee {
/* margin: 2rem 0; */
overflow: hidden;
}
.marquee span {
display: inline-block;
white-space: nowrap;
--tw: 11.2em;
--ad: 6s;
color: #00C4A4;
width: var(--tw);
text-shadow: var(--tw) 0 currentColor,
calc(var(--tw) * 2) 0 currentColor,
calc(var(--tw) * 3) 0 currentColor,
calc(var(--tw) * 4) 0 currentColor;
will-change: transform;
animation: marquee var(--ad) linear infinite;
}
@keyframes marquee {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-100%);
}
}
#nav-to-qr {
margin-top: 2rem;
color: white;
background-color: #01BC9A;
border-radius: 2px;
padding: 0.5rem 0.8rem;
border: none;
margin-left: auto;
margin-right: auto;
box-shadow: 0 3px 3px 0 gray;
font-weight: bold;
font-size: 1rem;
}
</style>
</head>
<body><noscript><strong>请在您的浏览器启用JavaScript以正常使用系统</strong> <strong>We're sorry but This system doesn't work properly
without JavaScript enabled. Please enable it to continue.</strong></noscript>
<div id=app class='v-sheet--tile'></div>
<div class="main">
<div class="header"><span class="header-text" id="pass-type">研究生用户,入校授权有效!</span>
<!-- 研究生用户,入校授权有效! -->
</div>
<hr class="v-divider theme--light">
<div class="listitem">
<div class="layout">
<i class="material-icons" style="color: #757575;">person</i>
<div style="margin-left: 8px;">用户姓名</div>
</div>
<h2 id='name'>贺涛</h2>
</div>
<div class="listitem">
<div class="layout">
<i class="material-icons" style="color: #757575;">group</i>
<div style="margin-left: 8px;">登记类型</div>
</div>
<h2 id='degree'>研究生(硕士)</h2>
</div>
<div class="listitem">
<div class="layout">
<i class="material-icons" style="color: #757575;">timer</i>
<div style="margin-left: 8px;">登记时间</div>
</div>
<h3 class="marquee" style="width: 180px;">
<span id='time'>2020-06-01 18:58:10</span>
</h3>
</div>
<button id="nav-to-qr">前往个人二维码</button>
<div class="imgv">
<img src="res/uestc.jpg"
alt="null" width="50" height="50">
</div>
</div>
<script>
window.onload = () => {
const time = document.getElementById('time');
time.innerText = now();
const params = new URLSearchParams(window.location.search);
const name = params.get('name');
const type = params.get('type');
const degree = params.get('degree');
if (degree === 'phd') {
const degreeField = document.getElementById('degree');
degreeField.innerHTML = '研究生(博士)';
}
if (!name) return;
const nameElement = document.getElementById('name');
nameElement.innerText = name;
}
const now = () => {
const now = new Date();
const offsetMs = now.getTimezoneOffset() * 60 * 1000;
const dateLocal = new Date(now.getTime() - offsetMs);
return dateLocal.toISOString().slice(0, 19).replace("T", " ");
}
</script>
</body>
</html>