1 |
- !function(e){var n={};function t(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)t.d(o,a,function(n){return e[n]}.bind(null,a));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="D:\\works\\2_code\\orderchannel\\src\\main\\webapp./sina/wb/20220228/dist/",t(t.s=0)}([function(e,n,t){"use strict";function o(e,n,t,o){var a="";null!=o&&0!=o||(a="温馨提示");var i=$('<div class="overlay overlay-alert"></div>'),r=$('<div class="dialog-alert"><h1>'+a+'</h1><div class="content">'+e+'</div><div class="actions"> <div class="btn">'+(null==t||""==t?"关闭":t)+"</div></div></div>");$("body").css("overflow","hidden"),i.appendTo($(document.body)),r.appendTo($(document.body)),1==n&&r.find(".btn").remove(),r.close=function(){$("body").css("overflow","auto"),i.remove(),r.remove(),r=null};var c=$.Deferred();return r.find(".btn").on("click",(function(){r.close(),c.resolve(r)})),c}function a(e){window.$loading&&window.$loading.trigger("close"),$("body").css("overflow","hidden");var n=e||"处理中,请稍后...",t=$('<div class="overlay overlay-loading"></div>'),o=$('<div class="loading"> <div class="content">'+n+"</div></div>");return t.appendTo($(document.body)),o.appendTo($(document.body)),o.on("close",(function(){$("body").css("overflow","auto"),t.remove(),o.remove(),o=null})),window.$loading=o,o}function i(e){e?e.trigger("close"):window.$loading&&window.$loading.trigger("close")}function r(e){return"1"!=$(e||document.body).data("use")&&($(e||document.body).data("use","1"),!0)}function c(e){$(e||document.body).data("use","0")}function l(e){var n=(e=Math.round(100*parseFloat(e))/100).toString().split(".");return 1==n.length?e=e.toString()+".00":n.length>1?(n[1].length<2&&(e=e.toString()+"0"),e):void 0}t.r(n),Date.remainMillis=function(){var e=new Date;return 60*(23-e.getHours())*60*1e3+60*(59-e.getMinutes())*1e3+1e3*(59-e.getSeconds())},Date.remainMillisMonth=function(){var e=new Date,n=e.getMonth();return e.setMonth(n+1),e.setDate(0),e.getDate(),e.getDate()-(new Date).getDate()},Date.from=function(e){var n=e.replace(/-/g,"/");return n=n.replace(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/,"$1/$2/$3 $4:$5:$6"),new Date(n)},Date.prototype.format=function(e){var n={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var t in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+t+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[t]:("00"+n[t]).substr((""+n[t]).length)));return e};var s={},d={},u={},f={},v=null;function p(){window.root=y(),function(){var e,n,t=window.location.search.substring(1),o=0;for(;t.length>0&&-1!=(e=t.indexOf("=",o));){-1==(n=t.indexOf("&",e+1))&&(n=t.length);var a=t.substring(o,e),i=t.substring(e+1,n);s[a]=decodeURIComponent(i),o=n+1}}(),$("#useraccount_tt").attr("value",x("freeflow_token"));var e={fes:s.fes,sou:s.sou,orderId:s.orderId},n=$.Deferred();return $.ajax({url:v+"/ini/getstyle",type:"POST",contentType:"application/json",data:JSON.stringify(e),timeout:1e4}).then((function(e){var t=JSON.parse(e);if("0000"!=t.resultCode)return window.location.href=window.root+"/404.html",n.reject(),n;for(d=t.product[0],a=0;a<t.product.length;a++)u[t.product[a].productid]=t.product[a];$("#fog_"+d.url).attr("value",d.fog);for(var o=d.icon.split(","),a=0;a<o.length;a++)0==a&&$("#sendsms_order_"+d.url).attr("value",o[a]),1==a&&$("#sendsms_cancel_"+d.url).attr("value",o[a]),2==a&&$("#sendsms_yuyue_"+d.url).attr("value",o[a]);n.resolve(t)}),(function(e,n,t){console.log(n),"timeout"===n&&(window.location.href=y()+"/hot.html?cb="+encodeURIComponent(window.location.href))})),n}function m(e){if(!e){var n=$.Deferred();return n.reject(),n}var t={fes:s.fes,sou:s.sou,fog:d.fog,uid:e||""};return $.ajax({url:v+"/member/can",type:"POST",contentType:"application/json",data:JSON.stringify(t)})}function h(e,n,t){var o={fes:s.fes,sou:s.sou,fog:d.fog,userid:e||f.userid,usermob:n||f.usermob,uid:t||""};if(w(o.userid)&&w(o.uid)){var a=$.Deferred();return a.reject("参数错误"),a}return $.ajax({url:v+"/member/query",type:"POST",contentType:"application/json",data:JSON.stringify(o)})}function w(e){return null==e||""==e}function b(e,n,t){var a=$.Deferred();if(!(null!=e.attr("n")&&e.attr("n")>0)){var i=e.find(".usermob").val();if(null==i||""==i.trim())return o("请输入联通手机号码"),a.reject(),a;if(!i.startsWith("1")||11!=i.length)return o("手机号码格式不正确"),a.reject(),a;var r={fes:s.fes,sou:s.sou,fog:d.fog,usermob:i,smstype:n};f.usermob=i;var c=60;e.attr("n",c),$.ajax({url:v+"/sms/send",type:"POST",contentType:"application/json",data:JSON.stringify(r)}).then((function(n){if("0000"!=n.resultCode)return c=0,e.attr("n",c),void o(n.errorInfo);var t=e.find(".sendcode");t.is("input")?t.val("{}s".replace("{}",c)):t.text("{}s".replace("{}",c)),t.addClass("sendcode-wait");var a=setInterval((function(){c-=1,e.attr("n",c),t.is("input")?t.val("{}s".replace("{}",c)):t.text("{}s".replace("{}",c)),0===c&&(clearInterval(a),t.is("input")?t.val("获取验证码"):t.text("获取验证码"),e.attr("n",c),t.removeClass("sendcode-wait"))}),1e3);try{window.HtmlPageVisitor&&window.HtmlPageVisitor.setMp(f.usermob)}catch(e){}}))}}function g(e,n){var t=$.Deferred(),a=e.find(".usermob").val(),i=e.find(".smscode").val();if(null==n&&(n=!1),null==a||""==a.trim())return o("请输入联通手机号码"),t.reject(),t;if(null==i||""==i.trim())return o("请输入验证码"),t.reject(),t;if(6!=i.length)return o("短信验证码不正确"),t.reject(),t;var r={fes:s.fes,sou:s.sou,fog:d.fog,code:i,usermob:a};return $.ajax({url:v+"/checkvercode",type:"POST",contentType:"application/json",data:JSON.stringify(r)}).then((function(i){switch(e.find(".smscode").val(""),i.resultCode){case"0000":f.userid=i.userid,f.usermob=a,f.usertime=(new Date).getTime(),n||(e.find(".usermob").val(""),e.find(".usermob").val("")),t.resolve(i.userid);break;default:o(i.errorInfo),t.reject(i)}})).fail((function(e){t.reject("服务调用异常")})),t}function y(){var e=window.document.location.href,n=window.document.location.pathname,t=e.indexOf(n),o=e.substring(0,t),a=n.substring(0,n.substr(1).indexOf("/")+1);return v=o+a,o+a}function x(e){if("https://800.wo.cn/orderchannel/hd/Dy/order202005.html?fes=jh7"!=window.location.href){window.location.href.indexOf("jiangtao")>=0&&alert(window.location.href);var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),t=window.location.search.substr(1).match(n);if(null!=t)return t[2];switch(e){case"con":return"1";case"freeflow_token":return"";default:var o=y()+"/404.html";$(location).attr("href",o)}}else window.location.href="https://800.wo.cn/orderchannel/hd/Dy/order202005.html?fes=jh7&sou=12"}function k(e,n,t,o){var a=O("uuid"),i=O("vvid");if(null!=a&&""!=a.trim()||S("uuid",a=I(),Date.remainMillis()),null!=i&&""!=i.trim()||S("vvid",i=I(),-1),null!=e&&""!=e){var r={operid:e,uuid:a,vvid:i,fog:d.fog,userid:f.userid,fes:s.fes,sou:s.sou,url:encodeURIComponent(t||window.location.href),remark:encodeURIComponent(n||"")};$.ajax({url:v+"/burypoint/logid",type:"POST",contentType:"application/json",data:JSON.stringify(r)}).then((function(e){}))}}function O(e){var n,t=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return(n=document.cookie.match(t))?unescape(n[2]):null}function S(e,n,t){t=null==t?0:t;var o=new Date;t<0?document.cookie=e+"="+escape(n):(o.setTime(o.getTime()+t),document.cookie=e+"="+escape(n)+";expires="+o.toGMTString())}function I(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=16*Math.random()|0;return("x"==e?n:3&n|8).toString(16)}))}var _={},j=void 0,T=void 0,P=null;t(1);!function(){function e(e){for(var n=window.location.search.substring(1).split("&"),t=0;t<n.length;t++){var o=n[t].split("=");if(o[0]==e)return o[1]}return!1}var n;P=y(),n={channel:"unkc",code:e("code"),redirect_uri:"http://100.0.4.69:3344/orderchannel/sina/wb/weibo1.html"},console.log("开始"),$.ajax({type:"POST",data:JSON.stringify(n),async:!0,url:P+"/weibo/query",contentType:"application/json",success:function(n,t,o){t?(j=n.uid,T=n.username,def.resolve(n)):o==e("code")&&def.reject(n,o)}})}(),a();var D=localStorage.getItem("message");if(null!=D&&""!=D&&(o(D),localStorage.removeItem("message")),$("#btn-cancel").unbind("click").on("click",(function(){(function(){var e,n;window.location.href.indexOf("https://800.wo.cn/orderchannel")>=0?(e="https://800.wo.cn/orderchannel/public/libs/cancelreason/index.html","https://800.wo.cn/"):window.location.href.indexOf("https://800.wo.cn/festivalchannel")>=0?(e="https://800.wo.cn/festivalchannel/public/libs/cancelreason/index.html","https://800.wo.cn/"):window.location.href.indexOf("http://localhost")>=0?(e="http://localhost:8088/orderchannel/public/libs/cancelreason/index.html","http://localhost:8088/"):window.location.href.indexOf("http://127.0.0.1")>=0?(e="http://127.0.0.1:8088/orderchannel/public/libs/cancelreason/index.html","http://127.0.0.1:8088/"):window.location.href.indexOf("http://100.0.4.69:3344")>=0?(e="http://100.0.4.69:3344/orderchannel/public/libs/cancelreason/index.html","http://100.0.4.69:3344/"):window.location.href.indexOf("http://100.0.4.69:8282")>=0?(e="http://100.0.4.69:8282/orderchannel/public/libs/cancelreason/index.html","http://100.0.4.69:8282/"):(e="https://800.wo.cn/orderchannel/public/libs/cancelreason/index.html","https://800.wo.cn/");window.$capoverlay=$('<div class="overlay" style="z-index: 0; background-color: rgba(0,0,0,0.4);"></div>'),$capoverlay.appendTo($(document.body)),$("body").css("overflow","hidden"),$("#reasonIframe").length>=1?n=$("#reasonIframe").attr("src",e):(n=$('<iframe id="reasonIframe" src="'+e+'"></iframe>'),$("body").append(n));n.css({width:"100%",height:"100%",position:"fixed",top:0,left:0,margin:0,padding:0,"-webkit-overflow-scrolling":"touch",border:"0px","z-index":111});var t=$.Deferred();return window.addEventListener("message",(function e(o){var a=JSON.parse(o.data);n.remove(),$capoverlay.remove(),$("body").css("overflow","auto"),window.removeEventListener("message",e),"close"!=a.eventtype?t.resolve(a):t.reject(a)})),t})().done((function(e){var n=JSON.stringify(e);window.localStorage.setItem("kye",n),R()}))})),$("#btn-draw").unbind("click").on("click",(function(){U("draw")&&A()})),$("#btn-active").unbind("click").on("click",(function(){U("active")&&E()})),_.weibo){function C(){(void 0)()?(void 0)().then((function(){M()})).fail((function(e){M()})):((void 0)(),M())}window.WeiboJSBridge?C():document.addEventListener("WeiboJSBridgeReady",(function(){C()}))}else M();function M(){p().then((function(e){d=e.product[0],e.festival,function(){if(s.userid)return f.userid=s.userid,void(f.usermob=s.usermob);try{var e=localStorage.getItem("time");if(e)if((new Date).getTime()<=parseFloat(e)+36e5){var n=localStorage.getItem("user"),t=JSON.parse(n);f.userid=t.userid,f.usermob=t.usermob,"18674842761"==f.usermob&&setTimeout((function(){alert(e+36e5)}),100)}else localStorage.removeItem("time"),localStorage.removeItem("user")}catch(e){}}(),location.href.indexOf("index.html")>=0?(f.userid?J("flow"):j&&h(null,null,j).then((function(e){"0000"==e.resultCode&&(f.userid=e.userid,f.usermob=e.usermob,f.usertime=(new Date).getTime(),N(),i())})).fail((function(){})),i(),showOrderPage()):(J(s.page),i()),location.href.indexOf("/cancel")>=0?(k("110002"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"open",ea:"cancel_open"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(s.sou,32)})):location.href.indexOf("/weibo1")>=0?(k("110003"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"open",ea:"draw_open"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(s.sou,32)})):location.href.indexOf("/flow")>=0?(k("110004"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"open",ea:"flow_open"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(s.sou,32)})):location.href.indexOf("/active")>=0?(k("110005"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"open",ea:"active_open"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(s.sou,32)})):location.href.indexOf("/refund")>=0?k("110006"):(k("110001"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"open",ea:"order_open"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(s.sou,32)}))})).fail((function(){i()}))}function J(e){switch(e){case"active":E();break;case"cancel":R();break;case"draw":null==j||""==j?(void 0)().then((function(e){A()})):A();break;case"flow":N();break;default:showOrderPage()}}function N(){if(location.href.indexOf("flow.html")<0)window.location.href="flow.html?fes="+s.fes+"&sou="+s.sou+"&F="+s.F+"&userid="+f.userid+"&usermob="+f.usermob+"&usertime="+(f.usertime||(new Date).getTime())+"&page=flow";else{if("draw"==localStorage.getItem("action")){if(!U("draw"))return;m(j).then((function(e){"0000"==e.resultCode&&F()})),localStorage.removeItem("action")}var e=$("#section-flow");e.find(".phone").html("免流号码:"+f.usermob),W(),e.find(".btn").unbind("click").on("click",(function(e){r()&&W().then((function(e){c(),null!=e&&""!=e&&o(e)}))})),e.find(".member a").unbind("click").on("click",(function(){U("draw")&&m(j).then((function(e){switch(e.resultCode){case"0000":f.userid?F():A();break;case"1003":o("当前微博账号已开通了新浪微博包月会员,请切换领取会员的账号~");break;default:o(e.resultInfo)}}))})),_.weibo&&(void 0)()&&(null==j||""==j)?(void 0)().then((function(){h().then((function(e){n(e)}))})):h().then((function(e){n(e)}))}function n(n){switch(n.resultCode){case"0000":switch(n.sync_code){case"0":case"2":n.screen_name?e.find(".member").html("微博账号:"+decodeURIComponent(n.screen_name)):e.find(".member").html("微博会员:已领取"),e.find(".vflag").css({display:"block"}),e.find(".member a").unbind("click"),(void 0)();break;default:e.find(".member a").html("请点此领取微博会员"),e.find(".vflag").css({display:"none"})}break;case"1015":o("未订购此产品!").then((function(n){localStorage.removeItem("time"),localStorage.removeItem("user"),showOrderPage(),e.find(".phone").html("用户未订购此产品!")}))}}}function W(){var e,n,t,o=$("#section-flow"),a=$.Deferred();return(t={fes:s.fes,sou:s.sou,fog:d.fog,userid:e||f.userid,usermob:n||f.usermob},$.ajax({url:v+"/flow/query",type:"POST",contentType:"application/json",data:JSON.stringify(t)})).then((function(e){switch(e.resultCode){case"0000":var n=l(JSON.parse(e.data).surplusFlow/1024/1024);o.find(".suplus").html("本月剩余<br>"+n+"GB");var t=parseInt(JSON.parse(e.data).usedFlow);if(t>0&&t<1024)a.resolve("剩余流量更新成功,为您免流了"+t+"KB~");else if(t>1024){var i=l(t/1024);a.resolve("剩余流量更新成功,为您免流了"+i+"MB~")}else a.resolve("剩余流量更新成功~");break;case"9201":a.resolve("您未订购新浪微博畅想会员畅想包~"),o.find(".phone").html("用户未订购此产品!");break;case"9203":a.resolve("剩余流量更新成功~"),o.find(".suplus").html("本月剩余<br>10.00GB")}})),a}function R(){var e=JSON.parse(window.localStorage.getItem("kye"));if(location.href.indexOf("cancel.html")<0)window.location.href="cancel.html?fes="+s.fes+"&sou="+s.sou+"&F="+s.F+"&page=cancel";else{var n=$("#section-cancel").find(".form-group");n.find(".sendcode").unbind("click").on("click",(function(){b(n,"cancellogin"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"cancel_click_send_sms_code_btn"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(s.sou,32)})})),n.find(".login").unbind("click").on("click",(function(){a(),g(n).then((function(){var n,t,a,r,c;(n=null,t=null,a=e.canceltype,r=e.cancelmsg,c={fes:s.fes,sou:s.sou,fog:d.fog,userid:n||f.userid,usermob:t||f.usermob,canceltype:encodeURIComponent(a),cancelmsg:encodeURIComponent(r),useraccount:""},$.ajax({url:v+"/comm/cancel",type:"POST",contentType:"application/json",data:JSON.stringify(c)})).then((function(e){switch(i(),e.resultCode){case"0000":o("退订成功").then((function(e){window.localStorage.clear(),N()})),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"cancel_success"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(s.sou,32)});break;case"7605":o(e.errorInfo).then((function(e){N()})),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"cancel_failure"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(s.sou,32)});break;default:var n="";e.errorInfo.indexOf("退订失败")<0&&(n="退订失败,"),o(n+e.errorInfo),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"cancel_failure"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(s.sou,32)})}})).fail((function(e){i()}))})).fail((function(e){i()})),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"cancel_click_confirm_btn"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(s.sou,32)})})),window.scrollTo(0,0)}}function A(){if(location.href.indexOf("draw.html")<0)window.location.href="draw.html?fes="+s.fes+"&sou="+s.sou+"&F="+s.F+"&page=draw";else{var e=$("#section-draw").find(".form-group");a(),h(null,null,j).then((function(n){if("0000"==n.resultCode)switch(n.sync_code){case"0":case"2":localStorage.setItem("message","当前微博账号已经领取了会员~"),f.userid=n.userid,f.usermob=n.usermob,f.usertime=(new Date).getTime(),N()}else m(j).then((function(n){i();var t=!1;switch(n.resultCode){case"0000":t=!1;break;case"1003":o("当前微博账号已开通了新浪微博包月会员,请切换领取会员的账号~"),t=!0;break;default:o(n.resultInfo)}e.find(".sendcode").unbind("click").on("click",(function(){U()&&(t?o("当前微博账号已开通了新浪微博包月会员,请切换领取会员的账号~"):(b(e,"drawlogin"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"draw_click_send_sms_code_btn"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(s.sou,32)})))})),e.find(".login").unbind("click").on("click",(function(){t?o("当前微博账号已开通了新浪微博包月会员,请切换领取会员的账号~"):(g(e).then((function(){F()})),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"draw_click_confirm_btn"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(s.sou,32)}))}))})).fail((function(e){}))}))}}function F(){var e=function(){var e="确认将新浪微博会员领取到您当前登录的账号中吗?";T&&(e="请确认将新浪微博会员领取到账号:"+T);var n=$('<div class="overlay"></div>'),t=$('<div class="dialog dialog-confirm"> <h2>领取会员</h2> <p>'+e+'</p> <div class="actions" style="display: flex;"> <div class="btn btn-no">其他账号</div> <div class="btn btn-ok">确认</div> </div></div>');return n.appendTo($(document.body)),t.appendTo($(document.body)),t.find(".btn").on("click",(function(){t.close()})),t.close=function(){n.remove(),t.remove(),t=null},t}();e.find(".btn-no").on("click",(function(){o("请切换登录的微博账号后,再领取会员")})),e.find(".btn-ok").on("click",(function(e){r()&&function(e,n,t,a){if(null==e||""==e.trim()){o("获取微博账号信息失败");var i=$.Deferred();return i.reject(),i}var r={fes:s.fes,sou:s.sou,fog:d.fog,userid:t||f.userid,usermob:a||f.usermob,uid:e,screen_name:encodeURIComponent(n)||""};return $.ajax({url:v+"/member/draw",type:"POST",contentType:"application/json",data:JSON.stringify(r)})}(j,T).then((function(e){switch(c(),e.resultCode){case"0000":(void 0)(),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"draw_success"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(s.sou,32)}),o("微博会员领取成功!").then((function(){N()}));break;case"1020":h().then((function(e){"0000"==e.resultCode?e.uid==j?((void 0)(),o("已领取过会员~").then((function(e){N()}))):o("该手机号已将会员领取到其他微博账号~"):o("已领取过会员~")})).fail((function(){o("已领取过会员~")})),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"draw_failure"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(s.sou,32)});break;default:o("领取失败,"+e.errorInfo),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"draw_failure"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(s.sou,32)})}})).fail((function(){c()}))}))}function E(){if(location.href.indexOf("active.html")<0)window.location.href="active.html?fes="+s.fes+"&sou="+s.sou+"&F="+s.F+"&page=active";else{var e=$("#section-active").find(".form-group");e.find(".sendcode").unbind("click").on("click",(function(){U("active")&&b(e,"activelogin")})),e.find(".login").unbind("click").on("click",(function(n){U("active")&&r()&&g(e).then((function(){c(),h().then((function(e){switch(e.resultCode){case"0000":break;case"0002":default:return void o("激活失败,未领取新浪微博会员~")}if(j==e.uid)switch(e.sync_code){case"0":case"2":(void 0)().then((function(){o("激活成功").then((function(){localStorage.setItem("user",JSON.stringify(f)),localStorage.setItem("time",(new Date).getTime()),N()}))}));break;case"1":case"3":o("请领取会员以后再进行激活操作~")}else o("激活失败,激活免流的微博账号与领取会员的微博账号不一致~")}))})).fail((function(){c()}))})),window.scrollTo(0,0)}}function U(e){if("active"==e){if(!_.weibo)return o("请到新浪微博客户端中激活免流~"),!1;if(!(void 0)())return o("请到升级到最新版新浪微博客户端后激活免流~"),!1}else{if(!_.weibo)return o("请到新浪微博客户端中领取会员激活免流~"),!1;if(!(void 0)())return o("请到升级到最新版新浪微博客户端后领取会员激活免流~"),!1}return!0}},function(e,n){}]);
|