...
|
...
|
@@ -191,8 +191,8 @@ function getTogetherProduct($obj, url, page) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
// 最近浏览
|
|
|
getTogetherProduct($histroy, '/cart/index/getHistroyProduct');
|
|
|
// 为你优选
|
|
|
getTogetherProduct($histroy, '/cart/index/getRecommendProduct');
|
|
|
|
|
|
// 凑单商品
|
|
|
getTogetherProduct($together, '/cart/index/getTogetherProduct');
|
...
|
...
|
@@ -205,7 +205,7 @@ $together.on('click', '.pagenext, .pageprev', function() { |
|
|
|
|
|
});
|
|
|
|
|
|
//凑单商品,历史商品商品折叠
|
|
|
//凑单商品,为你优选商品商品折叠
|
|
|
$shopCart.on('click', '.icon-minus, .icon-add', function() {
|
|
|
if ($(this).hasClass('icon-minus')) {
|
|
|
$(this).parents('.title').next('.main').hide();
|
...
|
...
|
@@ -226,7 +226,7 @@ $histroy.on('click', '.pagenext, .pageprev', function() { |
|
|
} else {
|
|
|
--pageNum > 0 || (pageNum = 1);
|
|
|
}
|
|
|
getTogetherProduct($histroy, '/cart/index/getHistroyProduct', {
|
|
|
getTogetherProduct($histroy, '/cart/index/getRecommendProduct', {
|
|
|
page: pageNum
|
|
|
});
|
|
|
|
...
|
...
|
@@ -271,15 +271,16 @@ function productInfo(data) { |
|
|
$('.detail-bigpic:not(.none) .bigpic:gt(0)').hide();
|
|
|
|
|
|
$('.showSizeBox:not(.none)').find('span').each(function() {
|
|
|
if ($(this).hasClass('null-atcivec')) {
|
|
|
$('.addcart').addClass('none');
|
|
|
$('.btn_sellout').removeClass('none');
|
|
|
} else {
|
|
|
$('.addcart').removeClass('none');
|
|
|
$('.btn_sellout').addClass('none');
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
if ($(this).hasClass('null-atcivec')) {
|
|
|
$('.addcart').addClass('none');
|
|
|
$('.btn_sellout').removeClass('none');
|
|
|
} else {
|
|
|
$('.addcart').removeClass('none');
|
|
|
$('.btn_sellout').addClass('none');
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -304,7 +305,7 @@ $payWapper.on('click', '.cart-add-btn', function() { |
|
|
});
|
|
|
});
|
|
|
|
|
|
//凑单商品,历史商品商品记录
|
|
|
//凑单商品,为你优选商品商品记录
|
|
|
$('.clearfix').on('click', '.btn_view_s', function() {
|
|
|
productId = $(this).data('id');
|
|
|
promotionId = $(this).parents('table').data('promotion');
|
...
|
...
|
|