wanglizhong
2025-05-05 41332c9a8b1164dba70930f93f6a67abad4fc7fd
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
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Session.CodePage=65001%>
<!--#include virtual="/inc/odbc.asp"-->
<!--#include virtual="/inc/function.asp"-->
<%
DispatchOrdID=request("DispatchOrdID")
openid=request("openid")
If openid="" Then openid=session("openid")
session("openid")=openid
if DispatchOrdID="" then Response.Redirect "/"
%>
<html>
<head>
    <meta charset="utf-8">
    <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">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>民航医疗快线</title>
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/bootstrap-theme.min.css">
<script src="/js/jquery-1.10.2.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/app.js?v=1.8"></script>
<link rel="stylesheet" href="/css/app.css?v=1.9">
<link rel="stylesheet" href="/css/app_2.css?v=2.0">
</head>
<body class="ds_body">
<div  style="text-align:center;margin-top:20px"><img src="img/top.png" width="90%" height="" border="0" alt=""></div>
<hr style="text-align:center;width:90%"></hr>
<style>
header .headbrand {
    margin-top: -4px;
    position: absolute;
    right: 10px;
    top: 10px;
}
header {
    padding: 1em 5%;
    height: auto;
}
header .headico {
    margin-top: 0;
    display: inline-block;
    vertical-align: top;
}
.info{
    padding-left: 10px;padding-bottom: 5px;display: inline-block;vertical-align: top;width: 60%;
}
.rating-small .fa {
    color: #ffcc33;
}
.sign{
    color: #545454;clear: both;font-size: 14px;
}
#point_star span{
    background-image: url("/img/start2_09.png");
}
#point_star .empty {
    background-image: url("/img/start2_10.png");
}
.showlabel ul li img{
    width: 13px;
    height: 13px;
    margin-left: 3px;
}
.imgs{text-align: left;margin: 10px 0;}
.imgs img{width: 60px;height: 60px;margin: 5px;}
    @media screen and (max-width: 320px) {
        .info{width: 50%;}
    }
.label3 {
    color: #fff;
     background:transparent; 
    border: 1px solid #ffa732;
    cursor: pointer;
    color: #ffa732;
}
</style>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from DispatchOrd where DispatchOrdState>0 and DispatchOrdID="&DispatchOrdID
rs.open sql,objConn,1,1
If not rs.Eof Then
    DispatchOrdID            = rs("DispatchOrdID")            '调度单号
    DispatchOrdClass        = rs("DispatchOrdClass")        '单据类型
    ServiceOrdID            = rs("ServiceOrdIDDt")            '对应受理单号
    DispatchOrdState        = rs("DispatchOrdState")        '调度单状态
    DispatchOrdStartDate    = rs("DispatchOrdStartDate")    '调度单状态时间
    DispatchOrd_NS_ID        = rs("DispatchOrd_NS_ID")        '开单人ID
    DispatchOrd_NS_Time        = rs("DispatchOrd_NS_Time")        '开单时间
    DispatchOrd_AP_ID        = rs("DispatchOrd_AP_ID")        '审核人ID
    DispatchOrd_AP_Time        = rs("DispatchOrd_AP_Time")        '审核时间
    DispatchOrd_AP_Check    = rs("DispatchOrd_AP_Check")    '是否审核(0否,1是)
    DispatchOrd_AP_Reason    = rs("DispatchOrd_AP_Reason")    '审核原因
    DispatchOrdCarID        = rs("DispatchOrdCarID")        '派遣车辆ID
    DispatchOrdTraSDTime    = rs("DispatchOrdTraSDTime")    '拟出发时间
    If year(DispatchOrdTraSDTime)<2010 then DispatchOrdTraSDTime=""
    DispatchOrdActualDate    = rs("DispatchOrdActualDate")    '实际出车时间
    DispatchOrdArriveDate    = rs("DispatchOrdArriveDate")    '实际到达时间
    DispatchOrdReturnDate    = rs("DispatchOrdReturnDate")    '实际返回时间
    DispatchOrdTraDistance    = rs("DispatchOrdTraDistance")    '实际距离
    DispatchOrdTraStreet    = rs("DispatchOrdTraStreet")    '实际出发地
    DispatchOrdTraEnd        = rs("DispatchOrdTraEnd")        '实际目的地
    DispatchOrdTraVia        = rs("DispatchOrdTraVia")        '实际途经地
    DispatchOrdCoName        = rs("DispatchOrdCoName")        '调度联系人
    DispatchOrdCoPhone        = rs("DispatchOrdCoPhone")        '调度联系电话
    DispatchOrdTraStreetMileage= rs("DispatchOrdTraStreetMileage")'开始里程数
    DispatchOrdTraEndMileage= rs("DispatchOrdTraEndMileage")'结束里程数
    DispatchOrdMileage        = rs("DispatchOrdMileage")        '实际里程数
    DispatchOrdGasoline        = rs("DispatchOrdGasoline")        '油耗
    DispatchOrdRemarks        = rs("DispatchOrdRemarks")        '行驶备注记录
    EntourageName_aid1        = rs("EntourageName_aid1")        '外援人员1
    EntourageName_aid2        = rs("EntourageName_aid2")        '外援人员2
    DispatchOrdPerfomance    = rs("DispatchOrdPerfomance")
    RecommendedCar            = rs("RecommendedCar")            '指定车型
    CarStItm_OAId            = rs("CarStItm_OAId")            '物品清单检查人ID
    StretcherMoney            = rs("StretcherMoney")            '担架费
    DispatchOrdNo            = DispatchOrdClass& year(rs("DispatchOrd_NS_Time"))&Right("0"&month(rs("DispatchOrd_NS_Time")),2)&Right("0"&day(rs("DispatchOrd_NS_Time")),2) & "-"&Right("00"&rs("DispatchOrdNo"),3)    '调度单编号
 
