-
Notifications
You must be signed in to change notification settings - Fork 0
/
pass.html
786 lines (735 loc) · 39.4 KB
/
pass.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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
<!DOCTYPE html>
<!-- saved from url=(0125)https://serv.tju.edu.cn/verifyqr/access?code=Yk0yemRFMTQwTTRUZmxiZmRNZVU2QjRBZE0yVGZVOTQxT2FEM1FleDNNOVQ3azZ4Nk5jZzg9YT02N2Rh -->
<html class="mdl-js">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style data-merge-styles="true"></style>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no,shrink-to-fit=no">
<title>天津大学综合服务平台</title>
<!-- bootstrap -->
<link href="./sources/bootstrap.min.css" rel="stylesheet" type="text/css">
<!-- style -->
<!-- <style>
.dd {
-webkit-animation: bounce1 500ms infinite;
animation: bounce1 500ms infinite;
position: relative;
top: 50px;
}
@-webkit-keyframes bounce1 {
0% {
-webkit-transform: translateY(-80%);
transform: translateY(-80%);
}
25% {
-webkit-transform: translateY(-75%);
transform: translateY(-75%);
}
50% {
-webkit-transform: translateY(-60%);
transform: translateY(-60%);
}
75% {
-webkit-transform: translateY(-55%);
transform: translateY(-55%);
}
100% {
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
}
@keyframes bounce1 {
0% {
-webkit-transform: translateY(0%);
transform: translateY(0%);
}
25% {
-webkit-transform: translateY(5%);
transform: translateY(5%);
}
50% {
-webkit-transform: translateY(10%);
transform: translateY(10%);
}
75% {
-webkit-transform: translateY(15%);
transform: translateY(15%);
}
100% {
-webkit-transform: translateY(20%);
transform: translateY(20%);
}
}
</style> -->
<link href="./sources/extra_pages.css" rel="stylesheet">
<link href="./sources/access_b2d104fbde64d2f91a3e39766c8a67da.css" rel="stylesheet" type="text/css">
<script src="./sources/jquery.min.js"></script>
<script src="./sources/jquery.qrcode.min.js"></script>
<script src="./sources/fullscreen.js"></script>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Security-Policy" content="font-src 'self' b.yzcdn.cn data:">
<!-- <meta content="width=device-width, initial-scale=1" name="viewport" /> -->
<meta name="renderer" content="webkit">
<meta name="force-rendering" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="author" content="tjuis">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> -->
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no,shrink-to-fit=no"> -->
<!-- 适应刘海屏 -->
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover">
<!-- <meta name="viewport" content="width=device-width, initial-scale=0,user-scalable=yes,maximum-scale=1.0"> -->
<title>天津大学综合服务平台</title>
<!--[if lt IE 9]>
<script src="http://apps.bdimg.com/libs/html5shiv/3.7/html5shiv.min.js"></script>
<script src="http://apps.bdimg.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- icons -->
<link href="./sources/simple-line-icons.min.css" rel="stylesheet" type="text/css">
<link href="./sources/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="./sources/material-icon.css" rel="stylesheet" type="text/css">
<!--bootstrap -->
<link href="./sources/bootstrap.css" rel="stylesheet" type="text/css">
<!-- Material Design Lite CSS -->
<link href="./sources/material.min.css" rel="stylesheet">
<link href="./sources/material_style.css" rel="stylesheet">
<link href="./sources/animate.css" rel="stylesheet">
<!-- Theme Styles -->
<link href="./sources/theme_style.css" rel="stylesheet" id="rt_style_components" type="text/css">
<link href="./sources/style.css" rel="stylesheet" type="text/css">
<link href="./sources/plugins.min.css" rel="stylesheet" type="text/css">
<link href="./sources/responsive.css" rel="stylesheet" type="text/css">
<link href="./sources/theme-color.css" rel="stylesheet" type="text/css">
<!-- favicon -->
<link rel="shortcut icon" href="./sources/logo_3.ico">
<!-- 新增提示信息组件 -->
<link rel="stylesheet" href="./sources/jquery.toast.min.css">
<!-- sweetalert -->
<link href="./sources/sweetalert.css" rel="stylesheet">
<script src="./sources/jquery.min.js"></script>
<script src="./sources/jquery.cookie.js"></script>
<link href="./sources/mobile.css" rel="stylesheet">
<script type="text/javascript">
var _APP_URL_ROOT = '..';
var _HTTP_REWRITE = '1';
var _APP_UPLOAD_URL = '../upload';
var _IS_MOBILE = '1';
var _SESSION_EXPIRE_TIME = '1800';
var _TD_HOST = 'serv.tju.edu.cn';
</script>
<!--link href="./sources/spec_20da.css" rel="stylesheet"-->
<script src="./sources/head.js"></script>
<script type="text/javascript" src="./sources/codeback.js"></script>
</head>
<body
class="page-header-fixed sidemenu-closed-hidelogo page-content-white page-md header-white white-sidebar-color logo-indigo">
<div class="page-wrapper">
<!-- start header 顶部-->
<div class="page-header navbar navbar-fixed-top">
<div id="exc4" class="page-header-inner pc_modify_css_setting_theme_color_Skyblue">
<!-- logo start -->
<a id="back-page" class="back-page" href="javascript:void(0)"><i class="fa fa-angle-left"
aria-hidden="true"></i></a>
<!-- logo end -->
<!-- <form class="search-form-opened n-s" style="display:none;" id="global_search" onkeydown="if(event.keyCode==13) return false;">
<div class="input-group">
<input type="text" class="form-control" placeholder="搜索..." name="search">
<span class="input-group-btn">
<a href="#" class="btn submit"><i class="icon-magnifier"></i></a>
</span>
</div>
</form> -->
<!-- start mobile menu -->
<!-- <a href="javascript:;" class="menu-toggler responsive-toggler" style="margin-top:17px;" data-toggle="modal" data-target="#modal-menu">
<img src="../themes/mobile/assets/svg/all.svg" style="height:30px;">
</a> -->
<!-- start header menu -->
<div class="top-menu" style="position:relative;">
<ul class="nav navbar-nav pull-right" style="padding-right:5px;">
<!-- <li class="dropdown dropdown-extended dropdown-notification a-search">
<a href="javascript:;" class='dropdown-toggle'>
<i class="icon-magnifier"></i>
</a>
</li> -->
<!-- <li class="dropdown dropdown-extended dropdown-notification n-h" id="header_notification_bar">
<a class='dropdown-toggle' href="javascript:goUrl(openUrl('index/qrcode'));" style="padding-top:18px;">
<img src="../themes/mobile/assets/img/s1.png" style="height:17px;width:17px;">
</a>
</li> -->
<li class="dropdown dropdown-extended dropdown-notification n-h" id="header_notification_bar">
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown"
data-close-others="true">
<i class="fa fa-bell-o"></i>
<span class="badge headerBadgeColor1" id="td_top_message_num" style="display: none;"> 0
</span>
</a>
<ul class="dropdown-menu" id="top_menu_message">
<li class="external">
<h3><span class="bold">通知</span></h3>
<span class="notification-label purple-bgcolor"
id="td_top_message_title">有0个新通知</span>
</li>
<li>
<div class="slimScrollDiv"
style="position: relative; overflow: hidden; width: auto;">
<ul class="dropdown-menu-list small-slimscroll-style" id="td_top_message_li"
style="overflow: hidden; width: auto;"></ul>
<div class="slimScrollBar"
style="background: rgb(158, 165, 171); width: 5px; position: absolute; top: 0px; opacity: 0.4; display: block; border-radius: 7px; z-index: 99; right: 1px;">
</div>
<div class="slimScrollRail"
style="width: 5px; height: 100%; position: absolute; top: 0px; display: none; border-radius: 7px; background: rgb(51, 51, 51); opacity: 0.2; z-index: 90; right: 1px;">
</div>
</div>
<div class="dropdown-menu-footer">
<a href="javascript:void(0)"> 查看所有通知 </a>
</div>
</li>
</ul>
</li>
<li class="dropdown dropdown-user n-h" id="header_user_bar">
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown"
data-close-others="true">
<img id="imghead" class="img-circle"
style="object-fit:cover;width:unset;border-radius:25%"
data-savepage-currentsrc="http://serv.tju.edu.cn/user/headImg"
data-savepage-src="../user/headImg"
src="./sources/head.png">
<i class="fa fa-angle-down"></i>
</a>
<ul class="dropdown-menu dropdown-menu-default" style="min-width:110px;width:110px">
<li>
<a href="./center.html">
<span id="exc2" class="username"></span>
</a>
</li>
<li>
<a href="javascript:void(0)">
<i class="fa fa-street-view"></i> 位置报送
</a>
</li>
<li>
<a href="javascript:void(0)">
<i class="fa fa-key"></i> 修改密码
</a>
</li>
<li>
<a href="javascript:void(0)">
<i class="fa fa-envelope-o"></i> 意见反馈
</a>
</li>
<li style="width:100px">
<a href="javascript:void(0)">
<i class="icon-logout"></i> 退出
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div class="modal fade" id="change_user_group" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">机构切换</h4>
</div>
<div class="modal-body">
<div class="table-scrollable">
<table class="table">
<thead>
<tr>
<th>机构名称</th>
<th>简称</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">不切换</button>
<button type="button" class="btn btn-info">切换</button>
</div>
</div>
</div>
</div>
<script src="./sources/top.js"></script>
<script>
$(function () {
//返回按钮
$("#back-page").click(function () {
var url = location.href
//默认返回首页
var bUrl = window.openUrl('index')
if (isOpen(url)) {
//open页面有pointer返回列表,没有返回首页
var p = getPointer("pointer")
if (p) {
var code = getCode()
// list/needApprove&sid=receive
if (code) {
bUrl = window.openUrl('list/' + p, {
'sid': code
})
}
}
goUrl(bUrl);
} else if (isEdit(url) || isDraft(url)) {
//编辑页面和草稿页面返回
var code = getCode()
if (code) {
bUrl = openUrl("list/draft", {
'sid': code
})
}
goUrl(bUrl);
} else if (isList(url)) {
//列表页返回首页
goUrl(bUrl);
} else {
//其他页面回到上一页
// goUrl(bUrl);
history.go(-1)
}
})
function isOpen(url) {
let reg = /formdata\/open/
return reg.test(url)
}
function isEdit(url) {
let reg = /formdata\/edit/
return reg.test(url)
}
function isDraft(url) {
let reg = /formdata\/draft/
return reg.test(url)
}
function isList(url) {
let reg = /list/
return reg.test(url)
}
function getCode() {
return $('#design_code').val()
}
function getPointer(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1];
}
}
return (false);
}
});
</script>
<div id="exc5" class="page-container">
<div style="display: none; justify-content: center; align-items: center;">松开刷新</div>
<script src="./sources/mobile.js"></script>
<script>
/************** 移动端首页,配合静态化改造后的修改*************/
$(function () {
if (window.SERV_TJU) {
window.SERV_TJU.ready(function (e) {
//校验回话有效后,设定刷新频率
mobilePush(e.tf);
})
}
})
</script>
<div class="page-content-wrapper">
<div class="page-content">
<div class="title-image">
<img src="./sources/access.jpg">
</div>
<div class="qr-content row">
<div class="col-12">
<div class="card-box" style="">
<div class="card-body">
<div class="card" style="margin-bottom:0;">
<div class="card-body code-box"
style="background-color: rgba(126, 173, 117, 0.8);">
<div class="text-center r1" style="padding-left:15px; padding-right:15px">
<div class="row">
<div class="col-12" style="padding-left:0px;padding-right:0px;padding-top: 10px;">
<div>
<span id="signal"></span>
</div>
</div>
</div>
<div class="row">
<div class="col-12" style="padding-left:0px;padding-right:0px;padding-top: 10px;">
<div style="font-size:40px;display: inline-block;font-weight:bolder;line-height: 46px;overflow: visible;white-space: nowrap;text-align: center;" id="dateShow"></div>
</div>
</div>
<div class="row" style="text-align: center;">
<div class="col-12" style="">
<div style="font-size: 64px;font-family: Arial, Helvetica, sans-serif;font-weight:bolder;overflow: visible;white-space: nowrap;text-align: center;" id="hourShow" _timestamp=""></div>
</div>
</div>
<div class="row">
<div class="col-5">
<img id="imghead2"
style="height:180px"
src="./sources/head.png">
</div>
<div class="col-7">
<div class="col-12" style="height:100px;padding-left:0px;padding-right:0px">
<div class="b" style="color:blue;font-weight:bold;">
<img src="./sources/5.png" style="width: 22px;display: inline-block;margin-top: -3px;padding-right: 3px;">
校验成功
</div>
<div class="b"><span id="exc1"></span></div>
<div class="b"><span id="exc3"></span></div>
<div class="b"><span id="exc6"></span></div>
<div class="b" id="qrContent"><span id="qrContent"></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<a class="btn btn-primary" style="width: 100%; border-radius: 30px;" href="javascript:void(0)" id="btn_back" onclick="javascript:history.back(-1);">返回</a>
</div>
</div>
</div>
</div>
</div>
<div id="extwaiokist" style="display:none" v="cbopg" q="5757a139" c="387.9" i="392" u="9.976" s="12142116" d="1"
w="false" e="" m="BMe=" vn="3ges2">
<div id="extwaigglbit" style="display:none" v="cbopg" q="5757a139" c="387.9" i="392" u="9.976" s="12142116"
d="1" w="false" e="" m="BMe="></div>
</div>
</div>
<!-- start footer -->
<div class="page-footer">
<div class="page-item">
<a href="javascript:window.location.href = './main.html'">
<i class=" page-item-fa fa fa-home"></i>
<div class="page-item-title">首页</div>
</a>
</div>
<div class="page-item">
<a href="javascript:window.location.href = './qrcode.html'">
<i class=" page-item-fa fa fa-qrcode"></i>
<div class="page-item-title">二维码</div>
</a>
</div>
<div class="page-item page-center">
<a href="javascript:void(0)" onclick="openBarcodeCustom()">
<div class="page-cre">
<div class="page-item-fa">
<div class="img-box">
<img src="./sources/s2.png" alt="">
</div>
</div>
</div>
<div class="page-item-title">扫一扫</div>
</a>
</div>
<div class="page-item">
<a href="javascript:void(0)">
<i class=" page-item-fa fa fa-envelope"></i>
<div class="page-item-title">收件箱</div>
</a>
</div>
<div class="page-item">
<a href="javascript:window.location.href = './center.html'">
<i class=" page-item-fa fa fa-user"></i>
<div class="page-item-title">我的</div>
</a>
</div>
</div>
<!--引入二选一提示信息框-->
<div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="confirm_modal"
class="modal fade">
<div class="modal-dialog" role="document" style="top:35%;">
<div class="modal-content">
<div class="modal-body" style="min-height: 85px;">
<p style="margin: 0px;padding: 15px ; text-align: center;">
<i class="fa fa-exclamation-circle"
style="color:#ffc107;font-size:24px;margin-right: 25px;position: relative;top:2px;"></i>
<span class="message" style="font-size: 18px;">您还没有填写提示信息...</span>
</p>
</div>
<div class="modal-footer" style="padding-top: 0px;">
<button type="button" data-dismiss="modal" class="btn btn-primary confirm-operation">确认</button>
<button type="button" data-dismiss="modal" class="btn btn-secondary cancel-operation">取消</button>
</div>
</div>
</div>
</div>
<script>
function openBarcodeCustom() {
function plusReady(){
createWithoutTitle('barcode.html', {
titleNView: {
type: 'float',
backgroundColor: '#00000000',
autoBackButton: false,
titleText: "",
buttons: [{
type: 'none',
text: "返回",
color: '#FFFFFF',
fontSize: '16px',
float: 'left',
width: 'auto',
colorPressed: '#FFFFFF',
onclick: "javascript:plus.webview.currentWebview().evalJS('ws.close();')"
}
],
}
});
}
if(window.plus){
plusReady();
}else{
document.addEventListener('plusready',plusReady,false);
}
}
//扫描成功后回调
function scaned(){
window.location.href = "./pass.html";
}
</script>
<script type="text/javascript">
/**
* 二选一
* @param message 消息
* @param fn1 确认按钮回调函数
* @param fn2 取消按钮回调函数
* @param time 显示时间
* @param text1 确认按钮文字
* @param text2 取消按钮文字
*/
function confirmModal(message, fn1, fn2, time, text1, text2) {
if (fn2 == null) fn2 = '';
if (time == null) time = false;
if (text1 == null) text1 = '确认';
if (text2 == null) text2 = '取消';
var isConfirm;
var $modal = $('#confirm_modal').unbind("show.bs.modal").on('show.bs.modal', function () {
$(this).find('.message').text(message);
$(this).find('.confirm-operation').text(text1);
$(this).find('.cancel-operation').text(text2);
$(this).find('.confirm-operation').unbind('click').click(function () {
isConfirm = true;
$modal.modal();
});
$(this).find('.cancel-operation').unbind('click').click(function () {
isConfirm = false;
$modal.modal();
});
}).unbind('hide.bs.modal').on('hide.bs.modal', function () {
if (isConfirm == undefined) return false;
}).unbind('hidden.bs.modal').on('hidden.bs.modal', function () {
if (isConfirm) {
if (typeof fn1 == 'function') fn1();
} else if (typeof fn2 == 'function') fn2();
}).modal();
if (time !== false) {
setTimeout(function () {
$('#confirm_modal').modal('hide');
}, time)
}
}
</script>
<!-- 弹窗 -->
<div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="common-select"
class="modal right fade">
<div class="modal-dialog" role="document" style="width:100%;margin:0;max-width:none;height:100%">
<div class="modal-content" style="height:100%">
<div class="modal-header">
<h4 class="modal-title"> </h4>
</div>
<div class="modal-body" style="
height:-moz-calc(100% - 133px);
height:-webkit-calc(100% - 133px);
height:calc(100% - 133px);
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
padding:0 5px;
"></div>
<div class="modal-footer">
<div class="row" style="width:100%;">
<div class="col-lg-12" style="padding-left: 0px;">
<button type="button" class="btn btn-success" data-dismiss="modal"><i
class="fa fa-check"></i>确认选择</button>
<button type="button" class="btn btn-default" data-dismiss="modal"><i
class="fa fa-times"></i> 取消</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="./sources/common.js"></script>
<!-- start js include path -->
<script src="./sources/popper.js"></script>
<script src="./sources/jquery.blockui.min.js"></script>
<script src="./sources/jquery.slimscroll.js"></script>
<script src="./sources/jquery.scrollTo.js"></script>
<!-- bootstrap -->
<script src="./sources/bootstrap.min.js"></script>
<script src="./sources/bootstrap-switch.min.js"></script>
<!-- Common js-->
<script src="./sources/app.js"></script>
<script src="./sources/layout.js"></script>
<script src="./sources/theme-color.js"></script>
<!-- Material -->
<script src="./sources/material.min.js"></script>
<!-- end js include path -->
<!-- validation 插件-->
<script src="./sources/jquery.validate.js"></script>
<script src="./sources/additional-methods.js"></script>
<script src="./sources/jquery.form.js"></script>
<script src="./sources/validator.js"></script>
<script src="./sources/verify_decimal.js"></script>
<script src="./sources/messages_zh.js"></script>
<!-- sweetalert -->
<script src="./sources/sweetalert.min.js"></script>
<!-- polyfill -->
<script src="./sources/FormData.js"></script>
<script src="./sources/polyfill.min.js"></script>
<!--添加共用提示信息-->
<script src="./sources/jquery.toast.min.js"></script>
<!-- Table手机端扩展-->
<script src="./sources/tableExtend.js"></script>
<script src="./sources/List.js"></script>
<script>
var time = Date.now();
hourShow.setAttribute('_timestamp', time / 1000);
//document.getElementById('scale').innerHTML = localStorage.getItem('scale');
var imgUrl;
if(localStorage.getItem('str')==null) imgUrl=document.getElementById('imghead').getAttribute('src');
else imgUrl = JSON.parse(localStorage.getItem('str'));
var myname = JSON.parse(localStorage.getItem('myname'));
var mycollege = JSON.parse(localStorage.getItem('mycollege'));
var myid = JSON.parse(localStorage.getItem('myid'));
var paddingstyle = JSON.parse(localStorage.getItem('paddingstyle'));
var containerstyle = JSON.parse(localStorage.getItem('containerstyle'));
document.getElementById('exc1').innerHTML = myid;
document.getElementById("exc2").innerHTML = "欢迎你, " + myname;
document.getElementById('exc3').innerHTML = myname;
document.getElementById('exc4').setAttribute('style', paddingstyle);
document.getElementById('exc5').setAttribute('style', containerstyle);
document.getElementById('exc6').innerHTML = mycollege;
var img = document.getElementById('imghead');
var img2 = document.getElementById('imghead2');
if (JSON.parse(localStorage.getItem('cut'))==true){
img.setAttribute('style', "object-fit:cover;width:21px;border-radius:25%");
img2.setAttribute('style', "object-fit:cover;width:130px;height:180px");
}
img.setAttribute('src', imgUrl);
img2.setAttribute('src', imgUrl);
</script>
<div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="leave_modal"
class="modal fade">
<div class="modal-dialog" role="document" style="top:35%;">
<div class="modal-content" style="border-radius:4px;">
<div class="modal-header" style="padding:10px;">
<h4 class="modal-title" id="myModalLabel" style="margin-top:0px;">销假数据填写</h4>
</div>
<div class="modal-body" style="min-height: 85px;">
<div class="form-group row"> <label class="col-md-4 control-label">实际开始时间</label>
<div class="col-md-12"> <input size="30" type="text" value="" id="actual_start_time" readonly=""
class="form-control form_datetime_one"> </div>
</div>
<div class="form-group row"> <label class="col-md-4 control-label">实际结束时间</label>
<div class="col-md-12"> <input size="30" type="text" value="" id="actual_end_time" readonly=""
class="form-control form_datetime_two"> </div>
</div>
<div class="form-group"> <label for="record">请输入您的销假意见:</label> <textarea id="record" name="record"
class="form-control" rows="3" spellcheck="false" data-ms-editor="true"></textarea> </div>
</div>
<div class="modal-footer" style="padding-top: 0px;"> <button type="button" data-dismiss="modal"
class="btn btn-primary leave-confirm">确认</button> <button type="button" data-dismiss="modal"
class="btn btn-secondary leave-cancel">取消</button> </div>
</div>
</div>
</div>
<script>
window.UPLOAD_URL = "../upload"
window.CHECK_STATUS = "1"
window.CHECK_TITLE = "您已离开天津大学,再见!"
window.HEALTH_CODE = "0";
window.NAME = "卫津路校区西门";
window.ACTION = "2";
</script>
<script src="./sources/code.js"></script>
<script>
healthCodeInit()
$(function () {
let $hourShow = $('#hourShow');
let $dateShow = $('#dateShow');
let $mygate = $('#qrContent');
let currentTime = parseInt($hourShow.attr('_timestamp')) * 1000;
let curTime = new Date();
let curMillion = 0;
if (localStorage.getItem('whigate')=="east_enter"){
$mygate.html("<span style='color: blue;'>卫津路校区</span><span style='color: purple;'>东门</span>");
document.getElementById('signal').innerHTML='入';
document.getElementById('signal').setAttribute('style',"width: 80px;height: 80px;display: block;margin: 0 auto;font-size: 50px;border-radius: 100px;background: #0dc500;line-height: 74px;color: white;");}
else if (localStorage.getItem('whigate')=="east_leave"){
$mygate.html("<span style='color: blue;'>卫津路校区</span><span style='color: purple;'>东门</span>");
document.getElementById('signal').innerHTML='出';
document.getElementById('signal').setAttribute('style',"width: 80px;height: 80px;display: block;margin: 0 auto;font-size: 50px;border-radius: 100px;background: #800080;line-height: 74px;color: white;");}
else if (localStorage.getItem('whigate')=="west_enter"){
$mygate.html("<span style='color: blue;'>卫津路校区</span><span style='color: purple;'>西门</span>");
document.getElementById('signal').innerHTML='入';
document.getElementById('signal').setAttribute('style',"width: 80px;height: 80px;display: block;margin: 0 auto;font-size: 50px;border-radius: 100px;background: #0dc500;line-height: 74px;color: white;");}
else if (localStorage.getItem('whigate')=="west_leave"){
$mygate.html("<span style='color: blue;'>卫津路校区</span><span style='color: purple;'>西门</span>");
document.getElementById('signal').innerHTML='出';
document.getElementById('signal').setAttribute('style',"width: 80px;height: 80px;display: block;margin: 0 auto;font-size: 50px;border-radius: 100px;background: #800080;line-height: 74px;color: white;");}
window.setInterval(function() {
currentTime += 100;
curTime.setTime(currentTime);
let year = curTime.getFullYear()
let mon = curTime.getMonth() + 1
let date = curTime.getDate()
let hour = curTime.getHours()
let min = curTime.getMinutes()
let sec = curTime.getSeconds()
curMillion += 100;
if (curMillion == 1000) curMillion = 0
$dateShow.html(
(year < 10 ? '0' + year : year) + '年' +
(mon < 10 ? '0' + mon : mon) + '月' +
(date < 10 ? '0' + date : date) + '日'
)
$hourShow.html(
[
(hour < 10 ? '0' + hour : hour),
(min < 10 ? '0' + min : min)
].join(':') +
':' + "<span style='color:blue'>"+(sec < 10 ? '0' + sec : sec).toString()+ '<span>'
+ '.' + "<span style='color:red'>" + (curMillion / 100).toString()+"</span>"
)
}, 100);
})
</script>
<!--<script>
var flag = JSON.parse(localStorage.getItem('flag'));
if (flag == true) {
document.getElementById('btn_back').addEventListener('click', ev => {
exports.toggleFull();
});
}
else {
var backhref = JSON.parse(localStorage.getItem('backhref'));
document.getElementById('btn_back').setAttribute('href', backhref);
}
</script>-->
</body>
</html>