wip
This commit is contained in:
parent
876cb45215
commit
28710ed50a
|
|
@ -149,12 +149,12 @@
|
||||||
|
|
||||||
selectedBtnSelected() {
|
selectedBtnSelected() {
|
||||||
const self = this;
|
const self = this;
|
||||||
const product_ids = this.products.filter(e => e.selected).map(x => x.product_id)
|
const cart_ids = this.products.filter(e => e.selected).map(x => x.cart_id)
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: `/carts/select`,
|
url: `/carts/select`,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: {sku_ids: product_ids},
|
data: {sku_ids: cart_ids},
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
self.setUpdateData(res);
|
self.setUpdateData(res);
|
||||||
}
|
}
|
||||||
|
|
@ -162,7 +162,6 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
setUpdateData(res) {
|
setUpdateData(res) {
|
||||||
console.log(res)
|
|
||||||
this.products = res.carts
|
this.products = res.carts
|
||||||
this.amount_format = res.amount_format
|
this.amount_format = res.amount_format
|
||||||
this.total_quantity = res.quantity
|
this.total_quantity = res.quantity
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue