/* * ZQDL鎵ц鑴氭湰 * author:gaoshiyong * jQuery鐗堟湰蹇呴』鍦?1.42浠ヤ笂 */ LANG=window.LANG||{};LANG.cn=window.LANG.cn||{};LANG.cn['loading']='鍔犺浇涓?';LANG.cn['load_tips']='鍔犺浇涓紝璇风◢鍚庘€?';LANG.cn['inter_url']='璇疯緭鍏ヨ姹傚湴鍧€锛?';LANG.cn['char']='瀛楃';LANG.cn['back_to_top']='杩斿洖椤堕儴';LANG.cn['you_can_inter_char']='鎮ㄥ彲浠ヨ緭鍏=@char@=@涓瓧';LANG.cn['your_input_has_exceeded']='鎮ㄧ殑杈撳叆宸茬粡瓒呰繃浜咢=@char@=@瀛?';LANG.cn['upload_image_type_error']='涓婁紶鏂囦欢鏍煎紡鏈夎锛岃閲嶆柊涓婁紶锛?';LANG.cn['upload_image_time_out']='涓婁紶鏂囦欢瓒呮椂锛岃閲嶈瘯锛?';function OASGetLangVal(key){return LANG.cn[key]}eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3(5 p!==\'w\'){p={}}(6(){\'1y 1z\';6 f(n){7 n<10?\'0\'+n:n}3(5 11.m.q!==\'6\'){11.m.q=6(){7 1e(o.W())?o.1L()+\'-\'+f(o.1I()+1)+\'-\'+f(o.1H())+\'T\'+f(o.1q())+\':\'+f(o.1D())+\':\'+f(o.1C())+\'Z\':x};J.m.q=1B.m.q=1A.m.q=6(){7 o.W()}}y e,A,8,C,N,l;6 L(b){A.1h=0;7 A.M(b)?\'"\'+b.G(A,6(a){y c=N[a];7 5 c===\'H\'?c:\'\\\\u\'+(\'17\'+a.18(0).O(16)).1c(-4)})+\'"\':\'"\'+b+\'"\'}6 z(a,b){y i,k,v,h,B=8,9,2=b[a];3(2&&5 2===\'w\'&&5 2.q===\'6\'){2=2.q(a)}3(5 l===\'6\'){2=l.I(b,a,2)}1x(5 2){E\'H\':7 L(2);E\'P\':7 1e(2)?J(2):\'x\';E\'1w\':E\'x\':7 J(2);E\'w\':3(!2){7\'x\'}8+=C;9=[];3(Q.m.O.1v(2)===\'[w 1u]\'){h=2.h;D(i=0;i>>6)+fromCharCode(128|cc&63):fromCharCode(224|cc>>>12&15)+fromCharCode(128|cc>>>6&63)+fromCharCode(128|cc&63)}else{var cc=65536+(c.charCodeAt(0)-55296)*1024+(c.charCodeAt(1)-56320);return fromCharCode(240|cc>>>18&7)+fromCharCode(128|cc>>>12&63)+fromCharCode(128|cc>>>6&63)+fromCharCode(128|cc&63)}};var re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;var utob=function(u){return u.replace(re_utob,cb_utob)};var cb_encode=function(ccc){var padlen=[0,2,1][ccc.length%3],ord=ccc.charCodeAt(0)<<16|(ccc.length>1?ccc.charCodeAt(1):0)<<8|(ccc.length>2?ccc.charCodeAt(2):0),chars=[b64chars.charAt(ord>>>18),b64chars.charAt(ord>>>12&63),padlen>=2?"=":b64chars.charAt(ord>>>6&63),padlen>=1?"=":b64chars.charAt(ord&63)];return chars.join("")};var btoa=global.btoa||function(b){return b.replace(/[\s\S]{1,3}/g,cb_encode)};var _encode=buffer?function(u){return new buffer(u).toString("base64")}:function(u){return btoa(utob(u))};var encode=function(u,urisafe){return!urisafe?_encode(u):_encode(u).replace(/[+\/]/g,function(m0){return m0=="+"?"-":"_"}).replace(/=/g,"")};var encodeURI=function(u){return encode(u,true)};var re_btou=new RegExp(["[脌-脽][聙-驴]","[脿-茂][聙-驴]{2}","[冒-梅][聙-驴]{3}"].join("|"),"g");var cb_btou=function(cccc){switch(cccc.length){case 4:var cp=(7&cccc.charCodeAt(0))<<18|(63&cccc.charCodeAt(1))<<12|(63&cccc.charCodeAt(2))<<6|63&cccc.charCodeAt(3),offset=cp-65536;return fromCharCode((offset>>>10)+55296)+fromCharCode((offset&1023)+56320);case 3:return fromCharCode((15&cccc.charCodeAt(0))<<12|(63&cccc.charCodeAt(1))<<6|63&cccc.charCodeAt(2));default:return fromCharCode((31&cccc.charCodeAt(0))<<6|63&cccc.charCodeAt(1))}};var btou=function(b){return b.replace(re_btou,cb_btou)};var cb_decode=function(cccc){var len=cccc.length,padlen=len%4,n=(len>0?b64tab[cccc.charAt(0)]<<18:0)|(len>1?b64tab[cccc.charAt(1)]<<12:0)|(len>2?b64tab[cccc.charAt(2)]<<6:0)|(len>3?b64tab[cccc.charAt(3)]:0),chars=[fromCharCode(n>>>16),fromCharCode(n>>>8&255),fromCharCode(n&255)];chars.length-=[0,0,2,1][padlen];return chars.join("")};var atob=global.atob||function(a){return a.replace(/[\s\S]{1,4}/g,cb_decode)};var _decode=buffer?function(a){return new buffer(a,"base64").toString()}:function(a){return btou(atob(a))};var decode=function(a){return _decode(a.replace(/[-_]/g,function(m0){return m0=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))};global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode};if(typeof Object.defineProperty==="function"){var noEnum=function(v){return{value:v,enumerable:false,writable:true,configurable:true}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)}));Object.defineProperty(String.prototype,"toBase64",noEnum(function(urisafe){return encode(this,urisafe)}));Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,true)}))}}})(this)}var ZQDL=window.ZQDL||{};ZQDL.LOG=ZQDL.log=function(){if(typeof(console)=="object"&&typeof(console.log)=="function")console.log.apply(console,arguments)};ZQDL.namespace=function(ns){if(!ns||!ns.length)return null;var levels=ns.split(".");var nsobj=ZQDL;for(var i=(levels[0]=="ZQDL")?1:0;i"+window.navigator[key]+"\n";if(i>maxNum)break;i++}alert(str)}};ZQDL.namespace('ZQDL.cookie');ZQDL.cookie.get=function(key,options){options=options||{};var result,decode=options.raw?function(s){return s}:decodeURIComponent;return(result=new RegExp('(?:^|; )'+encodeURIComponent(key)+'=([^;]*)').exec(document.cookie))?decode(result[1]):null};ZQDL.cookie.remove=function(key,options){ZQDL.cookie.set(key,null,options?options:{})};ZQDL.cookie.set=function(key,value,options){options=$.extend({},{domain:'',path:'/'},options);if(value===null){options.expires=-1}if(typeof options.expires==='number'){var seconds=options.expires,t=options.expires=new Date();t.setTime(t.getTime()+seconds*1000)}value=''+value;return(document.cookie=[encodeURIComponent(key),'=',options.raw?value:encodeURIComponent(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''))};ZQDL.namespace('ZQDL.apps');ZQDL.apps.sso={login:function(){var domain=ZQDL.util.domain.domain_arr(ZQDL.util.domain.currentUrl);var post={'is_ajax':1};var url=location.protocol+'//'+ ZQDL.util.path['300cn'] +'www.'+domain[1]+'.'+domain[2];if(domain[1]!='300'){url=location.protocol+'//www.bpis.com.cn'}$.ajax({url:url+'/sso/login',crossDomain:true,type:'post',dataType:'jsonp',data:post,success:function(info){if(info.status=='1'){var userTmp=info.info;$("#home_login").hide();$("#home_reg").hide();$("#member").show();$("#userinfo").html(userTmp).show();$(".home_out_line").show();$("#home_out").show()}else{$(".home_out_line").hide();$("#home_out").hide();$("#userinfo").hide();$("#member").hide();$("#home_login").show();$("#home_reg").show()}},error:function(xhr,textStatus,errorThrow){ZQDL.LOG(errorThrow.message)}})}};$(window).scroll(function(){if($(document).scrollTop()>300){$(".scrolltop a.t").show()}else{$(".scrolltop a.t").fadeOut(200)}});$(".scrolltop a.t").bind("click",function(){var winTop=$(window).scrollTop();$('body,html').animate({scrollTop:0},winTop/6)});$(function(){$('.pop_zixun a').on('click',function(){var val=$(this).attr('value');$('#admin_add_value').val(val);$(".zx_pop").show();return false});$('body').on('click','.zixun_pop',function(){var val=$(this).attr('value');$('#admin_add_value').val(val);$(".zx_pop").show();return false});$(".zx_pop a.close").bind("click",function(){$(".zx_pop").hide();return false});try{ZQDL.apps.sso.login()}catch(e){ZQDL.LOG('鍗曠偣鐧诲綍寮傚父')}setTimeout('ZQDL.util.cnzz()',3000)}); $(function(){var l=$(".nav li").length;$(".nav li").each(function(){var w=$(this).width();var i=$(this).index();var l=$(this).position().left+150;$(".subnav_con ul").eq(i).css("width",w+"px");$(".subnav_con ul").eq(i).css("left",(w*i+200)+"px")});$(".nav li").each(function(){var a=$(this);var i=a.index();var ul=$(".subnav_con ul");var con=$(".subnav_con");var con_bg=$(".subnav_bg");a.find("a").hover(function(){var d=ul.eq(i).css("display");if(d=="none"){q=setTimeout(function(){var t=ul.eq(i).find("li").text();if(t!=''){ul.eq(i).stop(true).show();var ch=ul.eq(i).height()+30;con.stop(true).animate({height:ch+'px'},300);con_bg.stop(true).animate({height:ch+'px'},300)}},100)}else{clearTimeout(w)}},function(){clearTimeout(q);e=setTimeout(function(){ul.stop(true).hide();con.stop(true).animate({height:'0'});con_bg.stop(true).animate({height:'0'})},10)});ul.eq(i).hover(function(){clearTimeout(e)},function(){w=setTimeout(function(){con.stop(true).animate({height:'0'},300);con_bg.stop(true).animate({height:'0'},300);ul.stop(true).hide()},10)})});(function($){$.fn.TabSwitch=function(options){var opts=$.extend({},$.fn.TabSwitch.defaults,options);return this.each(function(){var tab=$(this);var menu=tab.find(opts.menu);var content=tab.find(opts.content);menu[opts.type](function(){$(this).addClass(opts.classname).siblings().removeClass(opts.classname);content.eq($(this).index()).show().siblings().hide()})})};$.fn.TabSwitch.defaults={classname:'active',type:'click',menu:'.btn span',content:'.content li'};$(".yumingsousuo-b22 input").focus(function(){if(this.value=="杈撳叆鍩熷悕锛屽锛?300"){this.value="";this.style.color="#333"}}).blur(function(){if(this.value==""){this.style.color="#ccc";this.value="杈撳叆鍩熷悕锛屽锛?300"}});$(".yumingsousuo-b22-ymxl li").hover(function(){this.style.backgroundColor="#f6f6f6"},function(){this.style.backgroundColor=""});$("#ymss").click(function(e){$(".yumingsousuo-b22-ymxl").css("display","");e.stopPropagation()});$("#ymss").click(function(){$(".yumingsousuo-b22-ymxl").css("display","none")});$(".yumingsousuo-b22-ymxl li").click(function(){$(".yumingsousuo-b22-ym").html($(this).html())})})(jQuery);$(".job-add .zhankai a").bind("click",function(){var c=$(this).attr("class");if(c=="close"){$(".job-add").css("height","auto");$(this).addClass("open").removeClass("close").html("鏀惰捣")}if(c=="open"){$(".job-add").css("height","32px");$(this).addClass("close").removeClass("open").html("灞曞紑")}});$(".branch-info a.close").bind("click",function(){$(".branch-info").hide()});$(".branch-map a").bind("click",function(){$(".branch-info").show()});$(".pop").css("height",document.body.clientHeight);$(".pop a").bind("click",function(){$(".pop").hide()});$(".pop .pop-bg").bind("click",function(){$(".pop").hide()});$(".img").each(function(){var a=$(this);a.find("a").bind("click",function(){var src=$(this).find("img").attr("src");$(".pop .content img").attr("src",src);var img=new Image();img.src=src;var imgh=0;var imgw=0;if(img.height>600){imgh=600;imgw=600/img.height*img.width;if(imgw>1100){imgh=1100/imgw*600;imgw=1100}}else{if(img.width>1100){imgw=1100;imgh=1100/img.width*img.height}else{imgw=img.width;imgh=img.height}}var cw=(imgw+40)/2*-1;var ch=(imgh+40)/2*-1;$(".pop .content").css({"margin-left":cw+"px","margin-top":ch+"px"});$(".pop").show()})});function sendYzm(flag){if(flag==1){var mycall=$('#mycall_bottom').val()}else{var mycall=$('#mycall').val()}if(mycall==''){alert('鎵嬫満鍙风爜涓嶈兘涓虹┖')}$.get('/e/enews/send.php',{mobile:mycall,action:'send'},function(data){if(data.match("^{(.+:.+,*){1,}}$")){var reg=eval("("+data+")");if(reg.code){alert(reg.msg);return}}alert('鍙戦€佹垚鍔?')})}$('.onlineserver ul li').live('mouseover',function(){$(this).stop().animate({'width':194},300).addClass('on').siblings('').removeClass('on')});$('.onlineserver ul li').live('mouseout',function(){$(this).stop().animate({'width':51},300).removeClass('on')});$('.activityrecommend .shouqi').live('mouseenter',function(){$('.activityrecommend').css({'width':'194px','height':'203px'});$('.activityrecommend .shouqi').hide();$('.activityrecommend .zhankai').fadeIn()});$('.activityrecommend .zhankai').live('mouseleave',function(){$('.activityrecommend').css({'width':'51px','height':'51px'});$('.activityrecommend .zhankai').hide();$('.activityrecommend .shouqi').fadeIn()});$('.jz-service-close').click(function(event){$(this).parent('.jz-service-open').hide().siblings('.jz-service-packup').show()});$('.jz-service-packup').mouseenter(function(){$(this).hide().siblings('.jz-service-open').show()});function yuyuePop(){$('.pop-yuyue').fadeIn()}var timer=window.setTimeout(yuyuePop,3000);window.clearTimeout(timer);window.setTimeout(yuyuePop,3000);$('.refuse-btn').bind('click',function(){$('.pop-yuyue').fadeOut();return false});$('.pop-yuyue-close').bind('click',function(){$('.pop-yuyue').fadeOut();return false});$('.hy_belong').find('.gp').click(function(ev){$(this).siblings().show();ev.stopPropagation()});$('.hy_belong').find('li').hover(function(ev){$(this).addClass('on').siblings().removeClass('on');ev.stopPropagation()});$('.hy_belong').find('li').click(function(ev){var val=$(this).text();$(this).parent().siblings('input').val(val);$(this).parent().hide();ev.stopPropagation()});$(document).click(function(){$('[name="nice-select"] ul').hide()})}); (function(G,$){var goTopDefault={speed:500};$.fn.goTop=function(opt){var $w=$(G),opt=$.extend({},goTopDefault,opt),$ele=this;$w.scroll(function(e){var sc=$w.scrollTop();if(sc>100){$ele.removeClass('go-top-none')}else{$ele.addClass('go-top-none')}});$ele.click(function(event){$('body, html').animate({scrollTop:0},opt.speed)})};var toolBarToogleDefault={onlineConnect:'#onlineConnect',sPhone:'#sPhone',hotActive:'#hotActive',freeCall:'#freeCall'};$.fn.toolBarToogle=function(opt){var opt=$.extend({},toolBarToogleDefault,opt),$ele=this,$onlineConnect=$ele.find(opt.onlineConnect),$sPhone=$ele.find(opt.sPhone),$hotActive=$ele.find(opt.hotActive),$freeCall=$ele.find(opt.freeCall);publicToogleFn({$ele:$onlineConnect,sonClass:'.t-i',toogleClass:'.f-s'});publicToogleFn({$ele:$sPhone,sonClass:'.p-t-i',toogleClass:'.p-t-i-i'});publicToogleFn({$ele:$hotActive,hideNew:true,sonClass:'.h-a-i',toogleClass:'.h-a-i-i'});publicToogleFn({$ele:$freeCall,sonClass:'.f-t-i',toogleClass:'.f-t-i-i',needhide:false});function publicToogleFn(obj){var $sonClass=obj.$ele.find(obj.sonClass),$toogleClass=$sonClass.find(obj.toogleClass),left=$toogleClass.outerWidth();$sonClass.on('mouseenter',function(){obj.hideNew&&$sonClass.find('.new-icon').hide();$toogleClass.show();$sonClass.stop().animate({left:-left}).addClass('active')}).on('mouseleave',function(){$sonClass.stop().animate({left:0},function(){$sonClass.removeClass('active');if(obj.needhide!==false){$toogleClass.hide()}obj.hideNew&&$sonClass.find('.new-icon').show()})})}}})(window,jQuery);