-
Notifications
You must be signed in to change notification settings - Fork 1
/
hcRecord.html
763 lines (739 loc) · 28.1 KB
/
hcRecord.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>核查记录</title>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="css/mui.min.css">
<link rel="stylesheet" href="css/app.css">
<style type="text/css">
body {
min-width: 320px;
max-width: 640px;
margin: 0 auto;
color: #333;
padding: 0;
font-family: "Microsoft Yahei";
background: #fff;
height: 100%;
}
.container {
border: 1px solid #ccc;
}
.swiper1 {
background: #fff;
width: 100%;
}
.swiper1 .selected {
color: #0088cc;
border-bottom: 2px solid #ec5566;
}
.swiper1 .swiper-slide {
background: #fff;
text-align: center;
font-size: 13px;
height: 50px;
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
-webkit-align-items: center;
align-items: center;
cursor: pointer;
}
.swiper2 {
width: 100%;
}
.swiper2 .swiper-slide {
background: #fff;
border-top: 1px solid rgba(204, 204, 204, 0.9);
height: calc(100vh - 50px);
box-sizing: border-box !important;
overflow-x: hidden !important;
}
.mui-search{
position: absolute;
top: 64px;
right: 0px;
z-index: 99;
background: #fff;
width: 100%;
display: none;
}
.mui-search .line{
border-bottom: 1px solid rgba(204, 204, 204, 0.52);
}
.mark{
width: 100%;
height: 100%;
position: fixed;
top: 44px;
left: 0;
display: none;
background: #333;
z-index: 9;
opacity: 0.5;
}
.layui-m-layer1 .layui-m-layercont{ padding-top:40px !important}
.layui-m-layercont{ padding-top: 20px; line-height:14px !important}
.mui-ellipsis-2{line-height: 1.5;}
.mui-segmented-control.mui-scroll-wrapper .mui-control-item{padding: 0 .425rem;}
.mui-bar-nav~.mui-content .mui-slider.mui-fullscreen{top: 64px;}
.showDetalis{display: none;}
.showDetalisTx{display: none;}
.flowDetalis{display: none;}
.close_lay{position: absolute;right:4px;z-index: 99999; margin-top: -34px;}
.close_lay1{margin-top:15px;}
.close_lay .mui-icon{font-size:2rem;color: #fff;background: #007aff;border-radius: 1000rem;}
</style>
</head>
<body class="mui-plus mui-statusbar mui-statusbar-offset">
<header id="header" class="mui-bar mui-bar-nav">
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
<h1 class="mui-title">核查记录</h1>
<!--<a class="right_nav_icon mui-icon mui-icon-settings" style="float: right;" onclick="showTimeSear()"></a>-->
</header>
<div class="mui-content">
<div id="sliderSegmentedControl" style="position: fixed;" class="mui-segmented-control mui-segmented-control-inverted mui-segmented-control-primary"></div>
<div id="slider-list" style="margin-top: 2.2rem;"></div>
</div>
<div class="mark" onclick="hideTime();"></div>
<!--搜索区域 开始-->
<div class="mui-search">
<div class="mui-input-row line" style="margin-top:30px;">
<label for="date1">开始日期:</label>
<input type="date" class="mui-input-clear input-text-right" id='date1' placeholder="请选择日期">
</div>
<div class="mui-input-row line">
<label for="date">结束日期:</label>
<input type="date" class="mui-input-clear input-text-right" id='date' placeholder="请选择日期">
</div>
<div class="mui-btn-block mui-text-center" style="padding-top:20px;padding-bottom: 20px;height: 100%;">
<button type="reset" class="mui-btn mui-btn-danger">重置</button>
<button type="button" class="mui-btn mui-btn-primary" onclick="animateWindow('slide-in-right')">查询</button>
</div>
</div>
<!--搜索区域 结束-->
<!--Header Tab Item List Start-->
<script id="control-item-temp" type="text/html">
{{each data controlItem}}
<a class="mui-control-item {{if $index == '0' }} mui-active {{/if}}" href="#item_slider_{{controlItem.tableName}}" data-tableId="{{controlItem.id}}" data-tableName="{{controlItem.tableName}}">{{controlItem.tableComment}}</a>
{{/each}}
</script>
<!--Header Tab Item List End-->
<!--Record list Start-->
<script id="slider-list-temp" type="text/html">
{{each data sliderList}}
<div id="item_slider_{{sliderList.tableName}}" class="mui-control-content {{if $index == '0' }} mui-active {{/if}}">
</div>
{{/each}}
</script>
<!--Record list End-->
<!--同行同住人员展示相信信息 -->
<script id="tx-item-temp" type="text/html">
<!--第三个关闭按钮-->
{{each sliderItem sliderItem1}}
<div class="close_lay" onclick="closeLay()" style="margin-top: -34px;"><span class="mui-icon mui-icon-close"></span></div>
<ul class="mui-table-view" >
{{if sliderItem1.姓名 !=null}}
<li class="mui-table-view-cell">姓名:{{sliderItem1.姓名}}     
身份证号:{{sliderItem1.身份证号}}
</li>
<li class="mui-table-view-cell">近照:
{{if sliderItem1.近照[0] != null}}
<img src={{sliderItem1.近照[0]}} style="height: 80px; width: 80px;" />
{{/if}}
{{if sliderItem1.近照[1] != null}}
<img src={{sliderItem1.近照[1]}} style="height: 80px; width: 80px;" />
{{/if}}
{{if sliderItem1.近照[2] != null}}
<img src={{sliderItem1.近照[2]}} style="height: 80px; width: 80px;" />
{{/if}}
{{if sliderItem1.近照[3] != null}}
<img src={{sliderItem1.近照[3]}} style="height: 80px; width: 80px;" />
{{/if}}
</li>
{{/if}}
{{if sliderItem1.性别 !=null}}
<li class="mui-table-view-cell">性别:{{sliderItem1.性别}}     
民族:{{sliderItem1.民族}}     
婚姻状况:{{sliderItem1.婚姻状况}}
</li>
{{/if}}
{{if sliderItem1.出生日期 !=null}}
<li class="mui-table-view-cell">出生日期:{{sliderItem1.出生日期}}</li>
{{/if}}
{{if sliderItem1.户籍地址 !=null}}
<li class="mui-table-view-cell">户籍地址:{{sliderItem1.户籍地址}}</li>
{{/if}}
{{if sliderItem1.所属公安机关名称 !=null}}
<li class="mui-table-view-cell">所属公安机关名称:{{sliderItem1.所属公安机关名称}}</li>
{{/if}}
{{if sliderItem1.采集时间 !=null}}
<li class="mui-table-view-cell">采集时间:{{sliderItem1.采集时间}}</li>
{{/if}}
{{if sliderItem1.纬度 !=null}}
<li class="mui-table-view-cell">纬度:{{sliderItem1.纬度}}     
经度:{{sliderItem1.经度}}
</li>
{{/if}}
{{if sliderItem1.身份证有效期 !=null}}
<li class="mui-table-view-cell">身份证有效期:{{sliderItem1.身份证有效期}}</li>
{{/if}}
{{if sliderItem1.QQ号 !=null}}
<li class="mui-table-view-cell">手机号码:{{sliderItem1.手机号码}}     
QQ号:{{sliderItem1.QQ号}}</li>
{{/if}}
{{if sliderItem1.微信号 !=null}}
<li class="mui-table-view-cell">微信号:{{sliderItem1.微信号}}</li>
{{/if}}
{{if sliderItem1.微博号 !=null}}
<li class="mui-table-view-cell">微博号:{{sliderItem1.微博号}}</li>
{{/if}}
{{if sliderItem1.来本地日期 !=null}}
<li class="mui-table-view-cell">来本地日期:{{sliderItem1.来本地日期}}</li>
{{/if}}
{{if sliderItem1.暂住证签发日期 !=null}}
<li class="mui-table-view-cell">暂住证签发日期:{{sliderItem1.暂住证签发日期}}</li>
{{/if}}
{{if sliderItem1.同行 !=null}}
<li class="mui-table-view-cell">同行:{{sliderItem1.同行}}</li>
{{/if}}
{{if sliderItem1.同住 !=null}}
<li class="mui-table-view-cell">同住:{{sliderItem1.同住}}</li>
{{/if}}
{{if sliderItem1.现从事职业 !=null}}
<li class="mui-table-view-cell">现从事职业:{{sliderItem1.现从事职业}}</li>
{{/if}}
{{if sliderItem1.关系人 !=null}}
<li class="mui-table-view-cell">关系人:{{sliderItem1.关系人}}</li>
{{/if}}
{{if sliderItem1.采集地址 !=null}}
<li class="mui-table-view-cell">采集地址:{{sliderItem1.采集地址}}</li>
{{/if}}
</ul>
{{/each}}
</script>
<!--Slider List Item Start-->
<script id="slider-item-temp" type="text/html">
<ul class="mui-table-view">
{{each sliderItem sliderItem}}
{{if type =="人员核查"}}
<li class="mui-table-view-cell" onclick="hcRecordOn(event,this)">
<a class="mui-navigate-right">
<div class="mui-flex" style="padding-top: 0.5rem;color: #555;">
<div class="mui-flex-item">姓名:{{sliderItem.姓名}}</div>
<div class="mui-flex-item" style="text-align: right;padding-right:1rem"><span class="mui-badge mui-badge-primary">{{sliderItem.身份证号}}</span></div>
</div>
<p class="mui-h6 mui-ellipsis" style="padding-top: 0.5rem;color: #777;">性别:{{if sliderItem.性别 =="男"}}男{{else if sliderItem.性别 =="女" }}女{{else}}性别不详{{/if}}</p>
{{if sliderItem.同行同住人 =="同行同住"}}
<span class="mui-badge mui-badge-primary" onclick="flowDetailOn(event,this)">{{sliderItem.同行同住人}}</span>
{{/if}}
<p class="mui-h6 mui-ellipsis" style="padding-top: 0.5rem;color: #777;">户籍地址:{{sliderItem.户籍地址}}</p>
<p class="mui-h6 mui-ellipsis" style="padding-top: 0.5rem;color: #777;">采集时间:{{sliderItem.采集时间}}</p>
</a>
<div class="showDetalis mui-scroll">
<!--第一个关闭 --->
<ul class="mui-table-view">
<div class="close_lay" onclick="closeLay()"><span class="mui-icon mui-icon-close"></span></div>
{{if sliderItem.姓名 !=null}}
<li class="mui-table-view-cell">姓名:{{sliderItem.姓名}}     
身份证号:{{sliderItem.身份证号}}
</li>
<li class="mui-table-view-cell">近照:
{{if sliderItem.近照[0] != null}}
<img src={{sliderItem.近照[0]}} style="height: 80px; width: 80px;" />
{{/if}}
{{if sliderItem.近照[1] != null}}
<img src={{sliderItem.近照[1]}} style="height: 80px; width: 80px;" />
{{/if}}
{{if sliderItem.近照[2] != null}}
<img src={{sliderItem.近照[2]}} style="height: 80px; width: 80px;" />
{{/if}}
{{if sliderItem.近照[3] != null}}
<img src={{sliderItem.近照[3]}} style="height: 80px; width: 80px;" />
{{/if}}
</li>
{{/if}}
{{if sliderItem.出生日期 !=null}}
<li class="mui-table-view-cell">出生日期:{{sliderItem.出生日期}}</li>
{{/if}}
{{if sliderItem.民族 !=null}}
<li class="mui-table-view-cell">民族:{{sliderItem.民族}}     
性别:{{sliderItem.性别}}     
婚姻状况:{{sliderItem.婚姻状况}}
</li>
{{/if}}
{{if sliderItem.户籍地址 !=null}}
<li class="mui-table-view-cell">户籍地址:{{sliderItem.户籍地址}}</li>
{{/if}}
{{if sliderItem.所属公安机关名称 !=null}}
<li class="mui-table-view-cell">所属公安机关名称:{{sliderItem.所属公安机关名称}}</li>
{{/if}}
{{if sliderItem.采集时间 !=null}}
<li class="mui-table-view-cell">采集时间:{{sliderItem.采集时间}}</li>
{{/if}}
{{if sliderItem.纬度 !=null}}
<li class="mui-table-view-cell">纬度:{{sliderItem.纬度}}     
经度:{{sliderItem.经度}}
</li>
{{/if}}
{{if sliderItem.身份证有效期 !=null}}
<li class="mui-table-view-cell">身份证有效期:{{sliderItem.身份证有效期}}</li>
{{/if}}
{{if sliderItem.手机号码 !=null}}
<li class="mui-table-view-cell">手机号码:{{sliderItem.手机号码}}     
QQ号:{{sliderItem.QQ号}}
</li>
{{/if}}
{{if sliderItem.微信号 !=null}}
<li class="mui-table-view-cell">微信号:{{sliderItem.微信号}}</li>
{{/if}}
{{if sliderItem.微博号 !=null}}
<li class="mui-table-view-cell">微博号:{{sliderItem.微博号}}</li>
{{/if}}
{{if sliderItem.来本地日期 !=null}}
<li class="mui-table-view-cell">来本地日期:{{sliderItem.来本地日期}}</li>
{{/if}}
{{if sliderItem.暂住证签发日期 !=null}}
<li class="mui-table-view-cell">暂住证签发日期:{{sliderItem.暂住证签发日期}}</li>
{{/if}}
{{if sliderItem.同行 !=null}}
<li class="mui-table-view-cell">同行:{{sliderItem.同行}}</li>
{{/if}}
{{if sliderItem.同住 !=null}}
<li class="mui-table-view-cell">同住:{{sliderItem.同住}}</li>
{{/if}}
{{if sliderItem.现从事职业 !=null}}
<li class="mui-table-view-cell">现从事职业:{{sliderItem.现从事职业}}</li>
{{/if}}
{{if sliderItem.关系人 !=null}}
<li class="mui-table-view-cell">关系人:{{sliderItem.关系人}}</li>
{{/if}}
{{if sliderItem.采集地址 !=null}}
<li class="mui-table-view-cell">采集地址:{{sliderItem.采集地址}}</li>
{{/if}}
</ul>
</div>
<div class="showDetalisTx">
<ul class="mui-table-view">
<!--第二个关闭按钮-->
<div class="close_lay" onclick="closeLay()"><span class="mui-icon mui-icon-close"></span></div>
{{each sliderItem.同行同住姓名 sliderI}}
<li class="mui-table-view-cell" onclick="flowRecordOn(event,this,'{{sliderI.flowId}}')">
<a class="mui-navigate-right">
<div class="mui-flex" style="padding-top: 0.5rem;color: #555;">
<div class="mui-flex-item">姓名:{{sliderI.name}}</div>
<div class="mui-flex-item" style="text-align: right;padding-right:1rem"></div>
</div>
<p class="mui-h6 mui-ellipsis" style="padding-top: 0.5rem;color: #777;">性别:{{sliderI.sex}}</p>
<p class="mui-h6 mui-ellipsis" style="padding-top: 0.5rem;color: #777;">户籍地址:{{sliderI.hjdz}}</p>
<p class="mui-h6 mui-ellipsis" style="padding-top: 0.5rem;color: #777;">公民身份证号码:{{sliderI.sfzh}}</p>
</a>
<span id = 'spanName' style="display: none;">{{sliderI.tableName}}</span>
</li>
{{/each}}
<!--同行同住详情ul-->
<div class="mui-flex" id="txtz-detali">
</div>
</ul>
</div>
</li>
{{else}}
<li class="mui-table-view-cell" onclick="hcRecordOn(event,this)">
<a class="mui-navigate-right">
<div class="mui-flex" style="padding-top: 0.5rem;color: #555;">
<div class="mui-flex-item">车牌号:{{sliderItem.车牌号}}</div>
<div class="mui-flex-item" style="text-align: right;padding-right:1rem"><span class="mui-badge mui-badge-primary">{{sliderItem.车辆颜色}}</span></div>
</div>
<p class="mui-h6 mui-ellipsis" style="padding-top: 0.5rem;color: #777;">驾驶人姓名:{{sliderItem.驾驶人姓名}}</p>
<p class="mui-h6 mui-ellipsis" style="padding-top: 0.5rem;color: #777;">采集时间:{{sliderItem.采集时间}}</p>
</a>
<div class="showDetalis">
<ul class="mui-table-view">
<!--第四个关闭按钮-->
<div class="close_lay" onclick="closeLay()"><span class="mui-icon mui-icon-close"></span></div>
{{if sliderItem.车牌号!=null}}
<li class="mui-table-view-cell">车牌号:{{sliderItem.车牌号}}     
车辆颜色:{{sliderItem.车辆颜色}}
</li>
<li class="mui-table-view-cell">车辆照片:
{{if sliderItem.车辆照片[0] != null}}
<img src={{sliderItem.车辆照片[0]}} style="height: 80px; width: 80px;" />
{{/if}}
{{if sliderItem.车辆照片[1] != null}}
<img src={{sliderItem.车辆照片[1]}} style="height: 80px; width: 80px;" />
{{/if}}
{{if sliderItem.车辆照片[2] != null}}
<img src={{sliderItem.车辆照片[2]}} style="height: 80px; width: 80px;" />
{{/if}}
{{if sliderItem.车辆照片[3] != null}}
<img src={{sliderItem.车辆照片[3]}} style="height: 80px; width: 80px;" />
{{/if}}
</li>
{{/if}}
{{if sliderItem.车辆类型!=null}}
<li class="mui-table-view-cell">车辆类型:{{sliderItem.车辆类型}}     
驾驶人电话:{{sliderItem.驾驶人电话}}
</li>
{{/if}}
{{if sliderItem.驾驶人姓名!=null}}
<li class="mui-table-view-cell">驾驶人姓名:{{sliderItem.驾驶人姓名}}     
驾驶人性别:{{sliderItem.驾驶人性别}}
</li>
{{/if}}
{{if sliderItem.驾驶证号!=null}}
<li class="mui-table-view-cell">驾驶证号:{{sliderItem.驾驶证号}}</li>
{{/if}}
{{if sliderItem.采集时间!=null}}
<li class="mui-table-view-cell">采集时间:{{sliderItem.采集时间}}</li>
{{/if}}
{{if sliderItem.纬度!=null}}
<li class="mui-table-view-cell">纬度:{{sliderItem.纬度}}     
经度:{{sliderItem.经度}}
</li>
{{/if}}
{{if sliderItem.备注!=null}}
<li class="mui-table-view-cell">备注:{{sliderItem.备注}}     
车辆品牌:{{sliderItem.车辆品牌}}</li>
{{/if}}
{{if sliderItem.使用人!=null}}
<li class="mui-table-view-cell">使用人:{{sliderItem.使用人}}</li>
{{/if}}
{{if sliderItem.识别代码!=null}}
<li class="mui-table-view-cell">识别代码:{{sliderItem.识别代码}}</li>
{{/if}}
{{if sliderItem.车辆型号!=null}}
<li class="mui-table-view-cell">车辆型号:{{sliderItem.车辆型号}}     
发动机号:{{sliderItem.发动机号}}
</li>
{{/if}}
{{if sliderItem.使用人身份证!=null}}
<li class="mui-table-view-cell">使用人身份证:{{sliderItem.使用人身份证}}</li>
{{/if}}
{{if sliderItem.采集地址!=null}}
<li class="mui-table-view-cell">采集地址:{{sliderItem.采集地址}}</li>
{{/if}}
</ul>
</div>
</li>
{{/if}}
{{/each}}
</ul>
</script>
<!--Slider List Item End-->
<script type="text/javascript" src="js/mui.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/applogin.js" ></script>
<script type="text/javascript" src="js/template-web.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script src="js/common.js" type="text/javascript"></script>
<script src="js/layer_mobile/layer.js" type="text/javascript"></script>
<script src="js/watermark.js" type="text/javascript"></script>
<script type="text/javascript">
var firstTableId,firstTableName;
var mask=mui.createMask(function(){//遮罩层callback事件
return true;//返回true关闭mask
});
//POST Header Tab Item List
mui.plusReady(function(){
mui.ajax(base_url+"record/getclassiFication?guid="+new Date().getTime(),{
headers: {
'Content-Type':'application/x-www-form-urlencoded'
,'user_id_token':app.getUser().userid
,'id':"15"
},
data:{
"id":app.getUser().userid
},
type:'post',//HTTP请求类型 改为pos
timeout:100000,//超时时间设置为10秒;
beforeSend: function() {
plus.nativeUI.showWaiting('正在查询,请稍后');
mask.show();//显示遮罩层
},
success:function(data){
plus.nativeUI.closeWaiting();
mask.close();//关闭遮罩层
if(data.code=='200'){
var htmlControl=template('control-item-temp',data);
console.log(data.message+JSON.stringify(data));
jQuery('#sliderSegmentedControl').html(htmlControl);
var htmlControl=template('slider-list-temp',data);
jQuery('#slider-list').html(htmlControl);
firstTableId = jQuery('#sliderSegmentedControl>a').first().attr('data-tableId');
firstTableName = jQuery('#sliderSegmentedControl>a').first().attr('data-tableName');
showSlideListTemp(firstTableId,firstTableName);
//阻尼系数
var deceleration = mui.os.ios?0.003:0.0009;
$('.mui-scroll-wrapper').scroll({
bounce: false,
indicators: true, //是否显示滚动条
deceleration:deceleration
});
mui('.mui-slider').slider(); //这一行是关键,让选项卡初始化滑动
}else{
mui.alert(data.message);
}
},
error:function(xhr,type,errorThrown){
//异常处理;
console.log(type);
}
});
mui('#sliderSegmentedControl').on('tap', 'a', function(e) {
console.log(tableId+tableName);
var tableId = jQuery(this).attr('data-tableId');
var tableName = jQuery(this).attr('data-tableName');
showSlideListTemp(tableId,tableName);
});
});
//POST Record list
//显示列表数据模板
function showSlideListTemp(tableId,tableName){
debugger;
mui.ajax(base_url+"record/getSpecificItem?guid="+new Date().getTime(),{
data:{
"id":tableId,//表ID
"startTime":'',
"endTime":''
},
dataType:'json',//服务器返回json格式数据
type:'post',//HTTP请求类型
async:true,
timeout:10000,//超时时间设置为10秒;
headers:{
'Content-Type':'application/x-www-form-urlencoded' //此处如果使用application/json 会遇到post发送参数失败的问题
,'user_id_token':app.getUser().userid
,'id':"16"
},
success:function(data){
if(data.code=='200'){
//服务器返回响应,根据响应结果;
var jsonValue = data.data.table;//备注名
var jsonKey = data.data.tabledata;//对应的多组值
var vote = new Array();
for(var a=0;a<jsonKey.length;a++){
var sliderItem ={};
var jsono = jsonKey[a];
for(var key in jsono){
var nkey = jsonValue[key];
if(nkey=='车辆照片'){
if(jsono[key] != null){
var jzItem ={};
var jz = jsono[key];
jzItem = jz.split("http");
var nvalue ={};
for(var i=1;i<jzItem.length;i++){
nvalue[i-1] = 'http'+jzItem[i];
}
sliderItem[nkey] = nvalue;
}else{
var nvalue ={};
sliderItem[nkey] = nvalue;
}
}else if(nkey=='近照'){
if(jsono[key] != null){
var jzItem ={};
var jz = jsono[key];
jzItem = jz.split("http");
var nvalue ={};
for(var i=1;i<jzItem.length;i++){
nvalue[i-1] = 'http'+jzItem[i];
}
sliderItem[nkey] = nvalue;
}else{
var nvalue ={};
sliderItem[nkey] = nvalue;
}
}else if(nkey !=null){
var nvalue = jsono[key];
sliderItem[nkey] = nvalue;
}
}
if(sliderItem!={}) vote.push(sliderItem);
}
// console.log('objectSliderItem:'+JSON.stringify(vote));
var objectSliderItem={};
objectSliderItem.sliderItem=vote;
objectSliderItem.type=jsonValue.tablecomment;
console.log('objectSliderItem同行同住:'+JSON.stringify(objectSliderItem));
if(objectSliderItem!=''){
debugger
var htmlSliderItem=template('slider-item-temp',objectSliderItem);
$('#item_slider_'+tableName).html(htmlSliderItem);
}else{
$('#item_slider_'+tableName).html('<div style="text-align: center;"><span class="mui-icon mui-icon-chatboxes" style="font-size: 3rem;padding-bottom: 1rem;"></span><p>暂无核查记录</p></div>');
}
//阻尼系数
var deceleration = mui.os.ios?0.003:0.0009;
$('.mui-scroll-wrapper').scroll({
bounce: false,
indicators: true, //是否显示滚动条
deceleration:deceleration
});
}else{
mui.alert(data.message);
}
},
error:function(xhr,type,errorThrown){
//异常处理;
console.log(type);
}
});
}
// 显示侧滑页面
function showTimeSear(){
// 防止快速点击可能导致多次创建
if($(".mui-search").css("display")=="none"){
$(".mark").show();
$(".mui-search").slideDown();
}else{
$(".mui-search").hide();
$(".mark").hide();
}
}
function hideTime(){
if($(".mui-search").css("display")=="block"){
$(".mark").hide();
$(".mui-search").hide();
}
}
var indexitem;
function hcRecordOn(e,_this){
stopEventBubble(e);
indexitem = layer.open({
type: 1
,content: $(_this).find('div.showDetalis').html()
,anim: 'up'
,closeBtn:1
,style: 'position:fixed; bottom:0; left:0; width: 100%; overflow: auto; border:none;'
});
}
//展示同行同住
function flowDetailOn(e,_this){
debugger;
stopEventBubble(e);
layer.close(indexitem);
layer.open({
type: 1
,content: $(_this).offsetParent().offsetParent().find('div.showDetalisTx').html()
,anim: 'up'
,closeBtn:1
,style: 'position:fixed; bottom:0; left:0; width: 100%; overflow: auto; border:none;'
});
}
function flowRecordOn(e,_this,id){
layer.close(indexitem);
var tableName = 'QS_LDRKXX';
mui.ajax(base_url+"record/getFlowItem?guid="+new Date().getTime(),{
data:{
"id":id,//表ID
"startTime":'',
"endTime":''
},
dataType:'json',//服务器返回json格式数据
type:'post',//HTTP请求类型
async:false,
timeout:10000,//超时时间设置为10秒;
headers:{
'Content-Type':'application/x-www-form-urlencoded' //此处如果使用application/json 会遇到post发送参数失败的问题
,'user_id_token':app.getUser().userid
,'id':"17"
},
success:function(data){
if(data.code=='200'){
//服务器返回响应,根据响应结果;
var jsonValue = data.data.table;//备注名
var jsonKey = data.data.tabledata;//对应的多组值
var vote = new Array();
for(var a=0;a<jsonKey.length;a++){
var sliderI ={};
var jsono = jsonKey[a];
for(var key in jsono){
var nkey = jsonValue[key];
if(nkey=='近照'){
if(jsono[key] !=null){
var jzItem ={};
var jz = jsono[key];
jzItem = jz.split("http");
var nvalue ={};
for(var i=1;i<jzItem.length;i++){
nvalue[i-1] = 'http'+jzItem[i];
}
sliderI[nkey] = nvalue;
console.log("#imgi"+JSON.stringify('http'+jzItem[i]));
console.log("近照"+JSON.stringify(jzItem));
}else{
var nvalue ={};
sliderI[nkey] = nvalue;
}
}else if(nkey !=null){
var nvalue = jsono[key];
sliderI[nkey] = nvalue;
}
}
if(sliderI!={}) vote.push(sliderI);
}
// console.log('objectSlider:'+JSON.stringify(vote));
var objectSliderItem={};
objectSliderItem.sliderItem=vote;
objectSliderItem.type=jsonValue.tablecomment;
console.log('objectSliderI:'+JSON.stringify(objectSliderItem));
if(objectSliderItem!=''){
debugger
var htmlSliderItem=template('tx-item-temp',objectSliderItem);
$('#txtz-detali').html(htmlSliderItem);
}else{
$('#txtz-detali').html('<div style="text-align: center;"><span class="mui-icon mui-icon-chatboxes" style="font-size: 3rem;padding-bottom: 1rem;"></span><p>同行同住加照出错</p></div>');
}
//阻尼系数
var deceleration = mui.os.ios?0.003:0.0009;
$('.mui-scroll-wrapper').scroll({
bounce: false,
indicators: true, //是否显示滚动条
deceleration:deceleration
});
}else{
mui.alert(data.message);
}
},
error:function(xhr,type,errorThrown){
//异常处理;
console.log(type);
}
});
debugger;
layer.open({
type: 1
,content: $("#txtz-detali").html()
,anim: 'up'
,closeBtn:1
,style: 'position:fixed; bottom:0; left:0; width: 100%; overflow: auto; border:none;'
});
}
function closeLay(){
debugger;
layer.closeAll();
window.location.reload();
}
//阻止事件冒泡
function stopEventBubble(event){
var e = event || window.event;
if(e && e.stopPropagation){
e.stopPropagation();
}else{
e.cancelBubble=true;
}
}
</script>
</body>
</html>