detail.blade.php 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. @extends('app.hardware.layout.hardware')
  2. @push('meta')
  3. @endpush
  4. @push('css')
  5. <link rel="stylesheet" href="{{theme_asset('app/css/aio/common.css')}}" />
  6. <link rel="stylesheet" href="{{theme_asset('app/css/aio/joblist/joInformation.css')}}" />
  7. <link rel="stylesheet" href="{{theme_asset('app/css/aio/footer.css')}}" />
  8. <link rel="stylesheet" href="{{theme_asset('app/css/aio/pagers.css')}}" />
  9. @endpush
  10. @push('js')
  11. <script type="text/javascript" src="{{theme_asset('app/js/aio/myDiv.js')}}"></script>
  12. @endpush
  13. @section('content')
  14. <div class="jobinformation-content">
  15. <div class="jobinformation-body">
  16. <div class="content-top-infolist">
  17. <div class="top-infolist-warpper">
  18. <ul class="top-infolist-ul">
  19. <li class="infolist-ul-li">
  20. <table class="infolist-ul-li-table infolist-ul-li-table-top">
  21. <tr>
  22. <td class="jname"><span class="li-table-top li-table-info">{{$info->jobs_name}}</span></td>
  23. <td class="jwage"><span class="li-table-top li-table-info">{{$info->wage_cn}}</span></td>
  24. <td align="right"><span class="li-table-top li-table-info">{{date('Y-m-d', strtotime($info->created_at))}}</span></td>
  25. </tr>
  26. <tr>
  27. <td colspan="3">
  28. {{$info->company_name}}
  29. &nbsp;&nbsp;<span class="info-style-one">{{$info->company->scale_cn}}</span>
  30. &nbsp;|&nbsp;
  31. <span class="info-style-one">{{$info->company->nature_cn}}</span>
  32. &nbsp;|&nbsp;
  33. <span class="info-style-one">{{$info->company->trade_cn}}</span>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td><span class="li-table-top li-table-info">@if($info->sex ==0){{"性别"}}@endif{{$info->sex_cn}}/{{$info->education_cn == '不限'?'学历不限':$info->education_cn}}/{{$info->experience_cn == '不限'?'经验不限':$info->experience_cn}}</span></td>
  38. <td><span class="li-table-top li-table-info">{{$info->district_cn}}</span></td>
  39. <td>
  40. <span class="li-table-top li-table-info">咨询热线:
  41. @if($info->company->landline_tel && $info->company->landline_tel != '--')
  42. {{$info->company->landline_tel}}
  43. @else
  44. {{$info->company->mobile}}
  45. @endif
  46. </span>
  47. </td>
  48. </tr>
  49. </table>
  50. <table class="infolist-ul-li-table-center">
  51. <tr>
  52. <td>
  53. <div class="table-center-left">
  54. @if($info->tag_cn)
  55. @foreach($info->tag_cn as $k=>$v)
  56. <span class="li-table-tip">{{$v}}</span>
  57. @endforeach
  58. @endif
  59. </div>
  60. </td>
  61. </tr>
  62. </table>
  63. </li>
  64. </ul>
  65. <div class="top-infolist-info li-table-info">
  66. <div style="font-size:24px;;color:#000000;">职位描述</div>
  67. <div>{!! nl2br($info->jobs_content) !!}</div>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="printbtn-content">
  72. <a data-jid="{{$info->id}}" class="apply_jobs">
  73. <button class="printbtn">申请职位</button>
  74. </a>
  75. </div>
  76. </div>
  77. <div class="newjoblist-footer">
  78. @include('app.hardware.layout.footer')
  79. </div>
  80. </div>
  81. <script type="text/javascript" src="{{theme_asset('app/js/aio/countdown.js')}}"></script>
  82. @endsection
  83. @section('script')
  84. <script>
  85. var isVisitor = 0;
  86. var utype = 0;
  87. @if($user)
  88. isVisitor = 1;
  89. @if($user->utype == 1)
  90. utype = 1;
  91. @else
  92. utype = 2;
  93. @endif
  94. @endif
  95. function apply_job(jid){
  96. var url = "{{route('hardware.aio.job.apply')}}";
  97. $.getJSON(url,{jobs_id:jid},function(result){
  98. closeDialog();
  99. if(result.status==1){
  100. dialogDiv(result.html,'确定','closeDialog');
  101. return false;
  102. }else if(result.status==2){
  103. dialogDiv(result.html,'确定','apply_job_resume','取消');
  104. } else {
  105. dialogDiv(result.html,'确定','closeDialog');
  106. return false;
  107. }
  108. }).error(function(error){
  109. closeDialog();
  110. if(error.status == 500 || error.status == 400){
  111. dialogDiv(error.responseJSON.message,'关闭','closeDialog');
  112. }else{
  113. dialogDiv('投递失败','关闭','closeDialog');
  114. }
  115. });
  116. }
  117. function apply_job_resume(){
  118. var jid = $('#apply_jobs_id').val();
  119. var resume_id = $('#apply_resume_id').val();
  120. var url = "{{route('hardware.aio.job.apply')}}";
  121. $.getJSON(url,{jobs_id:jid,resume_id:resume_id},function(result){
  122. //console.log(result);
  123. closeDialog();
  124. if(result.status==1){
  125. dialogDiv(result.html,'确定','closeDialog');
  126. return false;
  127. }else {
  128. dialogDiv(result.html,'关闭','closeDialog');
  129. return false;
  130. }
  131. }).error(function(error){
  132. closeDialog();
  133. if(error.status == 500 || error.status == 400){
  134. var response=$.parseJSON(error.response);
  135. if (error.status==422) {//验证错误
  136. $.each(response.errors,function (key,val) {
  137. dialogDiv(val[0],'关闭','closeDialog');
  138. return false;
  139. });
  140. }
  141. else if(error.status==400) {//业务错误
  142. dialogDiv(JSON.parse(error.responseText).message,'关闭','closeDialog');
  143. return false;
  144. }
  145. }else{
  146. dialogDiv('投递失败','关闭','closeDialog');
  147. return false;
  148. }
  149. });
  150. }
  151. function closeDialog(){
  152. $(".white_content").remove();
  153. $(".black_overlay").remove();
  154. }
  155. function toIndex() {
  156. window.location.href = "{{route('hardware.aio.login')}}";
  157. return false;
  158. }
  159. $(document).ready(function () {
  160. $(".apply_jobs").on('click',function(){
  161. if(isVisitor>0){
  162. if(utype == 1){
  163. dialogDiv('请登录个人账号','确定','toIndex');
  164. return false;
  165. }else{
  166. var htmltwo = '<div id="applyDiv" class="white_content" style="display:block;">'
  167. +'<div class="MyDiv-header">'
  168. +'<span class="divtitle">确认申请这个职位吗?</span>'
  169. +'</div>'
  170. +'<div class="clear"></div>'
  171. +'<div class="MyDiv-info">'
  172. +'<button class="dialog-btn dialog-btn-left" onclick="apply_job('+$(this).data("jid")+')">确定</button>'
  173. +'<button class="dialog-btn dialog-btn-right" onclick="$(this).parent().parent().remove();$(\'.black_overlay\').remove();">取消</button>'
  174. +'<div style="clear: both"></div></div></div>'
  175. +'<div id="fade" class="black_overlay" style="display:block;"></div>';
  176. $("#dialogDiv-content").append(htmltwo);
  177. }
  178. } else {
  179. //跳转到登录页面
  180. dialogDiv('请登录','确定','toIndex');
  181. return false;
  182. }
  183. });
  184. });
  185. </script>
  186. @endsection