dever 4 rokov pred
rodič
commit
ecbc2c3574
1 zmenil súbory, kde vykonal 10 pridanie a 5 odobranie
  1. 10 5
      pages/index/index.vue

+ 10 - 5
pages/index/index.vue

@@ -75,10 +75,15 @@
 					<view class="iconfont iconRightbutton" style="display: none;"></view>
 				</view>
 				<view class="list">
-					<view class="item" v-for="(v, k) in fetch.xuanchuan" :key="k" @click="xuanchuan(v.link)">
-						<image :src="v.pic"></image>
-						<view class="title">{{v.name}}</view>
-					</view>
+					<swiper class="item" autoplay :interval="3000" indicator-dots>
+						<swiper-item v-for="(v, k) in fetch.xuanchuan" :key="k" @click="xuanchuan(v.link)">
+							<view class="item">
+								<image :src="v.pic"></image>
+								<view class="title">{{v.name}}</view>
+							</view>
+						</swiper-item>
+					</swiper>
+					
 				</view>
 			</view>
 		</view>
@@ -385,7 +390,7 @@ uni-page-body {
 		
 		.item {
 			width: 100%;
-			height: 240rpx;
+			height: 380rpx;
 			position: relative;
 			
 			image {