//手机端跳转 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://gcbrmy.com"; } }
$(function(){ $(".recruits .list>.listbar>.links>ul>li").click(function(){ $(".recruits .list>.listbar>.links>ul>li>a>span").removeClass("active_links_li"); $(this).addClass("active_links_li"); }) $(".intro .list>.listbar>.links>ul>li").click(function(){ $(".intro .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(30,2); console.log(a) if (a=="48") { $(".recruits .list>.listbar>.links>ul>li:eq(0)").addClass("active_links_li");//sgw电脑端list选中 $(".recruits .list>.listbar>.links>ul>li>a>span:eq(0)").addClass("active_li_a"); }else if(a=="47"){ // $('.intro .list>.listbar>.links>ul>li').css('background','#fff') // $('.intro .list>.listbar>.links>ul>li>a>span').css('border-bottom','0.1875rem solid #49915B') // $('.intro .list>.listbar>.links>ul>li>a>span').css('color','#3f7a4e !important') $(".intro .list>.listbar>.links>ul>li:eq(1)").addClass("active_links_li"); $(".intro .list>.listbar>.links>ul>li>a>span:eq(1)").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; }); });