Else
    Response.Redirect "/OrdEvaluateError.asp"
End If
rs.close()
 
'相关受理单
If ServiceOrdID="" Then
    Response.Redirect "/OrdEvaluateError.asp"
End If
sql="select * from ServiceOrder where ServiceOrdID="&ServiceOrdID
rs.open sql,objConn,1,1
If not rs.Eof then
      ServiceOrdID            = rs("ServiceOrdID")            '服务单号
      ServiceOrdClass        = rs("ServiceOrdClass")            '单据类型
      ServiceOrdType        = rs("ServiceOrdType")            '服务单类型
      ServiceOrdState        = rs("ServiceOrdState")            '服务单状态
      ServiceOrdStartDate    = rs("ServiceOrdStartDate")        '开单日期
      ServiceOrdApptDate    = rs("ServiceOrdApptDate")        '预约日期
      If year(ServiceOrdApptDate)<2010 then ServiceOrdApptDate=""
      ServiceOrdCoName        = rs("ServiceOrdCoName")        '联系人姓名
      ServiceOrdCoPhone        = rs("ServiceOrdCoPhone")        '联系人电话
      ServiceOrdCoTies        = rs("ServiceOrdCoTies")        '联系人与患者关系
      ServiceOrdPtName        = rs("ServiceOrdPtName")        '患者姓名
      ServiceOrdPtAge        = rs("ServiceOrdPtAge")            '患者年龄
      ServiceOrdPtSex        = rs("ServiceOrdPtSex")            '患者性别
      ServiceOrdPtNat        = rs("ServiceOrdPtNat")            '患者国籍
      ServiceOrdPtOutHosp    = rs("ServiceOrdPtOutHosp")        '转出医院
      ServiceOrdPtServices    = rs("ServiceOrdPtServices")    '科室
      ServiceOrdPtDiagnosis    = rs("ServiceOrdPtDiagnosis")    '诊断
      ServiceOrdPtCondition    = rs("ServiceOrdPtCondition")    '备注
      ServiceOrdPtDoctor    = rs("ServiceOrdPtDoctor")        '患者医生
      ServiceOrdPtDoctorPhone=rs("ServiceOrdPtDoctorPhone")    '患者医生电话
      ServiceOrdTraProvince    = rs("ServiceOrdTraProvince")    '出发地省份
      ServiceOrdTraCity        = rs("ServiceOrdTraCity")        '出发地城市
      ServiceOrdTraStreet    = rs("ServiceOrdTraStreet")        '出发地
      ServiceOrdTraStreetCoo= rs("ServiceOrdTraStreetCoo")    '出发地坐标
      ServiceOrdTraEnd        = rs("ServiceOrdTraEnd")        '目的地
      ServiceOrdTraEndCoo    = rs("ServiceOrdTraEndCoo")        '目的地坐标
      ServiceOrdTraDistance    = rs("ServiceOrdTraDistance")    '距离(公里)
      ServiceOrdTraDuration    = rs("ServiceOrdTraDuration")    '预计行程时间
      ServiceOrdTraUnitPrice= rs("ServiceOrdTraUnitPrice")    '单价/公里
      ServiceOrdTraOfferPrice=rs("ServiceOrdTraOfferPrice")    '标准报价
      ServiceOrdTraTxnPrice    = rs("ServiceOrdTraTxnPrice")    '成交价
      ServiceOrdTraPaidPrice= rs("ServiceOrdTraPaidPrice")    '已支付金额
      ServiceOrdTraPriceReason=rs("ServiceOrdTraPriceReason")'差价原因
      ServiceOrd_CC_ID        = rs("ServiceOrd_CC_ID")        '第一次接单人员ID
      ServiceOrd_CC_Time    = rs("ServiceOrd_CC_Time")        '第一次接单时间
      ServiceOrd_NS_ID        = rs("ServiceOrd_NS_ID")        '确认服务单人员ID
      ServiceOrd_NS_Time    = rs("ServiceOrd_NS_Time")        '确认服务单时间
      ServiceOrd_AP_Check    = rs("ServiceOrd_AP_Check")        '服务单审核状态(0未审核,1已审核)
      ServiceOrd_AP_ID        = rs("ServiceOrd_AP_ID")        '服务单审核人员ID
      ServiceOrd_AP_Time    = rs("ServiceOrd_AP_Time")        '服务单审核时间
      ServiceOrdIntroducer    = rs("ServiceOrdIntroducer")    '介绍人
      ServiceOrd_Sale_ID    = rs("ServiceOrd_Sale_ID")        '销售人员ID
      Guest_Point            = rs("Guest_Point")
      ServiceOrdNo            = ServiceOrdClass& year(rs("ServiceOrd_CC_Time"))&Right("0"&month(rs("ServiceOrd_CC_Time")),2)&Right("0"&day(rs("ServiceOrd_CC_Time")),2) & "-"&Right("00"&rs("ServiceOrdNo"),3)
      If IsNumeric(ServiceOrdTraDistance) Then ServiceOrdTraDistance=ServiceOrdTraDistance&"公里"
