(function() { let body = $("body"); if(isFrontEnv()) { body.addClass("cn-show"); } else { body.addClass("cn-make"); } })(); $("a.backtop").click(function() { $("body, html").stop().animate({ "scrollTop": 0 }); }); $(function () { var cnbanner = $(".cnProswiper"); if(cnbanner.length > 0) { var gallerySwiper = new Swiper('.cnProswiper .swiper-container',{ autoplay: { delay:4500, pauseOnMouseEnter:true, disableOnInteraction: false }, slidesPerView: 4, paginationClickable: true, spaceBetween: 20, loop: true, loopedSlides: 5, pagination:{ el: '.page_box .cn-paginations', // type: 'fraction', }, navigation: { nextEl: '.page_box .swiper-next', prevEl: '.page_box .swiper-prev', }, breakpoints: { //褰撳搴﹀皬浜庣瓑浜?68 0: { slidesPerView: 1, spaceBetween: 20 }, 768: { slidesPerView: 2, spaceBetween: 20 }, //褰撳搴﹀皬浜庣瓑浜?024 1024: { slidesPerView: 3, spaceBetween: 20 }, 1400: { slidesPerView: 4, spaceBetween: 20 } } }) } }) $(function(){ var pn = $(".proName").text(); if(pn){ $("#c_static_001-1658498531089 .e_loop_sub-29").append("

"+pn+"

"); } }) $(function () { var lb = $(".lightBox .p_loopitem"); if(lb.length > 0){ lb.each(function(){ $(this).find(".s_img img").addClass("img-responsive"); var datasrc = $(this).find(".s_img img").attr("lazy"); $(this).attr("data-src",datasrc); }) if (isFrontEnv()) { $('.lightBox .p_list').lightGallery({}); } } });