优化购物车页面为你优选加载的代码. code review by LZF
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -25,8 +25,8 @@ var navHammer, | @@ -25,8 +25,8 @@ var navHammer, | ||
25 | 25 | ||
26 | function needLoadRecommandForYou() { | 26 | function needLoadRecommandForYou() { |
27 | return window.isCookiesEnabled() ? | 27 | return window.isCookiesEnabled() ? |
28 | - $('.shopping-cart-good').length <= 0 && window.cookie('_yoho-cart-refreshByDelete') !== 'true' : | ||
29 | - $('.shopping-cart-good').length <= 0; | 28 | + $('.cart-goods').length <= 0 && window.cookie('_yoho-cart-refreshByDelete') !== 'true' : |
29 | + $('.cart-goods').length <= 0; | ||
30 | } | 30 | } |
31 | 31 | ||
32 | if (needLoadRecommandForYou()) { | 32 | if (needLoadRecommandForYou()) { |
-
Please register or login to post a comment