linwu 1 rok pred
rodič
commit
fd3b34b163

+ 1 - 0
app/Http/Controllers/Mobile/Content/PolicyController.php

@@ -39,6 +39,7 @@ class PolicyController extends MobileBaseController
 
     public function index(Request $request, $id = '1', $num = '8', $focus = '3', $recommend = '4', $other_num = '5')
     {
+        return redirect(route('mobile.policy.list',['id'=>72]));
         $size = 5;
         $key = $request->input('key');
         $rst = $this->policycategoryService->policy_list($key, $id, '10');

+ 2 - 1
public/themes/default/views/mobile/app/content/policy/index.blade.php

@@ -37,7 +37,8 @@
 {{--                <a data-url="" href="{{route($sub_site.'mobile.new')}}" class="t-btn @if($type_id == '') active font16 @endif">热点推荐</a>--}}
                 @if($categorys_root)
                     @foreach($categorys_root as $k=>$v)
-                        <a data-url="" href="{{route($sub_site.'mobile.policy.list',['id'=>$v->id])}}" class="t-btn @if($roottype_id == $v->id) active font16 @endif">{{$v->categoryname}}</a>
+                        @if($roottype_id == $v->id)<a href="javascript:void(0);" class="t-btn  active font16 ">{{$v->categoryname}}</a>@endif
+                        {{--<a data-url="" href="{{route($sub_site.'mobile.policy.list',['id'=>$v->id])}}" class="t-btn @if($roottype_id == $v->id) active font16 @endif">{{$v->categoryname}}</a>--}}
                     @endforeach
                 @endif
             </div>