// if(window.innerWidth>978){ // var swiper = new Swiper('#product .swiper-container', { // loop: true, // speed: 1500, // slidesPerView: 3.5, // spaceBetween: 30, //闂撮殧 // centeredSlides : false, //灞呬腑骞荤伅鐗 // watchSlidesProgress : true, //瑙傜湅骞荤伅鐗囪繘搴 // navigation: { // nextEl: '.swiper-button-next', // prevEl: '.swiper-button-prev', // } // }); // } // /** * 鏂伴椈鍔ㄦ€?浜у搧鍔ㄦ€佽疆鎾晥鏋溿€ * @type {Swiper} */ var swipers = new Swiper('.content .swiper-container', { loop: true, speed: 1500, slidesPerView: 1, spaceBetween: 10, //闂撮殧 centeredSlides : false, //灞呬腑骞荤伅鐗 watchSlidesProgress : true, //瑙傜湅骞荤伅鐗囪繘搴 navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, autoplay: { delay:6000, pauseOnMouseEnter: true, }, // pagination: { // el: '.swiper-pagination', // clickable: true, // renderBullet: function (index, className) { // return '' + (index + 1) + ''; // }, // }, }); /** * 缁戝畾榧犳爣绉诲叆灏卞仠姝簨浠 */ swipers.forEach(function(swiper){ swiper.el.onmouseover = function(){ swiper.autoplay.stop(); } swiper.el.onmouseout = function(){ swiper.autoplay.start(); } }) layui.use(['jquery','laypage'],function(){ var $ = layui.jquery , laypage = layui.laypage; // $("#product .swiper-slide").hover(function(){ // console.log($(this).index()) // $("#product .swiper-button-prev,#product .swiper-button-next").hide(); // },function(){ // $("#product .swiper-button-prev,#product .swiper-button-next").show(); // }) $(".video-poster").click(function(){ $("#about .about-content video").css('opacity',1)[0].play(); $(this).fadeOut(); }) })