增加一个导航分类
This commit is contained in:
@@ -13,6 +13,7 @@ return [
|
||||
'sjljrc' => 69,//省级领军人才梯队
|
||||
'yjzdxk' => 68,//院级重点学科
|
||||
'xhqk' => 66,//院级重点学科
|
||||
'yjsgg' => 74,//预决算公告
|
||||
],
|
||||
//分类使用的模板
|
||||
'template' => [
|
||||
@@ -20,5 +21,6 @@ return [
|
||||
],
|
||||
'no_list' => [
|
||||
19,
|
||||
74,
|
||||
],
|
||||
];
|
||||
@@ -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