//手机端跳转 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://aipin9.com"; } }
if (!window.jQuery) { document.write(unescape("%3Cscript src='/public/static/common/js/jquery.min.js' type='text/javascript'%3E%3C/script%3E")); document.write(unescape("%3Cscript type='text/javascript'%3E try{jQuery.noConflict();}catch(e){} %3C/script%3E")); } if (window.jQuery) { (function($){ default_switch(); //简体繁体互换 function default_switch() { var home_lang = getCookie('home_lang'); if (home_lang == '') { home_lang = 'cn'; } if ($.inArray(home_lang, ['zh','cn'])) { var obj = $('#jquerys2t_1573822909'); var isSimplified = getCookie('jquerys2t_1573822909'); if ('cn' == isSimplified) { $('body').t2s(); $(obj).text('繁體'); } else if ('zh' == isSimplified) { $('body').s2t(); $(obj).text('简体'); } } } //简体繁体互换 $('#jquerys2t_1573822909').click(function(){ var obj = this; var isSimplified = getCookie('jquerys2t_1573822909'); if ('' == isSimplified || 'cn' == isSimplified) { $('body').s2t(); // 简体转繁体 setCookie('jquerys2t_1573822909', 'zh'); $(obj).text('简体'); } else { $('body').t2s(); // 繁体转简体 setCookie('jquerys2t_1573822909', 'cn'); $(obj).text('繁體'); } }); })(jQuery); } $(function(){ $('.certificate .medalgo>img').click(function(){ // 放大图片 let thisImg = $(this).parents('.certificate').find('.medalimg'); thisImg.zoomify('zoom'); }) $('.medalimg').click(function(){ $(this).zoomify('zoom'); }) }) $(function(){ $(".Qualifications .list>.listbar>.links>ul>li").click(function(){ $(".Qualifications .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); if (a=="14") { $(".Qualifications .list>.listbar>.links>ul>li:eq(0)").addClass("active_links_li");//sgw电脑端list选中 $(".Qualifications .list>.listbar>.links>ul>li>a>span:eq(0)").addClass("active_li_a"); }else if (a=="15") { $(".Qualifications .list>.listbar>.links>ul>li:eq(1)").addClass("active_links_li"); $(".Qualifications .list>.listbar>.links>ul>li>a>span:eq(1)").addClass("active_li_a"); }else if (a=="61") { $(".Qualifications .list>.listbar>.links>ul>li:eq(2)").addClass("active_links_li"); $(".Qualifications .list>.listbar>.links>ul>li>a>span:eq(2)").addClass("active_li_a"); }else if (a=="58") { $(".Qualifications .list>.listbar>.links>ul>li:eq(3)").addClass("active_links_li"); $(".Qualifications .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; }); });