show.blade.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 rel="stylesheet" type="text/css" href="{{ theme_asset('app/css/help/help.css') }}"/>
  7. @endpush
  8. @push('js')
  9. @endpush
  10. {{--@include('module.section.header_min')--}}
  11. {{--@include('module.section.content_header')--}}
  12. @section('content')
  13. <div class="help_banner">
  14. @if($ads->toArray())
  15. @foreach($ads as $k=>$ad)
  16. {!! $ad->html !!}
  17. @endforeach
  18. @else
  19. <img src="{{theme_asset('app/images/banner/help.jpg')}}" border="0">
  20. @endif
  21. </div>
  22. <div class="helpshow help">
  23. <div class="l">
  24. <div class="catbox">
  25. @if($categories->toArray())
  26. @foreach($categories as $k=>$v)
  27. <div class="J_helplist help_category @if($v->id == $help_info->parent_id) open @endif">
  28. <div class="titl J_helplistT">{{$v->category_name}}</div>
  29. <ul class="link_gray6 help_category_list J_helplistG">
  30. @if($v->children->toArray())
  31. @foreach($v->children as $i=>$child)
  32. <li><a @if($child->id == $help_info->type_id) class="select" @endif href="{{route('help.list',['id'=>$child->id])}}">{{$child->category_name}}</a></li>
  33. @endforeach
  34. @endif
  35. </ul>
  36. </div>
  37. @endforeach
  38. @endif
  39. </div>
  40. </div>
  41. <div class="r">
  42. <div class="main">
  43. <div class="titl">{{$help_info->title}}</div>
  44. <div class="txt">
  45. {!! $help_info->content !!}
  46. </div>
  47. </div>
  48. </div>
  49. <div class="clear"></div>
  50. </div>
  51. {{-- 页脚 --}}
  52. {{--@include('module.section.content_footer')--}}
  53. @endsection
  54. @section('script')
  55. <script>
  56. // 左侧菜单展开收起
  57. $('.J_helplistT').click(function() {
  58. var $thisParent = $(this).closest('.J_helplist');
  59. $thisParent.toggleClass('open');
  60. if ($thisParent.hasClass('open')) {
  61. $('.J_helplist.open').not($thisParent).each(function(index, el) {
  62. $(this).removeClass('open');
  63. });
  64. };
  65. });
  66. </script>
  67. @endsection