End If
rs.close()
 
If Guest_Point<>0 Then
  Response.Redirect "/OrdEvaluateOK.asp?ServiceOrdID="&ServiceOrdID&"&DispatchOrdID="&DispatchOrdID
  Response.End()
End If
 
'领队情况
sql="select DispatchOrd_Entourage.id,EntourageOAid,EntourageLead,OA_weixinUserID,EntourageState,EntourageState_Time,OA_Name,OA_weixinAvatar,vtext from DispatchOrd_Entourage,OA_User,dictionary where vtitle='DispatchOrdEntourage' and  EntourageID=vID and OA_User_ID=EntourageOAid and EntourageState<>4 and EntourageLead=1 and DispatchOrdIDDt="&DispatchOrdID
rs.open sql,objConn,1,1
If not rs.Eof Then
    EntourageLeadID=rs("EntourageOAid")
End If
'If CInt(session("adminID"))<>CInt(EntourageLeadID) Then EntourageLeadID=8
rs.close()
 
If DispatchOrdCarID<>"" And DispatchOrdCarID<>"0" Then
    DispatchOrdCarLicense=CarDataA(DispatchOrdCarID,"","CarLicense")
End if
%>
<!-- 打赏页 -->
<header class="text-left dasang">
    <!--<div class="info">
        <div class="waitername">订单编号:<%=DispatchOrdNo%></div>     
    </div>-->
        <div class="sign">
        
        <%'途经地
        If DispatchOrdTraVia<>"" then%>
            <%OrdTraVia    = SPLIT(DispatchOrdTraVia,"=>")%>
                出发地:<%=Trim(OrdTraVia(0))%><br>
        <%End if%>
        目的地:<%=DispatchOrdTraEnd%><br>
        <%If DispatchOrdCarID<>"" And DispatchOrdCarID<>"0" Then%>
            <br>执行车辆:<%=DispatchOrdCarLicense%>
        <%End If%>
    </div>
