diff --git a/src/components/catalog/Card.vue b/src/components/catalog/Card.vue new file mode 100644 index 0000000..42f2856 --- /dev/null +++ b/src/components/catalog/Card.vue @@ -0,0 +1,107 @@ + + + + + + + + + {{ product.name }} + {{ product.description }} + + + Precio unitario: {{ currency(product.price) }} + + + Precio total: + {{ currency(product.price * product.quantity) }} + + + + + + + mdi-minus + + mdi-plus + + + + + + + + + diff --git a/src/components/catalog/Cart.vue b/src/components/catalog/Cart.vue new file mode 100644 index 0000000..f9d7276 --- /dev/null +++ b/src/components/catalog/Cart.vue @@ -0,0 +1,83 @@ + + + + mdi-cart + Carrito + {{ cartCount }} + + + + + + El carrito está vacío + + + + + + + + + + + {{ item.name }} + + {{ item.quantity }} x {{ currency(item.price) }} + + + + + {{ currency(item.price * item.quantity) }} + + + + + + + + + + + Total: + {{ currency(cartTotal) }} + + + + + + Finalizar Compra + + + + + + diff --git a/src/pages/catalog.vue b/src/pages/catalog.vue index a7ad18f..3047d99 100644 --- a/src/pages/catalog.vue +++ b/src/pages/catalog.vue @@ -1,83 +1,105 @@ - - - - Catálogo - - - - - - - - - - - {{ item.name }} - {{ item.description }} - - Precio unitario: {{ currency(item.price) }} - Precio total: {{ currency(item.price * item.quantity) }} - - - - - - mdi-minus - - mdi-plus - - - - - - - - Ver más - - + + + + + Catálogo + + + + + + + + + + + +