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
陈轩
9 years ago
Commit
028e803d2753cdde2cd37af7bdfcf86c6fc02550
1 parent
18cfa7a9
FIX bfcache 的问题
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
apps/passport/controllers/sms.js
public/js/passport/sms-check.page.js
public/js/passport/sms-login.page.js
public/js/passport/sms-password.page.js
apps/passport/controllers/sms.js
View file @
028e803
...
...
@@ -16,6 +16,12 @@ const LOGIN_SUCCSS = '登录成功';
const
VERIFY_ERROR
=
'校验失败'
;
exports
.
beforeIn
=
(
req
,
res
,
next
)
=>
{
res
.
set
({
'Cache-Control'
:
'no-cache, no-store, must-revalidate'
,
Pragma
:
'no-cache'
,
Expires
:
0
});
if
(
!
req
.
xhr
&&
req
.
user
.
uid
)
{
return
res
.
redirect
(
req
.
cookies
.
refer
);
}
...
...
public/js/passport/sms-check.page.js
View file @
028e803
...
...
@@ -131,8 +131,8 @@ var page = {
})
.
done
(
function
(
res
)
{
if
(
res
.
code
===
200
)
{
// $nextBtn.off();
location
.
href
=
res
.
redirect
;
$nextBtn
.
off
();
return
;
}
...
...
public/js/passport/sms-login.page.js
View file @
028e803
...
...
@@ -76,7 +76,7 @@ var page = {
})
.
done
(
function
(
data
)
{
if
(
data
.
code
===
200
)
{
$nextBtn
.
off
();
//
$nextBtn.off();
location
.
href
=
data
.
redirect
;
}
else
{
tip
.
show
(
data
.
message
);
...
...
public/js/passport/sms-password.page.js
View file @
028e803
...
...
@@ -56,7 +56,7 @@ var page = {
})
.
done
(
function
(
res
)
{
if
(
res
.
code
===
200
)
{
$nextBtn
.
off
();
//
$nextBtn.off();
location
.
href
=
res
.
redirect
;
return
;
}
...
...
Please
register
or
login
to post a comment