Răsfoiți Sursa

晋卫资讯

linwu 4 luni în urmă
părinte
comite
2cefce4cf5

+ 13 - 0
app/Http/Controllers/Mobile/Health/GongzhonghaoController.php

@@ -0,0 +1,13 @@
+<?php
+
+namespace App\Http\Controllers\Mobile\Health;
+
+use App\Http\Controllers\Mobile\MobileBaseController;
+
+class GongzhonghaoController extends MobileBaseController
+{
+    public function index()
+    {
+        return view('mobile.app.health.gongzhonghao.index');
+    }
+}

+ 34 - 0
public/themes/default/views/mobile/app/health/gongzhonghao/ajax_gongzhonghao_list.blade.php

@@ -0,0 +1,34 @@
+<style>
+    .news-list-item .news-info .info {float:none;width:100%;}
+    .news-list-item .news-info .info .title {
+        overflow: hidden;
+        text-overflow: ellipsis;
+        display: -webkit-box;
+        -webkit-line-clamp: 3;
+        -webkit-box-orient: vertical;
+    }
+    .news-list-item .news-info .info .time{text-align: right;color:#dd4250;margin-top:10px;}
+</style>
+<div class="news-list-item for-event" onclick="location.href='https://mp.weixin.qq.com/s/A0fQqYtWMs3szvJxKUOPCg';">
+    <div class="news-info">
+        <div class="info">
+            <div class="title">晋江市加快集聚高校毕业生来(留)晋创业就业的若干措施</div>
+            <div class="time font12">
+                2024-12-04
+            </div>
+        </div>
+        <div class="clear"></div>
+    </div>
+</div>
+<div class="list-split-block"></div>
+<div class="news-list-item for-event" onclick="location.href='https://mp.weixin.qq.com/s/A0fQqYtWMs3szvJxKUOPCg';">
+    <div class="news-info">
+        <div class="info">
+            <div class="title">晋江市关于支持泉州(晋江)人力资源服务产业园发展的若干措施</div>
+            <div class="time font12">
+                2024-11-15
+            </div>
+        </div>
+        <div class="clear"></div>
+    </div>
+</div>

+ 60 - 0
public/themes/default/views/mobile/app/health/gongzhonghao/index.blade.php

@@ -0,0 +1,60 @@
+@extends('mobile.module.layouts.health')
+@push('meta')
+
+@endpush
+
+@push('css')
+    <link href="{{ theme_asset('mobile/css/common.css') }}" rel="stylesheet">
+    <link href="{{ theme_asset('mobile/css/news.css') }}" rel="stylesheet">
+    <link href="{{ theme_asset('mobile/css/jobs.css') }}" rel="stylesheet">
+
+    <style>
+        .drop_content{padding-bottom: 1rem;}
+        .fixed_btn{width: 90%;position: fixed;bottom: 0;left: 50%; -webkit-transform: translate(-50%,0);transform: translate(-50%,0);}
+    </style>
+@endpush
+
+@push('js')
+    <script src="{{ theme_asset('mobile/js/dropload.min.js') }}"></script>
+@endpush
+
+@section('content')
+    {{--    头部--}}
+    <div class="headernavfixed">
+        <div class="headernav font18">
+            <div class="title">
+                <div class="n-tit-box">
+                    晋卫资讯
+                </div>
+                <div class="return js-back for-event" data-href="{{route('mobile.health.index')}}"></div>
+            </div>
+        </div>
+    </div>
+    <div class="split-block-title">
+        <div class="sbox js-show-qspageso">
+            <form action="" id="search-form" method="post">
+                <input type="search" name="key" placeholder="请输入关键字" style="width:100%;border:none;" id="search" value="">
+                <input type="hidden" name="_token" value="{{ csrf_token() }}" />
+                <script>
+                    $("#search").on('keypress',function(e) {
+                        var keycode = e.keyCode;
+                        if(keycode=='13') {
+                            e.preventDefault();
+                            //请求搜索接口
+                            $('#search-form').submit();
+                        }
+                    });
+                </script>
+            </form>
+        </div>
+    </div>
+    <div class="drop_content">
+        <div class="add_data">
+            @include('mobile.app.health.gongzhonghao.ajax_gongzhonghao_list')
+        </div>
+    </div>
+@endsection
+
+@section('script')
+
+@endsection

+ 20 - 3
public/themes/default/views/mobile/app/health/index.blade.php

@@ -19,7 +19,7 @@
         .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%;}
         #player-container-id{
             width: 100%;
             height: 0;
