com_pms_consult.blade.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. @extends('mobile.module.layouts.content')
  2. @push('meta')
  3. @endpush
  4. @push('css')
  5. <link rel="stylesheet" href="{{theme_asset('mobile/css/company.css')}}">
  6. <style>
  7. .drop_content{padding-bottom: 1rem;}
  8. </style>
  9. @endpush
  10. @push('js')
  11. <script src="{{ theme_asset('mobile/js/dropload.min.js') }}"></script>
  12. @endpush
  13. @section('content')
  14. <div class="qs-top-nav x2 list_height">
  15. <div class="n-cell " onClick="window.location='{{ route($sub_site.'mobile.firm.com.psm') }}'">系统消息<div class="b-line"></div></div>
  16. <div class="n-cell active" onClick="window.location='{{ route($sub_site.'mobile.firm.com.psm.consult') }}'">求职者咨询<div class="b-line"></div></div>
  17. <div class="clear"></div>
  18. </div>
  19. <div class="split-block"></div>
  20. @if($pms->total())
  21. <div class="drop_content">
  22. <div class="add_data">
  23. @foreach($pms as $key => $val)
  24. <div class="pmslist-img for-event" onClick="window.location='{{ route($sub_site.'mobile.firm.com.psm.consult.show',['id'=>$val->parent_id]) }}'">
  25. <div class="pic"><img src="{{ theme_asset('mobile/images/206.png') }}"></div>
  26. <div class="describe font12">
  27. <div class="tit font14">求职者咨询
  28. <div class="time font12">{{ date('Y-m-d H:i',strtotime($val->created_at)) }}</div>
  29. </div>
  30. <div class="txt substring">
  31. {!! $val->message !!}
  32. </div>
  33. </div>
  34. <div class="arrow"></div>
  35. <div class="clear"></div>
  36. </div>
  37. @endforeach
  38. </div>
  39. </div>
  40. @else
  41. <div class="list-empty">
  42. 暂时没有求职者咨询!
  43. </div>
  44. @endif
  45. @endsection
  46. @section('script')
  47. <script type="text/javascript">
  48. $(function () {
  49. // 页数
  50. var page = 1;
  51. // dropload
  52. $('.drop_content').dropload({
  53. scrollArea : window,
  54. loadDownFn : function(me){
  55. page++;
  56. $.ajax({
  57. type: 'GET',
  58. url: '{{route($sub_site.'mobile.firm.com.psm.consult')}}?page='+page,
  59. dataType: 'json',
  60. success: function(result){
  61. if (result.status ==1) {
  62. $('.add_data').append(result.data);
  63. } else {
  64. // 锁定
  65. me.lock();
  66. // 无数据
  67. me.noData();
  68. }
  69. me.resetload();
  70. },
  71. error: function(xhr, type){
  72. // 即使加载出错,也得重置
  73. me.resetload();
  74. }
  75. });
  76. },
  77. threshold : 50
  78. });
  79. });
  80. </script>
  81. @endsection