restaurant.blade.php 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. @extends('mobile.module.layouts.empty')
  2. @push('meta')
  3. @endpush
  4. @push('css')
  5. <link rel="stylesheet" href="{{theme_asset('mobile/css/online2021_special.css')}}">
  6. <link href="{{ theme_asset('mobile/css/jobs.css') }}" rel="stylesheet">
  7. <style>
  8. .drop_content a{color: #666666;text-decoration: none;}
  9. .con-filter .f-box.f-box-trade{
  10. height: 8.7rem;
  11. }
  12. .con-filter .f-box-trade div.f-box-inner{
  13. height: 7rem;
  14. }
  15. .load_more_footer{
  16. width: 100%;
  17. text-align: center;
  18. line-height: 1rem;
  19. color:white;
  20. }
  21. .bottom-nav-bar .nav-bar-cell .bar-cell {
  22. width: 50%;
  23. }
  24. .online2021_title {background-image:url({{theme_asset("mobile/images/online2021/bg_title_restaurant.png")}}) !important;}
  25. .online2021_content {background-image:url({{theme_asset("mobile/images/online2021/bg_restaurant.png")}});}
  26. .online2021_content .btn {width: 75%;align-items: flex-start;justify-content: flex-end;color: #075645;margin-top: 25px;font-weight: bold;background-color: transparent;}
  27. .online2021_content h3 {width: 100%;padding-left: 25%;padding-top:20px;}
  28. .online2021_content .online2021_line {color: black;}
  29. </style>
  30. @endpush
  31. @push('js')
  32. <script src="{{ theme_asset('mobile/js/dropload.min.js') }}"></script>
  33. @endpush
  34. @section('content')
  35. <div class="online2021_header">
  36. <img src="{{theme_asset('mobile/images/spring/header_restaurant.jpg')}}?v=3">
  37. </div>
  38. <div class="online2021_title">
  39. <p>&nbsp;</p>
  40. </div>
  41. <div id="join_com" style="position: relative;top: -40px;">
  42. @if(count($res))
  43. <div class="load_more_body">
  44. @foreach($res as $key=>$val)
  45. <div class="online2021_content">
  46. <h3 class="substring">{{ $val['companyname'] or '' }}</h3>
  47. <p class="online2021_line">
  48. <span class="line_left">招聘岗位</span>
  49. <span class="line_right more"><a href="{{route('mobile.jobs.company',['id'=>$val['id']])}}">更多>></a></span>
  50. </p>
  51. @for($i=0;$i<3;$i++)
  52. <p class="online2021_line">
  53. <span class="line_left substring">{{empty($val['jobs'][$i]) ? '' : $val['jobs'][$i]['jobs_name']}}</span>
  54. <span class="line_right substring">
  55. @if(!empty($val['jobs'][$i]))
  56. @if($val['jobs'][$i]['wage'] == '-1')
  57. 面议
  58. @else
  59. ¥{{$val['jobs'][$i]['wage_min']}}-{{$val['jobs'][$i]['wage_max']}}
  60. @endif
  61. @endif
  62. </span>
  63. </p>
  64. @endfor
  65. <p class="online2021_line end">
  66. @foreach($val['tag_arr'] as $tag)
  67. <span class="tag">{{$tag->demand}}</span>
  68. @endforeach
  69. </p>
  70. <a href="{{route('mobile.jobs.company',['id'=>$val['id']])}}">
  71. <div class="btn">
  72. <img src="{{theme_asset('mobile/images/online2021/bg_btn_restaurant.png')}}" />
  73. 投递简历
  74. </div>
  75. </a>
  76. </div>
  77. @endforeach
  78. </div>
  79. @endif
  80. @if($more)
  81. <div class="load_more_footer">
  82. <span page="1" >加载更多</span>
  83. </div>
  84. @else
  85. <div class="load_more_footer">
  86. <span page="1" >-----没有更多了-----</span>
  87. </div>
  88. @endif
  89. </div>
  90. <div class="bottom-nav-bar-group">
  91. <div class="bottom-nav-bar">
  92. <div class="nav-bar-cell qs-left" style="width: 100%;">
  93. <a href="{{route('mobile.home')}}"
  94. class="bar-cell index @if(url($current_url) == route('mobile.home')) active @endif">
  95. <div class="b-img"></div>
  96. <div class="b-txt font10">首页</div>
  97. </a>
  98. <a href="{{ route('mobile.person.index') }}"
  99. class="bar-cell mine @if(strripos( url($current_url), route('mobile.person.index')) !== false) active @endif">
  100. <div class="b-img"></div>
  101. <div class="b-txt font10">我的</div>
  102. </a>
  103. <div class="clear"></div>
  104. </div>
  105. </div>
  106. </div>
  107. <script type="text/javascript" src="{{theme_asset('mobile/js/QSfilter.js')}}"></script>
  108. <script type="text/javascript" src="{{theme_asset('mobile/js/qsCategory.js')}}"></script>
  109. <script type="text/javascript" charset="utf-8" src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  110. <script src="{{ theme_asset('mobile/js/dropload.min.js') }}"></script>
  111. <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>
  112. @endsection
  113. @section('script')
  114. <script>
  115. function goPage() {
  116. var toSearchPage = "{{route('mobile.active.spring_special')}}";
  117. window.location.href = toSearchPage + '?'+$('#searchForm').serialize();
  118. }
  119. // 除更多和读取缓存之外的下拉列表
  120. $('.f-item-normal').on('click', function () {
  121. var thisType = $(this).data('type');
  122. var thisTitle = $(this).data('title');
  123. var thisCode = $(this).data('code');
  124. $('.f-normal-code-' + thisType).val(thisCode);
  125. $('.f-normal-txt-' + thisType).text(thisTitle);
  126. $('body').removeClass('filter-fixed');
  127. $('.f-box-' + thisType).addClass('qs-hidden');
  128. $('.js-filter').removeClass('active');
  129. $('#f-mask').hide();
  130. goPage();
  131. });
  132. // 点击筛选
  133. $('#f-do-filter').on('click', function () {
  134. goPage();
  135. });
  136. $('.js-filter').on('click', function () {
  137. $('.f-more-content').removeClass('qs-actionsheet-toggle');
  138. $('.f-box-more').removeClass('qs-actionsheet-toggle-left');
  139. var filter = new QSfilter($(this));
  140. document.getElementById('f-mask').ontouchstart = function(e){ e.preventDefault(); }
  141. });
  142. @if($more)
  143. /**
  144. * 监听网页滚动事件
  145. */
  146. var f = true;
  147. $(window).on("scroll",function () {
  148. var isShow = true;//$("#join_com").is(":visible");
  149. if($(".load_more_footer span").hasClass("end")){
  150. return false;
  151. }
  152. var h = document.documentElement.clientHeight || document.body.clientHeight;
  153. var sh = document.documentElement.scrollTop || document.body.scrollTop;
  154. var t1 = document.querySelector(".load_more_footer").offsetTop- sh;
  155. //可视区域
  156. if (t1 < h && isShow && f ) {
  157. s();
  158. }
  159. });
  160. var s = function () {
  161. var page = $(".load_more_footer span").attr('page');
  162. $.ajax({
  163. type:"get",
  164. url:"{{ route('mobile.active.restaurant') }}",
  165. data:{
  166. page:page
  167. },
  168. beforeSend:function () {
  169. f = false;
  170. $(".load_more_footer span").html('正在加载').addClass("loading");
  171. },
  172. success:function (result) {
  173. if(result.status==1){
  174. $(".load_more_body").append(result.data);
  175. // console.log(result.data);
  176. $(".load_more_footer span").attr('page',parseInt(page)+1);
  177. $(".load_more_footer span").html('加载更多').removeClass("loading");
  178. }else {
  179. $(".load_more_footer span").html('-----没有更多了-----').removeClass("loading").addClass("end");
  180. }
  181. },
  182. complete:function () {
  183. f = true;
  184. }
  185. })
  186. }
  187. @endif
  188. </script>
  189. @endsection