var wow = new wow({ boxclass: 'wow', animateclass: 'animated', offset: 0, mobile: true, live: true }); wow.init(); $(function() { resize(); var d = new date() var weekday = new array(); weekday[0] = "星期日"; weekday[1] = "星期一"; weekday[2] = "星期二"; weekday[3] = "星期三"; weekday[4] = "星期四"; weekday[5] = "星期五"; weekday[6] = "星期六"; var year = d.getfullyear(); var motnh = d.getmonth() + 1; var day = d.getdate(); var str = year + '年' + motnh + '月' + day + '日' + " " + weekday[d.getday()]; $('#time').html(str); var win_width = $(window).width(); var win_height = $(window).height(); var btn2 = true; var aj = 0; if (navigator.appname == "microsoft internet explorer" && parseint(navigator.appversion.split(";")[1].replace(/[ ]/g, "").replace("msie", "")) <= 9) { alert("您的浏览器版本过低,请下载ie10及以上版本"); } else { settimeout(function() { $(".loading").fadeout(); }, 1800); settimeout(function() { var indexswiper = new swiper('.home-swiper', { roundlengths: true, loop: true, speed: 600, pagination: { el: '.swiper-pagination1', clickable: true, }, }); }, 100); } var xmswiper = new swiper(".xm-swiper", { slidesperview: 6, spacebetween: 20, loop: true, autoplay: true, breakpoints: { 640: { slidesperview: 2, spacebetween: 10, }, 768: { slidesperview: 2, spacebetween: 10, }, 1024: { slidesperview: 4, spacebetween: 10, }, }, }); var hezuouswiper = new swiper(".hezuo-swiper", { slidesperview: 6, spacebetween: 20, loop: true, autoplay: true, breakpoints: { 640: { slidesperview: 2, spacebetween: 10, }, 768: { slidesperview: 2, spacebetween: 10, }, 1024: { slidesperview: 4, spacebetween: 10, }, }, }); $(window).on('resize', function() { }); $(".d-dgd__line1 .d-dgd__line1__tab").click(function() { $(".d-dgd__line1 .d-dgd__line1__tab").removeclass('selected-tab'); $(this).addclass('selected-tab'); $('.d-ggdh__content').hide(); $('#dline' + $(this).index()).show(); }); $(".shoucang").click(function() { var status = $(this).attr('data-id'); if (status == 1) { $('.shoucang .img1').hide(); $('.shoucang .img2').show(); } else { $('.shoucang .img1').show(); $('.shoucang .img2').hide(); } }); $(".a_rlzydiv_c dd").click(function() { $(".a_rlzydiv_c dd .div").removeclass("activerc"); $(".a_rlzydiv_c dd .div1").slideup(500); $(this).find(".div1 .s5").html("点击展开+"); $(this).find(".s5").html("[点击展开]"); var dis = $(this).find(".div1").css("display"); var dlshow = $(this).find(".div1").length; if (dlshow > 0 && dis == "none") { $(this).find(".div").addclass("activerc"); $(this).find(".div1").slidedown(500); $(this).find(".s5").html("[点击收起]"); } }); $(".fofix .close").click(function() { $('.fofix').fadeout(500); }); $(".fanhui").click(function() { $('html,body').animate({ 'scrolltop': 0 }, 500); //杩斿洖椤堕儴鍔ㄧ敾 鏁板€艰秺灏忔椂闂磋秺鐭� }); $('.imglist li').magnificpopup({ delegate: 'a', // the selector for gallery item type: 'image', gallery: { enabled: true } }); $(".a_zxlmenu_c li").click(function() { var dis = $(this).parent().find(".a_zxlmenu_c1").css("display"); if (dis == "none") { $(this).parent().find(".a_zxlmenu_c1").stop(false, true).slidedown(500); } else { $(this).parent().find(".a_zxlmenu_c1").slideup(500); } }); $(".a_zxlmenu .a_zxlmenu_t").click(function() { var dis = $(this).parent().find(".a_zxlmenu_c").css("display"); if (dis == "none") { $(this).parent().find(".a_zxlmenu_c").stop(false, true).slidedown(500); } else { $(this).parent().find(".a_zxlmenu_c").slideup(500); } }); $(".renli li .n_c1").click(function() { var dis = $(this).parent().find(".n_c2").css("display"); if (dis == "none") { $(this).parent().addclass('active'); $(this).parent().find(".n_c2").stop(false, true).slidedown(500); } else { $(this).parent().removeclass('active'); $(this).parent().find(".n_c2").slideup(500); } }); $('.zhangcheng li .text1').click(function() { var dis = $(this).parent().find(".text").css("display"); if (dis == "none") { $(this).parent().find(".text").stop(false, true).slidedown(500); $(this).parent().addclass('active'); } else { $(this).parent().find(".text").slideup(500); $(this).parent().removeclass('active'); } }); $('.nemnu li').click(function() { var dis = $(this).find("dl").css("display"); if (dis == "none") { $(this).find("dl").stop(false, true).slidedown(500); } else { $(this).find("dl").slideup(500); } }); $('.nemnu li').each(function() { if ($(this).hasclass('active')) { $(this).find('dl').show(); } }); var btn = true; $(".nav_but_box").click(function() { $(this).parent().toggleclass("phone_nav_one") $("body").toggleclass('hided'); if (btn) { $(".phone_nav .nav_but").css("background", "none"); btn = false; } else { $(".phone_nav .nav_but").css("background", "#2e366c"); btn = true; } }) //手机导航 $(".nav_main b").click(function() { $(this).parent().toggleclass("b_one") .siblings().removeclass("b_one"); }) $(".fenzhi li .text1").click(function() { if ($(this).parent().hasclass('active')) { $(this).parent().removeclass('active'); $(this).parent().find(".text2").slideup(700); } else { $(this).parent().addclass('active'); $(this).parent().find(".text2").stop(false, true).slidedown(700); } }); $('.se1_menuuldd li').eq(0).show(); $(".se1_menu li").click(function() { $(".se1_menu li").removeclass('active'); $(this).addclass('active') $('.se1_menuuldd li').hide(); $('.se1_menuuldd li').eq($(this).index()).show(); }); $('.login_dl dd').eq(0).show(); $(".login_ul li").click(function() { $(".login_ul li").removeclass('active'); $(this).addclass('active'); $('.login_dl dd').hide(); $('.login_dl dd').eq($(this).index()).show(); }); $(".remenu li").click(function() { var datatype = $(this).attr('data-type'); $(".remenu li").removeclass('active'); $(this).addclass('active'); $('#regtype').val(datatype); }); function resize() { var bgwidth = document.documentelement.clientwidth; var bgheight = document.documentelement.clientheight; var navh = $(".headerbox2").height(); var bannerh = bgheight - navh; $(".yc_box1").css({ "height": bgheight + "px" }); if (bgwidth > 992) { $("#banner").css({ "height": bannerh + "px" }); } else { /*$("#banner").css({"height":"auto !important"});*/ $("#banner").css({ "height": "auto" }); } } $("#in_video").click(function() { var video = $(this).attr('data-video'); $(".video_div").stop(false, true).animate({ "top": "0px" }, 500); $("#video_yscj").attr("src", video); }); $("#in_video2").click(function() { var video = $(this).attr('data-video'); $(".video_div").stop(false, true).animate({ "top": "0px" }, 500); $("#video_yscj").attr("src", video); }); $(".video_div_closebtv").click(function() { $(".video_div").stop(false, true).animate({ "top": "-100%" }, 500); $("#video_yscj").attr("src", ""); // $(".video_div_center").html(' ') }); var se1newswiper = new swiper('.se1new-swiper', { roundlengths: true, autoplay: { delay: 3000, stoponlastslide: false, disableoninteraction: true, }, loop: true, speed: 600, pagination: { el: '.swiper-pagination', clickable: true, }, }); // $(".nav").hover(function() { // var dis = $('.menunavfix').css("display"); // if (dis == "none") { // $('.menunavfix').fadein(); // } // }, function() { // }); // $(".menunavfix").hover(function() { // }, function() { // $('.menunavfix').fadeout(); // }); var indexswiper = new swiper('.index-swiper', { spacebetween: 0, speed: 1800, // effect: 'fade', loop: false, centeredslides: true, autoplay: { delay: 5500, disableoninteraction: false, }, pagination: { el: '.swiper-pagination-index-banner', clickable: true, }, }); $('.cpullist li').magnificpopup({ delegate: 'a', // the selector for gallery item type: 'image', gallery: { enabled: true } }); $(".fanhui").click(function() { $('html,body').animate({ 'scrolltop': 0 }, 500); //杩斿洖椤堕儴鍔ㄧ敾 鏁板€艰秺灏忔椂闂磋秺鐭� }); $('#yc').click(function() { $('.duibi').slideup(500); }); });