$(function () { // if ($(document).width() > 1024) { // var inSwiper = new Swiper('.inSwiper', { // direction: 'horizontal', // spaceBetween: 60, // slidesPerView: 3, // 涓€琛屾湁鍑犱釜 // // slidesPerColumn: 2, //鏄剧ず鍑犺 // slidesPerColumnFill: 'row', //琛屾樉绀 // slidesPerGroup: 3, // 澶氬皯鍒椾负涓€缁 // // loop: true, // pagination: { // el: '.swiper-pagination', // clickable :true, // }, // }); // } else { // var inSwiper = new Swiper('.inSwiper', { // direction: 'horizontal', // spaceBetween: 30, // slidesPerView: 2, // 涓€琛屾湁鍑犱釜 // // slidesPerColumn: 2, //鏄剧ず鍑犺 // slidesPerColumnFill: 'row', //琛屾樉绀 // slidesPerGroup: 2, // 澶氬皯鍒椾负涓€缁 // // loop: true, // pagination: { // el: '.swiper-pagination', // clickable :true, // }, // }); // } // var slide = $('.swiper-slide'); // var imgs = $('.bot-bg>.img>img') // slide.on('click', function () { // let index = $(this).index(); // imgs.eq(index).addClass('imgActive'); // imgs.eq(index).siblings().removeClass('imgActive'); // $(this).siblings().removeClass('active') // $(this).addClass('active') // }) //pictures杞挱 var swiper2 = new Swiper(".madeSwiper2", { loop: false, grabCursor: true, navigation: { nextEl: ".mnext", prevEl: ".mprev", }, pagination: { el: '.m-swiper-pagination', // type: 'bullets', //type: 'fraction', type: 'progressbar', //type : 'custom', }, lazy: { loadPrevNext: true, }, on: { init: function () { swiperAnimateCache(this); //闅愯棌鍔ㄧ敾鍏冪礌 swiperAnimate(this); //鍒濆鍖栧畬鎴愬紑濮嬪姩鐢 }, slideChangeTransitionEnd: function () { swiperAnimate(this); //姣忎釜slide鍒囨崲缁撴潫鏃朵篃杩愯褰撳墠slide鍔ㄧ敾 // console.log(this.activeIndex); }, } }); })