Commit 86dc5df318834194507329a8ea33dbb83ab1fd14
1 parent
a4258ef6
购好物首页,添加banner自动轮播~
Showing
2 changed files
with
3 additions
and
2 deletions
src/components/swiper/swiper.vue
| 1 | 1 | <template> |
| 2 | 2 | <div class="swiper-box" :class="{'points-mall-swiper':isPointsMall}" v-if="swipers && swipers.length"> |
| 3 | - <swipe class="swipe" :autoplay="0" :touchable="swipers.length === 1 ? false : true" :show-indicators="options && options.showIndicators !== undefined ? options.showIndicators : showIndicators" @change="onChange"> | |
| 3 | + <swipe class="swipe" :autoplay="options && options.autoplay !== undefined ? options.autoplay : 0" :touchable="swipers.length === 1 ? false : true" :show-indicators="options && options.showIndicators !== undefined ? options.showIndicators : showIndicators" @change="onChange"> | |
| 4 | 4 | <swipe-item class="swipe-item" v-for="(item, index) in swipers" :key="index"> |
| 5 | 5 | <div class="item" @click="$parent.$parent.gotoDetail(item)"> |
| 6 | 6 | <div class="img-box"> | ... | ... |