|
@ -1,111 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<NavBar /> |
|
|
<NavBar /> |
|
|
<swiper |
|
|
|
|
|
:virtual="true" |
|
|
|
|
|
:direction="'vertical'" |
|
|
|
|
|
:slidesPerView="1" |
|
|
|
|
|
:spaceBetween="0" |
|
|
|
|
|
:mousewheel="true" |
|
|
|
|
|
:speed="800" |
|
|
|
|
|
:pagination="{ |
|
|
|
|
|
clickable: true, |
|
|
|
|
|
}" |
|
|
|
|
|
:keyboard="{ |
|
|
|
|
|
enabled: true, |
|
|
|
|
|
onlyInViewport: false, |
|
|
|
|
|
pageUpDown: true, |
|
|
|
|
|
}" |
|
|
|
|
|
@swiper="onSwiper" |
|
|
|
|
|
@slideChange="onSlideChange" |
|
|
|
|
|
:modules="modules" |
|
|
|
|
|
> |
|
|
|
|
|
<swiper-slide :key="0" :virtualIndex="0"> |
|
|
|
|
|
<HeaderSwiper /> |
|
|
|
|
|
</swiper-slide> |
|
|
|
|
|
<swiper-slide :key="1" :virtualIndex="1"> |
|
|
|
|
|
<Service /> |
|
|
|
|
|
</swiper-slide> |
|
|
|
|
|
<swiper-slide :key="2" :virtualIndex="2"> |
|
|
|
|
|
<CaseSummary /> |
|
|
|
|
|
</swiper-slide> |
|
|
|
|
|
<swiper-slide :key="3" :virtualIndex="3"> |
|
|
|
|
|
<CasePictureList /> |
|
|
|
|
|
</swiper-slide> |
|
|
|
|
|
<swiper-slide :key="4" :virtualIndex="4"> |
|
|
|
|
|
<CaseDetails /> |
|
|
|
|
|
</swiper-slide> |
|
|
|
|
|
<swiper-slide :key="5" :virtualIndex="5"> |
|
|
|
|
|
<SoftHardwareSummary /> |
|
|
|
|
|
</swiper-slide> |
|
|
|
|
|
<swiper-slide :key="6" :virtualIndex="6"> |
|
|
|
|
|
<SoftHardwarePictureList /> |
|
|
|
|
|
</swiper-slide> |
|
|
|
|
|
<swiper-slide :key="7" :virtualIndex="7"> |
|
|
|
|
|
<SoftHardwareDetail /> |
|
|
|
|
|
</swiper-slide> |
|
|
|
|
|
<swiper-slide :key="8" :virtualIndex="8"> |
|
|
|
|
|
<CorporateCulture /> |
|
|
|
|
|
</swiper-slide> |
|
|
|
|
|
<swiper-slide :key="9" :virtualIndex="9"> |
|
|
|
|
|
<VideoPlayer /> |
|
|
|
|
|
</swiper-slide> |
|
|
|
|
|
<swiper-slide :key="10" :virtualIndex="10"> |
|
|
|
|
|
<ContactUs /> |
|
|
|
|
|
</swiper-slide> |
|
|
|
|
|
</swiper> |
|
|
|
|
|
|
|
|
<router-view /> |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
|
|
|
// Import Swiper Vue.js components |
|
|
|
|
|
import { Swiper, SwiperSlide } from 'swiper/vue' |
|
|
|
|
|
// import required modules |
|
|
|
|
|
import { Mousewheel, Pagination, Virtual, Keyboard } from 'swiper' |
|
|
|
|
|
// import views to swiper |
|
|
|
|
|
import Service from '@/views/Service' |
|
|
|
|
|
import HeaderSwiper from '@/views/HeaderSwiper' |
|
|
|
|
|
import VideoPlayer from '@/views/VideoPlayer' |
|
|
|
|
|
import CaseSummary from '@/views/CaseSummary' |
|
|
|
|
|
import CasePictureList from '@/views/CasePictureList' |
|
|
|
|
|
import CaseDetails from '@/views/CaseDetails' |
|
|
|
|
|
import ContactUs from '@/views/ContactUs' |
|
|
|
|
|
import SoftHardwareSummary from '@/views/SoftHardwareSummary' |
|
|
|
|
|
import CorporateCulture from '@/views/CorporateCulture' |
|
|
|
|
|
import SoftHardwarePictureList from '@/views/SoftHardwarePictureList' |
|
|
|
|
|
import SoftHardwareDetail from '@/views/SoftHardwareDetail' |
|
|
|
|
|
|
|
|
<script setup> |
|
|
import NavBar from 'cpns/NavBar' |
|
|
import NavBar from 'cpns/NavBar' |
|
|
|
|
|
|
|
|
// Import Swiper styles |
|
|
|
|
|
import 'swiper/css' |
|
|
|
|
|
import 'swiper/css/pagination' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
|
components: { |
|
|
|
|
|
Swiper, |
|
|
|
|
|
SwiperSlide, |
|
|
|
|
|
ContactUs, |
|
|
|
|
|
VideoPlayer, |
|
|
|
|
|
NavBar, |
|
|
|
|
|
CorporateCulture, |
|
|
|
|
|
CaseDetails, |
|
|
|
|
|
HeaderSwiper, |
|
|
|
|
|
Service, |
|
|
|
|
|
CaseSummary, |
|
|
|
|
|
SoftHardwarePictureList, |
|
|
|
|
|
SoftHardwareDetail, |
|
|
|
|
|
SoftHardwareSummary, |
|
|
|
|
|
CasePictureList, |
|
|
|
|
|
}, |
|
|
|
|
|
setup() { |
|
|
|
|
|
const onSwiper = swiper => { |
|
|
|
|
|
// console.log(swiper) |
|
|
|
|
|
} |
|
|
|
|
|
const onSlideChange = swiper => { |
|
|
|
|
|
const { activeIndex } = swiper |
|
|
|
|
|
} |
|
|
|
|
|
return { |
|
|
|
|
|
onSwiper, |
|
|
|
|
|
onSlideChange, |
|
|
|
|
|
modules: [Mousewheel, Pagination, Virtual, Keyboard], |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
|
|
|
</script> |
|
|
</script> |