var swiper = new Swiper(".swiper-screen", { autoplay: { delay: 5000, }, pagination: { el: '.swiper-pagination-screen', // type: 'fraction', // renderFraction: function (currentClass, totalClass) { // return '' + // 'of' + ''; type: 'custom', renderCustom: function (swiper, current, total) { if (total < 10) { return '0' + current + '' + '|' + '' + '0' + total + ''; } else if (current < 10) { return '0' + current + '' + '|' + total+'';} else { return ''+ current + '' + '|' + '' + '' + total+'';} // return current + ' | ' + total+''; } }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); var indexnewsswiper = new Swiper(".swiper-news", { pagination: { noSwiping: true, el: '.news-pagination', type: 'bullets', clickable: true, renderBullet: function (index, className) { return '' + (index + 1) + ''; }, renderBullet: function (index, className) { switch(index){ case 0:text='荣昌动态';break; case 1:text='媒体报道';break; case 2:text='荣昌公告';break; } return '' + '

' + text + '

' + '
'; }, }, }); var honorSwiper = new Swiper(".swiper-honor", { slidesPerView: 'auto', spaceBetween: 20, autoplay: true, freeMode: true, }); var NewsSwiper = new Swiper(".NewsSwiper", { centeredSlides: true, // autoplay: { // delay: 3000, // disableOnInteraction: false, // }, pagination: { el: ".Newsswiper-pagination", clickable: true, }, }); var Humanswiper = new Swiper(".mySwiper-Human", { spaceBetween: 10, slidesPerView: 5, freeMode: true, watchSlidesProgress: true, }); var Humanswiper2 = new Swiper(".mySwiper2-Human", { spaceBetween: 10, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, thumbs: { swiper: Humanswiper, }, }); $(function(){ accor($('#Accor2'),'30%',500,false,false);//参数1:Dom节点,参数2:展开图宽度(值可正数像素值或百分比)、参数3:速度(ms)、参数4:初始是否展开(是true,否false)、参数5:是否点击展开(是true,否false) }); $(function(){ accor($('#Accor-1'),'30%',500,false,false);//参数1:Dom节点,参数2:展开图宽度(值可正数像素值或百分比)、参数3:速度(ms)、参数4:初始是否展开(是true,否false)、参数5:是否点击展开(是true,否false) }); $(function(){ accor($('#Accor-2'),'30%',500,false,false);//参数1:Dom节点,参数2:展开图宽度(值可正数像素值或百分比)、参数3:速度(ms)、参数4:初始是否展开(是true,否false)、参数5:是否点击展开(是true,否false) });