切换鲜果修改

master
Lee 2022-11-04 17:26:50 +08:00
parent fc56f93b2a
commit 530e2ca961
3 changed files with 45 additions and 11 deletions

View File

@ -3502,6 +3502,7 @@
height: .1rem;
background-image: url(/static/web/images/icon/icon-foot-arrow.png);
background-size: 100%;
filter: grayscale(100%);
}
.management-team-nav>span.active {
@ -3517,6 +3518,7 @@
background-image: url(/static/web/images/icon/icon-foot-arrow.png);
background-size: 100%;
transform: rotateZ(180deg);
filter: grayscale(0);
}
.management-team-item {
@ -3993,6 +3995,7 @@
background-color: #ffffff;
color: #333333;
margin-right: 0;
border-bottom: 1px solid #f5f5f5;
}
.news-nav>a::after {
content: "";
@ -4001,6 +4004,7 @@
height: .1rem;
background-image: url(/static/web/images/icon/icon-foot-arrow.png);
background-size: 100%;
filter: grayscale(100%);
}
.news-nav>a.active {
@ -4016,16 +4020,17 @@
background-image: url(/static/web/images/icon/icon-foot-arrow.png);
background-size: 100%;
transform: rotateZ(180deg);
filter: grayscale(0);
}
.news-first-bg {
padding-bottom: .1rem;
padding-bottom: .2rem;
}
.news-first {
flex-wrap: wrap;
padding: 0 0 .3rem;
background-color: #ffffff !important;
padding: .2rem;
background-color: #f5f5f5 !important;
}
.news-first .img {
@ -4071,7 +4076,7 @@
}
.news-list {
padding-top: 0;
padding: 0 .24rem;
margin-top: -.12rem !important;
}

View File

@ -113,7 +113,22 @@ $(function(){
// 管理团队切换
if($('.management-team-list').length){
$('.management-team-nav>span').eq(0).addClass('active');
$('.management-team-nav>span').eq(0).show().siblings().hide();
$('.management-team-list .management-team-item').eq(0).addClass('show');
if(window.innerWidth <= 1024){
$('.management-team-nav>span').click(function(){
var scrollTop = $(document).scrollTop();
if(!$(this).hasClass('active')){
$(document).scrollTop(scrollTop+1).scrollTop(scrollTop);
$('.management-team-nav>span').eq($(this).index()).addClass("active").siblings().removeClass('active');
$('.management-team-nav>span').eq($(this).index()).show().siblings().hide();
$('.management-team-list .management-team-item').eq($(this).index()).addClass("show").siblings().removeClass('show');
}else{
$('.management-team-nav>span').removeClass('active');
$('.management-team-nav>span').show();
}
})
}else{
$('.management-team-nav>span').click(function(){
var scrollTop = $(document).scrollTop();
if(!$(this).hasClass('active')){
@ -123,6 +138,20 @@ $(function(){
}
})
}
}
// 媒体报道导航
if(window.innerWidth <= 1024){
$('.news-nav>a').not('.active').hide();
$('.news-nav>a').click(function(){
if($(this).hasClass('active')){
$('.news-nav>a').removeClass('active');
$('.news-nav>a').show();
}else{
window.location.href = $(this).data('url');
}
})
}
// 尾部导航
if(window.innerWidth <= 1024){

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="{: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="bg-col-blue color-white {if $category['id'] == $childrenItem['id']}active{/if}">{$childrenItem['title']}</a>
{/foreach}
</div>