...
|
...
|
@@ -124,11 +124,6 @@ function changeGoodImgWhenClickColor() { |
|
|
}
|
|
|
}
|
|
|
|
|
|
//function resetHasSelectedNum() {
|
|
|
// $allChoseItems.find('.num .left-num').html('剩余' + 1 + '件');
|
|
|
// $leftNum.val(1);
|
|
|
//}
|
|
|
|
|
|
init();
|
|
|
|
|
|
$yohoPage.on('touchstart', '.chose-panel', function(e) {
|
...
|
...
|
@@ -211,15 +206,13 @@ $yohoPage.on('touchstart', '.color-list .block', function() { |
|
|
// 当前颜色块 切换勾选样式
|
|
|
$this.toggleClass('chosed');
|
|
|
curColorIndex = index;
|
|
|
$('#good-num').val(1);
|
|
|
|
|
|
// 设置按钮的样式和文字
|
|
|
updateConformButtonClassAndText();
|
|
|
|
|
|
// 修改颜色时修改商品图片
|
|
|
changeGoodImgWhenClickColor();
|
|
|
|
|
|
// 颜色切换时, 重置已经选择的商品数量
|
|
|
//resetHasSelectedNum();
|
|
|
}).on('touchstart', '.size-list .block', function() {
|
|
|
var $this = $(this),
|
|
|
index,
|
...
|
...
|
@@ -265,15 +258,13 @@ $yohoPage.on('touchstart', '.color-list .block', function() { |
|
|
$this.toggleClass('chosed');
|
|
|
curSizeIndex = index;
|
|
|
$curSizeBlock = $this;
|
|
|
$('#good-num').val(1);
|
|
|
|
|
|
// 设置按钮的样式和文字
|
|
|
updateConformButtonClassAndText();
|
|
|
|
|
|
// 重置颜色块的样式
|
|
|
resetColorZeroStock($siblingBlock);
|
|
|
|
|
|
// 颜色尺码时, 重置已经选择的商品数量
|
|
|
//resetHasSelectedNum();
|
|
|
});
|
|
|
|
|
|
$yohoPage.on('touchstart', '.btn-minus', function() {
|
...
|
...
|
|