...
|
...
|
@@ -32,7 +32,8 @@ var $descColor = $('#desc-color'); |
|
|
var thumbsLoaded = {};
|
|
|
|
|
|
var $main = $('.main'),
|
|
|
id = $main.data('id');
|
|
|
id = $main.data('id'),
|
|
|
isTicket = $('input[name="isTicket"]').length > 0 && $('input[name="isTicket"]').val();
|
|
|
|
|
|
var maxStock = -1; //记录当前选中的颜色-尺码的库存量,若为-1,代表未选择尺码
|
|
|
|
...
|
...
|
@@ -197,6 +198,12 @@ $('.colors').on('click', 'li', function() { |
|
|
//切换尺码显示
|
|
|
$sizes.not('.hide').addClass('hide').children('li').removeClass('focus');
|
|
|
$sizes.eq(index).removeClass('hide');
|
|
|
|
|
|
//是否展览票
|
|
|
if (isTicket) {
|
|
|
$sizes.eq(index).children('li').trigger('click');
|
|
|
$('.chose-size').addClass('hide');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
resetNum();
|
...
|
...
|
|