Commit 3009a0fc authored by Sixiang_Zzb's avatar Sixiang_Zzb

样式污染修复

parent 8d6884c9
...@@ -28,6 +28,23 @@ ...@@ -28,6 +28,23 @@
padding: 60px 80px; padding: 60px 80px;
box-shadow: 1px 2px 20px 0px #ccc; box-shadow: 1px 2px 20px 0px #ccc;
border-radius: 30px; border-radius: 30px;
:global {
.ant-form-item-has-error .ant-input,
.ant-form-item-has-error .ant-input-affix-wrapper,
.ant-form-item-has-error .ant-input:hover,
.ant-form-item-has-error .ant-input-affix-wrapper:hover {
background: transparent !important;
}
}
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
-webkit-text-fill-color: #6a912cff !important;
transition: background-color 50000s ease-in-out 0s;
}
} }
.lang { .lang {
...@@ -63,6 +80,23 @@ ...@@ -63,6 +80,23 @@
padding: 60px 80px; padding: 60px 80px;
box-shadow: 1px 2px 20px 0px #ccc; box-shadow: 1px 2px 20px 0px #ccc;
border-radius: 30px; border-radius: 30px;
:global {
.ant-form-item-has-error .ant-input,
.ant-form-item-has-error .ant-input-affix-wrapper,
.ant-form-item-has-error .ant-input:hover,
.ant-form-item-has-error .ant-input-affix-wrapper:hover {
background: transparent !important;
}
}
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
-webkit-text-fill-color: #6a912cff !important;
transition: background-color 50000s ease-in-out 0s;
}
} }
} }
......
...@@ -35,29 +35,6 @@ const UserLayout: React.FC<UserLayoutProps> = (props) => { ...@@ -35,29 +35,6 @@ const UserLayout: React.FC<UserLayoutProps> = (props) => {
...props, ...props,
}); });
// useEffect(() => {
// console.log(location.pathname);
// if (location.pathname === '/user/login2') {
// console.log('更改ui');
// dispatch &&
// dispatch({
// type: 'login/goResetPwd',
// payload: {
// result: true,
// },
// });
// } else {
// dispatch &&
// dispatch({
// type: 'login/goResetPwd',
// payload: {
// result: false,
// },
// });
// }
// }, [location]);
console.log(result);
return ( return (
<div className={styles.container + ' ' + (result ? styles.active : '')}> <div className={styles.container + ' ' + (result ? styles.active : '')}>
<div className={styles.contain}> <div className={styles.contain}>
......
...@@ -58,7 +58,6 @@ const Login: React.FC<LoginProps> = (props) => { ...@@ -58,7 +58,6 @@ const Login: React.FC<LoginProps> = (props) => {
const res = await ValidateCaptcha({ account: values.userName, code: values.code }); const res = await ValidateCaptcha({ account: values.userName, code: values.code });
if (res.error_code === '0000') { if (res.error_code === '0000') {
console.log('通过跳转到修改密码页面');
dispatch({ dispatch({
type: 'login/goResetPwd', type: 'login/goResetPwd',
payload: userName, payload: userName,
......
...@@ -15,13 +15,6 @@ const Login2 = (props: { ...@@ -15,13 +15,6 @@ const Login2 = (props: {
userStatus: number; userStatus: number;
}) => { }) => {
const { history, result, dispatch, userName, userStatus } = props; const { history, result, dispatch, userName, userStatus } = props;
console.log(userName);
// const [resetPwd, setResetPwd] = useState(false);
// useEffect(() => {
// setResetPwd(result);
// }, [result]);
useEffect(() => { useEffect(() => {
if (!userName) { if (!userName) {
......
...@@ -45,14 +45,6 @@ ...@@ -45,14 +45,6 @@
margin-bottom: 20px; margin-bottom: 20px;
} }
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
-webkit-text-fill-color: #6a912cff !important;
transition: background-color 50000s ease-in-out 0s;
}
.input { .input {
border: none; border: none;
background: none; background: none;
...@@ -185,14 +177,6 @@ select:-webkit-autofill { ...@@ -185,14 +177,6 @@ select:-webkit-autofill {
} }
} }
} }
:global {
.ant-form-item-has-error .ant-input,
.ant-form-item-has-error .ant-input-affix-wrapper,
.ant-form-item-has-error .ant-input:hover,
.ant-form-item-has-error .ant-input-affix-wrapper:hover {
background: transparent !important;
}
}
.passBtn { .passBtn {
margin-top: 80px; margin-top: 80px;
......
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