show.blade.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. @extends('app.hardware.layout.hardware')
  2. @push('meta')
  3. @endpush
  4. @push('css')
  5. <link href="{{ theme_asset('app/css/common.css') }}" rel="stylesheet">
  6. <link href="{{theme_asset('app/css/jobs/jobs_show.css')}}" rel="stylesheet"/>
  7. <link href="{{theme_asset('app/css/common_ajax_dialog.css')}}" rel="stylesheet"/>
  8. <link rel="stylesheet" type="text/css" href="{{ theme_asset('app/css/tv/tv.css') }}"/>
  9. @endpush
  10. @push('js')
  11. @endpush
  12. @section('content')
  13. <div class="top">
  14. <table border="0" cellspacing="0" cellpadding="0" style="width:100%;height:100%;">
  15. <tr>
  16. <td align="center" style="border-bottom:10px solid #01429e;">
  17. <div style="display:inline-block;position:relative;top:-12px;">
  18. <span id="position_id" style="text-transform:uppercase;margin-right:10px;font-size: 44px;color: #fff;background:url({{theme_asset('app/images/hardware/tv/position_id_bg.png')}}) no-repeat center;background-size:100% 100%;padding:5px 20px;">
  19. {{$position}}
  20. </span>
  21. </div>
  22. <div style="max-width: 750px;display:inline-block;position:relative;top:5px;">
  23. <div id="wrapc">
  24. <ul id="companyname" style="margin:0;padding:0;position: inherit;">
  25. <li style="text-align:left;"><span id="com_name">{{$company_info->short_name or $company_info->companyname}}</span></li>
  26. </ul>
  27. </div>
  28. </div>
  29. <input type="hidden" id="positionid" value=""/>
  30. <div style="clear: both"></div>
  31. </td>
  32. </tr>
  33. </table>
  34. </div>
  35. <div class="container cf">
  36. <div class="left">
  37. <div class="container_title">公司简介</div>
  38. <div id="des" style="line-height: 25px;">
  39. <div>
  40. <div class="listcontents" style="height:500px">
  41. <div class="cc">
  42. <div class="item company_profile" style="font-size: 20px;">
  43. {!! nl2br($company_info->contents) !!}
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <div style="position:absolute;font-size: 20px;bottom:50px;margin-left: 10px;width:48%;word-break: break-all;word-wrap: break-word;">
  50. <div id="address">联系地址:{{$company_info->address}}</div>
  51. <div id="telephone">电话:{!! $company_info->landline_tel ? $company_info->landline_tel : $company_info->mobile !!}({{$company_info->contact}})</div>
  52. </div>
  53. </div>
  54. <div class="right">
  55. <div class="container_title">招聘职位</div>
  56. <div id="marquee4">
  57. <div class="list">
  58. <div class="cc" id="jobcontent" style="font-size: 20px;">
  59. <div class="ss">
  60. @foreach($jobs as $key=>$job)
  61. <div class="item">
  62. <span class="col1">{{$job->jobs->jobs_name}}</span>(@if($job->jobs->amount)
  63. {{$job->jobs->amount}}人)
  64. @else
  65. 若干人)
  66. @endif<br>
  67. 薪资水平:{{$job->jobs->wage_cn}}<br>
  68. 工作经验:{{$job->jobs->experience_cn or '不限'}}<br>
  69. 学历:{{$job->jobs->education_cn or '不限'}};年龄:{{$job->jobs->age_cn}}<br>
  70. 职位要求:{{$job->jobs->jobs_content or '不限'}}
  71. </div>
  72. @endforeach
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. <div id="other" style="position:absolute;bottom:0;left:0;border-top:2px solid #255abd;width:100%;font-size: 20px; background-color:#7f7f7f;color:#fff;">
  80. <style>
  81. .listcontents .company_profile{height: 500px;font-size: 20px;display:-webkit-box;-webkit-box-orient:vertical; -webkit-line-clamp:20;overflow:hidden;text-overflow: ellipsis;}
  82. @-webkit-keyframes move
  83. {
  84. 0%{
  85. left:0;
  86. }
  87. 100%
  88. {
  89. left:0px;
  90. }
  91. }
  92. .more_job{overflow:hidden;height: 45px;width: 100%;}
  93. #marquee2{ position: relative;overflow:hidden;height: 45px;width: auto;}
  94. #wrap{ position:absolute;left:0; top:0;}
  95. #listother{ position:absolute;left:0;top:0;margin:0;padding:0; -webkit-animation:80s move infinite linear; width:300%;}
  96. #listother li{ list-style:none; text-align:center; float:left;line-height:45px;}
  97. #wrap:hover #list{ -webkit-animation-play-state:paused;}
  98. .other_title{
  99. background-color:#fff;
  100. color:#255abd;
  101. float:left;
  102. padding:0 10px;
  103. line-height:45px;
  104. }
  105. </style>
  106. <div class="more_job">
  107. <div class="other_title">更多职位:</div>
  108. <div id="marquee2">
  109. <div id="wrap">
  110. <div id="list_more">
  111. <ul class="listother">
  112. @foreach($jobs as $key=>$job)
  113. <li>{{$job->jobs->jobs_name}}</li>
  114. @endforeach
  115. </ul>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. @endsection
  122. @section('script')
  123. <script>
  124. $(function () {
  125. setInterval(function(){
  126. var url = "{{route('hardware.tv.ischange')}}"+'?type=tv&jobfair_id='+"{{$jobfair_id}}"+'&company_id='+"{{$company_info->id}}";
  127. $.get(url, function (data) {
  128. if (data.data.status == 1)
  129. {
  130. window.location.reload()
  131. }
  132. })
  133. }, 30000);
  134. });
  135. function addKeyFrames(y){
  136. var style = document.createElement('style');
  137. style.type = 'text/css';
  138. var keyFrames = '\
  139. @-webkit-keyframes rowup { \
  140. 0% { \
  141. -webkit-transform: translate3d(0, 0, 0);\
  142. transform: translate3d(0, 0, 0);\
  143. }\
  144. 100% { \
  145. -webkit-transform: translate3d(0, A_DYNAMIC_VALUE, 0);\
  146. transform: translate3d(0, A_DYNAMIC_VALUE, 0);\
  147. }\
  148. }\
  149. @keyframes rowup { \
  150. 0% { \
  151. -webkit-transform: translate3d(0, 0, 0);\
  152. transform: translate3d(0, 0, 0);\
  153. }\
  154. 100% { \
  155. -webkit-transform: translate3d(0, A_DYNAMIC_VALUE, 0);\
  156. transform: translate3d(0, A_DYNAMIC_VALUE, 0);\
  157. }\
  158. }';
  159. style.innerHTML = keyFrames.replace(/A_DYNAMIC_VALUE/g, y);
  160. document.getElementsByTagName('head')[0].appendChild(style);
  161. }
  162. $(function(){
  163. html = document.querySelector('.list .cc .ss').innerHTML; // 复制一份数据
  164. var height = document.querySelector('.list .ss').offsetHeight; // 一份数据的高度
  165. if(height >= 500 ){
  166. document.querySelector('.list .cc').innerHTML = html+html; // 复制一份数据
  167. addKeyFrames( '-'+height+'px' ); // 设置keyframes
  168. document.querySelector('.list .cc').className += ' rowup'; // 添加 rowup
  169. document.querySelector('.list .cc').style.animationDuration= parseInt((height/500)*80)+"s";
  170. }
  171. //更多职位滚动
  172. function move(){
  173. var speed = -1;
  174. var race_notice_p = document.getElementById('marquee2');
  175. var race_notice_s = document.getElementById('wrap');
  176. var p = document.getElementById('list_more');
  177. var length = p.offsetWidth;
  178. p.innerHTML +=p.innerHTML;
  179. function move_do(){
  180. if(race_notice_s.offsetLeft < - length){//重新开始
  181. race_notice_s.style.left=0;
  182. }
  183. race_notice_s.style.left = race_notice_s.offsetLeft + speed +'px';
  184. }
  185. setInterval(move_do,100);
  186. }
  187. var ulWidth = document.querySelector('.listother').offsetWidth; //列表宽度
  188. //超出才滚动
  189. if(ulWidth>=(window.innerWidth-130)){
  190. move();
  191. }
  192. });
  193. </script>
  194. @endsection