媒体报道修改

master
Lee 2022-11-07 13:58:23 +08:00
parent 8e8da67bab
commit 7c415b16f5
2 changed files with 7 additions and 1 deletions

View File

@ -151,6 +151,12 @@ $(function(){
window.location.href = $(this).data('url');
}
})
}else{
$('.news-nav>a').click(function(){
if(!$(this).hasClass('active')){
window.location.href = $(this).data('url');
}
})
}
// 尾部导航

View File

@ -1,6 +1,6 @@
<!-- 新闻导航 -->
<div class="news-nav flex w1360 wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0">
{foreach $childrenCate as $childrenItem}
<a href="javaScript:void(0);" data-url="{:getUri($childrenItem)}" class="bg-col-blue color-white {if $category['id'] == $childrenItem['id']}active{/if}">{$childrenItem['title']}</a>
<a href="javaScript:void(0);" data-url="{:getUri($childrenItem)}" class="{if $category['id'] == $childrenItem['id']}color-white active{/if}">{$childrenItem['title']}</a>
{/foreach}
</div>