...
|
...
|
@@ -67,6 +67,7 @@ function toggleAll(obj, roleType) { |
|
|
$cartListWrap.find('[data-role=' + roleType + '] li[data-role=pitem]').each(function() {
|
|
|
var $t = $(this);
|
|
|
var poolId = $t.data('pool-id');
|
|
|
var batchNo = $t.data('batch-no');
|
|
|
|
|
|
if ($t.find('.pay-pro').hasClass('is-check')) {
|
|
|
return true;
|
...
|
...
|
@@ -81,6 +82,7 @@ function toggleAll(obj, roleType) { |
|
|
selectArray.push({
|
|
|
selected: selected,
|
|
|
activity_id: poolId,
|
|
|
batch_no: batchNo,
|
|
|
product_sku: $(this).data('id'),
|
|
|
buy_number: $(this).data('productnum'),
|
|
|
promotion_id: $(this).data('promotionid') || 0
|
...
|
...
|
@@ -120,6 +122,7 @@ Cart = { |
|
|
var $pitem = $this.closest('li[data-role="pitem"]');
|
|
|
var item = [];
|
|
|
var poolId = $pitem.data('pool-id');
|
|
|
var batchNo = $pitem.data('batch-no');
|
|
|
var isTipnostore = true;
|
|
|
|
|
|
// 套餐-单选
|
...
|
...
|
@@ -139,6 +142,7 @@ Cart = { |
|
|
|
|
|
item.push({
|
|
|
selected: $this.hasClass('cart-item-checked') ? 'N' : 'Y', // 'Y' : 'N',
|
|
|
batch_no: batchNo,
|
|
|
activity_id: poolId,
|
|
|
product_sku: $(this).data('id'),
|
|
|
buy_number: $(this).data('productnum'),
|
...
|
...
|
@@ -180,6 +184,7 @@ Cart = { |
|
|
var content = '<div><i class="iconfont"></i>删除商品</div><p>确定要从购物车中删除该商品?</p>';
|
|
|
var countJSON = [];
|
|
|
var poolId = $item.data('pool-id');
|
|
|
var batchNo = $item.data('batch-no');
|
|
|
|
|
|
// 套餐删除
|
|
|
if (poolId && parseInt($item.data('pool-type'), 10) === 3) {
|
...
|
...
|
@@ -189,6 +194,7 @@ Cart = { |
|
|
}
|
|
|
|
|
|
selectArray.push({
|
|
|
batch_no: batchNo,
|
|
|
activity_id: poolId,
|
|
|
product_sku: $(this).data('id'),
|
|
|
buy_number: $(this).data('productnum'),
|
...
|
...
|
@@ -229,6 +235,7 @@ Cart = { |
|
|
var $chk = $(this);
|
|
|
var $item = $chk.closest('[data-role=pitem]');
|
|
|
var poolId = $item.data('pool-id');
|
|
|
var batchNo = $item.data('batch-no');
|
|
|
|
|
|
if (!$chk.hasClass('cart-item-checked') || $chk.find('.pay-pro').hasClass('is-check')) {
|
|
|
return true;
|
...
|
...
|
@@ -242,6 +249,7 @@ Cart = { |
|
|
}
|
|
|
|
|
|
selectArray.push({
|
|
|
batch_no: batchNo,
|
|
|
activity_id: poolId,
|
|
|
product_sku: $(this).data('id'),
|
|
|
buy_number: $(this).data('productnum'),
|
...
|
...
|
@@ -285,7 +293,9 @@ Cart = { |
|
|
|
|
|
var $item = $(this);
|
|
|
var poolId = $item.data('pool-id');
|
|
|
var batchNo = $item.data('batch-no');
|
|
|
|
|
|
// 过滤套餐商品列表数据
|
|
|
if ($item.find('.pay-pro').hasClass('is-check')) {
|
|
|
return true;
|
|
|
}
|
...
|
...
|
@@ -298,6 +308,7 @@ Cart = { |
|
|
}
|
|
|
|
|
|
selectArray.push({
|
|
|
batch_no: batchNo,
|
|
|
activity_id: poolId,
|
|
|
product_sku: $(this).data('id'),
|
|
|
buy_number: $(this).data('productnum'),
|
...
|
...
|
@@ -405,7 +416,8 @@ Cart = { |
|
|
|
|
|
capi.cartItemNumChg($.extend(countJSON, {
|
|
|
sku: $item.data('id'),
|
|
|
activity_id: $item.data('pool-id')
|
|
|
batch_no: $item.data('batch-no'),
|
|
|
activity_id: $item.data('pool-id'),
|
|
|
}));
|
|
|
|
|
|
if (!$btn.hasClass('cart-item-checked')) {
|
...
|
...
|
|