登录次数过于频繁,为保障安全,请进行图片验证
"}function i(e){return e=e.replace(/[\x00-\x08\x0b\x0e-\x1f]/g,"")}function s(e){var t=this.xml_encodes;return e.replace(/([\&"<>])/g,function(e,n){return t[n]})}return t(e)}},other:{},localStorage:{set:function(e,t){window.localStorage&&window.localStorage.setItem(e,t)},get:function(e){if(window.localStorage)return window.localStorage.getItem(e)},remove:function(e){window.localStorage&&window.localStorage.removeItem(e)},clear:function(){window.localStorage&&window.localStorage.clear()}},addBehavior:function(e,t,n){var o=this,a=window.location.origin+"/mw2/weather/weather?func=user:logBehaviorAction&cguid="+Math.random().toString(16).replace(".",""),e=(UTILS.dom.getId("txtUserName").value||"",e||0),t=t||0,r=e+"_"+t,i=UTILS.localStorage.get("Login_Behavior")||"",s=i+(i?"|":"")+r,l=s.split("|");if(n||l.length>=10){var d={version:"html5",behaviors:l.map(function(e){var t=e.split("_");return{action:t[0],thingId:t[1]||0,moduleId:t[2]||25,actionType:t[3]||20,pageId:14}})};this.ajax({url:a,method:"post",data:this.text.json2xml(d),success:function(e){var t=e&&JSON.parse(e);t&&"S_OK"===t.code&&o.localStorage.set("Login_Behavior","")}})}else this.localStorage.set("Login_Behavior",s)},ajax:function(e){e=e||{},e.method=e.method.toUpperCase()||"POST",e.url=e.url||"",e.async=e.async||!0,e.data=e.data||null,e.success=e.success||function(){},e.fail=e.fail||function(){},e.complete=e.complete||function(){};var t=null;t=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");var n=[];for(var o in e.data)n.push(o+"="+e.data[o]);"POST"===e.method.toUpperCase()?(t.open(e.method,e.url,e.async),t.setRequestHeader("Content-Type","application/json; charset=utf-8"),t.send(e.data)):"GET"===e.method.toUpperCase()&&(t.open(e.method,e.url,e.async),t.send(null)),t.onreadystatechange=function(){4==t.readyState&&(200==t.status||302==t.status?e.success(t.responseText):e.fail(t.responseText),e.complete())}},ajaxIframe:function(conf){function requestByFrame(){var e=frames.proxyFrame;if(e.location.host===top.location.host)throw"error";conf.xhr=new e.XMLHttpRequest,_this.ajaxIframe(conf)}function setHeaders(e,t){if(e&&t)for(var n in t)e.setRequestHeader(n,t[n])}var _this=this;if(conf.xhr||!/html5|ipad/.test(location.host)){var xhr=conf.xhr||new XMLHttpRequest,sendData=conf.data||null,method=conf.method.toLowerCase();xhr.open(conf.method,conf.url,!0),setHeaders(xhr,conf.headers),xhr.onreadystatechange=function(data){if(4==xhr.readyState){if(304==xhr.status||xhr.status>=200&&xhr.status<300){var headers=xhr.getAllResponseHeaders(),isJSON=headers.indexOf("javascript")>0||headers.indexOf("json")>0||/^\s*\{/.test(xhr.responseText);if(isJSON){var json;try{json=eval("("+xhr.responseText+")")}catch(e){console.log("evalError:"+e)}}conf.success&&conf.success(xhr.responseText,json)}else conf.fail&&conf.fail(xhr.responseText);conf.complete&&conf.complete()}},xhr.send(sendData)}else try{requestByFrame()}catch(e){document.domain=location.host.match(/[^.]+\.[^.]+$/)[0].replace(/:\d+/,"");var iframe=document.createElement("iframe");iframe.id=iframe.name="proxyFrame",iframe.style.display="none";var proxyUrl=location.protocol+"//"+_this.getHost()+"/proxy.html?rnd="+Math.random();iframe.src=proxyUrl,document.body.appendChild(iframe),iframe.onload=function(){requestByFrame()}}},getHost:function(){var e,t={pro:"mail.10086.cn",rd:"mail.10086rd.cn:37086",ts:"mail.10086ts.cn"},n=location.host;return e=n.indexOf("10086rd.cn")>-1?"rd":n.indexOf("10086ts.cn")>-1?"ts":"pro",t[e]},showMark:function(){var e=this.dom.getId("localMask");this.dom.removeClass(e,"dHide")},hideMark:function(){var e=this.dom.getId("localMask");this.dom.addClass(e,"dHide")},showLoading:function(e){var t='
我已阅读并同意 139邮箱用户协议、隐私政策、手机快捷登录服务协议
',"登录次数过于频繁,为保障安全,请进行图片验证