Authored by 毕凯

收藏品牌商品 未登录时跳转

... ... @@ -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;
}
... ...
... ... @@ -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',
... ...