forgeplus/public/react/build/static/js/49.fbf68b2a.chunk.js

1 line
45 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(this.webpackJsonp=this.webpackJsonp||[]).push([[49],{"0BMj":function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=p(o("2/Rp")),s=p(o("5rEg")),a=p(o("BvKs")),i=p(o("TeRw")),r=p(o("ZTPi")),l=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();o("L/Qf"),o("1vPl"),o("2WkQ"),o("O+I2"),o("AUBz");var c=o("q1tI"),u=p(c),d=o("sYIF"),h=p(o("dDhr")),m=p(o("c1iF")),f=p(o("vDqi"));p(o("Cy8O")),p(o("t6uJ"));function p(t){return t&&t.__esModule?t:{default:t}}o("sczo"),o("p6FK");r.default.TabPane;var g=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.IsPC=function(){for(var t=navigator.userAgent,e=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],o=!0,n=0;n<e.length;n++)if(t.indexOf(e[n])>0){o=!1;break}return o},o.changeType=function(){o.setState({classpass:"password"})},o.IsPC=function(){for(var t=navigator.userAgent,e=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],o=!0,n=0;n<e.length;n++)if(t.indexOf(e[n])>0){o=!1;break}return o},o.componentDidMount=function(){var t=o.IsPC();o.setState({isphone:t});var e=o.IsPC();"/login"===o.props.match.url?o.setState({tab:["0"]}):"/register"===o.props.match.url&&o.setState({tab:["1"]}),o.setState({pciphone:e})},o.openNotification=function(t,e){i.default.open({message:"提示",description:t,onClick:function(){}})},o.openNotifications=function(t){i.default.open({message:"提示",description:t,onClick:function(){}})},o.StudyMakeMoney=function(){o.setState({login:"",password:"",logins:"",passwords:"",codes:""});try{o.props.Setshowbool(3)}catch(t){}},o.onTabChange=function(t){},o.onAutoLoginChange=function(t){o.setState({autoLogin:t.target.checked})},o.isCorrectname=function(t,e){if(1===e){if(0===t.length)return void o.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!1})}else if(2===e&&0===t.length)return void o.setState({Phonenumberisnotcos:void 0,Phonenumberisnotcobool:!1});o.Emailphonenumberverification(t,e)},o.onReadAgreementChange=function(t){o.setState({readAgreement:t.target.checked})},o.dragOkCallback=function(){if(o.setState({Phonenumberisnotcosytdhk:void 0}),0!==o.state.logins.length){var t=void 0;return/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(o.state.logins)?(o.setState({Phonenumberisnotcos:void 0,Phonenumberisnotcobool:!1,dragOk:!0}),void o.Emailphonenumberverification(o.state.logins,2)):(t="手机号格式不正确",o.setState({Phonenumberisnotcos:void 0,Phonenumberisnotcobool:!1,dragOk:!0}),/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(o.state.logins)?(o.setState({Phonenumberisnotcos:void 0,Phonenumberisnotcobool:!1,dragOk:!0}),void o.Emailphonenumberverification(o.state.logins,2)):(t=-1!=o.state.logins.indexOf("@")==!0?"邮箱格式不正确":"手机号格式不正确",void o.setState({Phonenumberisnotcos:t,Phonenumberisnotcobool:!0,dragOk:!1,Whethertoverify:!0!==o.state.Whethertoverify})))}o.setState({Phonenumberisnotcos:"账号不能为空",Phonenumberisnotcobool:!0,dragOk:!1,Whethertoverify:!0!==o.state.Whethertoverify})},o.onChange=function(t){o.setState({Agreetotheterms:t.target.checked})},o.postLogin=function(){if(void 0!==o.state.login&&""!=o.state.login)if(void 0!==o.state.password&&""!=o.state.password){f.default.post("/accounts/login.json",{login:o.state.login,password:o.state.password}).then((function(t){if(void 0!==t)if(-2!==t.data.status){if(200===t.status)if(402===t.data.status)window.location.href=t.data.url;else{(0,d.broadcastChannelPostMessage)("refreshPage"),o.setState({isRender:!1});var e=JSON.parse(window.sessionStorage.getItem("yslgeturls"));void 0===e&&(e="/"),null===e&&(e="/"),"null"===e&&(e="/"),window.location.href=e}}else{if("该手机号尚未注册"===t.data.message||"该邮箱尚未注册"===t.data.message)return void o.setState({Phonenumberisnotco:t.data.message});if("错误的账号或密码"===t.data.message)return void o.setState({Phonenumberisnotcodmms:t.data.message});if("违反平台使用规范,账号已被锁定"===t.data.message)return void o.setState({Phonenumberisnotco:t.data.message});if("登录密码出错已达上限,账号已被锁定, 请10分钟后重新登录或找回密码"===t.data.message){var n=u.default.createElement("div",null,u.default.createElement("p",null,"登录密码出错已达上限,账号已被锁定;"),u.default.createElement("p",{className:"mt10"},"请10分钟后重新登录或",u.default.createElement("a",{href:"https://www.trustie.net/account/lost_password",style:{textDecoration:"underline",color:"#4CACFF"}},"找回密码")));return void o.openNotifications(n)}o.openNotification(t.data.message)}})).catch((function(t){}))}else o.setState({Phonenumberisnotcodmm:"密码不能为空"});else o.setState({Phonenumberisnotco:"账号不能为空"})},o.postregistered=function(){if(void 0!==o.state.logins&&""!==o.state.logins&&0!==o.state.logins.length)if(void 0!==o.state.passwords&&""!=o.state.passwords&&0!==o.state.passwords.length)if(void 0!==o.state.passwords&&o.state.passwords.length>0&&o.state.passwords.length<8)o.setState({Phonenumberisnotcosymmm:"密码不能少于8位"});else if(void 0!==o.state.passwords&&o.state.passwords.length>0&&o.state.passwords.length>16)o.setState({Phonenumberisnotcosymmm:"密码不能超过16位"});else{var t=void 0;t=o.props.weixinlogin?"/weapps/register.json":"/accounts/register.json",f.default.post(t,{login:o.state.logins,password:o.state.passwords,code:o.state.codes}).then((function(t){t&&t.data&&(o.openNotification("注册成功!"),o.props.history.push("/"))})).catch((function(t){}))}else o.setState({Phonenumberisnotcosymmm:"密码不能为空"});else o.setState({Phonenumberisnotcos:"账号不能为空",Phonenumberisnotcobool:!0,dragOk:!1,Whethertoverify:!0!==o.state.Whethertoverify})},o.Emailphonenumberverification=function(t,e){f.default.get("/accounts/valid_email_and_phone.json",{params:{login:t,type:1}}).then((function(t){if(t)if(-2===t.data.status){if(1===e)return void("该手机号码或邮箱已被注册"===t.data.message?o.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!1,dragOk:!0}):o.setState({Phonenumberisnotco:t.data.message,Phonenumberisnotcobool:!0,dragOk:!1,Whethertoverify:!0!==o.state.Whethertoverify}));if(2===e)return void o.setState({Phonenumberisnotcos:t.data.message,Phonenumberisnotcobool:!0,dragOk:!1,Whethertoverify:!0!==o.state.Whethertoverify})}else{if(1===e)return void o.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!1,dragOk:!0});if(2===e)return void o.setState({Phonenumberisnotcos:void 0,Phonenumberisnotcobool:!1,dragOk:!0})}})).catch((function(t){}))},o.SMSverification=function(){var t=o.state.logins;f.default.get("/accounts/get_verification_code.json",{params:{login:o.state.logins,type:1,smscode:(0,d.setmiyah)(t)}}).then((function(t){1===t.data.status?o.openNotification("验证码已发送,请注意查收"):-2===t.data.status&&o.openNotification(t.data.message)})).catch((function(t){}))},o.Showandhide=function(t){!0===o.state.classpassbool?o.setState({passopens:m.default,classpass:"text",classpassbool:!1}):o.setState({passopens:h.default,classpass:"password",classpassbool:!0})},o.getverificationcode=function(){if(void 0!==o.state.logins&&0!==o.state.logins.length){if(!0===o.state.Phonenumberisnotcobool)return o.openNotification(o.state.Phonenumberisnotcos),void o.setState({Whethertoverify:!0!==o.state.Whethertoverify});if(!0!==o.state.pciphone||!1!==o.state.dragOk)if(!0===o.state.getverificationcodes){o.setState({getverificationcodes:void 0});var t=setInterval((function(){o.setState((function(t){return{seconds:t.seconds-1}}),(function(){0==o.state.seconds&&(clearInterval(t),o.setState({getverificationcodes:!1,seconds:60}))}))}),1e3);o.SMSverification()}else{o.setState({getverificationcodes:void 0});var e=setInterval((function(){o.setState((function(t){return{seconds:t.seconds-1}}),(function(){0==o.state.seconds&&(clearInterval(e),o.setState({getverificationcodes:!1,seconds:60}))}))}),1e3);o.SMSverification()}else o.openNotification("请拖动滑块验证")}else o.openNotification("请输入手机号或邮箱")},o.loginInputonChange=function(t){var e;t.target.value.length>0?e=t.target.value.replace(/\s*/g,""):e=t.target.value;0===t.target.value.length?o.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!1,Phonenumberisnotcodmms:void 0,login:e}):o.setState({login:e,Phonenumberisnotco:void 0,Phonenumberisnotcodmms:void 0})},o.inputOnBlur=function(t,e){o.Emailphonenumberverification(t.target.value,1)},o.inputOnBlurzhuche=function(t,e){if(0!==t.target.value.length){var n=void 0;if(!/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(t.target.value))return n="手机号格式不正确",o.setState({Phonenumberisnotcos:n,Phonenumberisnotcobool:!0,dragOk:!1,Whethertoverify:!0!==o.state.Whethertoverify}),/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(t.target.value)?(o.setState({Phonenumberisnotcos:void 0,Phonenumberisnotcobool:!1}),void o.Emailphonenumberverification(t.target.value,e)):(n=-1!=t.target.value.indexOf("@")==!0?"邮箱格式不正确":"手机号格式不正确",void o.setState({Phonenumberisnotcos:n,Phonenumberisnotcobool:!0,dragOk:!1,Whethertoverify:!0!==o.state.Whethertoverify}));o.setState({Phonenumberisnotcos:void 0,Phonenumberisnotcobool:!1})}else o.setState({Phonenumberisnotcos:void 0,Phonenumberisnotcobool:!1})},o.passwordonChange=function(t){var e;t.target.value.length>0?e=t.target.value.replace(/\s*/g,""):e=t.target.value;o.setState({password:e,Phonenumberisnotcodmm:void 0,Phonenumberisnotcodmms:void 0})},o.loginInputonChanges=function(t){var e;t.target.value.length>0?e=t.target.value.replace(/\s*/g,""):e=t.target.value;0===t.target.value.length?o.setState({Phonenumberisnotcos:void 0,Phonenumberisnotcobool:!1,logins:e,dragOk:!1,Whethertoverify:!0!==o.state.Whethertoverify}):o.setState({logins:e,Phonenumberisnotcos:void 0,dragOk:!1,Whethertoverify:!0!==o.state.Whethertoverify})},o.passwordonChanges=function(t){var e;t.target.value.length>0?e=t.target.value.replace(/\s*/g,""):e=t.target.value;o.setState({passwords:e,Phonenumberisnotcosymmm:void 0})},o.codesonChange=function(t){o.setState({codes:t.target.value,Phonenumberisnotcosyzm:void 0})},o.changeTab=function(t){o.setState({tab:t.key}),0===t.key?o.setState({Phonenumberisnotcos:void 0}):o.setState({Phonenumberisnotco:void 0})},o.setMyEduCoderModals=function(){o.setState({MyEduCoderModals:!0,registered:"注册成功"})},!0===t.loginstatus&&(o.state={tab:["0"],classpass:"text",passopens:m.default,seconds:60,discodeBtn:!1,clearInterval:!1,autoLogin:!0,classpassbool:!1,readAgreement:!1,getverificationcodes:!0,dragOk:!1,Agreetotheterms:!0,login:"",password:"",logins:"",passwords:"",codes:"",Phonenumberisnotco:void 0,Phonenumberisnotcos:void 0,Phonenumberisnotcosyzm:void 0,Phonenumberisnotcosymmm:void 0,Phonenumberisnotcosytdhk:void 0,Phonenumberisnotcosyfwtk:void 0,Phonenumberisnotcodmm:void 0,Phonenumberisnotcobool:!1,Whethertoverify:!1,pciphone:!0,MyEduCoderModals:!1,registered:void 0,Phonenumberisnotcodmms:void 0,weixinlogin:!1,qqlogin:!1}),!1===t.loginstatus&&(o.state={tab:["1"],classpass:"text",passopens:m.default,seconds:60,discodeBtn:!1,clearInterval:!1,autoLogin:!0,classpassbool:!1,readAgreement:!1,getverificationcodes:!0,dragOk:!1,Agreetotheterms:!0,login:"",password:"",logins:"",passwords:"",codes:"",Phonenumberisnotco:void 0,Phonenumberisnotcos:void 0,Phonenumberisnotcosyzm:void 0,Phonenumberisnotcosymmm:void 0,Phonenumberisnotcosytdhk:void 0,Phonenumberisnotcosyfwtk:void 0,Phonenumberisnotcobool:!1,Phonenumberisnotcodmm:void 0,Whethertoverify:!1,pciphone:!0,MyEduCoderModals:!1,registered:void 0,Phonenumberisnotcodmms:void 0,weixinlogin:!1,qqlogin:!1}),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),l(e,[{key:"render",value:function(){var t=this,e=this.state,o=e.passopens,i=(e.Agreetotheterms,e.Phonenumberisnotcos),r=e.tab,l=e.classpassbool,c=e.Phonenumberisnotcosymmm;return u.default.createElement("div",{className:"login_register_content login_register_contents"},u.default.createElement("style",null,"\n .login_register_contents, .login_register_contents .ant-tabs-tabpane {\n display: flex;\n justify-content: center;\n }\n "),u.default.createElement("div",null,u.default.createElement(a.default,{mode:"horizontal",selectedKeys:r,onClick:this.changeTab,className:"mt20"},u.default.createElement(a.default.Item,{key:"1",className:"active font-18",style:{marginLeft:"10px"}},"注册")),u.default.createElement("div",{style:{width:"340px"}},u.default.createElement(s.default,{placeholder:"请输入邮箱账号进行注册",className:i&&""!==i?" color-grey-9 loginInputzhucheyslass bor-reds":" color-grey-9 loginInputzhuche",value:this.state.logins,type:"text",autoComplete:"off",onChange:this.loginInputonChanges,style:{marginTop:"30px",height:"38px",color:"#999999",fontSize:"14px"}}),i&&""!==i?u.default.createElement("p",{className:"color-red mt5 mb5 ",style:{width:" 100%",height:"20px"}},u.default.createElement("span",{className:"fl",style:{textAlign:"left",width:" 100%"}},i)):u.default.createElement("div",{style:{height:"25px"}}),u.default.createElement("style",null,"\n .ant-input-affix-wrapper .ant-input-suffix {\n right: 12px;\n height: 20px;\n }\n .mymimasysl {\n border-right: none !important;\n }\n .ant-input-group-addon{\n background-color: #fff;s\n }\n .ant-input-group .ant-input:hover {\n z-index: 0 !important;\n }\n "),u.default.createElement(s.default,{placeholder:"输入8~16位密码区分大小写",type:!1===l?"text":"password",className:c&&"mymimasysl"!==c?" font-14 color-grey-9 loginInputzhucheysl mymimasysl":" font-14 color-grey-9 loginInputzhuche mymimasysl",autoComplete:"new-password",onClick:this.changeType,value:this.state.passwords,onChange:this.passwordonChanges,addonAfter:u.default.createElement("img",{className:"mt5",src:o,onClick:function(e){return t.Showandhide(e)}})}),c&&""!==c?u.default.createElement("p",{className:"color-red mt5 mb5 ",style:{width:" 100%",height:"20px"}},u.default.createElement("span",{className:"fl",style:{textAlign:"left",width:" 100%"}},c)):u.default.createElement("div",{style:{height:"25px"}}),u.default.createElement(n.default,{className:" font-16 mb20",type:"primary",style:this.props.settings&&!0===this.props.settings.main_site?{height:"46px",width:"100%",marginTop:"26px"}:{height:"46px",width:"100%"},onClick:function(){return t.postregistered()},size:"large"},this.props.weixinlogin?"注册并绑定":"注册"))))}}]),e}(c.Component);e.default=g},"0guT":function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(o("kLXV")),s=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();o("k3Gp");var a=o("q1tI"),i=r(a);o("sYIF"),r(o("vDqi"));function r(t){return t&&t.__esModule?t:{default:t}}o("sczo");var l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.setDownload=function(){window.location.href="/login"},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),s(e,[{key:"render",value:function(){var t=this;return i.default.createElement(n.default,{keyboard:!1,closable:!1,footer:null,destroyOnClose:!0,title:"提示",centered:!0,visible:void 0!==this.props.modalsType&&this.props.modalsType,width:"530px"},i.default.createElement("div",{className:"educouddiv tabeltext-alignleft"},i.default.createElement("div",{className:"tabeltext-alignleft mb20"},i.default.createElement("p",null,"密码已重置,请重新登录")),i.default.createElement("a",{className:"task-btn task-btn-orange bth100",onClick:function(){return t.setDownload()}},"知道啦")))}}]),e}(a.Component);e.default=l},"0wri":function(t,e,o){"use strict";o.r(e),e.default=o.p+"static/media/logo.1c60f36c.png"},Cy8O:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,s=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),a=o("q1tI"),i=(n=a)&&n.__esModule?n:{default:n};o("DD7N");var r=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.state={isMove:!1,start:0,moveLength:0,clear:!1,move:0,width:0},t.onMouseUp=t.onMouseUp.bind(t),t.onMouseDown=t.onMouseDown.bind(t),t.onMouseMove=t.onMouseMove.bind(t),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),s(e,[{key:"componentDidMount",value:function(){document.getElementById("dragHandler").addEventListener("mousedown",this.onMouseDown)}},{key:"onMouseDown",value:function(t){console.log("28"),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp);var e=t||window.event;this.setState({isMove:!0,start:e.pageX})}},{key:"onMouseUp",value:function(t){console.log("38");var e=t||window.event;this.setState({isMove:!1});var o=window.getComputedStyle(this.verifyDOM),n=window.getComputedStyle(this.handlerDOM),s=e.clientX-this.verifyDOM.offsetLeft-Number.parseInt(n.width)/2,a=Number.parseInt(o.width)-Number.parseInt(n.width);console.log("moveLength="+s),console.log("maxWidth="+a),s<=a&&(this.setState({move:0,width:0}),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp)),this.props.onDrag&&this.props.onDrag(this.state.clear)}},{key:"onMouseMove",value:function(t){console.log("63");var e=t||window.event,o=window.getComputedStyle(this.verifyDOM),n=window.getComputedStyle(this.handlerDOM),s=e.clientX-this.verifyDOM.offsetLeft-Number.parseInt(n.width)/2,a=Number.parseInt(o.width)-Number.parseInt(n.width);this.state.isMove&&(s<0?s=0:s>=a&&(s=a,this.removeMouseMove()),this.setState({move:s,width:s}))}},{key:"removeMouseMove",value:function(){this.setState({clear:!0}),document.getElementById("dragHandler").removeEventListener("mousedown",this.onMouseDown),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),this.props.dragOkCallback()}},{key:"render",value:function(){var t=this;return i.default.createElement("div",{id:"drag",className:"nl-drag-verify",ref:function(e){t.verifyDOM=e},style:{color:this.state.clear?"#fff":"#252535"}},i.default.createElement("div",{className:"drag_bg",ref:function(e){t.bgDOM=e},style:{width:this.state.width}}),i.default.createElement("div",{className:"drag_text"},this.state.clear?"验证通过":"拖动滑块验证"),i.default.createElement("div",{id:"dragHandler",className:this.state.clear?"handler handler_ok_bg":"handler handler_bg",style:{left:this.state.move},ref:function(e){t.handlerDOM=e}}))}}]),e}(a.Component);e.default=r},DD7N:function(t,e,o){},"MV/f":function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=f(o("2/Rp")),s=f(o("5rEg")),a=f(o("TeRw")),i=f(o("ZTPi")),r=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();o("L/Qf"),o("1vPl"),o("O+I2"),o("AUBz");var l=o("q1tI"),c=f(l),u=(o("eO8H"),o("sYIF")),d=f(o("Cy8O")),h=f(o("0guT")),m=f(o("vDqi"));function f(t){return t&&t.__esModule?t:{default:t}}o("sczo"),o("p6FK");i.default.TabPane;var p={width:" 100%",height:"40px"},g=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.IsPC=function(){for(var t=navigator.userAgent,e=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],o=!0,n=0;n<e.length;n++)if(t.indexOf(e[n])>0){o=!1;break}return o},o.componentDidMount=function(){var t=o.IsPC();o.setState({pciphone:t})},o.openNotification=function(t){a.default.open({message:"提示",description:t,onClick:function(){console.log("Notification Clicked!")}})},o.StudyMakeMoney=function(){o.props.Setshowbool(1)},o.changeType=function(){o.setState({classpass:"password"})},o.changeTypey=function(){},o.getverificationcode=function(){if(void 0!==o.state.login&&0!==o.state.login.length){if(!1===o.state.Phonenumberisnotcobool)return o.openNotification(o.state.Phonenumberisnotco),void o.setState({Whethertoverify:!0!==o.state.Whethertoverify});if(!0!==o.state.pciphone||!1!==o.state.dragOk)if(!0===o.state.getverificationcodes){o.setState({getverificationcodes:void 0});var t=setInterval((function(){o.setState((function(t){return{seconds:t.seconds-1}}),(function(){0==o.state.seconds&&(clearInterval(t),o.setState({getverificationcodes:!1,seconds:60}))}))}),1e3);o.SMSverification()}else{o.setState({getverificationcodes:void 0});var e=setInterval((function(){o.setState((function(t){return{seconds:t.seconds-1}}),(function(){0==o.state.seconds&&(clearInterval(e),o.setState({getverificationcodes:!1,seconds:60}))}))}),1e3);o.SMSverification()}else o.openNotification("拖动滑块验证")}else o.openNotification("请输入手机号或邮箱")},o.SMSverification=function(){var t=o.state.login;m.default.get("/accounts/get_verification_code.json",{params:{login:o.state.login,type:2,smscode:(0,u.setmiyah)(t)}}).then((function(t){1===t.data.status?o.openNotification("验证码已发送,请注意查收"):-2===t.data.status&&o.openNotification(t.data.message)})).catch((function(t){console.log(t)}))},o.cancelReadOnly=function(){o.setState({readonlyInput:!1})},o.Retrievepassword=function(){if(!1===o.state.Phonenumberisnotcobool&&void 0!==o.state.Phonenumberisnotco)return o.openNotification(o.state.Phonenumberisnotco),void o.setState({Whethertoverify:!0!==o.state.Whethertoverify});if(void 0!==o.state.login&&0!==o.state.login.length&&""!==o.state.login)if(!0!==o.state.pciphone||!1!==o.state.dragOk)if(void 0!==o.state.password&&0!==o.state.password.length&&""!==o.state.password)if(void 0!==o.state.passwords&&0!==o.state.passwords.length&&""!==o.state.passwords)if(o.state.password!==o.state.passwords!=="")if(void 0!==o.state.password&&o.state.password.length>0&&o.state.password.length<8)o.setState({Phonenumberisnotcosmmm:"密码不能少于8位"});else if(void 0!==o.state.password&&o.state.password.length>0&&o.state.password.length>16)o.setState({Phonenumberisnotcosmmm:"密码不能超过16位"});else if(void 0!==o.state.passwords&&o.state.passwords.length>0&&o.state.passwords.length<8)o.setState({Phonenumberisnotcosymmmm:"二次密码不能少于8位"});else if(void 0!==o.state.passwords&&o.state.passwords.length>0&&o.state.passwords.length>16)o.setState({Phonenumberisnotcosymmmm:"二次密码不能超过16位"});else if(void 0!==o.state.codes&&0!==o.state.codes.length&&""!==o.state.codes){m.default.post("/accounts/reset_password.json",{login:o.state.login,code:o.state.codes,new_password:o.state.password,new_password_confirmation:o.state.passwords}).then((function(t){if(t){if(-2===t.data.status)return"验证码不正确"===t.data.message||"验证码已失效"===t.data.message?void o.setState({Phonenumberisnotcosyzm:"验证码不正确"}):"1小时内同一手机号发送次数超过限制"===t.data.message?(o.setState({boolyzm:!0}),void o.openNotification(t.data.message)):void o.openNotification(t.data.message);o.setState({modalsType:!0})}})).catch((function(t){}))}else o.setState({Phonenumberisnotcosyzm:"验证码不能为空"});else o.openNotification("两次输入的密码不一致");else o.setState({Phonenumberisnotcosymmmm:"二次密码不能为空"});else o.setState({Phonenumberisnotcosmmm:"密码不能为空"});else o.setState({Phonenumberisnotcosytdhk:"请拖动滑块完成验证",dragOk:!1,Whethertoverify:!0!==o.state.Whethertoverify});else o.setState({Phonenumberisnotco:"账号不能为空",Phonenumberisnotcobool:!1,dragOk:!1,Whethertoverify:!0!==o.state.Whethertoverify})},o.openNotification=function(t){a.default.open({message:"提示",description:t,onClick:function(){console.log("Notification Clicked!")}})},o.loginInputonChange=function(t){var e;t.target.value.length>0?e=t.target.value.replace(/\s*/g,""):e=t.target.value;o.setState({login:e,Phonenumberisnotco:void 0,dragOk:!1,boolyzm:!1,Whethertoverify:!0!==o.state.Whethertoverify})},o.loginInputonChanges=function(t){var e;t.target.value.length>0?e=t.target.value.replace(/\s*/g,""):e=t.target.value;o.setState({password:e,Phonenumberisnotcosmmm:void 0})},o.loginInputonChangess=function(t){var e;t.target.value.length>0?e=t.target.value.replace(/\s*/g,""):e=t.target.value;o.setState({passwords:e,Phonenumberisnotcosymmmm:void 0})},o.codesonChange=function(t){o.setState({codes:t.target.value,Phonenumberisnotcosyzm:void 0})},o.inputOnBlur=function(t){o.isCorrectname(t.target.value)},o.isCorrectname=function(t){if(console.log(t.length),0!==t.length){var e=void 0;if(!/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(t))return e="手机号格式不正确",o.setState({Phonenumberisnotco:e,Phonenumberisnotcobool:!1}),/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(t)?void o.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!0}):(e=-1!=t.indexOf("@")==!0?"邮箱格式不正确":"手机号格式不正确",o.setState({Phonenumberisnotco:e,Phonenumberisnotcobool:!1}),void o.Emailphonenumberverification(t));o.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!0})}else o.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!0})},o.inputOnBlurzhuche=function(t){if(!1===o.state.pciphone){if(""===o.state.login||0===o.state.login.length)return void o.setState({Phonenumberisnotco:"账号不能为空",Phonenumberisnotcobool:!1,dragOk:!1,Whethertoverify:!0!==o.state.Whethertoverify});var e=void 0;return/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(t.target.value)?void o.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!0}):(e="手机号格式不正确",o.setState({Phonenumberisnotco:e,Phonenumberisnotcobool:!1}),/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(t.target.value)?(o.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!0}),void o.Emailphonenumberverification(t.target.value)):(e=-1!=t.target.value.indexOf("@")==!0?"邮箱格式不正确":"手机号格式不正确",void o.setState({Phonenumberisnotco:e,Phonenumberisnotcobool:!1})))}},o.dragOkCallback=function(){if(console.log(o.state.login),o.setState({Phonenumberisnotcosytdhk:void 0}),""!==o.state.login&&0!==o.state.login.length){var t=void 0;return/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(o.state.login)?(o.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!0,Phonenumberisnotcosytdhk:void 0,dragOk:!0}),void o.Emailphonenumberverification(o.state.login)):(t="手机号格式不正确",o.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!0,Phonenumberisnotcosytdhk:void 0,dragOk:!0}),/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(o.state.login)?(o.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!0,dragOk:!0}),void o.Emailphonenumberverification(o.state.login)):(t=-1!=o.state.login.indexOf("@")==!0?"邮箱格式不正确":"手机号格式不正确",void o.setState({Phonenumberisnotco:t,Phonenumberisnotcobool:!1,dragOk:!1,Whethertoverify:!0!==o.state.Whethertoverify})))}o.setState({Phonenumberisnotco:"账号不能为空",Phonenumberisnotcobool:!1,Phonenumberisnotcosytdhk:void 0,dragOk:!1,Whethertoverify:!0!==o.state.Whethertoverify})},o.Emailphonenumberverification=function(t){m.default.get("/accounts/valid_email_and_phone.json",{params:{login:t,type:2}}).then((function(e){if(e)return-2===e.data.status?(console.log(t.length),void o.setState({Phonenumberisnotco:e.data.message,Phonenumberisnotcobool:!1,dragOk:!1,Whethertoverify:!0!==o.state.Whethertoverify})):void o.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!0,dragOk:!0})})).catch((function(t){console.log(t)}))},o.gobackshowbool=function(){o.props.history.push("/login"),o.props.Setshowbool(1)},o.state={login:"",password:"",passwords:"",seconds:60,codes:"",getverificationcodes:!0,Phonenumberisnotcobool:!0,Phonenumberisnotco:void 0,Phonenumberisnotcosytdhk:void 0,Phonenumberisnotcosmmm:void 0,Phonenumberisnotcosymmmm:void 0,Phonenumberisnotcosyzm:void 0,s:"text",classpass:"text",readonlyInput:!0,dragOk:!1,Whethertoverify:!1,modalsType:!1,pciphone:!0,boolyzm:!1},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"render",value:function(){var t,e,o,a=this,i=this.state,r=(i.autoLogin,i.readAgreement,i.dragOk,i.login,i.password,i.passwords,i.classpass),l=i.seconds,u=i.getverificationcodes,m=i.Phonenumberisnotco,f=i.Phonenumberisnotcosytdhk,g=i.Phonenumberisnotcosmmm,b=i.Phonenumberisnotcosymmmm,v=i.Phonenumberisnotcosyzm,y=(i.readonlyInput,i.codes),w=i.Whethertoverify,P=i.pciphone,S=i.boolyzm;return c.default.createElement("div",{className:"login_register_content"},c.default.createElement(h.default,{modalsType:this.state.modalsType,StudyMakeMoney:function(){return a.StudyMakeMoney()}}),c.default.createElement(s.default,{type:"text",name:"username",value:"namename",style:{height:"0",width:"0",border:"none",display:"none"}}),c.default.createElement(s.default,{type:"password",name:"password",id:"password",value:"123123123",style:{height:"0",width:"0",border:"none",display:"none"}}),c.default.createElement("style",null,"\n\n .login_section .section_header {\n margin-bottom: 16px;\n font-size: 18px;\n width: 100%;\n text-align: center;\n border-bottom: 1px solid rgb(234, 234, 234);\n height: 69px;\n color: #05101A;\n line-height: 69px;\n }\n\t\t\t\t\t\t\t\t.loginInputzhuche{\n\t\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\t\tbackground-color: #fff!important;\n\t\t\t\t\t\t\t\t\theight: 45px !important;\n\t\t\t\t\t\t\t\t\tpadding: 5px;\n\n\t\t\t\t\t\t\t\t}\n "),c.default.createElement("div",{className:"login_sectionysl"},c.default.createElement("div",{className:"section_header font-18",style:{color:"#05101A",marginTop:"10px"}},"找回密码"),c.default.createElement("div",{style:{width:"340px"}},c.default.createElement("style",null,'\n .ant-input {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfont-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t-webkit-box-sizing: border-box;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbox-sizing: border-box;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlist-style: none;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tposition: relative;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpadding: 4px 11px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 38px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tline-height: 1.5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: rgba(0, 0, 0, 0.65);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground-color: #fff;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground-image: none;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder: 1px solid #d9d9d9;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder-radius: 4px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t-webkit-transition: all .3s;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t-o-transition: all .3s;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransition: all .3s;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'),c.default.createElement(s.default,(t={style:p,type:"text",autoComplete:"off",onClick:this.changeTypey,className:m&&""!==m?" color-grey-9 loginInputzhucheyslass bor-reds":" color-grey-9 loginInputzhuche",placeholder:"输入注册手机号或邮箱",value:this.state.login,onChange:this.loginInputonChange},o={marginTop:"10px",height:"38px"},(e="style")in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t)),m&&""!==m?c.default.createElement("p",{className:"color-red mt5 mb5",style:{width:" 100%",height:"20px"}},c.default.createElement("span",{className:"fl",style:{textAlign:"left",width:" 100%"}},m)):c.default.createElement("div",{style:{height:"25px"}}),!1===w&&!0===P?c.default.createElement(d.default,{dragOkCallback:this.dragOkCallback}):"",!0===w&&!0===P?c.default.createElement(d.default,{dragOkCallback:this.dragOkCallback}):"",c.default.createElement("div",null,!0===P?f&&""!==f?c.default.createElement("p",{className:"color-red mt5 mb5",style:{width:" 100%",height:"20px"}},c.default.createElement("span",{className:"fl",style:{textAlign:"left",width:" 100%"}},f)):c.default.createElement("div",{style:{height:"25px"}}):""),c.default.createElement(s.default,{type:r,className:g&&""!==g?" color-grey-9 loginInputzhucheyslass bor-reds":" color-grey-9 loginInputzhuche",onClick:this.changeType,autoComplete:"new-password",onChange:this.loginInputonChanges,value:this.state.password,style:{width:"100%",height:"38px"},placeholder:"输入8~16位密码区分大小写"}),g&&""!==g?c.default.createElement("p",{className:"color-red mt5 mb5",style:{width:" 100%",height:"20px"}},c.default.createElement("span",{className:"fl",style:{textAlign:"left",width:" 100%"}},g)):c.default.createElement("div",{style:{height:"25px"}}),c.default.createElement(s.default,{type:r,className:b&&""!==b?" color-grey-9 loginInputzhucheyslass bor-reds":" color-grey-9 loginInputzhuche",onClick:this.changeType,autoComplete:"new-password",onChange:this.loginInputonChangess,value:this.state.passwords,style:{height:"38px",width:"100%"},placeholder:"再次输入新密码"}),b&&""!==b?c.default.createElement("p",{className:"color-red mt5 mb5",style:{width:" 100%",height:"20px"}},c.default.createElement("span",{className:"fl",style:{textAlign:"left",width:" 100%"}},b)):c.default.createElement("div",{style:{height:"25px"}}),c.default.createElement("div",{className:"yslbutondls"},c.default.createElement(s.default,{className:v&&""!==v?" mr5 font-14 color-grey-9 loginInputzhucheyslass bor-reds":" mr5 font-14 color-grey-9 loginInputzhuche",type:"text",autoComplete:"off",style:{width:"210px",height:"38px"},placeholder:"请输入验证码",onChange:this.codesonChange,value:y}),void 0===u?c.default.createElement(n.default,{className:" ml5 ",disabled:!0,style:{width:"120px","text-align":"center",height:"45px"},size:"large"},"重新发送",l,"s"):!0===u?c.default.createElement(n.default,{className:" ml5 ",style:{width:"120px","text-align":"center",height:"45px"},type:"primary",disabled:S,onClick:function(){return a.getverificationcode()},size:"large"},"获取验证码"):c.default.createElement(n.default,{className:" ml5 ",style:{width:"120px","text-align":"center",height:"45px"},type:"primary",disabled:S,onClick:function(){return a.getverificationcode()},size:"large"},"重新发送")),v&&""!==v?c.default.createElement("p",{className:"color-red mt5 mb5",style:{width:" 100%",height:"20px"}},c.default.createElement("span",{className:"fl",style:{textAlign:"left",width:" 100%"}},v)):c.default.createElement("div",{style:{height:"25px"}}),c.default.createElement(n.default,{size:"large",type:"primary",style:{height:"46px",width:"100%",marginBottom:"26px"},onClick:this.Retrievepassword},"完成"),c.default.createElement("p",{className:"clearfix mb20 textcenter"},c.default.createElement("a",{className:"startlogin color-blue",onClick:function(){return a.gobackshowbool()}},"返回登录注册")))))}}]),e}(l.Component);e.default=g},ZxQ5:function(t,e,o){"use strict";o.r(e),e.default=o.p+"static/media/beijintulogontwo.41076faf.png"},bj5I:function(t,e,o){},c1iF:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjQ3MTE0ODA1ODFGMzExRTk5M0M5OUNFNjQ2MEU5RjQzIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjQ3MTE0ODA2ODFGMzExRTk5M0M5OUNFNjQ2MEU5RjQzIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NDcxMTQ4MDM4MUYzMTFFOTkzQzk5Q0U2NDYwRTlGNDMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NDcxMTQ4MDQ4MUYzMTFFOTkzQzk5Q0U2NDYwRTlGNDMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6SCWHBAAABG0lEQVR42tzUvUoDQRSG4V0RbZJISsGrEPyBWNikSWdh1kK8CNlKW4OIVkII7BaCEBKIEO/AThQRryCpBGtJJLFa34FvYLMMVmsKDzwMzM/hzBl2/SRJvDxiwcspcku0GMfxn1W0jCP0MMREhpo71J5fEx1ggH3co4qyVDUXKGkwczWNPq5Qwx5eHJUOpI1t3GATIRJb0Qkq2HIkaWCk0caTku3orOdHUWTGT+zizVHJN5YwRjGzto4HrNiKLtEyE45E5spfuM7Ml9DERbrZpuxHlbyROXCKgkYbpjfPOnOebrb5To7Vn76u2FXid+1ZU18CXSnUnplXs9FRorpe7wyrWvvAK+60PnU9fzrMhluZ/7fm/9/fyI8AAwADGEB8vIPBrQAAAABJRU5ErkJggg=="},dDhr:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjRGMjZDRTBBODFGMjExRTk5RThCQTk5RkJFOTAxMDY1IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjRGMjZDRTBCODFGMjExRTk5RThCQTk5RkJFOTAxMDY1Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NEYyNkNFMDg4MUYyMTFFOTlFOEJBOTlGQkU5MDEwNjUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NEYyNkNFMDk4MUYyMTFFOTlFOEJBOTlGQkU5MDEwNjUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7b5AIeAAAAsklEQVR42mL8//8/AzUAEwOVwKhBhAELMmfWrFm7gFQmEN8lQu/stLS0VFwuugnEx4FYi4AhS4HYCp/XcoH4NRBfBOJOINYBYgkgFgRiOSBOBOKrQBwFxNr4DHKH0g5ALAvEp4F4DRBvgBpeCMTNQHwIain2MAKCn0DcAsRHgVgc6kWQ7axA3AHEjEC8Aoi5gFgFn0EHkNjKQLwKiB9B+dOBOAbKnoceaIyjeW0IGgQQYABDsCGs3eczVAAAAABJRU5ErkJggg=="},gLWD:function(t,e,o){},p6FK:function(t,e,o){},qJVj:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},s=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),a=o("q1tI"),i=m(a),r=m(o("wd/R")),l=o("sYIF");o("bj5I"),o("gLWD"),o("pb8e");var c=m(o("ZxQ5")),u=m(o("0wri")),d=m(o("0BMj")),h=m(o("MV/f"));function m(t){return t&&t.__esModule?t:{default:t}}var f={background:"url("+c.default+")",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundAttachment:"fixed",backgroundSize:"100% 100%",height:" 100%",width:" 100%",position:"absolute",top:"0px",bottom:"0px",minHeight:"100%",paddingTop:"40px"},p=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.Setlogins=function(t){o.setState({logini:t})},o.gohome=function(){window.location.href="/"},o.Setshowbool=function(t,e,n){1===t?o.setState({showbool:1}):3===t&&o.setState({showbool:3})},"/changepassword"===t.match.url?o.state={showbool:3,logini:3,namezh:"",passmm:"",loginstatus:!0}:"/login"===t.match.url?o.state={showbool:1,loginstatus:!0,logini:1,namezh:"",passmm:""}:"/register"===t.match.url?o.state={showbool:1,loginstatus:!1,logini:2,namezh:"",passmm:""}:o.state={showbool:1,logini:1,namezh:"",passmm:"",loginstatus:!0},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),s(e,[{key:"render",value:function(){var t=this,e=this.state.showbool,o=this.props.mygetHelmetapi;return i.default.createElement("div",{style:f,className:" clearfix"},i.default.createElement("div",{style:{"justify-content":"center","align-items":"center",width:"100%",textAlign:"center"}},i.default.createElement("div",{style:{cursor:"pointer"}},o&&o.login_logo_url?i.default.createElement("img",{style:{cursor:"pointer"},alt:"",onClick:function(){return t.gohome()},width:"80px",src:(0,l.getImageUrl)(o.login_logo_url)}):i.default.createElement("img",{style:{cursor:"pointer"},alt:"",onClick:function(){return t.gohome()},src:u.default,width:"80px"})),1===e?i.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:"100%",marginTop:"25px"}},i.default.createElement("div",null,i.default.createElement(d.default,n({},this.props,this.state,{Setshowbool:function(e){return t.Setshowbool(e)}})))):i.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:"100%",marginTop:"25px"}},i.default.createElement("div",null,i.default.createElement(h.default,n({},this.props,this.state,{Setshowbool:function(e){return t.Setshowbool(e)}})))),i.default.createElement("div",{className:"font-14 color-grey-9 ",style:{marginTop:"20px"}},i.default.createElement("span",{className:"font-18"},"©")," ",(0,r.default)().year()," Trustie",i.default.createElement("span",{className:"ml15 mr15"},"湘ICP备17009477号"),i.default.createElement("a",{href:"https://team.trustie.net",style:{color:"#888"},target:"_blank"},"Trustie"),"   &   IntelliDE inside.")))}}]),e}(a.Component);e.default=p}}]);