|
@ -31,7 +31,7 @@ |
|
|
(props.isCase |
|
|
(props.isCase |
|
|
? case_detail_img_data[industry_id] |
|
|
? case_detail_img_data[industry_id] |
|
|
: hard_img_data[hardware_id] |
|
|
: hard_img_data[hardware_id] |
|
|
)?.length > 7 && sw.activeIndex != 0 |
|
|
|
|
|
|
|
|
)?.length > 7 && sw?.activeIndex != 0 |
|
|
" |
|
|
" |
|
|
></div> |
|
|
></div> |
|
|
<div |
|
|
<div |
|
@ -41,7 +41,7 @@ |
|
|
(props.isCase |
|
|
(props.isCase |
|
|
? case_detail_img_data[industry_id] |
|
|
? case_detail_img_data[industry_id] |
|
|
: hard_img_data[hardware_id] |
|
|
: hard_img_data[hardware_id] |
|
|
)?.length > 7 && !sw.isEnd |
|
|
|
|
|
|
|
|
)?.length > 7 && !sw?.isEnd |
|
|
" |
|
|
" |
|
|
></div> |
|
|
></div> |
|
|
</swiper> |
|
|
</swiper> |
|
@ -65,15 +65,15 @@ import 'swiper/css/navigation' |
|
|
// import required modules |
|
|
// import required modules |
|
|
import { FreeMode, Navigation } from 'swiper' |
|
|
import { FreeMode, Navigation } from 'swiper' |
|
|
const preSwiper = () => { |
|
|
const preSwiper = () => { |
|
|
const { activeIndex } = sw.value |
|
|
|
|
|
|
|
|
const { activeIndex } = sw.value || {} |
|
|
if (activeIndex != 0) { |
|
|
if (activeIndex != 0) { |
|
|
sw.value.slidePrev(500, false) |
|
|
|
|
|
|
|
|
sw.value?.slidePrev(500, false) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
const nextSwiper = () => { |
|
|
const nextSwiper = () => { |
|
|
const { isEnd } = sw.value |
|
|
|
|
|
|
|
|
const { isEnd } = sw.value || {} |
|
|
if (!isEnd) { |
|
|
if (!isEnd) { |
|
|
sw.value.slideNext(500, false) |
|
|
|
|
|
|
|
|
sw.value?.slideNext(500, false) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
const detailStore = useDetailStore() |
|
|
const detailStore = useDetailStore() |
|
|