From 73033b22ab939858d8c13b24633dd99d0b96940e Mon Sep 17 00:00:00 2001 From: landaiqing <3517283258@qq.com> Date: Sun, 5 May 2024 02:53:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E5=9B=BE=E5=BD=A2?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/User/Login/index.module.less | 5 +- src/views/User/Login/index.tsx | 97 +++++++++++--------------- src/views/User/Register/index.tsx | 42 +---------- 3 files changed, 44 insertions(+), 100 deletions(-) diff --git a/src/views/User/Login/index.module.less b/src/views/User/Login/index.module.less index e65d9f7..1709a71 100644 --- a/src/views/User/Login/index.module.less +++ b/src/views/User/Login/index.module.less @@ -133,10 +133,11 @@ } .login_form { - // height: 100%; - // float: left; + //height: 100%; + //float: left; margin: 0; padding: 0 32px; + width: 400px; } .mp_tips { diff --git a/src/views/User/Login/index.tsx b/src/views/User/Login/index.tsx index 33fa63b..e842174 100644 --- a/src/views/User/Login/index.tsx +++ b/src/views/User/Login/index.tsx @@ -1,5 +1,4 @@ import { - BarcodeOutlined, GithubOutlined, GitlabOutlined, LockOutlined, @@ -30,24 +29,8 @@ const iconStyles: CSSProperties = { } export default observer(() => { - // @ts-ignore - const [generateMpRegCodeData, setGenerateMpRegCodeData] = useState({}) const [form] = Form.useForm() - // @ts-ignore - const [base64Code, setBase64Code] = useState({ data: '' }) const [open, setOpen] = useState(false) - const clickGetBase64CodeMethod = async () => { - await getBase64CodeMethod() - } - const CodeImg = ( - - ) - const getBase64CodeMethod = async () => {} const items = [ { @@ -171,26 +154,26 @@ export default observer(() => { }, ]} /> - , - autoComplete: 'off', - }} - placeholder='请输入图形验证码' - rules={[ - { - required: true, - message: '请输入图形验证码!', - }, - { - pattern: /^[a-zA-Z0-9]{5}$/, - message: '图形验证码格式不正确', - }, - ]} - /> + {/*,*/} + {/* autoComplete: 'off',*/} + {/* }}*/} + {/* placeholder='请输入图形验证码'*/} + {/* rules={[*/} + {/* {*/} + {/* required: true,*/} + {/* message: '请输入图形验证码!',*/} + {/* },*/} + {/* {*/} + {/* pattern: /^[a-zA-Z0-9]{5}$/,*/} + {/* message: '图形验证码格式不正确',*/} + {/* },*/} + {/* ]}*/} + {/*/>*/} )} {loginType === 'phone' && ( @@ -214,26 +197,26 @@ export default observer(() => { }, ]} /> - , - autoComplete: 'off', - }} - placeholder='请输入图形验证码' - rules={[ - { - required: true, - message: '请输入图形验证码!', - }, - { - pattern: /^[a-zA-Z0-9]{5}$/, - message: '图形验证码格式不正确', - }, - ]} - /> + {/*,*/} + {/* autoComplete: 'off',*/} + {/* }}*/} + {/* placeholder='请输入图形验证码'*/} + {/* rules={[*/} + {/* {*/} + {/* required: true,*/} + {/* message: '请输入图形验证码!',*/} + {/* },*/} + {/* {*/} + {/* pattern: /^[a-zA-Z0-9]{5}$/,*/} + {/* message: '图形验证码格式不正确',*/} + {/* },*/} + {/* ]}*/} + {/*/>*/} { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-expect-error - const [generateMpRegCodeData, setGenerateMpRegCodeData] = useState({}) const [form] = Form.useForm() - // @ts-ignore - const [base64Code, setBase64Code] = useState({ data: '' }) - const clickGetBase64CodeMethod = async () => { - await getBase64CodeMethod() - } - const CodeImg = ( - - ) - const getBase64CodeMethod = async () => {} - const items = [ { key: 'phone', @@ -175,28 +157,6 @@ export default observer(() => { }), ]} /> - - , - autoComplete: 'off', - }} - placeholder='请输入图形验证码' - rules={[ - { - required: true, - message: '请输入图形验证码!', - }, - { - pattern: /^[a-zA-Z0-9]{5}$/, - message: '图形验证码格式不正确!', - }, - ]} - /> -