Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
shijian
8 years ago
Commit
a09c437dc4edb110de442ede09930dc00db4fdfa
1 parent
467df675
三个问题修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
public/js/passport/reg/reg.js
public/js/passport/reg/reg.js
View file @
a09c437
...
...
@@ -198,14 +198,11 @@ function validateSMSCaptchaAsync() {
return
false
;
}
switch
(
data
.
code
)
{
case
200
:
return
true
;
case
400
:
errTip
(
$smsCaptchaInput
,
'短信验证码错误'
);
return
false
;
default
:
return
false
;
if
(
data
.
code
===
200
)
{
return
true
;
}
else
{
errTip
(
$smsCaptchaInput
,
data
.
message
);
return
false
;
}
});
}
...
...
@@ -583,7 +580,12 @@ exports.init = function() {
sendSMSCaptcha
().
then
((
data
)
=>
{
if
(
data
.
code
!==
200
)
{
errTip
(
$imgCaptchaInput
,
data
.
message
);
if
(
data
.
code
===
404
)
{
errTip
(
$phoneNumInput
,
data
.
message
);
}
else
{
errTip
(
$imgCaptchaInput
,
data
.
message
);
}
refreshImgCaptcha
();
}
else
{
hideTip
(
$smsCaptchaInput
);
...
...
Please
register
or
login
to post a comment