-
Notifications
You must be signed in to change notification settings - Fork 0
/
qrcode.html
699 lines (652 loc) · 28.9 KB
/
qrcode.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
<!DOCTYPE html>
<!-- saved from url=(0035)https://serv.tju.edu.cn/user/qrcode -->
<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 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="https://serv.tju.edu.cn/themes/default/assets/img/logo/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>
<link rel="stylesheet" href="./sources/td.css">
<link rel="stylesheet" href="./sources/common.css">
</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 顶部-->
<!-- 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 class="img-circle" id="imghead" style="object-fit:cover;width:unset;border-radius:25%" 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>
<!-- start color quick setting 换肤-->
<!-- start page container 起始页容器-->
<div id='exc5' class="page-container"><div style="display: none; justify-content: center; align-items: center;">松开刷新</div>
<!-- start sidebar menu 左侧导航栏-->
<script src="./sources/mobile.js"></script>
<script>
/************** 移动端首页,配合静态化改造后的修改*************/
$(function(){
if(window.SERV_TJU){
window.SERV_TJU.ready(function(e){
//校验回话有效后,设定刷新频率
mobilePush(e.tf);
})
}
})
</script> <!-- start page content 内容开始-->
<div class="page-content-wrapper">
<div class="page-content">
<div class="page-bar">
<div class="page-title-breadcrumb">
<div class="pull-left"> <div class="page-title"></div> </div>
<ol class="breadcrumb page-breadcrumb">
<li>
<i class="fa fa-home"></i>
<a class="parent-item" href="./main.html">首页</a>
<i class="fa fa-angle-right"></i>
</li>
<li class="active">我的二维码</li>
</ol>
</div>
</div>
<!-- add content here 在此处添加内容 -->
<div class="row">
<div class="col-md-12">
<div class="card-box card">
<div class="card-body">
<div id="qrcodes"><div class="row">
<div class="col-12">
<h3>天津大学学生返津信息二维码</h3>
<p>学生返校码</p>
<button type="button" class="btn btn-info" ds-title="获取二维码" ds-loading-title="获取中,请稍候...">获取二维码</button>
<hr style="margin-bottom:0px">
</div>
</div></div>
<div class="row">
<div class="col-12">
<button type="button" class="btn btn-info" id="backToTop">返回</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- start chat sidebar 右侧通信-->
</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:window.location.href = 'barcode.html'">
<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>
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 paddingstyle = JSON.parse(localStorage.getItem('paddingstyle'));
var containerstyle = JSON.parse(localStorage.getItem('containerstyle'));
document.getElementById("exc2").innerHTML = "欢迎你, " + myname;
document.getElementById('exc4').setAttribute('style', paddingstyle);
document.getElementById('exc5').setAttribute('style', containerstyle);
var img = document.getElementById('imghead');
if (JSON.parse(localStorage.getItem('cut'))==true){
img.setAttribute('style', "object-fit:cover;width:21px;border-radius:25%");
}
img.setAttribute('src', imgUrl);
</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><script>
// $(".page-bar").remove();
</script>
<div id="extwaiokist" style="display:none" v="cbopg" q="5757a139" c="521.7" i="526" u="7.879" s="09012221" d="1" w="false" e="" a="2" m="BMe=" vn="3ges2"><div id="extwaigglbit" style="display:none" v="cbopg" q="5757a139" c="521.7" i="526" u="7.879" s="09012221" d="1" w="false" e="" a="2" m="BMe="></div></div></div>
<!-- start js include path -->
<style>
.modal.left .modal-dialog,
.modal.right .modal-dialog {
position: fixed;
margin: auto;
width: 320px;
height: 100%;
-webkit-transform: translate3d(0%, 0, 0);
-ms-transform: translate3d(0%, 0, 0);
-o-transform: translate3d(0%, 0, 0);
transform: translate3d(0%, 0, 0);
}
.modal.left .modal-content,
.modal.right .modal-content {
height: 100%;
overflow-y: auto;
}
.modal.left .modal-body,
.modal.right .modal-body {
/* padding: 15px 15px 80px; */
}
/*Left*/
.modal.left.fade .modal-dialog{
left: -320px;
-webkit-transition: opacity 0.3s linear, left 0.3s ease-out;
-moz-transition: opacity 0.3s linear, left 0.3s ease-out;
-o-transition: opacity 0.3s linear, left 0.3s ease-out;
transition: opacity 0.3s linear, left 0.3s ease-out;
}
.modal.left.fade.in .modal-dialog{
left: 0;
}
/*Right*/
.modal.right.fade .modal-dialog {
right: -320px;
-webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
-moz-transition: opacity 0.3s linear, right 0.3s ease-out;
-o-transition: opacity 0.3s linear, right 0.3s ease-out;
transition: opacity 0.3s linear, right 0.3s ease-out;
}
.modal.right.fade.in .modal-dialog {
right: 0;
}
</style>
<!-- 弹窗 -->
<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>
<div class="modal fade" id="phy_login" tabindex="-1" role="dialog" aria-labelledby="phy_login_Label">
<div class="modal-dialog" role="document" style="max-width:800px;">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="phy_login_Label">物化帐号登录</h4>
</div>
<div class="modal-body">
<div class="form-horizontal">
<div class="form-group row">
<label class="control-label col-md-3">帐号ID: <span class="required"> * </span> </label>
<div class="col-md-7">
<input type="text" class="form-control" name="phy_id" spellcheck="false" data-ms-editor="true">
</div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">密码: <span class="required"> * </span> </label>
<div class="col-md-7">
<input type="password" class="form-control" name="phy_password">
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal" id="btn_close_phy_login">关闭</button>
<button type="button" class="btn btn-info" id="btn_save_phy_login">登录</button>
</div>
</div>
</div>
</div>
<script>
function openUrl(path, params, root_path){
let _url='';
if (typeof root_path!='undefined' && root_path!=''){
_url = root_path + '/' + path
if(_url.search(/^http(s|):\/\/\S*?\//)==-1){
_url = window.location.protocol+'//'+_url
}
}else{
_url = _APP_URL_ROOT + '/' + path
}
var _p='';
var _i=0;
$.each(params,function(i,e){
if(_i==0){
if(_HTTP_REWRITE=='1'){
_p +='?';
}else{
_p +='&';
}
}else{
_p += '&';
}
_p +=i+'='+e;
_i++;
});
_url =_url+_p;
return _url;
}
function PhyCode(){
$("#phy_login").unbind("show.bs.modal").on("show.bs.modal",function(){
$(this).find("#btn_save_phy_login").unbind("click").click(function(){
var _id = $("input[name=phy_id]").val();
var _pwd = $("input[name=phy_password]").val();
if(_id=='' || _pwd ==''){
Toast('帐号ID或密码不能为空!',2,'mid-center','错误');
return false;
}
window.location.replace(openUrl('welcome/sweep'));
// $.ajax({
// type : 'post',
// url : openUrl(''),
// dataType : 'jsonp',
// data:{"id":_id,'password':_pwd},
// success:function(e){
// },
// error:function(){
// Toast('信息异常!',2,'mid-center','失败');
// }
// })
})
}).modal();
}
</script> <!-- jquery.qrcode.js -->
<script src="./sources/jquery.qrcode.min.js"></script>
<script src="./sources/utils.js"></script><div class="modal fade" id="dialog_qrcode" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content" style="background-image: url("/upload/bg.jpg"); background-size: cover;">
<div class="modal-body">
<div class="qr-error" style="margin-top: 10%; text-align: center; font-size: 40px; display: none;">2</div>
<iframe width="100%" class="qr-success" id="aa" style="display: none;" src="./sources/saved_resource.html"></iframe>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-info">刷新</button>
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
</div>
</div>
</div>
</div><div class="modal fade" id="iot_auth" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document" style="max-width:800px;">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">物化账户授权</h4>
</div>
<div class="modal-body">
<div class="form-horizontal">
<div class="form-group row">
<label class="control-label col-md-3">账户ID: <span class="required"> * </span> </label>
<div class="col-md-7">
<input type="text" class="form-control" name="phy_id" placeholder="请输入物联账户ID" spellcheck="false" data-ms-editor="true">
</div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">密码:<span class="required"> * </span> </label>
<div class="col-md-7">
<input type="password" class="form-control" name="phy_password" placeholder="请输入物联账户密码">
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-info">授权</button>
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
</div>
</div>
</div>
</div>
<script src="./sources/user.qrcode.js"></script>
<script>
var hosts = 'serv.tju.edu.cn';
</script>
</body></html>