二级栏目高亮展示

master
Lee 2022-11-16 15:44:39 +08:00
parent 0ea7a5f24f
commit f5ea743345
2 changed files with 8 additions and 5 deletions

View File

@ -70,7 +70,6 @@
}
.nav>.nav-item .sub-nav-item{
color: #ffffff;
line-height: 60px;
padding: 0 25px;
white-space:nowrap;
@ -2426,7 +2425,8 @@
padding: 0 25px;
}
.nav>.nav-item .sub-nav-item a:hover{
.nav>.nav-item .sub-nav-item a:hover,
.nav>.nav-item .sub-nav-item a.cur{
color: #ffffff;
}
@ -2924,6 +2924,9 @@
color: #666666;
font-size: .28rem;
}
.nav>.nav-item .sub-nav-item a.cur{
color: #09357f;
}
.nav>.nav-item.active>a{
width: 100%;
@ -3439,11 +3442,11 @@
.position-nav-bg01 {
background-color: #ffffff !important;
padding-top: .12rem;
padding-top: .1rem;
}
.pull-section-wap{
padding-top: .12rem;
padding-top: .1rem;
}
.sub-nav-bg-01{

View File

@ -30,7 +30,7 @@ $bgImg = request()->controller() == 'Index' ? '' : ($bgImg ?: $defaultBg);
{if !empty($menusitem['children'])}
<div class="sub-nav-item">
{foreach $menusitem['children'] as $child}
<a href="{$child['url'] ?: $child['route']}">{$child.title ?? ''}</a>
<a href="{$child['url'] ?: $child['route']}" class="{if $categoryId == $child['id']} cur {/if}">{$child.title ?? ''}</a>
{/foreach}
</div>
{/if}