categories changed
This commit is contained in:
@@ -160,27 +160,20 @@ export default {
|
||||
visible: true,
|
||||
checkedCategories: [],
|
||||
categories: [
|
||||
'Alimentación, bebida y tabaco',
|
||||
'Arte y ocio',
|
||||
'Bebés y niños pequeños',
|
||||
'Bricolaje',
|
||||
'Cámaras y ópticas',
|
||||
'Casa y jardín',
|
||||
'Economía e industria',
|
||||
'Electrónica',
|
||||
'Elementos religiosos y ceremoniales',
|
||||
'Equipamiento deportivo',
|
||||
'Juegos y juguetes',
|
||||
'Maletas y bolsos de viaje',
|
||||
'Material de oficina',
|
||||
'Mobiliario',
|
||||
'Multimedia',
|
||||
'Productos para adultos',
|
||||
'Productos para mascotas y animales',
|
||||
'Ropa y accesorios',
|
||||
'Salud y belleza',
|
||||
'Software',
|
||||
'Vehículos y recambios',
|
||||
'Alimentación',
|
||||
'Agricultura ',
|
||||
'Energía',
|
||||
'Hogar y jardín',
|
||||
'Moda y Textil',
|
||||
'Salud y Cuidados',
|
||||
'Movilidad y Mensajería',
|
||||
'Ocio y Deporte',
|
||||
'Turismo y Gastronomía',
|
||||
'Cultura, Educación y Medios',
|
||||
'Tecnología y Servicios Digitales',
|
||||
'Economía Circular y Reparación',
|
||||
'Finanzas Éticas y Seguros',
|
||||
'Servicios Profesionales',
|
||||
],
|
||||
priceRange: [0, 500],
|
||||
priceRangeFilter: {},
|
||||
|
||||
@@ -220,27 +220,20 @@ export default {
|
||||
},
|
||||
// tagsArray: ['tag1', 'tag2', 'tag3', 'tag33'],
|
||||
categories: [
|
||||
'Alimentación, bebida y tabaco',
|
||||
'Arte y ocio',
|
||||
'Bebés y niños pequeños',
|
||||
'Bricolaje',
|
||||
'Cámaras y ópticas',
|
||||
'Casa y jardín',
|
||||
'Economía e industria',
|
||||
'Electrónica',
|
||||
'Elementos religiosos y ceremoniales',
|
||||
'Equipamiento deportivo',
|
||||
'Juegos y juguetes',
|
||||
'Maletas y bolsos de viaje',
|
||||
'Material de oficina',
|
||||
'Mobiliario',
|
||||
'Multimedia',
|
||||
'Productos para adultos',
|
||||
'Productos para mascotas y animales',
|
||||
'Ropa y accesorios',
|
||||
'Salud y belleza',
|
||||
'Software',
|
||||
'Vehículos y recambios',
|
||||
'Alimentación',
|
||||
'Agricultura ',
|
||||
'Energía',
|
||||
'Hogar y jardín',
|
||||
'Moda y Textil',
|
||||
'Salud y Cuidados',
|
||||
'Movilidad y Mensajería',
|
||||
'Ocio y Deporte',
|
||||
'Turismo y Gastronomía',
|
||||
'Cultura, Educación y Medios',
|
||||
'Tecnología y Servicios Digitales',
|
||||
'Economía Circular y Reparación',
|
||||
'Finanzas Éticas y Seguros',
|
||||
'Servicios Profesionales',
|
||||
],
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<div class="cards-grid">
|
||||
<div v-for="product in products" :key="product.id">
|
||||
<ProductCard :key="product.key" :product="product" />
|
||||
<div v-for="(product, key) in products" :key="product.id">
|
||||
<ProductCard :key="key" :product="product" />
|
||||
</div>
|
||||
<div class="c-pagination">
|
||||
<BPagination
|
||||
v-model="currentPage"
|
||||
:v-if="products"
|
||||
:v-if="relatedProducts"
|
||||
:total-rows="rows"
|
||||
:per-page="perPage"
|
||||
/>
|
||||
@@ -29,11 +29,14 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
currentPage: 1,
|
||||
perPage: this.productsPerPage,
|
||||
rows: this.relatedProducts.length,
|
||||
perPage: this.productsPerPage ? this.productsPerPage : 8,
|
||||
//rows: this.relatedProducts ? this.relatedProducts.length : 0,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
rows() {
|
||||
return Array.isArray(this.relatedProducts) ? this.relatedProducts.length : 0
|
||||
},
|
||||
products() {
|
||||
const initial = (this.currentPage - 1) * this.perPage
|
||||
const final = this.currentPage * this.perPage
|
||||
|
||||
@@ -35,27 +35,20 @@ export default {
|
||||
selectedCategory: '',
|
||||
//TODO: change categories
|
||||
categories: [
|
||||
'Alimentación, bebida y tabaco',
|
||||
'Arte y ocio',
|
||||
'Bebés y niños pequeños',
|
||||
'Bricolaje',
|
||||
'Cámaras y ópticas',
|
||||
'Casa y jardín',
|
||||
'Economía e industria',
|
||||
'Electrónica',
|
||||
'Elementos religiosos y ceremoniales',
|
||||
'Equipamiento deportivo',
|
||||
'Juegos y juguetes',
|
||||
'Maletas y bolsos de viaje',
|
||||
'Material de oficina',
|
||||
'Mobiliario',
|
||||
'Multimedia',
|
||||
'Productos para adultos',
|
||||
'Productos para mascotas y animales',
|
||||
'Ropa y accesorios',
|
||||
'Salud y belleza',
|
||||
'Software',
|
||||
'Vehículos y recambios',
|
||||
'Alimentación',
|
||||
'Agricultura ',
|
||||
'Energía',
|
||||
'Hogar y jardín',
|
||||
'Moda y Textil',
|
||||
'Salud y Cuidados',
|
||||
'Movilidad y Mensajería',
|
||||
'Ocio y Deporte',
|
||||
'Turismo y Gastronomía',
|
||||
'Cultura, Educación y Medios',
|
||||
'Tecnología y Servicios Digitales',
|
||||
'Economía Circular y Reparación',
|
||||
'Finanzas Éticas y Seguros',
|
||||
'Servicios Profesionales',
|
||||
],
|
||||
}
|
||||
},
|
||||
|
||||
@@ -39,27 +39,20 @@ export default {
|
||||
searchCategory: '',
|
||||
|
||||
categories: [
|
||||
'Alimentación, bebida y tabaco',
|
||||
'Arte y ocio',
|
||||
'Bebés y niños pequeños',
|
||||
'Bricolaje',
|
||||
'Cámaras y ópticas',
|
||||
'Casa y jardín',
|
||||
'Economía e industria',
|
||||
'Electrónica',
|
||||
'Elementos religiosos y ceremoniales',
|
||||
'Equipamiento deportivo',
|
||||
'Juegos y juguetes',
|
||||
'Maletas y bolsos de viaje',
|
||||
'Material de oficina',
|
||||
'Mobiliario',
|
||||
'Multimedia',
|
||||
'Productos para adultos',
|
||||
'Productos para mascotas y animales',
|
||||
'Ropa y accesorios',
|
||||
'Salud y belleza',
|
||||
'Software',
|
||||
'Vehículos y recambios',
|
||||
'Alimentación',
|
||||
'Agricultura ',
|
||||
'Energía',
|
||||
'Hogar y jardín',
|
||||
'Moda y Textil',
|
||||
'Salud y Cuidados',
|
||||
'Movilidad y Mensajería',
|
||||
'Ocio y Deporte',
|
||||
'Turismo y Gastronomía',
|
||||
'Cultura, Educación y Medios',
|
||||
'Tecnología y Servicios Digitales',
|
||||
'Economía Circular y Reparación',
|
||||
'Finanzas Éticas y Seguros',
|
||||
'Servicios Profesionales',
|
||||
],
|
||||
}
|
||||
},
|
||||
|
||||
@@ -173,15 +173,11 @@ export default {
|
||||
|
||||
watch: {
|
||||
'$route.query'(newValue) {
|
||||
console.log('New Value:', newValue)
|
||||
console.log('New Value:', newValue.q)
|
||||
//console.log('Route changed:', this.$route.fullPath)
|
||||
//console.log('Current params:', this.$route.query)
|
||||
this.queryText = newValue.q || ''
|
||||
if (newValue.q) {
|
||||
this.updateData(newValue)
|
||||
} else {
|
||||
window.location.reload()
|
||||
}
|
||||
Object.assign(this.$data, this.$options.data())
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<div class="">
|
||||
<div class="content">
|
||||
<div class="c-content">
|
||||
<section class="hero-section">
|
||||
<div class="gradient">
|
||||
<div class="content">
|
||||
@@ -46,7 +45,7 @@
|
||||
</div>
|
||||
<TextWithImageAndButton />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -107,7 +106,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.content {
|
||||
.c-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@@ -12,7 +12,8 @@ export const useAuthStore = defineStore('auth', {
|
||||
cookiesAreAccepted: false,
|
||||
}),
|
||||
|
||||
persist: true, // TODO: Enable persistence. Cookies will be stored 'auth' 👉🏻 https://prazdevs.github.io/pinia-plugin-persistedstate/frameworks/nuxt
|
||||
//persist: true, // TODO: Enable persistence. Cookies will be stored 'auth' 👉🏻 https://prazdevs.github.io/pinia-plugin-persistedstate/frameworks/nuxt
|
||||
|
||||
// persist: {
|
||||
// key: 'authentication-cookie',
|
||||
// storage: piniaPluginPersistedstate.cookies({
|
||||
|
||||
Reference in New Issue
Block a user