Authored by 毕凯

删除商品时 前端增加 promotionId

... ... @@ -190,15 +190,16 @@ $('.icon-del').on('touchstart', function(e) {
rightBtnText: '确定'
}
}, function() {
var id = $this.closest('.shopping-cart-good').data('id'),
var $shoppingCartGood = $this.closest('.shopping-cart-good'),
count = $this.data('count');
$.ajax({
method: 'post',
url: '/cart/index/del',
data: {
sku: id,
count: count
sku: $shoppingCartGood.data('id'),
count: count,
promotionId: $shoppingCartGood.data('promotion')
}
}).then(function(data) {
if (data.code === 200) {
... ...