logxlogx

中文
nan2
画板 1
PRODUCTS
产品中心
共9条1
前往
0, freeMode: true, observer: true, observeParents: true, prevButton: '.navpers .bl', nextButton: '.navpers .br', pagination: '.navpers .swiper-pagination', // breakpoints: { // 1400: { // slidesPerView: '5', // spaceBetween: 20, // // autoplay: 3000, // }, // 1200: { // slidesPerView: '4', // spaceBetween: 20, // // autoplay: 3000, // }, // 800: { // slidesPerView: '3', // // autoplay: 3000, // spaceBetween: 15, // }, // 400: { // slidesPerView: '2', // spaceBetween: 15, // // autoplay: 3000, // }, // }, onSlideChangeStart: function (swiper) { // test(); } }); $(".pul").each(function () { $(this).parents(".petm").addClass("has-pul"); }) $(".has-pul").mouseenter(function () { if ($(window).width() > 800) { $(this).find(".pul").stop().slideDown(300); } }) $(".has-pul").mouseleave(function () { if ($(window).width() > 800) { $(this).find(".pul").stop().slideUp(300); } }) $(".has-pul").click(function (e) { if ($(window).width() <= 800) { e.preventDefault(); if ($(this).hasClass("show")) { $(this).removeClass("show") $(this).find(".pul").slideUp(300) } else { $(this).addClass("show") $(this).find(".pul").slideDown(300) $(this).siblings(".has-nav").removeClass("show").find('.pul').slideUp(300); } } }) $('.pul a').click(function (e) { e.stopPropagation(); }) if ($(window).width() > 800) { // var index = $('.pelist .petm.on').index(); $('.pelist .petm').hover(function () { $('.pelist .petm').removeClass('on').eq($(this).index()).addClass('on'); }, function () { // $('.pelist .petm').removeClass('on').eq(index).addClass('on'); $('.pelist .petm').removeClass('on'); }) } else { $('.pelist .petm').click(function () { $('.pelist .petm').removeClass('on').eq($(this).index()).addClass('on'); }) } $(window).on("load", function () { // $(".caselist .catom .pul").mCustomScrollbar({autoDraggerLength: true});; // $(".casesd .cauomp .finp").mCustomScrollbar({autoDraggerLength: true});; // $(".techom .ter").mCustomScrollbar({autoDraggerLength: true});; // $(".produper .pul").mCustomScrollbar({autoDraggerLength: true});; }); })