wip
This commit is contained in:
parent
28710ed50a
commit
cf4dd8fb81
|
|
@ -108,7 +108,9 @@
|
||||||
return !this.products.length ? false : this.products.every(s => s.selected)
|
return !this.products.length ? false : this.products.every(s => s.selected)
|
||||||
},
|
},
|
||||||
set(val) {
|
set(val) {
|
||||||
return this.products.map(e => e.selected = val)
|
// return
|
||||||
|
this.products.map(e => e.selected = val)
|
||||||
|
this.selectedBtnSelected()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -154,7 +156,7 @@
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: `/carts/select`,
|
url: `/carts/select`,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: {sku_ids: cart_ids},
|
data: {cart_ids: cart_ids},
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
self.setUpdateData(res);
|
self.setUpdateData(res);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue