Authored by 郭成尧

'base-shop-fav'

@@ -599,8 +599,12 @@ if ($brandHeader.length > 0) { @@ -599,8 +599,12 @@ if ($brandHeader.length > 0) {
599 } else { 599 } else {
600 tip.show('取消收藏成功'); 600 tip.show('取消收藏成功');
601 } 601 }
602 - } else if (data.code === 400) {  
603 - location.href = data.data;//未登录跳转登录页 602 + } else if (data.code === 401) {
  603 + url = data.url;
  604 + if ($('#jump-login').length <= 0) {
  605 + $('body').append('<a href=\'' + url + '\'><span id="jump-login"><span></a>');
  606 + }
  607 + $('#jump-login').click();
604 } else { 608 } else {
605 tip.show(data.message); 609 tip.show(data.message);
606 } 610 }