Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
8 years ago
Commit
7acd98e70c2c31de242449fb36280b09c56e6a86
1 parent
ca79d5fa
geetest登录回退bug
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
public/js/passport/login/international.js
public/js/passport/login/login.js
public/js/passport/sms-login.page.js
public/js/passport/sms-password.page.js
public/js/passport/login/international.js
View file @
7acd98e
...
...
@@ -120,6 +120,7 @@ $loginBtn.on('touchstart', function() {
success
:
function
(
data
)
{
var
res
;
validate
.
type
===
2
&&
validate
.
refresh
();
if
(
data
.
code
===
200
)
{
res
=
data
.
data
;
showErrTip
(
'登录成功'
);
...
...
@@ -129,11 +130,11 @@ $loginBtn.on('touchstart', function() {
location
.
href
=
res
.
href
;
},
1500
);
$loginBtn
.
text
(
'登录成功'
)
.
off
()
;
$loginBtn
.
text
(
'登录成功'
);
showErrTip
(
'登录成功'
);
}
else
{
if
(
data
.
captchaShow
)
{
validate
.
atWorking
?
((
data
.
changeCaptcha
||
validate
.
type
=
==
2
)
&&
validate
.
refresh
())
:
validate
.
init
();
validate
.
atWorking
?
((
data
.
changeCaptcha
||
validate
.
type
!
==
2
)
&&
validate
.
refresh
())
:
validate
.
init
();
}
showErrTip
(
data
.
message
);
...
...
public/js/passport/login/login.js
View file @
7acd98e
...
...
@@ -141,16 +141,16 @@ $loginBtn.on('touchstart', function() {
})
},
true
);
}
validate
.
type
===
2
&&
validate
.
refresh
();
if
(
data
.
code
===
200
)
{
res
=
data
.
data
;
showErrTip
(
'登录成功'
);
location
.
href
=
res
.
href
;
$loginBtn
.
text
(
'登录成功'
)
.
off
()
;
$loginBtn
.
text
(
'登录成功'
);
}
else
{
if
(
data
.
captchaShow
)
{
validate
.
atWorking
?
((
data
.
changeCaptcha
||
validate
.
type
=
==
2
)
&&
validate
.
refresh
())
:
validate
.
init
();
validate
.
atWorking
?
((
data
.
changeCaptcha
||
validate
.
type
!
==
2
)
&&
validate
.
refresh
())
:
validate
.
init
();
}
showErrTip
(
data
.
message
);
...
...
public/js/passport/sms-login.page.js
View file @
7acd98e
...
...
@@ -131,7 +131,7 @@ page = {
.
done
(
function
(
data
)
{
if
(
data
.
code
===
200
)
{
checkPoint
(
'YB_MOBILE_NEXT_C'
);
// 埋点
$nextBtn
.
off
();
//
$nextBtn.off();
location
.
href
=
data
.
redirect
;
}
else
{
data
.
changeCaptcha
&&
imgCheck
.
refresh
();
...
...
public/js/passport/sms-password.page.js
View file @
7acd98e
...
...
@@ -87,7 +87,7 @@ page = {
.
done
(
function
(
res
)
{
if
(
res
.
code
===
200
)
{
checkPoint
(
'YB_SET_PASSWORD_ENSURE_C'
);
// 埋点
$nextBtn
.
off
();
//
$nextBtn.off();
location
.
href
=
res
.
redirect
;
return
;
}
...
...
Please
register
or
login
to post a comment