</header>
<div class="ds_form text-center">
    <form action='/OrdEvaluateSave.asp' method='post' name='order_form form-inline'>
        <input type='hidden' name="ServiceOrdID" value="<%=ServiceOrdID%>" />
        <input type='hidden' name="DispatchOrdID" value="<%=DispatchOrdID%>" />
        <input type='hidden' name="openid" value="<%=openid%>" />
        <input type='hidden' name="point" value="0" />
 
        <img src="/img/user_comment2_11.png" style="width: 100%;margin: 0px 0px 20px 0px;">
 
        <%
        sql="select vID,vOrder2,DispatchOrd_Entourage.id,EntourageOAid,EntourageLead,OA_Name,OA_weixinAvatar,vtext from DispatchOrd_Entourage,OA_User,dictionary where vtitle='DispatchOrdEntourage' and  EntourageID=vID and OA_User_ID=EntourageOAid and EntourageState<>4 and DispatchOrdIDDt="&DispatchOrdID&" order by EntourageLead desc,vtext"
        rs.open sql,objConn,1,1
        i=0
        do while not rs.Eof
            EntourageID        = rs("vID")
            OA_CompetencyID    = rs("vOrder2")
            EId                = rs("id")
            EntourageOAid    = rs("EntourageOAid")
            OA_Name            = rs("OA_Name")
            OA_weixinAvatar    = rs("OA_weixinAvatar")
            EntourageName    = rs("vtext")
            OA_Name=Replace(OA_Name,"(外援医生)","")
            OA_Name=Replace(OA_Name,"(外援医生)","")
            OA_Name=Replace(OA_Name,"司机001","")
            %>
            <style>
            #point_star_1_<%=EId%> span{
                background-image: url("/img/start2_09.png");
                width: 30px;
                height: 30px;
            }
            #point_star_1_<%=EId%> .empty {
                background-image: url("/img/start2_10.png");
                width: 30px;
                height: 30px;
            }
            #point_star_1_<%=EId%>,#point_star1{
                display:inline-block;
            }
            #point_star_1_<%=EId%> span,#point_star1 span,#point_star2 span{;
                margin-left: 2px;
                margin-right: 2px;
                display:inline-block;
                background-image: url(../img/start2_09.png);
                -moz-background-size:100% 100%;
                background-size:100% 100%;
            }
            #point_star_1_<%=EId%> .empty,#point_star1 .empty,#point_star2 .empty{
                background-image: url(../img/start2_10.png);
            }
 
            #point_star_2_<%=EId%> span{
                background-image: url("/img/start2_09.png");
                width: 30px;
                height: 30px;
            }
            #point_star_2_<%=EId%> .empty {
                background-image: url("/img/start2_10.png");
                width: 30px;
                height: 30px;
            }
            #point_star_2_<%=EId%>,#point_star1{
                display:inline-block;
            }
            #point_star_2_<%=EId%> span,#point_star1 span,#point_star2 span{;
                margin-left: 2px;
                margin-right: 2px;
                display:inline-block;
                background-image: url(../img/start2_09.png);
                -moz-background-size:100% 100%;
                background-size:100% 100%;
            }
            #point_star_2_<%=EId%> .empty,#point_star1 .empty,#point_star2 .empty{
                background-image: url(../img/start2_10.png);
            }
            </style>
            <input type='hidden' name="EId" value="<%=EId%>" />
            <input type='hidden' name="point_1_<%=EId%>" value="0" />
            <input type='hidden' name="point_2_<%=EId%>" value="0" />
            <div style="text-align: left;font-size: 15px;color: #545454;margin-bottom: 26px;">
                <div><%=EntourageName%>&nbsp;
                <%
                Response.Write Left(OA_Name,1)
                For t = 1 to Len(OA_Name)-1
                    Response.Write "*"
                Next
                %>
                </div>
                <div style="display: flex;align-items: Center;">技能水平&nbsp;<div id="point_star_1_<%=EId%>">
                            <div style="display: inline-block"><span class="empty"></span></div>
                            <div style="display: inline-block"><span class="empty"></span></div>
                            <div style="display: inline-block"><span class="empty"></span></div>
                            <div style="display: inline-block"><span class="empty"></span></div>
                            <div style="display: inline-block"><span class="empty"></span></div>
                        </div>
                </div>
                <div style="display: flex;align-items: Center;">
                服务态度&nbsp;<div id="point_star_2_<%=EId%>">
                            <div style="display: inline-block"><span class="empty"></span></div>
                            <div style="display: inline-block"><span class="empty"></span></div>
                            <div style="display: inline-block"><span class="empty"></span></div>
                            <div style="display: inline-block"><span class="empty"></span></div>
                            <div style="display: inline-block"><span class="empty"></span></div>
                        </div>
                </div>
            </div>
            
            <script>
            var rateStr = ['非常不满意','不满意','加油','一般','满意','非常满意']
            var label = JSON.parse('{"5":[{"id":"7","name":"\u4e0a\u83dc\u53ca\u65f6","parent_id":"5"},{"id":"12","name":"\u73af\u5883\u4f18\u96c5","parent_id":"5"},{"id":"14","name":"\u975e\u5e38\u6ee1\u610f","parent_id":"5"}],"4":[{"id":"17","name":"\u6001\u5ea6\u5f88\u597d","parent_id":"4"},{"id":"18","name":"\u670d\u52a1\u8d34\u5fc3","parent_id":"4"},{"id":"22","name":"\u670d\u52a1\u5468\u5230","parent_id":"4"}],"3":[{"id":"21","name":"\u7ee7\u7eed\u52a0\u6cb9","parent_id":"3"},{"id":"24","name":"\u6001\u5ea6\u4e00\u822c","parent_id":"3"},{"id":"25","name":"\u4e0a\u83dc\u7a0d\u6162","parent_id":"3"}],"1":[{"id":"33","name":"\u670d\u52a1\u5dee\u8bc4","parent_id":"1"},{"id":"34","name":"\u73af\u5883\u5dee\u8bc4","parent_id":"1"},{"id":"35","name":"\u83dc\u54c1\u5dee\u8bc4","parent_id":"1"}],"2":[{"id":"36","name":"\u73af\u5883\u5dee\u8bc4","parent_id":"2"},{"id":"37","name":"\u83dc\u54c1\u5dee\u8bc4","parent_id":"2"},{"id":"38","name":"\u670d\u52a1\u5dee\u8bc4","parent_id":"2"}]}');
            ds.placeholder="欢迎您提出宝贵的意见或建议!";
            $(function(){
                $('#textarea').bind('focus',function(){
                    $(this).html('');
                    $(this).css("color","#000");
                }).bind('blur',function(){
                    $(this).html('欢迎您提出宝贵的意见或建议!');
                });
                $("#point_star_1_<%=EId%>").children("div").each(function(idx,obj){
                    $(obj).on("click",function(){
                        $(this).nextAll("div").find("span").addClass('empty');
                        $(this).find("span").removeClass("empty");
                        $(this).prevAll("div").find("span").removeClass("empty");
                        var numIt = idx + 1;
                        var point=document.all.point.value;
                        var point1=document.all.point_1_<%=EId%>.value;
                        if (point1=="0") {document.all.point.value=parseInt(point)+1;}
                        $("input[name='point_1_<%=EId%>']").val(numIt);
                        $("#point_star_1_<%=EId%>").next("div").text(rateStr[numIt]);
                        s_label = label[numIt];
                        var label_string = '';
                        $('#user_label').html('');
 
                        for(i in s_label){
                            label_string += '<li id="'+s_label[i]['id']+'" class="label1" select=""><span>'+s_label[i].name+'</span><img src="/img/zan_gray.png" /></li>';
                            $('#user_label').html(label_string);
                        }
                        $(".label1").bind("click",function(){
                            var selected=$(this).attr("select");
                            if(selected=="selected"){
                                $(this).removeClass("label3");
                                $(this).attr("select","");
                                $(this).addClass("label1");
                                $(this).children("img").attr("src","/img/zan_gray.png");
                            }else{
                                $(this).removeClass("label1");
                                $(this).attr("select","selected");
                                $(this).addClass("label3");
                                $(this).children("img").attr("src","/img/zan.png");
                            }
                        });
                    })
                });
                $("#point_star_2_<%=EId%>").children("div").each(function(idx,obj){
                    $(obj).on("click",function(){
                        $(this).nextAll("div").find("span").addClass('empty');
                        $(this).find("span").removeClass("empty");
                        $(this).prevAll("div").find("span").removeClass("empty");
                        var numIt = idx + 1;
                        var point=document.all.point.value;
                        var point1=document.all.point_2_<%=EId%>.value;
                        if (point1=="0") {document.all.point.value=parseInt(point)+1;}
                        $("input[name='point_2_<%=EId%>']").val(numIt);
                        $("#point_star_2_<%=EId%>").next("div").text(rateStr[numIt]);
                        s_label = label[numIt];
                        var label_string = '';
                        $('#user_label').html('');
 
                        for(i in s_label){
                            label_string += '<li id="'+s_label[i]['id']+'" class="label1" select=""><span>'+s_label[i].name+'</span><img src="/img/zan_gray.png" /></li>';
                            $('#user_label').html(label_string);
                        }
                        $(".label1").bind("click",function(){
                            var selected=$(this).attr("select");
                            if(selected=="selected"){
                                $(this).removeClass("label3");
                                $(this).attr("select","");
                                $(this).addClass("label1");
                                $(this).children("img").attr("src","/img/zan_gray.png");
                            }else{
                                $(this).removeClass("label1");
                                $(this).attr("select","selected");
                                $(this).addClass("label3");
                                $(this).children("img").attr("src","/img/zan.png");
                            }
                        });
                    })
                });
            });
        </script>
            <%i=i+1
        rs.movenext
        loop
        rs.close()%>
