...
|
...
|
@@ -78,8 +78,14 @@ $.ajax({ |
|
|
type: 'GET',
|
|
|
url: '/cart/index/count',
|
|
|
success: function(data) {
|
|
|
var count;
|
|
|
|
|
|
if (data.code === 200) {
|
|
|
$cart.find('.num-tag').html(data.data.cart_goods_count).removeClass('hide');
|
|
|
count = data.data.cart_goods_count || 0;
|
|
|
if (count > 99) {
|
|
|
count = '99+';
|
|
|
}
|
|
|
$cart.find('.num-tag').html(count).removeClass('hide');
|
|
|
}
|
|
|
}
|
|
|
});
|
...
|
...
|
|