Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
2 changed files
with
2 additions
and
1 deletions
@@ -30,6 +30,7 @@ var _hmt = _hmt || []; | @@ -30,6 +30,7 @@ var _hmt = _hmt || []; | ||
30 | (function() { | 30 | (function() { |
31 | var hm = document.createElement("script"); | 31 | var hm = document.createElement("script"); |
32 | hm.src = "http://static.yohobuy.com/js/analytics/analysis.js"; | 32 | hm.src = "http://static.yohobuy.com/js/analytics/analysis.js"; |
33 | + hm.async = 1; | ||
33 | var s = document.getElementsByTagName("script")[0]; | 34 | var s = document.getElementsByTagName("script")[0]; |
34 | s.parentNode.insertBefore(hm, s); | 35 | s.parentNode.insertBefore(hm, s); |
35 | })(); | 36 | })(); |
@@ -89,7 +89,7 @@ class CartModel | @@ -89,7 +89,7 @@ class CartModel | ||
89 | } | 89 | } |
90 | 90 | ||
91 | // 普通购物车空,则显示预售购物车 | 91 | // 普通购物车空,则显示预售购物车 |
92 | - if ($ordinaryCount === '0' && $ordinaryCount) { | 92 | + if ($ordinaryCount === '0' && $ordinarySoldOut) { |
93 | $result['cartNav'] = false; | 93 | $result['cartNav'] = false; |
94 | $result['cartType'] = 'advance'; | 94 | $result['cartType'] = 'advance'; |
95 | } | 95 | } |
-
Please register or login to post a comment