From 5b63e9885a564120aa199e96d366bf55a66f0151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaume=20Sol=C3=ADs?= Date: Thu, 18 Jan 2024 11:13:15 +0100 Subject: [PATCH] hacer que se vean las imagenes desde google drive --- api/controller/product.controller.js | 2 +- src/components/ui/Card.vue | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/api/controller/product.controller.js b/api/controller/product.controller.js index 67403d6..72f0471 100644 --- a/api/controller/product.controller.js +++ b/api/controller/product.controller.js @@ -13,7 +13,7 @@ class ProductController { name: item.name, description: item.description, type: item.type, - price: item.size, + price: item.price, specialPrice: item.specialPrice, isNew: item.isNew, slug: item.slug, diff --git a/src/components/ui/Card.vue b/src/components/ui/Card.vue index b67e1dd..6172fcf 100644 --- a/src/components/ui/Card.vue +++ b/src/components/ui/Card.vue @@ -53,7 +53,8 @@ export default defineComponent({ setup({ price, discount }) { const isLoaded = ref(false); const percent = +discount / 100; - const priceWithoutLetter = ~~price.replaceAll("€", ""); + //const priceWithoutLetter = ~~price.replaceAll("€", ""); + const priceWithoutLetter = price; const finalValue = ~~(priceWithoutLetter - priceWithoutLetter * percent); const onLoad = () => { @@ -81,7 +82,7 @@ export default defineComponent({

{{ finalValue }}€

-

- {{ priceWithoutLetter }}€ +

+ {{ price }}€

-- 2.40.1