增加一个导航分类

This commit is contained in:
2021-03-03 09:53:54 +08:00
parent 85bb2837a7
commit a58ed43f97
3 changed files with 8 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ return [
'sjljrc' => 69,//省级领军人才梯队 'sjljrc' => 69,//省级领军人才梯队
'yjzdxk' => 68,//院级重点学科 'yjzdxk' => 68,//院级重点学科
'xhqk' => 66,//院级重点学科 'xhqk' => 66,//院级重点学科
'yjsgg' => 74,//预决算公告
], ],
//分类使用的模板 //分类使用的模板
'template' => [ 'template' => [
@@ -20,5 +21,6 @@ return [
], ],
'no_list' => [ 'no_list' => [
19, 19,
74,
], ],
]; ];

View File

@@ -14,10 +14,10 @@
@else @else
<div class="mian-nav-title"> <div class="mian-nav-title">
{{ $category->parent->title }} {{ $parent->title }}
</div> </div>
<ul class="mian-nav-ul"> <ul class="mian-nav-ul">
@foreach (getCateChild($category->parent->id) as $children) @foreach (getCateChild($parent->id) as $children)
<li class="show"> <li class="show">
<a href="{{ $children->link }}">{{ $children->title }}</a> <a href="{{ $children->link }}">{{ $children->title }}</a>
</li> </li>

View File

@@ -24,6 +24,10 @@
<li class="nav-ul-li @if (isset($parent) && $parent->id==config('haai.category.djkxwh')) show @endif"> <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> <a href="{{ getOneCategory(config('haai.category.djkxwh'),'link') }}">{{ getOneCategory(config('haai.category.djkxwh'),'title') }}</a>
</li> </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> </ul>
</div> </div>