$(function () { develop_03() select() setTimeout(function(){ seriesdetails_05swiper() },100) setTimeout(function(){ olutiondetails_04swiper() },100) ScollText('.seriesdetails_01 .wrap .pull-right p') ScollText(' .seriesdetails_02 ul li p') ScollText('.solutiondetails_01 ul li p ') ScollText('.serviceindex_01 ul li .servicelistwrap p') ScollText(' .develop_01 .text_right .text_rightding p') ScollText('.recruitindex_02 .ding02 .left p.serviceindex_02 ul li .serviceindex_02ding p') ScollText('.serviceindex_02 ul li .serviceindex_02ding p') ScollText('.solutiondetails .site_text p') setTimeout(function(){ swiperjiejue() },100) $(document).on('click','.recruitlist',function(){ $('.btnwrao .emilbtn').click(function () { $('input[name=Title]').val($(this).attr('data-position')); $('#boxtanwrap').show(); return false; }) // $('.recruitlist').removeClass("on"); //console.log('1'); $(this).find(".listwhide").slideToggle().parents(".recruitlist").siblings().find(".listwhide").slideUp() // $(this).parent('ul').parent('div').addClass("on"); if($(this).hasClass('on')){ //console.log('11') $(this).removeClass("on"); }else{ $('.recruitlist').removeClass("on"); $(this).addClass('on') } }) $('.button ul li:nth-child(2) button').click(function(){ $('#boxtanwrap').hide() }) if($(window).width() >= 1024){ $(window).scroll(function(){ $('.series_02 .pull-left').width($('.series_02 .wrap').width() * 0.25) if($(window).scrollTop() > 744){ $('.series_02 .pull-left').addClass('on') }else{ $('.series_02 .pull-left').removeClass('on') } }) } if ($(window).width() >= 1024) { $('.proindex_01ul li dd > img').width($('.proindex_01 .wrap').width() * 0.1132) $('.proindex_01ul li dl dt > img').width($('.proindex_01 .wrap').width() * 0.5472) } var img=$(".indexSolu_item:first-child .indexSolu_list li:first-child").data("img") $('.proindex_01ul li').hover(function () { $('.proindex_01ul li').removeClass('on') $(this).addClass('on') }) $(".index_02 .solution_bigImg").css("background-image","url("+img+")") setTimeout(function() { $(".indexSolu_item.on").find('li:first-child').click() //console.log('111') }, 100); $(".index_02 .indexSolu_list li").click(function () { var img=$(this).data("img") $(this).addClass("on").siblings().removeClass("on") $(".solution_bigImg").css("background-image","url("+img+")") //$(this).parent().parent().prevAll('.pub_more').attr('href',$(this).data('url')) }) if($(window).width()<1024){ $(".index_02 .indexSolu_tab li").click(function () { var index=$(this).index() $(this).addClass("on").siblings().removeClass("on") $(".indexSolu_item").eq(index).addClass("on").siblings().removeClass("on") var img=$(".indexSolu_item").eq(index).find(".indexSolu_list li:first-child").data("img") $(".solution_bigImg").css("background-image","url("+img+")") indexSoluSwiper.slideTo(index) // $(".indexSolu_item").eq(index).find('.pub_more').attr('href', $(".indexSolu_item").eq(index).find(".indexSolu_list li:first-child").data("url")) //console.log($(".indexSolu_item").eq(index).find(".indexSolu_list li:first-child").data("url")) }) }else{ $(".index_02 .indexSolu_tab li").hover(function () { var index=$(this).index() $(this).addClass("on").siblings().removeClass("on") $(".indexSolu_item").eq(index).addClass("on").siblings().removeClass("on") var img=$(".indexSolu_item").eq(index).find(".indexSolu_list li:first-child").data("img") $(".solution_bigImg").css("background-image","url("+img+")") //$(".indexSolu_item").eq(index).find('.pub_more').attr('href', $(".indexSolu_item").eq(index).find(".indexSolu_list li:first-child").data("url")) //console.log($(".indexSolu_item").eq(index).find(".indexSolu_list li:first-child").data("url")) }) } $(".index_02 .indexSolu_tab li").hover(function () { var index=$(this).index() $(this).addClass("on").siblings().removeClass("on") $(".indexSolu_item").eq(index).addClass("on").siblings().removeClass("on") var img=$(".indexSolu_item").eq(index).find(".indexSolu_list li:first-child").data("img") $(".solution_bigImg").css("background-image","url("+img+")") indexSoluSwiper.slideTo(index) }) if ($(window).width() < 767) { var indexSoluSwiper = new Swiper('.indexSolu_con .swiper-container', { prevButton: '.indexSolu_con .swiper-button-prev', nextButton: '.indexSolu_con .swiper-button-next', pagination: '.indexSolu_con .swiper-pagination', paginationClickable: true, autoplayDisableOnInteraction: false, slidesPerView: 1, spaceBetween: 0, onInit: function (swiper) { }, onSlideChangeStart: function (swiper) { $(".proindex_02 .indexSolu_tab li").eq(swiper.activeIndex).addClass("on").siblings().removeClass("on") } }) var proSwiper = new Swiper('.pro_con .swiper-container', { prevButton: '.pro_con .swiper-button-prev', nextButton: '.pro_con .swiper-button-next', pagination: '.pro_con .swiper-pagination', paginationClickable: true, autoplayDisableOnInteraction: false, slidesPerView: 1, spaceBetween: 0, onInit: function (swiper) { }, onSlideChangeStart: function (swiper) { } }) var index01 = new Swiper('.proindex_01 .swiper-container', { prevButton: '.proindex_01 .swiper-button-prev', nextButton: '.proindex_01 .swiper-button-next', slidesPerView: 1, spaceBetween: 0, }) } $(".series_01 .indexSolu_tab li").click(function () { $(this).addClass("on").siblings().removeClass("on") caseAjax('.series_02 .wrap', $(this).data('src')) setTimeout(function () { $(".series_02 .pull-left ul li").eq(0).click() }, 100) }) $(".series_01 .indexSolu_tab li").eq(request('ind')).click() $('.series_02').on('click', '.pull-left ul li', function () { $(this).addClass("on").siblings().removeClass("on") caseAjax('.series_02 .pull-right', $(this).data('src')) }) // $('.solutiondetails_02 ul li').click(function(index){ $(this).addClass("on").siblings().removeClass("on") $('.solutiondetails_03 div').eq($(this).index()).addClass('on').siblings().removeClass("on") }) }) //caseAjax function caseAjax(str, url) { $.ajax({ url: url, success: function (msg) { $(str).html(""); $(str).append(msg); } }); } function seriesdetails_05swiper(){ var indexSoluSwiper1 = new Swiper('.seriesdetails_05 .swiper-container', { slidesPerView: 3, nextButton: '.seriesdetails_05 .swiper-button-next', prevButton: '.seriesdetails_05 .swiper-button-prev', spaceBetween: 60, breakpoints: { 768: { slidesPerView: 1, } } }); } function olutiondetails_04swiper(){ var indexSoluSwiper2 = new Swiper('.solutiondetails_04 .swiper-container', { slidesPerView: 3, nextButton: '.solutiondetails_04 .swiper-button-next', prevButton: '.solutiondetails_04 .swiper-button-prev', spaceBetween: 60, breakpoints: { 768: { slidesPerView: 1, } } }); } function swiperjiejue(){ //console.log('1') var aaa = $('.solutiondetails_01 ul li').length if($(window).width() > 767){ if(aaa <= '4'){ $('.solutiondetails_01 .lhl_but').hide() } } var num = '0' var rrr = true if($('.solutiondetails_01 .swiper-slide').length <= 3){ num = '1' }else{ rrr = false } var seriesdetails_01swiperswiper = new Swiper('.solutiondetails_01 .swiper-container', { slidesPerView: 4, nextButton: '.solutiondetails_01 .swiper-button-next', prevButton: '.solutiondetails_01 .swiper-button-prev', spaceBetween: 0, initialSlide :num, centeredSlides:rrr, breakpoints: { 768: { slidesPerView: 1, } } }); // if($('.solutiondetails_01 .swiper-slide').length <= 3 && $(window).width() > 767){ // seriesdetails_01swiperswiper.detachEvents(); // } } function develop_03(){ var reform_list = new Swiper('.develop_03 .swiper-container', { pagination: '.develop_03 .swiper-pagination', // effect: 'coverflow', prevButton: '.develop_03 .swiper-button-prev', nextButton: '.develop_03 .swiper-button-next', // grabCursor: true, loopAdditionalSlides : 1, centeredSlides: true, slidesPerView: 2, loop:true, slideShadows : true, // autoplay:3000, autoplayDisableOnInteraction : false, // coverflow: { // rotate: 0, // stretch: 80, // // depth: 80, // modifier: 1, // slideShadows : true // }, noSwiping:false, paginationClickable :false, // observer:true, spaceBetween: 120, observeParents:true, breakpoints: { 1024:{ slidesPerView: 1, direction: 'horizontal', effect:"slide", centeredSlides:false, loopAdditionalSlides : false, paginationClickable: true, noSwiping:false } } }); } function select(){ $(".select-box").each(function (i) { $(this).find("dt").click(function (e) { $(this).siblings().slideToggle(); $(this).parents("li").siblings().find("dd").slideUp(); $(this).parents("li").siblings().find("dt").removeClass('on_o'); if($(this).hasClass('on_o')){ $(this).removeClass('on_o'); }else{ $(this).addClass('on_o'); } e.preventDefault(); e.stopPropagation() $(".select-box").eq(i).find("dd a").each(function (x) { $(this).click(function () { $(".select-box").eq(i).find("dd a").removeClass("on"); $(this).addClass("on"); $(".select-box").eq(i).find("dt span").text($(this).text()); }) }) }) }) $(document).click(function () { $(".select-box dd").slideUp(); $(".select-box dt").removeClass('on_o'); }) $(".select-box dt").on("click", function(e){ if($(this).siblings(".select-box dd").is(":hidden")){ $(this).siblings(".select-box dd").slideDown(); }else{ } }); } function request(paras) { var url = location.href; var paraString = url.substring(url.indexOf("?")+1,url.length).split("&"); var paraObj = {} for (i=0; j=paraString[i]; i++){ paraObj[j.substring(0,j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=")+1,j.length); } var returnValue = paraObj[paras.toLowerCase()]; if(typeof(returnValue)=="undefined"){ return ""; }else{ return returnValue; } }