var gallerythumbs = new swiper('.gallery-thumbs', { spacebetween: 10, slidesperview: 5, loop: false, freemode: true, loopedslides: 5, //looped slides should be the same watchslidesvisibility: true, watchslidesprogress: true, }); var gallerytop = new swiper('.gallery-top', { spacebetween: 10, loop: true, loopedslides: 5, //looped slides should be the same // navigation: { // nextel: '.gallery-top .swiper-button-next', // prevel: '.gallery-top .swiper-button-prev', // }, thumbs: { swiper: gallerythumbs, }, speed: 10000, autoplay: { delay: 500, disableoninteraction: false, waitfortransition: true, }, }); var productswiper = new swiper('.product-swiper', { slidesperview: is_wap() ? 2 : 3, spacebetween: 10, slidespergroup: 1, loop: true, speed: 1000, autoplay: { delay: 2000, disableoninteraction: false, waitfortransition: true, }, loopfillgroupwithblank: true, pagination: { el: '.product-swiper .swiper-pagination', clickable: true, }, navigation: { nextel: '.product-swiper-box .swiper-button-next', prevel: '.product-swiper-box .swiper-button-prev', }, }); $(function() { //bars 切换 $(document).on('click', '.news-bars .news-bars-item', function() { if (!$(this).hasclass('active')) { // debugger var $parent = $(this).parent(); var index = $parent.find('.news-bars-item').index(this); $parent.find('.news-bars-item.active').removeclass('active'); $(this).addclass('active'); $parent.find('.more').attr('href', $(this).data('url')); var $content = $parent.parent().find('.news-bars-contents'); $content.find('.news-bars-contents-item.show').removeclass('show'); $($content.find('.news-bars-contents-item')[index]).addclass('show'); } }) if ($(".thematiclink").length) { $(".t-close").on("click", function() { $(".thematiclink").toggleclass("tohide"); }) var pc1 = new admove("thematiclink", true); pc1.run(); } })