Your Name 8 mesi fa
parent
commit
503c06f774

+ 51
- 0
application/api/controller/Diyajax.php Vedi File

@@ -497,4 +497,55 @@ class Diyajax extends Base
497 497
             respose(['code'=>0, 'msg'=>'请求失败', 'data'=>[]]);
498 498
         }
499 499
     }
500
+
501
+    public function kjForm(){
502
+        $param = request()->param();
503
+        $param['form_id'] = (int)$param['form_id'];
504
+        $one = Db::name('zc_form')->where('id', $param['form_id'])->find();
505
+        if((int)$one['pccs'] === 0){
506
+            //未更新
507
+            if(!empty($param['form_id'])){
508
+                $pccs = Db::name('zc_form')->where(['sjhm'=>$one['sjhm'],'is_del'=>0])->count();
509
+                $data = [
510
+                    'pccs' => (int)$pccs + 1,
511
+                    'is_tg' => (int)$param['is_tg'],
512
+                    'jjfa' => $param['jjfa'],
513
+                    'xy_info' => $param['xy_info'],
514
+                ];
515
+                //更新表单数据
516
+                $list = Db::name('zc_form')
517
+                    ->where('id', $param['form_id'])
518
+                    ->update($data);
519
+                respose(['code'=>1, 'msg'=>'请求成功', 'data'=>[]]);
520
+            }else{
521
+                respose(['code'=>0, 'msg'=>'请求失败', 'data'=>[]]);
522
+            }
523
+        }else{
524
+            respose(['code'=>0, 'msg'=>'请求失败', 'data'=>[]]);
525
+        }
526
+    }
527
+
528
+    public function getFormList()
529
+    {
530
+        $list = Db::name('zc_form')
531
+            //->where('pccs', 1) //同一号码 只调用一次
532
+            ->field('id,ch,sjhm,is_tg,jjfa,extend')
533
+            ->where('is_del', 0)
534
+            ->where('pccs', '>',0)
535
+            ->order('updatetime desc')
536
+            //->fetchSql(true)
537
+            ->limit(20)
538
+            ->select();
539
+        //var_dump($list);
540
+        $is_tg_str = ['条件不符','符合条件'];
541
+        foreach ($list as $key => $item) {
542
+            $item['is_tg_n'] = $item['is_tg'];
543
+            $extend_info = json_decode($item['extend'],true);
544
+            $item['sbxx'] = $extend_info['sbzy'].$extend_info['sbdj'];
545
+            $item['sjhm'] = preg_replace('/(\d{3})\d{4}(\d{4})/', '$1****$2', $item['sjhm']);
546
+            $item['is_tg'] = $is_tg_str[$item['is_tg']];
547
+            $list[$key] = $item;
548
+        }
549
+        respose(['code'=>1, 'msg'=>'请求成功', 'data'=>$list]);
550
+    }
500 551
 }

+ 2
- 2
login.php Vedi File

@@ -27,11 +27,11 @@ $url = $protocol . $domainName;
27 27
 echo $domainName; // 输出当前域名的完整URL
28 28
 
29 29
 if($domainName == 'www.zc10000.com' || $domainName == 'zc10000.com'){
30
-    header('HTTP/1.1 301 Moved Permanently');
30
+/*    header('HTTP/1.1 301 Moved Permanently');
31 31
     // 设置新的位置为主页URL
32 32
     header('Location: https://www.zc10000.com');
33 33
     // 确保之后的代码不会执行
34
-    exit();
34
+    exit();*/
35 35
 }
36 36
 
37 37
 header("Content-type:text/html;charset=utf-8");

+ 162
- 0
template/pc/common/include/step.htm Vedi File

@@ -16,6 +16,10 @@
16 16
 <!--时间组件-->
17 17
 <script type="text/javascript" src="/template/pc/js/botstrap-step/moment.min.js"></script>
18 18
 <script type="text/javascript" src="/template/pc/js/botstrap-step/daterangepicker.js"></script>
19
+
20
+<!--滚动组件-->
21
+<script src="/template/pc/js/botstrap-step/autoScroll.js"></script>
22
+
19 23
 <script>
20 24
     $(function() {
21 25
         $(".daterange input").each(function() {
@@ -375,7 +379,165 @@
375 379
             }
376 380
         });*/
377 381
 
382
+       /*$("#autoScroll01").autoScroll({
383
+            direction: 'down',                //滚动方向,'up'、'down'、'left'、'right',*必须参数
384
+            interval: 40,                     //滚动间隔,单位'ms',一定要大于'滚动速度',*必须参数
385
+            speed: 10,                        //滚动完成耗时,单位'ms',一定要小于'滚动间隔',*必须参数
386
+            distance: 3,                      //单次滚动距离,单位'px',*必须参数
387
+            liHeight: 35,                     //单个li的盒模型高度&宽度(包括margin值。左右滚动只有liWidth参数,上下滚动只有liHeight参数),*必须参数
388
+            showNum: 5                        //显示几个li,父级高会自适应,但不要超过最大个数,*必须参数
389
+        });*/
390
+
391
+
392
+        //循环滚动
393
+        $("#autoScroll01").autoScroll({
394
+            direction: 'down',              //向下滚动
395
+            interval: 1000,                 //2秒滚动一次
396
+            speed: 500,                     //滚动耗时0.6秒(所以必须2秒内滚完,以免没滚完就执行下一次滚动了)
397
+            distance: 35,                   //一次滚动40px
398
+            liHeight: 35,                   //单个的li的盒模型高度是40px(上下滚动li没有margin跟padding值)
399
+            showNum: 7                      //容器里显示3个li标签
400
+        });
401
+
402
+        //置换头尾
403
+        setInterval(function() {
404
+            var html = $('#autoScroll01 ul li:last').prop('outerHTML');
405
+            $('#autoScroll01 ul li:last').remove();
406
+            //$('#autoScroll01 ul li:first').before(html);
407
+            $('#autoScroll01 ul').append(html);
408
+        }, 1000);
409
+
410
+        //
411
+        $(document).on('click','.hjk',function(){
412
+            var index = $(this).index();
413
+            if($(this).is('.hjk-check')){
414
+                $(this).removeClass('hjk-check');
415
+                $('#inlineCheckbox'+index).attr("checked",false);
416
+            }else{
417
+                $(this).addClass('hjk-check');
418
+                $('#inlineCheckbox'+index).attr("checked",'checked');
419
+            }
420
+        });
421
+
422
+        //展开 拉起
423
+        $('.zklp').click(function(){
424
+            var index = $(this).attr('data');
425
+            var t = $(this).text();
426
+            if(t == '展开'){
427
+                $('.zklp').text('展开');
428
+                $(this).text('收起');
429
+                $('.p-con68').hide();
430
+                $('.klp'+index).show();
431
+                $(this).removeClass('zklp-3');
432
+                $(this).addClass('zklp-2');
433
+            }else{
434
+                //$('.zklp').text('收起');
435
+                $(this).text('展开');
436
+                $('.p-con68').hide();
437
+                $(this).removeClass('zklp-2');
438
+                $(this).addClass('zklp-3');
439
+            }
440
+        });
441
+
442
+        //咨询费用
443
+        $('#zxfy').click(function(){
444
+            var url = '{eyou:global name='web_attr_26' /}';
445
+            var html = "<div style='width:100%;text-align: center;'>请使用微信扫一扫二维码<br/><img src='"+url+"'/></div>";
446
+            //$('#myModal .modal-title').html('提示');
447
+            $('#myModal .modal-body p').html(html);
448
+            $('#myModal').modal('show');
449
+        });
450
+
451
+        //解决方案
452
+        $('#jjfa').click(function(){
453
+            var url = '{eyou:global name='web_attr_26' /}';
454
+            var html = "<div style='width:100%;text-align: left;'>&nbsp;&nbsp;&nbsp;&nbsp;本站已收到您的求助,将于24小时内安排专业的建筑职称申报辅导老师与您联系,请保持电话畅通!并预祝您早日下证!</div>";
455
+            //$('#myModal .modal-title').html('提示');
456
+            $('#myModal .modal-body p').html(html);
457
+            $('#myModal').modal('show');
458
+        });
378 459
 
460
+        //点击获取二维码
461
+        $('#getCode').click(function(){
462
+            var url = '{eyou:global name='web_attr_26' /}';
463
+            var html = "<div style='width:100%;text-align: center;'>请使用微信扫一扫二维码<br/><img src='"+url+"'/></div>";
464
+            //$('#myModal .modal-title').html('提示');
465
+            $('#myModal .modal-body p').html(html);
466
+            $('#myModal').modal('show');
467
+        });
379 468
 
469
+        //发送后台保存 $param_k_json
470
+        $.ajax({
471
+            url: '/api/Diyajax/kjForm',
472
+            method: 'POST',
473
+            dataType: 'json', // 指定响应数据为JSON
474
+            data: {$param_k_json},
475
+            success: function(data) {
476
+                // 请求成功后隐藏加载状态
477
+                $('#loadingModal').modal('hide');
478
+                // 处理返回的数据
479
+                console.log('Ajax response:', data);
480
+
481
+                //$('#loadingModal .visually-hidden').html(data.msg);
482
+                //$('#loadingModal').modal('show');
483
+
484
+                if(data.code == 0){
485
+                    //setTimeout(function() {
486
+                        //$('#loadingModal').modal('hide');
487
+                    //}, 3000); // 5秒后取消定时器
488
+                }else{
489
+
490
+                }
491
+            },
492
+            error: function(xhr, status, error) {
493
+                // 请求失败后隐藏加载状态
494
+                $('#loadingModal').modal('hide');
495
+                // 处理错误
496
+                console.error('Ajax error:', status, error);
497
+            }
498
+        });
499
+
500
+        //ajax获取表单数据 因为页面是缓存数据
501
+        $.ajax({
502
+            url: '/api/Diyajax/getFormList',
503
+            method: 'POST',
504
+            dataType: 'json', // 指定响应数据为JSON
505
+            data: {},
506
+            success: function(data) {
507
+                // 请求成功后隐藏加载状态
508
+                $('#loadingModal').modal('hide');
509
+                // 处理返回的数据
510
+                console.log('Ajax response:', data);
511
+
512
+                //$('#loadingModal .visually-hidden').html(data.msg);
513
+                //$('#loadingModal').modal('show');
514
+
515
+                if(data.code == 1){
516
+                    //setTimeout(function() {
517
+                    //$('#loadingModal').modal('hide');
518
+                    //}, 3000); // 5秒后取消定时器
519
+
520
+                    var html = '';
521
+                    $.each(data.data,function (i,e){
522
+                        var cal = '';
523
+                        if(e.is_tg_n == 0){
524
+                            cal = 'tib-li-err';
525
+                        }
526
+                        html += '<li class="tib-li '+cal+'"><span class="sp1">'+e.ch+'</span><span class="sp2">'+e.sjhm+'</span><span class="sp3">'+e.sbxx+'</span><span class="sp4">'+e.is_tg+'</span></li>';
527
+                    });
528
+                    //console.log(html);
529
+                    $('#autoScroll01 ul').empty();
530
+                    $('#autoScroll01 ul').append(html);
531
+                }else{
532
+
533
+                }
534
+            },
535
+            error: function(xhr, status, error) {
536
+                // 请求失败后隐藏加载状态
537
+                $('#loadingModal').modal('hide');
538
+                // 处理错误
539
+                console.error('Ajax error:', status, error);
540
+            }
541
+        });
380 542
     });
