//手机端跳转 if (navigator.userAgent.indexOf("iPhone") > 0 || navigator.userAgent.indexOf("Android") > 0 || navigator.userAgent.indexOf("iPod") > 0) { var patt1 = new RegExp("[0-9]*_[0-9]*"); var url = patt1.exec(location.href); if (url != "") { self.location = "http://divency.com"; } }
$(function(){ $(".companynewsDetail .list>.listbar>.links>ul>li").click(function(){ $(".companynewsDetail .list>.listbar>.links>ul>li>a>span").removeClass("active_links_li"); $(this).addClass("active_links_li"); }) }) var url = window.location.href; var a = url.substr(28,2); if (a=="29") { $(".companynewsDetail .list>.listbar>.links>ul>li:eq(0)").addClass("active_links_li");//sgw电脑端list选中 $(".companynewsDetail .list>.listbar>.links>ul>li>a>span:eq(0)").addClass("active_li_a"); }else if (a=="53") { $(".companynewsDetail .list>.listbar>.links>ul>li:eq(1)").addClass("active_links_li"); $(".companynewsDetail .list>.listbar>.links>ul>li>a>span:eq(1)").addClass("active_li_a"); }else if (a=="31") { $(".companynewsDetail .list>.listbar>.links>ul>li:eq(2)").addClass("active_links_li"); $(".companynewsDetail .list>.listbar>.links>ul>li>a>span:eq(2)").addClass("active_li_a"); }else if (a=="32") { $(".companynewsDetail .list>.listbar>.links>ul>li:eq(3)").addClass("active_links_li"); $(".companynewsDetail .list>.listbar>.links>ul>li>a>span:eq(3)").addClass("active_li_a"); } layui.use('form', function(){ var form = layui.form; //监听提交 form.on('submit(formDemo)', function(data){ layer.msg(JSON.stringify(data.field)); return false; }); });