online2020.blade.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. @extends('module.layouts.content')
  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/jobfair/newjobfair.css')}}" rel="stylesheet"/>
  7. <link rel="stylesheet" type="text/css" href="{{ theme_asset('app/css/company/company_ajax_dialog.css')}}"/>
  8. <link rel="stylesheet" type="text/css" href="{{ theme_asset('app/css/common_ajax_dialog.css')}}"/>
  9. <link href="{{theme_asset('app/css/jobs/jobs.css')}}" rel="stylesheet"/>
  10. <style>
  11. body{
  12. background: url("{{theme_asset('app/images/2020_jobfair_bg.jpg')}}");
  13. }
  14. .newjobfair,.footer_min_box{
  15. background-color: #fffef1;
  16. }
  17. .newjobfair .jobfairshow_top_info{
  18. width: 1200px;
  19. border: none;
  20. background: url("{{theme_asset('app/images/2020_jobfair_banner.jpg')}}") no-repeat;
  21. height: 290px;
  22. background-size: cover;
  23. }
  24. .newjobfair .jobfairshow_top_info .top_info_des{
  25. padding: 100px 30px 0;
  26. color: #fff;
  27. }
  28. .newjobfair .jobfairshow_top_info .top_info_r .other_info div.t1{
  29. background-image: url("{{theme_asset('app/images/jobfair/icon_com_white.png')}}");
  30. }
  31. .newjobfair .jobfairshow_top_info .top_info_r .other_info div.t2{
  32. background-image: url("{{theme_asset('app/images/jobfair/icon_job_white.png')}}");
  33. }
  34. .newjobfair .jobfairshow_top_info .top_info_r .other_info div.t3{
  35. background-image: url("{{theme_asset('app/images/jobfair/header_icon3.png')}}");
  36. background-repeat: no-repeat;
  37. background-size: 10%;
  38. background-position: 5px;
  39. }
  40. </style>
  41. @endpush
  42. @push('js')
  43. <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak={{ subsite_config('aix.system.map.map.map_ak') }}&s=1"></script>
  44. @endpush
  45. @section('content')
  46. <div class="newjobfair">
  47. {{--banner信息--}}
  48. <div class="jobfairshow_top_info">
  49. <div class="top_info_des">
  50. <div class="top_info_r">
  51. <div class="other_info">
  52. <div class="t1">参会企业:<span>{{$total}}</span>家</div>
  53. <div class="t2">需求人数:<span>{{$total_person}}</span>人</div>
  54. <div class="t3">已对接人数:<span>68</span>人</div>
  55. </div>
  56. </div>
  57. <div class="clear"></div>
  58. </div>
  59. </div>
  60. <div class="com-se-filter" style="margin-top:0;">
  61. <div class="com-se-line">
  62. <div class="csl-left">地标地段</div>
  63. <div class="csl-right">
  64. @if(array_has($city, 'parent'))
  65. <div onclick="javascript:location.href='{{route("active.jobfair.online2020",array_merge($params, array("citycategory"=>$city['parent']['citycategory'])))}}'" class="csl-cell @if(array_has($params, 'citycategory') && $params['citycategory'] ==$city['parent']['citycategory']) select @endif">全晋江</div>
  66. @else
  67. <div onclick="javascript:location.href='{{route("active.jobfair.online2020",array_merge($params, array("citycategory"=>$city['select']['citycategory'])))}}'" class="csl-cell @if(array_has($params, 'citycategory') && $params['citycategory'] ==$city['select']['citycategory']) select @endif">全{{$city['parent']['name']}}</div>
  68. @endif
  69. @if($city)
  70. @foreach($city['list'] as $k=>$district)
  71. <div onclick="javascript:location.href='{{route("active.jobfair.online2020",array_merge($params, array("citycategory"=>$district['citycategory'])))}}'" class="csl-cell @if(array_get($params, 'citycategory') && $params['citycategory'] ==$district['citycategory']) select @endif">{{$district['name']}}</div>
  72. @endforeach
  73. @endif
  74. <div class="clear"></div>
  75. </div>
  76. <div class="clear"></div>
  77. </div>
  78. <div class="com-se-line J_trade">
  79. <div class="csl-left">行业类别</div>
  80. <div class="csl-right">
  81. @if($categories['AIX_trade'])
  82. <div onclick="javascript:location.href='{{route("active.jobfair.online2020",array_merge($params, array("trade"=>"")))}}'" data-code="0" title="不限" class="csl-cell @if(array_get($params,'trade')=='') select @endif">不限</div>
  83. @foreach($categories['AIX_trade'] as $k=>$v)
  84. <div onclick="javascript:location.href='{{route("active.jobfair.online2020",array_merge($params, array("trade"=>$v["id"])))}}'" data-code="{{$v['id']}}" title="{{$v['demand']}}" class="csl-cell @if(array_get($params,'trade')==$v['id']) select @endif">
  85. {{$v['demand']}}
  86. </div>
  87. @endforeach
  88. @endif
  89. <div class="clear"></div>
  90. </div>
  91. <div class="more">
  92. <div class="J_showTrade mbtn close">展开</div>
  93. <script type="text/javascript">
  94. $('.J_trade .csl-cell').each(function(index, el) {
  95. if (index > 15) {
  96. $(this).addClass('for_up');
  97. }
  98. })
  99. var selectIndex = $('.J_trade .csl-cell').index($('.J_trade .csl-cell.select'));
  100. if (selectIndex > 15) {
  101. $('.J_showTrade').removeClass('close');
  102. $('.J_showTrade').text('收起');
  103. $('.for_up').show();
  104. }
  105. $('.J_showTrade').off().on('click', function(event) {
  106. if ($(this).hasClass('close')) {
  107. $(this).removeClass('close');
  108. $(this).text('收起');
  109. $('.for_up').show();
  110. } else {
  111. $(this).addClass('close');
  112. $(this).text('展开');
  113. $('.for_up').hide();
  114. }
  115. })
  116. </script>
  117. </div>
  118. <div class="clear"></div>
  119. </div>
  120. </div>
  121. <div class="com-res-group">
  122. {{--过滤条件--}}
  123. @if($params)
  124. <div class="selected J_selected">
  125. <div class="stit">已选条件</div>
  126. <div class="sc">
  127. @if(array_has($params, 'citycategory'))
  128. @if(array_get($params, 'citycategory'))
  129. <div class="slist" onclick="javascript:location.href='{{route("active.jobfair.online2020",array_merge($params, array("citycategory"=>"")))}}'">
  130. <span>地区类别:</span>
  131. @if($city['select']['citycategory'] == array_get($params, 'citycategory'))
  132. {{$city['select']['name']}}
  133. @else
  134. @foreach($city['list'] as $k=>$v)
  135. @if($v['citycategory'] == array_get($params, 'citycategory'))
  136. {{$v['name']}}
  137. @endif
  138. @endforeach
  139. @endif
  140. </div>
  141. @endif
  142. @endif
  143. {{--行业类别--}}
  144. @if(array_get($params, 'trade'))
  145. <div class="slist" onclick="javascript:location.href='{{route("active.jobfair.online2020",array_merge($params, array("trade"=>"")))}}'">
  146. <span>企业性质:</span>
  147. {{$categories['AIX_trade'][$params['trade']]['demand']}}
  148. </div>
  149. @endif
  150. </div>
  151. <div class="sr">
  152. <div class="empty" onclick="javascript:location.href='{{route("active.jobfair.online2020")}}'">清空</div>
  153. </div>
  154. <div class="clear"></div>
  155. </div>
  156. @endif
  157. </div>
  158. <div class="jobfair_detail_show">
  159. <div class="tabs_show">
  160. <div class="tabs_show_item" id="join_com" style="display: block">
  161. @if(count($res))
  162. <div id="waterfall_main" class="waterfall_main list load_more_body">
  163. @foreach($res as $key=>$val)
  164. <div class="wf_box wf_element">
  165. <div>
  166. <a href="{{ route('jobs.company',['id'=>$val['id']]) }}" target="_blank" rel="nofollow noopener noreferrer" class="comName">{{ $val['companyname'] or '' }}</a>
  167. </div>
  168. <p>
  169. @if(count($val['jobs']))
  170. @foreach($val['jobs'] as $ke => $va)
  171. <a href="{{ route('jobs.show',['id'=>$va['id']]) }}" target="_blank" rel="nofollow noopener noreferrer" title="{{ $va['jobs_name'] }}">{{ $va['jobs_name'] }}({{ $va['amount'] or '若干' }})</a>
  172. @endforeach
  173. @else
  174. <a href="javascript:;" style="color:#999">暂无职位</a>
  175. @endif
  176. </p>
  177. </div>
  178. @endforeach
  179. </div>
  180. @if($more)
  181. <div class="load_more_footer">
  182. <span page="1" >加载更多</span>
  183. </div>
  184. @endif
  185. @endif
  186. </div>
  187. </div>
  188. </div>
  189. {{-- <div class="com-sel-group">--}}
  190. {{-- @if($list->total())--}}
  191. {{-- @foreach($list_items as $key => $val)--}}
  192. {{-- <div class="com-sel-line J_comList">--}}
  193. {{-- <div class="csl-left"><img src="{{$val->logo}}"></div>--}}
  194. {{-- <div class="csl-right">--}}
  195. {{-- <div class="csl-line">--}}
  196. {{-- <div class="csr-left"><a href="{{$val->company_url }}">{{$val->companyname}}</a></div>--}}
  197. {{-- <div class="csr-right" style="display: none;">{{$val->refresh_time}}</div>--}}
  198. {{-- <div class="clear"></div>--}}
  199. {{-- </div>--}}
  200. {{-- <div class="csl-line">--}}
  201. {{-- {{ $val->district_cn }}--}}
  202. {{-- &nbsp;&nbsp;&nbsp;&nbsp;{{$val->nature_cn}}--}}
  203. {{-- &nbsp;&nbsp;&nbsp;&nbsp;{{$val->trade_cn}}--}}
  204. {{-- &nbsp;&nbsp;&nbsp;&nbsp;{{$val->scale_cn}}&nbsp;&nbsp;&nbsp;&nbsp;--}}
  205. {{-- <a href="{{$val->comjobs_url}}" class="n">在招职位({{$val->jobs_count}})</a>--}}
  206. {{-- </div>--}}
  207. {{-- <div class="csl-des">--}}
  208. {{-- {{$val->contents}}--}}
  209. {{-- </div>--}}
  210. {{-- </div>--}}
  211. {{-- <div class="clear"></div>--}}
  212. {{-- </div>--}}
  213. {{-- <div class="clear"></div>--}}
  214. {{-- @endforeach--}}
  215. {{-- <div class="qspage">{{ $list->appends($params)->links('module.widgets.pagination') }}</div>--}}
  216. {{-- @else--}}
  217. {{-- <div class="list_empty_group">--}}
  218. {{-- <div class="list_empty">--}}
  219. {{-- <div class="list_empty_left"></div>--}}
  220. {{-- <div class="list_empty_right">--}}
  221. {{-- <div class="sorry_box">对不起,没有找到符合您条件的企业!</div>--}}
  222. {{-- <div class="stips_box">放宽您的查找条件也许有更多合适您的企业哦~</div>--}}
  223. {{-- </div>--}}
  224. {{-- <div class="clear"></div>--}}
  225. {{-- </div>--}}
  226. {{-- </div>--}}
  227. {{-- @endif--}}
  228. {{-- </div>--}}
  229. </div>
  230. @endsection
  231. @section('script')
  232. <script type="text/javascript" src="{{theme_asset('app/js/jquery.jobslist.js')}}"></script>
  233. <script type="text/javascript" src="{{theme_asset('app/js/jquery.highlight-3.js')}}"></script>
  234. <script type="text/javascript" src="{{theme_asset('app/js/jquery.autocomplete.js')}}"></script>
  235. <script>
  236. $(function(){
  237. // 搜索类型切换
  238. $('.J_sli_jc').click(function() {
  239. $(this).addClass('select').siblings().removeClass('select');
  240. var indexValue = $('.J_sli_jc').index(this);
  241. var typeValue = $.trim($(this).data('type'));
  242. if (typeValue == 'company') {
  243. $('#ajax_search_location').attr('action', "{{route('jobs.companyList', array('list_type'=>'AIX_companylist'))}}");
  244. $('#company_hotword').show();
  245. $('#job_hotword').hide();
  246. $.getJSON("{{route('list.type')}}",{action:'hotword',type:2});
  247. } else {
  248. $('#ajax_search_location').attr('action', "{{route('jobs', array('list_type'=>'AIX_jobslist'))}}");
  249. $('#job_hotword').show();
  250. $('#company_hotword').hide();
  251. $.getJSON("{{route('list.type')}}",{action:'hotword',type:1});
  252. }
  253. $('input[name="search_type"]').val(typeValue);
  254. });
  255. $('.com-sel-line').eq($('.com-sel-line').length-1).addClass('last');
  256. if ($('.J_selected .slist').length) {
  257. $('.J_selected').show();
  258. }
  259. });
  260. var filter = {
  261. expr: function(o){
  262. var cls = this.replace(o.item || ".wf_element"),
  263. leftCls = this.replace(o.leftItem || ".wf_temp"),
  264. rightCls = this.replace(o.rightItem || ".wf_rank");
  265. $.extend($.expr[':'],{
  266. node:function(a){
  267. return $(a).hasClass(cls);
  268. },
  269. leftNode: function(a){
  270. return $(a).hasClass(leftCls);
  271. },
  272. rightNode: function(a){
  273. return $(a).hasClass(rightCls);
  274. }
  275. });
  276. },
  277. replace: function(cls){
  278. var regExp = /[.#]/g,
  279. whitespace = /\s/g;
  280. if(whitespace.test(cls)){
  281. cls = cls.split(' ')[0];
  282. }
  283. return cls.replace(regExp, '');
  284. }
  285. }
  286. function Waterfall(o){
  287. this.target = o.target || $('#waterfall_main');
  288. this.targetItem = o.targetItem || '.wf_box';
  289. this.colWidth = o.colWidth || 0;
  290. this.colCount = o.colCount || 4;
  291. filter.expr(o);
  292. this.init();
  293. }
  294. Waterfall.prototype = {
  295. init:function(){
  296. var self = this,
  297. col = [],
  298. nodes = self.target.find(":node"),
  299. leftNodes = self.target.find(":leftNode"),
  300. rightNodes = self.target.find(":rightNode"),
  301. nodeLen = nodes.length,
  302. leftLen = leftNodes.length,
  303. rightLen = rightNodes.length;
  304. for(var i = 0; i < self.colCount; i++){
  305. col[i] = 0;
  306. if(i == 0 && leftLen){
  307. for(var j = 0; j < leftLen; j++){
  308. col[i] += leftNodes.eq(j).outerHeight(true);
  309. }
  310. }
  311. if(i == self.colCount - 1 && rightLen){
  312. for(var j = 0; j < rightLen; j++){
  313. col[i] += rightNodes.eq(j).outerHeight(true);
  314. }
  315. }
  316. }
  317. nodes.each(function(){
  318. this.h = $(this).outerHeight(true);
  319. if($(this).hasClass(filter.replace(self.targetItem))){
  320. var ming = self.getMinCol(col);
  321. $(this).css({"left": ming * self.colWidth, "top": col[ming]});
  322. col[ming] += this.h;
  323. }
  324. });
  325. self.target.css('height', self.maxHeight(col));
  326. },
  327. setColWidth:function(wid){
  328. this.colWidth = wid;
  329. },
  330. setColCount:function(col){
  331. this.colCount = col;
  332. },
  333. maxHeight:function(arr){
  334. var len = arr.length,temp = arr[0];
  335. for(var i= 1; i < len; i++){
  336. if(temp < arr[i]){
  337. temp = arr[i];
  338. }
  339. }
  340. return temp;
  341. },
  342. getMinCol:function(arr){
  343. var ca = arr,cl = ca.length,temp = ca[0],minc = 0;
  344. for(var ci = 0; ci < cl; ci++){
  345. if(temp > ca[ci]){
  346. temp = ca[ci];
  347. minc = ci;
  348. }
  349. }
  350. return minc;
  351. }
  352. };
  353. var content = $('#waterfall_main');
  354. var item = content.find('.wf_element'),
  355. itemWidth = item.outerWidth(),/*取瀑布流元素宽*/
  356. contentWidth = 1162, /*取容器宽*/
  357. list_sum = parseInt(contentWidth / itemWidth),
  358. list_sum_margin = list_sum - 1, /*取元素间距的值*/
  359. left = (contentWidth - itemWidth * list_sum) / list_sum_margin;
  360. if(itemWidth * list_sum > contentWidth){
  361. list_sum -= 1;
  362. left = contentWidth - itemWidth * list_sum;
  363. }
  364. var colWidth = itemWidth + left;
  365. var waterfall = new Waterfall({
  366. //设定列宽度
  367. "colWidth": colWidth,
  368. //设定显示列数
  369. "colCount": 2
  370. });
  371. content.on('mouseenter', '.wf_box', function(){
  372. $(this).addClass('wf_hov');
  373. }).on('mouseleave', '.wf_box', function(){
  374. $(this).removeClass('wf_hov');
  375. });
  376. @if($more)
  377. /**
  378. * 监听网页滚动事件
  379. */
  380. var f = true;
  381. $(window).on("scroll",function () {
  382. var isShow = $("#join_com").is(":visible");
  383. if($(".load_more_footer span").hasClass("end")){
  384. return false;
  385. }
  386. var h = document.documentElement.clientHeight || document.body.clientHeight;
  387. var sh = document.documentElement.scrollTop || document.body.scrollTop;
  388. var t1 = document.querySelector(".load_more_footer").offsetTop- sh;
  389. //可视区域
  390. if (t1 < h && isShow && f ) {
  391. s();
  392. }
  393. });
  394. var s = function () {
  395. var page = $(".load_more_footer span").attr('page');
  396. @if (array_has($params, 'citycategory'))
  397. var city = '{{array_get($params, 'citycategory')}}';
  398. @else
  399. var city = ''
  400. @endif
  401. @if (array_has($params, 'trade'))
  402. var trade = '{{array_get($params, 'trade')}}';
  403. @else
  404. var trade = ''
  405. @endif
  406. $.ajax({
  407. type:"get",
  408. url:"{{ route('active.jobfair.online2020') }}",
  409. data:{
  410. page:page,
  411. citycategory:city,
  412. trade:trade
  413. },
  414. beforeSend:function () {
  415. f = false;
  416. $(".load_more_footer span").html('正在加载').addClass("loading");
  417. },
  418. success:function (result) {
  419. if(result.status==1){
  420. $(".load_more_body").append(result.data);
  421. $(".load_more_footer span").attr('page',parseInt(page)+1);
  422. $(".load_more_footer span").html('加载更多').removeClass("loading");
  423. waterfall.init();
  424. }else {
  425. $(".load_more_footer span").html('-----没有更多了-----').removeClass("loading").addClass("end");
  426. }
  427. },
  428. complete:function () {
  429. f = true;
  430. }
  431. })
  432. }
  433. @endif
  434. </script>
  435. @endsection