let swiper_1 = new Swiper('#swiper_1',{ autoplay: true, loop:true, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', } }) let thumbsSwiper = new Swiper('#thumbs',{ spaceBetween: 0, slidesPerView: 6, watchSlidesVisibility: true,//防止不可点击 }) let swiper_2 = new Swiper('#swiper_2',{ autoplay: true, spaceBetween: 0, thumbs: { swiper: thumbsSwiper, } }) let thumbsSwiper_2 = new Swiper('#thumbs_2',{ spaceBetween: 0, slidesPerView: 7, watchSlidesVisibility: true,//防止不可点击 }) let swiper_3 = new Swiper('#swiper_3',{ autoplay: true, spaceBetween: 0, thumbs: { swiper: thumbsSwiper_2, } }) let flag = true $('.pro_main .brand_nav p').click(function () { if(flag){ $(this).parent().css('height','auto') $(this).html('关闭') } else { $(this).parent().css('height','80px') $(this).html('查看更多') } flag = !flag }); // 数字滚动 $(function(){ var countCXArr = []; var countCX=function (){ $('.numCount').each(function(i, dom) { if(countCXArr[i] && countCXArr[i] === true){ return; } var sT; var ncTop; sT = $(window).scrollTop(); ncTop = $(dom).offset().top; var id,decimals, startVal, endVal, duration; if (sT > ncTop-$(window).height() && sT < ncTop) { $(dom).find('.numCX').each(function(){ id=$(this).attr('id'); decimals = $(this).attr('data-decimals'), startVal = $(this).attr('data-startVal'), endVal = $(this).attr('data-endVal'), duration = $(this).attr('data-speed'); new CountUp(id, startVal, endVal, decimals, duration, { useEasing: true,//效果 separator: ''//数字分隔符 }).start();// target:目标元素id, startVal:你想要开始的值, endVal:你想要到达的值, decimals:小数位数,默认值为0, duration:动画持续时间为秒,默认值为2, options:选项的可选对象 countCXArr[i] = true; }) } }) } countCX(); $(window).on("scroll",function() { countCX(); }) }); // $('.wenhua_item').hover(function () { // // over // $(this).find('.icon').css({ // 'opacity':'0', // 'height': '0' // }) // $(this).find('.p1').css({ // 'opacity':'1', // 'height': '220px' // }) // }, function () { // // out // $(this).find('.icon').css({ // 'opacity':'1', // 'height': '218px' // }) // $(this).find('.p1').css({ // 'opacity':'0', // 'height': '0' // }) // } // ); // 手机 if ($(window).width() < 760) { var $ul = $('