22 lines
794 B
Plaintext
22 lines
794 B
Plaintext
|
|
<swiper class="videoSwiper" vertical bindchange="changeVideo">
|
|
<swiper-item class="videoSwiperItem" wx:for="{{videoList}}" wx:key="videoItem" circular="{{videoList.length > 2}}">
|
|
<video
|
|
class="videoSwiperItemVideo"
|
|
id="video{{item.video_id}}"
|
|
src="{{item.path_url || ''}}"
|
|
controls="{{controls}}"
|
|
object-fit="{{fit}}"
|
|
show-center-play-btn="{{showPlay}}"
|
|
data-videoid="{{item.video_id}}"
|
|
bindtap="videoPlay"
|
|
bindplay="vipdeBindPlay"
|
|
bindpause="vipdeBindPlay"
|
|
loop
|
|
wx:if="{{item.video_id == playId}}"
|
|
>
|
|
</video>
|
|
<image class="videoCover" src="{{item.cover}}" mode="aspectFill"></image>
|
|
</swiper-item>
|
|
</swiper>
|