123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- @extends('mobile.module.layouts.health')
- @push('meta')
- @endpush
- @push('css')
- <link href="{{ theme_asset('mobile/css/index.css') }}" rel="stylesheet">
- <style>
- .swiper-container,.swiper-container img{
- width: 100%;
- }
- .nav-list {display:grid;grid-template-columns: 1fr 1fr;}
- .nav-list .nav {width:85%;margin:10px auto; padding:20px 0;text-align: center;border-radius: 10px;color:white;text-decoration: none;}
- .nav.purple {background: linear-gradient(135deg, #c850c0, #4158d0);}
- .nav.blue {background: linear-gradient(135deg, #a1c4fd, #c2e9fb);}
- .nav.red {background: linear-gradient(135deg, #ff9a9e, #fad0c4);}
- .nav.yellow {background: linear-gradient(135deg, #f6d365, #fda085);}
- .nav.green {background: linear-gradient(135deg, #a8e063, #56ab2f);}
- .nav.black {background: linear-gradient(135deg, #292a3a, #536976);}
- .module-title .module-title-nav {width: 50%;}
- #player-container-id{
- width: 100%;
- height: 0;
- padding-bottom: 56.25%; /* 16:9 宽高比 */
- position: relative;
- display: inline-block;
- }
- video {
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- }
- </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')
- {{-- 头部--}}
- <div class="headernavfixed">
- <div class="headernav font18">
- <div class="title">
- <div class="n-tit-box">
- 卫健局
- </div>
- </div>
- </div>
- </div>
- {{--轮播图--}}
- <div class="swiper-container">
- <div class="swiper-wrapper">
- <div class="swiper-slide">
- <video id="player-container-id" preload="auto" playsinline webkit-playsinline>
- </video>
- </div>
- </div>
- </div>
- {{-- 导航按钮--}}
- <div class="nav-list">
- <a href="{{route('mobile.health.jinjiang')}}" class="nav blue">认识晋江</a>
- <a href="{{route('mobile.health.hospital.index')}}" class="nav red">医院概况</a>
- <a href="{{route('mobile.health.recruit.index')}}" class="nav yellow">招聘列表</a>
- <a href="{{route('mobile.health.teach.index')}}" class="nav purple">宣讲会/招聘会报名</a>
- <a href="https://lw_test.jinjianghc.com/mobile/jfm/policy1.html" class="nav green">政策服务</a>
- <a href="{{route('mobile.health.recruit.quanji')}}" class="nav black">泉州籍卫计人员</a>
- </div>
- <!--新闻-->
- <div class="module">
- <div class="module-title font14">
- <a href="javascript:;" class="module-title-nav font14 active f-left" data-id="gongzhonghao">晋江资讯</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" style="display: none;">
- <ul>
- <li>
- @foreach($attract_list as $v)
- @if(empty($v['is_url']))
- <a href="{{route("mobile.health.attract.show")}}?id={{$v['id']}}" rel="nofollow noopener noreferrer"><b>></b>{{cut_str($v['title'], 15, 0, '...')}}<span class="jc_rt">{{date('Y-m-d',strtotime($v['created_at']))}}</span></a>
- @else
- <a href="{{$v['is_url']}}" rel="nofollow noopener noreferrer"><b>></b>{{cut_str($v['title'], 15, 0, '...')}}<span class="jc_rt">{{date('Y-m-d',strtotime($v['created_at']))}}</span></a>
- @endif
- @endforeach
- </li>
- <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">
- <ul>
- <li>
- @foreach($gongzhonghao_list as $v)
- <a href="{{$v['is_url']}}" rel="nofollow noopener noreferrer"><b>></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.health.gongzhonghao.index")}}';" style="text-align:center;height:.8rem;line-height:.8rem;background:#fff;">查看更多</div>
- </ul>
- </div>
- </div>
- <!--新闻 end-->
- @endsection
- @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() {
- $('.module-title-nav').removeClass('active');
- $(this).addClass('active');
- let id = $(this).data('id');
- $('.module-box').hide();
- $('#'+id).show();
- });
- </script>
- @endsection
|