Browse Source

banner轮播图

chenxiong 3 years ago
parent
commit
b361f65cc5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/index/index.vue

+ 1 - 1
pages/index/index.vue

@@ -5,7 +5,7 @@
 				<image  src="/static/logo2.png"></image>
 			</view>
 		</u-navbar>
-		<swiper :style="{'height':swiperHeight+'rpx'}" @change="e => current = e.current" :interval="interval" :duration="duration"  :autoplay="autoplay">
+		<swiper indicator-dots="true" indicator-color="#fff" indicator-active-color="#007AFF" :style="{'height':swiperHeight+'rpx'}" @change="e => current = e.current" :interval="interval" :duration="duration"  :autoplay="autoplay" :circular="true">
 			<swiper-item v-for="swiper in list">
 				<image style="width:100%"  @load="imageLoad" :src="$method.splitImgHost(swiper.adverUrl, true)" mode="widthFix"></image>
 			</swiper-item>