Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
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
shenshaokai
jinfa-platform
Commits
3f2fbd4f
Commit
3f2fbd4f
authored
Oct 14, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改修改密码bug
parent
583ed58f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
20 deletions
+36
-20
index.less
...es/accountSetting/components/EditDataComponent/index.less
+3
-4
index.tsx
...ges/accountSetting/components/EditDataComponent/index.tsx
+2
-2
index.less
...pages/accountSetting/components/GetCaptchaCode/index.less
+15
-0
index.tsx
src/pages/accountSetting/components/GetCaptchaCode/index.tsx
+12
-6
EmailVerifyPanel.tsx
...Setting/components/VerifyPanel/Panel/EmailVerifyPanel.tsx
+1
-3
PhoneVerifyPanel.tsx
...Setting/components/VerifyPanel/Panel/PhoneVerifyPanel.tsx
+2
-4
index.tsx
src/pages/accountSetting/index.tsx
+1
-1
No files found.
src/pages/accountSetting/components/EditDataComponent/index.less
View file @
3f2fbd4f
...
@@ -29,6 +29,6 @@
...
@@ -29,6 +29,6 @@
}
}
}
}
.captchaBtn {
// .captchaBtn {
width: 102px;
// width: 102px;
}
// }
\ No newline at end of file
src/pages/accountSetting/components/EditDataComponent/index.tsx
View file @
3f2fbd4f
...
@@ -82,7 +82,7 @@ const EditDataComponent = (props) => {
...
@@ -82,7 +82,7 @@ const EditDataComponent = (props) => {
const
postData
=
(
const
postData
=
(
props
.
type
==
'phone'
props
.
type
==
'phone'
?
{
?
{
countryCode
:
form
.
getFieldValue
(
'country'
)
,
countryCode
:
`+
${
form
.
getFieldValue
(
'country'
)}
`
,
phone
:
form
.
getFieldValue
(
'newPhone'
)
phone
:
form
.
getFieldValue
(
'newPhone'
)
}
}
:
{
email
:
form
.
getFieldValue
(
'email'
)
}
:
{
email
:
form
.
getFieldValue
(
'email'
)
}
...
@@ -206,7 +206,7 @@ const EditDataComponent = (props) => {
...
@@ -206,7 +206,7 @@ const EditDataComponent = (props) => {
:
<>
:
<>
<
Form
.
Item
label=
"新的手机号码"
>
<
Form
.
Item
label=
"新的手机号码"
>
<
Row
gutter=
{
10
}
>
<
Row
gutter=
{
10
}
>
<
Col
span=
{
4
}
>
<
Col
span=
{
6
}
>
<
Form
.
Item
<
Form
.
Item
name=
"country"
name=
"country"
noStyle
noStyle
...
...
src/pages/accountSetting/components/GetCaptchaCode/index.less
0 → 100644
View file @
3f2fbd4f
.btn {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
height: 32px;
border: 1px solid #d9d9d9;
width: 100%;
margin-right: 0px;
cursor: pointer;
}
.disabled {
background-color: #f5f5f5;
}
src/pages/accountSetting/components/GetCaptchaCode/index.tsx
View file @
3f2fbd4f
import
React
,
{
useState
,
useEffect
,
useRef
,
useCallback
}
from
'react'
;
import
React
,
{
useState
,
useEffect
,
useRef
,
useCallback
}
from
'react'
;
import
{
Button
}
from
'antd'
;
import
{
Button
}
from
'antd'
;
import
styles
from
'./index.less'
;
import
cx
from
'classnames'
;
const
GetCaptchaCode
=
(
props
)
=>
{
const
GetCaptchaCode
=
(
props
)
=>
{
const
{
disable
=
false
}
=
props
;
const
{
disable
=
false
}
=
props
;
...
@@ -28,23 +30,28 @@ const GetCaptchaCode = (props) => {
...
@@ -28,23 +30,28 @@ const GetCaptchaCode = (props) => {
}
}
},
[
time
])
},
[
time
])
const
isDisabled
=
disable
||
time
>
0
const
handleClick
=
useCallback
(()
=>
{
const
handleClick
=
useCallback
(()
=>
{
if
(
isDisabled
)
{
return
;
}
const
hasFn
=
!!
props
.
getCode
;
const
hasFn
=
!!
props
.
getCode
;
if
(
hasFn
)
{
if
(
hasFn
)
{
props
.
getCode
()
props
.
getCode
()
setTime
(
59
)
setTime
(
59
)
}
}
},
[])
},
[
isDisabled
])
return
(
return
(
<
Button
disabled=
{
disable
||
!!
time
}
onClick=
{
handleClick
}
style=
{
{
width
:
'100%'
}
}
>
<
div
onClick=
{
handleClick
}
className=
{
cx
(
styles
.
btn
,
{[
styles
.
disabled
]:
isDisabled
})
}
style=
{
{
width
:
'100%'
}
}
>
{
{
time
time
?
`${time} s`
?
`${time} s`
:
'获取验证码'
:
'获取验证码'
}
}
</
Button
>
</
div
>
)
)
}
}
export
default
GetCaptchaCode
export
default
GetCaptchaCode
\ No newline at end of file
src/pages/accountSetting/components/VerifyPanel/Panel/EmailVerifyPanel.tsx
View file @
3f2fbd4f
...
@@ -113,9 +113,7 @@ const EmailVerifyPanel = (props) => {
...
@@ -113,9 +113,7 @@ const EmailVerifyPanel = (props) => {
</
Form
.
Item
>
</
Form
.
Item
>
</
Col
>
</
Col
>
<
Col
span=
{
6
}
>
<
Col
span=
{
6
}
>
<
div
style=
{
{
width
:
'102px'
}
}
>
<
GetCaptchaCode
getCode=
{
getCode
}
/>
<
GetCaptchaCode
getCode=
{
getCode
}
/>
</
div
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
</
Form
.
Item
>
</
Form
.
Item
>
...
...
src/pages/accountSetting/components/VerifyPanel/Panel/PhoneVerifyPanel.tsx
View file @
3f2fbd4f
...
@@ -115,9 +115,7 @@ const PhoneVerifyPanel: React.FC<IProps> = (props) => {
...
@@ -115,9 +115,7 @@ const PhoneVerifyPanel: React.FC<IProps> = (props) => {
</
Form
.
Item
>
</
Form
.
Item
>
</
Col
>
</
Col
>
<
Col
span=
{
6
}
>
<
Col
span=
{
6
}
>
<
div
style=
{
{
width
:
'102px'
}
}
>
<
GetCaptchaCode
getCode=
{
getCode
}
/>
<
GetCaptchaCode
getCode=
{
getCode
}
/>
</
div
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
</
Form
.
Item
>
</
Form
.
Item
>
...
@@ -128,7 +126,7 @@ const PhoneVerifyPanel: React.FC<IProps> = (props) => {
...
@@ -128,7 +126,7 @@ const PhoneVerifyPanel: React.FC<IProps> = (props) => {
:
null
:
null
}
}
{
{
visible
!
visible
?
<>
?
<>
<
EditDataComponent
type=
{
pageType
}
form=
{
form
}
/>
<
EditDataComponent
type=
{
pageType
}
form=
{
form
}
/>
<
Form
.
Item
{
...
tailLayout
}
>
<
Form
.
Item
{
...
tailLayout
}
>
...
...
src/pages/accountSetting/index.tsx
View file @
3f2fbd4f
...
@@ -28,7 +28,7 @@ const AccountSetting = () => {
...
@@ -28,7 +28,7 @@ const AccountSetting = () => {
return
(
return
(
<
Col
xxl=
{
12
}
xl=
{
12
}
lg=
{
24
}
md=
{
24
}
sm=
{
24
}
xs=
{
24
}
key=
{
item
}
>
<
Col
xxl=
{
12
}
xl=
{
12
}
lg=
{
24
}
md=
{
24
}
sm=
{
24
}
xs=
{
24
}
key=
{
item
}
>
<
TypeVerify
<
TypeVerify
type=
{
item
}
type=
{
item
as
'phone'
}
phone=
{
account
.
phone
}
phone=
{
account
.
phone
}
email=
{
account
.
email
}
email=
{
account
.
email
}
paycode=
{
account
.
hasPayPassword
}
paycode=
{
account
.
hasPayPassword
}
...
...
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