|
|
@@ -7,6 +7,7 @@ import styles from './index.module.scss'; |
|
|
|
import { login } from '@root/actions/app'; |
|
|
|
import { useDispatch } from 'react-redux'; |
|
|
|
import { isReqSuccess } from '@root/utils/tool'; |
|
|
|
import Page from '@root/components/Page'; |
|
|
|
|
|
|
|
const inputField = setter => ({ detail: { value } }) => setter(value); |
|
|
|
|
|
|
@@ -37,7 +38,7 @@ export default function Login() { |
|
|
|
}, [account, password]) |
|
|
|
|
|
|
|
return ( |
|
|
|
<View className={styles.main}> |
|
|
|
<Page className={styles.main} wrapperClassName={styles.page}> |
|
|
|
<Text className={styles.logo}>LOCKING</Text> |
|
|
|
<YInput wrapperClassName={styles.inpWrapper} placeholder="请输入手机号或账号" |
|
|
|
value={account} |
|
|
@@ -53,6 +54,6 @@ export default function Login() { |
|
|
|
{errText ? <Text>{errText}</Text>: null } |
|
|
|
</View> |
|
|
|
<AtButton className={styles.button} type="primary" onClick={onLogin}>登入</AtButton> |
|
|
|
</View> |
|
|
|
</Page> |
|
|
|
) |
|
|
|
} |