Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
60590ab7
Commit
60590ab7
authored
Dec 09, 2020
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改滑块验证码的默认显示问题
parent
838f3033
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
src/modules/personalInfo/ChangePhoneModal.tsx
+8
-3
src/modules/personalInfo/IdentificationModal.tsx
+5
-2
No files found.
src/modules/personalInfo/ChangePhoneModal.tsx
View file @
60590ab7
...
...
@@ -7,7 +7,12 @@ import CheckBeforeSendCode from '@/components/CheckBeforeSendCode';
interface
changePhoneModalProps
{
onClose
:()
=>
void
,
onConfirm
:
any
onConfirm
:
any
,
}
interface
checkObjectType
{
reset
:()
=>
void
}
function
ChangePhoneModal
(
props
:
changePhoneModalProps
)
{
...
...
@@ -20,7 +25,7 @@ function ChangePhoneModal(props: changePhoneModalProps) {
const
[
phoneVerifyError
,
setPhoneVerifyError
]
=
useState
(
false
);
const
[
errorMessageText
,
setErrorMessageText
]
=
useState
(
''
);
const
[
openCheck
,
setOpenCheck
]
=
useState
(
false
);
//滑块验证是否是打开状态
const
[
checkObject
,
setCheckObject
]
=
useState
({}
);
const
[
checkObject
,
setCheckObject
]
=
useState
<
checkObjectType
|
undefined
>
(
);
useEffect
(()
=>
{
})
...
...
@@ -39,7 +44,7 @@ function ChangePhoneModal(props: changePhoneModalProps) {
setNewPhoneError
(
true
);
return
;
}
!
_
.
isEmpty
(
checkObject
)
&&
checkObject
.
reset
();
!
_
.
isEmpty
(
checkObject
)
&&
checkObject
&&
checkObject
.
reset
();
setOpenCheck
(
true
);
}
function
handleSendSMSCode
(
checkData
:
any
){
...
...
src/modules/personalInfo/IdentificationModal.tsx
View file @
60590ab7
...
...
@@ -9,6 +9,9 @@ interface IdentificationModalProps {
phone
:
String
,
onConfirm
:()
=>
void
}
interface
checkObjectType
{
reset
:()
=>
void
}
function
IdentificationModal
(
props
:
IdentificationModalProps
)
{
const
{
onClose
,
phone
,
onConfirm
}
=
props
;
...
...
@@ -19,7 +22,7 @@ function IdentificationModal(props: IdentificationModalProps) {
const
[
errorMessageText
,
setErrorMessageText
]
=
useState
(
''
);
const
[
openCheck
,
setOpenCheck
]
=
useState
(
false
);
//滑块验证是否是打开状态
const
[
checkObject
,
setCheckObject
]
=
useState
({}
);
const
[
checkObject
,
setCheckObject
]
=
useState
<
checkObjectType
|
undefined
>
(
);
useEffect
(()
=>
{
})
...
...
@@ -76,7 +79,7 @@ function IdentificationModal(props: IdentificationModalProps) {
}
function
checkSend
()
{
if
(
waitStatus
)
return
;
!
_
.
isEmpty
(
checkObject
)
&&
checkObject
.
reset
();
!
_
.
isEmpty
(
checkObject
)
&&
checkObject
&&
checkObject
.
reset
();
setOpenCheck
(
true
);
}
return
(
...
...
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