|
@ -25,11 +25,12 @@ |
|
|
import Logo1 from '@/assets/img/banner/logo1.png' |
|
|
import Logo1 from '@/assets/img/banner/logo1.png' |
|
|
import Logo from '@/assets/img/banner/logo.png' |
|
|
import Logo from '@/assets/img/banner/logo.png' |
|
|
import LogoWhite from '@/assets/img/banner/logo3.png' |
|
|
import LogoWhite from '@/assets/img/banner/logo3.png' |
|
|
import { useSwiperStore, useCountStore } from '@/store' |
|
|
|
|
|
|
|
|
import { useSwiperStore, useCountStore, useDetailStore } from '@/store' |
|
|
import { onMounted, ref, watch } from 'vue' |
|
|
import { onMounted, ref, watch } from 'vue' |
|
|
import { storeToRefs } from 'pinia' |
|
|
import { storeToRefs } from 'pinia' |
|
|
const swiperStore = useSwiperStore() |
|
|
const swiperStore = useSwiperStore() |
|
|
const countStore = useCountStore() |
|
|
const countStore = useCountStore() |
|
|
|
|
|
const detailStore = useDetailStore() |
|
|
const { activeIndex } = storeToRefs(swiperStore) |
|
|
const { activeIndex } = storeToRefs(swiperStore) |
|
|
|
|
|
|
|
|
const getActiveClass = index => { |
|
|
const getActiveClass = index => { |
|
@ -40,6 +41,7 @@ const getActiveClass = index => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const scrollToPage = index => { |
|
|
const scrollToPage = index => { |
|
|
|
|
|
detailStore.changeRecruitDetail(false) |
|
|
// 让数字动 |
|
|
// 让数字动 |
|
|
swiperStore.swiper.slideTo(index, 0, false) |
|
|
swiperStore.swiper.slideTo(index, 0, false) |
|
|
if (index == 3) { |
|
|
if (index == 3) { |
|
|