...
|
...
|
@@ -461,11 +461,14 @@ bindEvent.add(function() { |
|
|
|
|
|
// 尺码选中的状态
|
|
|
if (maxStock !== -1) {
|
|
|
console.log(maxStock);
|
|
|
if (canBundleBuy()) {
|
|
|
console.log(1);
|
|
|
$itemBuy.removeClass('hide');
|
|
|
$soldOut.addClass('hide');
|
|
|
cartEvent.emit('gocart');
|
|
|
} else {
|
|
|
console.log(2);
|
|
|
$itemBuy.addClass('hide');
|
|
|
$soldOut.removeClass('hide');
|
|
|
cartEvent.emit('sellout');
|
...
|
...
|
@@ -995,6 +998,7 @@ bindEvent.add(function() { |
|
|
}
|
|
|
|
|
|
if (hasOnlyOneSize) {
|
|
|
$maxColor = $('.colors .focus').eq(0);
|
|
|
$sizes.eq($('.colors .focus').index()).find('li').click();
|
|
|
}
|
|
|
}());
|
...
|
...
|
|