forked from cdliang11/leave
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
435 lines (381 loc) · 15.4 KB
/
Copy pathindex.html
File metadata and controls
435 lines (381 loc) · 15.4 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
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
<!doctype html>
<html lang="zh-CN">
<head>
<title>疫情每日填报</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./lib/weui/css/weuix.css"/>
<link rel="stylesheet" href="./lib/weui/css/weui.min.css"/>
<link rel="stylesheet" href="./lib/weui/css/main.css">
<link rel="stylesheet" href="./lib/weui/css/font.css">
<script src="./lib/weui/js/jquery.min.js"></script>
<script type="text/javascript" src="./lib/weui/js/jquery.qrcode.min.js"></script>
<script type="text/javascript" src="./lib/weui/js/layer.js"></script>
<script src="./lib/weui/js/zepto.min.js"></script>
<script src="./lib/weui/js/zepto.weui.js"></script>
<style type="text/css">
.msg-system{display:none;padding: 5px 10px;font-size:14px; position: initial;border: 1px solid #fb9c26;background: #f9f0e8;z-index: 9;}
.msg-system1{padding: 5px 10px;font-size:14px; position: initial;border: 1px solid #fb9c26;background: #f9f0e8;z-index: 9;}
.container{position: initial;}
#ewm_div{font-size: 15px; height: 100%;width: 100%;padding:10px 4%;margin-bottom:10px; display: none;background: #efefef;}
.card-box{position: relative;padding:0px 15px; height: 220px;background: #1475c1;background-image: url(../img/card-bg.png);border-radius: 8px;color: #fff;box-shadow: 0px 4px 12px #b5a4a4;}
.card-box.box-1{background:#35ab04;background-image: url(../img/card-bg.png);}
.card-box.box-2{background:#e29c00;background-image: url(../img/card-bg.png);}
.card-box.box-3{background:#d6571b;background-image: url(../img/card-bg.png);}
.card-box .card-logo{padding-top:10px;border-bottom: 1px solid #c7c7c7}
.ewm-box{margin: 10px 0px;padding: 15px; background: #fff;border-radius: 10px;box-shadow: 0px 4px 12px #b5a4a4;}
.ewm-box-desc{height: auto;min-height:80px;background: #f5f5f5;border-radius: 5px;padding: 10px;font-size: 14px;}
.container.indexBox .slogan-sub {text-indent:2em;font-size: 12px;text-align: left;color: #fff;padding: 10px 30px;text-shadow: 0px 1px 1px #000;background: #3333338f;}
.weui-dialog__btn {display: block;-webkit-box-flex: 1;-webkit-flex: 1;flex: 1;color: #fff !important;background-color:#1aad19!important;text-decoration: none;-webkit-tap-highlight-color: rgba(0,0,0,0);position: relative;}
.layui-layer.layui-anim.layui-layer-page.layui-layer-demo{top: 0px;left: 0px;}
.layui-layer-shade{z-index: 19891013!important;background-color: #fff!important;opacity: 0!important; width: 0px;height: 0px;}
#sxbut{background:rgba(57, 97, 176, 0.7);margin: 5px;border-radius: 50%;display: block;width: 40px;height: 40px;float: right;text-align: center;}
#sxbut .icon-xueyuan1{font-size: 20px;color: #fff;line-height: 35px;}
#qhan{color: #fff;background-color: #a59c9c;right: 0;top: 3;height: 35px;width: 60px;border-radius: 4px;}
#userRoles{
height: 32px;
border: 2px solid #dddd;
background: #fff;
width: 50%;
/* margin-top: 10px;
margin-bottom: -10px; */
border-radius: 5px;
font-size: 15px;
}
#qhdiv{
position: absolute;
top: 2px;
right: 2px;
z-index: 99;
width: 58%;
}
.setRole-i{width: 100%;font-size: 16px;text-align: center;}
.action{background-color: #0abd0d;color: #fff;}
.layui-layer-msg{left: 35.5px; max-width: 80%; }
#layui-layer1{height: 344px !important;}
#ymjz_div{width: 100%;background-color: white;font-size: 14px;align: center;display: none;}
.msg-system_tip{padding: 5px 10px;font-size:14px; position: initial;border: 1px solid #fb9c26;background: #f9f0e8;z-index: 9;}
</style>
</head>
<body>
<div class="container indexBox">
<div style="position: absolute;right: 10px;top: 10px;">
<span class="open-popup" id="sxbut" data-target="#xuanzeqi" style="display: none;"><i class="icon icon-xueyuan1"></i></span>
</div>
<div class="logo"><img src="./lib/weui/images/logo-2.png" alt=""></div>
<div class="slogan"><img src="./lib/weui/images/slogan.png" alt=""></div>
<div class="slogan-sub">面对希望,人们心中的斗志如大海般澎湃,热情如火山般喷涌,扬起风帆,准备乘万里风,破万里浪,希望的火光招惹得人们勇往直前。</div>
<div class="linklist">
<ul>
<li>
<a href="http://yqtb.nwpu.edu.cn/wx/ry/jrsb.jsp">
<i class="icon iconfont icon-shangbao1"></i>
<span>每日填报</span>
</a>
</li>
<li>
<a class="a-link-qr">
<i class="icon iconfont icon-erweima"></i>
<span>返校二维码</span>
</a>
</li>
<li>
<a href="http://yqtb.nwpu.edu.cn/wx/xg/yz-mobile/grzx_xs.jsp">
<i class="icon iconfont icon-82"></i>
<span>日常管理</span>
</a>
</li>
</ul>
</div>
<div id="xuanzeqi" class="weui-popup__container popup-bottom">
<div class="weui-popup__overlay"></div>
<div class="weui-popup__modal">
<div class="weui-cells weui-cells_form role-list" style="height: 190px;padding-top: 5px;"></div>
</div>
</div>
<div class="copyright" style="color: #F5F5F5;">Copyright © 2020西北工业大学 联系电话:88430701</div>
<div id="ewm_div" style="width: 100%;">
<div class="card-box box-">
<div class="card-logo"><img src="/wx/img/card-logo.png"/></div>
<div style="line-height: 40px;height: 30px;width:55%;float: left;">姓名:</div>
<div style="line-height: 40px;height: 30px;width:45%;float: left;">性别:</div>
<div style="line-height: 40px;height: 30px;width:55%;float: left;">学号:</div>
<div style="line-height: 40px;height: 30px;width:45%;float: left;">状态:已验证</div>
<div style="line-height: 40px;height: 30px;width:100%;float: left;">学院:</div>
<div style="line-height: 40px;height: 30px;width:75%;float: left;">出发城市:</div>
<div style="line-height: 40px;height: 30px;width:100%;float: left;">
健康状态:未验证,
最新体温0.0 ℃</div>
</div>
<div class="ewm-box">
<div style="height:30px;color:#5a5a5a; line-height: 30px;font-size: 20px; font-weight: 600;">更新于:2021-08-26 16:13:12</div>
<div id="scewm" style="text-align: center;padding:20px 0px"></div>
<div class="ewm-box-desc">
黑码:已批准返校但还未返校验证,返校当天在校门口工作人员出示,经人脸识别或扫码核验通过后入校。
</div>
</div>
<br>
</div>
<div id="ymjz_div" >
<div class="weui-cells__title" style="color: #000;">请选择您当前疫苗接种的完成情况:</div>
<div class="weui-cells weui-cells_radio" style="font-size: 14px;">
<label class="weui-cell weui-check__label" for="x11" style="padding-left: 36px">
<div class="weui-cell__bd">
<p> 完成接种(已接种最后一剂)</p>
</div>
<div class="weui-cell__ft">
<input class="weui-check" name="ymjzzt" id="x11" type="radio" value="1" onclick="onChageZt(1)" checked>
<span class="weui-icon-checked"></span>
</div>
</label>
<label class="weui-cell weui-check__label" for="x12" style="padding-left: 36px">
<div class="weui-cell__bd">
<p> 已接种但未完成(还未接种最后一剂)</p>
</div>
<div class="weui-cell__ft">
<input name="ymjzzt" class="weui-check" id="x12" type="radio" value="0" onclick="onChageZt(0)" >
<span class="weui-icon-checked"></span>
</div>
</label>
<label class="weui-cell weui-check__label" for="x13" style="padding-left: 36px">
<div class="weui-cell__bd">
<p> 未接种</p>
</div>
<div class="weui-cell__ft">
<input name="ymjzzt" class="weui-check" id="x13" value="-1" type="radio" onclick="onChageZt(-1)" >
<span class="weui-icon-checked"></span>
</div>
</label>
</div>
<div class="weui-cell vaccine" style="display: none;">
<div class="weui-cell__bd">
<p id="jzrq">接种完成日期:</p>
</div>
<div class="weui-cell__ft">
<input class="weui-input" id="ymjzrq" name="ymjzrq" type="text" placeholder="请选择日期"> <!-- value= -->
</div>
</div>
<div class="sub-btn-box" style="margin-top: 20px;">
<button onclick="go_sub()" class="weui-btn bg-blue">提 交</button>
</div>
</div>
<!--<div id="tz_div" >
<div class="weui-cells__title" style="color: #000;text-indent: 2em;">因学校数据中心整体迁移,8月7日0点至8月9日0点将关闭电费一卡通充值等全部服务器,8月2日到20日每日0点到8点可能会有断网情况,请住校学生避开以上时段,提前充值,如有紧急问题可联系88495600。</div>
<div class="weui-cells__title" style="color: #000;text-indent: 2em;">受此影响,8月7日至8日两天无法通过系统填报健康数据,也请各位师生通过线下方式进行填报统计。</div>
<div class="sub-btn-box" style="margin-top: 20px;">
<button onclick="wzdl()" class="weui-btn bg-blue">我知道了</button>
</div>
</div> -->
</div>
<script src="js/checkdev.js"></script>
<script type="text/javascript" src="js/checkdev.js"></script>
<script src="js/global.js"></script>
<script type="text/javascript">
$(function(){
$('#ymjz_div').css('display','none');
$('#tz_div').css('display','none');
$('.a-link-qr').on('click', function() {
$('#scewm').html("");
var fxlb = '';
if(fxlb=='1'){
jQuery('#scewm').qrcode({width:240,height:240,background: "#ffffff",foreground: "green",text:"http://yqtb.nwpu.edu.cn/wx/xg/xsfx/xsrx/xsrxsz.jsp?xh="});
}else if(fxlb=='2'){
jQuery('#scewm').qrcode({width:240,height:240,background: "#ffffff",foreground: "#e29c00",text:"http://yqtb.nwpu.edu.cn/wx/xg/xsfx/xsrx/xsrxsz.jsp?xh="});
}else if(fxlb=='3'){
jQuery('#scewm').qrcode({width:240,height:240,background: "#ffffff",foreground: "#dc4c08",text:"http://yqtb.nwpu.edu.cn/wx/xg/xsfx/xsrx/xsrxsz.jsp?xh="});
}else{
if(''==''){
layer.msg('暂无法获取“返校二维码”,请先在“日常管理->假期返校申请”中提交返校申请。');
return;
}else if(''=='0'){
layer.msg('暂无法获取“返校二维码”,您的返校申请正在审核中。');
return;
}/* else{
layer.msg('暂无法获取“返校二维码”,请联系辅导员核实您目前的返校状态', {icon: 7});
} */
jQuery('#scewm').qrcode({width:240,height:240,background: "#ffffff",foreground: "#000000",text:"http://yqtb.nwpu.edu.cn/wx/xg/xsfx/xsrx/xsrxsz.jsp?xh="});
}
layer.open({
type: 1,
skin: 'layui-layer-demo', //样式类名
title:'西北工业大学学生返校二维码',
closeBtn: 1, //不显示关闭按钮
anim: 2,
area: [$('body>div.indexBox').width()+"px", $('body').height()+'px'],
shadeClose: true, //开启遮罩关闭
content: $('#ewm_div')
});
});
$("#ymjzrq").picker({
/* times: function () {
return ;
},
onChange: function (picker, values, displayValues) {
},
onClose: function (picker) {
}, */
cols: [
{
textAlign: 'center',
values: carr(2021,2023)
},
{
textAlign: 'center',
values: carr(1,12)
}
]
});
});
function getBJ(){
$.ajax({
url:'hsjlx_util.jsp',
data:{"actionType":"cxbj"},
dataType:'json',
type:'post',
success:function(data){
if(data.bj==0){
$(".msg-system1").hide();
}else{
$("#bj").html(data.bj);
$("#xs").html(data.xs);
}
}
});
}
function go_sub(){
var data={};
data.actionType='updateYmjz';
data.ymjzzt = $('input[name="ymjzzt"]:checked').val();
if(data.ymjzzt==""){
layer.msg('请选择疫苗接种情况!', {icon: 7});
return;
}
if(data.ymjzzt !='-1'){
data.ymjzrq=$("#ymjzrq").val();
if(data.ymjzrq==""){
layer.msg('请选择接种日期!', {icon: 7});
$("#ymjzrq").focus();
return;
}
}
$.ajax({
url:'hsjlx_util.jsp',
data:data,
dataType:'json',
type:'post',
beforeSend: function(){
layer.msg('正在提交,请稍后...', {icon: 16,shade: 0.01});
},
success:function(data){
if(data.state!=null && data.state=='1'){
layer.msg('提交成功!', {time:2000},function(){
window.location.href="index.jsp";
});
}
},error:function(e){
console.log(e);
alert("操作出现异常,请稍后再试!");
}
});
}
function wzdl(){
window.location.href="index.jsp";
}
function updateYmjz(){
layer.open({
type: 1,
skin: 'layui-layer-rim', //加上边框
title:['新冠疫苗接种完成情况上报', 'text-align: center;padding: 0;font-weight: 600;'],
closeBtn: 0, //不显示关闭按钮
anim: 2,
area: [$('body>div.indexBox').width()+"px", '600'], //宽高
content: $('#ymjz_div')
});
var ymzt='1';
if(ymzt !="-1"){
$('.vaccine').css('display','');
}
$("#ymjzrq").picker({
yearSplit: '-',
cols: [
{
textAlign: 'center',
values: carr(2021,2023)
},
{
textAlign: 'center',
values: carr(1,12)
}
]
});
}
function onChageZt(zt){
if(zt==1){
$("#jzrq").html("接种完成日期:");
$('.vaccine').css('display','');
}else if(zt==0){
$("#jzrq").html("预计全部完成日期:");
$('.vaccine').css('display','');
}else{
$('.vaccine').css('display','none');
}
}
$(function(){
//查询用户角色
$.ajax({
url:'qj_util.jsp',
data:{"actionType":"getRoles"},
dataType:'html',
type:'post',
success:function(data){
var ss=data.trim();
$(".role-list").html(ss);
if(''!=ss&&ss.indexOf("<div class=\"weui-cell",2)>-1 ){
$("#sxbut").show();
}else{
$("#sxbut").hide();
}
}
});
$('body').on('click','.setRole-i',function(){
var xybm=$(this).attr("data-xybm");
var userRoles=$(this).attr("data-value");
if(xybm==undefined){
xybm="";
}
$.ajax({
url:'qj_util.jsp',
data:{"actionType":"changeRole",userRoles:userRoles,xybm:xybm},
dataType:'json',
type:'post',
success:function(data){
if(data.state=='1'){
window.location.reload();
}
}
});
});
});
function changeRole(){
var userRoles=$("#userRoles").val();
var xybm=$("#userRoles").find("option:selected").attr("data-xybm");
if(xybm==undefined){
xybm="";
}
$.ajax({
url:'qj_util.jsp',
data:{"actionType":"changeRole",userRoles:userRoles,xybm:xybm},
dataType:'json',
type:'post',
success:function(data){
window.location.reload();
}
});
}
function carr (start, end) {
return Array.from(new Array(end + 1).keys()).slice(start)
}
</script>
</body>
</html>