swiper.wxml 1.3 KB

1
  1. <view class="banner" style="{{'height:'+(height+'rpx')+';'}}"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="pic" style="{{'z-index:'+(zIndex===index?1:0)+';'}}" animation="{{num===index?showpic:hidepic}}" data-event-opts="{{[['touchstart',[['touchstart',['$event']]]],['touchend',[['touchend',['$event']]]]]}}" bindtouchstart="__e" bindtouchend="__e"><app-jump-button vue-id="{{'322d2898-1-'+index}}" open_type="{{item.open_type}}" url="{{item.url?item.url:item.page_url}}" params="{{item.params}}" bind:__l="__l" vue-slots="{{['default']}}"><image style="{{'height:'+(height+'rpx')+';'+('width:'+('100%')+';')}}" mode="{{imgMode}}" src="{{item[name]}}"></image></app-jump-button></view></block><view class="u-swiper-indicator" style="{{'bottom:'+('12rpx')+';'+('justify-content:'+('center')+';')}}"><block wx:if="{{mode==='rect'}}"><block><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['u-indicator-item-rect',(index===num)?'u-indicator-item-rect-active':'']}}"></view></block></block></block><block wx:if="{{mode==='round'}}"><block><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['u-indicator-item-round',(index===num)?'u-indicator-item-round-active':'']}}"></view></block></block></block></view></view>