$(function(){ $('.btn-nav').on('click tap', function () { $(this).toggleclass('animated'); }); $(".cai_tu button").click(function(){ $(".cai_list").slidetoggle(); $(".cai").toggleclass('cais'); }) $(".love_mune a").hover(function () { $(".love_mune a").removeclass("love_mune_a"); $(this).addclass("love_mune_a"); $(".love_all").hide(); $(".love_all").eq($(this).index()).show(); }) var swiper = new swiper('.course_list', { autoplay: { delay: 5000, disableoninteraction: false, }, speed:800, pagination: { el: '.paginationco', clickable: true, }, autoplaydisableoninteraction : false, loop:true, paginationclickable:true, parallax : true, }); $(".nav_1").hover(function(){ $(this).stop().find(".nav_1_warp").fadein(); $(this).find(".nav_shang").stop().animate({"opacity":"1","margin-top":"0"}) },function(){ $(this).find(".nav_1_warp").fadeout(100); $(this).find(".nav_shang").stop().css({"opacity":"0","margin-top":"10px"}) }) $(".trouble ul li").click(function(){ var che=$(this).attr("che"); //alert(pin); var a=1; if(a==che) { $(".trouble_con").hide(); $(this).addclass("trouble_li"); $(this).find(".trouble_con").slidetoggle(300).siblings(".trouble_con").slideup("slow"); $(this).attr("che","2"); }else{ $(".trouble_con").slideup(); $(".trouble ul li").removeclass("trouble_li"); $(this).attr("che","1"); } }); $(".support_mune a").click(function () { $(".support_mune a").removeclass("support_mune_a"); $(this).addclass("support_mune_a"); $(".support").hide(); $(".support").eq($(this).index()).show(); }) $(".contact_mune a").click(function () { $(".contact_mune a").removeclass("contact_mune_a"); $(this).addclass("contact_mune_a"); $(".contact").hide(); $(".contact").eq($(this).index()).show(); }) $(".welfare_list a").hover(function () { $(".welfare_list a").removeclass("welfare_list_a"); $(this).addclass("welfare_list_a"); $(".welfare_con").hide(); $(".welfare_con").eq($(this).index()).show(); }) $(".select p").click(function(e){ $(".select").toggleclass('open'); e.stoppropagation(); }); $(".select ul li").click(function(e){ var _this=$(this); $(".select > p").text(_this.attr('data-value')); _this.addclass("selected").siblings().removeclass("selected"); $(".select").removeclass("open"); e.stoppropagation(); }); $(".select1 p").click(function(e){ $(".select1").toggleclass('open'); e.stoppropagation(); }); $(".select1 ul li").click(function(e){ var _this=$(this); $(".select1 > p").text(_this.attr('data-value')); _this.addclass("selected").siblings().removeclass("selected"); $(".select1").removeclass("open"); e.stoppropagation(); }); $(document).on('click',function(){ $(".select").removeclass("open"); $(".select1").removeclass("open"); }) $(".job ul li").click(function(){ var che=$(this).attr("che"); //alert(pin); var a=1; if(a==che) { $(".job_con").hide(); $(this).addclass("job_li"); $(this).find(".job_con").slidetoggle(300).siblings(".job_con").slideup("slow"); $(this).attr("che","2"); }else{ $(".job_con").slideup(); $(".trouble ul li").removeclass("_li"); $(this).removeclass("job_li"); $(this).attr("che","1"); } }); $(".present_mune a").hover(function () { $(".present_mune a").removeclass("present_mune_a"); $(this).addclass("present_mune_a"); $(".present_con").hide(); $(".present_con").eq($(this).index()).show(); }) var myswiper2 = new swiper('.partner_list', { /*pagination: { el: '.paginationc', clickable: true, },*/ autoplay: { delay: 5000, disableoninteraction: false, }, speed:800, autoplaydisableoninteraction : false, //loop:true, paginationclickable:true, slidesperview:4, slidespercolumn : 3, spacebetween:0, }); var swipera = new swiper('.substance', { speed:800, autoplaydisableoninteraction : false, slidesperview:1, paginationclickable:true, }); var galleryswiper = new swiper('.substance',{ spacebetween: 10, navigation: { nextel: '.history-right', prevel: '.history-left', }, thumbs: { swiper: { el: '.history_list', spacebetween: 0, slidesperview:3, breakpoints: { 1279: { slidesperview:5 } }, watchslidesvisibility: true, }, controller: { control: swipera, //控制swiper1 }, autoscrolloffset: 1, } }) swipera.controller.control = galleryswiper; var swiper = new swiper('.big', { /*autoplay: { delay: 5000, disableoninteraction: false, },*/ speed:800, pagination: { el: '.pagination', clickable: true, }, effect : 'fade', fadeeffect: { crossfade: true, }, autoplaydisableoninteraction : false, loop:true, paginationclickable:true, parallax : true, }); }); $(function(){ if($(window).width()>1200){ window.onscroll=function(){ if ($(document).scrolltop() >95) { $(".header").addclass('header11'); }else{ $(".header").removeclass('header11'); } } } }) $(window).resize(function(){ if($(window).width()<1197 && $(window).width()>=300) { $(".news_img,.news_img img,.market_img,.market_img img,.sketch_img,.sketch_img img").css({"width":$(window).width()*0.96}) $(".news_img,.news_img img").css({height:$(window).width()*0.96/364*218}) $(".market_img,.market_img img").css({height:$(window).width()*0.96/351*255}) $(".inborn_tu,.inborn_tu img,.resolve_img,.resolve_img img,.industry_img,.industry_img img").css({"width":$(window).width()*0.4704}) $(".inborn_tu,.inborn_tu img").css({height:$(window).width()*0.4704/236*322}) $(".sketch_img,.sketch_img img").css({height:$(window).width()*0.96/367*247}) $(".resolve_img,.resolve_img img").css({height:$(window).width()*0.4704/400*251}) $(".industry_img,.industry_img img").css({height:$(window).width()*0.4704/242*319}) $(".big_con").css({"padding-top":(240-106)/2}) } if($(window).width()<1434 && $(window).width()>=1198) { $(".news_img,.news_img img").css({width:334,height:204}) $(".market_img,.market_img img").css({width:322,height:233}) $(".inborn_tu,.inborn_tu img").css({width:217,height:296}) $(".sketch_img,.sketch_img img").css({width:336,height:227}) $(".big_con").css({"padding-top":($(window).height()-186)/2+40}) } if($(window).width()>=1435) { $(".news_img,.news_img img").css({width:364,height:218}) $(".market_img,.market_img img").css({width:351,height:255}) $(".inborn_tu,.inborn_tu img").css({width:236,height:322}) $(".sketch_img,.sketch_img img").css({width:367,height:247}) $(".big_con").css({"padding-top":($(window).height()-206)/2+50}) } }) $(function(){ if($(window).width()<1197 && $(window).width()>=300) { $(".news_img,.news_img img,.market_img,.market_img img,.sketch_img,.sketch_img img").css({"width":$(window).width()*0.96}) $(".news_img,.news_img img").css({height:$(window).width()*0.96/364*218}) $(".market_img,.market_img img").css({height:$(window).width()*0.96/351*255}) $(".inborn_tu,.inborn_tu img,.resolve_img,.resolve_img img,.industry_img,.industry_img img").css({"width":$(window).width()*0.4704}) $(".inborn_tu,.inborn_tu img").css({height:$(window).width()*0.4704/236*322}) $(".sketch_img,.sketch_img img").css({height:$(window).width()*0.96/367*247}) $(".resolve_img,.resolve_img img").css({height:$(window).width()*0.4704/400*251}) $(".industry_img,.industry_img img").css({height:$(window).width()*0.4704/242*319}) $(".big_con").css({"padding-top":(240-106)/2}) } if($(window).width()<1434 && $(window).width()>=1198) { $(".news_img,.news_img img").css({width:334,height:204}) $(".market_img,.market_img img").css({width:322,height:233}) $(".inborn_tu,.inborn_tu img").css({width:217,height:296}) $(".sketch_img,.sketch_img img").css({width:336,height:227}) $(".big_con").css({"padding-top":($(window).height()-186)/2+40}) $(".resolve_img,.resolve_img img").css({width:340,height:213}) $(".industry_img,.industry_img img").css({width:206,height:272}) } if($(window).width()>=1435) { $(".news_img,.news_img img").css({width:364,height:218}) $(".market_img,.market_img img").css({width:351,height:255}) $(".inborn_tu,.inborn_tu img").css({width:236,height:322}) $(".sketch_img,.sketch_img img").css({width:367,height:247}) $(".big_con").css({"padding-top":($(window).height()-206)/2+50}) $(".resolve_img,.resolve_img img").css({width:400,height:251}) $(".industry_img,.industry_img img").css({width:242,height:319}) //$(".bill_left").css({height:a}) } /*$(window).resize(function(){ if($(window).width()<1434 && $(window).width()>=1198) { $(".news_img,.news_img img").css({width:334,height:204}) $(".market_img,.market_img img").css({width:322,height:233}) $(".inborn_tu,.inborn_tu img").css({width:217,height:296}) $(".sketch_img,.sketch_img img").css({width:336,height:227}) $(".big_con").css({"padding-top":($(window).height()-186)/2+40}) } if($(window).width()>=1435) { $(".news_img,.news_img img").css({width:364,height:218}) $(".market_img,.market_img img").css({width:351,height:255}) $(".inborn_tu,.inborn_tu img").css({width:236,height:322}) $(".sketch_img,.sketch_img img").css({width:367,height:247}) $(".big_con").css({"padding-top":($(window).height()-206)/2+50}) } }) $(function(){ if($(window).width()<1279 && $(window).width()>=300) { $(".news_img,.news_img img,.case_img,.case_img img").css({"width":$(window).width()*0.96}) $(".news_img,.news_img img").css({height:$(window).width()*0.96/488*295}) $(".case_img,.case_img img").css({height:$(window).width()*0.96/676*408}) $(".big_con").css({"padding-top":(240-108)/2}) $(".example_img,.example_img img").css({width:$(window).width()*0.96,height:240}) $(".core_xian").css({width:$(window).width()*0.96-10}) $(".core_one").css({width:$(window).width()*0.96}) $(".core_er").css({width:$(window).width()*0.96}) $(".core_three").css({width:$(window).width()*0.96}) } if($(window).width()<1434 && $(window).width()>=1198) { $(".news_img,.news_img img").css({width:334,height:204}) $(".market_img,.market_img img").css({width:322,height:233}) $(".inborn_tu,.inborn_tu img").css({width:217,height:296}) $(".sketch_img,.sketch_img img").css({width:336,height:227}) $(".big_con").css({"padding-top":($(window).height()-186)/2+40}) $(".resolve_img,.resolve_img img").css({width:340,height:213}) $(".industry_img,.industry_img img").css({width:206,height:272}) } if($(window).width()>=1435) { $(".news_img,.news_img img").css({width:364,height:218}) $(".market_img,.market_img img").css({width:351,height:255}) $(".inborn_tu,.inborn_tu img").css({width:236,height:322}) $(".sketch_img,.sketch_img img").css({width:367,height:247}) $(".big_con").css({"padding-top":($(window).height()-206)/2+50}) $(".resolve_img,.resolve_img img").css({width:400,height:251}) $(".industry_img,.industry_img img").css({width:242,height:319}) //$(".bill_left").css({height:a}) }*/ })