修改轮播图的显示
parent
d02e7d35c7
commit
a0e2942efc
|
|
@ -8,6 +8,7 @@
|
||||||
:effect="interval_types ? 'coverflow': 'slide'"
|
:effect="interval_types ? 'coverflow': 'slide'"
|
||||||
:autoplay="autoplay"
|
:autoplay="autoplay"
|
||||||
:allow-touch-move="false"
|
:allow-touch-move="false"
|
||||||
|
:speed="500"
|
||||||
slides-per-view="auto"
|
slides-per-view="auto"
|
||||||
:space-between="0"
|
:space-between="0"
|
||||||
:initial-slide="4"
|
:initial-slide="4"
|
||||||
|
|
@ -177,6 +178,8 @@ const slideChange = (swiper: { realIndex: number }) => {
|
||||||
const seat_length = seat_list.value.length;
|
const seat_length = seat_list.value.length;
|
||||||
if (seat_length == 2 && swiper.realIndex == 3) {
|
if (seat_length == 2 && swiper.realIndex == 3) {
|
||||||
actived_index.value = 1;
|
actived_index.value = 1;
|
||||||
|
} else if (seat_length == 3) {
|
||||||
|
actived_index.value = 0;
|
||||||
} else {
|
} else {
|
||||||
actived_index.value = swiper.realIndex - seat_list.value.length;
|
actived_index.value = swiper.realIndex - seat_list.value.length;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue