!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="D:\\works\\2_code\\orderchannel\\src\\main\\webapp./douyin/15/cs/dist/",n(n.s=0)}([function(e,t,n){"use strict";function o(e,t,n,o){var r="";null!=o&&0!=o||(r="温馨提示");var i=$('
'),a=$('

'+r+'

'+e+'
'+(null==n||""==n?"关闭":n)+"
");$("body").css("overflow","hidden"),i.appendTo($(document.body)),a.appendTo($(document.body)),1==t&&a.find(".btn").remove(),a.close=function(){$("body").css("overflow","auto"),i.remove(),a.remove(),a=null};var l=$.Deferred();return a.find(".btn").on("click",(function(){a.close(),l.resolve(a)})),l}function r(e){window.$loading&&window.$loading.trigger("close"),$("body").css("overflow","hidden");var t=e||"处理中,请稍后...",n=$('
'),o=$('
'+t+"
");return n.appendTo($(document.body)),o.appendTo($(document.body)),o.on("close",(function(){$("body").css("overflow","auto"),n.remove(),o.remove(),o=null})),window.$loading=o,o}function i(e){e?e.trigger("close"):window.$loading&&window.$loading.trigger("close")}n.r(t),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,t=e.getMonth();return e.setMonth(t+1),e.setDate(0),e.getDate(),e.getDate()-(new Date).getDate()},Date.from=function(e){var t=e.replace(/-/g,"/");return t=t.replace(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/,"$1/$2/$3 $4:$5:$6"),new Date(t)},Date.prototype.format=function(e){var t={"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 n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[n]:("00"+t[n]).substr((""+t[n]).length)));return e};var a={},l={},c={},s={},d=null;function u(){window.root=f(),function(){var e,t,n=window.location.search.substring(1),o=0;for(;n.length>0&&-1!=(e=n.indexOf("=",o));){-1==(t=n.indexOf("&",e+1))&&(t=n.length);var r=n.substring(o,e),i=n.substring(e+1,t);a[r]=decodeURIComponent(i),o=t+1}}(),$("#useraccount_tt").attr("value",v("freeflow_token"));var e={fes:a.fes,sou:a.sou,orderId:a.orderId},t=$.Deferred();return $.ajax({url:d+"/ini/getstyle",type:"POST",contentType:"application/json",data:JSON.stringify(e),timeout:1e4}).then((function(e){var n=JSON.parse(e);if("0000"!=n.resultCode)return window.location.href=window.root+"/404.html",t.reject(),t;for(l=n.product[0],r=0;r=0&&alert(window.location.href);var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);if(null!=n)return n[2];switch(e){case"con":return"1";case"freeflow_token":return"";default:var o=f()+"/404.html";$(location).attr("href",o)}}else window.location.href="https://800.wo.cn/orderchannel/hd/Dy/order202005.html?fes=jh7&sou=12"}n(1);function g(){var e=$(".section-login").find(".form-group");e.find(".sendcode").unbind("click").on("click",(function(){!function(e,t,n){var r=$.Deferred();if(!(null!=e.attr("n")&&e.attr("n")>0)){var i=e.find(".usermob").val();if(null==i||""==i.trim())return o("请输入联通手机号码"),r.reject(),r;if(!i.startsWith("1")||11!=i.length)return o("手机号码格式不正确"),r.reject(),r;var c={fes:a.fes,sou:a.sou,fog:l.fog,usermob:i,smstype:t};s.usermob=i;var u=60;e.attr("n",u),$.ajax({url:d+"/sms/send",type:"POST",contentType:"application/json",data:JSON.stringify(c)}).then((function(t){if("0000"!=t.resultCode)return u=0,e.attr("n",u),void o(t.errorInfo);var n=e.find(".sendcode");n.is("input")?n.val("{}s".replace("{}",u)):n.text("{}s".replace("{}",u)),n.addClass("sendcode-wait");var r=setInterval((function(){u-=1,e.attr("n",u),n.is("input")?n.val("{}s".replace("{}",u)):n.text("{}s".replace("{}",u)),0===u&&(clearInterval(r),n.is("input")?n.val("获取验证码"):n.text("获取验证码"),e.attr("n",u),n.removeClass("sendcode-wait"))}),1e3);try{window.HtmlPageVisitor&&window.HtmlPageVisitor.setMp(s.usermob)}catch(e){}}))}}(e,"cancellogin"),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"cancel_click_send_sms_code_btn"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(a.sou,32)})})),e.find(".login").unbind("click").on("click",(function(){r(),function(e,t){var n=$.Deferred(),r=e.find(".usermob").val(),i=e.find(".smscode").val();if(null==t&&(t=!1),null==r||""==r.trim())return o("请输入联通手机号码"),n.reject(),n;if(null==i||""==i.trim())return o("请输入验证码"),n.reject(),n;if(6!=i.length)return o("短信验证码不正确"),n.reject(),n;var c={fes:a.fes,sou:a.sou,fog:l.fog,code:i,usermob:r};return $.ajax({url:d+"/checkvercode",type:"POST",contentType:"application/json",data:JSON.stringify(c)}).then((function(i){switch(e.find(".smscode").val(""),i.resultCode){case"0000":s.userid=i.userid,s.usermob=r,s.usertime=(new Date).getTime(),t||(e.find(".usermob").val(""),e.find(".usermob").val("")),n.resolve(i.userid);break;default:o(i.errorInfo),n.reject(i)}})).fail((function(e){n.reject("服务调用异常")})),n}(e).done((function(){console.log("成功")})).fail((function(e){i()})),WoAnalytics.addPoint({ad:$("#nanyanad").val(),ett:"click",ea:"cancel_click_confirm_btn"+$("#nanyanlabel").val(),ct:"web",pm:parseInt(a.sou,32)})})),window.scrollTo(0,0)}!function(){var e=localStorage.getItem("message");null!=e&&""!=e&&(o(e),localStorage.removeItem("message"));r(),u().then((function(e){i(),l=e.product[0],e.festival,function(e){if(a.userid)return s.userid=a.userid,void(s.usermob=a.usermob);try{var t=localStorage.getItem("time"+l.productid);if(t){if((new Date).getTime()<=parseFloat(t)+(e||36e5)){var n=localStorage.getItem("user"+l.productid);null!=n&&((s=JSON.parse(n)).userid=s.userid,s.usermob=s.usermob)}else localStorage.removeItem("time"+l.productid),localStorage.removeItem("user"+l.productid);return s}localStorage.removeItem("time"+l.productid),localStorage.removeItem("user"+l.productid)}catch(e){}}()})),function(e){null==e&&location.href.indexOf("index1.html")>=0&&(e="cancel");switch(e){case"cancel":default:g()}}()}()},function(e,t){}]);