登录次数过于频繁,为保障安全,请进行图片验证
"}function r(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,i=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,a=e+"_"+t,r=UTILS.localStorage.get("Login_Behavior")||"",s=r+(r?"|":"")+a,d=s.split("|");if(n||d.length>=10){var l={version:"html5",behaviors:d.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:i,method:"post",data:this.text.json2xml(l),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(e){function t(e){var t=document.getElementById("proxyFrame");if(t)e(t.contentWindow);else{var o=document.createElement("iframe");o.id=o.name="proxyFrame",o.style.display="none",o.src=location.protocol+"//"+n.getHost()+"/proxy_2.html?rnd="+Math.random(),document.body.appendChild(o),o.onload=function(){e(o.contentWindow)}}}var n=this,o=Math.random().toString(36);t(function(t){t.postMessage({type:"request",rid:o,url:e.url,method:e.method,headers:e.headers,data:e.data},"*")}),window.addEventListener("message",function(t){var n=t.data||{};if(n.rid==o){var i=n.result,a=i.status;if(304==a||a>=200&&a<300){var r=JSON.parse(i.responseText);e.success&&e.success(i.responseText,r)}else e.fail&&e.fail(i.responseText)}})},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=this.dom.getId("loadingDom");if(t)return void this.dom.removeClass(t,"dHide");var n='
我已阅读并同意 139邮箱用户协议、隐私政策、手机快捷登录服务协议
',"登录次数过于频繁,为保障安全,请进行图片验证