index.blade.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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/feature/feature.css') }}" rel="stylesheet">
  7. <link href="{{ theme_asset('app/css/paginationnew.css') }}" rel="stylesheet">
  8. <style type="text/css">
  9. html{overflow:hidden}
  10. body{height:100%;overflow:auto}
  11. .ab{position:absolute;top:700px;left:200px;}
  12. .right-content-images img {
  13. width: 219px;
  14. height: 216px;
  15. }
  16. </style>
  17. @endpush
  18. @push('js')
  19. @endpush
  20. @section('content')
  21. <!-- 头部背景图-->
  22. <div>
  23. <div class="part-one part-one-bg">
  24. <img lowsrc="{{theme_asset('app/images/feature-partone-background-s.gif')}}" src="{{theme_asset('app/images/feature-partone-background.png')}}" width="100%" height="347px"/>
  25. </div>
  26. <div class="part-two">
  27. <!-- 隐藏域-->
  28. <input id="selected-li" type="hidden" value="{{$type_id}}">
  29. <!-- 左侧菜单-->
  30. <div id="fixed" class="leftmenu">
  31. @if($featureSorts)
  32. @foreach($featureSorts as $k=>$val)
  33. <ul @if($k==0)class="leftmenuone" id="leftmenuone"@endif @if($k==1)class="leftmenutwo" id="leftmenutwo"@endif @if($k==2)class="leftmenutwo" id="leftmenutwo"@endif>
  34. <li class="li-header">
  35. <a href="{{route('feature',array('parentid'=>$val->id))}}" style="color: #fff;"><span>{{$val->categoryname}}</span></a>
  36. </li>
  37. @if($val["children"])
  38. @foreach($val["children"] as $kk=>$vall)
  39. <li name="child-li" class="li-content" id="{{$vall->id}}">
  40. <a href="{{route('feature',array('type_id'=>$vall->id))}}"><span>{{$vall->categoryname}}</span></a>
  41. </li>
  42. @endforeach
  43. @endif
  44. </ul>
  45. @endforeach
  46. @endif
  47. </div>
  48. <div class="right-content">
  49. <!-- 数据展示-->
  50. @if($rcinfos && count($rcinfos)>0)
  51. <ul class="right-content-ul">
  52. @foreach($rcinfos as $k=>$val)
  53. <a href="{{route('feature.show',array('id'=>$val->id))}}">
  54. <li class="right-content-li box">
  55. <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
  56. <line class="top" x1="0" y1="0.5" x2="235" y2="0.5"/>
  57. <line class="left" x1="0.5" y1="392" x2="0.5" y2="0"/>
  58. <line class="bottom" x1="233" y1="392.5" x2="0" y2="392.5"/>
  59. <line class="right" x1="232.4" y1="0" x2="232.4" y2="392"/>
  60. </svg>
  61. <div class="right-content-images">
  62. <img src="{{upload_asset($val->photo)}}">
  63. </div>
  64. <div class="right-content-infomation">
  65. <h3>{{$val->occupation}}</h3>
  66. <p class="feature-title">{{$val->name}}</p>
  67. <p>{{$val->summary}}</p>
  68. </div>
  69. </li></a>
  70. @endforeach
  71. @else
  72. </ul>
  73. @endif
  74. <!-- 暂无资讯提示框-->
  75. <div class="list_empty_group">
  76. <div class="list_empty">
  77. <div class="list_empty_left"></div>
  78. <div class="list_empty_right">
  79. <div class="sorry_box">资料更新中。。。敬请期待!</div>
  80. </div>
  81. <div class="clear"></div>
  82. </div>
  83. </div>
  84. <div class="clear"></div>
  85. <hr class="ul-bottom">
  86. <!-- 分页-->
  87. {{-- <div class="navbar">--}}
  88. {{-- <ul class="pagination" title="分页列表">--}}
  89. {{-- <!-- <li class="totalAnnal">总记录数:{$pages['mun']}</li>--}}
  90. {{-- <li class="totalPage">总页数:{$pages['limt']}</li>--}}
  91. {{-- <li class="currentPage">当前页:<b>{:I('get.page',1,'intval')}</b></li>-->--}}
  92. {{-- <li class="firstPage <if condition='I("get.page",1,"intval") eq 1 '>currentState</if>">--}}
  93. {{-- <if condition='I("get.page",1,"intval") eq 1 '>--}}
  94. {{-- <a href="javascript::" title="首页">首页</a>--}}
  95. {{-- <else />--}}
  96. {{-- <a href="{:P(array('page'=>1))}" title="首页">首页</a>--}}
  97. {{-- </if>--}}
  98. {{-- </li>--}}
  99. {{-- <li class="previousPage <if condition='I("get.page",1,"intval")-1 eq 0 '>currentState</if>"">--}}
  100. {{-- <if condition='I("get.page",1,"intval")-1 eq 0 '>--}}
  101. {{-- <a href="javascript::" title="前一页">前一页</a>--}}
  102. {{-- <else />--}}
  103. {{-- <a href="{:P(array('page'=>I('get.page',1,'intval')-1))}" title="前一页">前一页</a>--}}
  104. {{-- </if>--}}
  105. {{-- </li>--}}
  106. {{-- <li>--}}
  107. {{-- <ol>--}}
  108. {{-- <for start="1" end="$pages['limt']+1">--}}
  109. {{-- <if condition='I("get.page",1,"intval") eq $i '>--}}
  110. {{-- <li class="currentState" title="当前页"><a href="javascript:;">{$i}</a></li>--}}
  111. {{-- <else />--}}
  112. {{-- <li><a title="转到第{$i}页" href="{:P(array('page'=>$i))}">{$i}</a></li>--}}
  113. {{-- </if>--}}
  114. {{-- </for>--}}
  115. {{-- </ol>--}}
  116. {{-- </li>--}}
  117. {{-- <li class="nextPage" <if condition='I("get.page",1,"intval") eq $pages["limt"] '>currentState</if>">--}}
  118. {{-- <if condition='I("get.page",1,"intval") eq $pages["limt"] '>--}}
  119. {{-- <a href="javascript:;" title="后一页">后一页</a>--}}
  120. {{-- <else />--}}
  121. {{-- <a href="{:P(array('page'=>I('get.page',1,'intval')+1))}" title="后一页">后一页</a>--}}
  122. {{-- </if>--}}
  123. {{-- </li>--}}
  124. {{-- <li class="lastPage" <if condition='I("get.page",1,"intval") eq $pages["limt"] '>currentState</if>">--}}
  125. {{-- <if condition='I("get.page",1,"intval") eq $pages["limt"] '>--}}
  126. {{-- <a href="javascript::" title="尾页">尾页</a>--}}
  127. {{-- <else />--}}
  128. {{-- <a href="{:P(array('page'=>$pages['limt']))}" title="尾页">尾页</a>--}}
  129. {{-- </if>--}}
  130. {{-- </i>--}}
  131. {{-- </ul>--}}
  132. {{-- </div>--}}
  133. <div class="qspage">{{ $rcinfos->links('module.widgets.pagination') }}</div>
  134. </div>
  135. </div>
  136. </div>
  137. <div class="clear"></div>
  138. @endsection
  139. @section('script')
  140. <script type="text/javascript" src="{{theme_asset('app/js/jquery.SuperSlide.2.1.2.js')}}"></script>
  141. <script>
  142. $(function(){
  143. //点击左侧导航加选中样式
  144. var selectedid = $("#selected-li").val();
  145. var li_array = document.getElementsByName("child-li");
  146. for(var i=0; i<li_array.length; i++ ){
  147. if(li_array[i].id==selectedid){
  148. var childid = "#"+li_array[i].id;
  149. var parentid = $(childid).parent().attr('id');
  150. if(parentid=="leftmenuone"){
  151. $(childid).find("span").css("color","#ed7746");
  152. }else if(parentid=="leftmenutwo"){
  153. $(childid).find("span").css("color","#dd4250");
  154. }
  155. }
  156. }
  157. //判断是否有展示数据,没有则提示无讯息
  158. if($('.right-content-ul').is(':has(*)')==false){
  159. $(".part-two .list_empty_group").show();
  160. $(".part-two .pagination").hide();
  161. $(".part-two .ul-bottom").hide();
  162. }
  163. });
  164. </script>
  165. @endsection