...
|
...
|
@@ -3,7 +3,7 @@ |
|
|
* @author: liangzhifeng<zhifeng.liang@yoho.cn>
|
|
|
* @date: 2015/10/20
|
|
|
*/
|
|
|
var $ = require('jquery'),
|
|
|
var $ = require('jquery'),
|
|
|
Swiper = require('yoho.iswiper'),
|
|
|
Hammer = require('yoho.hammer'),
|
|
|
lazyLoad = require('yoho.lazyload');
|
...
|
...
|
@@ -15,6 +15,8 @@ var goodsSwiper, |
|
|
var goodsDiscountEl = document.getElementById('goodsDiscount'),
|
|
|
goodsDiscountHammer = goodsDiscountEl && new Hammer(goodsDiscountEl);
|
|
|
|
|
|
var $cart = $('.cart-bar');
|
|
|
|
|
|
require('./desc');
|
|
|
require('./comments-consults');
|
|
|
|
...
|
...
|
@@ -67,6 +69,16 @@ if (goodsDiscountHammer) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
//购物车商品数量
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/cart/index/count',
|
|
|
success: function(data) {
|
|
|
if (data.code === 200) {
|
|
|
$cart.find('.num-tag').html(data.data.cart_goods_count).removeClass('hide');
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
require('./like');
|
|
|
|
...
|
...
|
|