Authored by 邱骏

购物车编辑时增减数量不显示预购商品提示,单独更新某个商品数量返回时正确更改购物车中的数量

... ... @@ -317,6 +317,7 @@ let goodObj = {
});
},
getSelectGoodData(eles, selectAll) {
return Array.from(eles.map((i, ele) => {
let $this = $(ele),
$good = $this.closest('.good-item'),
... ... @@ -393,7 +394,7 @@ let goodObj = {
if (res && res.code === 200) {
$(e.delegateTarget).data('id', result.sku.skuId);
if (!$(e.delegateTarget).find('.chk.select').hasClass('checked')) {
self.selectGood($(e.delegateTarget).find('.chk.select'));
self.selectGood($(e.delegateTarget).find('.chk.select'), false);
} else {
self.handle.refreshPage();
}
... ... @@ -473,7 +474,7 @@ let goodObj = {
if (!$(e.delegateTarget).find('.chk.select').hasClass('checked') && goodNum <= max) {
self.handle.posting = false;
self.selectGood($(e.delegateTarget).find('.chk.select'));
self.selectGood($(e.delegateTarget).find('.chk.select'), false);
} else {
self.handle.refreshPage().then(() => {
self.handle.posting = false;
... ...