<template>
			<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
				:duration="duration">
					<swiper-item v-for="bannerItem in carouselList">
						<!-- <uni-link :href="bannerItem.destinationAddress?bannerItem.destinationAddress:'#'"> -->
							<image :src="bannerItem.filePath" mode="widthFix" @click="jumpUrl(bannerItem.destinationAddress)"></image>
						<!-- </uni-link> -->
					</swiper-item>
			</swiper>
</template>

<script>
	export default{
		props:['carouselList'],
		data(){
			return {
				indicatorDots: true,
				autoplay: true,
				interval: 2000,
				duration: 500,
			}
		},
		name:'carousel',
		components:{},
		mounted(){
			console.log(this.carouselList)
		},
		methods:{
			jumpUrl(url){
				if(!url){
					return false
				}else{
					// // #ifdef H5
					// window.open(url);
					// // #endif
					window.location.href = url;
				}
			}
		}
	}
</script>

<style lang="scss">
	.swiper{
		height:228rpx;
	}
</style>