<img src="/img/user_comment2_12.png" style="width: 100%;padding: 0px 20px;margin-bottom: 10px">
医疗护送工作不容易,可以答谢护送团队喔
        <div id="cash_select" class="col-xs-12">
    <!-- <img src="/hua_tian_zhu/288.png" style="width: 100px;"> -->
                <ul>
                    <li><input name="amount" type="radio" value="50" ><span>50元</span></li>
                    <li><input name="amount" type="radio" value="100" ><span>100元</span></li>
                    <li><input name="amount" type="radio" value="200" ><span>200元</span></li>
                    <li><input name="amount" type="radio" value="300" ><span>300元</span></li>
                    <li><input name="amount" type="radio" value="-1"><span>自定义</span></li>
                </ul>
        </div>
 
        <div class="form-group div_cash">
        <label class="sr-only" for="exampleInputAmount">Amount (in dollars)</label>
        <div class="input-group">
          <div class="input-group-addon">答谢金额:</div>
          <input type="text" name="other_amount" onkeyup="Num(this)" class="form-control" id="exampleInputAmount" placeholder="请输入金额">
          <div class="input-group-addon">元</div>
        </div>
        </div>
 
        
                <div class="col-xs-12" style="border: 1px solid #dfdfdf;border-left:none;border-right:none; ">
            <textarea name='contents' class="form-control" id="textarea" rows="4" placeholder="欢迎您提出宝贵的意见或建议!" style="border: none;resize: none;height: auto;"></textarea>
        </div>
        <div class="imgs" style="display: none;">
            <img src="/img/camera.png" onclick="addPaperImg()" id="camera">
        </div>
        <input type="hidden" name="paperimg_id">
        <div class="col-xs-12">
            <div class="anniu" onclick="submitForm();">
                <button type="button" id="btn_reg" class="" style="">提交评价</button>
            </div>
        </div>
    </form>
