|
|
@ -56,39 +56,38 @@ const Login = props => { |
|
|
|
|
|
|
|
return ( |
|
|
|
<div className='login'> |
|
|
|
<div className='left'></div> |
|
|
|
{/* <div className='left'></div> */} |
|
|
|
<div className='right'> |
|
|
|
<div className='loginBox'> |
|
|
|
<h1>四好公路</h1> |
|
|
|
<Form onKeyDown={enterHandler}> |
|
|
|
<h1>南昌县智慧交通监管系统</h1> |
|
|
|
<Form onKeyDown={enterHandler}> |
|
|
|
<FormItem> |
|
|
|
<div className='loginFormTit'>用户名</div> |
|
|
|
<Input |
|
|
|
className='loginInp' |
|
|
|
type="text" |
|
|
|
value={username} |
|
|
|
maxlength={11} |
|
|
|
onChange={e => { |
|
|
|
setUserName(e.target.value) |
|
|
|
setInputChanged(true) |
|
|
|
}} |
|
|
|
/> |
|
|
|
</FormItem> |
|
|
|
<div className='loginFormTit'>密码</div> |
|
|
|
<FormItem> |
|
|
|
<Input |
|
|
|
className='loginInp' |
|
|
|
type="password" |
|
|
|
value={password} |
|
|
|
|
|
|
|
<FormItem> |
|
|
|
<div className='loginFormTit'>用户名</div> |
|
|
|
<Input |
|
|
|
className='loginInp' |
|
|
|
type="text" |
|
|
|
value={username} |
|
|
|
maxlength={11} |
|
|
|
onChange={e => { |
|
|
|
setUserName(e.target.value) |
|
|
|
setInputChanged(true) |
|
|
|
}} |
|
|
|
/> |
|
|
|
</FormItem> |
|
|
|
<div className='loginFormTit'>密码</div> |
|
|
|
<FormItem> |
|
|
|
<Input |
|
|
|
className='loginInp' |
|
|
|
type="password" |
|
|
|
value={password} |
|
|
|
|
|
|
|
onChange={e => { |
|
|
|
setPassword(e.target.value) |
|
|
|
setInputChanged(true) |
|
|
|
}} |
|
|
|
/> |
|
|
|
</FormItem> |
|
|
|
</Form> |
|
|
|
onChange={e => { |
|
|
|
setPassword(e.target.value) |
|
|
|
setInputChanged(true) |
|
|
|
}} |
|
|
|
/> |
|
|
|
</FormItem> |
|
|
|
</Form> |
|
|
|
<Button type="primary" className='loginBtn' loading={isRequesting} onClick={handleLogin}>登录</Button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|