You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
2.7 KiB
1 lines
2.7 KiB
<block wx:if="{{showSwiper}}"><view class="swiper-box" style="{{'margin:'+('0 '+margin+'rpx')+';'}}"><swiper class="swiper-ad fill-base" style="{{'height:'+(height+'rpx')+';'}}" indicator-dots="{{false}}" autoplay="{{playVideo?false:autoplay}}" indicator-color="{{indicatorColor}}" indicator-active-color="{{indicatorActiveColor}}" circular="{{circular}}" previous-margin="{{$root.g0>1?previousMargin:0}}" next-margin="{{$root.g1>1?nextMargin:0}}" easing-function="linear" data-event-opts="{{[['change',[['handerChange',['$event']]]]]}}" bindchange="__e"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item style="{{'border-radius:'+(borderRadius+'rpx')+';'}}"><view data-event-opts="{{[['tap',[['changeItem',['$0'],[[['list','',index]]]]]]]}}" class="img-box" catchtap="__e"><block wx:if="{{item.jump_type=='video'}}"><block><block wx:if="{{!playVideo}}"><block><view data-event-opts="{{[['tap',[['playCurrent',['$event']]]]]}}" class="play-video-info flex-center c-base abs" catchtap="__e"><view class="play-video flex-center c-base radius"><view class="iconfont icon-play-video _i"></view></view></view><image class="swiper-ad__img radius-16" style="{{'border-radius:'+(borderRadius+'rpx')+';'}}" mode="aspectFill" src="{{item.img}}"></image></block></block><block wx:if="{{playVideo}}"><view class="video-box"><video class="my-video" id="video_id" object-fit="contain" loop="{{false}}" enable-play-gesture="{{true}}" enable-progress-gesture="{{false}}" src="{{item.jump_url}}" autoplay="{{playVideo}}" data-event-opts="{{[['play',[['onPlay',['$event']]]],['pause',[['onPause',['$event']]]],['ended',[['onEnded',['$event']]]],['timeupdate',[['onTimeUpdate',['$event']]]],['waiting',[['onWaiting',['$event']]]],['progress',[['onProgress',['$event']]]],['loadedmetadata',[['onLoadedMetaData',['$event']]]]]}}" bindplay="__e" bindpause="__e" bindended="__e" bindtimeupdate="__e" bindwaiting="__e" bindprogress="__e" bindloadedmetadata="__e"></video></view></block></block></block><block wx:else><image class="swiper-ad__img" style="{{'border-radius:'+(borderRadius+'rpx')+';'}}" mode="aspectFill" src="{{item.img||item}}"></image></block></view></swiper-item></block></swiper><block wx:if="{{$root.g2}}"><view class="numbers" style="{{'text-align:'+(indicatorStyle)+';'}}"><view class="number">{{activeIndex+1+"/"+$root.g3}}</view></view></block><block wx:if="{{$root.g4}}"><view class="dots" style="{{'text-align:'+(indicatorStyle)+';'+('bottom:'+(dotBottom+'rpx')+';')}}"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="dot" style="{{'background-color:'+(index==activeIndex?indicatorActiveColor:indicatorColor)+';'+('width:'+(index==activeIndex?dotWidth+'rpx':'12rpx')+';')}}"></view></block></view></block></view></block> |