1 |
- <view class="uni-swiper__warp data-v-80e7bbe4"><slot></slot><block wx:if="{{mode==='default'}}"><view class="uni-swiper__dots-box data-v-80e7bbe4" style="{{'bottom:'+(dots.bottom+'px')+';'}}"><block wx:for="{{info}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['clickItem',[index]]]]]}}" class="uni-swiper__dots-item uni-swiper__dots-bar data-v-80e7bbe4" style="{{'width:'+((index===current?dots.width*2:dots.width)+'px')+';'+('height:'+(dots.width/3+'px')+';')+('background-color:'+(index!==current?dots.backgroundColor:dots.selectedBackgroundColor)+';')+('border-radius:'+('0px')+';')}}" bindtap="__e"></view></block></view></block><block wx:if="{{mode==='dot'}}"><view class="uni-swiper__dots-box data-v-80e7bbe4" style="{{'bottom:'+(dots.bottom+'px')+';'}}"><block wx:for="{{info}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['clickItem',[index]]]]]}}" class="uni-swiper__dots-item data-v-80e7bbe4" style="{{'width:'+(dots.width+'px')+';'+('height:'+(dots.height+'px')+';')+('background-color:'+(index!==current?dots.backgroundColor:dots.selectedBackgroundColor)+';')+('border:'+(index!==current?dots.border:dots.selectedBorder)+';')}}" bindtap="__e"></view></block></view></block><block wx:if="{{mode==='round'}}"><view class="uni-swiper__dots-box data-v-80e7bbe4" style="{{'bottom:'+(dots.bottom+'px')+';'}}"><block wx:for="{{info}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['clickItem',[index]]]]]}}" class="{{['uni-swiper__dots-item','','data-v-80e7bbe4',index===current&&'uni-swiper__dots-long']}}" style="{{'width:'+((index===current?dots.width*3:dots.width)+'px')+';'+('height:'+(dots.height+'px')+';')+('background-color:'+(index!==current?dots.backgroundColor:dots.selectedBackgroundColor)+';')+('border:'+(index!==current?dots.border:dots.selectedBorder)+';')}}" bindtap="__e"></view></block></view></block><block wx:if="{{mode==='nav'}}"><view class="uni-swiper__dots-box uni-swiper__dots-nav data-v-80e7bbe4" style="{{'background-color:'+(dotsStyles.backgroundColor)+';'+('bottom:'+('0')+';')}}"><text class="uni-swiper__dots-nav-item data-v-80e7bbe4" style="{{'color:'+(dotsStyles.color)+';'}}">{{current+1+'/'+info.length+' '+info[current][field]}}</text></view></block><block wx:if="{{mode==='indexes'}}"><view class="uni-swiper__dots-box data-v-80e7bbe4" style="{{'bottom:'+(dots.bottom+'px')+';'}}"><block wx:for="{{info}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['clickItem',[index]]]]]}}" class="uni-swiper__dots-item uni-swiper__dots-indexes data-v-80e7bbe4" style="{{'width:'+(dots.width+'px')+';'+('height:'+(dots.height+'px')+';')+('color:'+(index===current?dots.selectedColor:dots.color)+';')+('background-color:'+(index!==current?dots.backgroundColor:dots.selectedBackgroundColor)+';')+('border:'+(index!==current?dots.border:dots.selectedBorder)+';')}}" bindtap="__e"><text class="uni-swiper__dots-indexes-text data-v-80e7bbe4">{{index+1}}</text></view></block></view></block><block wx:if="{{mode==='left'}}"><view class="uni-swiper__dots-box uni-swiper__dots-left data-v-80e7bbe4"><text class="uni-swiper__dots-left-text data-v-80e7bbe4">{{''+(current+1+'/'+info.length)+''}}</text></view></block></view>
|