Authored by Rock Zhang

Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop

... ... @@ -77,8 +77,8 @@ if (typeof window.cookie === 'function' && 'y' === window.cookie('_hasShowCartPr
if ('advance' === cartType) {
$cartContent.toggleClass('hide');
$('presell-cart-nav').addClass('active');
$('common-cart-nav').removeClass('active');
$('#common-cart-nav').removeClass('active');
$('#presell-cart-nav').addClass('active');
}
if ($('.cart-nav').length > 0) {
... ... @@ -133,15 +133,16 @@ if ($('.freebie').length > 0) {
}
$('.btn-balance').on('touchend', function() {
if (shouldSelectGift()) {
showChooseGifDialog();
return false;
}
if (shouldLowStocks()) {
tip.show('库存不足无法结算');
return false;
}
if (shouldSelectGift()) {
showChooseGifDialog();
return false;
}
if (hasChecked) {
window.location.href = '/cart/index/orderEnsure?cartType=' + cartType;
} else {
... ...
... ... @@ -190,6 +190,10 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) {
//全选按钮点击事件
$selectAllBtn.on('touchend', function() {
if ($('.low-stocks').length > 0) {
tip.show('所选商品中含有库存不足的商品');
return false;
}
bottomCheckBoxHandeler($(this).hasClass('icon-cb-checked'), $('#cartType').val(), didUpdateAllGoodsCheckStatus);
});
... ...
... ... @@ -101,7 +101,7 @@ a {
color: #fff;
font-size: 18px;
border: none;
z-index:2;
z-index:4;
@include border-radius(10px);
}
... ...
... ... @@ -19,13 +19,13 @@
{{^}}
{{#if cartNav}}
<ul class="cart-nav clearfix">
<li class="active">
<span id="common-cart-nav">
<li class="active" id="common-cart-nav">
<span >
普通商品({{commonGoodsCount}})
</span>
</li>
<li>
<span id="presell-cart-nav">
<li id="presell-cart-nav">
<span >
预售商品({{presellGoodsCount}})
</span>
<div id="presell-tip" class="presell-tip hide">
... ...