$(function () { $('.company .introduce .container>div').click(function () { $(this).addClass('active').siblings().removeClass('active'); }) var sticky = new Sticky('[data-sticky]'); $("#product").addClass("active"); if (!/msie [6|7|8|9]/i.test(navigator.userAgent)) { var wow = new WOW({ boxClass: 'wow', animateClass: 'animated', offset: 0, mobile: true, live: true, }); wow.init(); } $("#search_pdu").keydown(function (event) { if (event.keyCode == 13) { $(".left-panel .search img").click(); } }) $(".left-panel .search img").click(function () { if ($.trim($("#search_pdu").val()) == "" || $.trim($("#search_pdu").val()) == "请输入关键词") { layer.alert('请输入您要搜索的关键字', { icon: 2, skin: 'layer-ext-moon' }) return false; } else { window.location.href = "/search.shtml?keyword=" + escape($.trim($("#search_pdu").val())) + "&item=product"; } }); $(".pro-min").slick({ infinite: false, slidesToShow: 6, slidesToScroll: 1, focusOnSelect: true, responsive: [{ breakpoint: 641, settings: { slidesToShow: 2, slidesToScroll: 1 } }, { breakpoint: 415, settings: { slidesToShow: 2, slidesToScroll: 1 } } ] }) $(".sub1>li").click(function () { $(this).toggleClass("open"); $(this).find("ul").toggle(100); }) $(".sub2>li").click(function () { $(this).toggleClass("open"); $(this).find("ul").toggle(100); return false; }) $(".sub3>li").click(function () { location.href = $(this).data("href"); return false; }) $(".question .qus-item").click(function () { $(this).find(".qus-item-a").toggle(200); $(this).find(".qus-item-q").toggleClass("open"); }); })