luban-mall/unpackage/dist/dev/mp-weixin/components/swipers/swiper-pu.wxml

1 line
1.4 KiB
Plaintext

<view class="banner-box data-v-4176028a"><swiper style="{{'height:'+(newHeight)+';'}}" current="{{bcurrent}}" autoplay="{{isplay}}" circular="{{true}}" interval="{{3000}}" duration="{{500}}" data-event-opts="{{[['change',[['changeBanner',['$event']]]]]}}" bindchange="__e" class="data-v-4176028a"><block wx:for="{{bannerList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item class="data-v-4176028a"><view data-event-opts="{{[['tap',[['chooseImg',[index,'$0'],[[['bannerList','',index,'url']]]]]]]}}" class="img-box data-v-4176028a" bindtap="__e"><image class="img animated fadeIn data-v-4176028a" style="{{'border-radius:'+(newRadius)+';'+('height:'+(newHeight)+';')}}" src="{{item.imgSrc}}" mode="aspectFill"></image><block wx:if="{{item.isVideo&&isVedio}}"><image class="posia animated bounceIn data-v-4176028a" style="width:126rpx;height:126rpx;z-index:1;" src="/static/public/video.png" mode data-event-opts="{{[['tap',[['playVideo',[index]]]]]}}" catchtap="__e"></image></block></view></swiper-item></block></swiper><block wx:if="{{isDot}}"><view class="dot-box data-v-4176028a" style="{{'bottom:'+(newBottom)+';'}}"><block wx:for="{{bannerList.length}}" wx:for-item="itemd" wx:for-index="indexd" wx:key="indexd"><view data-event-opts="{{[['tap',[['chooseDot',[indexd]]]]]}}" class="item-dot data-v-4176028a" style="{{'background-color:'+(bcurrent==indexd?activec:defaultc)+';'}}" bindtap="__e"></view></block></view></block></view>