Your Name 7 月之前
父節點
當前提交
485513c935

+ 11
- 1
application/admin/controller/ZcwdPosition.php 查看文件

61
             ->order('pid asc, id asc')
61
             ->order('pid asc, id asc')
62
             ->select();
62
             ->select();
63
 
63
 
64
+        $temp_id = 0;
65
+        $t_color = '#000';
64
         foreach ($list as $k => $v) {
66
         foreach ($list as $k => $v) {
65
 
67
 
66
             /*
68
             /*
97
                 $v['type_name'] = 'HTML代码';
99
                 $v['type_name'] = 'HTML代码';
98
             }*/
100
             }*/
99
 
101
 
102
+            //处理颜色
103
+            if((int)$temp_id !== (int)$v['type']){
104
+                $red = mt_rand(0, 255);
105
+                $green = mt_rand(0, 255);
106
+                $blue = mt_rand(0, 255);
107
+                $t_color = sprintf("#%02x%02x%02x", $red, $green, $blue);
108
+            }
109
+            $temp_id = (int)$v['type'];
100
 
110
 
101
             //处理图片
111
             //处理图片
102
             $v['ad'] = [];
112
             $v['ad'] = [];
123
                 ->find();
133
                 ->find();
124
 
134
 
125
             $v['type_name'] = $one['name'];
135
             $v['type_name'] = $one['name'];
126
-
136
+            $v['color'] = $t_color;
127
             $list[$k] = $v;
137
             $list[$k] = $v;
128
         }
138
         }
129
 
139
 

+ 11
- 2
application/admin/controller/ZcwePosition.php 查看文件

17
 use think\Db;
17
 use think\Db;
18
 use think\Cache;
18
 use think\Cache;
19
 
19
 
20
-class ZcwePosition extends Base
20
+class  ZcwePosition extends Base
21
 {
21
 {
22
     private $ad_position_system_id = array(); // 系统默认位置ID,不可删除
22
     private $ad_position_system_id = array(); // 系统默认位置ID,不可删除
23
 
23
 
99
                 $v['type_name'] = 'HTML代码';
99
                 $v['type_name'] = 'HTML代码';
100
             }*/
100
             }*/
101
 
101
 
102
+            //处理颜色
103
+            if((int)$temp_id !== (int)$v['type']){
104
+                $red = mt_rand(0, 255);
105
+                $green = mt_rand(0, 255);
106
+                $blue = mt_rand(0, 255);
107
+                $t_color = sprintf("#%02x%02x%02x", $red, $green, $blue);
108
+            }
109
+            $temp_id = (int)$v['type'];
110
+
102
 
111
 
103
             //处理图片
112
             //处理图片
104
             $v['ad'] = [];
113
             $v['ad'] = [];
125
                 ->find();
134
                 ->find();
126
 
135
 
127
             $v['type_name'] = $one['name'];
136
             $v['type_name'] = $one['name'];
128
-
137
+            $v['color'] = $t_color;
129
             $list[$k] = $v;
138
             $list[$k] = $v;
130
         }
139
         }
131
 
140
 

+ 9
- 1
application/admin/controller/ZcwfPosition.php 查看文件

99
                 $v['type_name'] = 'HTML代码';
99
                 $v['type_name'] = 'HTML代码';
100
             }*/
100
             }*/
101
 
101
 
102
+            //处理颜色
103
+            if((int)$temp_id !== (int)$v['type']){
104
+                $red = mt_rand(0, 255);
105
+                $green = mt_rand(0, 255);
106
+                $blue = mt_rand(0, 255);
107
+                $t_color = sprintf("#%02x%02x%02x", $red, $green, $blue);
108
+            }
109
+            $temp_id = (int)$v['type'];
102
 
110
 
103
             //处理图片
111
             //处理图片
104
             $v['ad'] = [];
112
             $v['ad'] = [];
125
                 ->find();
133
                 ->find();
126
 
134
 
127
             $v['type_name'] = $one['name'];
135
             $v['type_name'] = $one['name'];
