|
@@ -124,11 +124,6 @@ function changeGoodImgWhenClickColor() { |
|
@@ -124,11 +124,6 @@ function changeGoodImgWhenClickColor() { |
124
|
}
|
124
|
}
|
125
|
}
|
125
|
}
|
126
|
|
126
|
|
127
|
-//function resetHasSelectedNum() {
|
|
|
128
|
-// $allChoseItems.find('.num .left-num').html('剩余' + 1 + '件');
|
|
|
129
|
-// $leftNum.val(1);
|
|
|
130
|
-//}
|
|
|
131
|
-
|
|
|
132
|
init();
|
127
|
init();
|
133
|
|
128
|
|
134
|
$yohoPage.on('touchstart', '.chose-panel', function(e) {
|
129
|
$yohoPage.on('touchstart', '.chose-panel', function(e) {
|
|
@@ -211,15 +206,13 @@ $yohoPage.on('touchstart', '.color-list .block', function() { |
|
@@ -211,15 +206,13 @@ $yohoPage.on('touchstart', '.color-list .block', function() { |
211
|
// 当前颜色块 切换勾选样式
|
206
|
// 当前颜色块 切换勾选样式
|
212
|
$this.toggleClass('chosed');
|
207
|
$this.toggleClass('chosed');
|
213
|
curColorIndex = index;
|
208
|
curColorIndex = index;
|
|
|
209
|
+ $('#good-num').val(1);
|
214
|
|
210
|
|
215
|
// 设置按钮的样式和文字
|
211
|
// 设置按钮的样式和文字
|
216
|
updateConformButtonClassAndText();
|
212
|
updateConformButtonClassAndText();
|
217
|
|
213
|
|
218
|
// 修改颜色时修改商品图片
|
214
|
// 修改颜色时修改商品图片
|
219
|
changeGoodImgWhenClickColor();
|
215
|
changeGoodImgWhenClickColor();
|
220
|
-
|
|
|
221
|
- // 颜色切换时, 重置已经选择的商品数量
|
|
|
222
|
- //resetHasSelectedNum();
|
|
|
223
|
}).on('touchstart', '.size-list .block', function() {
|
216
|
}).on('touchstart', '.size-list .block', function() {
|
224
|
var $this = $(this),
|
217
|
var $this = $(this),
|
225
|
index,
|
218
|
index,
|
|
@@ -265,15 +258,13 @@ $yohoPage.on('touchstart', '.color-list .block', function() { |
|
@@ -265,15 +258,13 @@ $yohoPage.on('touchstart', '.color-list .block', function() { |
265
|
$this.toggleClass('chosed');
|
258
|
$this.toggleClass('chosed');
|
266
|
curSizeIndex = index;
|
259
|
curSizeIndex = index;
|
267
|
$curSizeBlock = $this;
|
260
|
$curSizeBlock = $this;
|
|
|
261
|
+ $('#good-num').val(1);
|
268
|
|
262
|
|
269
|
// 设置按钮的样式和文字
|
263
|
// 设置按钮的样式和文字
|
270
|
updateConformButtonClassAndText();
|
264
|
updateConformButtonClassAndText();
|
271
|
|
265
|
|
272
|
// 重置颜色块的样式
|
266
|
// 重置颜色块的样式
|
273
|
resetColorZeroStock($siblingBlock);
|
267
|
resetColorZeroStock($siblingBlock);
|
274
|
-
|
|
|
275
|
- // 颜色尺码时, 重置已经选择的商品数量
|
|
|
276
|
- //resetHasSelectedNum();
|
|
|
277
|
});
|
268
|
});
|
278
|
|
269
|
|
279
|
$yohoPage.on('touchstart', '.btn-minus', function() {
|
270
|
$yohoPage.on('touchstart', '.btn-minus', function() {
|