</div>
<div class="clear"></div>
<div class="bottom_padding"></div>
<div id="point_tip">
    <div>
        <button type="button" id="cancel_reg" class="btn btn-primary btn-block btn-lg" style="margin-right: 135px;background: #00cb6e;">我再想想</button>
        <button type="button" id="confirm_reg" class="btn btn-primary btn-block btn-lg" style="margin-right: 15px;background: #9f0c0c;">我确实不爽</button>
    </div>
</div>
<style>
    .complain_dialog{
        background: rgba(0, 0, 0, 0.51);
        position: fixed;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 999;
        color: #aaa;
        font-size: 14px;
        display: none;
    }
    #form{margin: 20px;}
    #result{display: none;margin: 30px;}
    .ts_success{
        width: 50%;
        max-width: 120px;
    }
    .complain_dialog .inner{
        background: #fff;border-radius: 10px;text-align: center;margin: 0 auto;padding:20px;position: relative;
    }
    .complain_dialog .cancel{
        position: absolute;right: 10px;top: 10px;width: 20px;
    }
    .complain_dialog input{margin: 20px 0 20px 10px;border:none;border-bottom: 1px solid #b5b5b5;width: 70%}
    .complain_dialog textarea{display: block;width: 100%;resize:none;height: 40%;border:1px solid #ccc;box-sizing: border-box;padding:10px 20px;}
    .error_tip{
        color: #ff0000;
        display: none;
    }
    .txt{
        color: #323232;
        font-size: 16px;
        margin: 10px 0 20px 0;
    }
    .complain_dialog h4{color: #323232;}
</style>
<!--投诉弹框-->
<div class="complain_dialog">
    <div class="inner" id="form">
        <img src="/img/cha_ts.png" class="cancel">
        <h4>投诉建议</h4>
        <textarea placeholder="请留下投诉或建议(不超过200个字符)" rows="10" name="complain"></textarea>
        <div id="contents_error"  class="error_tip">手机号</div>
        <div style="width: 100%;">
            <span style="color: #686868;">手机</span>
            <input type="text" name="mobile" placeholder="留下手机号码,便于及时联系您" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
        </div>
        <div id="mobile_error" class="error_tip">手机号</div>
        <div class="anniu" onclick="submitComlain();">
            <button type="button"  style="width: 100%">提交</button>
        </div>
    </div>
    <div class="inner" id="result">
        <img src="/img/cha_ts.png" class="cancel">
        <img src="/img/ts_success.png" class="ts_success">
        <div class="txt"></div>
        <div class="anniu ">
            <button type="button"  style="width: 50%" class="complete">完成</button>
        </div>
    </div>
</div>
<script>
    $("#complain").click(function(){
        $('textarea[name="complain"]').val("");
        $('input[name="mobile"]').val("");
        $("#form").show();
        $("#result").hide();
        $(".complain_dialog").toggle();
    })
    $(".cancel,.complete").click(function(){
        $(".complain_dialog").toggle();
    })
    //提交投诉建议
    function submitComlain(){
        var isMobile = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1})|(   14[0-9]{1}))+\d{8})$/;
        var contents = $('textarea[name="complain"]').val();
        var mobile = $('input[name="mobile"]').val();
        var seller_id = "0";
        $("#contents_error").text('');
        $("#mobile_error").text('');
        var from="q";
        if(contents==""){
            $("#contents_error").text('请输入投诉建议内容').show();
        }else if(contents.length>200) {
            $("#contents_error").text('投诉建议内容不超过200个字符').show();
        }else if(mobile=="") {
            $("#mobile_error").text('请填写手机号码').show();
        } else if(!isMobile.exec(mobile) || mobile.length != 11) {
            $("#mobile_error").text('手机号码格式不正确').show();
        }else{
            $.post("/ucenter/submitComlain",{'contents':contents,'mobile':mobile,'seller_id':seller_id,'from':from},function(data){
                if(data.result == 'success'){
                    $("#result .txt").text("您的意见已经提交,感谢您的支持!");
                }else{
                    $("#result .txt").text(data.result);
                }
                $("#form").hide();
                $("#result").show();
            },'json');
        }
    }
