// 椤堕儴杞挱 var swiper_slide = new Swiper('.slide', { speed: 1000, loop: true, autoplay: { delay: 2500, disableOnInteraction: false, }, }); // 浜у搧婊氬姩 var swiper_product = new Swiper('.product .con', { slidesPerView: 3, spaceBetween: 10, centeredSlides: true, loop: true, navigation: { nextEl: '.product .swiper-button-next', prevEl: '.product .swiper-button-prev', }, breakpoints: { 320: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView: 1, }, 640: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?40 slidesPerView: 2, spaceBetween: 10, }, 1200: { slidesPerView: 3, } } }); // var swiper_product = new Swiper('.product .con', { // slidesPerView: 3, // spaceBetween: 30, // loop: true, // pagination: { // el: '.swiper-pagination-product', // clickable: true, // }, // // }); // 瑙e喅鏂规婊氬姩 var swiper_solution = new Swiper('.solution .con .swiper-container', { slidesPerView: 4, slidesPerGroup: 1, loop: true, loopFillGroupWithBlank: true, pagination: { el: '.solution .swiper-pagination', clickable :true, }, breakpoints: { 320: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView: 1, }, 640: { slidesPerView: 3, }, 1200: { slidesPerView: 4, }, } }); $(function(){ $('.container').imagesLoaded(function () { var $grid = $('.grid').isotope({ // options transitionDuration: '.5s' }); // filter items on button click $('.news-menu ul').on('click', 'li', function () { var filterValue = $(this).attr('data-filter'); var cateid = $(this).attr('data-cateid'); $grid.isotope({ filter: filterValue }); $('#news .more').attr('href','/news/category/'+cateid+'.html'); }); //for menu active class $('.news-menu ul li').on('click', function (event) { $(this).siblings('.active').removeClass('active'); $(this).addClass('active'); event.preventDefault(); }); $grid.isotope({ filter: '.news-33' }); $('#news .more').attr('href','/news/category/33.html'); }); });