diff --git a/assets/img/eye.svg b/assets/img/eye.svg new file mode 100644 index 0000000..1e58749 --- /dev/null +++ b/assets/img/eye.svg @@ -0,0 +1,4 @@ + + + + diff --git a/assets/img/info.svg b/assets/img/info.svg new file mode 100644 index 0000000..20620df --- /dev/null +++ b/assets/img/info.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/img/rotate-ccw.svg b/assets/img/rotate-ccw.svg new file mode 100644 index 0000000..c8342e0 --- /dev/null +++ b/assets/img/rotate-ccw.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/img/shopping-cart.svg b/assets/img/shopping-cart.svg new file mode 100644 index 0000000..f3d1b07 --- /dev/null +++ b/assets/img/shopping-cart.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/img/truck.svg b/assets/img/truck.svg new file mode 100644 index 0000000..7f4c74a --- /dev/null +++ b/assets/img/truck.svg @@ -0,0 +1,3 @@ + + + diff --git a/components/ItemsRow.vue b/components/ItemsRow.vue index ac44677..05d6c1a 100644 --- a/components/ItemsRow.vue +++ b/components/ItemsRow.vue @@ -20,14 +20,26 @@ :breakpoints-enabled="true" > - +

{{ formattedItem(item).name }}

+

{{ item.company.company_name }}

+

{{ item.price }}€

- + +
@@ -146,7 +175,8 @@ export default { coop: null, products: null, currentPage: 1, - perPage: 10, + perPage: 8, + tabIndex: 0, } }, computed: { @@ -159,7 +189,7 @@ export default { const final = this.currentPage * this.perPage const items = this.products ? this.products?.slice(initial, final) : [] return items - }, + } }, async created() { @@ -170,16 +200,21 @@ export default { { baseURL: config.public.baseURL, method: 'GET', + headers: { + Authorization: '/', + }, } ) - this.products = await $fetch( - `/products?company=${route.params.id}`, + this.products = await $fetch( + `/products?company=${$route.params.id}`, { baseURL: config.public.baseURL, method: 'GET', + headers: { + Authorization: '/', + }, } ) - } catch (error) { console.error(error) } @@ -259,20 +294,6 @@ export default { } - - diff --git a/pages/productoras/index.vue b/pages/productoras/index.vue index 1cab79c..621722a 100644 --- a/pages/productoras/index.vue +++ b/pages/productoras/index.vue @@ -1,5 +1,5 @@