\n" +
"\t\t";
newsHtml += news;
})
$(".index-new-list").append(newsHtml);
}
$(".index-title-item").click(function() {
$(this).addClass("active");
$(this).siblings().removeClass("active");
})
$('.istop').click(function() {
$('html').animate({scrollTop: '0px'},200)
})
$(window).scroll(function() {
// console.log('$(document).scrollTop()',$(document).scrollTop())
if ($(document).scrollTop()<=800){
$('.istop').hide();
}else{
$('.istop').show();
}
});
new WOW().init();
})
// 顶部轮播
var schemeSwiper = new Swiper(".indexSwiper", {
speed: 800,
parallax: true,
autoplay: {
delay: 3000,
stopOnLastSlide: false,
disableOnInteraction: false,
},
pagination: {
el: ".index-pagination",
clickable: true,
},
loop: true,
loopAdditionalSlides: 3,
});
(function (doc, win) {
// 点击显示导航
$('.header-nav-mobiles1').click(function() {
console.log('1111')
$('.navigation-wrap').show()
setTimeout(() => {
$('.navigation-bg').css('opacity', '1');
$('.navigation-box').css('right', '0');
}, 100);
$('body').css('overflow', 'hidden')
$('.header-nav-mobiles1').hide();
$('.header-nav-mobiles2').show();
})
$('.header-nav-mobiles2').click(function() {
$('.navigation-box').css('right', '-75vw');
$('.navigation-bg').css('opacity', '0');
setTimeout(() => {
$('.navigation-wrap').hide()
}, 200);
$('body').css('overflow', 'auto')
$('.header-nav-mobiles2').hide();
$('.header-nav-mobiles1').show();
})
// 二级导航收缩
$('.navigation-item').click(function() {
if ($(this).next('.navigation-level').css("display") == "none") {
$(this).next('.navigation-level').show();
$(this).find('.navigation-item-icon').css('transform', 'rotate(90deg)');
} else {
$(this).next('.navigation-level').toggle();
$(this).find('.navigation-item-icon').css('transform', 'rotate(0deg)');
}
})
})(document, window);