Authored by 毕凯

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

... ... @@ -28,8 +28,8 @@ var $chosePanel = $('#chose-panel'),
$curSizeBlock,
$sizeRowList,
cbFn,
cartType,
$allChoseItems,
queryString,
$yohoPage = $('.yoho-page');
//初始化购物车面板显示
... ... @@ -39,6 +39,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 +168,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 +325,7 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
buyNumber: buyNumber,
promotionId: promotionId,
isEdit: isEdit,
cartType: cartType
cartType: queryString.cartType
}
}).done(function(res) {
loading.hideLoadingMask();
... ...
... ... @@ -26,7 +26,7 @@ function getProductInfo(skn, promotionId) {
return;
}
chosePanel.show(html, function() {
window.location.href = '/cart/index/orderEnsure?cartType=' + queryString.cartType;
window.location.href = '/cart/index/index?cartType=' + queryString.cartType;
});
}, function() {
tip.show('网络错误');
... ...