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; }