5.b8a8c340145d36ce770d.chunk.js 16 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"./src/containers/LoginPage/LoginForm.jsx":function(e,t,s){"use strict";t.__esModule=!0;var o=v(s("./node_modules/antd/es/button/index.js")),i=v(s("./node_modules/antd/es/checkbox/index.js")),n=v(s("./node_modules/antd/es/alert/index.js")),r=v(s("./node_modules/antd/es/input/index.js")),a=v(s("./node_modules/babel-runtime/helpers/jsx.js")),d=v(s("./node_modules/babel-runtime/helpers/extends.js")),l=v(s("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=v(s("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=v(s("./node_modules/babel-runtime/helpers/inherits.js"));s("./node_modules/antd/es/button/style/index.js"),s("./node_modules/antd/es/checkbox/style/index.js"),s("./node_modules/antd/es/alert/style/index.js"),s("./node_modules/antd/es/input/style/index.js");var p=v(s("./node_modules/react/index.js")),f=v(s("./node_modules/lodash/lodash.js")),m=(v(s("./node_modules/prop-types/index.js")),s("./node_modules/react-redux/es/index.js")),g=s("./node_modules/@ant-design/icons/es/index.js"),h=s("./node_modules/@ant-design/compatible/es/index.js");s("./node_modules/@ant-design/compatible/assets/index.css");var b=v(s("./src/containers/LoginPage/LoginSimpleVerify/LoginSimpleVerify.jsx")),y=s("./src/redux/reducers/auth.js"),x=s("./src/redux/selectors/auth.js");function v(e){return e&&e.__esModule?e:{default:e}}var j=h.Form.Item,A=(0,a.default)(j,{},void 0,(0,a.default)("div",{className:"login-no-account"},void 0,"\u8fd8\u6ca1\u6709\u8d26\u53f7\uff1f ",(0,a.default)("a",{href:"/index"},void 0,"\u6ce8\u518c\u65b0\u8d26\u53f7"))),L=function(e){function t(s){(0,l.default)(this,t);var o=(0,u.default)(this,e.call(this,s));return o.handleSubmit=function(e){e.preventDefault(),o.state.isVerify?o.props.form.validateFields((function(e,t){e||o.props.dispatch(y.authActions.loginRequest((0,d.default)({},t,{referURL:o.props.referURL})))})):o.setState({verifyBorderColor:"#f5222d"})},o.verifySuccess=function(){o.setState({isVerify:!0,verifyBorderColor:"#e4e4e4"})},o.state={isVerify:!1,verifyBorderColor:"#e4e4e4"},o}return(0,c.default)(t,e),t.prototype.render=function(){var e=this.props.form.getFieldDecorator,t={width:"286px",height:"40px",fontSize:"16px"};return(0,a.default)(h.Form,{onSubmit:this.handleSubmit,className:"login-form"},void 0,(0,a.default)(j,{style:{marginBottom:24}},void 0,e("userId",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7528\u6237\u540d\uff01"}]})((0,a.default)(r.default,{style:t,prefix:(0,a.default)(g.UserOutlined,{style:{color:"rgba(0,0,0,.25)"}}),placeholder:"\u8bf7\u8f93\u5165\u8d26\u53f7",autoComplete:"userid"}))),(0,a.default)(j,{style:{marginBottom:24}},void 0,e("password",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5bc6\u7801!"}]})((0,a.default)(r.default,{style:t,prefix:(0,a.default)(g.LockOutlined,{style:{color:"rgba(0,0,0,.25)"}}),type:"password",placeholder:"\u8bf7\u8f93\u5165\u5bc6\u7801",autoComplete:"current-password"}))),(0,a.default)(j,{style:{marginBottom:16}},void 0,(0,a.default)(b.default,{borderColor:this.state.verifyBorderColor,width:286,height:40,success:this.verifySuccess})),this.props.error&&(0,a.default)(n.default,{message:this.props.error,type:"error",showIcon:!0}),(0,a.default)(j,{style:{marginBottom:16}},void 0,e("remember",{valuePropName:"checked",initialValue:!0})((0,a.default)(i.default,{style:{fontSize:"14px"}},void 0,"\u4fdd\u6301\u767b\u5f55\u72b6\u6001"))),(0,a.default)(j,{},void 0,(0,a.default)(o.default,{style:t,type:"primary",htmlType:"submit",className:"login-form-button",loading:this.props.logining},void 0,"\u767b\u5f55")),A)},t}(p.default.Component);L.defaultProps={logining:!1,error:null};t.default=(0,m.connect)((function(e,t){return{logining:(0,x.selectLogging)(e),error:(0,x.selectError)(e),referURL:f.default.get(t,"location.state.referrer.pathname","")}}))(h.Form.create()(L))},"./src/containers/LoginPage/LoginPage.jsx":function(e,t,s){"use strict";t.__esModule=!0;var o=l(s("./node_modules/babel-runtime/helpers/jsx.js")),i=(l(s("./node_modules/react/index.js")),l(s("./src/containers/LoginPage/LoginForm.jsx"))),n=(l(s("./node_modules/prop-types/index.js")),s("./node_modules/reselect/lib/index.js")),r=s("./node_modules/react-redux/es/index.js"),a=s("./src/redux/selectors/auth.js"),d=s("./src/containers/LoginPage/style.js");function l(e){return e&&e.__esModule?e:{default:e}}var u=(0,o.default)(d.Container,{},void 0,(0,o.default)(d.LoginWrapper,{},void 0,(0,o.default)(d.LoginLeftWrapper,{}),(0,o.default)(d.LoginRightWrapper,{},void 0,(0,o.default)("div",{className:"right__top-wrapper"},void 0,(0,o.default)("div",{className:"right__top-line1"},void 0,"\u60a8\u597d\uff01"),(0,o.default)("div",{className:"right__top-line2"},void 0,"\u6b22\u8fce\u767b\u5f55 ",(0,o.default)("span",{},void 0,"AISWare AI^2")," \u7cfb\u7edf"),(0,o.default)(i.default,{})),(0,o.default)("div",{className:"right__bottom-wrapper"},void 0,(0,o.default)("div",{className:"right__bottom-line1"},void 0,"\xa9 2020 \u79d1\u6280\u63a7\u80a1\u6709\u9650\u516c\u53f8"),(0,o.default)("div",{className:"right__bottom-line2"},void 0,"A Product of "))))),c=(0,n.createStructuredSelector)({isAuthenticated:a.selectIsAuthenticated});t.default=(0,r.connect)(c)((function(e){return e.isAuthenticated?null:u}))},"./src/containers/LoginPage/LoginSimpleVerify/LoginSimpleVerify.jsx":function(e,t,s){"use strict";t.__esModule=!0;var o=c(s("./node_modules/babel-runtime/helpers/jsx.js")),i=c(s("./node_modules/babel-runtime/helpers/classCallCheck.js")),n=c(s("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(s("./node_modules/babel-runtime/helpers/inherits.js")),a=c(s("./node_modules/react/index.js")),d=(c(s("./node_modules/prop-types/index.js")),c(s("./src/containers/LoginPage/LoginSimpleVerify/images/bar.js"))),l=c(s("./src/containers/LoginPage/LoginSimpleVerify/images/success.js")),u=c(s("./src/containers/LoginPage/LoginSimpleVerify/style.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(s){(0,i.default)(this,t);var o=(0,n.default)(this,e.call(this,s));return o.mouseenter=function(){o.isSuccess||o.setState({isMouseEnter:!0})},o.mouseleave=function(){o.isSuccess||o.isMousedown||o.setState({isMouseEnter:!1})},o.mousedown=function(e){o.isSuccess||(o.x1=e.nativeEvent.x,o.isMousedown=!0)},o.mousemove=function(e){if(o.isMousedown&&!o.isSuccess){e.preventDefault(),e.stopPropagation(),o.x2=e.x;var t=o.x2-o.x1;t<0&&(t=0),t>=o.max&&(t=o.max,o.isSuccess=!0,o.props.success&&o.props.success()),o.setState({diff:t})}},o.mouseup=function(){o.isSuccess||(o.isMousedown=!1,o.setState({isMouseEnter:!1,diff:0}))},o.reset=function(){o.isSuccess=!1,o.setState({diff:0}),setTimeout((function(){o.isMousedown=!1,o.setState({isMouseEnter:!1})}),0)},o.state={isMouseEnter:!1,diff:0},o.x1=0,o.x2=0,o.isMousedown=!1,o.isSuccess=!1,o.max=o.props.width-50,o}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){document.body.addEventListener("mousemove",this.mousemove),document.body.addEventListener("mouseup",this.mouseup)},t.prototype.componentWillUnmount=function(){document.body.removeEventListener("mousemove",this.mousemove),document.body.removeEventListener("mouseup",this.mouseup)},t.prototype.render=function(){var e={width:this.props.width,height:this.props.height,border:this.props.borderColor+" 1px solid",backgroundColor:this.props.bgColor,borderRadius:this.props.borderRadius},t={borderRadius:this.props.borderRadius},s={background:"url("+l.default+") no-repeat"},i={borderRadius:this.props.borderRadius,background:this.props.movedColor,left:50-this.props.width,opacity:this.state.isMouseEnter?1:0,transitionDuration:this.state.isMouseEnter&&this.isMousedown?"0s":".3s",transform:"translateX("+this.state.diff+"px)"},n={background:this.props.barBackground,transitionDuration:this.state.isMouseEnter&&this.isMousedown?"0s":".3s",transform:"translateX("+this.state.diff+"px)"},r={opacity:this.isSuccess?1:0,transitionDuration:this.state.isMouseEnter&&this.isMousedown?"0s":".3s"};return(0,o.default)(u.default,{style:e,className:"simple-verify"},void 0,(0,o.default)("div",{className:"verify-tips"},void 0,this.props.tips),(0,o.default)("div",{style:t,className:"verify-box"},void 0,(0,o.default)("div",{style:i,className:"veriry-slide"})),(0,o.default)("div",{className:"verify-bar",onMouseEnter:this.mouseenter,onMouseLeave:this.mouseleave,onMouseDown:this.mousedown},void 0,(0,o.default)("div",{style:n,className:"icon"})),(0,o.default)("div",{style:r,className:"verify-success-tips"},void 0,(0,o.default)("span",{style:s}),this.props.successTips))},t}(a.default.Component);p.defaultProps={width:340,height:36,borderColor:"#E4E4E4",bgColor:"#F2F3F5",borderRadius:4,tips:"\u8bf7\u6309\u4f4f\u6ed1\u5757\uff0c\u62d6\u52a8\u5230\u6700\u53f3\u8fb9",barBackground:"url("+d.default+")",movedColor:"#31c971",successTips:"\u5b8c\u6210\u9a8c\u8bc1",successIcon:l.default},t.default=p},"./src/containers/LoginPage/LoginSimpleVerify/images/bar.js":function(e,t,s){"use strict";t.__esModule=!0,t.default="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAdCAYAAADRoo4JAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGl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Fh04Ljj0Y/NNn6G6qr5VNHpZbQLekaLBVNS0M92E0cxyjGoPyjNlMPW+nHxAqG9XBTJwFrJ4oNVpCMy9v6N8K06iTQhBVMxqx/hIFOn7Tg3KVpBXmh1DeRGrYCzhf7kNtDWltmWJbztODcteGe/L+E6oBK8GeHCjMrIKhyCUBun3gO+op0dXWt2u32Tuj4BcU/LyiLJ2qqgWgrl1xt4clw9U6SKm3wd4jsChwazh4/PnHxPwEGAEcKqqR0b1NgAAAAAElFTkSuQmCC"},"./src/containers/LoginPage/LoginSimpleVerify/images/success.js":function(e,t,s){"use strict";t.__esModule=!0,t.default="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAB1UlEQVQ4T62UMaiPURjGf08ZDHegKMOVlIFiuHGLMlBuUgaDkuEW03UHpQxXmcSNQRkNBooyIpkoREkM1yDEQBluXXUNBoN69Oj8b+f/3e/7X8P/1Dd855x+7/M+7/seMeSlIfMYCLS9CtgJbAB+AV8kfRskohVoew1wHjgBrAN+ANlLgLfAJUkP2sDLgLa3Aw+BP8AF4L6kqMP2VmAKOAXcAaYl5d7S6gPaHgXeAC+BSUm/21TY3lWCJtj0IOC9ktpEM3ITbHs38AI4IOl573xJoe0twGdgTNJcl/GlUAclPbJ9ExiVNNEGPJsiSNqxAuwusBfYDETlY2Btz+da4XVgRNJkKUDMn5P0uvynwj3YfkkfbacDFoBt+c+9GngjbSHpZAFcBM4A+4B3TVi5k1ZarG2qgTPAUUnjvZRtJ8jh0nup7D9l1Xn20hXrJaVX+xTGj1fARknfu9Ks/bV9ORlI2rOsKAUQ4FdJxysV8S7e/mzA0rMfgNOSbnUBk8JT4Iqk2QHVzmynuvN1y/SlXCk6AtwGngHnJL2vzlYDxzLLQGw51FTe9Thknq9lCmJB+QLLftZVYLZtmlZ6vjI9aeJN5fn6BDzpmvHWlLt8+9/9ob/YfwHfuLkV7uJ9fwAAAABJRU5ErkJggg=="},"./src/containers/LoginPage/LoginSimpleVerify/style.js":function(e,t,s){"use strict";t.__esModule=!0;var o,i=s("./node_modules/styled-components/dist/styled-components.browser.esm.js");var n=((o=i)&&o.__esModule?o:{default:o}).default.div.withConfig({displayName:"style__Wrapper",componentId:"sc-11f6m1f-0"})(["box-sizing:border-box;line-height:1;position:relative;-webkit-user-select:none;.verify-tips{widows:100%;height:100%;color:#9ca0a7;display:flex;flex-direction:row;justify-content:center;align-items:center;font-size:14px;pointer-events:none;}.verify-box{position:absolute;left:-1px;top:-1px;width:calc(100% + 2px);height:calc(100% + 2px);overflow:hidden;}.veriry-slide{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;transition:opacity 0.1s linear,transform 0.3s ease;}.verify-bar{position:absolute;left:-1px;top:-1px;width:50px;height:100%;cursor:pointer;display:flex;flex-direction:row;justify-content:center;align-items:center;z-index:1;transition:transform 0.3s ease;.icon{width:44px;height:29px;box-shadow:rgba(#717277,0.3) 0 3px 10px;border-radius:4px;}}.verify-success-tips{position:absolute;left:-1px;top:-1px;width:calc(100% + 2px);height:calc(100% + 2px);color:#fff;display:flex;flex-direction:row;justify-content:center;align-items:center;font-size:14px;opacity:0;transition:opacity 0.1s linear;pointer-events:none;span{width:20px;height:20px;margin-right:8px;}}"]);t.default=n},"./src/containers/LoginPage/style.js":function(e,t,s){"use strict";t.__esModule=!0,t.LoginRightWrapper=t.LoginLeftWrapper=t.LoginWrapper=t.Container=void 0;var o=n(s("./node_modules/styled-components/dist/styled-components.browser.esm.js")),i=n(s("./src/styles/images/login/BG@2x.png"));function n(e){return e&&e.__esModule?e:{default:e}}t.Container=o.default.div.withConfig({displayName:"style__Container",componentId:"sc-14jj4ky-0"})(["width:100%;display:flex;flex:1 1 auto;"]),t.LoginWrapper=o.default.div.withConfig({displayName:"style__LoginWrapper",componentId:"sc-14jj4ky-1"})(["display:flex;width:100%;"]),t.LoginLeftWrapper=o.default.div.withConfig({displayName:"style__LoginLeftWrapper",componentId:"sc-14jj4ky-2"})(["background:url(",") no-repeat;height:100%;width:100%;flex-grow:grow;background-size:cover;background-color:#fff;"],i.default),t.LoginRightWrapper=o.default.div.withConfig({displayName:"style__LoginRightWrapper",componentId:"sc-14jj4ky-3"})(["display:flex;width:560px;flex-direction:column;align-items:center;justify-content:space-between;padding:10% 137px 57px 137px;height:100%;background:#fff;.right__top-wrapper{font-size:16px;}.right__top-line1{opacity:0.85;font-family:PingFangSC-Medium;font-size:26px;color:#000000;line-height:36px;}.right__top-line2{font-family:PingFangSC-Medium;font-size:16px;color:#000000;line-height:36px;span{color:#147bd1;font-family:arial;}}.right__bottom-wrapper{display:flex;flex-direction:column;justify-content:center;align-items:center;}.right__bottom-line1{opacity:0.45;font-family:PingFangSC-Regular;font-size:12px;color:#000000;line-height:20px;}.right__bottom-line2{font-family:PingFangSC-Regular;font-size:12px;color:#8c8c8c;letter-spacing:0;}.login-form{margin-top:24px;}.login-no-account{text-align:center;}"])}}]);