Authored by yyq

气泡为0隐藏

... ... @@ -98,7 +98,7 @@
<a href="//www.yohobuy.com/shopping/cart">
<span class="iconfont ">&#xe600;</span>
{{#unless @root.pc.common.removeCartCount}}
<span class="goods-num-tip">0</span>
<span class="goods-num-tip hide">0</span>
{{/unless}}
</a>
{{#unless @root.pc.common.disCartHover}}
... ...
... ... @@ -312,7 +312,7 @@ function submitSearch() {
// 同步mini购物车数据
function syncCratInfo(strG) {
var info, total;
var info, total = 0;
if (strG) {
window.setCookie('_g', strG, {
... ... @@ -335,6 +335,8 @@ function syncCratInfo(strG) {
});
$goodsNum.text(total);
}
total ? $goodsNum.removeClass('hide') : $goodsNum.addClass('hide');
}
function loadCartDetail(key) {
... ...