381 543
 </script>

+ 1
- 0
template/pc/common/main/param/ciping.htm Vedi File

@@ -3,5 +3,6 @@ $route_param = request()->route();
3 3
 $tid = $route_param['tid']?(int)$route_param['tid']:0;
4 4
 $tagid = $route_param['tagid']?(int)$route_param['tagid']:0;
5 5
 $is_mobile = isMobile();
6
+$param_k_json = '{}';
6 7
 ?>
7 8
 

+ 255
- 132
template/pc/components/index/kop.htm Vedi File

@@ -1,95 +1,177 @@
1 1
 <?php
2
-$result_map = "";
3
-$xl = ['不限制','中专','高技','大专','本科','硕士','博士'];
4
-//先列出全国 再其他省 再到市
5
-$sql = 'select * from ey_zcwd_position where type='.$detail['sbzy'].' and sbdj='.$detail['sbdj'].' and is_del=0 and status=1'.$sql_end.' order by sf asc';
6
-$is_list_empty = '';
2
+    $result_map = "";
3
+    $xl = ['不限制','中专','高技','大专','本科','硕士','博士'];
4
+    //先列出全国 再其他省 再到市
5
+    $sql = 'select * from ey_zcwd_position where type='.$detail['sbzy'].' and sbdj='.$detail['sbdj'].' and is_del=0 and status=1'.$sql_end.' order by sf asc';
6
+    $is_list_empty = '';
7
+    //echo $sql;
8
+    $list_data = [];
9
+
10
+    //测试Db操作
11
+    //$row_t = Db::table('ey_zcwd_position')->find();
12
+    //var_dump($row_t);
13
+    $str_no_err = [];
7 14
 ?>
8 15
 {eyou:sql sql="$sql" cachetime='3600' empty='' id="field"}
16
+    <?php
17
+        $is_list_empty = $field['id'];
18
+        $list_data[] = $field;
19
+    ?>
20
+{/eyou:sql}
21
+
22
+
23
+{eyou:if condition='(!empty($is_list_empty))'}
9 24
 <?php
10
-$is_list_empty = $field['id'];
25
+/**
26
+ * 多种循环体
27
+ * 每一次循环都是一种匹配情况
28
+ */
29
+$tyu_num = 1;
11 30
 ?>
12
-<div class="panel panel-primary" style="display:none;">
13
-    <div class="panel-body">
31
+{eyou:volist name='$list_data' id='field'}
32
+
33
+<div class="ta-list-li-box">
34
+    <div class="tllb-t">
35
+<!--<div class="panel panel-primary" style="display:block;">
36
+    <div class="panel-body">-->
14 37
 
15
-        {eyou:if condition='((int)$field.sf === 0)'}
16
-        ({$t}匹配结果)全国通用申报要求对比结果如下:
17
-        {eyou:else /}
18
-        <?php
19
-        if((int)$field['sf'] > 0){
20
-            $sql22 = "select id,name from ey_citysite where id=".$field['sf'];
21
-            $sql222 = '';
22
-            if((int)$field['cs'] > 0){
23
-                $sql222 = "select id,name from ey_citysite where id=".$field['cs'];
24
-            }
25
-        }
26
-        ?>
27 38
 
28
-        {eyou:sql sql='$sql22' cachetime='3600' empty='' id="kop"}
29
-        <?php
30
-        $aname = $kop['name'];
31
-        ?>
32
-        {/eyou:sql}
33
-        {eyou:if condition='((int)$field.cs > 0)'}
34
-        {eyou:sql sql='$sql222' cachetime='3600' empty='' id="kop"}
35 39
         <?php
36
-        $bname = $kop['name'];
40
+        if($tyu_num == 1){
41
+            $t = '收起';
42
+            $t_class = 'zklp-2';
43
+        }else{
44
+            $t = '展开';
45
+            $t_class = 'zklp-3';
46
+        }
37 47
         ?>
38
-        {/eyou:sql}
39
-        {/eyou:if}
40 48
 
41
-        ({$t}匹配结果){$aname}{$bname}地区申报要求对比结果如下:
42
-        {/eyou:if}
43 49
 
44 50
 
51
+        {eyou:if condition='((int)$field.sf === 0)'}
52
+            <!--({$t}匹配结果)全国通用申报要求对比结果如下:-->
53
+        <span class="zklp-l">({$tyu_num})根据你的条件符合申报全国地区,结果如下:</span>
54
+        <span class="zklp zklp{$tyu_num} {$t_class}" data="{$tyu_num}">{$t}</span>
55
+        {eyou:else /}
56
+            <?php
57
+            if((int)$field['sf'] > 0){
58
+                $sql22 = "select id,name from ey_citysite where id=".$field['sf'];
59
+                $sql222 = '';
60
+                if((int)$field['cs'] > 0){
61
+                    $sql222 = "select id,name from ey_citysite where id=".$field['cs'];
62
+                }
63
+            }
64
+            ?>
65
+            {eyou:sql sql='$sql22' cachetime='3600' empty='' id="kop"}
66
+                <?php
67
+                    $aname = $kop['name'];
68
+                ?>
69
+            {/eyou:sql}
70
+            {eyou:if condition='((int)$field.cs > 0)'}
71
+                {eyou:sql sql='$sql222' cachetime='3600' empty='' id="kop"}
72
+                <?php
73
+                    $bname = $kop['name'];
74
+                ?>
75
+                {/eyou:sql}
76
+            {/eyou:if}
77
+            <!--({$t}匹配结果){$aname}{$bname}地区申报要求对比结果如下:-->
78
+            <span class="zklp-l">({$tyu_num})根据你的条件符合申报{$aname}{$bname}地区,结果如下:</span>
79
+            <span class="zklp zklp{$tyu_num} {$t_class}" data="{$tyu_num}">{$t}</span>
80
+        {/eyou:if}
45 81
     </div>
46
-    <div class="panel-footer" style="padding:3px 5px;">
82
+    <div class="clear"></div>
83
+    <div class="tllb-b p-con68 klp{$tyu_num}">
84
+    <!--</div>
85
+    <div class="panel-footer" style="padding:3px 5px;">-->
86
+
47 87
 
48 88
         <!--查询专业-->
49 89
         <?php
50
-        $num = 0;
51
-        $sql2 = "select * from ey_zcwe_position where type=".$field['id']." and is_del=0 and status=1";
90
+            $num = 0;
91
+            $sql2 = "select * from ey_zcwe_position where type=".$field['id']." and is_del=0 and status=1";
92
+            $son_details = [];
52 93
         ?>
53 94
         {eyou:sql sql="$sql2" cachetime='3600' empty='暂无相关数据' id="field2"}
54
-        <table class="table table-bordered" style="margin-bottom:0px;margin-top:5px;">
95
+            <?php
96
+                $son_details[] = $field2;
97
+            ?>
98
+        {/eyou:sql}
99
+
100
+
101
+        <ul class="nav nav-tabs" id="myTab{$tyu_num}" role="tablist">
102
+            <?php
103
+                $io_num = 1;
104
+            ?>
105
+            {eyou:volist name='$son_details' id='field2'}
106
+                <li class="nav-item {eyou:if condition='($io_num == 1)'}active{/eyou:if}">
107
+                    <a class="nav-link {eyou:if condition='($io_num == 1)'}active{/eyou:if}" id="home-tab{$io_num}" data-toggle="tab" href="#home{$io_num}" role="tab" aria-controls="home" aria-selected="true">
108
+                        情况{$i}
109
+                    </a>
110
+                </li>
111
+                <?php
112
+                    $io_num++;
113
+                ?>
114
+            {/eyou:volist}
115
+        </ul>
116
+
117
+
118
+
119
+        <div class="tab-content" id="myTabContent">
120
+            <?php
121
+            $io_d_num = 1;
122
+            ?>
123
+        {eyou:volist name='$son_details' id='field2'}
124
+        <div class="tab-pane fade {eyou:if condition='($io_d_num == 1)'} active in{/eyou:if}" id="home{$io_d_num}" role="tabpanel" aria-labelledby="home-tab{$io_d_num}">
125
+
126
+        <table class="" style="">
127
+            <!--<caption>第{$i}种情况</caption>-->
128
+            <colgroup>
129
+                <col class="t-wid1 batman">
130
+                <col class="t-wid2 flash">
131
+                <col class="t-wid3 flash">
132
+                <col class="t-wid4 flash">
133
+            </colgroup>
134
+
55 135
             <thead>
56 136
             <tr>
57
-                <th scope="col" style="text-align: center;">情况<br/>{$i}</th>
58
-                <th scope="col">字段<br/>信息</th>
59
-                <th scope="col">实际<br/>要求</th>
60
-                <th scope="col">填写<br/>资料</th>
61
-                <th scope="col">匹配<br/>结果</th>
137
+                <th>字段信息</th>
138
+                <th>实际要求</th>
139
+                <th>填写资料</th>
140
+                <th>匹配结果</th>
62 141
             </tr>
63 142
             </thead>
143
+
64 144
             <tbody>
65 145
             <?php
66 146
             //先判断学历是否符合
67 147
             ?>
68 148
             <tr>
69
-                <th scope="row">1</th>
70 149
                 <td>学历</td>
71
-                <td><?php //echo $xl[$field2['xlyq']];?></td>
72
-                <td><?php //echo $xl[$detail['xl']];?></td>
150
+                <td><?php echo $xl[$field2['xlyq']];?></td>
151
+                <td><?php echo $xl[$detail['xl']];?></td>
73 152
                 <td>
74 153
                     <?php
75 154
                     if($field2['xlyq'] == $detail['xl']){
76 155
                         //echo "<font style='color: blue;'>符合</font>";
156
+                        echo '<font class="td-r">√</font>';
77 157
                         $num++;
78 158
                     }else{
159
+                        echo '<font class="td-b">x</font>';
79 160
                         //echo "<font style='color: red;'>不符合</font>";
161
+                        $str_no_err[$field['id']][$field2['id']]['xlyq'] = '学历不符';
80 162
                     }
81 163
                     ?>
82 164
                 </td>
83 165
             </tr>
166
+
84 167
             <tr>
