if ($('#dg-container')) { try { $('#dg-container').gallery({ autoplay: true, interval: 5000 }); } catch (e) { } } $(".return_top").on("click",function (){ var timer = setInterval(function () { $(window).scrollTop($(window).scrollTop() - 50); if ($(window).scrollTop() == 0) { clearInterval(timer); } }, 1); return false; }); var scroll_4 = new Swiper('.pb-list1 .swiper-container', { speed:800, loop:true, slidesPerView: 4, spaceBetween: 30, autoplay: { delay: 3000, disableOnInteraction: false, }, navigation: { prevEl: '.pb-list1 .swiper-button-prev', nextEl: '.pb-list1 .swiper-button-next', } }); var scroll_5 = new Swiper('.pb-list2 .swiper-container', { speed:800, loop:true, slidesPerView: 4, spaceBetween: 30, autoplay: { delay: 3000, disableOnInteraction: false, }, navigation: { prevEl: '.pb-list2 .swiper-button-prev', nextEl: '.pb-list2 .swiper-button-next', } }); //搜索 $('.search').click(function(){ $('.search_wrap').fadeIn(); }); $('.search_wrap .bck').click(function(){ $('.search_wrap').fadeOut("slow"); });