Commit f4a85815 authored by 周宏民's avatar 周宏民

pref: 瑞云登录页添加验证码登录

parent eeceeadc
Pipeline #94476 waiting for manual action with stages
...@@ -53,6 +53,8 @@ const imgList = [ ...@@ -53,6 +53,8 @@ const imgList = [
}, },
]; ];
const Login = forwardRef((props, _ref) => { const Login = forwardRef((props, _ref) => {
const isValidate = (window?.globalConfig?.isVerification || 0) * 1 === 1;
// const isValidate = true;
const sliVerify = useRef(); const sliVerify = useRef();
const loginFormRef = useRef(); const loginFormRef = useRef();
const formRef = useRef(null); const formRef = useRef(null);
...@@ -73,7 +75,9 @@ const Login = forwardRef((props, _ref) => { ...@@ -73,7 +75,9 @@ const Login = forwardRef((props, _ref) => {
/* eslint-disable */ /* eslint-disable */
action && action &&
(type === 'Account' (type === 'Account'
? action.loginHandler(values.userName, values.password, null, autoLogin, sliVerify) ? isValidate
? action.loginHandlerValidate(values.userName, values.password, null, autoLogin, 'none', values?.validate)
: action.loginHandler(values.userName, values.password, null, autoLogin, sliVerify)
: type === 'Mobile' : type === 'Mobile'
? action.phoneLoginFormHandler(values.mobile, values.captcha) ? action.phoneLoginFormHandler(values.mobile, values.captcha)
: null); : null);
...@@ -135,7 +139,7 @@ const Login = forwardRef((props, _ref) => { ...@@ -135,7 +139,7 @@ const Login = forwardRef((props, _ref) => {
updateLoginMode: props.updateLoginMode, updateLoginMode: props.updateLoginMode,
welcome: null, welcome: null,
}; };
return <Account {...params} />; return <Account {...params} isValidate={isValidate} />;
}; };
/* eslint-disable */ /* eslint-disable */
...@@ -276,7 +280,7 @@ const Login = forwardRef((props, _ref) => { ...@@ -276,7 +280,7 @@ const Login = forwardRef((props, _ref) => {
<div className={classnames(styles['wrapper'])}> <div className={classnames(styles['wrapper'])}>
<QueueAnim type="scale" duration={1000}> <QueueAnim type="scale" duration={1000}>
<div key={'innerwrapper'} className={classnames(styles['inner-wrapper'])}> <div key={'innerwrapper'} className={classnames(styles['inner-wrapper'])}>
<div className={styles['inner-center']}> <div className={styles['inner-center']} style={{ height: isValidate ? '400px' : '' }}>
<div className={styles['welcome-title']}> <div className={styles['welcome-title']}>
<img src={icon} /> <img src={icon} />
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment