Merge remote-tracking branch 'origin/dev-yxl' into dev-sws

v1.0.0
sws 2024-09-10 18:44:41 +08:00
commit 23b0c5a01e
3 changed files with 6 additions and 3 deletions

View File

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

View File

@ -51,7 +51,7 @@ const title_style = 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(() => {

View File

@ -11,7 +11,7 @@ interface defaultSearch {
content: {
title: string;
title_link: object;
is_title_center: number;
is_title_center: string;
keyword_show: string;
keyword_list: carousel_list[];
right_show: string;
@ -33,7 +33,7 @@ const defaultSearch: defaultSearch = {
content: {
title: '',
title_link: {},
is_title_center: 0,
is_title_center: '0',
keyword_show: '1',
right_show: '1',
right_title: '更多',