|
@@ -9,18 +9,22 @@
|
9
|
9
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
10
|
10
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
11
|
11
|
<meta name="format-detection" content="telephone=no">
|
12
|
|
- <link rel="icon" th:href="@{//images/logo.ico}">
|
|
12
|
+ <link rel="icon" th:href="@{/images/logo.ico}">
|
13
|
13
|
<link rel="stylesheet" th:href="@{/lib/layui/css/layui.css}" media="all">
|
14
|
14
|
<style th:inline="text">
|
15
|
15
|
.main-body {
|
|
16
|
+ position: absolute;
|
16
|
17
|
top: 50%;
|
17
|
18
|
left: 50%;
|
18
|
|
- position: absolute;
|
|
19
|
+ transform: translate(-50%, -50%);
|
|
20
|
+ width: 350px;
|
|
21
|
+ background: #fff;
|
|
22
|
+ border-radius: 20px;
|
|
23
|
+ box-shadow: 0 5px 10px rgba(0,0,0,0.2);
|
19
|
24
|
-webkit-transform: translate(-50%, -50%);
|
20
|
25
|
-moz-transform: translate(-50%, -50%);
|
21
|
26
|
-ms-transform: translate(-50%, -50%);
|
22
|
27
|
-o-transform: translate(-50%, -50%);
|
23
|
|
- transform: translate(-50%, -50%);
|
24
|
28
|
overflow: hidden;
|
25
|
29
|
}
|
26
|
30
|
|
|
@@ -94,21 +98,22 @@
|
94
|
98
|
}
|
95
|
99
|
|
96
|
100
|
.login-main .login-bottom .center .item {
|
97
|
|
- width: 288px;
|
|
101
|
+ width: 260px;
|
98
|
102
|
height: 35px;
|
99
|
103
|
border-bottom: 1px solid #dae1e6;
|
100
|
104
|
margin-bottom: 35px;
|
101
|
105
|
}
|
102
|
106
|
|
103
|
107
|
.login-main {
|
104
|
|
- width: 500px;
|
|
108
|
+ width: 350px;
|
|
109
|
+ height: 500px;
|
105
|
110
|
position: relative;
|
106
|
111
|
float: left;
|
107
|
112
|
}
|
108
|
113
|
|
109
|
114
|
.login-main .login-top {
|
110
|
|
- height: 117px;
|
111
|
|
- background-color: #1aa094;
|
|
115
|
+ height: 150px;
|
|
116
|
+ margin-top: 40px;
|
112
|
117
|
border-radius: 12px 12px 0 0;
|
113
|
118
|
font-family: SourceHanSansCN-Regular;
|
114
|
119
|
font-size: 30px;
|
|
@@ -116,7 +121,7 @@
|
116
|
121
|
font-stretch: normal;
|
117
|
122
|
letter-spacing: 0;
|
118
|
123
|
color: #fff;
|
119
|
|
- line-height: 117px;
|
|
124
|
+ line-height: 30px;
|
120
|
125
|
text-align: center;
|
121
|
126
|
overflow: hidden;
|
122
|
127
|
-webkit-transform: rotate(0);
|
|
@@ -125,6 +130,27 @@
|
125
|
130
|
-o-transform: rotate(0);
|
126
|
131
|
transform: rotate(0);
|
127
|
132
|
}
|
|
133
|
+ .login-main .login-top .avatar{
|
|
134
|
+ width: 100px;
|
|
135
|
+ height: 100px;
|
|
136
|
+ border-radius: 50%;
|
|
137
|
+ overflow: hidden;
|
|
138
|
+ margin: 0 auto 20px;
|
|
139
|
+ display: flex;
|
|
140
|
+ justify-content: center;
|
|
141
|
+ align-items: center;
|
|
142
|
+ }
|
|
143
|
+ .login-main .login-top .avatar img{
|
|
144
|
+ width: 90%;
|
|
145
|
+ height: 90%;
|
|
146
|
+ object-fit: cover;
|
|
147
|
+ }
|
|
148
|
+ .login-main .login-top h2{
|
|
149
|
+ font-size: 23px;
|
|
150
|
+ font-weight: 700;
|
|
151
|
+ color: #2980b9;
|
|
152
|
+ margin-bottom: 20px;
|
|
153
|
+ }
|
128
|
154
|
|
129
|
155
|
.login-main .login-top .bg1 {
|
130
|
156
|
display: inline-block;
|
|
@@ -151,14 +177,14 @@
|
151
|
177
|
}
|
152
|
178
|
|
153
|
179
|
.login-main .login-bottom {
|
154
|
|
- width: 500px;
|
|
180
|
+ width: 340px;
|
155
|
181
|
background: #fff;
|
156
|
182
|
border-radius: 0 0 12px 12px;
|
157
|
183
|
padding-bottom: 53px;
|
158
|
184
|
}
|
159
|
185
|
|
160
|
186
|
.login-main .login-bottom .center {
|
161
|
|
- width: 288px;
|
|
187
|
+ width: 260px;
|
162
|
188
|
margin: 0 auto;
|
163
|
189
|
padding-top: 40px;
|
164
|
190
|
padding-bottom: 15px;
|
|
@@ -169,12 +195,12 @@
|
169
|
195
|
clear: both;
|
170
|
196
|
height: 16px;
|
171
|
197
|
line-height: 16px;
|
172
|
|
- width: 288px;
|
|
198
|
+ width: 260px;
|
173
|
199
|
margin: 0 auto;
|
174
|
200
|
}
|
175
|
201
|
|
176
|
202
|
body {
|
177
|
|
- background: url("/images/loginbg.jpg") 0% 0% / cover no-repeat;
|
|
203
|
+ background: url("/images/logo-v1.png") 0% 0% / cover no-repeat;
|
178
|
204
|
position: static;
|
179
|
205
|
font-size: 12px;
|
180
|
206
|
}
|
|
@@ -207,7 +233,7 @@
|
207
|
233
|
clear: both;
|
208
|
234
|
height: 16px;
|
209
|
235
|
line-height: 16px;
|
210
|
|
- width: 288px;
|
|
236
|
+ width: 260px;
|
211
|
237
|
margin: 0 auto;
|
212
|
238
|
}
|
213
|
239
|
|
|
@@ -219,21 +245,22 @@
|
219
|
245
|
letter-spacing: 0;
|
220
|
246
|
color: #9abcda;
|
221
|
247
|
cursor: pointer;
|
|
248
|
+ margin-top: 5px;
|
222
|
249
|
}
|
223
|
250
|
|
224
|
251
|
.login-main .login-bottom .tip .forget-password {
|
225
|
252
|
font-stretch: normal;
|
226
|
253
|
letter-spacing: 0;
|
227
|
|
- color: #1aa094;
|
|
254
|
+ color: #2980b9;
|
228
|
255
|
text-decoration: none;
|
229
|
256
|
position: absolute;
|
230
|
257
|
right: 62px;
|
231
|
258
|
}
|
232
|
259
|
|
233
|
260
|
.login-main .login-bottom .login-btn {
|
234
|
|
- width: 288px;
|
|
261
|
+ width: 260px;
|
235
|
262
|
height: 40px;
|
236
|
|
- background-color: #1aa094;
|
|
263
|
+ background-color: #2980b9;
|
237
|
264
|
border-radius: 16px;
|
238
|
265
|
margin: 24px auto 0;
|
239
|
266
|
text-align: center;
|
|
@@ -273,6 +300,23 @@
|
273
|
300
|
.footer a, .footer span {
|
274
|
301
|
color: #fff;
|
275
|
302
|
}
|
|
303
|
+ .logo{
|
|
304
|
+ position: absolute;
|
|
305
|
+ top: 50px;
|
|
306
|
+ left: 50px;
|
|
307
|
+ display: flex;
|
|
308
|
+ align-items: center;
|
|
309
|
+ }
|
|
310
|
+ .logo img{
|
|
311
|
+ width: 32px;
|
|
312
|
+ height: 32px;
|
|
313
|
+ margin-right: 10px;
|
|
314
|
+ }
|
|
315
|
+ .logo h2{
|
|
316
|
+ font-size: 24px;
|
|
317
|
+ font-weight: 700;
|
|
318
|
+ color: #333;
|
|
319
|
+ }
|
276
|
320
|
|
277
|
321
|
@media screen and (max-width: 428px) {
|
278
|
322
|
.login-main {
|
|
@@ -291,13 +335,17 @@
|
291
|
335
|
|
292
|
336
|
</head>
|
293
|
337
|
<body>
|
294
|
|
-
|
|
338
|
+<div class="logo">
|
|
339
|
+ <img src="/images/logo.png" alt="User Icon">
|
|
340
|
+ <h2>科研管控平台</h2>
|
|
341
|
+</div>
|
295
|
342
|
<div class="main-body">
|
296
|
343
|
<div class="login-main">
|
297
|
344
|
<div class="login-top">
|
298
|
|
- <span>科研管控平台</span>
|
299
|
|
- <span class="bg1"></span>
|
300
|
|
- <span class="bg2"></span>
|
|
345
|
+ <div class="avatar">
|
|
346
|
+ <img src="/images/logo.png" alt="Avatar">
|
|
347
|
+ </div>
|
|
348
|
+ <h2>Welcome back</h2>
|
301
|
349
|
</div>
|
302
|
350
|
<form class="layui-form login-bottom">
|
303
|
351
|
<div class="center">
|
|
@@ -306,25 +354,17 @@
|
306
|
354
|
<input type="text" name="username" id="username" lay-verify="required" placeholder="请输入登录账号"
|
307
|
355
|
maxlength="24" autocomplete="current-password" />
|
308
|
356
|
</div>
|
309
|
|
-
|
310
|
357
|
<div class="item">
|
311
|
358
|
<span class="icon icon-3"></span>
|
312
|
359
|
<input type="password" name="password" id="password" lay-verify="required" placeholder="请输入密码"
|
313
|
360
|
maxlength="20" autocomplete="current-password">
|
314
|
361
|
<span class="bind-password icon icon-4"></span>
|
315
|
362
|
</div>
|
316
|
|
-
|
317
|
|
- <!-- <div id="validatePanel" class="item" style="width: 167px;">-->
|
318
|
|
- <!-- <span class="icon icon-1"></span>-->
|
319
|
|
- <!-- <input type="text" id="captcha" name="captcha" placeholder="请输入验证码" autocomplete="off" maxlength="4">-->
|
320
|
|
- <!-- <img id="ver_btn" class="validateImg" alt="看不清? 点击刷新" title="看不清? 点击刷新"/>-->
|
321
|
|
- <!-- </div>-->
|
322
|
|
-
|
323
|
363
|
</div>
|
324
|
364
|
<div class="tip">
|
325
|
365
|
<span class="icon-nocheck"></span>
|
326
|
|
- <span class="login-tip">记住密码</span><!--
|
327
|
|
- <a href="javascript:" class="forget-password">忘记密码?</a>-->
|
|
366
|
+ <span class="login-tip">记住密码</span>
|
|
367
|
+ <!--<a href="javascript:" class="forget-password">忘记密码?</a>-->
|
328
|
368
|
</div>
|
329
|
369
|
<div class="layui-form-item" style="text-align:center; width:100%;height:100%;margin:0px;">
|
330
|
370
|
<button id="btn_login" class="login-btn" lay-submit lay-filter="login">
|
|
@@ -339,6 +379,18 @@
|
339
|
379
|
<div class="footer">
|
340
|
380
|
Copyright© 2023 <span class="padding-5">|</span>
|
341
|
381
|
</div>
|
|
382
|
+<script>
|
|
383
|
+ const inputs = [
|
|
384
|
+ document.getElementById('username'),
|
|
385
|
+ document.getElementById('password')
|
|
386
|
+ ]
|
|
387
|
+
|
|
388
|
+ inputs.forEach(input =>{
|
|
389
|
+ input.addEventListener('input',function () {
|
|
390
|
+ this.value = this.value.replace(/\s+/g,'');
|
|
391
|
+ })
|
|
392
|
+ })
|
|
393
|
+</script>
|
342
|
394
|
<script th:src="@{/lib/jquery-3.4.1/jquery-3.4.1.min.js}" charset="utf-8"></script>
|
343
|
395
|
<script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
|
344
|
396
|
<script th:src="@{/lib/md5/md5.min.js}" charset="utf-8"></script>
|