!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./google/baidu/v2/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 r=$('
'),i=$('

'+a+'

'+e+'
'+(null==t||""==t?"关闭":t)+"
");$("body").css("overflow","hidden"),r.appendTo($(document.body)),i.appendTo($(document.body)),1==n&&i.find(".btn").remove(),i.close=function(){$("body").css("overflow","auto"),r.remove(),i.remove(),i=null};var l=$.Deferred();return i.find(".btn").on("click",(function(){i.close(),l.resolve(i)})),l}function a(e,n,t,o){var a=$('
'),r=$('
'+e+'
'+(null==t||""==t?"关闭":t)+"
");$("body").css("overflow","hidden"),a.appendTo($(document.body)),r.appendTo($(document.body)),1==n&&r.find(".btn").remove(),r.close=function(){$("body").css("overflow","auto"),a.remove(),r.remove(),r=null};var i=$.Deferred();return r.find(".btn").on("click",(function(){r.close(),i.resolve(r)})),i}function r(e){window.$loading&&window.$loading.trigger("close"),$("body").css("overflow","hidden");var n=e||"处理中,请稍后...",t=$('
'),o=$('
'+n+"
");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 l(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 s(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 d={},u={},f={},v={},p=null,m=null;function h(){window.root=O(),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),r=t.substring(e+1,n);d[a]=decodeURIComponent(r),o=n+1}}(),$("#useraccount_tt").attr("value",_("freeflow_token"));var e={fes:d.fes,sou:d.sou,orderId:d.orderId},n=$.Deferred();return $.ajax({url:p+"/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(u=t.product[0],a=0;a0)){var r=e.find(".usermob").val();if(null==r||""==r.trim())return a("请输入联通手机号码"),o.reject(),o;if(!r.startsWith("1")||11!=r.length)return a("手机号码格式不正确"),o.reject(),o;var i={fes:d.fes,sou:d.sou,fog:u.fog,usermob:r,smstype:n};v.usermob=r;var l=60;e.attr("n",l),$.ajax({url:p+"/sms/send",type:"POST",contentType:"application/json",data:JSON.stringify(i)}).then((function(n){if("0000"!=n.resultCode)return l=0,e.attr("n",l),void a(n.errorInfo);var t=e.find(".sendcode");t.is("input")?t.val("{}s".replace("{}",l)):t.text("{}s".replace("{}",l)),t.addClass("sendcode-wait");var o=setInterval((function(){l-=1,e.attr("n",l),t.is("input")?t.val("{}s".replace("{}",l)):t.text("{}s".replace("{}",l)),0===l&&(clearInterval(o),t.is("input")?t.val("获取验证码"):t.text("获取验证码"),e.attr("n",l),t.removeClass("sendcode-wait"))}),1e3);try{window.HtmlPageVisitor&&window.HtmlPageVisitor.setMp(v.usermob)}catch(e){}}))}}function w(e,n){var t=$.Deferred(),o=e.find(".usermob").val(),r=e.find(".smscode").val();if(null==n&&(n=!1),null==o||""==o.trim())return a("请输入联通手机号码"),t.reject(),t;if(null==r||""==r.trim())return a("请输入验证码"),t.reject(),t;if(6!=r.length)return a("短信验证码不正确"),t.reject(),t;var i={fes:d.fes,sou:d.sou,fog:u.fog,code:r,usermob:o};return $.ajax({url:p+"/checkvercode",type:"POST",contentType:"application/json",data:JSON.stringify(i)}).then((function(r){switch(e.find(".smscode").val(""),r.resultCode){case"0000":v.userid=r.userid,v.usermob=o,v.usertime=(new Date).getTime(),n||(e.find(".usermob").val(""),e.find(".usermob").val("")),t.resolve(r.userid);break;default:a(r.errorInfo),t.reject(r)}})).fail((function(e){t.reject("服务调用异常")})),t}var g=!0;function y(e){var n={fog:u.fog||fog||"",userid:e||v.userid};$.ajax({url:p+"/decodeUserid",type:"POST",contentType:"application/json",data:JSON.stringify(n)}).then((function(e){"0"==e.resultCode&&(v.usermob=e.usermob)}))}function x(e){var n={fog:u.fog||e||"",channel:""};return $.ajax({url:p+"/ini/gensign",type:"POST",contentType:"application/json",data:JSON.stringify(n)})}function k(e){localStorage.setItem("user"+u.productid,JSON.stringify(v)),localStorage.setItem("time"+u.productid,e||(new Date).getTime()+"")}function O(){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 p=o+a,o+a}function _(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=O()+"/404.html";$(location).attr("href",o)}}else window.location.href="https://800.wo.cn/orderchannel/hd/Dy/order202005.html?fes=jh7&sou=12"}function I(e,n,t,o){var a=T("uuid"),r=T("vvid");if(null!=a&&""!=a.trim()||S("uuid",a=P(),Date.remainMillis()),null!=r&&""!=r.trim()||S("vvid",r=P(),-1),null!=e&&""!=e){var i={operid:e,uuid:a,vvid:r,fog:u.fog,userid:v.userid,fes:d.fes,sou:d.sou,url:encodeURIComponent(t||window.location.href),remark:encodeURIComponent(n||"")};$.ajax({url:p+"/burypoint/logid",type:"POST",contentType:"application/json",data:JSON.stringify(i)}).then((function(e){}))}}function T(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 P(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=16*Math.random()|0;return("x"==e?n:3&n|8).toString(16)}))}function j(){var e=navigator.userAgent.indexOf("Baidu")>-1;if(e)return e;var n=navigator.userAgent.indexOf("OPR")>-1,t=navigator.userAgent.indexOf("Firefox")>-1,o=navigator.userAgent.indexOf("UCBrowser");if(!n||!t||!o)return!1;var a=navigator.userAgent.indexOf("MicroMessenger")>-1,r=navigator.userAgent.indexOf("Safari")>-1,i=navigator.userAgent.indexOf("Chrome")>-1;return a||e||r||i}t(1);function A(e){var n=$(".section-setting").find(".form-group"),t=$(".section-setting").find(".actions");n.find(".sendcode").unbind("click").on("click",(function(){var e=n.find(".account").val();null!=e&&""!=e?(b(n,"drawlogin"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"draw_click_send_sms_code_btn"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)})):a("请输入领取号码")})),t.find(".login").unbind("click").on("click",(function(){var e=n.find(".usermob").val(),t=n.find(".account").val(),o=n.find(".smscode").val();if(null!=e&&""!=e)if(null!=t&&""!=t)if(null!=o&&""!=o){var r=function(e){var n=$('
'),t=$('
请确认是否领取到'+e+'号码?
取消
确认
');return n.appendTo($(document.body)),t.appendTo($(document.body)),t.find(".btn").on("click",(function(){n.remove(),t.remove(),t=null})),t.close=function(){n.remove(),t.remove(),t=null},t}(t);r.find(".cancel").on("click",(function(){i()})),r.find(".okay").on("click",(function(){w(n,!0).done((function(e){var n=e;U(t,"90001",n,"","2022071807",""),console.log(t,"90001",n,"","2022071807")})).fail((function(e){i()})),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"draw_click_confirm_btn"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)})}))}else a("请输入验证码");else a("请输入领取号码");else a("请输入联通手机号")}))}function C(e){$("#btn-order").unbind("click").on("click",(function(e){l()&&(function(e,n,t,a,l,c){var s,f,p,m;g=!1,null!=e&&null==u.fog&&(u.fog=e),t||$("body").css("overflow","hidden"),window.location.href.indexOf("https://800.wo.cn/orderchannel")>=0?(s="https://800.wo.cn/cap/CAP-AUTH.html",f="https://800.wo.cn/"):window.location.href.indexOf("https://800.wo.cn/festivalchannel")>=0?(s="https://800.wo.cn/festivalcap/CAP-AUTH.html",f="https://800.wo.cn/"):window.location.href.indexOf("http://localhost")>=0?(s="http://localhost:8088/cap/CAP-AUTH.html",f="http://localhost:8088/"):window.location.href.indexOf("http://127.0.0.1")>=0?(s="http://127.0.0.1:8088/cap/CAP-AUTH.html",f="http://127.0.0.1:8088/"):window.location.href.indexOf("http://100.0.4.69:3344")>=0?(s="http://100.0.4.69:3344/cap/CAP-AUTH.html",f="http://100.0.4.69:3344/"):window.location.href.indexOf("http://100.0.4.69:8282")>=0?(s="http://100.0.4.69:8282/cap/CAP-AUTH.html",f="http://100.0.4.69:8282/"):(s="https://800.wo.cn/festivalcap/CAP-AUTH.html",f="https://800.wo.cn/"),p=$("#uniauthframe").length>=1?$("#uniauthframe").attr("src",s):$(''),r(),p.on("load",(function(){$capoverlay.remove(),x(e).then((function(e){i(),e.orderChannel=d.fes+"_"+d.sou,null!=n&&""!=n&&(e.productName=n),null!=c&&""!=c&&(e.capTemplet=c);try{p[0].contentWindow.postMessage(JSON.stringify(e),f),console.log("进入收银页面:cap_open"),WoAnalytics&&WoAnalytics.addPoint({ad:$("#directflowactivity").val(),at:$("#namehd").val(),ett:"open",ea:"cashier_view",cpn:"cashier",pm:parseInt(d.sou,32)})}catch(e){}}))})),navigator.userAgent.indexOf("MicroMessenger")>=0&&(window.capTimer=setInterval((function(){m=document.documentElement.scrollTop||document.body.scrollTop,m-=1,window.top.scrollTo(0,m),m+=1,window.top.scrollTo(0,m)}),200));window.$capoverlay=$('
'),$capoverlay.appendTo($(document.body)),0==$("#uniauthframe").length?$("body").append(p):p.css("position","unset").css("min-height","10rem");var h=$.Deferred();return window.addEventListener("message",(function e(n){var t=null;try{t=JSON.parse(n.data)}catch(e){return}switch(t.resultcode){case"0":p.remove(),$capoverlay.remove(),window.removeEventListener("message",e),$("body").css("overflow","auto"),clearInterval(window.capTimer),v.token=t.token,v.userid=decodeURIComponent(t.userid),v.userid1=t.userid1,v.usermob=t.usermob,v.usertime=(new Date).getTime(),l&&y();try{window.HtmlPageVisitor&&window.HtmlPageVisitor.setMp(t.usermob),console.log("进入收银台页面,点击确认支付按钮"),WoAnalytics&&WoAnalytics.addPoint({ad:$("#directflowactivity").val(),at:$("#namehd").val(),ett:"click",ea:"pay_continue_click",cpn:"cashier",pm:parseInt(d.sou,32),mp:v.usermob})}catch(e){}h.resolve(v);break;case"9001":p.remove(),$capoverlay.remove(),window.removeEventListener("message",e),clearInterval(window.capTimer),$("body").css("overflow","auto"),h.reject(t),null!=a&&a&&!g&&("1"==d.test&&alert(navigator.userAgent),j()&&(g=!0,history.back()));break;case"0001":case"0003":case"0006":case"4444":break;case"99999":t.operid&&I(t.operid),t.ea&&WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"open",ea:t.ea+$("#nanyanlabel").val(),ct:"web",pm:parseInt(_("sou"),32)});try{window.WoAnalytics&&window.WoAnalytics.setMp(t.usermob)}catch(e){}break;default:p.remove(),$capoverlay.remove(),window.removeEventListener("message",e),$("body").css("overflow","auto"),clearInterval(window.capTimer),o(t.errorinfo),h.reject(t)}})),h}(null,null,!1,!1,!0).then((function(e){c(),function(e,n,t){r("处理中,请稍后..."),function(e,n,t,o){var a={fes:d.fes,sou:d.sou,fog:u.fog,token:n,userid:e||v.userid,usermob:t||v.usermob,useraccount:"",f:d.F,ringid:o||d.ringid};return $.ajax({url:p+"/comm/order",type:"POST",contentType:"application/json",data:JSON.stringify(a)})}(e,n,t).done((function(e){switch(i(),e.resultCode){case"0000":return k(),a("订购成功"),void WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"order_success"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)});case"0013":a("该号码归属省分2/3G暂未开通此产品!"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"order_failure"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)});break;case"6611":a("错误代码(6611),订购失败,请重试!"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"order_failure"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)});break;case"6615":a("订购失败,请确定用户套餐!"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"order_failure"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)});break;case"6622":a("您已经订购了本产品~"),k(),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"order_failure"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)});break;default:a(e.errorInfo+"订购失败,请确定用户套餐!"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"order_failure"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)})}})).fail((function(e){i(),console.log(e)}))}(e.userid,e.token,e.usermob)})).fail((function(e){c()})),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"order_click_order_btn"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)}))}))}function D(){if(location.href.indexOf("active.html")<0)window.location.href="active.html?fes="+d.fes+"&sou="+d.sou;else{var e=$(".section-login").find(".form-group");e.find(".sendcode").unbind("click").on("click",(function(){(function(e,n,t){var a=$.Deferred();if(!(null!=e.attr("n")&&e.attr("n")>0)){var r=e.find(".usermob").val();if(null==r||""==r.trim())return o("请输入联通手机号码"),a.reject(),a;if(!r.startsWith("1")||11!=r.length)return o("手机号码格式不正确"),a.reject(),a;var i={fes:d.fes,sou:d.sou,fog:u.fog,usermob:r,smstype:n};v.usermob=r;var l=60;e.attr("n",l),$.ajax({url:p+"/sms/send",type:"POST",contentType:"application/json",data:JSON.stringify(i)}).then((function(n){if("0000"!=n.resultCode)return l=0,e.attr("n",l),void o(n.errorInfo);var t=e.find(".sendcode");t.is("input")?t.val("{}s".replace("{}",l)):t.text("{}s".replace("{}",l)),t.addClass("sendcode-wait");var a=setInterval((function(){l-=1,e.attr("n",l),t.is("input")?t.val("{}s".replace("{}",l)):t.text("{}s".replace("{}",l)),0===l&&(clearInterval(a),t.is("input")?t.val("获取验证码"):t.text("获取验证码"),e.attr("n",l),t.removeClass("sendcode-wait"))}),1e3);try{window.HtmlPageVisitor&&window.HtmlPageVisitor.setMp(v.usermob)}catch(e){}}))}})(e,"activelogin")})),e.find(".login").unbind("click").on("click",(function(n){l()&&function(e,n){var t=$.Deferred(),a=e.find(".usermob").val(),r=e.find(".smscode").val();if(null==n&&(n=!1),null==a||""==a.trim())return o("请输入联通手机号码"),t.reject(),t;if(null==r||""==r.trim())return o("请输入验证码"),t.reject(),t;if(6!=r.length)return o("短信验证码不正确"),t.reject(),t;var i={fes:d.fes,sou:d.sou,fog:u.fog,code:r,usermob:a};return $.ajax({url:p+"/checkvercode",type:"POST",contentType:"application/json",data:JSON.stringify(i)}).then((function(r){switch(e.find(".smscode").val(""),r.resultCode){case"0000":v.userid=r.userid,v.usermob=a,v.usertime=(new Date).getTime(),n||(e.find(".usermob").val(""),e.find(".usermob").val("")),t.resolve(r.userid);break;default:o(r.errorInfo),t.reject(r)}})).fail((function(e){t.reject("服务调用异常")})),t}(e).then((function(){c(),baidu.active().then((function(){a("激活成功").then((function(){k()}))}))})).fail((function(){c()}))})),window.scrollTo(0,0)}}function W(){if(location.href.indexOf("cannel20220721.html")<0)window.location.href="cannel20220721.html?fes="+d.fes+"&sou="+d.sou;else{var e=JSON.parse(window.localStorage.getItem("kye")),n=$(".section-login").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(d.sou,32)})})),n.find(".login").unbind("click").on("click",(function(){r(),w(n).done((function(){(function(e,n,t,o){var a={fes:d.fes,sou:d.sou,fog:u.fog,userid:e||v.userid,usermob:n||v.usermob,canceltype:encodeURIComponent(t),cancelmsg:encodeURIComponent(o),useraccount:""};return $.ajax({url:p+"/comm/cancel",type:"POST",contentType:"application/json",data:JSON.stringify(a)})})(null,null,e.canceltype,e.cancelmsg).done((function(e){switch(console.log(e),i(),e.resultCode){case"0000":a("退订成功"),window.localStorage.removeItem("kye"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"cancel_success"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)});break;case"7605":a(e.errorInfo),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"cancel_failure"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)});break;default:var n="";e.errorInfo.indexOf("退订失败")<0&&(n="退订失败,"),a(n+e.errorInfo),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"cancel_failure"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.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(d.sou,32)})})),window.scrollTo(0,0)}}function M(){var e=$(".section-flow"),n=$.Deferred();return function(e,n){var t={fes:d.fes,sou:d.sou,fog:u.fog,userid:e||v.userid,usermob:n||v.usermob};return $.ajax({url:p+"/flow/query",type:"POST",contentType:"application/json",data:JSON.stringify(t)})}().then((function(t){switch(t.resultCode){case"0000":var o=s(JSON.parse(t.data).surplusFlow/1024/1024);e.find(".surplus").html(o+"GB");var a=parseInt(JSON.parse(t.data).usedFlow);if(a>0&&a<1024)n.resolve("剩余流量更新成功,为您免流了"+a+"KB~");else if(a>1024){var r=s(a/1024);n.resolve("剩余流量更新成功,为您免流了"+r+"MB~")}else n.resolve("剩余流量更新成功~");break;case"9201":n.resolve("您未订购百度定向流量包~");break;case"9203":n.resolve("剩余流量更新成功~"),e.find(".suplus").html("本月剩余
8.00GB");break;default:n.resolve("剩余流量更新成功~")}})),n}$((function(){var e,n=!1;(window.addEventListener("pageshow",(function(){n&&window.location.reload()})),window.addEventListener("pagehide",(function(){n=!0})),window.location.href.indexOf("draw20220313.html")>=0)&&(null!=(e=JSON.parse(localStorage.getItem("user")))&&$(".usermob").val(e.usermob));window.location.href.indexOf("draw202203132.html")>=0&&(null!=(e=JSON.parse(localStorage.getItem("user")))&&$(".usermob").val(e.usermob))})),function(){var e=localStorage.getItem("message");null!=e&&""!=e&&(a(e),localStorage.removeItem("message"));r(),h().then((function(e){i(),u=e.product[0],e.festival,function(e){if(d.userid)return v.userid=d.userid,void(v.usermob=d.usermob);try{var n=localStorage.getItem("time"+u.productid);if(n){if((new Date).getTime()<=parseFloat(n)+(e||36e5)){var t=localStorage.getItem("user"+u.productid);null!=t&&((v=JSON.parse(t)).userid=v.userid,v.usermob=v.usermob)}else localStorage.removeItem("time"+u.productid),localStorage.removeItem("user"+u.productid);return v}localStorage.removeItem("time"+u.productid),localStorage.removeItem("user"+u.productid)}catch(e){}}(),location.href.indexOf("15/index")>=0?C():function(e){null==e&&(location.href.indexOf("order.html")>=0&&(e="order"),location.href.indexOf("cannel20220721.html")>=0&&(e="cancel"),location.href.indexOf("draw20220721.html")>=0&&(e="draw"),location.href.indexOf("draw202203132.html")>=0&&(e="draw"),location.href.indexOf("active.html")>=0&&(e="active"),location.href.indexOf("flow.html")>=0&&(e="flow"));switch(e){case"active":D();break;case"cancel":W();break;case"draw":A();break;case"flow":!function(){if(location.href.indexOf("flow.html")<0)return void(window.location.href="flow.html?fes="+d.fes+"&sou="+d.sou+"&userid="+v.userid+"&usermob="+v.usermob+"&usertime="+(v.usertime||(new Date).getTime()));var e=$(".section-flow"),n=v.usermob;e.find(".phone").html(n.substring(0,3)+"xxxx"+n.substring(7,11)),e.find(".btn").unbind("click").on("click",(function(){M().then((function(e){c(),null!=e&&""!=e&&a(e)})).fail((function(){c()}))})),M()}();break;default:C()}}(),location.href.indexOf("/cancel")>=0?(I("110002"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"open",ea:"cancel_open"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)})):location.href.indexOf("/draw")>=0?(I("110003"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"open",ea:"draw_open"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)})):location.href.indexOf("/flow")>=0?(I("110004"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"open",ea:"flow_open"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)})):location.href.indexOf("/active")>=0?(I("110005"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"open",ea:"active_open"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)})):location.href.indexOf("/refund")>=0?I("110006"):(I("110001"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"open",ea:"order_open"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)}))}))}(),$("#btn_cannel").unbind("click").on("click",(function(){(function(){var e,n;e=window.location.href.indexOf("https://800.wo.cn/orderchannel")>=0?"https://800.wo.cn/orderchannel/public/libs/cancelreason/index.html":window.location.href.indexOf("https://800.wo.cn/festivalchannel")>=0?"https://800.wo.cn/festivalchannel/public/libs/cancelreason/index.html":window.location.href.indexOf("http://localhost")>=0?"http://localhost:8088/orderchannel/public/libs/cancelreason/index.html":window.location.href.indexOf("http://127.0.0.1")>=0?"http://127.0.0.1:8088/orderchannel/public/libs/cancelreason/index.html":window.location.href.indexOf("http://100.0.4.69:3344")>=0?"http://100.0.4.69:3344/orderchannel/public/libs/cancelreason/index.html":window.location.href.indexOf("http://100.0.4.69:8282")>=0?"http://100.0.4.69:8282/orderchannel/public/libs/cancelreason/index.html":"https://800.wo.cn/orderchannel/public/libs/cancelreason/index.html",window.$capoverlay=$('
'),$capoverlay.appendTo($(document.body)),$("body").css("overflow","hidden"),$("#reasonIframe").length>=1?n=$("#reasonIframe").attr("src",e):(n=$(''),$("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),gotoUrl("google/baidu/cannel")})).fail((function(){}))})),$("#btn-cancel").unbind("click").on("click",(function(){W()})),$("#btn-active").unbind("click").on("click",(function(){D()})),$("#gotoDrawPage").unbind("click").on("click",(function(){A(window.location.href.substring(window.location.href.lastIndexOf("/")+1,window.location.href.lastIndexOf(".")))})),$(".section-agr").find(".footer").on("click",(function(){$($(".section-agr .scope").find("li")[2]).hasClass("hidden")?($(".section-agr .scope").find("li").each((function(e,n){$(n).removeClass("hidden")})),$(".section-agr").find(".footer").html('隐藏>')):($(".section-agr .scope").find("li").each((function(e,n){e>=1&&$(n).addClass("hidden")})),$(".section-agr").find(".footer").html('查看更多专属流量适用范围>'))}));var N=0;function J(e,n,t,o){var r="",i="",l="";null!=o&&0!=o||(r="您选择的是:",i=e,l=m);var c=$('
'),s=$('

'+r+""+i+'

产品:'+l+'

'+(null==t||""==t?"关闭":t)+'
'+(null==t||""==t?"确定":t)+"
");$("body").css("overflow","hidden"),c.appendTo($(document.body)),s.appendTo($(document.body)),1==n&&s.find(".btn").remove(),$(".btns").click((function(){$("body").css("overflow","auto"),c.remove(),s.remove(),s=null})),$("#btn_orderss").click((function(){var e=s.find(".inputot").val();if(null!=e&&""!=e){switch(N){case 0:var n=10001;break;case 1:n=20001;break;case 2:n=30001;break;case 3:n=60001;break;case 4:n=50001;break;case 5:n=13004}U(e,n,usermob,name_b,m),$("body").css("overflow","auto"),c.remove(),s.remove(),s=null}else a("请输入手机号码")}))}function U(e,n,t,o,l,c){r("处理中,请稍后..."),function(e,n,t,o,r,i){var l={userid:t,vipcode:n,vipuser:e,fog:u.fog,spid:o||"",productname:r||""};null!=o&&""!=o&&(l.spid=o),null!=i&&""!=i&&(l.productid=i);var c=$.Deferred();return $.ajax({url:p+"/rights/draw",type:"POST",contentType:"application/json",data:JSON.stringify(l)}).then((function(e){switch(e.resultCode){case"0000":case"1102":case"1105":case"1015":c.resolve(e);break;default:a(e.errorInfo),c.reject(e)}})).fail((function(e){c.reject("服务调用异常")})),c}(e,n,t,o,l,c).done((function(e){switch(i(),e.resultCode){case"0000":return k(),a("领取结果以短信为准!"),void WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"order_success"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)});case"1102":a("用户已领取过权益,不能再领取!"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"order_failure"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)});break;case"1015":a("用户未订购此产品!"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"order_failure"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)});break;default:a(e.errorInfo+",订购失败,请确定用户套餐!"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"order_failure"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(d.sou,32)})}})).fail((function(e){i(),console.log(e)}))}$(".beijing_a").click((function(){$(this)&&($(this).addClass("beijing_b").siblings().removeClass("beijing_b"),N=$(this).index())})),$(".order_a").click((function(){switch(N){case 0:J("优酷视频会员周卡");break;case 1:J("爱奇艺视频会员周卡");break;case 2:J("腾讯视频会员周卡");break;case 3:J("蜻蜓FM超级会员周卡");break;case 4:J("芒果TV PC移动影视会员周卡");break;case 5:J("美团外卖5元红包");break;case 6:!function(e,n,t,o){var r="",i="";null!=o&&0!=o||(r="您选择的是:",i=e);var l=$('
'),c=$('

'+r+""+i+'

'+(null==t||""==t?"关闭":t)+'
'+(null==t||""==t?"确定":t)+"
");$("body").css("overflow","hidden"),l.appendTo($(document.body)),c.appendTo($(document.body)),$(".btns").click((function(){$("body").css("overflow","auto"),l.remove(),c.remove(),c=null})),$("#btn_orderss").click((function(){var e=c.find(".inputot").val();new Array;if(1==e.split(" ").length)if(null!=e&&""!=e){console.log(e,"20200310",usermob,name_b),U(e,"20200310",usermob,name_b),$("body").css("overflow","auto"),l.remove(),c.remove(),c=null}else a("请输入抖音短视频账号");else a("抖音短视频账号不能含有空格")}))}("抖音币50个")}}))},function(e,n){}]);