手机端样式完成

master
Lee 2022-10-08 09:33:32 +08:00
parent 444a37e079
commit 5b6e78ef7f
2 changed files with 4 additions and 2 deletions

View File

@ -145,8 +145,8 @@
<div class="index-news-title pc-show"><img src="images/public/news-title.png" alt="project case"></div>
<!-- navTab -->
<div class="index-news-nav flex">
<span>总部新闻</span>
<span>区域动态</span>
<span data-url="news.html">总部新闻</span>
<span data-url="news.html">区域动态</span>
</div>
<a href="news.html" class="news-more uppercase color-66 font-helvetica wap-show">News ></a>
<!-- 资讯列表 -->

View File

@ -53,6 +53,8 @@ $(function(){
if(!$(this).hasClass('active')){
$('.index-news-nav>span').eq($(this).index()).addClass("active").siblings().removeClass('active');
$('.new-list>.swiper').eq($(this).index()).addClass("show").siblings().removeClass('show');
}else{
window.location.href = $(this).data('url');
}
})
if(screen.width <= 768){