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