var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?bfe6c9e1ab4458f4c5a2bb29031f6ad9"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); $(function(){ // banner // 褰撳睆灏忎綑绛変綑991鐨勬椂鍊橴L闅愯棌锛岀偣鍑籭鐨勬椂鍊橴L灞曞紑 function aaa (){ var pmW = $(window).width(); if ( pmW <= 991 ){ $(".neiye .nav1").hide(); }else{ $(".neiye .nav1").show(); }; } aaa(); $(window).resize(function(){ aaa(); }); $(".gsxm-ny .hezi .box1 i").click(function(){ if ( $(".nav1").is(':hidden') ){ $(".nav1").slideDown(); }else{ $(".nav1").stop().slideUp(); } }); /*涓€绾у鑸?/ $(".logo-box ul li").mouseover(function(){ $(this).children(".ul2").stop().slideDown(); }); $(".logo-box ul li").mouseleave(function(){ $(this).children(".ul2").stop().slideUp(); }); // /*浜岀骇瀵艰埅*/ $(".logo-box .ul2 .li2").mouseover(function(){ $(this).children(".ul3").stop().slideDown(); }); $(".logo-box .ul2 .li2").mouseleave(function(){ $(this).children(".ul3").stop().slideUp(); }); $(".p-on").mouseover(function(){ $(this).children(".ul2").stop().slideDown(); }); $(".p-on").mouseleave(function(){ $(this).children(".ul2").stop().slideUp(); }); //鎵嬫満瀵艰埅 $(".ydd_btn").click(function(){ if($(this).hasClass('click')){ $(this).removeClass("click"); } else{ $(this).addClass("click"); } }); $(".ydd_btn").bind("click",function(){ $(".sjdnav").slideToggle(); }); var onoff = true; //鐐瑰嚮闅愯棌鏄剧ず $(".suspend_nav .on-off").click(function () { if (onoff) { $(".suspend_nav ul").stop().slideUp(); $(".suspend_nav .on-off").addClass("active"); } else { $(".suspend_nav ul").slideDown(); $(".suspend_nav .on-off").removeClass("active"); } onoff = !onoff; }) function top_fixed() { if ($(this).scrollTop() >= 200) { $(".suspend_nav .top").addClass("active"); } else { $(".suspend_nav .top").removeClass("active"); } } top_fixed(); //婊氬姩鐩戝惉缃《鎸夐挳 $(window).scroll(function () { top_fixed(); }); //杩斿洖椤堕儴 $body = (window.opera) ? (document.compatMode == "CSS1Compat" ? $("html") : $("body")) : $("html,body"); $(".suspend_nav .top").click(function () { $body.animate({ scrollTop: 0 }, 500) }); $(".bottom_link .weixin_click").click(function () { $(".weixin_popup").addClass("active"); }) $(".weixin_popup i").click(function () { $(".weixin_popup").removeClass("active"); }) /*绀句細璐d换*/ $(".duty .tab-item1").eq(0).show(); $(".duty .tab-term1").click(function(){ $(this).addClass('active'); $(this).siblings().removeClass("active"); var num =$(".duty .tab-term1").index(this); $(".duty .tab-item1").hide(); $(".duty .tab-item1").eq(num).addClass("active").show(); }) /*绀句細璐d换-鎴戜滑鐨勬壙璇?/ $(".duty .tab-item2").eq(0).show(); $(".duty .tab-term2").click(function(){ $(this).addClass('active'); $(this).siblings().removeClass("active"); var num =$(".duty .tab-term2").index(this); $(".duty .tab-item2").hide(); $(".duty .tab-item2").eq(num).addClass("active").show(); }) /*鍏徃淇℃伅*/ $(".essinfo .tab-item1").eq(0).show(); $(".essinfo .tab-term1").click(function(){ $(this).addClass('active'); $(this).siblings().removeClass("active"); var num =$(".essinfo .tab-term1").index(this); $(".essinfo .tab-item1").hide(); $(".essinfo .tab-item1").eq(num).show().addClass("active").siblings().hide(); }) /*鏌辩姸鍥?/ $(".con3 .tab2 .tab-item2").eq(0).show(); $(".con3 .tab2 .tab-term2").click(function(){ $(this).addClass('active'); $(this).siblings().removeClass("active"); var num =$(".con3 .tab2 .tab-term2").index(this); $(".con3 .tab2 .tab-cont .tab-item2").hide(); $(".con3 .tab2 .tab-cont .tab-item2").eq(num).show().addClass("active").siblings().hide(); }) $(".madio .tab-item").eq(0).show(); $(".madio .tab-term").click(function(){ $(this).addClass('active'); $(this).siblings().removeClass("active"); var num =$(".madio .tab-term").index(this); $(".madio .tab-cont .tab-item").hide(); $(".madio .tab-cont .tab-item").eq(num).show().addClass("active").siblings().hide(); }) $(".tab2-1 .tab-item").eq(0).show(); $(".tab2 .tab-term").click(function(){ $(this).addClass('active'); $(this).siblings().removeClass("active"); var num =$(".tab2 .tab-term").index(this); $(".tab2-1 .tab-item").hide(); $(".tab2-1 .tab-item").eq(num).show().addClass("active").siblings().hide(); }) $(".tab1 .tab-item1").eq(0).show(); $(".tab1 .tab-term").click(function(){ $(this).addClass('active'); $(this).siblings().removeClass("active"); var num =$(".tab1 .tab-term").index(this); $(".tab-cont .tab-item1").hide(); $(".tab-cont .tab-item1").eq(num).show().addClass("active").siblings().hide(); }) /*瀹氭湡鎶ュ憡*/ $(".report .tab-item").eq(0).show(); $(".report .tab-term").click(function(){ $(this).addClass('active'); $(this).siblings().removeClass("active"); var num =$(".report .tab-term").index(this); $(".report .tab-cont .tab-item").hide(); $(".report .tab-cont .tab-item").eq(num).show().addClass("active").siblings().hide(); }) /*鍏ㄧ悆甯冨眬*/ $(".info4 .tab-cont .tab-item").eq(0).show(); $(".info4 .tab-bar .tab-term").click(function(){ $(this).addClass('active'); $(this).siblings().removeClass("active"); var num =$(".info4 .tab-bar .tab-term").index(this); $(".info4 .tab-cont .tab-item").hide(); $(".info4 .tab-cont .tab-item").eq(num).show().addClass("active").siblings().hide(); }) //鐐瑰嚮鍔犺浇鏇村 $(document).ready(function () { // Load the first 3 list items from another HTML file //$('#myList').load('externalList.html li:lt(3)'); $('.info6 li:lt(2)').show(); $('.info6 .mo').click(function () { $('.info6 li:lt(20)').show(); $(".info6 .mo").hide(); }); // $('.info6 .mo').click(function () { // $('.info6 li').not(':lt(3)').hide(); // }); }); $(window).scroll(function(){ if($(window).scrollTop() > 10){ $('.wow').css("animation-name","wow"); }else{ } }); });