增加一个导航分类
This commit is contained in:
@@ -14,10 +14,10 @@
|
||||
|
||||
@else
|
||||
<div class="mian-nav-title">
|
||||
{{ $category->parent->title }}
|
||||
{{ $parent->title }}
|
||||
</div>
|
||||
<ul class="mian-nav-ul">
|
||||
@foreach (getCateChild($category->parent->id) as $children)
|
||||
@foreach (getCateChild($parent->id) as $children)
|
||||
<li class="show">
|
||||
<a href="{{ $children->link }}">{{ $children->title }}</a>
|
||||
</li>
|
||||
|
||||
@@ -24,6 +24,10 @@
|
||||
<li class="nav-ul-li @if (isset($parent) && $parent->id==config('haai.category.djkxwh')) show @endif">
|
||||
<a href="{{ getOneCategory(config('haai.category.djkxwh'),'link') }}">{{ getOneCategory(config('haai.category.djkxwh'),'title') }}</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-ul-li @if (isset($parent) && $parent->id==config('haai.category.yjsgg')) show @endif">
|
||||
<a href="{{ getOneCategory(config('haai.category.yjsgg'),'link') }}">{{ getOneCategory(config('haai.category.yjsgg'),'title') }}</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user