...
|
...
|
@@ -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;
|
...
|
...
|
|