128
-
136
+            $v['color'] = $t_color;
129
             $list[$k] = $v;
137
             $list[$k] = $v;
130
         }
138
         }
131
 
139
 

+ 2
- 0
application/admin/controller/ZczsPosition.php 查看文件

279
                 'type'        => $post['type'], //职称地区  全国或者地区
279
                 'type'        => $post['type'], //职称地区  全国或者地区
280
                 'intro'       => $post['intro'], //备注
280
                 'intro'       => $post['intro'], //备注
281
                 'admin_id'    => session('admin_id'),
281
                 'admin_id'    => session('admin_id'),
282
+                'bdxl' => $post['bdxl'], //绑定学历
282
                 'lang'        => $this->admin_lang,
283
                 'lang'        => $this->admin_lang,
283
                 'add_time'    => getTime(),
284
                 'add_time'    => getTime(),
284
                 'update_time' => getTime(),
285
                 'update_time' => getTime(),
482
                     'title'       => trim($post['title']),
483
                     'title'       => trim($post['title']),
483
                     'type'        => $post['type'], //全国或者地区
484
                     'type'        => $post['type'], //全国或者地区
484
                     'intro'       => $post['intro'],
485
                     'intro'       => $post['intro'],
486
+                    'bdxl' => $post['bdxl'], //绑定学历
485
                     'update_time' => getTime(),
487
                     'update_time' => getTime(),
486
                 );
488
                 );
487
                 $resultID = Db::name('zczs_position')->update($data);
489
                 $resultID = Db::name('zczs_position')->update($data);

+ 2
- 2
application/admin/template/zcwd_position/index.htm 查看文件

125
                                 </td>
125
                                 </td>
126
 
126
 
127
                                 <td align="left" style="width:100%;">
127
                                 <td align="left" style="width:100%;">