85
-                <th scope="row">2</th>
86 168
                 <td>年龄</td>
87 169
                 <td>
88 170
                     <?php
89 171
                     if((int)$field2['is_ega'] === 0){
90
-                        //echo "不限制";
172
+                        echo "不限制";
91 173
                     }else{
92
-                        //echo $field2['ega_0'].'-'.$field2['ega_1'].'岁';
174
+                        echo $field2['ega_0'].'-'.$field2['ega_1'].'岁';
93 175
                     }
94 176
                     ?>
95 177
                 </td>
@@ -98,21 +180,26 @@ $is_list_empty = $field['id'];
98 180
                 </td>
99 181
                 <td>
100 182
                     <?php
101
-                    if((int)$detail['nl'] <= (int)$field2['ega_1'] && (int)$detail['nl'] >= (int)$field2['ega_0']){
102
-                        //echo "<font style='color: blue;'>符合</font>";
183
+                    if((int)$field2['is_ega'] === 0){
184
+                        echo '<font class="td-r">√</font>';
103 185
                         $num++;
104 186
                     }else{
105
-                        //echo "<font style='color: red;'>不符合</font>";
187
+                        if((int)$detail['nl'] <= (int)$field2['ega_1'] && (int)$detail['nl'] >= (int)$field2['ega_0']){
188
+                            //echo "<font style='color: blue;'>符合</font>";
189
+                            echo '<font class="td-r">√</font>';
190
+                            $num++;
191
+                        }else{
192
+                            echo '<font class="td-b">x</font>';
193
+                            //echo "<font style='color: red;'>不符合</font>";
194
+                            $str_no_err[$field['id']][$field2['id']]['nl'] = '年龄不符';
195
+                        }
106 196
                     }
107 197
                     ?>
108 198
                 </td>
109
-
110 199
             </tr>
111 200
             <tr>
112
-                <th scope="row">3</th>
113
-                <td>毕业<br/>专业</td>
201
+                <td>毕业专业</td>
114 202
                 <td>
115
-
116 203
                     {eyou:if condition='((int)$field2.byzy === 0)'}
117 204
                     不限制
118 205
                     {eyou:else /}
@@ -132,7 +219,7 @@ $is_list_empty = $field['id'];
132 219
 
133 220
                     {eyou:if condition='($zhengshu2_str != "0")'}
134 221
                     {eyou:sql sql="$sql3" cachetime='3600' empty='' id="field3"}
135
-                    <?php /**{$field3.title}*/ ?><br/>
222
+                    {$field3.title}<br/>
136 223
                     {/eyou:sql}
137 224
                     {eyou:else /}
138 225
                     不限制
@@ -170,21 +257,28 @@ $is_list_empty = $field['id'];
170 257
                     <?php
171 258
                     if((int)$field2.byzy === 0 || empty($zhengshu2)){
172 259
                         //echo "<font style='color: blue;'>符合</font>";
260
+                        echo '<font class="td-r">√</font>';
173 261
                         $num++;
174 262
                     }else{
175 263
                         if(empty($zhengshu)){
264
+                            echo '<font class="td-b">x</font>';
176 265
                             //echo "<font style='color: red;'>不符合</font>";
266
+                            $str_no_err[$field['id']][$field2['id']]['byzy'] = '专业不符';
177 267
                         }else{
178
-                            $run = "<font style='color: red;'>不符合</font>";
268
+                            //$run = "<font style='color: red;'>不符合</font>";
269
+                            $run = '<font class="td-b">x</font>';
270
+                            $str_no_err[$field['id']][$field2['id']]['byzy'] = '专业不符';
179 271
                             $ik = 1;
180 272
                             foreach ($zhengshu as $k => $v){
181 273
                                 if(in_array($v,$zhengshu2)){
182 274
                                     //$run = '<font style="color: blue;">符合</font><br/>'.$ik.'项';
183
-                                    $run = '<font style="color: blue;">符合</font><br/>';
275
+                                    //$run = '<font style="color: blue;">符合</font><br/>';
276
+                                    $run = '<font class="td-r">√</font>';
277
+                                    $str_no_err[$field['id']][$field2['id']]['byzy'] = '';
184 278
                                     $ik++;
185 279
                                 }
186 280
                             }
187
-                            //echo $run;
281
+                            echo $run;
188 282
                             if($ik>1){
189 283
                                 $num++; //符合+1
190 284
                             }
@@ -196,15 +290,14 @@ $is_list_empty = $field['id'];
196 290
 
197 291
             </tr>
198 292
             <tr>
199
-                <th scope="row">4</th>
200
-                <td>学校<br/>类型</td>
293
+                <td>学校类型</td>
201 294
                 <td>
202 295
                     {eyou:if condition='((int)$field2.xxlx === 0)'}
203 296
                     不限制
204 297
                     {eyou:else /}
205 298
                     <?php
206
-                    //if((int)$field2['xxlx'] === 1) //echo "全日制";
207
-                    //if((int)$field2['xxlx'] === 2) //echo "非全日制";
299
+                    if((int)$field2['xxlx'] === 1) echo "全日制";
300
+                    if((int)$field2['xxlx'] === 2) echo "非全日制";
208 301
                     ?>
209 302
                     {/eyou:if}
210 303
                 </td>
@@ -219,28 +312,31 @@ $is_list_empty = $field['id'];
219 312
                     {eyou:if condition='((int)$field2.xxlx === 0)'}
220 313
                     <!--<font style='color: blue;'>符合</font>-->
221 314
                     <?php
315
+                    echo '<font class="td-r">√</font>';
222 316
                     $num++;
223 317
                     ?>
224 318
                     {eyou:else /}
225 319
                     <?php
226 320
                     if((int)$field2['xxlx'] === (int)$detail['xxlx']){
227 321
                         //echo "<font style='color: blue;'>符合</font>";
322
+                        echo '<font class="td-r">√</font>';
228 323
                         $num++;
229 324
                     }else{
230 325
                         //echo "<font style='color: red;'>不符合</font>";
326
+                        echo '<font class="td-b">x</font>';
327
+                        $str_no_err[$field['id']][$field2['id']]['xxlx'] = '学校类型不符';
231 328
                     }
232 329
                     ?>
233 330
                     {/eyou:if}
234 331
                 </td>
235 332
             </tr>
236 333
             <tr>
237
-                <th scope="row">5</th>
238
-                <td>毕业<br/>时间</td>
334
+                <td>毕业时间</td>
239 335
                 <td>
240 336
                     {eyou:if condition='((int)$field2.bysj === 0)'}
241
-                    <?php /*不要求**/  ?>
337
+                    不要求
242 338
                     {eyou:else /}
243
-                    <?php /*要求>={$field2.bysj_time}年**/  ?>
339
+                    要求>={$field2.bysj_time}年
244 340
                     {/eyou:if}
245 341
                 </td>
246 342
                 <td>
@@ -257,12 +353,11 @@ $is_list_empty = $field['id'];
257 353
                     // 输出年份
258 354
                     ////echo $interval->y . ' years';
259 355
                     if($interval->y > 0){
260
-                        //echo '已毕业'.$interval->y . '年';
356
+                        echo '已毕业'.$interval->y . '年';
261 357
                     }else{
262
-                        //echo '刚毕业不足1年';
358
+                        echo '刚毕业不足1年';
263 359
                     }
264 360
 
265
-
266 361
                     ?>
267 362
 
268 363
 
@@ -271,21 +366,24 @@ $is_list_empty = $field['id'];
271 366
                     <?php
272 367
                     if((int)$field2['bysj'] === 0){
273 368
                         //echo "<font style='color: blue;'>符合</font>";
369
+                        echo '<font class="td-r">√</font>';
274 370
                         $num++;
275 371
                     }else{
276 372
                         if((int)$field2['bysj_time'] <= $interval->y){
277 373
                             //echo "<font style='color: blue;'>符合</font>";
374
+                            echo '<font class="td-r">√</font>';
278 375
                             $num++;
279 376
                         }else{
280 377
                             //echo "<font style='color: red;'>不符合</font>";
378
+                            echo '<font class="td-b">x</font>';
379
+                            $str_no_err[$field['id']][$field2['id']]['bysj'] = '毕业时间不符';
281 380
                         }
282 381
                     }
283 382
                     ?>
284 383
                 </td>
285 384
             </tr>
286 385
             <tr>
287
-                <th scope="row">6</th>
288
-                <td>前置<br/>证书</td>
386
+                <td>前置证书</td>
289 387
                 <td>
290 388
                     <?php
291 389
                     $zhengshu3 = '';
@@ -298,7 +396,7 @@ $is_list_empty = $field['id'];
298 396
 
299 397
                     <?php
300 398
                     if($i > 1){
301
-                        //echo "或<br/>";
399
+                        echo "或<br/>";
302 400
                     }
303 401
                     ?>
304 402
 
@@ -325,10 +423,10 @@ $is_list_empty = $field['id'];
325 423
                     {eyou:if condition='($zhengshu3_str != "0")'}
326 424
                     {eyou:sql sql="$sql3" cachetime='3600' empty='' id="field4"}
327 425
                     <?php
328
-                        $key_s = array_search($field4['id'], $zhengshu3);
329
-                        $year_s = $sjnx[$key_s];
426
+                    $key_s = array_search($field4['id'], $zhengshu3);
427
+                    $year_s = $sjnx[$key_s];
330 428
                     ?>
331
-                    <?php  /**{$field4.title}(需要{$year_s}年)**/?><br/>
429
+                    {$field4.title}<br/>(需要{$year_s}年)<br/>
332 430
                     {/eyou:sql}
333 431
                     {eyou:else /}
334 432
                     <!--忽略-->
@@ -359,7 +457,7 @@ $is_list_empty = $field['id'];
359 457
                     $key_s = array_search($field3['id'], $zhengshu);
360 458
                     $year_s = $zsnx[$key_s];
361 459
                     ?>
362
-                    <?php /**{$field3.title}(拥有{$year_s}年)**/ ?><br/>
460
+                    {$field3.title}<br/>(拥有{$year_s}年)<br/>
363 461
                     {/eyou:sql}
364 462
                     {eyou:else /}
365 463
@@ -374,21 +472,24 @@ $is_list_empty = $field['id'];
374 472
                     //表示没查出限制要求
375 473
                     if(empty($zhengshu3)){
376 474
                         //echo "<font style='color: blue;'>符合</font>";
475
+                        echo '<font class="td-r">√</font>';
377 476
                         $num++;
378 477
                     }else{
379 478
                         if(empty($zhengshu)){
380 479
                             //用户没有证书
381 480
                             //echo "<font style='color: red;'>不符合</font>";
481
+                            echo '<font class="td-b">x</font>';
482
+                            $str_no_err[$field['id']][$field2['id']]['xxlx'] = '未拥有证书';
382 483
                         }else{
383 484
                             //判断是否包含
384 485
                             //第一轮 循环 或
486
+                            $ik = 1;
487
+                            $ik2 = 1;
488
+                            $ik3 = 1;
385 489
                             foreach ($zs_all as $k => $v){
386 490
                                 if($k > 0){
387
-                                    ////echo "或<br/>";
491
+                                    //echo "或<br/>";
388 492
                                 }
389
-                                $ik = 1;
390
-                                $ik2 = 1;
391
-                                $ik3 = 1;
392 493
                                 //第二轮 循环 且
393 494
                                 //var_dump($v['a']);
394 495
                                 $ik4 = 0; //真实有效数量
@@ -397,6 +498,9 @@ $is_list_empty = $field['id'];
397 498
                                     //var_dump($zhengshu);
398 499
                                     //第三轮 循环 每一项要求是否在 用户拥有的证书 里面
399 500
                                     //必须完全满足
501
+                                    $run_1 = '';
502
+                                    $run_2 = '';
503
+                                    $run_3 = '';
400 504
                                     if((int)$v2 > 0) {
401 505
                                         if (in_array($v2, $zhengshu)) {
402 506
                                             //判断年限是否符合要求
@@ -415,26 +519,30 @@ $is_list_empty = $field['id'];
415 519
                                         }
416 520
                                         $ik4++;
417 521
                                     }
522
+                                    //具体情况 循环且
523
+                                    //if(!empty($run_1)) echo $run_1.'<br/>';
524
+                                    //if(!empty($run_2)) echo $run_2.'<br/>';
525
+                                    //if(!empty($run_3)) echo $run_3.'<br/>';
418 526
                                 }
419
-                                //具体情况 循环且
420
-                                ////echo $run_1;
421
-                                ////echo $run_2;
422
-                                ////echo $run_3;
527
+
423 528
                                 ////echo count($v['a']);
424 529
                                 //var_dump($ik);
425 530
                                 //var_dump(count($v['a']));
426 531
                                 if(($ik-1) === $ik4){
427 532
                                     ////echo "<font style='color: blue;'>符合1</font>";
428
-                                    $res = "<font style='color: blue;'>符合</font>";
533
+                                    //$res = "<font style='color: blue;'>符合</font>";
534
+                                    $res = '<font class="td-r">√</font>';
429 535
                                     $num++;
430 536
                                     //跳出循环 已经符合其中 一个 且了
431 537
                                     break;
432 538
                                 }else{
433 539
                                     ////echo "<font style='color: red;'>不符合2</font>";
434
-                                    $res = "<font style='color: red;'>不符合</font>";
540
+                                    //$res = "<font style='color: red;'>不符合</font>";
541
+                                    $res = '<font class="td-b">x</font>';
542
+                                    $str_no_err[$field['id']][$field2['id']]['xxlx'] = '证书要求不符';
435 543
                                 }
436 544
                             }
437
-                            //echo $res;
545
+                            echo $res;
438 546
                         }
439 547
                     }
440 548
                     ?>
@@ -445,70 +553,85 @@ $is_list_empty = $field['id'];
445 553
 
446 554
             </tr>
447 555
             <tr>
448
-                <th scope="row">7</th>
449
-                <td>综合<br/>评估</td>
556
+                <td>综合评估</td>
450 557
                 <td colspan="3" style="vertical-align:middle;">
451 558
 
452
-
453 559
                     <?php
454
-                        ////echo $num;
455
-                        if($num >= 6){
456
-                            //多次循环可能大于6
457
-                            echo "<font style='color: blue;'>完全符合要求!</font>";
458
-
459
-                            if(!empty($bname)){
460
-                                $bname_str = '/'.$bname;
461
-                            }
462
-
463
-                            $result_map .= $aname.$bname_str.'地区<br/>';
464
-
465
-
466
-                        }else if($num === 0){
467
-                            echo "<font style='color: red;'>完全不符合要求!</font>";
468
-                        }else{
469
-                            echo "<font style='color: #ff4c08;'>未完全符合要求!</font>";
560
+                    ////echo $num;
561
+                    if($num >= 6){
562
+                        //多次循环可能大于6
563
+                        echo "<font style='color: blue;'>完全符合要求!</font>";
564
+                        if(!empty($bname)){
565
+                            $bname_str = '/'.$bname;
470 566
                         }
471
-                        $num = 0;
567
+                        $result_map .= $aname.$bname_str.'地区<br/>';
568
+                        $str_no_err[$field['id']][$field2['id']]['zhpg'] = 2;
569
+                        $str_no_err[$field['id']][$field2['id']]['diqu'] = $aname.'/'.$bname_str;
570
+                    }else if($num === 0){
571
+                        echo "<font style='color: red;'>完全不符合要求!</font>";
572
+                        $str_no_err[$field['id']][$field2['id']]['zhpg'] = 0;
573
+                    }else{
574
+                        echo "<font style='color: #ff4c08;'>未完全符合要求!</font>";
575
+                        $str_no_err[$field['id']][$field2['id']]['zhpg'] = 1;
576
+                    }
577
+                    $num = 0;
472 578
                     ?>
473 579
 
474 580
                 </td>
475 581
             </tr>
476 582
             </tbody>
477 583
         </table>
478
-        {/eyou:sql}
584
+        </div>
585
+
586
+            <?php
587
+             $io_d_num++;
588
+            ?>
589
+        {/eyou:volist}
590
+        </div>
591
+<!--    </div>
592
+</div>-->
479 593
     </div>
480 594
 </div>
481
-{/eyou:sql}
482 595
 
483 596
 <?php
484
-//var_dump($is_list_empty);
597
+    $tyu_num++;
485 598
 ?>
486
-{eyou:if condition='(empty($is_list_empty))'}
487
-<div class="alert alert-danger" role="alert" style="">
488
-    <!--<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
489
-    <span class="sr-only">Error:</span>-->
490
-    {$scen}
491
-</div>
492
-{eyou:else /}
599
+{/eyou:volist}
600
+{/eyou:if}
493 601
 
602
+<!--以下输出结果-->
494 603
 <?php
495
-if(empty($result_map)){
496
-    $info = '';
497
-    $result_map = "抱歉!未找到符合地区!";
498
-    $class = 'alert-danger';
499
-}else{
500
-    //$result_map;
501
-    $info = "找到以下符合申请的地区:<br/><br/>";
502
-    $class = 'alert-success';
503
-}
604
+    //var_dump($is_list_empty);
504 605
 ?>
505
-
506
-
507
-<div class="alert {$class}" role="alert" style="">
606
+{eyou:if condition='(empty($is_list_empty))'}
508 607
     <?php
509
-        echo $info;
510
-        echo $result_map;
608
+        $is_tg = 0;
511 609
     ?>
512
-</div>
610
+    <div class="alert alert-danger" role="alert" style="margin-top:10px;margin-bottom:8px;">
611
+        <!--<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
612
+        <span class="sr-only">Error:</span>-->
613
+        <font class='result-div'>{$scen}</font>
614
+    </div>
615
+{eyou:else /}
513 616
 
617
+    <!--输出结论 后台有规则 但是可能匹配不成功或者成功-->
618
+    <?php
619
+    if(empty($result_map)){
620
+        $info = '';
621
+        $result_map = "<font class='result-div'>抱歉!未找到完全符合条件的地区!</font>";
622
+        $class = 'alert-danger';
623
+        $is_tg = 0;
624
+    }else{
625
+        //$result_map;
626
+        $info = "<font class='result-div'>找到以下条件完全符合申请的地区:</font>";
627
+        $class = 'alert-success';
628
+        $is_tg = 1;
629
+    }
630
+    ?>
631
+    <div class="alert {$class}" role="alert" style="margin-top:10px;display: block;margin-bottom:8px;">
632
+        <?php
633
+            echo $info;
634
+            echo "<font class='result-div'>".$result_map."</font>";
635
+        ?>
636
+    </div>
514 637
 {/eyou:if}

+ 386
- 74
template/pc/components/index/step.htm Vedi File

@@ -202,8 +202,11 @@
202 202
     <div class="inner-bg">
203 203
         <div class="container">
204 204
             <div class="row">
205
-                <div class="col-sm-8 col-sm-offset-2 text" style="text-align: center;">
206
-                    <h1><strong>Bootstrap</strong> Multi Step Registration Form</h1>
205
+                <!--col-sm-8 col-sm-offset-2-->
206
+                <div class="col-sm-12 text" style="width:100%;text-align: center;">
207
+                    <span class="title-h1">
208
+                        本系统已收录全国各地职称评审条件,并实时更新各地人才政策对应的绿色评审方案,您可输入您的基础信息,根据您的条件一键为您匹配通过率最高的地区!
209
+                    </span>
207 210
                     <div class="description">
208 211
                         <p>
209 212
 
@@ -212,12 +215,209 @@
212 215
                 </div>
213 216
             </div>
214 217
             <div class="row">
215
-                <div class="col-sm-6 col-sm-offset-3 form-box">
216 218
 
217
-                    <form role="form" action="" method="post" class="registration-form">
218 219
 
220
+                <!--col-sm-6 col-sm-offset-3 form-box-->
221
+                <div class="form-box">
222
+                    <div class="form-gb">
223
+                        <div class="form-gb-con">
224
+                            <img src="/template/pc/js/botstrap-step/laba.png"/>
225
+                            <img src="/template/pc/js/botstrap-step/laba.png" />
226
+                            <span>最新公告:<font class="tib-li-end">河北建筑职称副高级破格已发布</font>(<font id="getCode">点击获取二维码</font>)</span>
227
+                        </div>
228
+                    </div>
229
+                    <div class="form-box-ssl">
230
+
231
+                        <!--案例显示-->
232
+                        <div class="ssl-list">
233
+
234
+                            <div class="ssl-list-t">
235
+                                目前已有<font>265180</font>人参与测评
236
+                            </div>
237
+                            <div class="ssl-list-b">
238
+                                <div class="ti">
239
+                                    <span class="sp1">姓名</span>
240
+                                    <span class="sp2">手机号码</span>
241
+                                    <span class="sp3">申报等级</span>
242
+                                    <span class="sp4">匹配结果</span>
243
+                                </div>
244
+                                <div class="tib autoBox" id="autoScroll01">
245
+                                    <ul class="clearfix">
246
+                                        <!--加入 tib-li-end 有动画效果-->
247
+                                        <li class="tib-li">
248
+                                            <span class="sp1">李*新</span>
249
+                                            <span class="sp2">150****5632</span>
250
+                                            <span class="sp3">符合条件</span>
251
+                                            <span class="sp4">中级建筑工程师[协助申报]</span>
252
+                                        </li>
253
+                                        <li class="tib-li tib-li-err">
254
+                                            <span class="sp1">李*新</span>
255
+                                            <span class="sp2">150****5632</span>
256
+                                            <span class="sp3">条件不符</span>
257
+                                            <span class="sp4">学历不符[解决方案]</span>
258
+                                        </li>
259
+                                        <li class="tib-li">
260
+                                            <span class="sp1">李*新</span>
261
+                                            <span class="sp2">150****5632</span>
262
+                                            <span class="sp3">符合条件</span>
263
+                                            <span class="sp4">中级建筑工程师[协助申报]</span>
264
+                                        </li>
265
+                                        <li class="tib-li">
266
+                                            <span class="sp1">李*新</span>
267
+                                            <span class="sp2">150****5632</span>
268
+                                            <span class="sp3">符合条件</span>
269
+                                            <span class="sp4">中级建筑工程师[协助申报]</span>
270
+                                        </li>
271
+                                        <li class="tib-li tib-li-err">
272
+                                            <span class="sp1">李*新</span>
273
+                                            <span class="sp2">150****5632</span>
274
+                                            <span class="sp3">条件不符</span>
275
+                                            <span class="sp4">学历不符[解决方案]</span>
276
+                                        </li>
277
+                                        <li class="tib-li">
278
+                                            <span class="sp1">李*新</span>
279
+                                            <span class="sp2">150****5632</span>
280
+                                            <span class="sp3">符合条件</span>
281
+                                            <span class="sp4">中级建筑工程师[协助申报]</span>
282
+                                        </li>
283
+                                        <li class="tib-li">
284
+                                            <span class="sp1">李*新</span>
285
+                                            <span class="sp2">150****5632</span>
286
+                                            <span class="sp3">符合条件</span>
287
+                                            <span class="sp4">中级建筑工程师[协助申报]</span>
288
+                                        </li>
289
+                                        <li class="tib-li tib-li-err">
290
+                                            <span class="sp1">李*新</span>
291
+                                            <span class="sp2">150****5632</span>
292
+                                            <span class="sp3">条件不符</span>
293
+                                            <span class="sp4">学历不符[解决方案]</span>
294
+                                        </li>
295
+                                        <li class="tib-li">
296
+                                            <span class="sp1">李*新</span>
297
+                                            <span class="sp2">150****5632</span>
298
+                                            <span class="sp3">符合条件</span>
299
+                                            <span class="sp4">中级建筑工程师[协助申报]</span>
300
+                                        </li>
301
+                                        <li class="tib-li">
302
+                                            <span class="sp1">李*新</span>
303
+                                            <span class="sp2">150****5632</span>
304
+                                            <span class="sp3">符合条件</span>
305
+                                            <span class="sp4">中级建筑工程师[协助申报]</span>
306
+                                        </li>
307
+                                        <li class="tib-li">
308
+                                            <span class="sp1">李*新</span>
309
+                                            <span class="sp2">150****5632</span>
310
+                                            <span class="sp3">符合条件</span>
311
+                                            <span class="sp4">中级建筑工程师[协助申报]</span>
312
+                                        </li>
313
+                                        <li class="tib-li">
314
+                                            <span class="sp1">李*新</span>
315
+                                            <span class="sp2">150****5632</span>
316
+                                            <span class="sp3">符合条件</span>
317
+                                            <span class="sp4">中级建筑工程师[协助申报]</span>
318
+                                        </li>
319
+                                        <li class="tib-li">
320
+                                            <span class="sp1">李*新</span>
321
+                                            <span class="sp2">150****5632</span>
322
+                                            <span class="sp3">符合条件</span>
323
+                                            <span class="sp4">中级建筑工程师[协助申报]</span>
324
+                                        </li>
325
+                                        <li class="tib-li">
326
+                                            <span class="sp1">李*新</span>
327
+                                            <span class="sp2">150****5632</span>
328
+                                            <span class="sp3">符合条件</span>
329
+                                            <span class="sp4">中级建筑工程师[协助申报]</span>
330
+                                        </li>
331
+                                    </ul>
332
+                                </div>
333
+                            </div>
334
+                        </div>
335
+
336
+                    <!--成功示例--->
337
+                    <div class="ssl-box">
338
+                        <div class="ssl-box-t">
339
+
340
+                            <p>匹配成功结果展示:</p>
341
+                            <p>
342
+                                姓名:... <br/>
343
+                                手机:183****8270 <br/>
344
+                                地区:辽宁/葫芦岛 <br/>
345
+                            </p>
346
+                            <p>
347
+                                申报专业:建筑职称 <br/>
348
+                                申报等级:高级工程师
349
+                            </p>
350
+
351
+
352
+                        </div>
353
+                        <div class="ssl-box-b">
354
+                            <div class="p-con">
355
+                                匹配结果展示: <br/>
356
+                                河南省建筑副高级申报条件
357
+                            </div>
358
+
359
+                            <div class="p-con2">
360
+                                <table>
361
+                                    <!--<caption>Awesome caption</caption>-->
362
+                                    <colgroup>
363
+                                        <col class="t-wid1 batman">
364
+                                        <col class="t-wid2 flash">
365
+                                        <col class="t-wid3 flash">
366
+                                        <col class="t-wid4 flash">
367
+                                    </colgroup>
368
+                                    <thead>
369
+                                    <tr>
370
+                                        <th>字段信息</th>
371
+                                        <th>实际要求</th>
372
+                                        <th>填写资料</th>
373
+                                        <th>匹配结果</th>
374
+                                    </tr>
375
+                                    </thead>
376
+                                    <tbody>
377
+                                    <tr>
378
+                                        <td>学历</td>
379
+                                        <td>本科</td>
380
+                                        <td>本科</td>
381
+                                        <td class="td-r">√</td>
382
+                                    </tr>
383
+                                    <tr>
384
+                                        <td>年龄</td>
385
+                                        <td>不限制</td>
386
+                                        <td>30岁</td>
387
+                                        <td class="td-b">x</td>
388
+                                    </tr>
389
+                                    <tr>
390
+                                        <td>毕业专业</td>
391
+                                        <td>不限制</td>
392
+                                        <td>无</td>
393
+                                        <td class="td-r">√</td>
394
+                                    </tr>
395
+                                    </tbody>
396
+                                   <!-- <tfoot>
397
+                                    <tr>
398
+                                        <td>Footer content 1</td>
399
+                                        <td>Footer content 2</td>
400
+                                        <td>Footer content 3</td>
401
+                                        <td>Footer content 4</td>
402
+                                    </tr>
403
+                                    </tfoot>-->
404
+                                </table>
405
+                            </div>
219 406
 
220 407
 
408
+
409
+                        </div>
410
+                    </div>
411
+
412
+                    {eyou:if condition='($is_cha === 1)'}
413
+                    <style>
414
+                        .ssl-box{
415
+                            display: none;
416
+                        }
417
+                    </style>
418
+                    {/eyou:if}
419
+
420
+                    <form role="form" action="" method="post" class="registration-form">
221 421
                         {eyou:if condition='($is_cha === 1)'}
222 422
 
223 423
                         <?php
@@ -229,10 +429,13 @@
229 429
                         ?>
230 430
                         <fieldset>
231 431
 
232
-                            <div class="form-top">
432
+                            <div class="form-top form-t-e">
433
+                                <div class="form-title">
434
+                                    <span>职称申报&nbsp;一键测评</span>
435
+                                </div>
233 436
                                 <div class="form-top-left">
234
-                                    <h3>Step 5 / 5</h3>
235
-
437
+                                    <h3>第五步</h3>
438
+                                    <!--<p>请填写您用于接收匹配结果的手机号码:</p>-->
236 439
 
237 440
                                     <?php
238 441
                                     function hide_phone_number_regex($phone_number) {
@@ -244,38 +447,41 @@
244 447
 
245 448
                                     ?>
246 449
                                     {eyou:if condition='($is_detail === 0)'}
247
-                                        <p>查询结果展示:<br/><br/>
450
+                                        <p>
451
+                                            <span style="display:block;margin-bottom: 12px;">查询结果展示:</span>
248 452
                                             <!--编号: 202410247774<br/>-->
249 453
                                             <!-- 姓名: 郑工<br/>-->
250 454
                                             手机: <?php echo hide_phone_number_regex($param['p']); ?><br/>
251 455
                                         </p>
252 456
                                     {eyou:else /}
253
-                                        <p>匹配结果展示:<br/><br/>
457
+                                        <div class="ftl-l">
458
+                                            <!--<span style="display:block;margin-bottom: 12px;">匹配结果展示:</span>-->
254 459
                                             <!--编号: 202410247774<br/>-->
255 460
                                             姓名: {$detail.ch}<br/>
256 461
                                             手机: <?php echo hide_phone_number_regex($detail['sjhm']); ?><br/>
257
-                                            地区: {$extend_info.szsf}/{$extend_info.szcs}
258
-                                        </p>
462
+                                            地区: {$extend_info.szsf}/{$extend_info.szcs}<br/>
463
+                                        </div>
464
+                                        <span style="display: block;width: 100%;height:5px;"></span>
465
+                                        <div class="ftl-r">
466
+                                            申报专业: {$extend_info.sbzy}<br/>
467
+                                            申报等级: {$extend_info.sbdj}<br/>
468
+                                        </div>
469
+                                        <div class="clear"></div>
259 470
                                     {/eyou:if}
260 471
                                 </div>
261 472
                                 <div class="form-top-right">
262
-                                    <i class="fa fa-twitter"></i>
473
+                                    <img src="/template/pc/js/botstrap-step/img_5.png" />
263 474
                                 </div>
264 475
                             </div>
265 476
 
266
-
267
-
268
-
269
-
270
-
271
-                            <div class="form-bottom" style="padding:0 !important;background: none;">
477
+                            <div class="form-bottom form-b-e" style="">
272 478
 
273 479
                                 {eyou:if condition='($is_detail === 0)'}
274
-                                <div class="panel" style="margin-top:15px;">
275
-                                    <div class="panel-body">
480
+                                <div class="panel" style="margin-top:0px;margin-bottom:8px;">
481
+                                    <div class="panel-body" style='font-family: "黑体", sans-serif !important;font-size:17px;font-weight:"bold";'>
276 482
                                         查询最新10条结果:
277 483
                                     </div>
278
-                                    <div class="panel-footer">
484
+                                    <div class="panel-footer" style="background: #fff;padding:10px 0 0 0;">
279 485
                                         <ul class="list-group">
280 486
                                             <?php
281 487
                                             $sql = "select id,code,addtime,ch from ey_zc_form where sjhm='".$param['p']."' and status=1 and is_del=0 order by addtime desc limit 0,10";
@@ -292,8 +498,11 @@
292 498
                                 {eyou:else /}
293 499
 
294 500
 
295
-                                <div class="well" style="margin-top:20px;">
501
+                                <div class="ta-info-detail">
502
+                                    <p>匹配结果展示:</p>
503
+                                </div>
296 504
 
505
+                                <div class="well" style="margin-top:20px;display: none;">
297 506
                                     <?php
298 507
                                     /*
299 508
                                      *
@@ -302,7 +511,6 @@
302 511
                                     ?>
303 512
                                     申报专业: {$extend_info.sbzy}<br/>
304 513
                                     申报等级: {$extend_info.sbdj}<br/>
305
-
306 514
                                 </div>
307 515
 
308 516
                                 {eyou:if condition='($detail.yxdq > 0 && $detail.yxdq < 10001)'}
@@ -329,17 +537,30 @@
329 537
                                         $t = '';
330 538
                                         $scen = '抱歉!暂时未找到相关匹配结果信息!';
331 539
                                     ?>
540
+
332 541
                                     {eyou:include file='/template/pc/components/index/kop.htm' /}
333 542
                                 {/eyou:if}
334 543
 
335
-
336
-
337
-
338 544
                                 {/eyou:if}
339 545
 
340 546
                                 <!--<button type="button" class="btn btn-previous">上一步</button>
341 547
                                 <button type="button" class="btn btn-next">下一步</button>-->
342
-                                <button type="button" class="btn" onclick="location.href='https://www.zc10000.com/cp'">重新匹配</button>
548
+                                <button type="button" class="btn" onclick="location.href='https://www.zc10000.com/cp'">
549
+                                    重新匹配
550
+                                </button>
551
+
552
+                                {eyou:if condition='($is_detail > 0)'}
553
+                                {eyou:if condition='($is_tg === 1)'}
554
+                                    <button type="button" class="btn" id="zxfy">
555
+                                        咨询费用
556
+                                    </button>
557
+                                {eyou:else /}
558
+                                    <button type="button" class="btn" id="jjfa">
559
+                                        解决方案
560
+                                    </button>
561
+                                {/eyou:if}
562
+                                {/eyou:if}
563
+
343 564
                                 <!--<button type="button" class="btn">下载文档</button>
344 565
                                 <button type="button" class="btn">分享结果</button>-->
345 566
 
@@ -355,16 +576,67 @@
355 576
                         </fieldset>
356 577
 
357 578
 
358
-
579
+                        <?php
580
+                            /*
581
+                             * //构建保存参数
582
+                            //不做冗余 规则变 提交信息不变 结果就会变
583
+                            //规则和结果都不做冗余
584
+                             */
585
+                            /*$data = [
586
+                                'sjhm'=> $detail['sjhm'],
587
+                                'code'=> $detail['code'],
588
+                                'form_id'=> $detail['id'],
589
+                                'sbzy'=> $detail['sbzy'],
590
+                                'sbdj'=> $detail['sbdj'],
591
+                                'sbzy_str'=> $detail['sbzy'],
592
+                                'sbdj_str'=> $detail['sbdj'],
593
+                                'ch' => $detail['ch'],
594
+                            ];*/
595
+                            /*
596
+                             * 地区: {$extend_info.szsf}/{$extend_info.szcs}<br/>
597
+                                <span style="display: block;width: 100%;height:5px;"></span>
598
+                                申报专业: {$extend_info.sbzy}<br/>
599
+                                申报等级: {$extend_info.sbdj}<br/>
600
+                             */
601
+                            /*不建立新表了
602
+                            //评测次数 是否符合 解决方案({$extend_info.sbzy}{$extend_info.sbdj}[协助申报])
603
+                            //[解决方案]*/
604
+
605
+                            if($is_tg === 1){
606
+                                $param_k = [
607
+                                        'form_id'=> $detail['id'],
608
+                                        'pccs' => 0,
609
+                                        /*'sjhm' => $detail['sjhm'],*/
610
+                                        'is_tg' => $is_tg,
611
+                                        'jjfa' => $extend_info['sbzy'].$extend_info['sbdj'].'[协助申报]',
612
+                                        'xy_info' => json_encode($str_no_err,JSON_UNESCAPED_UNICODE),
613
+                                    ];
614
+                            }else{
615
+                                $yy = [];
616
+                                foreach ($str_no_err as $k => $v) {
617
+                                    foreach ($v as $k1 => $v1) {
618
+                                        foreach ($v1 as $k2 => $v2) {
619
+                                            if(!empty($v2)){
620
+                                                $yy[] = $v2.'[解决方案]';
621
+                                            }
622
+                                        }
623
+                                    }
624
+                                }
625
+                                $param_k = [
626
+                                    'form_id'=> $detail['id'],
627
+                                    'pccs' => 0,
628
+                                    /*'sjhm' => $detail['sjhm'],*/
629
+                                    'is_tg' => $is_tg,
630
+                                    'jjfa' => $yy[0], /*//不符合 总有原因**/
631
+                                    'xy_info' => json_encode($str_no_err,JSON_UNESCAPED_UNICODE),
632
+                                ];
633
+                            }
634
+                            /*var_dump($param_k);*/
635
+                            $param_k_json = json_encode($param_k,JSON_UNESCAPED_UNICODE);
636
+                        ?>
359 637
 
360 638
                         {eyou:else /}
361 639
 
362
-
363
-
364
-
365
-
366
-
367
-
368 640
                         <?php
369 641
                         /*
370 642
                          * 选择地区
@@ -373,13 +645,19 @@
373 645
                          */
374 646
                         ?>
375 647
                         <fieldset>
648
+
649
+
376 650
                             <div class="form-top">
651
+                                <div class="form-title">
652
+                                    <span>职称申报&nbsp;一键测评</span>
653
+                                </div>
377 654
                                 <div class="form-top-left">
378
-                                    <h3>Step 1 / 5</h3>
655
+                                    <h3>第一步</h3>
379 656
                                     <p>选择申报专业与等级:</p>
380 657
                                 </div>
381 658
                                 <div class="form-top-right">
382
-                                    <i class="fa fa-user"></i>
659
+                                   <!-- <i class="fa fa-user"></i>-->
660
+                                    <img src="/template/pc/js/botstrap-step/img_1.png" />
383 661
                                 </div>
384 662
                             </div>
385 663
                             <div class="form-bottom">
@@ -436,9 +714,19 @@
436 714
                                     </select>
437 715
                                 </div>
438 716
                                 <button type="button" class="btn btn-next">下一步</button>
717
+
718
+
719
+                                <button type="button" class="btn but-success but-success2">成功匹配示例</button>
720
+
721
+                                <div class="context-menu-arrow"></div>
722
+
439 723
                             </div>
440 724
                         </fieldset>
441 725
 
726
+
727
+
728
+
729
+
442 730
                         <?php
443 731
                         /*
444 732
                          * 输入年龄
@@ -449,15 +737,21 @@
449 737
                          */
450 738
                         ?>
451 739
                         <fieldset>
740
+
452 741
                             <div class="form-top">
742
+                                <div class="form-title">
743
+                                    <span>职称申报&nbsp;一键测评</span>
744
+                                </div>
453 745
                                 <div class="form-top-left">
454
-                                    <h3>Step 2 / 5</h3>
746
+                                    <h3>第二步</h3>
455 747
                                     <p>个人基本信息:</p>
456 748
                                 </div>
457 749
                                 <div class="form-top-right">
458
-                                    <i class="fa fa-key"></i>
750
+                                    <!--<i class="fa fa-key"></i>-->
751
+                                    <img src="/template/pc/js/botstrap-step/img_2.png" />
459 752
                                 </div>
460 753
                             </div>
754
+
461 755
                             <div class="form-bottom">
462 756
                                 <div class="form-group">
463 757
                                     <!--<label class="sr-only" for="form-email">Email</label>
@@ -500,18 +794,45 @@
500 794
                                     </select>
501 795
                                 </div>
502 796
 
797
+                                <!--<div class="form-group">
798
+                                       <label class="sr-only" for="form-password">Password</label>
799
+                                       <input type="password" name="form-password" placeholder="Password..." class="form-password form-control" id="form-password">
800
+                                   </div>-->
801
+                                <div class="form-group daterange" style="display:none;">
802
+                                    <label style="margin-left: 5px;">选择毕业时间</label>
803
+                                    <!--range_date-->
804
+                                    <div class="">
805
+                                        <input class="form-control" name="bysj" type="text" value="">
806
+                                        <i class="fa fa-calendar"></i>
807
+                                    </div>
808
+                                </div>
503 809
 
504
-
505
-
810
+                                <?php
811
+                                $end_year = date('Y', time()) + 1;
812
+                                /*{eyou:if condition='($i==$end_year)'}selected{/eyou:if}**/
813
+                                ?>
814
+                                <select class="form-control" id="choose33" name="bysj2" style="margin-bottom: 15px;">
815
+                                    <option value="0">选择毕业时间</option>
816
+                                    {eyou:for start='1990' end="$end_year"}
817
+                                    <option value="{$i}-07-01">{$i}年</option>
818
+                                    {/eyou:for}
819
+                                </select>
506 820
 
507 821
                                 <div id="zy_box" class="form-group" style="padding-left: 5px;position: relative;">
508
-                                    <label class="col-sm-12 control-label" style="padding-left: 0;">是否以下相关毕业专业</label>
822
+                                    <label class="col-sm-12 control-label" style="padding-left: 0;">是否以下相关毕业专业:</label>
509 823
                                     <div class="col-sm-12" style="padding-left: 0;margin-bottom: 0px;" id="zys">
510 824
                                         <!--先初始化证书-->
511 825
                                         <!--<p class="form-control-static" style="min-height:20px;padding-top:5px;padding-bottom:0px;">
512 826
                                             <font>建筑一级证书</font>  <font style="margin-left:15px;">3年</font>
513 827
                                         </p>-->
514 828
                                     </div>
829
+                                    <div class="col-sm-12" style="padding-left: 0;margin-bottom: 0px;" id="zys-list">
830
+                                        <!--
831
+                                        <span class="hjk">计算机技术</span>
832
+                                        <span class="hjk">计算机网络技术</span>
833
+                                        <span class="hjk">计算机网络技术</span>
834
+                                        <span class="hjk hjk-check">计算机网络技术</span>-->
835
+                                    </div>
515 836
                                     <div class="clear"></div>
516 837
                                 </div>
517 838
 
@@ -526,29 +847,7 @@
526 847
                                     </label>
527 848
                                 </div>-->
528 849
 
529
-                                <!--<div class="form-group">
530
-                                    <label class="sr-only" for="form-password">Password</label>
531
-                                    <input type="password" name="form-password" placeholder="Password..." class="form-password form-control" id="form-password">
532
-                                </div>-->
533
-                                <div class="form-group daterange" style="display:none;">
534
-                                    <label style="margin-left: 5px;">选择毕业时间</label>
535
-                                    <!--range_date-->
536
-                                    <div class="">
537
-                                        <input class="form-control" name="bysj" type="text" value="">
538
-                                        <i class="fa fa-calendar"></i>
539
-                                    </div>
540
-                                </div>
541 850
 
542
-                                <?php
543
-                                    $end_year = date('Y', time()) + 1;
544
-                                    /*{eyou:if condition='($i==$end_year)'}selected{/eyou:if}**/
545
-                                ?>
546
-                                <select class="form-control" id="choose33" name="bysj2" style="margin-bottom: 15px;">
547
-                                    <option value="0">选择毕业时间</option>
548
-                                    {eyou:for start='1990' end="$end_year"}
549
-                                    <option value="{$i}-07-01">{$i}年</option>
550
-                                    {/eyou:for}
551
-                                </select>
552 851
 
553 852
                                 <!--<label class="sr-only" for="form-repeat-password">Repeat password</label>
554 853
                                     <input type="password" name="form-repeat-password" placeholder="Repeat password..."
@@ -572,15 +871,22 @@
572 871
                         ?>
573 872
 
574 873
                         <fieldset>
874
+
875
+
575 876
                             <div class="form-top">
877
+                                <div class="form-title">
878
+                                    <span>职称申报&nbsp;一键测评</span>
879
+                                </div>
576 880
                                 <div class="form-top-left">
577
-                                    <h3>Step 3 / 5</h3>
881
+                                    <h3>第三步</h3>
578 882
                                     <p>前置条件咨询:</p>
579 883
                                 </div>
580 884
                                 <div class="form-top-right">
581
-                                    <i class="fa fa-twitter"></i>
885
+                                    <!--<i class="fa fa-twitter"></i>-->
886
+                                    <img src="/template/pc/js/botstrap-step/img_3.png" />
582 887
                                 </div>
583 888
                             </div>
889
+
584 890
                             <div class="form-bottom">
585 891
                                 <!--<div class="form-group">
586 892
                                     <label class="sr-only" for="form-facebook">Facebook</label>
@@ -617,6 +923,7 @@
617 923
                                             <font>建筑一级证书</font>  <font style="margin-left:15px;">3年</font>
618 924
                                         </p>-->
619 925
                                     </div>
926
+                                    <div class="clear"></div>
620 927
                                     <input type="hidden" id="zhengshu_val" name="zhengshu_val" value="" />
621 928
                                 </div>
622 929
 
@@ -646,12 +953,16 @@
646 953
                         ?>
647 954
                         <fieldset>
648 955
                             <div class="form-top">
956
+                                <div class="form-title">
957
+                                    <span>职称申报&nbsp;一键测评</span>
958
+                                </div>
649 959
                                 <div class="form-top-left">
650
-                                    <h3>Step 4 / 5</h3>
651
-                                    <p>安全验证:</p>
960
+                                    <h3>第四步</h3>
961
+                                    <p>请填写您用于接收匹配结果的手机号码:</p>
652 962
                                 </div>
653 963
                                 <div class="form-top-right">
654
-                                    <i class="fa fa-twitter"></i>
964
+                                    <!--<i class="fa fa-twitter"></i>-->
965
+                                    <img src="/template/pc/js/botstrap-step/img_4.png" />
655 966
                                 </div>
656 967
                             </div>
657 968
                             <div class="form-bottom">
@@ -663,7 +974,7 @@
663 974
                                 </div>
664 975
                                 <div class="form-group" style="position:relative;">
665 976
                                     <input type="text" name="yzm" value="" placeholder="请输入验证码" class="form-first-name form-control" id="per-code" style="width:60%;">
666
-                                    <button type="button" class="btn btn-default get-code get-code-hover email-retrieve-code" id="retrieve-code" style="width: 38%;position:absolute;right: 0;top: 0;background-color:#19b9e7 !important;padding: 0 7px;">获取验证码</button>
977
+                                    <button type="button" class="btn btn-default get-code get-code-hover email-retrieve-code" id="retrieve-code" style="width: 38%;position:absolute;right: 0;top: 0;background-color:#3366ff !important;padding: 0 7px;height:43px;">获取验证码</button>
667 978
                                 </div>
668 979
                                 <input type="hidden" name="__mobile_1_token__" value=""  id="token" />
669 980
                                 <button type="button" class="btn btn-previous">上一步</button>
@@ -675,6 +986,7 @@
675 986
                         {/eyou:if}
676 987
                     </form>
677 988
 
989
+                    </div>
678 990
                 </div>
679 991
             </div>
680 992
         </div>
@@ -685,16 +997,16 @@
685 997
 {eyou:if condition='($is_mobile === false)'}
686 998
 
687 999
 <div class="col-sm-6 col-sm-offset-3 form-box" id="sele-box" style="padding-top:0;padding-bottom: 50px;text-align: left;margin-top:-60px;">
688
-    <form class="form-inline" style="width:700px;">
1000
+    <form class="form-inline form-inline-pc">
689 1001
         <div class="form-group" style="float: left;width: 100%;height: 20px;margin-bottom:5px;text-align: left;">
690
-            <label for="exampleInputFile" style="color: #fff;">如果您提交过资料信息:</label>
1002
+            <label class="form-info-t" for="exampleInputFile" style="color: #fff;">如果您提交过资料信息:</label>
691 1003
         </div>
692 1004
         <div class="form-group" style="text-align: left;width: 100%;float: left;width: 100%;margin-bottom:5px;text-align: center;">
693 1005
             <label class="sr-only" for="form-first-name">请输入手机号码</label>
694
-            <input type="text" name="p" placeholder="请输入手机号码" class="form-first-name form-control" id="ffnp" value="<?php echo $param['p']?$param['p']:$detail['sjhm']; ?>" style="width: 250px;float: left;">
1006
+            <input type="text" name="p" placeholder="请输入手机号码" class="form-first-name form-control" id="ffnp" value="<?php echo $param['p']?$param['p']:$detail['sjhm']; ?>" style="width: 170px;">
695 1007
             <input type="hidden" name="t" value="" id="times"/>
696 1008
             <input type="text" name="cxyzm" value="" placeholder="请输入验证码" class="form-first-name form-control" id="cx-code" style="width: 150px;float: left;margin-left:5px;">
697
-            <button type="button" class="btn btn-default get-code get-code-hover email-retrieve-code" id="cx-rel-code" style="background-color:#19b9e7 !important;padding: 0 7px;width: 100px;float: left;">获取验证码</button>
1009
+            <button type="button" class="btn btn-default get-code get-code-hover email-retrieve-code" id="cx-rel-code" style="background-color:#3366ff !important;padding: 0 7px;width: 116px;float: left;">获取验证码</button>
698 1010
             <button type="submit" id="cx-submit" class="btn btn-default btn-sm" onclick="return false;" style="float: left;margin-left: 5px;">立即查询</button>
699 1011
         </div>
700 1012
         <div class="form-group"  style="position:relative;float: left;width: 100%;height: 50px;margin-bottom:5px;text-align: center;">
@@ -715,7 +1027,7 @@
715 1027
         <div class="form-group" style="text-align: left;width: 100%;float: left;width: 100%;margin-bottom:5px;">
716 1028
             <label for="exampleInputFile" style="color: #fff;">如果您提交过资料信息:</label>
717 1029
             <label class="sr-only" for="form-first-name">请输入手机号码</label>
718
-            <input type="text" name="p" placeholder="请输入手机号码" class="form-first-name form-control" id="ffnp" value="<?php echo $param['p']?$param['p']:$detail['sjhm']; ?>">
1030
+            <input type="text" name="p" placeholder="请输入手机号码" class="form-first-name form-control" id="ffnp" value="<?php echo $param['p']?$param['p']:$detail['sjhm']; ?>" >
719 1031
             <input type="hidden" name="t" value="" id="times"/>
720 1032
         </div>
721 1033
         <div class="form-group"  style="position:relative;float: left;width: 100%;height: 50px;margin-bottom:5px;">

+ 156
- 0
template/pc/js/botstrap-step/autoScroll.js Vedi File

@@ -0,0 +1,156 @@
1
+/**
2
+ *    Name   : 循环滚动列表
3
+ *  Author :子纯
4
+ *    Time   :2015-12-15
5
+ **/
6
+(function(jQuery){
7
+    $.fn.autoScroll = function (o) {
8
+        o = $.extend({                                    //设置默认参数
9
+            direction: 'left',
10
+            interval: null,
11
+            speed: null,
12
+            distance: null,
13
+            liWidth: null,
14
+            liHeight: null,
15
+            showNum: null
16
+        },o || {});
17
+        return this.each(function(){                    //回调开始
18
+            var $ts = $(this),
19
+                $ul = $ts.children("ul"),
20
+                $li = $ul.children("li"),
21
+                len = $li.length;
22
+            if (o.direction == 'up' || o.direction == 'down' ){            //根据类型设置css
23
+                $ts.css({ "width": "100%", "height": o.showNum * o.liHeight });
24
+                $ul.css({ "width": "100%", "height": len * o.liHeight });
25
+                $li.css({ "float": "none", "width": "100%", "height": o.liHeight, "margin": 0,"padding": 0 });
26
+            };
27
+            if (o.direction == 'left' || o.direction == 'right' ){        //其实也可以在css里写好
28
+                $ts.css({ "width": o.showNum * o.liWidth });
29
+                $ul.css({ "width": len * o.liWidth });
30
+                $li.css({ "float": "left" });
31
+            };
32
+            switch (o.direction){                                        //分四种情况,进行事件调用
33
+                case 'left': sroLeft();
34
+                    break;
35
+                case 'right':sroRight();
36
+                    break;
37
+                case 'up':      sroUp();
38
+                    break;
39
+                case 'down': sroDown();
40
+                    break;
41
+            };
42
+            function sroLeft(){                                            //向左滚动事件
43
+                $ul.css("left", 0);
44
+                var left;
45
+                function leftMoving(){
46
+                    var dis = -o.distance,
47
+                        dif = -o.liWidth * (len - o.showNum);
48
+                    left = parseFloat($ul.css("left"));
49
+                    if (left <= dif){
50
+                        $ul.css("left",0);
51
+                        left = 0;
52
+                        $ul.delay(o.interval);
53
+                    };
54
+                    var ltDis = left + dis;
55
+                    if(ltDis <= dif){
56
+                        ltDis = dif;
57
+                    };
58
+                    $ul.animate({"left":ltDis+"px"}, o.speed);
59
+                };
60
+                $ul.hover(                                                //鼠标移上、移下的阻止与恢复滚动
61
+                    function(){
62
+                        clearInterval(fnLeft);
63
+                    },
64
+                    function(){
65
+                        fnLeft = setInterval(function(){leftMoving()}, o.interval);
66
+                    }
67
+                );
68
+                fnLeft = setInterval(function(){leftMoving()}, o.interval);
69
+            };
70
+            function sroRight(){                                        //向右滚动事件
71
+                $ul.css("right", 0);
72
+                var right;
73
+                function rightMoving(){
74
+                    var dis = -o.distance,
75
+                        dif = -o.liWidth * (len - o.showNum);
76
+                    right = parseFloat($ul.css("right"));
77
+                    if (right <= dif){
78
+                        $ul.css("right",0);
79
+                        right = 0;
80
+                        $ul.delay(o.interval);
81
+                    };
82
+                    var rtDis = right + dis;
83
+                    if(rtDis <= dif){
84
+                        rtDis = dif;
85
+                    };
86
+                    $ul.animate({"right":rtDis+"px"}, o.speed);
87
+                };
88
+                $ul.hover(
89
+                    function(){
90
+                        clearInterval(fnRight);
91
+                    },
92
+                    function(){
93
+                        fnRight = setInterval(function(){rightMoving()}, o.interval);
94
+                    }
95
+                );
96
+                fnRight = setInterval(function(){rightMoving()}, o.interval);
97
+            };
98
+            function sroUp(){                                            //向上滚动事件
99
+                $ul.css("top", 0);
100
+                var top;
101
+                function upMoving(){
102
+                    var dis = -o.distance,
103
+                        dif = -o.liHeight * (len - o.showNum);
104
+                    top =  parseFloat($ul.css("top"));
105
+                    if (top <= dif){
106
+                        $ul.css("top",0);
107
+                        top = 0;
108
+                        $ul.delay(o.interval);
109
+                    };
110
+                    var tpDis = top + dis;
111
+                    if(tpDis <= dif){
112
+                        tpDis = dif;
113
+                    };
114
+                    $ul.animate({"top":tpDis+"px"}, o.speed);
115
+                };
116
+                $ul.hover(
117
+                    function(){
118
+                        clearInterval(fnUp);
119
+                    },
120
+                    function(){
121
+                        fnUp = setInterval(function(){upMoving()}, o.interval);
122
+                    }
123
+                );
124
+                fnUp = setInterval(function(){upMoving()}, o.interval);
125
+            };
126
+            function sroDown(){                                            //向下滚动事件
127
+                $ul.css("bottom",0);
128
+                var bottom;
129
+                function downMoving(){
130
+                    var dis = -o.distance,
131
+                        dif = -o.liHeight * (len - o.showNum);
132
+                    bottom =  parseFloat($ul.css("bottom"));
133
+                    if (bottom <= dif){
134
+                        $ul.css("bottom",0);
135
+                        bottom = 0;
136
+                        $ul.delay(o.interval);
137
+                    };
138
+                    var bmDis = bottom + dis;
139
+                    if(bmDis <= dif){
140
+                        bmDis = dif;
141
+                    };
142
+                    $ul.animate({"bottom":bmDis+"px"}, o.speed);
143
+                };
144
+                $ul.hover(
145
+                    function(){
146
+                        clearInterval(fnDown);
147
+                    },
148
+                    function(){
149
+                        fnDown = setInterval(function(){downMoving()}, o.interval);
150
+                    }
151
+                );
152
+                fnDown = setInterval(function(){downMoving()}, o.interval);
153
+            };
154
+        });
155
+    };
156
+})(jQuery);

BIN
template/pc/js/botstrap-step/bg.jpg Vedi File


+ 3
- 3
template/pc/js/botstrap-step/form-elements.css Vedi File

@@ -83,7 +83,7 @@ button.btn {
83 83
     margin: 0;
84 84
     padding: 0 20px;
85 85
     vertical-align: middle;
86
-    background: #19b9e7;
86
+    background: #3366ff;
87 87
     border: 0;
88 88
     font-family: 'Roboto', sans-serif;
89 89
     font-size: 16px;
@@ -100,6 +100,6 @@ button.btn:hover { opacity: 0.6; color: #fff; }
100 100
 
101 101
 button.btn:active { outline: 0; opacity: 0.6; color: #fff; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; }
102 102
 
103
-button.btn:focus { outline: 0; opacity: 0.6; background: #19b9e7; color: #fff; }
103
+button.btn:focus { outline: 0; opacity: 0.6; background: #3366ff; color: #fff; }
104 104
 
105
-button.btn:active:focus, button.btn.active:focus { outline: 0; opacity: 0.6; background: #19b9e7; color: #fff; }
105
+button.btn:active:focus, button.btn.active:focus { outline: 0; opacity: 0.6; background: #3366ff; color: #fff; }

BIN
template/pc/js/botstrap-step/img.png Vedi File


BIN
template/pc/js/botstrap-step/img_1.png Vedi File


BIN
template/pc/js/botstrap-step/img_2.png Vedi File


BIN
template/pc/js/botstrap-step/img_3.png Vedi File


BIN
template/pc/js/botstrap-step/img_4.png Vedi File


BIN
template/pc/js/botstrap-step/img_5.png Vedi File


BIN
template/pc/js/botstrap-step/laba.png Vedi File


+ 33
- 10
template/pc/js/botstrap-step/scripts.js Vedi File

@@ -4,7 +4,7 @@ jQuery(document).ready(function() {
4 4
     /*
5 5
         Fullscreen background
6 6
     */
7
-    $.backstretch("/template/pc/js/botstrap-step/cb10b62fa1f10acac99339fcfc511914_1.jpg");
7
+    $.backstretch("/template/pc/js/botstrap-step/bg.jpg");
8 8
 
9 9
     $('#top-navbar-1').on('shown.bs.collapse', function(){
10 10
         $.backstretch("resize");
@@ -52,17 +52,13 @@ jQuery(document).ready(function() {
52 52
         }
53 53
 
54 54
 
55
-
56
-
57
-
58
-
59
-
60 55
         console.log($(this).index());
61 56
         //调用专业
62 57
         if($(this).index() == 4) {
63 58
 
64 59
             //隐藏查询表单
65 60
             $('#sele-box').hide();
61
+            $('.ssl-box').hide();
66 62
 
67 63
 
68 64
             $('#loadingModal').modal('show');
@@ -80,9 +76,11 @@ jQuery(document).ready(function() {
80 76
                     console.log('Ajax response:', data);
81 77
                     console.log(data.data);
82 78
                     var html = '';
79
+                    var html2 = '';
83 80
                     $.each(data.data, function (i, e) {
84 81
                         console.log(e);
85 82
                         html += '<p class="form-control-static" style="min-height:20px;padding-top:5px;padding-bottom:0px;"><label class="checkbox-inline"><input type="checkbox" name="zy[]" id="inlineCheckbox'+i+'" value="'+e.id+'"> '+e.title+'</label></p>';
83
+                        html2 += '<span class="hjk">'+e.title+'</span>';
86 84
                     });
87 85
 
88 86
                     if(html == ''){
@@ -90,11 +88,19 @@ jQuery(document).ready(function() {
90 88
                         $('#zy_box').hide();
91 89
                         html = '暂无相关要求';
92 90
                     }
91
+                    if(html2 == ''){
92
+                        //隐藏
93
+                        $('#zy_box').hide();
94
+                        html2 = '暂无相关要求';
95
+                    }
93 96
 
94 97
                     $('#zys').empty();
95 98
                     $('#zys').append(html);
96 99
 
97 100
 
101
+                    $('#zys-list').empty();
102
+                    $('#zys-list').append(html2);
103
+
98 104
 
99 105
                 },
100 106
                 error: function (xhr, status, error) {
@@ -109,9 +115,6 @@ jQuery(document).ready(function() {
109 115
         //填完个人资料 点击下一步
110 116
         if($(this).index() == 7) {
111 117
 
112
-
113
-
114
-
115 118
             var b = $('#choose6').val();
116 119
             console.log(a);
117 120
             if(b == 0){
@@ -166,7 +169,7 @@ jQuery(document).ready(function() {
166 169
 
167 170
                     $.each(data.data, function (i, e) {
168 171
                         console.log(e);
169
-                        html += '<p class="form-control-static" style="min-height:20px;padding-top:5px;padding-bottom:0px;"><label class="checkbox-inline"><input type="checkbox" name="zs[]" id="inlineCheckbox' + i + '" value="' + e.id + '"> ' + e.title + '</label><font style="margin-left:15px;"><select className="form-control-s" name="zsnx[]">'+options+'</select></font></p>';
172
+                        html += '<p class="form-control-static" style="min-height:20px;padding-top:5px;padding-bottom:0px;"><label class="checkbox-inline" style="margin-top: -4px;font-size: 15px;"><input type="checkbox" name="zs[]" id="inlineCheckbox' + i + '" value="' + e.id + '"> ' + e.title + '</label><font style="margin-left:15px;"><select className="form-control-s" name="zsnx[]">'+options+'</select></font></p>';
170 173
                     });
171 174
 
172 175
                     if(html == ''){
@@ -248,6 +251,7 @@ jQuery(document).ready(function() {
248 251
         if($(this).index() == 6){
249 252
             //隐藏查询表单
250 253
             $('#sele-box').show();
254
+            $('.ssl-box').show();
251 255
         }
252 256
 
253 257
         $(this).parents('fieldset').fadeOut(400, function() {
@@ -461,4 +465,23 @@ jQuery(document).ready(function() {
461 465
     var times= timestamp + _getRandomString(32);
462 466
     console.log(times);
463 467
     $('#times').val(times);
468
+
469
+
470
+    /**
471
+     * 点击显示成功 示例
472
+     */
473
+    $('.but-success').click(function (){
474
+        //$('.ssl-box').toggle();
475
+        //.fadeOut();
476
+        //.fadeIn();
477
+        if($('.ssl-box').is(":hidden")){
478
+            $('.ssl-box').fadeIn().show();
479
+            $('.but-success').addClass('but-success2');
480
+        }else{
481
+            $('.ssl-box').fadeOut().hide();
482
+            $('.but-success').removeClass('but-success2');
483
+        }
484
+    });
485
+
486
+
464 487
 });

+ 1347
- 8
template/pc/js/botstrap-step/style.css
File diff soppresso perché troppo grande
Vedi File


+ 1
- 1
template/pc/lists_yjcp_cp.htm Vedi File

@@ -9,7 +9,7 @@
9 9
 <link rel="stylesheet" href="/template/pc/js/botstrap-step/bootstrap.min.css">
10 10
 <link rel="stylesheet" href="/template/pc/js/botstrap-step/font-awesome.min.css">
11 11
 <link rel="stylesheet" href="/template/pc/js/botstrap-step/form-elements.css">
12
-<link rel="stylesheet" href="/template/pc/js/botstrap-step/style.css">
12
+<link rel="stylesheet" href="/template/pc/js/botstrap-step/style.css?t=<?php echo time();?>">
13 13
 
14 14
 <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
15 15
 <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->

Loading…
Annulla
Salva