Jelajahi Sumber

集成电路

linwu 4 bulan lalu
induk
melakukan
ca8fd78880

+ 1 - 7
app/Http/Controllers/Mobile/Health/RecruitController.php

@@ -42,7 +42,7 @@ class RecruitController extends MobileBaseController
         $categories   = $this->categoryService->getCategories($filter_where);     //过滤条件信息
 
         //默认参数
-        $param_array = ['health_type', 'keyword', 'wage', 'experience', 'education'];
+        $param_array = ['keyword', 'wage', 'experience', 'education'];
         $params      = [];
         if ($request->all()) {
             foreach ($request->all() as $k => $v) {
@@ -69,12 +69,6 @@ class RecruitController extends MobileBaseController
         if (!empty($params['education'])) {
             $where[] = ['education', '=', $params['education']];
         }
-        if (!empty($params['health_type'])) {
-            $where[] = ['health_type', '=', $params['health_type']];
-        } else {
-            $where[]               = ['health_type', '=', 1];
-            $params['health_type'] = 1;
-        }
 
         $list = Jobs::where($where)->orderBy('updated_at', 'desc')->paginate($size);
         if ($list->total() > 0) {

+ 22 - 8
app/Http/Controllers/Mobile/Ic/IndexController.php

@@ -4,9 +4,22 @@ namespace App\Http\Controllers\Mobile\Ic;
 
 use App\Http\Controllers\Mobile\MobileBaseController;
 use App\Models\Article;
+use App\Models\Jobs;
+use App\Services\Company\JobsService;
 
 class IndexController extends MobileBaseController
 {
+    protected $jobsService;
+
+    /**
+     * JobsController constructor.
+     * @param $categoryService
+     */
+    public function __construct( JobsService $jobsService)
+    {
+        $this->jobsService     = $jobsService;
+    }
+
     public function index()
     {
         //引才动态
@@ -17,17 +30,18 @@ class IndexController extends MobileBaseController
             ->limit(5)
             ->get();
 
-        //晋卫咨询
-        $gongzhonghao_list = Article::where('type_id',66)
-            ->where('is_display',1)
-            ->orderBy('list_order','desc')
-            ->orderBy('id','desc')
-            ->limit(5)
-            ->get();
+        //招聘列表
+        $size  = 10;
+        $list = Jobs::where('is_health',1)->orderBy('updated_at', 'desc')->limit(5)->get();
+        if ($list->isEmpty()) {
+            $recruit_list = [];
+        } else {
+            $recruit_list = $this->jobsService->dealjobFilelds($list);
+        }
 
         return view('mobile.app.ic.index',[
             'attract_list'=>$attract_list,
-            'gongzhonghao_list'=>$gongzhonghao_list,
+            'recruit_list'=>$recruit_list,
         ]);
     }
 

TEMPAT SAMPAH
public/themes/default/assets/mobile/images/ic/index_header.jpg


+ 69 - 35
public/themes/default/views/mobile/app/ic/index.blade.php

@@ -5,6 +5,8 @@
 
 @push('css')
     <link href="{{ theme_asset('mobile/css/index.css') }}" rel="stylesheet">
+    <link href="{{ theme_asset('mobile/css/common.css') }}" rel="stylesheet">
+    <link href="{{ theme_asset('mobile/css/jobs.css') }}" rel="stylesheet">
     <style>
         .swiper-container,.swiper-container img{
             width: 100%;
@@ -19,15 +21,13 @@
         .nav.green {background: linear-gradient(135deg, #a8e063, #56ab2f);}
         .nav.black {background: linear-gradient(135deg, #292a3a, #536976);}
 
-        .module-title .module-title-nav {width: 100%;}
+        .module-title .module-title-nav {width: 50%;}
     </style>
     <link href="{{ theme_asset('app/css/swiper.min.css') }}" rel="stylesheet">
-    <link href="https://web.sdk.qcloud.com/player/tcplayer/release/v5.1.0/tcplayer.min.css" rel="stylesheet"/>
 @endpush
 
 @push('js')
 
-    <script src="https://web.sdk.qcloud.com/player/tcplayer/release/v5.1.0/tcplayer.v5.1.0.min.js"></script>
 @endpush
 
 @section('content')
@@ -50,23 +50,75 @@
         </div>
     </div>
 {{--    导航按钮--}}
-    <div class="nav-list">
-        <a href="{{route('mobile.ic.jinjiang')}}" class="nav blue">认识晋江</a>
-        <a href="{{route('mobile.ic.hospital.index')}}" class="nav red">园区概况</a>
-        <a href="{{route('mobile.ic.recruit.list')}}" class="nav yellow">招聘列表</a>
-        <a href="{{route('mobile.ic.teach.index')}}" class="nav purple">宣讲会/招聘会报名</a>
-        <a href="https://rcmap.jucai.gov.cn/mobile/pages/policy/search" class="nav green">人才服务</a>
-        <a href="https://lw_test.jinjianghc.com/mobile/jfm/policy1.html?type=3" class="nav black">人才政策</a>
-    </div>
+{{--    <div class="nav-list">--}}
+{{--        <a href="{{route('mobile.ic.jinjiang')}}" class="nav blue">认识晋江</a>--}}
+{{--        <a href="{{route('mobile.ic.hospital.index')}}" class="nav red">园区概况</a>--}}
+{{--        <a href="{{route('mobile.ic.recruit.list')}}" class="nav yellow">招聘列表</a>--}}
+{{--        <a href="{{route('mobile.ic.teach.index')}}" class="nav purple">宣讲会/招聘会报名</a>--}}
+{{--        <a href="https://rcmap.jucai.gov.cn/mobile/pages/policy/search" class="nav green">人才服务</a>--}}
+{{--        <a href="https://lw_test.jinjianghc.com/mobile/jfm/policy1.html?type=3" class="nav black">人才政策</a>--}}
+{{--    </div>--}}
 
 <!--新闻-->
-<div class="module">
+<div class="module" style="margin-top:0;">
     <div class="module-title font14">
-        <a href="javascript:;" class="module-title-nav font14 active f-left" data-id="emergency">引才动态</a>
-{{--        <a href="javascript:;" class="module-title-nav font14 f-left" data-id="gongzhonghao">晋卫资讯</a>--}}
+        <a href="javascript:;" class="module-title-nav font14 active f-left" data-id="recruit">招聘列表</a>
+        <a href="javascript:;" class="module-title-nav font14 f-left" data-id="emergency">引才资讯</a>
         <div class="clear"></div>
     </div>
-    <div class="mobile_index_news module-box" id="emergency">
+    <div class="module-box" id="recruit">
+            @foreach($recruit_list as $key => $val)
+                <a href="{{route("mobile.ic.recruit.show", ["id"=>$val->id])}}">
+                    <div class="job-list-item for-event">
+                        <div class="info">
+                            <div class="line-one">
+                                <div class="job-name substring font16">
+                                    {{$val->jobs_name}}
+                                    @if($val->emergency==1)
+                                        <img src="{{theme_asset('mobile/images/231.png')}}"/>
+                                    @endif
+                                </div>
+
+                                <div class="refresh-time font12 font_red_light">{!! daterange(time(), $val->refresh_time, 'Y-m-d', "#FF3300") !!}</div>
+                                <div class="clear"></div>
+                            </div>
+                            <div class="line-two font14">
+                                <div class="salary">{{$val->wage_cn}}</div>
+                                <div class="category font_gray6 substring">{{$val->category_cn}}</div>
+                                <div class="clear"></div>
+                            </div>
+                            @if($val->tag_cn)
+                                <div class="line-three fontag">
+                                    @foreach($val->tag_cn as $k => $v)
+                                        @if($k<=2)
+                                            <div class="job-tag tg{{$k+1}}">{{$v}}</div>
+                                        @endif
+                                    @endforeach
+                                    <div class="clear"></div>
+                                </div>
+                            @else
+                                <div class="line-four font_gray6 font13">
+                                    {{$val->education_cn}} / {{$val->experience_cn}} / 年龄{{$val->age_cn}}
+                                </div>
+                            @endif
+                            <div class="apply-btn">申请</div>
+                        </div>
+                        <div class="company font13">
+                            <div class="company-name font_gray6 substring">
+                                {{$val->company_name}}
+                            </div>
+                            <div class="district font_gray6 substring">
+                                {{$val->district_cn}}
+                            </div>
+                            <div class="clear"></div>
+                        </div>
+                    </div>
+                    <div class="list-split-block"></div>
+                </a>
+            @endforeach
+            <div onclick="window.location='{{route("mobile.ic.recruit.list")}}';" style="text-align:center;height:.8rem;line-height:.8rem;background:#fff;">查看更多</div>
+    </div>
+    <div class="mobile_index_news module-box" id="emergency" style="display: none;">
         <ul>
             <li>
                 @foreach($attract_list as $v)
@@ -76,16 +128,6 @@
         <div onclick="window.location='{{route("mobile.ic.attract.index")}}';" style="text-align:center;height:.8rem;line-height:.8rem;background:#fff;">查看更多</div>
         </ul>
     </div>
-{{--    <div class="mobile_index_news module-box" id="gongzhonghao" style="display: none;">--}}
-{{--        <ul>--}}
-{{--            <li>--}}
-{{--                @foreach($gongzhonghao_list as $v)--}}
-{{--                    <a href="{{$v['is_url']}}" rel="nofollow noopener noreferrer"><b>&gt;</b>{{cut_str($v['title'], 15, 0, '...')}}<span class="jc_rt">{{date('Y-m-d',strtotime($v['created_at']))}}</span></a>--}}
-{{--                @endforeach--}}
-{{--            </li>--}}
-{{--            <div onclick="window.location='{{route("mobile.ic.gongzhonghao.index")}}';" style="text-align:center;height:.8rem;line-height:.8rem;background:#fff;">查看更多</div>--}}
-{{--        </ul>--}}
-{{--    </div>--}}
 </div>
 <!--新闻 end-->
 @endsection
@@ -93,21 +135,13 @@
 @section('script')
 {{--    <script type="text/javascript" src="{{theme_asset('app/js/swiper.min.js')}}"></script>--}}
     <script>
-        var player = TCPlayer('player-container-id', {
-            sources: [{
-                src: '{{ theme_asset('mobile/021622e9b328fade2c7a0f394440fe38.mp4') }}?v=1', // 播放地址
-            }],
-            autoplay: true,
-            licenseUrl: 'https://license.vod2.myqcloud.com/license/v2/1251164517_1/v_cube.license', // license 地址,参考准备工作部分,在视立方控制台申请 license 后可获得 licenseUrl
-            posterImage: true,
-            bigPlayButton: true,
-            poster: "{{ theme_asset('mobile/images/health_thumb.jpg') }}",
-        });
+
         //    初始化SWiper
         // var mySwiper = new Swiper('.swiper-container',{
         //     autoplay:3000,
         // });
         $('.module-title-nav').click(function() {
+            console.log(11);
             $('.module-title-nav').removeClass('active');
             $(this).addClass('active');
             let id = $(this).data('id');

+ 2 - 2
public/themes/default/views/mobile/app/ic/recruit/will.blade.php

@@ -20,7 +20,7 @@
                 <div class="n-tit-box">
                     就业意向
                 </div>
-                <div class="return js-back for-event" data-href="{{route('mobile.health.recruit.index')}}"></div>
+                <div class="return js-back for-event" data-href="{{route('mobile.ic.recruit.index')}}"></div>
             </div>
         </div>
     </div>
@@ -62,7 +62,7 @@
         });
         $('#btnSave').click(function() {
             alert('提交成功');
-            location.href = "{{route('mobile.health.recruit.index')}}";
+            location.href = "{{route('mobile.ic.recruit.list')}}";
         });
     </script>
 @endsection