feat: remove from card
This commit is contained in:
parent
52c987b88e
commit
483fcedfd9
3 changed files with 12 additions and 3 deletions
|
|
@ -5,17 +5,18 @@ async function shoppingCartList(path) {
|
|||
name: 'shopping-cart-list',
|
||||
template,
|
||||
|
||||
props: ['carts', 'products'],
|
||||
props: ['carts'],
|
||||
data: function () {
|
||||
return {}
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
formatCurrency: function(value, unit){
|
||||
formatCurrency: function (value, unit) {
|
||||
return formatCurrency(value, unit)
|
||||
},
|
||||
removeProduct: function (stallId, productId) {
|
||||
console.log('### stallId, productId', stallId, productId)
|
||||
this.$emit('remove-from-cart', { stallId, productId })
|
||||
}
|
||||
},
|
||||
created() { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue