You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
6.7 KiB
1 line
6.7 KiB
5 years ago
|
(this.webpackJsonph5=this.webpackJsonph5||[]).push([[208],{2101:function(t,e,n){},2355:function(t,e,n){"use strict";n.r(e),n(104);var a=n(60),o=(n(131),n(39)),s=(n(103),n(47)),i=(n(803),n(804)),l=n(8),r=n(7),c=n(10),u=n(9),p=n(11),d=(n(1408),n(1409)),m=n(0),g=n.n(m),h=n(6),f=n.n(h),w=(n(49),n(28)),b=n(2056),v=(n(265),n(753),n(264),n(2101),d.a.Header),E=d.a.Footer,y=(d.a.Sider,d.a.Content),x={backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundAttachment:"fixed",backgroundSize:"100% 100%",height:" 100%",width:" 100%",position:"absolute",top:"0px",bottom:"0px",minHeight:"100%"},N=function(t){function e(t){var n;return Object(l.a)(this,e),(n=Object(c.a)(this,Object(u.a)(e).call(this,t))).loginInputonChange=function(t){void 0===t.target.value||""===t.target.value||null===t.target.value||"username"===n.state.logintypes&&n.setState({logintypes:void 0}),n.setState({login:t.target.value})},n.passwordonChange=function(t){void 0===t.target.value||""===t.target.value||null===t.target.value||"password"===n.state.logintypes&&n.setState({logintypes:void 0}),n.setState({password:t.target.value})},n.postwechatlogin=function(t,e,a){var o=n.props.location.search.split("?type=");if(!1===t){if(void 0===e||""===e||null===e)return void n.setState({logintypes:"username"});if(void 0===a||""===a||null===a)return void n.setState({logintypes:"password"})}f.a.post("/bind_user.json",{type:"qq"===o[1]?"qq":"wechat",not_bind:t,username:e,password:a}).then((function(t){0===t.data.status&&(window.location.href="/")})).catch((function(t){}))},n.setbuttontype=function(t){n.setState({setbuttontypes:t})},n.gotohome=function(){n.props.history.replace("/")},n.state={login:void 0,password:void 0,data:void 0,logintypes:void 0,spinnings:!0,setbuttontypes:0,showbool:1,loginstatus:!1,logini:2,namezh:"",passmm:""},n}return Object(p.a)(e,t),Object(r.a)(e,[{key:"componentDidMount",value:function(){var t=this;f.a.get("/users/get_user_info.json").then((function(e){e&&t.setState({data:e.data,spinnings:!1})})).catch((function(e){t.setState({spinnings:!1})}))}},{key:"render",value:function(){var t=this,e=this.state,n=(e.data,e.setbuttontypes),l=e.spinnings;return g.a.createElement("div",{style:x,className:" clearfix"},g.a.createElement(a.a,{size:"large",spinning:l},g.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t#root{\n\t\t\t\t\t\t\t\t\tbackground:#fff !important;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t"),g.a.createElement("div",null,g.a.createElement("div",{style:{width:"100%"}},g.a.createElement("div",{className:"educontent clearfix wechatdiv"},g.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t\t\t\t.ant-layout,.ant-layout-sider,.ant-layout-content{\n\t\t\t\t\t\t\t\t\t\t\t\t\t background: #FFF;\n\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.ant-layout-header {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 50px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpadding: 0 48px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tline-height: inherit;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground: #001529;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground: #FFF;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t font-size: 14px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfont-family: PingFangSC-Regular,PingFangSC;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfont-weight: 400;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: rgba(0,0,0,1);\n\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.ant-layout-footer {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpadding: 0px 50px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t background: #FFF;\n\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.wechattiyan{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth:300px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight:46px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground:rgba(25,144,255,1);\n\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}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.ant-divider-horizontal{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t margin: 0px 0 30px 0px;\n\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.ant-divider{\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t background: #EEEEEE;\n \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"),g.a.cr
|