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