ajuste para el slider

This commit is contained in:
Jaume Solís 2024-04-04 17:19:24 +02:00
parent 3e383d0d28
commit c5b0fa717a
2 changed files with 3 additions and 3 deletions
api/db
src/components/quasar-components/carousel

View File

@ -74,7 +74,7 @@ async function contact_Request(name, phone, email, message) {
async function findAll_banner() { async function findAll_banner() {
const conn = await connect(); const conn = await connect();
const [rows] = await conn.query(`SELECT * FROM floranet.banners`); const [rows] = await conn.query(`CALL sliders_get`);
return rows; return rows;
} }

View File

@ -48,11 +48,11 @@ export default defineComponent({
<div ref="target" class="vertical-carousel-container" style="min-height: 100dvh"> <div ref="target" class="vertical-carousel-container" style="min-height: 100dvh">
<q-carousel navigation-position="right" style="min-height: 100dvh" v-model="slide" navigation autoplay infinite <q-carousel navigation-position="right" style="min-height: 100dvh" v-model="slide" navigation autoplay infinite
animated v-if="!!banners.length" class="custom-carousel"> animated v-if="!!banners.length" class="custom-carousel">
<q-carousel-slide v-for="(item, i) in banners" :key="i" :name="item.title" :img-src="item.image"> <q-carousel-slide v-for="(item, i) in banners" :key="i" :name="item.longName" :img-src="item.url">
<div class="vertical-carousel-content"> <div class="vertical-carousel-content">
<header class="carousel-content-header"> <header class="carousel-content-header">
<h1 class="carousel-header-title"> <h1 class="carousel-header-title">
{{ item.title }} {{ item.longName }}
</h1> </h1>
</header> </header>