</script><style>
    #empty button{
    width: auto;
    height: auto;
  }
  #empty{
    top: 50%;
    margin-top: -170px;
  }
</style>
<div class="modal fade bs-example-modal-sm" id="empty" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
  <div class="modal-dialog modal-sm" role="document">
    <div class="modal-content">
    <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
            <h4 class="modal-title">提示</h4>
          </div>
      <div class="modal-body text-center">
        <p><img src="/img/error.png" alt=""></p>
        <p>请给我们的医护人员都评个分吧。</p>
      </div>
    </div>
  </div>
</div>
 
<script>
  function showEmpty(){
    $('#empty').modal('show');
  }
</script><script language="javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
    var rateStr = ['非常不满意','不满意','加油','一般','满意','非常满意']
    var label = JSON.parse('{"5":[{"id":"7","name":"\u4e0a\u83dc\u53ca\u65f6","parent_id":"5"},{"id":"12","name":"\u73af\u5883\u4f18\u96c5","parent_id":"5"},{"id":"14","name":"\u975e\u5e38\u6ee1\u610f","parent_id":"5"}],"4":[{"id":"17","name":"\u6001\u5ea6\u5f88\u597d","parent_id":"4"},{"id":"18","name":"\u670d\u52a1\u8d34\u5fc3","parent_id":"4"},{"id":"22","name":"\u670d\u52a1\u5468\u5230","parent_id":"4"}],"3":[{"id":"21","name":"\u7ee7\u7eed\u52a0\u6cb9","parent_id":"3"},{"id":"24","name":"\u6001\u5ea6\u4e00\u822c","parent_id":"3"},{"id":"25","name":"\u4e0a\u83dc\u7a0d\u6162","parent_id":"3"}],"1":[{"id":"33","name":"\u670d\u52a1\u5dee\u8bc4","parent_id":"1"},{"id":"34","name":"\u73af\u5883\u5dee\u8bc4","parent_id":"1"},{"id":"35","name":"\u83dc\u54c1\u5dee\u8bc4","parent_id":"1"}],"2":[{"id":"36","name":"\u73af\u5883\u5dee\u8bc4","parent_id":"2"},{"id":"37","name":"\u83dc\u54c1\u5dee\u8bc4","parent_id":"2"},{"id":"38","name":"\u670d\u52a1\u5dee\u8bc4","parent_id":"2"}]}');
    ds.placeholder="有什么建议或意见,来唠叨几句吧!";
    $(function(){
        $('#textarea').bind('focus',function(){
            $(this).html('');
            $(this).css("color","#000");
        }).bind('blur',function(){
            $(this).html('其它意见或建议');
        });
        $("#point_star").children("div").each(function(idx,obj){
            $(obj).on("click",function(){
                $(this).nextAll("div").find("span").addClass('empty');
                $(this).find("span").removeClass("empty");
                $(this).prevAll("div").find("span").removeClass("empty");
                var numIt = idx + 1;
                $("input[name='point']").val(numIt);
                $("#point_star").next("div").text(rateStr[numIt]);
                s_label = label[numIt];
                var label_string = '';
                $('#user_label').html('');
 
                for(i in s_label){
                    label_string += '<li id="'+s_label[i]['id']+'" class="label1" select=""><span>'+s_label[i].name+'</span><img src="/img/zan_gray.png" /></li>';
                    $('#user_label').html(label_string);
                }
                $(".label1").bind("click",function(){
                    var selected=$(this).attr("select");
                    if(selected=="selected"){
                        $(this).removeClass("label3");
                        $(this).attr("select","");
                        $(this).addClass("label1");
                        $(this).children("img").attr("src","/img/zan_gray.png");
                    }else{
                        $(this).removeClass("label1");
                        $(this).attr("select","selected");
                        $(this).addClass("label3");
                        $(this).children("img").attr("src","/img/zan.png");
                    }
                });
            })
        });
        //$($("#point_star").children("div")[3]).click();
        // 自定义打赏金额
        $('input[name=amount]').bind('click',function(){
            if($(this).val()=="-1"){
                $('.div_cash').show();
            }else{
                $('.div_cash').hide();
                $('input[name=other_amount]').val('');
            }
        });
    });
    var localIds = new Array();
    var localIdIndex = 0;
    function addPaperImg(){
        wx.ready(function () {
            wx.chooseImage({
                sizeType: [ 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
                sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
                success: function (res) {
                    //localIds = res.localIds; // 返回选定照片的本地ID列表,localId可以作为img标签的src属性显示图片
                    var str='';
                    if(res.localIds){
                        $.each(res.localIds, function(i, item){
                            localIds[localIdIndex++] = item;
                            str+='<img class="pic" src="'+item+'" onclick="addPaperImg()">';
                        });
                    }
                    if(str){$(".imgs ").prepend(str);}
                    var num=0;
                    $.each($(".pic"), function(i, item){
                        num++;
                    });
                    if(num>8){
                        $("#camera").remove();
                    }else{
                        $("#camera").attr("src","/img/add_img.png");
                    }
                }
            });
        });
    }
    //提交表单
    function submitForm(){
        if($("input[name='point']").val()<<%=i*2%>){
            showEmpty();
        }else if($("input[name='point']").val()<3){
            $("#point_tip").height($("body").height()).show();
        }else{
            $("#btn_reg").css({ border: "none", background: "#ccc" }).text("提交中...").attr("disabled","disabled");
            //获取选择的标签列表
            var label_list="";
            $("#label ul li").each(function(idx,obj){
                if($(this).attr("select")=="selected"){
                    label_list=label_list+$(this).attr("id")+"|";
                }
            });
            $("input[name='label_list']").val(label_list);
            if(localIds && localIds.length > 0){
                syncUpload(localIds);
            }else{
                $("form").submit();
            }
        }
    }
    var serverId= new Array();
    function syncUpload(localIds){
        var localId = localIds.pop();
        wx.uploadImage({
            localId: localId,
            isShowProgressTips: 1,
            success: function (res) {
                serverId.push(res.serverId); // 返回图片的服务器端ID
                //其他对serverId做处理的代码
                if(localIds.length > 0){
                    syncUpload(localIds);
                }else{
                    $("input[name='paperimg_id']").val(serverId);
                    $("form").submit();
                }
            },
            fail: function (res) {
//                $("#textarea").attr("placeholder",JSON.stringify(res));
            }
        });
    }
    //输入校验
    function Num(obj){
        obj.value = obj.value.replace(/[^\d.]/g,""); //清除"数字"和"."以外的字符
        obj.value = obj.value.replace(/^\./g,""); //验证第一个字符是数字而不是
        obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个. 清除多余的
        obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
        obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); //只能输入两个小数
    }
    $("#showmore").on("click",function(){
        $(this).hide();
        $(".labelmore").show();
    });
 
    $("#cancel_reg").click(function(){
        $("#point_tip").hide();
    });
    $("#confirm_reg").click(function(){
        $("#point_tip").hide();
        $("#btn_reg").css({ border: "none", background: "#ccc" }).text("提交中...").attr("disabled","disabled");
        //获取选择的标签列表
        var label_list="";
        $("#label ul li").each(function(idx,obj){
            if($(this).attr("select")=="selected"){
                label_list=label_list+$(this).attr("id")+"|";
            }
        });
        $("input[name='label_list']").val(label_list);
        $('form').submit();
    });
 
    $(".label2").on("click",function(){
        var select=$(this).attr("select");
        $(".label2").css("background","#878787");
        $(".label2").attr("select","");
        if(select=="selected"){
            $(this).css("background","#878787");
            $(this).attr("select","");
        }else{
            $(this).css("background","#ffa732");
            $(this).attr("select","selected");
        }
    });
 
</script>
<!-- 服务员评价界面弹幕 小费、评价 -->
 
 
</body>
</html>