$(function () { ScollText($(".edit_txt")) proDetails() // moresolution() //浼佷笟鏂囧寲 ScollText($(".culture_txt")) moreculture() //鎷涜仒淇℃伅 select() // ScollText($(".select-box dd")) $(document).on("click",".rec_list dt",function(){ $(this).parents("li").toggleClass("on").siblings().removeClass("on"); $(this).siblings().slideToggle(); $(this).parents("li").siblings().find("dd").slideUp(); }) //浜у搧鎵撳嵃璇︽儏椤 morecase() ScollText($(".xgsoftware_list")) }) //搴旂敤妗堜緥 function proDetails(){ if($(window).width()<768){ $(".pro_imgSmall .swiper-button-prev i").addClass("icon-left") $(".pro_imgSmall .swiper-button-next i").addClass("icon-right") }else{ } if($(".pro_imgSmall li").length<=5){ $(".pro_imgSmall").find(".lhl_but").hide() } var bigSwiper = new Swiper('.pro_imgbig .swiper-container', { spaceBetween: 0, }); var _ind = 0; var _len = $(".pro_imgSmall .swiper-slide").length; var smallSwiper = new Swiper('.pro_imgSmall .swiper-container', { nextButton: '.pro_imgSmall .swiper-button-next', prevButton: '.pro_imgSmall .swiper-button-prev', direction:'vertical', slidesPerView:5, spaceBetween : 0, breakpoints:{ 767:{ direction:'horizontal', slidesPerView: 1, noSwiping:true } } }); btnJudge(); $(".pro_imgSmall .swiper-button-prev").click(function() { _ind--; btnJudge() $(".pro_imgSmall .swiper-slide").eq(_ind).addClass("on").siblings().removeClass("on"); $(".pro_imgSmall .swiper-slide.on").click(); bigSwiper.slideTo(_ind, 1000, false); }) $('.pro_imgSmall .swiper-button-next').click(function() { _ind++; btnJudge() $(".pro_imgSmall .swiper-slide").eq(_ind).addClass("on").siblings().removeClass("on"); $(".pro_imgSmall .swiper-slide.on").click(); bigSwiper.slideTo(_ind, 1000, false); }) $(".pro_imgSmall .swiper-slide").click(function(){ _ind = $(this).index(); $(this).addClass("on").siblings().removeClass("on"); btnJudge(); bigSwiper.slideTo(_ind, 1000, false); }) $(".bigSwiper .swiper-slide").eq(0).click(); function btnJudge() { if(_ind >= _len - 1) { $('.pro_imgSmall .swiper-button-next').addClass("disabled") _ind = _len - 1; } else { $('.pro_imgSmall .swiper-button-next').removeClass("disabled") } if(_ind <= 0) { $(".pro_imgSmall .swiper-button-prev").addClass("disabled") _ind = 0; } else { $(".pro_imgSmall .swiper-button-prev").removeClass("disabled") } } // setTimeout(function () { // if($(".content_05 .swiper-pagination").css("display")=="none" ){ // $(".content_05").addClass("on") // } // },1000) } //鏇村瑙e喅妗堜緥 // function moresolution() { // if($(".Moresolution dl").length>3){ // $(".Moresolution").find(".swiper-pagination").show() // }else{ // $(".Moresolution").find(".swiper-pagination").hide() // } // var sizesnum=3; // if($(window).width()<1023){ // // var sizesnum=4; // } // if($(window).width()<767){ // // var sizesnum=1; // } // var dlCount=Math.ceil($(".Moresolution .tab_slide02_hide").find('dl').length/sizesnum) // console.log(dlCount) // for(i=0;i') // console.log(i) // for(x=0;x 1024) { var myIcon = new BMap.Icon("../images/address.png", new BMap.Size(155, 154));// icon鎸夐挳 } else { var myIcon = new BMap.Icon("../images/address2.png", new BMap.Size(27, 35));// icon鎸夐挳 } var marker2 = new BMap.Marker(point2, { icon: myIcon }); // 鍒涘缓鏍囨敞 map.addOverlay(marker2); // 灏嗘爣娉ㄦ坊鍔犲埌鍦板浘涓 map.centerAndZoom(point, 18); if ($(window).width() < 1024) { num = 0; map.centerAndZoom(point2, 20); } var opts = { width: 200, // 娣団剝浼呯粣妤€褰涚€硅棄瀹 height: 100, // 娣団剝浼呯粣妤€褰涙妯哄 title: mapTitle // 娣団剝浼呯粣妤€褰涢弽鍥暯 } map.enableScrollWheelZoom(); //鍚敤婊氳疆鏀惧ぇ缂╁皬锛岄粯璁ょ鐢 map.enableContinuousZoom(); //鍚敤鍦板浘鎯€ф嫋鎷斤紝榛樿绂佺敤 } function contUs() { //select 涓嬫媺 $(".selectInput input,.selectInput i").click(function (e) { e.stopPropagation() $(this).parents(".selectInput").toggleClass("on") $(this).siblings(".selectUl").slideToggle() ScollText($(".selectUl")) }) var titleText = $(".selectInput").data("city"); var titleAddress = ""; var address_x = $(".selectInput").data("x"); var address_y = $(".selectInput").data("y"); mapInt(titleText, titleAddress, address_x, address_y); $(".selectUl li").click(function () { var index = $(this).index() $("#sortId").data("id", $(this).data("id")); $("#sortId").val($(this).data("city")); // console.log($(this).data("city")) //$(this).parent(".selectUl").siblings("input").attr("value",text) var address = $(this).data("city") var titleAddress = ""; var l = $(this).data("x") var y = $(this).data("y") $(this).parent(".selectUl").slideUp() $('.contact_li').eq(index).addClass("on").siblings().removeClass("on") mapInt(address, titleAddress, l, y); }) $(document).click(function () { $(".selectUl").slideUp(); }) } //浼佷笟鏂囧寲 鍛樺伐鍏磋叮灏忕粍 function moreculture() { if($(".Moreculture dl").length>3){ $(".Moreculture").find(".swiper-pagination").show() $(".Moreculture").find(".lhl_but").show() }else{ $(".Moreculture").find(".swiper-pagination").hide() $(".Moreculture").find(".lhl_but").hide() } var sizesnum=3; if($(window).width()<1023){ // var sizesnum=4; } if($(window).width()<767){ var sizesnum=1; } var dlCount=Math.ceil($(".tab_slide02_hide").find('dl').length/sizesnum) for(i=0;i') for(x=0;x3){ $(".MoreCase").find(".swiper-pagination").show() $(".MoreCase").find(".lhl_but").show() }else{ $(".MoreCase").find(".swiper-pagination").hide() $(".MoreCase").find(".lhl_but").hide() } var sizesnum=3; if($(window).width()<1023){ // var sizesnum=4; } if($(window).width()<767){ var sizesnum=3; } var dlCount=Math.ceil($(".tab_slide02_hide").find('dl').length/sizesnum) for(i=0;i') for(x=0;x3){ $('#'+el+"").find(".swiper-pagination").show() }else{ $('#'+el+"").find(".swiper-pagination").hide() $('#'+el+"").parents(".content_05").addClass("on") } if($(window).width()<767){ if($('#'+el+" dl").length>1){ $('#'+el+"").find(".swiper-pagination").show() }else{ $('#'+el+"").find(".swiper-pagination").hide() $('#'+el+"").parents(".content_05").addClass("on") } }else{ if($('#'+el+" dl").length>3){ $('#'+el+"").find(".swiper-pagination").show() }else{ $('#'+el+"").find(".swiper-pagination").hide() $('#'+el+"").parents(".content_05").addClass("on") } } var sizesnum=3; if($(window).width()<1023){ // var sizesnum=4; } if($(window).width()<767){ var sizesnum=1; } var dlCount=Math.ceil($('#'+el+" .tab_slide02_hide").find('dl').length/sizesnum) console.log(dlCount) for(i=0;i') console.log(i) for(x=0;x