You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					53 lines
				
				1.6 KiB
			
		
		
			
		
	
	
					53 lines
				
				1.6 KiB
			| 
											3 months ago
										 | <template> | ||
|  |     <view> | ||
|  |         <swiper class="swiper" :current="currentIndex" :vertical="true" @change="handleSwiperChange"> | ||
|  |             <swiper-item v-for="(imageUrl, index) in swiperImages" :key="index"> | ||
|  |                 <view class="swiper-item" :style="{ backgroundImage: `url(${imageUrl})` }" | ||
|  | 				@click="index == 6 ? gotoPath('/bmzm/chapter6/index') : null"></view> | ||
|  |             </swiper-item> | ||
|  |         </swiper> | ||
|  | 		<MusicControl /> | ||
|  |     </view> | ||
|  | </template> | ||
|  | 
 | ||
|  | <script> | ||
|  | import MusicControl from '@/components/MusicControl.vue'; | ||
|  | export default { | ||
|  | 	components: { | ||
|  | 	    MusicControl | ||
|  | 	}, | ||
|  |     data() { | ||
|  |         return { | ||
|  |             currentIndex: 0, | ||
|  |             popupIndex: 1, | ||
|  |             swiperImages: [ | ||
|  |                 'https://static.ticket.sz-trip.com/epicSoul/bmzm/chapter3/img2.png', | ||
|  |                 'https://static.ticket.sz-trip.com/epicSoul/bmzm/chapter3/img3.png', | ||
|  |                 'https://static.ticket.sz-trip.com/epicSoul/bmzm/chapter3/img4.png', | ||
|  |                 'https://static.ticket.sz-trip.com/epicSoul/bmzm/chapter3/img5.png', | ||
|  |                 'https://static.ticket.sz-trip.com/epicSoul/bmzm/chapter3/img6.png', | ||
|  |                 'https://static.ticket.sz-trip.com/epicSoul/bmzm/chapter3/img7.png', | ||
|  |                 'https://static.ticket.sz-trip.com/epicSoul/bmzm/chapter4/img1.png' | ||
|  |             ] | ||
|  |         }; | ||
|  |     }, | ||
|  |     methods: { | ||
|  |         handleSwiperChange(e) { | ||
|  |             this.currentIndex = e.detail.current; | ||
|  |         } | ||
|  |     } | ||
|  | }; | ||
|  | </script> | ||
|  | 
 | ||
|  | <style lang="scss" scoped> | ||
|  | .swiper { | ||
|  |     width: 100vw; | ||
|  |     height: 100vh; | ||
|  | } | ||
|  | 
 | ||
|  | .swiper-item { | ||
|  |     width: 100vw; | ||
|  |     height: 100vh; | ||
|  |     background-size: 100% 100%; | ||
|  | } | ||
|  | </style> |