26 lines
1.0 KiB
Plaintext
26 lines
1.0 KiB
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}}"
|
|
show-fullscreen-btn="{{showFull}}"
|
|
enable-progress-gesture="{{false}}"
|
|
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>
|
|
<!-- 视频播放按钮 -->
|
|
<!-- <cover-image class="videoLayer-play {{!isPlay ? 'show': ''}}" src="/static/icons/play_icon.png"></cover-image> -->
|
|
</swiper-item>
|
|
</swiper>
|