Merge remote-tracking branch 'origin/dev-yxl' into dev-sws
commit
23b0c5a01e
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ const title_style = computed(() => {
|
||||||
});
|
});
|
||||||
// 标题是否居中
|
// 标题是否居中
|
||||||
const title_center = computed(() => {
|
const title_center = computed(() => {
|
||||||
return form.value.is_title_center ? 'jc-c' : '';
|
return form.value.is_title_center == '1' ? 'jc-c' : '';
|
||||||
});
|
});
|
||||||
// 关键字设置
|
// 关键字设置
|
||||||
const keyword_style = computed(() => {
|
const keyword_style = computed(() => {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ interface defaultSearch {
|
||||||
content: {
|
content: {
|
||||||
title: string;
|
title: string;
|
||||||
title_link: object;
|
title_link: object;
|
||||||
is_title_center: number;
|
is_title_center: string;
|
||||||
keyword_show: string;
|
keyword_show: string;
|
||||||
keyword_list: carousel_list[];
|
keyword_list: carousel_list[];
|
||||||
right_show: string;
|
right_show: string;
|
||||||
|
|
@ -33,7 +33,7 @@ const defaultSearch: defaultSearch = {
|
||||||
content: {
|
content: {
|
||||||
title: '',
|
title: '',
|
||||||
title_link: {},
|
title_link: {},
|
||||||
is_title_center: 0,
|
is_title_center: '0',
|
||||||
keyword_show: '1',
|
keyword_show: '1',
|
||||||
right_show: '1',
|
right_show: '1',
|
||||||
right_title: '更多',
|
right_title: '更多',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue