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

11 lines
1.2 KiB
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.shortPoster}}" style="height:100%;width:100%" wx:if="{{diyitem.params.shortPoster!=''}}"></image>
<block wx:else>
<image class="bg" src="{{diyitem.params.default}}/169.png" style="height:100%;width:100%" wx:if="{{diyitem.style.ratio==0}}"></image>
<image class="bg" src="{{diyitem.params.default}}/43.png" style="height:100%;width:100%" wx:if="{{diyitem.style.ratio==1}}"></image>
<image class="bg" src="{{diyitem.params.default}}/11.png" style="height:100%;width:100%" wx:if="{{diyitem.style.ratio==2}}"></image>
</block>
<image bindtap="detailStartplay" class="play" data-cover="{{diyitemid}}" src="{{play}}" style=""></image>
</view>
<video controls bindpause="bindpause" id="Video" muted="{{soundpic}}" showMuteBtn="{{true}}" src="{{diyitem.params.turl}}" 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></video>