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

'+r+'

'+e+'
'+(null==o||""==o?"关闭":o)+"
");$("body").css("overflow","hidden"),i.appendTo($(document.body)),a.appendTo($(document.body)),1==n&&a.find(".btn").remove(),a.close=function(){$("body").css("overflow","auto"),i.remove(),a.remove(),a=null};var c=$.Deferred();return a.find(".btn").on("click",(function(){a.close(),c.resolve(a)})),c}function r(e){window.$loading&&window.$loading.trigger("close");var n=e||"处理中,请稍后...",o=$('
'),t=$('
'+n+"
");return o.appendTo($(document.body)),t.appendTo($(document.body)),$("body").addClass("lockScroll"),t.on("close",(function(){o.remove(),t.remove(),t=null,$("body").removeClass("lockScroll")})),window.$loading=t,t}function i(e){e?e.trigger("close"):window.$loading&&window.$loading.trigger("close")}function a(e){$(e||document.body).data("use","0")}o.r(n),Date.prototype.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 o in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+o+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[o]:("00"+n[o]).substr((""+n[o]).length)));return e};var c={},s={},l={},d={},u=null;function f(){w(),function(){var e,n,o=window.location.search.substring(1),t=0;for(;o.length>0&&-1!=(e=o.indexOf("=",t));){-1==(n=o.indexOf("&",e+1))&&(n=o.length);var r=o.substring(t,e),i=o.substring(e+1,n);c[r]=decodeURIComponent(i),t=n+1}}(),$("#useraccount_tt").attr("value",x("freeflow_token"));var e={fes:c.fes,sou:c.sou},n=$.Deferred();return $.ajax({url:u+"/ini/getstyle",type:"POST",contentType:"application/json",data:JSON.stringify(e)}).then((function(e){var o=JSON.parse(e);if("0000"!=o.resultCode)return n.reject(),n;for(s=o.product[0],r=0;r0)){var i=e.find(".usermob").val();if(null==i||""==i.trim())return t("请输入联通手机号码"),r.reject(),r;if(!i.startsWith("1")||11!=i.length)return t("手机号码格式不正确"),r.reject(),r;var a={fes:c.fes,sou:c.sou,fog:s.fog,usermob:i,smstype:n};d.usermob=i;var l=60;e.attr("n",l),$.ajax({url:u+"/sms/send",type:"POST",contentType:"application/json",data:JSON.stringify(a)}).then((function(n){if("0000"!=n.resultCode)return l=0,e.attr("n",l),void t(n.errorInfo);var o=e.find(".sendcode");o.text("重新发送({}s)".replace("{}",l)),o.addClass("sendcode-wait");var r=setInterval((function(){l-=1,e.attr("n",l),o.text("重新发送({}s)".replace("{}",l)),0===l&&(clearInterval(r),o.text("获取验证码"),e.attr("n",l),o.removeClass("sendcode-wait"))}),1e3)}))}}function m(e,n){var o=$.Deferred(),r=e.find(".usermob").val(),i=e.find(".smscode").val();if(null==n&&(n=!1),null==r||""==r.trim())return t("请输入联通手机号码"),o.reject(),o;if(null==i||""==i.trim())return t("请输入验证码"),o.reject(),o;if(6!=i.length)return t("短信验证码不正确"),o.reject(),o;var a={fes:c.fes,sou:c.sou,fog:s.fog,code:i,usermob:r};return $.ajax({url:u+"/checkvercode",type:"POST",contentType:"application/json",data:JSON.stringify(a)}).then((function(i){switch(e.find(".smscode").val(""),i.resultCode){case"0000":d.userid=i.userid,d.usermob=r,d.usertime=(new Date).getTime(),n||(e.find(".usermob").val(""),e.find(".usermob").val("")),o.resolve(i.userid);break;default:t(i.errorInfo),o.reject(i)}})).fail((function(e){o.reject("服务调用异常")})),o}var g=!0;function p(e,n,o,a,l,f){g=!1;var v,m="http://800.wo.cn/cap/CAP-AUTH.html",p="http://800.wo.cn/";if(window.location.href.indexOf("https")>=0&&(m="https://800.wo.cn/cap/CAP-AUTH.html",p="https://800.wo.cn/"),window.location.href.indexOf("festivalchannel")>=0&&(m="https://800.wo.cn/festivalcap/CAP-AUTH.html",p="https://800.wo.cn/"),(v=$("#uniauthframe").length>=1?$("#uniauthframe").attr("src",m):$('')).css({width:"100%",height:"100%",position:"fixed",top:0,left:0,margin:0,padding:0,"-webkit-overflow-scrolling":"touch",border:"0px"}),r(),v.on("load",(function(){$capoverlay.remove(),function(e){var n={fog:s.fog||e||"",channel:""};return $.ajax({url:u+"/ini/gensign",type:"POST",contentType:"application/json",data:JSON.stringify(n)})}(e).then((function(e){i(),e.orderChannel=c.fes+"_"+c.sou,null!=n&&""!=n&&(e.productName=n),null!=f&&""!=f&&(e.capTemplet=f),v[0].contentWindow.postMessage(JSON.stringify(e),p)}))})),navigator.userAgent.indexOf("MicroMessenger")>=0){var b;window.capTimer=setInterval((function(){b=document.documentElement.scrollTop||document.body.scrollTop,b-=1,window.top.scrollTo(0,b),b+=1,window.top.scrollTo(0,b)}),200)}window.$capoverlay=$('
'),$capoverlay.appendTo($(document.body)),0==$("#uniauthframe").length?$("body").append(v):v.css("position","unset").css("min-height","10rem"),o||$("body").css("overflow","hidden");var w=$.Deferred();return window.addEventListener("message",(function(e){var n=JSON.parse(e.data);switch(n.resultcode){case"0":v.remove(),$capoverlay.remove(),$("body").css("overflow","auto"),clearInterval(window.capTimer),d.token=n.token,d.userid=decodeURIComponent(n.userid),d.userid1=n.userid1,d.usermob=n.usermob,d.usertime=(new Date).getTime(),l&&h(),w.resolve(d);break;case"9001":v.remove(),$capoverlay.remove(),clearInterval(window.capTimer),$("body").css("overflow","auto"),w.reject(n),null!=a&&a&&!g&&("1"==c.test&&alert(navigator.userAgent),function(){var e=navigator.userAgent.indexOf("Baidu")>-1;if(e)return e;var n=navigator.userAgent.indexOf("OPR")>-1,o=navigator.userAgent.indexOf("Firefox")>-1,t=navigator.userAgent.indexOf("UCBrowser");if(!n||!o||!t)return!1;var r=navigator.userAgent.indexOf("MicroMessenger")>-1,i=navigator.userAgent.indexOf("Safari")>-1,a=navigator.userAgent.indexOf("Chrome")>-1;return r||e||i||a}()&&(g=!0,history.back()));break;case"0001":case"0003":case"0006":case"4444":break;default:v.remove(),$capoverlay.remove(),$("body").css("overflow","auto"),clearInterval(window.capTimer),t(n.errorinfo),w.reject(n)}})),w}function h(e){var n={fog:s.fog||fog||"",userid:e||d.userid};$.ajax({url:u+"/decodeUserid",type:"POST",contentType:"application/json",data:JSON.stringify(n)}).then((function(e){"0"==e.resultCode&&(d.usermob=e.usermob)}))}function b(e){localStorage.setItem("user",JSON.stringify(d)),localStorage.setItem("time",e||(new Date).getTime()+"")}function w(){var e=window.document.location.href,n=window.document.location.pathname,o=e.indexOf(n),t=e.substring(0,o),r=n.substring(0,n.substr(1).indexOf("/")+1);return u=t+r,t+r}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+"=([^&]*)(&|$)"),o=window.location.search.substr(1).match(n);if(null!=o)return o[2];switch(e){case"con":return"1";case"freeflow_token":return"";default:var t=w()+"/404.html";$(location).attr("href",t)}}else window.location.href="https://800.wo.cn/orderchannel/hd/Dy/order202005.html?fes=jh7&sou=12"}function y(e,n,o){var t,r,i=O("uuid"),a=O("vvid");if(null!=i&&""!=i.trim()||k("uuid",i=T(),(t=new Date,r=t.from(t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()+" 23:59:59"),console.log(r.getTime()-t),r.getTime()-t.getTime())),null!=a&&""!=a.trim()||k("vvid",a=T(),-1),null!=e&&""!=e){var l={operid:e,uuid:i,vvid:a,fog:s.fog,userid:d.userid,fes:c.fes,sou:c.sou,url:encodeURIComponent(o||window.location.href),remark:encodeURIComponent(n||"")};$.ajax({url:u+"/burypoint/logid",type:"POST",contentType:"application/json",data:JSON.stringify(l)}).then((function(e){}))}}function O(e){var n,o=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return(n=document.cookie.match(o))?unescape(n[2]):null}function k(e,n,o){o=null==o?0:o;var t=new Date;o<0?document.cookie=e+"="+escape(n):(t.setTime(t.getTime()+o),document.cookie=e+"="+escape(n)+";expires="+t.toGMTString())}function T(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=16*Math.random()|0;return("x"==e?n:3&n|8).toString(16)}))}o(1);function S(e){if(location.href.indexOf("/index")<0)return null!=e&&""!=e||(e="index.html"),void(window.location.href=e+"?fes="+c.fes+"&sou="+c.sou);$("#btn-order").unbind("click").on("click",(function(e){var n;"1"!=$(n||document.body).data("use")&&($(n||document.body).data("use","1"),1)&&p(null,null,!1,!1,!0).then((function(e){var n,o,t;a(),n=e.userid,o=e.token,t=e.usermob,r("处理中,请稍后..."),function(e,n,o){var t={fes:c.fes,sou:c.sou,fog:s.fog,token:n,userid:e||d.userid,usermob:o||d.usermob,useraccount:"",f:c.F};return $.ajax({url:u+"/comm/order",type:"POST",contentType:"application/json",data:JSON.stringify(t)})}(n,o,t).done((function(e){switch(i(),e.resultCode){case"0000":return b(),void D("订购成功!");case"0013":D("该号码归属省分2/3G暂未开通此产品!");break;case"6611":D("错误代码(6611),订购失败,请重试!");break;case"6615":D("订购失败,请确定用户套餐!");break;case"6622":D("您已经订购了本产品~"),b();break;default:D(e.errorInfo+",订购失败,请确定用户套餐!")}})).fail((function(e){i(),console.log(e)}))})).fail((function(e){a()}))}))}function j(e){if(location.href.indexOf("draw.html")<0)window.location.href="draw.html?fes="+c.fes+"&sou="+c.sou+"&back="+(null==e?"":e)+"&pid="+s.productid;else{s=l[2020010201];var n=$(".section-login").find(".form-group");n.find(".sendcode").unbind("click").on("click",(function(){v(n,"drawlogin",l[2020010201])})),n.find(".login").unbind("click").on("click",(function(){var e=n.find(".usermob").val(),o=n.find(".account").val(),a=n.find(".smscode").val();if(null!=e&&""!=e)if(null!=o&&""!=o)if(null!=a&&""!=a){var l=function(e){var n=$('
'),o=$('
请确认是否领取抖音币到'+e+'账号?
取消
确认
');return n.appendTo($(document.body)),o.appendTo($(document.body)),o.find(".btn").on("click",(function(){n.remove(),o.remove(),o=null})),o.close=function(){n.remove(),o.remove(),o=null},o}(o);l.find(".cancel").on("click",(function(){i()})),l.find(".okay").on("click",(function(){m(n,!0).done((function(){!function(e){r(),function(e,n,o,r){if(null==e||""==e.trim()){t("获取账号信息失败");var i=$.Deferred();return i.reject(),i}var a={fes:c.fes,sou:c.sou,fog:s.fog,userid:o||d.userid,usermob:r||d.usermob,uid:e,screen_name:n||""};return $.ajax({url:u+"/coin/draw",type:"POST",contentType:"application/json",data:JSON.stringify(a)})}(e,"").done((function(e){switch(i(),e.resultCode){case"0000":var n=$(".section-login").find(".form-group");n.find(".usermob").val(""),n.find(".smscode").val(""),n.find(".account").val(""),D("抖币充值中,详情结果以短信形式告知").then((function(){null!=c.back&&""!=c.back&&S(c.back+".html")}));break;case"7605":D(e.errorInfo);break;default:var o="";e.errorInfo.indexOf("领取失败")<0&&(o="领取失败,"),D(o+e.errorInfo)}})).fail((function(e){i()}))}(o)})).fail((function(e){i()}))}))}else t("请输入验证码");else t("请输入抖音短视频账号");else t("请输入联通手机号")}))}}function C(){if(location.href.indexOf("cancel.html")<0)window.location.href="cancel.html?fes="+c.fes+"&sou="+c.sou+"&pid="+s.productid;else{var e=$(".section-login").find(".form-group");e.find(".sendcode").unbind("click").on("click",(function(){v(e,"cancellogin")})),e.find(".login").unbind("click").on("click",(function(){r(),m(e).done((function(){var e,n,o;(o={fes:c.fes,sou:c.sou,fog:s.fog,userid:e||d.userid,usermob:n||d.usermob,useraccount:""},$.ajax({url:u+"/comm/cancel",type:"POST",contentType:"application/json",data:JSON.stringify(o)})).done((function(e){switch(i(),e.resultCode){case"0000":D("退订成功!");break;case"7605":D(e.errorInfo);break;default:var n="";e.errorInfo.indexOf("退订失败")<0&&(n="退订失败,"),D(n+e.errorInfo)}})).fail((function(e){i()}))})).fail((function(e){i()}))})),window.scrollTo(0,0)}}function I(e){null!=l[e]&&(s=l[e],"2018072301"==e?($("body").addClass("body-9"),$(".banner-text").addClass("banner-text-9")):($("body").removeClass("body-9"),$(".banner-text").removeClass("banner-text-9")),window.location.href.indexOf("/index")>=0?(localStorage.setItem("pid",e),localStorage.setItem("pidtime",(new Date).getTime()),"2018072301"==e?($("body").addClass("body-9"),$(".banner-text").addClass("banner-text-9"),$(".item-15").addClass("item-15-inactive"),$(".item-9").removeClass("item-9-inactive"),$(".agr-15").css({display:"none"}),$(".agr-9").css({display:"block"})):($("body").removeClass("body-9"),$(".banner-text").removeClass("banner-text-9"),$(".item-15").removeClass("item-15-inactive"),$(".item-9").addClass("item-9-inactive"),$(".agr-15").css({display:"block"}),$(".agr-9").css({display:"none"}))):window.location.href.indexOf("cancel.html")>=0&&("2018072301"==e?($(".agr-15").css({display:"none"}),$(".agr-9").css({display:"block"})):($(".agr-15").css({display:"block"}),$(".agr-9").css({display:"none"}))))}function D(e){var n=$('
'),o=$('
'+e+'
');n.appendTo($(document.body)),o.appendTo($(document.body)),$("body").css("overflow","hidden"),o.find(".btn").unbind("click").on("click",(function(){o.close()}));var t=$.Deferred();return o.close=function(){n.remove(),o.remove(),o=null,$("body").css("overflow","auto"),t.resolve(o)},t}$((function(){var e=!1;if(window.addEventListener("pageshow",(function(){e&&window.location.reload()})),window.addEventListener("pagehide",(function(){e=!0})),window.location.href.indexOf("draw.html")>=0){var n=JSON.parse(localStorage.getItem("user"));null!=n&&$(".usermob").val(n.usermob)}})),function(){var e=localStorage.getItem("message");null!=e&&""!=e&&(t(e),localStorage.removeItem("message"));r(),f().then((function(e){if(i(),function(e){if(c.userid)return d.userid=c.userid,void(d.usermob=c.usermob);try{var n=localStorage.getItem("time");if(n)if((new Date).getTime()<=parseFloat(n)+(e||36e5)){var o=localStorage.getItem("user");(d=JSON.parse(o)).userid=d.userid,d.usermob=d.usermob,"18674842761"==d.usermob&&setTimeout((function(){alert(n+e||36e5)}),100)}else localStorage.removeItem("time"),localStorage.removeItem("user")}catch(e){}}(),location.href.indexOf("/index")>=0){var n=localStorage.getItem("pid"),o=localStorage.getItem("pidtime"),t="2018072301";null!=o&&(new Date).getTime()-o<12e4&&null!=l[n]&&(t=n),I(t),S()}else!function(e){null==e&&(location.href.indexOf("/index")>=0&&(e="order"),location.href.indexOf("cancel.html")>=0&&(e="cancel"),location.href.indexOf("draw.html")>=0&&(e="draw"),location.href.indexOf("active.html")>=0&&(e="active"),location.href.indexOf("flow.html")>=0&&(e="flow"));switch(e){case"cancel":C();break;case"draw":j();break;default:S()}I(c.pid)}();location.href.indexOf("/cancel")>=0?y("110002"):location.href.indexOf("/draw")>=0?y("110003"):location.href.indexOf("/flow")>=0?y("110004"):location.href.indexOf("/active")>=0?y("110005"):location.href.indexOf("/refund")>=0?y("110006"):y("110001")}))}(),$(".gotoCancelPage").each((function(e,n){$(n).unbind("click").on("click",(function(){C()}))})),$("#gotoDrawPage").unbind("click").on("click",(function(){j(window.location.href.substring(window.location.href.lastIndexOf("/")+1,window.location.href.lastIndexOf(".")))})),$(".product-slider").delegate(".item-9","click",(function(){I("2018072301")})),$(".product-slider").delegate(".item-15","click",(function(){I("2020010201")}));var P=0,M=0;$(".slider").unbind("touchstart").on("touchstart",(function(e){var n=e.targetTouches[0];P=n.pageX,n.pageY})),$(".slider").unbind("touchmove").on("touchmove",(function(e){var n=e.targetTouches[0];M=n.pageX,n.pageY})),$(".slider").unbind("touchend").on("touchend",(function(e){M-P>=100?I("2020010201"):P-M>=100&&I("2018072301")}))},function(e,n){}]);