var common ={ inhead: function(){ $(".head-btn").on("click touch",function(){ $(".head-ul").toggle(); }); $(".peo-ic").on("click touch",function(){ $(".login-bg").show(); $(".login").show(); }); $(".login-close").on("click touch",function(){ $(".login-bg").hide(); $(".login").hide(); }); $(".login-bg").on("click touch",function(){ $(this).hide(); $(".login").hide(); }); var $wi = $(window).outerwidth(); if($wi<=740){ $(".head-a").on("click touch",function(){ var num = $(this).siblings(".head-pull-ul").find("li").length; if(num>1){ $(this).siblings().toggleclass("active"); } }) } }, index: function () { //��ҳ���⴦�� $(document.body).css({ "padding": "0" }); $(".head").css({ "position": "relative" }); $(".foot").css({ "position": "static" }); $(".foot-bot").css({ "display": "block" }); //�����ͼ�ֲ� $('.banner-ul').owlcarousel({ items: 1, itemsdesktop: [1920, 1], itemsdesktopsmall: [980, 1], itemstablet: [768, 1], itemsmobile: [479, 1], autoplay: 3000, autoheight: true, //transitionstyle: 'fade', pagination: true, navigation: false, navigationtext: [" ", " "] }); //��������ֲ� $('#ind-relat-ul').owlcarousel({ items: 8, itemsdesktop: [1199, 8], itemsdesktopsmall: [980, 8], itemstablet: [768, 4], itemsmobile: [479, 3], autoplay: 3000, autoheight: true, //transitionstyle: 'fade', pagination: false, navigation: true, navigationtext: ["", ""] }); try { //��ֲ� var $ind = 0; var _ind = 0; var _ul = $(".fs_ul"); var _ulb = $(".sc_ul"); var _copy = $(".fs_li").eq(0).clone(); var _copyb = $(".sc_li").eq(0).clone(); _ul.append(_copy); _ulb.append(_copyb); var _le = $(".fs_li").length; var _leb = $(".sc_li").length; function play() { _ul.animate({ "top": -100 * _ind + "%" }, 300, function () { if (_ind == _le - 1) { _ul.css("top", 0); _ind = 0; } }); _ulb.animate({ "top": -100 * _ind + "%" }, 300, function () { if ($ind == _leb - 1) { _ulb.css("top", 0); $ind = 0; } }); }; function auto() { var timer = setinterval(function () { $ind++; _ind++; play(); }, 3000); }; auto(); } catch (e) { } }, pro:function(){ $(".pro-det-tr td:even").addclass("active"); $(".pro-det-a").on("click touch",function(){ var num = $(this).index(); $(this).addclass("active").siblings().removeclass("active"); $(".pro-det-li").eq(num).show().siblings().hide(); }); $(".pro-worth-table tr:even").addclass("active"); }, speech: function(){ $(".speech-nav-tit").on("click touch",function(){ $(".speech-nav-ic").toggleclass("active"); $(".speech-nav-ul").toggle(); }) }, problem:function(){ $(".problem-tit").on("click touch",function(){ $(this).closest(".problem-li").toggleclass("active"); $(this).closest(".problem-li").siblings().removeclass("active"); }) } }