Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-school-app
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
wx-school-app
Commits
c2cf03ae
Commit
c2cf03ae
authored
Mar 06, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加短信验证码校验和提示
parent
22320dc2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
Register.tsx
src/pages/Register/Register.tsx
+8
-1
ResetPwd.tsx
src/pages/ResetPwd/ResetPwd.tsx
+1
-1
No files found.
src/pages/Register/Register.tsx
View file @
c2cf03ae
...
@@ -89,7 +89,7 @@ class Register extends Component {
...
@@ -89,7 +89,7 @@ class Register extends Component {
}
}
validateRegisterEntity
():
boolean
{
validateRegisterEntity
():
boolean
{
const
{
name
,
cellphone
,
pwd
,
checkPwd
}
=
this
.
state
;
const
{
name
,
cellphone
,
vcode
,
pwd
,
checkPwd
}
=
this
.
state
;
const
{
const
{
userinfo
:
{
areaId
},
userinfo
:
{
areaId
},
}
=
this
.
props
;
}
=
this
.
props
;
...
@@ -107,6 +107,13 @@ class Register extends Component {
...
@@ -107,6 +107,13 @@ class Register extends Component {
});
});
return
false
;
return
false
;
}
}
if
(
!
vcode
||
vcode
.
length
!==
6
)
{
Taro
.
showToast
({
title
:
'请输入6位验证码'
,
icon
:
'none'
,
});
return
false
;
}
if
(
!
pwd
)
{
if
(
!
pwd
)
{
Taro
.
showToast
({
Taro
.
showToast
({
title
:
'请输入密码'
,
title
:
'请输入密码'
,
...
...
src/pages/ResetPwd/ResetPwd.tsx
View file @
c2cf03ae
...
@@ -71,7 +71,7 @@ class ResetPwd extends Component {
...
@@ -71,7 +71,7 @@ class ResetPwd extends Component {
}
}
if
(
!
vcode
||
vcode
.
length
!==
6
)
{
if
(
!
vcode
||
vcode
.
length
!==
6
)
{
Taro
.
showToast
({
Taro
.
showToast
({
title
:
'请输入验证码'
,
title
:
'请输入
6位
验证码'
,
icon
:
'none'
,
icon
:
'none'
,
});
});
return
false
;
return
false
;
...
...
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