|
@@ -28,8 +28,8 @@ var $chosePanel = $('#chose-panel'), |
|
@@ -28,8 +28,8 @@ var $chosePanel = $('#chose-panel'), |
28
|
$curSizeBlock,
|
28
|
$curSizeBlock,
|
29
|
$sizeRowList,
|
29
|
$sizeRowList,
|
30
|
cbFn,
|
30
|
cbFn,
|
31
|
- cartType,
|
|
|
32
|
$allChoseItems,
|
31
|
$allChoseItems,
|
|
|
32
|
+ queryString,
|
33
|
$yohoPage = $('.yoho-page');
|
33
|
$yohoPage = $('.yoho-page');
|
34
|
|
34
|
|
35
|
//初始化购物车面板显示
|
35
|
//初始化购物车面板显示
|
|
@@ -39,6 +39,7 @@ function init() { |
|
@@ -39,6 +39,7 @@ function init() { |
39
|
hasChooseColor = false;
|
39
|
hasChooseColor = false;
|
40
|
hasChooseSize = false;
|
40
|
hasChooseSize = false;
|
41
|
$curSizeBlock = null;
|
41
|
$curSizeBlock = null;
|
|
|
42
|
+ queryString = $.queryString();
|
42
|
$imgsThumb = $('.chose-panel').find('.thumb');
|
43
|
$imgsThumb = $('.chose-panel').find('.thumb');
|
43
|
$allChoseItems = $('.chose-items');
|
44
|
$allChoseItems = $('.chose-items');
|
44
|
$sizeRowList = $('.size-list ul');
|
45
|
$sizeRowList = $('.size-list ul');
|
|
@@ -167,7 +168,7 @@ $yohoPage.on('touchstart', '.color-list .block', function(e) { |
|
@@ -167,7 +168,7 @@ $yohoPage.on('touchstart', '.color-list .block', function(e) { |
167
|
$preSiblingBlock.removeClass('chosed');
|
168
|
$preSiblingBlock.removeClass('chosed');
|
168
|
curSizeBlock = $curSizeRow.children().get(scindex);
|
169
|
curSizeBlock = $curSizeRow.children().get(scindex);
|
169
|
}
|
170
|
}
|
170
|
-
|
171
|
+
|
171
|
// 当前选中颜色对应的尺码行,其对应的尺码加上勾选样式 (前提是要判断下这个尺码是否存在)
|
172
|
// 当前选中颜色对应的尺码行,其对应的尺码加上勾选样式 (前提是要判断下这个尺码是否存在)
|
172
|
if (curSizeBlock) {
|
173
|
if (curSizeBlock) {
|
173
|
curGoodNum = $(curSizeBlock).data('num');
|
174
|
curGoodNum = $(curSizeBlock).data('num');
|
|
@@ -324,7 +325,7 @@ $yohoPage.on('touchstart', '.btn-minus', function() { |
|
@@ -324,7 +325,7 @@ $yohoPage.on('touchstart', '.btn-minus', function() { |
324
|
buyNumber: buyNumber,
|
325
|
buyNumber: buyNumber,
|
325
|
promotionId: promotionId,
|
326
|
promotionId: promotionId,
|
326
|
isEdit: isEdit,
|
327
|
isEdit: isEdit,
|
327
|
- cartType: cartType
|
328
|
+ cartType: queryString.cartType
|
328
|
}
|
329
|
}
|
329
|
}).done(function(res) {
|
330
|
}).done(function(res) {
|
330
|
loading.hideLoadingMask();
|
331
|
loading.hideLoadingMask();
|