define("/Assets/enp/2022/js/module/e-module-202211071510.js", ["/Assets/enp/2022/js/library/external/swiper/swiper.min.js"], function (require, factory) { if ($('.e-module-202211071510').length > 0) { $('.e-module-202211071510').each(function () { var _this = $(this); var winW = $(window).width(); swiperList(_this); function swiperList(objConList) { if (objConList.find('.swiper-slide').length > 1) { var swiper = new Swiper(objConList.find('.swiper-container'), { slidesPerView: 1.2, spaceBetween: 10, loop: true, autoplay: false, centeredSlides: true, resistanceRatiao: 1, //触底不反弹 pagination: { el: objConList.find('.swiper-pagination'), clickable: true, }, navigation: { nextEl: objConList.find(".swiper-button-next"), prevEl: objConList.find(".swiper-button-prev"), }, //大于分辨率 breakpoints: { 1200: { slidesPerView: 1.8, autoplay: false, spaceBetween: 40, }, 768: { slidesPerView: 1.5, autoplay: false, spaceBetween: 20, resistanceRatiao: 1, //触底不反弹 } }, on: { init: function () { // 设置每个box的位置,并设置图片出现,不需要懒加载效果 _this.find('.swiper-slide').each(function () { $(this).find('img').each(function () { var This = $(this); This.attr('src', This.data('original')); }) }); } } }); } else { objConList.find('.swiper-pagination').css({ 'display': 'none' }); objConList.find('.swiper-button').css({ 'display': 'none' }); } } if (winW < 1200) { var maxH = 0; _this.find(".swl").each(function () { var itemH = $(this).height(); if (itemH > maxH) { maxH = itemH; } }); $(this).find(".swl").height(maxH); } }) } });