wpfw_ewei_wxapp/pages/diy/template/tpl_video.wxml
2023-02-26 08:10:18 +08:00

8 lines
841 B
Plaintext

<view bindload="videoHeight" class="video_cover" style="height:{{diyitem.style.ratio==0?screenWidth/8*9:''}}{{diyitem.style.ratio==1?screenWidth/2*3:''}}{{diyitem.style.ratio==2?screenWidth*2:''}}rpx;" wx:if="{{cover!=diyitemid}}">
<image class="bg" src="{{diyitem.params.poster}}" style="height:100%;width:100%"></image>
<image bindtap="startplay" class="play" data-cover="{{diyitemid}}" src="{{play}}" style=""></image>
</view>
<video controls bindpause="bindpause" id="Video" muted="{{soundpic}}" showMuteBtn="{{true}}" src="{{diyitem.params.videourl}}" style="height:{{diyitem.style.ratio==0?screenWidth/8*9:''}}{{diyitem.style.ratio==1?screenWidth/2*3:''}}{{diyitem.style.ratio==2?screenWidth*2:''}}rpx;width:100%" wx:else>
<cover-image bindtap="changevoice" class="voice" src="{{sound?voice:mute}}"></cover-image>
</video>