| | |
| | | <template> |
| | | <view class="items-container borderBox colCen"> |
| | | <swiper class="swiper-box" :autoplay="true" :interval="3000" :duration="300" :indicator-active-color="'#fff'" :indicator-dots="true" circular> |
| | | <swiper-item v-for="(items,index) in popBannerSList" :key='index'> |
| | | <view class="swiper-item defIcon" @click="goUrl(items)"> |
| | | <image :src="items.image" mode="aspectFit"></image> |
| | | </view> |
| | | </swiper-item> |
| | | </swiper> |
| | | </view> |
| | | <swiper style="height: 100%;" class="swiper-box" :autoplay="true" :interval="3000" :duration="300" :indicator-active-color="'#fff'" :indicator-dots="true" circular> |
| | | <swiper-item v-for="(items,index) in popBannerSList" :key='index'> |
| | | <view class="swiper-item defIcon" style="width: 100%;height: 100%;" @click="goUrl(items)"> |
| | | <image :src="items.image" mode="aspectFit"></image> |
| | | </view> |
| | | </swiper-item> |
| | | </swiper> |
| | | <!-- <view class="swiper-container swiper-box swiper-item"> |
| | | |
| | | </view> --> |
| | | </template> |
| | | |
| | | <script> |
| | | import utils from '@/utils/utils.js' |
| | | export default { |
| | | props: { |
| | | popBannerSList: Array |
| | |
| | | created() |
| | | { |
| | | console.log(this.popBannerSList); |
| | | }, |
| | | methods: |
| | | { |
| | | goUrl(info) |
| | | { |
| | | console.log(info); |
| | | utils.goUrl(info, this) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .items-container { |
| | | width: 346rpx; |
| | | height: 100%; |
| | | |
| | | .swiper-box { |
| | | width: 100%; |
| | | height: 100%; |
| | |
| | | height: 100%; |
| | | } |
| | | } |
| | | } |
| | | |
| | | </style> |