$(function(){ try { $(function(){ public_ajax(); }) function public_ajax() { if($(".public_box").length>0){ $(document).ready(function() { var $resourceTypeList = $('ul.public_box'); $resourceTypeList.infinitescroll({ navSelector: "#public_more", nextSelector: "#public_more a", itemSelector: ".public_li", clickb: false, clickobj: ".public_load-more-link", loading: { msgText: '鍔犺浇涓?, finishedMsg: '鏆傛棤鏇村', finished: function() { $("#infscr-loading").remove(); // imgratio() } }, errorCallback: function() { $(".public_load-more-link").hide(); } }, function(newElements) { var $newElems = $(newElements); $newElems.fadeIn(); return; }); }) } } } catch (error) { } //banner var swiper = new Swiper('.banner .swiper', { slidesPerView: 1, spaceBetween: 0, loop: true, speed:1000, autoplay:{ delay: 6000, disableOnInteraction: false, }, pagination: { el: '.banner .swiper-pagination', clickable:true }, // on:{ // init:function(swiper){ // slide=this.slides.eq(1); // slide.addClass('ani-slide'); // }, // transitionStart: function(){ // for(i=0;i=li.length)ii=0; // console.log(li.length) // setbannerli(ii) // }, // } }); function setbannerli(i){ setTimeout(function(){ var ii=i; var goto=true; var videofi=$('.banner .swiper .swiper-slide-active video') console.log(goto,1) if(videofi.length && $(window).width()>767){ //鐟欏棝顣禸annner goto=false; videofi[0].currentTime=0; videofi[0].addEventListener('ended', function () { //缂佹挻娼 setTimeout(function(){ var s=ii+=1; // if(s>=li.length)s=0; swiper.slideTo(s+1); },100) }, false); }else{ goto=true; var ii=i; console.log(goto,i,ii) if(goto){ setTimeout(function(){ var s=ii+=1; swiper.slideTo(i+1); },3000) } } }, 10); } wowDelay(".confusion-cont ul", $('.confusion-cont ul li').length, "0.2"); wowDelay(".shaoer-kecheng-list ul", $('.shaoer-kecheng-list ul li').length, "0.2"); //婊氬姩鍔ㄧ敾 function wowDelay(box, row, delayTime) { $(box).children().each(function(index) { for (var i = 0; i < row; i++) { if (index % row == i) { $(this).attr("data-wow-delay", i * delayTime + 's'); }; }; }); }; function wowInt() { if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))) { var wow = new WOW({ boxClass: 'wow', animateClass: 'animated', offset: 100, mobile: false, live: true }); wow.init(); }; } wowInt(); //鎵嬫満瀵艰埅 $(window).resize(function() { var wWidth = $(window).width(); if (wWidth < 1000) { //瀵艰埅 $('nav#menuWap').mmenu({ navbar:{ title:'鍖楁柊闃叉按' } }); }else{ var bew = (wWidth-1440)/2; $('.padleft').css({'padding-left':bew}) $('.padright').css({'padding-right':bew}) $('.index-about-grid .about-cont .about-right').click(function(e){ if($(this).parents('.index-about-grid').hasClass('rightcur')){ $(this).parents('.index-about-grid').removeClass('rightcur'); }else{ $(this).parents('.index-about-grid').addClass('rightcur'); } e.stopPropagation(); }); $('.index-about-grid .about-cont .about-left').click(function(e){ if($(this).parents('.index-about-grid').hasClass('leftcur')){ $(this).parents('.index-about-grid').removeClass('leftcur'); }else{ $(this).parents('.index-about-grid').addClass('leftcur'); } e.stopPropagation(); }); $(document).on("click", function(e) { if(!(jQuery(e.target).hasClass(".about-left") || jQuery(e.target).parents(".about-right").length > 0)) $('.index-about-grid').removeClass('leftcur'); $('.index-about-grid').removeClass('rightcur'); }); } }); $(window).resize(); // 杩斿洖椤堕儴鎸夐挳 if ($(this).scrollTop() == 0) { $("#toTop").fadeOut(500); } $(window).scroll(function(event) { /* Act on the event */ if ($(this).scrollTop() == 0) { $("#toTop").fadeOut(500); $('.header').removeClass('cur'); } if ($(this).scrollTop() != 0) { $("#toTop").fadeIn(500); $('.header').addClass('cur'); } }); $("#toTop").click(function(event) { /* Act on the event */ $("html,body").animate({ scrollTop: "0px" }, 666) }); var wWidth2 = $(window).width(); if (wWidth2 > 1000) { var _direction = ""; try { $('.home-main').fullpage({ anchors: ['page1', 'page2', 'page3', 'page4'], verticalCentered: true, normalScrollElements:'#yyzx', onLeave: function(index, nextIndex, direction) { //using index // _direction = direction; // if (index == 5 && direction == 'up') { // $.fn.fullpage.setAutoScrolling(true); // } // if (index == 5 && direction == 'up') { // $.fn.fullpage.setAutoScrolling(true); // } // index == 1 && $('.banner-content').removeClass('fadeInDown'); // index == 1 && $('.banner-content').removeClass('fadeInDown'); // index == 2 && $('.about-cont .about-left .about-pp').removeClass('fadeInDown'); // index == 2 && $('.about-cont .about-right .about-pp').removeClass('fadeInUp'); // index == 3 && $('.pro-topt').removeClass('fadeInDown'); // index == 3 && $('.ind-protx').removeClass('fadeInUp'); // index == 4 && $('.case-cont .left-tt').removeClass('fadeInUp'); // index == 4 && $('.case-cont .case-swiper').removeClass('fadeInDown'); // index == 5 && $('.news-left').removeClass('fadeInDown'); // index == 5 && $('.news-right').removeClass('fadeInUp'); }, afterLoad: function(anchorLink, index) { console.log(index); // index !==1 && $('.header').addClass('cur') // index ==1 && $('.header').removeClass('cur') // index == 1 && $('.banner-content').addClass('fadeInDown'); // index == 1 && $('.banner-content').addClass('fadeInDown'); if(index == 2){ var num = $("#count").html(); var demo = new countUp.CountUp('count', num, { separator: '', }); if (!demo.error) {鈥冣€ demo.start(); } else {鈥冣€ console.error(demo.error); } var num2 = $("#count2").html(); var demo2 = new countUp.CountUp('count2', num2, { separator: '', }); if (!demo2.error) {鈥冣€ demo2.start(); } else {鈥冣€ console.error(demo2.error); } } index == 2 && $('.about-cont .about-left .about-pp').addClass('fadeInDown'); // index == 2 && $('.about-cont .about-right .about-pp').addClass('fadeInUp'); // index == 3 && $('.pro-topt').addClass('fadeInDown'); // index == 3 && $('.ind-protx').addClass('fadeInUp'); // index == 4 && $('.case-cont .left-tt').addClass('fadeInUp'); // index == 4 && $('.case-cont .case-swiper').addClass('fadeInDown'); // index == 5 && $('.news-left').addClass('fadeInDown'); // index == 5 && $('.news-right').addClass('fadeInUp'); } }); } catch (error) { } } var caseswiper = new Swiper('.case-swiper .swiper', { slidesPerView: 1, spaceBetween: 20, speed:1000, pagination: { el: '.left-page .swiper-pagination', clickable:true }, navigation: { nextEl: '.left-page .swiper-button-next', prevEl: '.left-page .swiper-button-prev', }, breakpoints: { 1000: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView:2, spaceBetween: 20 }, } }); $('.news-tab a').click(function(){ var index = $(this).index(); $('.news-tabbox .indnews-cont').eq(index).show().siblings().hide(); $(this).addClass('cur').siblings().removeClass('cur'); }); var logowiper = new Swiper('.hz-logo .swiper', { slidesPerView: 2, spaceBetween: 12, autoplay:true, loop:true, speed:1000, navigation: { nextEl: '.hz-logo .swiper-button-next', prevEl: '.hz-logo .swiper-button-prev', },breakpoints: { 1000: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView:5, spaceBetween: 32 }, } }); var area = ['1200px','80%']; if (wWidth2 < 1466 && wWidth2 > 1000) { area = ['1000px','80%']; }else if(wWidth2 < 1000){ area = ['98%','80%']; } $('.online').click(function(){ layer.open({ type: 1, skin:'zxlayer', shadeClose:true, area:area, content: $('#yyzx') //杩欓噷content鏄竴涓狣OM锛屾敞鎰忥細鏈€濂借鍏冪礌瑕佸瓨鏀惧湪body鏈€澶栧眰锛屽惁鍒欏彲鑳借鍏跺畠鐨勭浉瀵瑰厓绱犳墍褰卞搷 }); }) $('.formhide').click(function(){ if($(this).hasClass('cur')){ $(this).removeClass('cur'); $('.hidetemplete').slideDown(); $(this).find('em').text('鏀惰捣'); }else{ $(this).addClass('cur'); $('.hidetemplete').slideUp(); $(this).find('em').text('灞曞紑'); } }); try { // 妯℃嫙婊氬姩鏉 $(".contact-cont .text ul").mCustomScrollbar({ horizontalScroll: false, scrollButtons: { enable: true }, scrollbarPosition:'outside', theme: "rounded-dark" }); } catch (e) { //TODO handle the exception } $('.p-select a').click(function(){ $(this).addClass('cur').siblings().removeClass('cur'); }); //swiper鐢诲粖鍩虹 var galleryThumbs = new Swiper('.prodis-swiper .gallery-thumbs', { spaceBetween: 10, slidesPerView:2, freeMode: true, watchSlidesVisibility: true, watchSlidesProgress: true, navigation: { nextEl: ".prodis-swiper .swiper-button-next", prevEl: ".prodis-swiper .swiper-button-prev", }, breakpoints: { 1000: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView: 3, spaceBetween: 20 }, } }); var galleryTop = new Swiper('.prodis-swiper .gallery-top', { spaceBetween: 0, thumbs: { swiper: galleryThumbs } }); var soluSwiper = new Swiper('.solu-tabbox .swiper', { spaceBetween: 20, on:{ transitionStart: function(swiper){ $('.solu-item a').eq(this.activeIndex).addClass('cur').siblings().removeClass('cur'); }, } }); $('.solu-item a').click(function(){ $(this).addClass('cur').siblings().removeClass('cur'); var index = $(this).index(); soluSwiper.slideTo(index, 1000, false);//鍒囨崲鍒扮涓€涓猻lide锛岄€熷害涓?绉 }) var jiazuSwiper = new Swiper('.jiazu-swiper .swiper', { spaceBetween: 10, slidesPerView:3, breakpoints: { 1000: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView: 'auto', spaceBetween: 20 }, } }); var jiazuSwipertop = new Swiper('.jiazu-info .right-img .swiper', { spaceBetween: 20, slidesPerView:'auto', pagination: { el: ".jiazu-page .swiper-pagination", clickable:true }, navigation: { nextEl: ".jiazu-page .swiper-button-next", prevEl: ".jiazu-page .swiper-button-prev", }, observer:true, //淇敼swiper鑷繁鎴栧瓙鍏冪礌鏃讹紝鑷姩鍒濆鍖杝wiper observeParents:true,//淇敼swiper鐨勭埗鍏冪礌鏃讹紝鑷姩鍒濆鍖杝wiper on:{ transitionEnd: function(){ // console.log(jiazuSwipertop.slides.length,this.activeIndex); if(this.activeIndex ==(jiazuSwipertop.slides.length-2)){ jiazuSwiper.slideTo(jiazuSwipertop.slides.length-1, 1000, false);//鍒囨崲鍒扮涓€涓猻lide锛岄€熷害涓?绉 } } }, thumbs: { swiper: jiazuSwiper } }); certifySwiper = new Swiper('#certify .swiper', { watchSlidesProgress: true, slidesPerView:1, centeredSlides: true, loop: true, loopedSlides: 5, autoplay: true, navigation: { nextEl: '#certify .swiper-button-next', prevEl: '#certify .swiper-button-prev', }, pagination: { el: '#certify .swiper-pagination', clickable :true, }, breakpoints: { 1000: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView: 'auto', }, }, on: { progress: function(progress) { for (i = 0; i < this.slides.length; i++) { var slide = this.slides.eq(i); var slideProgress = this.slides[i].progress; modify = 1; if (Math.abs(slideProgress) > 1) { modify = (Math.abs(slideProgress) - 1) * 0.3 + 1; } translate = slideProgress * modify * 260 + 'px'; scale = 1 - Math.abs(slideProgress) / 5; zIndex = 999 - Math.abs(Math.round(10 * slideProgress)); slide.transform('translateX(' + translate + ') scale(' + scale + ')'); slide.css('zIndex', zIndex); slide.css('opacity', 1); if (Math.abs(slideProgress) > 3) { slide.css('opacity', 0); } } }, setTransition: function(swiper, transition) { for (var i = 0; i < this.slides.length; i++) { var slide = this.slides.eq(i) slide.transition(transition); } } } }) var swiperRencai = new Swiper('.ygact-list .swiper', { spaceBetween: 20, slidesPerView:1, loop:true, autoplay:true, speed:1000, breakpoints: { 1000: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView: 'auto', }, }, }); $('.ygact-list .swiper-slide').hover(function(){ $(this).addClass('cur').siblings().removeClass('cur'); }); $(document).on('click','.zhaopin-list li',function(){ $(this).addClass('act').siblings().removeClass('cur'); $(this).siblings().removeClass('act'); $(this).find('.text').slideDown(); $(this).siblings().find('.text').slideUp(); }) var swipeslingsale = $('.sale-info .sale-swiper').length+1; for (var i = 1; i<=swipeslingsale;i++){ var sw_swipersale=[]; sw_swipersale[i] = new Swiper('.sale-swiper.swiper'+i+' .swiper', { spaceBetween: 20, slidesPerView:1, speed:1000, pagination: { el: '.sale-swiper.swiper'+i+' .swiper-pagination', clickable:true }, }); } $('.sale-item a').click(function(){ $(this).addClass('cur').siblings().removeClass('cur'); var index = $(this).index(); $('.sale-info .imgshow .sale-swiper').eq(index).show().siblings().hide(); }) $('.wap-filter select').change(function(){ // console.log($(this).val()); var url = $(this).val(); window.location.href = url; }) $('.shoufa-list li').hover(function(){ $(this).addClass('cur').siblings().removeClass('cur'); }); $('.caseny-swiper').each(function(){ $(this).find('.imgshow').hover(function(){ $(this).addClass('cur').siblings().removeClass('cur'); }); }); var swipercaseitem= new Swiper('.shoufa-list .swiper', { // slidesPerView:'auto', // centeredSlides: true, // centeredSlidesBounds: true, // centeredSlides: true, speed:1000, }); $('.prony-swiper').each(function(){ $(this).find('.p-b').hover(function(){ $(this).addClass('cur').siblings().removeClass('cur'); }); }); var galleryThumbs2 = new Swiper('.zji_on4 .gallery-thumbs', { slidesPerView:2, spaceBetween: 20, breakpoints: { 1024: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 spaceBetween: 10, slidesPerView: 7, }, }, loop: false, loopedSlides: 1, //looped slides should be the same watchSlidesVisibility: true, watchSlidesProgress: true, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }); var galleryTop2 = new Swiper('.zji_on4 .gallery-top', { spaceBetween: 10, loop:false, loopedSlides: 1, //looped slides should be the same navigation: { nextEl: '.zji_d', prevEl: '.zji_u', }, thumbs: { swiper: galleryThumbs2, }, }); }) function GetQueryString(name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg);//search,鏌ヨ锛熷悗闈㈢殑鍙傛暟锛屽苟鍖归厤姝e垯 if(r!=null)return unescape(r[2]); return null; } function gethas(name) { let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); if (window.location.hash.indexOf("#") < 0) { return null; } let r = window.location.hash.split("#")[1].match(reg); if (r != null) return decodeURIComponent(r[2]); return null; } $(function(){ //妗堜緥鐩稿叧搴忓垪swiper var swipeslingcase = $('.swiper-tabbox .caseny-swiper').length+1; for (var i = 1; i<=swipeslingcase ;i++){ var sw_swipercase=[]; sw_swipercase[i] = new Swiper('.caseny-swiper.swiper'+i+' .swiper', { slidesPerView: 1, spaceBetween: 20, speed:1000, observer:true, observeParents:true, observeSlideChildren:true, pagination: { el: '.caseny-swiper.swiper'+i+' .swiper-pagination', clickable:true }, navigation: { nextEl: '.caseny-swiper .swiper-button-next', prevEl: '.caseny-swiper .swiper-button-prev', }, breakpoints: { 1000: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 // slidesPerView: 'auto', // spaceBetween: 20 }, } }); } // 瑙e喅鏂规鐩稿叧搴忓垪swiper var swipeslingsolu = $('.swiper-tabbox .solu-caseswiper').length+1; for (var i = 1; i<=swipeslingsolu;i++){ var sw_swipersolu=[]; sw_swipersolu[i] = new Swiper('.solu-caseswiper.swiper'+i+' .swiper', { slidesPerView: 1, spaceBetween: 20, speed:1000, observer:true, observeParents:true, observeSlideChildren:true, pagination: { el: '.solu-caseswiper.swiper'+i+' .swiper-pagination', clickable:true }, navigation: { nextEl: '.solu-caseswiper.swiper'+i+' .swiper-button-next', prevEl: '.solu-caseswiper.swiper'+i+' .swiper-button-prev', },breakpoints: { 1000: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView: 3, spaceBetween: 20 }, } }); } //浜у搧鐩稿叧搴忓垪swiper var swipesPro = $('.prony-swiper').length+1; for (var i = 1; i<=swipesPro ;i++){ var sw_swiperpro=[]; sw_swiperpro[i] = new Swiper('.prony-swiper.swiper'+i+' .swiper', { slidesPerView: 1, spaceBetween: 20, speed:1000, initialSlide:0, // observeSlideChildren:true, // freeMode: true, lazy: { loadPrevNext: true, }, pagination: { el: '.prony-swiper.swiper'+i+' .swiper-pagination', clickable:true }, navigation: { nextEl: '.prony-swiper.swiper'+i+' .swiper-button-next', prevEl: '.prony-swiper.swiper'+i+' .swiper-button-prev', }, // observer:true, //淇敼swiper鑷繁鎴栧瓙鍏冪礌鏃讹紝鑷姩鍒濆鍖杝wiper observeParents:true,//淇敼swiper鐨勭埗鍏冪礌鏃讹紝鑷姩鍒濆鍖杝wiper breakpoints: { 1000: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20 slidesPerView:1, spaceBetween: 20 }, } }); } //缁忓吀宸ョ▼ var swipercaseitem= new Swiper('.content-case .case-item .swiper', { slidesPerView:'auto', centerInsufficientSlides: true, hashNavigation: true, speed:1000, on:{ click:function(){ var url = window.location.href; $(this.slides[this.clickedIndex]).find('a').addClass('cur').parent(".swiper-slide").siblings(".swiper-slide").find("a").removeClass("cur"); if(url.indexOf("#")>0){ window.location.href = window.location.href.split('index=')[0] + 'index='+this.clickedIndex; }else{ window.location.href = window.location.href + '#index='+this.clickedIndex; } $('.swiper-tabbox .caseny-swiper').eq(this.clickedIndex).show().siblings().hide(); console.log(sw_swipercase[0]); //sw_swipercase[this.clickedIndex].slideTo(0, 1000, false);//鍒囨崲鍒扮涓€涓猻lide锛岄€熷害涓?绉 } } }); //瑙e喅鏂规 var swiperSolu= new Swiper('.content-solution .case-item .swiper', { slidesPerView:'auto', speed:1000, on:{ click:function(){ var url = window.location.href; $(this.slides[this.clickedIndex]).find('a').addClass('cur').parent(".swiper-slide").siblings(".swiper-slide").find("a").removeClass("cur"); if(url.indexOf("#")>0){ window.location.href = window.location.href.split('index=')[0] + 'index='+this.clickedIndex; }else{ window.location.href = window.location.href + '#index='+this.clickedIndex; } $('.swiper-tabbox .solu-caseswiper').eq(this.clickedIndex).show().siblings().hide(); } } }); //浜у搧浣撶郴 var swiperpro = new Swiper('.problock-cont .p-item .swiper', { slidesPerView:'auto', speed:1000, initialSlide: 2, initialSlide:0, on:{ click:function(){ var innerurl = window.location.href; $(this.slides[this.clickedIndex]).find('a').addClass('cur').parent(".swiper-slide").siblings(".swiper-slide").find("a").removeClass("cur"); if(innerurl.indexOf("#")>0){ window.location.href = window.location.href.split('index=')[0] + 'index='+this.clickedIndex; }else{ window.location.href = window.location.href + '#index='+this.clickedIndex; } $('.protabboxscoll').eq(this.clickedIndex).show().siblings().hide(); //sw_swiperpro[this.clickedIndex+1].slideTo(0, 1000, false);//鍒囨崲鍒扮涓€涓猻lide锛岄€熷害涓?绉 } } }); //涓嬫媺鑿滃崟鐐瑰嚮浜嬩欢 $(document).on("click",".erji dl dd",function(){ var thisIndex = $(this).index(); //swipercaseitem.slideTo(thisIndex, 1000, false); $('.content-case .case-item .swiper .swiper-slide').eq(thisIndex).find("a").addClass("cur").parent(".swiper-slide").siblings(".swiper-slide").find("a").removeClass("cur"); $('.swiper-tabbox .caseny-swiper').eq(thisIndex).show().siblings().hide(); //swiperSolu.slideTo(thisIndex, 1000, false); $('.content-solution .case-item .swiper .swiper-slide').eq(thisIndex).find("a").addClass("cur").parent(".swiper-slide").siblings(".swiper-slide").find("a").removeClass("cur"); $('.swiper-tabbox .solu-caseswiper').eq(thisIndex).show().siblings().hide(); //swiperSolu.slideTo(thisIndex, 1000, false); $('.problock-cont .p-item .swiper .swiper-slide').eq(thisIndex).find("a").addClass("cur").parent(".swiper-slide").siblings(".swiper-slide").find("a").removeClass("cur"); $('.protabboxscoll').eq(thisIndex).show().siblings().hide(); var height1 = $('.main-box').offset().top; //浜у搧瀹氫綅鍒ゆ柇 try{ var heightpro = $(".problock-tabitem").offset().top; }catch(e){ //TODO handle the exception } var prolink = $(this).find("a").attr("href"); if(prolink.indexOf("product") > 0){ $('html,body').animate({ scrollTop: heightpro }) }else{ $('html,body').animate({ scrollTop: height1 }) } }) //URL瀹氫綅椤甸潰/URL瀹氫綅swiper var urls = window.location.href; var height1 = $('.main-box').offset().top; try{ var heightpro = $('.problock-tabitem').offset().top; }catch(e){ //TODO handle the exception } if(urls.indexOf("product") > 0 && urls.indexOf("#") > 0){ $('html,body').animate({ scrollTop: heightpro }) }else{ if(urls.indexOf("#") > 0){ $('html,body').animate({ scrollTop: height1 }) } } var sindex = gethas('index'); //妗堜緥鐩稿叧 $('.case-item .swiper .swiper-slide').eq(sindex).find("a").addClass("cur").parent(".swiper-slide").siblings(".swiper-slide").find("a").removeClass("cur"); $('.swiper-tabbox .caseny-swiper').eq(sindex).show().siblings().hide(); //瑙e喅鏂规鐩稿叧 $('.content-case .case-item .swiper .swiper-slide').eq(sindex).find("a").addClass("cur").parent(".swiper-slide").siblings(".swiper-slide").find("a").removeClass("cur"); $('.swiper-tabbox .solu-caseswiper').eq(sindex).show().siblings().hide(); //浜у搧鐩稿叧 $('.problock-cont .p-item .swiper .swiper-slide').eq(sindex).find("a").addClass("cur").parent(".swiper-slide").siblings(".swiper-slide").find("a").removeClass("cur"); $('.protabboxscoll').eq(sindex).show().siblings().hide(); })