From a0e2942efc8643beb4c0eb055b6b9d350875a123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Tue, 10 Sep 2024 18:19:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BD=AE=E6=92=AD=E5=9B=BE?= =?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-carousel/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/model-carousel/index.vue b/src/components/model-carousel/index.vue index 5bf8e800..931c66f6 100644 --- a/src/components/model-carousel/index.vue +++ b/src/components/model-carousel/index.vue @@ -8,6 +8,7 @@ :effect="interval_types ? 'coverflow': 'slide'" :autoplay="autoplay" :allow-touch-move="false" + :speed="500" slides-per-view="auto" :space-between="0" :initial-slide="4" @@ -177,6 +178,8 @@ const slideChange = (swiper: { realIndex: number }) => { const seat_length = seat_list.value.length; if (seat_length == 2 && swiper.realIndex == 3) { actived_index.value = 1; + } else if (seat_length == 3) { + actived_index.value = 0; } else { actived_index.value = swiper.realIndex - seat_list.value.length; }