Browse Source

商城轮播隐藏

hwb0 3 years ago
parent
commit
265dbb9b0b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/core/index.vue

+ 1 - 1
pages/core/index.vue

@@ -26,7 +26,7 @@
 		<view class="core-none"></view>
 		<view class="core-none"></view>
 		
 		
 		<!-- 轮播 -->
 		<!-- 轮播 -->
-		<view class="core-swiper">
+		<view class="core-swiper" v-if="swiperList.length">
 			<swiper class="core-swiper-centent" circular :indicator-dots="true" :autoplay="true" :interval="3000" indicator-active-color="#fff">
 			<swiper class="core-swiper-centent" circular :indicator-dots="true" :autoplay="true" :interval="3000" indicator-active-color="#fff">
 				<swiper-item class="swiper-item" v-for="(item, index) in swiperList" :key="index" @click="toPage(item)">
 				<swiper-item class="swiper-item" v-for="(item, index) in swiperList" :key="index" @click="toPage(item)">
 					<image :src="item.picUrl" mode=""></image>
 					<image :src="item.picUrl" mode=""></image>