Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maple
TOSTUMI
Commits
3009a0fc
Commit
3009a0fc
authored
Jan 19, 2021
by
Sixiang_Zzb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式污染修复
parent
8d6884c9
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
47 deletions
+34
-47
UserLayout.less
src/layouts/UserLayout.less
+34
-0
UserLayout.tsx
src/layouts/UserLayout.tsx
+0
-23
index.tsx
src/pages/user/login/index.tsx
+0
-1
login2.tsx
src/pages/user/login/login2.tsx
+0
-7
style.less
src/pages/user/login/style.less
+0
-16
No files found.
src/layouts/UserLayout.less
View file @
3009a0fc
...
...
@@ -28,6 +28,23 @@
padding: 60px 80px;
box-shadow: 1px 2px 20px 0px #ccc;
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 {
...
...
@@ -63,6 +80,23 @@
padding: 60px 80px;
box-shadow: 1px 2px 20px 0px #ccc;
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;
}
}
}
...
...
src/layouts/UserLayout.tsx
View file @
3009a0fc
...
...
@@ -35,29 +35,6 @@ const UserLayout: React.FC<UserLayoutProps> = (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
(
<
div
className=
{
styles
.
container
+
' '
+
(
result
?
styles
.
active
:
''
)
}
>
<
div
className=
{
styles
.
contain
}
>
...
...
src/pages/user/login/index.tsx
View file @
3009a0fc
...
...
@@ -58,7 +58,6 @@ const Login: React.FC<LoginProps> = (props) => {
const
res
=
await
ValidateCaptcha
({
account
:
values
.
userName
,
code
:
values
.
code
});
if
(
res
.
error_code
===
'0000'
)
{
console
.
log
(
'通过跳转到修改密码页面'
);
dispatch
({
type
:
'login/goResetPwd'
,
payload
:
userName
,
...
...
src/pages/user/login/login2.tsx
View file @
3009a0fc
...
...
@@ -15,13 +15,6 @@ const Login2 = (props: {
userStatus
:
number
;
})
=>
{
const
{
history
,
result
,
dispatch
,
userName
,
userStatus
}
=
props
;
console
.
log
(
userName
);
// const [resetPwd, setResetPwd] = useState(false);
// useEffect(() => {
// setResetPwd(result);
// }, [result]);
useEffect
(()
=>
{
if
(
!
userName
)
{
...
...
src/pages/user/login/style.less
View file @
3009a0fc
...
...
@@ -45,14 +45,6 @@
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 {
border: none;
background: none;
...
...
@@ -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 {
margin-top: 80px;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment