Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
xuqi
9 years ago
Commit
3998666710f3946ce0324e9a5e9af4eef76cd8f8
1 parent
e1f3614e
location page login
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
static/js/guang/plus-star/detail.js
static/js/product/list.js
static/js/guang/plus-star/detail.js
View file @
3998666
...
...
@@ -86,9 +86,7 @@ likeHammer.on('tap', function(e) {
if
(
data
.
code
===
200
)
{
$this
.
toggleClass
(
'like'
);
}
else
if
(
data
.
code
===
400
||
data
.
code
===
412
)
{
//code:412 用户ID不正确,即未登录
tip
.
show
(
'未登录'
);
location
.
href
=
data
.
data
;
//未登录跳转登录页面
}
else
{
tip
.
show
(
data
.
message
);
}
...
...
static/js/product/list.js
View file @
3998666
...
...
@@ -401,7 +401,7 @@ if ($brandHeader.length > 0) {
if
(
data
.
code
===
200
)
{
$this
.
toggleClass
(
'coled'
);
}
else
if
(
data
.
code
===
400
||
data
.
code
===
412
)
{
tip
.
show
(
'未登录'
);
location
.
href
=
data
.
data
;
//未登录跳转登录页
}
else
{
tip
.
show
(
data
.
message
);
}
...
...
Please
register
or
login
to post a comment