Browse Source

优化商品详情页图片轮播指示点显示

master
邓平艺 4 years ago
parent
commit
8b5d2f1c2d
  1. 2
      pages/goodsDetail/index.vue

2
pages/goodsDetail/index.vue

@ -3,7 +3,7 @@
<skeleton :loading="skeletonLoading" :row="12" :showAvatar="false" :showTitle="true">
<block v-if="isRight(goods_detail)">
<!-- 商品图片轮播 -->
<swiper :current="current" :indicator-dots="true" :circular="true" class="swiper-box" indicator-active-color="#FE9903">
<swiper :current="current" :indicator-dots="goods_detail.banners.length > 1 ? true : false" :circular="true" class="swiper-box" indicator-active-color="#FE9903">
<swiper-item v-for="(item, index) in goods_detail.banners" :key="item.id">
<image :src="item.cover" style="width: 100%; height: 100%;" @click="lookImg(index)"></image>
</swiper-item>

Loading…
Cancel
Save