@@ -78,10 +78,11 @@
 <!--新闻-->
 <div class="module">
     <div class="module-title font14">
-        <a href="javascript:;" class="module-title-nav font14 active f-left" id="emer">引才动态</a>
+        <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>
         <div class="clear"></div>
     </div>
-    <div class="mobile_index_news" id="emergency">
+    <div class="mobile_index_news module-box" id="emergency">
         <ul>
             <li>
                 <a href="{{route("mobile.health.attract.show")}}" rel="nofollow noopener noreferrer"><b>&gt;</b>{{cut_str("晋江市加快集聚高校毕业生来(留)晋创业就业的若干措施", 15, 0, '...')}}<span class="jc_rt">2024-10-18</span></a>
@@ -93,6 +94,15 @@
         <div onclick="window.location='{{route("mobile.health.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>
+                <a href="https://mp.weixin.qq.com/s/A0fQqYtWMs3szvJxKUOPCg" rel="nofollow noopener noreferrer"><b>&gt;</b>{{cut_str("公众号文章1,公众号文章1,公众号文章1,公众号文章1,公众号文章1,", 15, 0, '...')}}<span class="jc_rt">2024-10-18</span></a>
+                <a href="https://mp.weixin.qq.com/s/A0fQqYtWMs3szvJxKUOPCg" rel="nofollow noopener noreferrer"><b>&gt;</b>{{cut_str("公众号文章2,公众号文章2,公众号文章2,公众号文章2,公众号文章2,", 15, 0, '...')}}<span class="jc_rt">2024-10-15</span></a>
+            </li>
+            <div onclick="window.location='{{route("mobile.health.gongzhonghao.index")}}';" style="text-align:center;height:.8rem;line-height:.8rem;background:#fff;">查看更多</div>
+        </ul>
+    </div>
 </div>
 <!--新闻 end-->
 @endsection
@@ -114,5 +124,12 @@
         // var mySwiper = new Swiper('.swiper-container',{
         //     autoplay:3000,
         // });
+        $('.module-title-nav').click(function() {
+            $('.module-title-nav').removeClass('active');
+            $(this).addClass('active');
+            let id = $(this).data('id');
+            $('.module-box').hide();
+            $('#'+id).show();
+        });
     </script>
 @endsection

+ 4 - 1
public/themes/default/views/mobile/module/section/html_health_end.blade.php

@@ -1,4 +1,4 @@
-<img src="/themes/default/assets/mobile/images/health/customer_service.png" style="position:fixed;right:20px;bottom:20px;width: 50px;height: 50px;">
+<img id="toGongzhonghao" src="/themes/default/assets/mobile/images/health/customer_service.png" style="position:fixed;right:20px;bottom:20px;width: 50px;height: 50px;">
 </body>
 <script src="{{theme_asset('mobile/js/fastclick.js')}}"></script>
 <script src="{{theme_asset('mobile/js/qsToast.js')}}"></script>
@@ -11,6 +11,9 @@
     }, false );
 </script>
 <script>
+    $('#toGongzhonghao').click(function() {
+        location.href = "https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=Mzg5MzI1NTkyMA==#wechat_redirect";
+    });
     $('a[href]').click(function(){
         var f = $(this).attr('href');
         var reg = /\#(\w+)/;

+ 1 - 0
routes/mobile.php

@@ -625,6 +625,7 @@ Route::group([
     $router->get('/introduce/show', 'Mobile\Health\IntroduceController@show')->name('mobile.health.introduce.show');
     $router->get('/hospital', 'Mobile\Health\HospitalController@index')->name('mobile.health.hospital.index');
     $router->get('/hospital/show', 'Mobile\Health\HospitalController@show')->name('mobile.health.hospital.show');
+    $router->get('/gongzhonghao', 'Mobile\Health\GongzhonghaoController@index')->name('mobile.health.gongzhonghao.index');
     $router->get('/attract', 'Mobile\Health\AttractController@index')->name('mobile.health.attract.index');
     $router->get('/attract/show', 'Mobile\Health\AttractController@show')->name('mobile.health.attract.show');
     $router->get('/recruit', 'Mobile\Health\RecruitController@index')->name('mobile.health.recruit.index');