128
-                                    <div class="tl text-l10">
128
+                                    <div class="tl text-l10" style="color:{$vo.color}">
129
                                         {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
129
                                         {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
130
-                                            <a href="javascript:void(0);" data-href="{:url('ZcwdPosition/edit',array('id'=>$vo['id']))}" data-closereload="1" onclick="openFullframe(this, '编辑广告', '100%', '100%');">{$vo.title}</a>
130
+                                            <a href="javascript:void(0);" data-href="{:url('ZcwdPosition/edit',array('id'=>$vo['id']))}" data-closereload="1" onclick="openFullframe(this, '编辑广告', '100%', '100%');" style="color:{$vo.color}">{$vo.title}</a>
131
                                         {else /}
131
                                         {else /}
132
                                             {$vo.title}
132
                                             {$vo.title}
133
                                         {/eq}
133
                                         {/eq}

+ 2
- 2
application/admin/template/zcwe_position/index.htm 查看文件

120
                                 </td>
120
                                 </td>
121
 
121
 
122
                                 <td align="left" style="width:100%;">
122
                                 <td align="left" style="width:100%;">
123
-                                    <div class="tl text-l10">
123
+                                    <div class="tl text-l10" style="color:{$vo.color}">
124
                                         {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
124
                                         {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
125
-                                            <a href="javascript:void(0);" data-href="{:url('ZcwdPosition/edit',array('id'=>$vo['id']))}" data-closereload="1" onclick="openFullframe(this, '编辑广告', '100%', '100%');">{$vo.title}</a>
125
+                                            <a href="javascript:void(0);" data-href="{:url('ZcwdPosition/edit',array('id'=>$vo['id']))}" data-closereload="1" onclick="openFullframe(this, '编辑广告', '100%', '100%');" style="color:{$vo.color}">{$vo.title}</a>
126
                                         {else /}
126
                                         {else /}
127
                                             {$vo.title}
127
                                             {$vo.title}
128
                                         {/eq}
128
                                         {/eq}

+ 2
- 2
application/admin/template/zcwf_position/index.htm 查看文件

122
                                 </td>
122
                                 </td>
123
 
123
 
124
                                 <td align="left" style="width:100%;">
124
                                 <td align="left" style="width:100%;">
125
-                                    <div class="tl text-l10">
125
+                                    <div class="tl text-l10" style="color:{$vo.color}">
126
                                         {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
126
                                         {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
127
-                                            <a href="javascript:void(0);" data-href="{:url('ZcwdPosition/edit',array('id'=>$vo['id']))}" data-closereload="1" onclick="openFullframe(this, '编辑广告', '100%', '100%');">{$vo.title}</a>
127
+                                            <a href="javascript:void(0);" data-href="{:url('ZcwdPosition/edit',array('id'=>$vo['id']))}" data-closereload="1" onclick="openFullframe(this, '编辑广告', '100%', '100%');" style="color:{$vo.color}">{$vo.title}</a>
128
                                         {else /}
128
                                         {else /}
129
                                             {$vo.title}
129
                                             {$vo.title}
130
                                         {/eq}
130
                                         {/eq}

+ 23
- 0
application/admin/template/zczs_position/add.htm 查看文件

84
                 </dd>
84
                 </dd>
85
             </dl>
85
             </dl>
86
 
86
 
87
+            <dl class="row" id="citychoose" style="display: block;">
88
+                <dt class="tit"> <label for="title"><em>*</em>绑定学历</label> </dt>
89
+                <dd class="opt">
90
+
91
+                    <select name="bdxl" class="select" id="selectTest2" style="margin:0px 5px;height:30px;">
92
+                        <?php
93
+                        /*<option value="{$field1.id}" {eq name="$pid" value="$field1.id"}selected{/eq}>{$field1.name}</option>*/
94
+                        ?>
95
+                        <option value="0">选择学历</option>
96
+                        <option value="1">中专</option>
97
+                        <option value="2">高技</option>
98
+                        <option value="3">大专</option>
99
+                        <option value="4">本科</option>
100
+                        <option value="5">硕士</option>
101
+                        <option value="6">博士</option>
102
+                    </select>
103
+
104
+                    <span class="err"></span>
105
+                    <p class="notic2 red" id="title_tips"></p>
106
+                </dd>
107
+            </dl>
108
+
109
+
87
             <dl class="row" id="citychoose" style="display: none;">
110
             <dl class="row" id="citychoose" style="display: none;">
88
                 <dt class="tit"> <label for="title"><em>*</em>地区选择</label> </dt>
111
                 <dt class="tit"> <label for="title"><em>*</em>地区选择</label> </dt>
89
                 <dd class="opt">
112
                 <dd class="opt">

+ 23
- 0
application/admin/template/zczs_position/edit.htm 查看文件

89
 
89
 
90
 
90
 
91
 
91
 
92
+            <dl class="row" id="citychoose" style="display: block;">
93
+                <dt class="tit"> <label for="title"><em>*</em>绑定学历</label> </dt>
94
+                <dd class="opt">
95
+
96
+                    <select name="bdxl" class="select" id="selectTest999" style="margin:0px 5px;height:30px;">
97
+                        <?php
98
+                        /*<option value="{$field1.id}" {eq name="$pid" value="$field1.id"}selected{/eq}>{$field1.name}</option>*/
99
+                        ?>
100
+                        <option value="0" {eq name="$field.bdxl" value="0"}selected{/eq}>选择学历</option>
101
+                        <option value="1" {eq name="$field.bdxl" value="1"}selected{/eq}>中专</option>
102
+                        <option value="2" {eq name="$field.bdxl" value="2"}selected{/eq}>高技</option>
103
+                        <option value="3" {eq name="$field.bdxl" value="3"}selected{/eq}>大专</option>
104
+                        <option value="4" {eq name="$field.bdxl" value="4"}selected{/eq}>本科</option>
105
+                        <option value="5" {eq name="$field.bdxl" value="5"}selected{/eq}>硕士</option>
106
+                        <option value="6" {eq name="$field.bdxl" value="6"}selected{/eq}>博士</option>
107
+                    </select>
108
+
109
+                    <span class="err"></span>
110
+                    <p class="notic2 red" id="title_tips"></p>
111
+                </dd>
112
+            </dl>
113
+
114
+
92
             <dl class="row" id="citychoose" style="display: none;" >
115
             <dl class="row" id="citychoose" style="display: none;" >
93
                 <dt class="tit"> <label for="title"><em>*</em>地区选择</label> </dt>
116
                 <dt class="tit"> <label for="title"><em>*</em>地区选择</label> </dt>
94
                 <dd class="opt">
117
                 <dd class="opt">

+ 13
- 1
application/api/controller/Diyajax.php 查看文件

214
     {
214
     {
215
         $param = request()->param();
215
         $param = request()->param();
216
         $param['id'] = (int)$param['id'];
216
         $param['id'] = (int)$param['id'];
217
+        $param['xl'] = (int)$param['xl'];
218
+
217
         if(!empty($param['id'])){
219
         if(!empty($param['id'])){
218
             $map_ids = Db::name('zc_zs')
220
             $map_ids = Db::name('zc_zs')
219
                 ->where('zc_id', $param['id'])
221
                 ->where('zc_id', $param['id'])
220
                 ->where('is_del', 0)
222
                 ->where('is_del', 0)
221
                 ->column('map_id');
223
                 ->column('map_id');
224
+
222
             //调用等级
225
             //调用等级
223
             $list = Db::name('zczs_position')
226
             $list = Db::name('zczs_position')
224
                 ->where('id','in',$map_ids)
227
                 ->where('id','in',$map_ids)
225
                 ->where('is_del', 0)
228
                 ->where('is_del', 0)
226
                 ->where('status', 1)
229
                 ->where('status', 1)
227
                 ->select();
230
                 ->select();
228
-            respose(['code'=>1, 'msg'=>'请求成功', 'data'=>$list]);
231
+
232
+            $new_list = [];
233
+            foreach ($list as $k=>$v){
234
+                if((int)$v['bdxl'] >= (int)$param['xl']){
235
+                    //保留
236
+                    $new_list[] = $v;
237
+                }
238
+            }
239
+
240
+            respose(['code'=>1, 'msg'=>'请求成功', 'data'=>$new_list]);
229
         }else{
241
         }else{
230
             respose(['code'=>0, 'msg'=>'请求失败', 'data'=>[]]);
242
             respose(['code'=>0, 'msg'=>'请求失败', 'data'=>[]]);
231
         }
243
         }

+ 1
- 1
template/pc/components/index/kop.htm 查看文件

151
                 <td><?php echo $xl[$detail['xl']];?></td>
151
                 <td><?php echo $xl[$detail['xl']];?></td>
152
                 <td>
152
                 <td>
153
                     <?php
153
                     <?php
154
-                    if($field2['xlyq'] == $detail['xl']){
154
+                    if($field2['xlyq'] <= $detail['xl']){
155
                         //echo "<font style='color: blue;'>符合</font>";
155
                         //echo "<font style='color: blue;'>符合</font>";
156
                         echo '<font class="td-r"><img src="/template/pc/js/botstrap-step/img_6.png" /></font>';
156
                         echo '<font class="td-r"><img src="/template/pc/js/botstrap-step/img_6.png" /></font>';
157
                         $num++;
157
                         $num++;

+ 4
- 1
template/pc/js/botstrap-step/scripts.js 查看文件

158
                 return false;
158
                 return false;
159
             }
159
             }
160
 
160
 
161
+            var xl = $('#choose5').val();
162
+
161
             //调用证书
163
             //调用证书
162
             $('#loadingModal').modal('show');
164
             $('#loadingModal').modal('show');
163
             $.ajax({
165
             $.ajax({
165
                 method: 'POST',
167
                 method: 'POST',
166
                 dataType: 'json', // 指定响应数据为JSON
168
                 dataType: 'json', // 指定响应数据为JSON
167
                 data: {
169
                 data: {
168
-                    id: a
170
+                    id: a,
171
+                    xl: xl,
169
                 },
172
                 },
170
                 success: function (data) {
173
                 success: function (data) {
171
                     // 请求成功后隐藏加载状态
174
                     // 请求成功后隐藏加载状态

Loading…
取消
儲存