Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
521ed168cf9797ba9514c3d36734432321270f4d
1 parent
6efff65c
收藏品牌商品 未登录时跳转
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
web-static/js/product/brand.js
web-static/js/product/product.js
web-static/js/product/brand.js
View file @
521ed16
...
...
@@ -11,7 +11,7 @@ $('#brand-favor').on('click', function() {
uid
=
window
.
getUid
();
if
(
!
uid
)
{
location
.
href
=
'/signin.html?refer='
+
location
.
href
;
location
.
href
=
'/signin.html?refer='
+
encodeURIComponent
(
location
.
href
)
;
return
;
}
...
...
web-static/js/product/product.js
View file @
521ed16
...
...
@@ -174,6 +174,11 @@ $(document).on('hover', '.good-select-color li', function() {
$goodInfoMain
.
on
(
'click'
,
'.col-btn'
,
function
()
{
var
$this
=
$
(
this
);
if
(
!
window
.
getUid
())
{
location
.
href
=
'/signin.html?refer='
+
encodeURIComponent
(
location
.
href
);
return
;
}
$
.
ajax
({
type
:
'POST'
,
url
:
'/product/list/changeFavorite'
,
...
...
Please
register
or
login
to post a comment