index.blade.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. @extends('mobile.module.layouts.health')
  2. @push('meta')
  3. @endpush
  4. @push('css')
  5. <link href="{{ theme_asset('mobile/css/index.css') }}" rel="stylesheet">
  6. <style>
  7. .swiper-container,.swiper-container img{
  8. width: 100%;
  9. }
  10. .nav-list {display:grid;grid-template-columns: 1fr 1fr;}
  11. .nav-list .nav {width:85%;margin:10px auto; padding:20px 0;text-align: center;border-radius: 10px;color:white;text-decoration: none;}
  12. .nav.purple {background: linear-gradient(135deg, #c850c0, #4158d0);}
  13. .nav.blue {background: linear-gradient(135deg, #a1c4fd, #c2e9fb);}
  14. .nav.red {background: linear-gradient(135deg, #ff9a9e, #fad0c4);}
  15. .nav.yellow {background: linear-gradient(135deg, #f6d365, #fda085);}
  16. .nav.green {background: linear-gradient(135deg, #a8e063, #56ab2f);}
  17. .nav.black {background: linear-gradient(135deg, #292a3a, #536976);}
  18. .module-title .module-title-nav {width: 50%;}
  19. #player-container-id{
  20. width: 100%;
  21. height: 0;
  22. padding-bottom: 56.25%; /* 16:9 宽高比 */
  23. position: relative;
  24. display: inline-block;
  25. }
  26. video {
  27. width: 100%;
  28. height: 100%;
  29. position: absolute;
  30. top: 0;
  31. left: 0;
  32. }
  33. </style>
  34. <link href="{{ theme_asset('app/css/swiper.min.css') }}" rel="stylesheet">
  35. <link href="https://web.sdk.qcloud.com/player/tcplayer/release/v5.1.0/tcplayer.min.css" rel="stylesheet"/>
  36. @endpush
  37. @push('js')
  38. <script src="https://web.sdk.qcloud.com/player/tcplayer/release/v5.1.0/tcplayer.v5.1.0.min.js"></script>
  39. @endpush
  40. @section('content')
  41. {{-- 头部--}}
  42. <div class="headernavfixed">
  43. <div class="headernav font18">
  44. <div class="title">
  45. <div class="n-tit-box">
  46. 卫健局
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. {{--轮播图--}}
  52. <div class="swiper-container">
  53. <div class="swiper-wrapper">
  54. <div class="swiper-slide">
  55. <video id="player-container-id" preload="auto" playsinline webkit-playsinline>
  56. </video>
  57. </div>
  58. </div>
  59. </div>
  60. {{-- 导航按钮--}}
  61. <div class="nav-list">
  62. <a href="{{route('mobile.health.jinjiang')}}" class="nav blue">认识晋江</a>
  63. <a href="{{route('mobile.health.hospital.index')}}" class="nav red">医院概况</a>
  64. <a href="{{route('mobile.health.recruit.index')}}" class="nav yellow">招聘列表</a>
  65. <a href="{{route('mobile.health.teach.index')}}" class="nav purple">宣讲会/招聘会报名</a>
  66. <a href="https://lw_test.jinjianghc.com/mobile/jfm/policy1.html" class="nav green">政策服务</a>
  67. <a href="{{route('mobile.health.recruit.quanji')}}" class="nav black">泉州籍卫计人员</a>
  68. </div>
  69. <!--新闻-->
  70. <div class="module">
  71. <div class="module-title font14">
  72. <a href="javascript:;" class="module-title-nav font14 active f-left" data-id="gongzhonghao">晋江资讯</a>
  73. <a href="javascript:;" class="module-title-nav font14 f-left" data-id="emergency">引才动态</a>
  74. <div class="clear"></div>
  75. </div>
  76. <div class="mobile_index_news module-box" id="emergency" style="display: none;">
  77. <ul>
  78. <li>
  79. @foreach($attract_list as $v)
  80. @if(empty($v['is_url']))
  81. <a href="{{route("mobile.health.attract.show")}}?id={{$v['id']}}" 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>
  82. @else
  83. <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>
  84. @endif
  85. @endforeach
  86. </li>
  87. <div onclick="window.location='{{route("mobile.health.attract.index")}}';" style="text-align:center;height:.8rem;line-height:.8rem;background:#fff;">查看更多</div>
  88. </ul>
  89. </div>
  90. <div class="mobile_index_news module-box" id="gongzhonghao">
  91. <ul>
  92. <li>
  93. @foreach($gongzhonghao_list as $v)
  94. <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>
  95. @endforeach
  96. </li>
  97. <div onclick="window.location='{{route("mobile.health.gongzhonghao.index")}}';" style="text-align:center;height:.8rem;line-height:.8rem;background:#fff;">查看更多</div>
  98. </ul>
  99. </div>
  100. </div>
  101. <!--新闻 end-->
  102. @endsection
  103. @section('script')
  104. {{-- <script type="text/javascript" src="{{theme_asset('app/js/swiper.min.js')}}"></script>--}}
  105. <script>
  106. var player = TCPlayer('player-container-id', {
  107. sources: [{
  108. src: '{{ theme_asset('mobile/021622e9b328fade2c7a0f394440fe38.mp4') }}?v=1', // 播放地址
  109. }],
  110. autoplay: true,
  111. licenseUrl: 'https://license.vod2.myqcloud.com/license/v2/1251164517_1/v_cube.license', // license 地址,参考准备工作部分,在视立方控制台申请 license 后可获得 licenseUrl
  112. posterImage: true,
  113. bigPlayButton: true,
  114. poster: "{{ theme_asset('mobile/images/health_thumb.jpg') }}",
  115. });
  116. // 初始化SWiper
  117. // var mySwiper = new Swiper('.swiper-container',{
  118. // autoplay:3000,
  119. // });
  120. $('.module-title-nav').click(function() {
  121. $('.module-title-nav').removeClass('active');
  122. $(this).addClass('active');
  123. let id = $(this).data('id');
  124. $('.module-box').hide();
  125. $('#'+id).show();
  126. });
  127. </script>
  128. @endsection