video.wxml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <alert show="{{show}}" _CONFIG_="{{alert}}" bind:close='close'></alert>
  2. <view class='white-bg content'>
  3. <view class='video-memo'>
  4. <rich-text nodes='{{info.remark}}'></rich-text>
  5. <view class='mTop30 video relative' wx:if="{{info.video.length > 0}}">
  6. <video wx:if='{{index == 0}}' id='video_0' src='{{info.videoMu38 ? info.videoMu38 : info.video}}' bindended="playEnd"></video>
  7. <view wx:else bindtap='videoPlay' data-index='0'>
  8. <text class='icon-video-play'></text>
  9. <view class='bg'></view>
  10. <image src='{{info.video}}?x-oss-process=video/snapshot,t_7000,f_jpg,w_105,h_70,m_fast'></image>
  11. </view>
  12. </view>
  13. <view class='center'><text class='icon-tips font20 middle'></text><text class='middle'> 请参考样例拍摄视频并上传</text></view>
  14. <view class='center subtitleColor'><text class='icon-upload font20 middle'></text><text class='middle'> {{info.uploadNum ? info.uploadNum : 0}}人已传</text></view>
  15. </view>
  16. </view>
  17. <view class='white-bg mTop10' wx:if="{{isRestUpload}}">
  18. <view class='video-upload'>
  19. <video wx:if='{{index == 1}}' id='video_1' src='{{info.myVideo}}' bindended="playEnd"></video>
  20. <view bindtap='videoPlay' class='relative' wx:else data-index='1'>
  21. <text class='icon-video-play'></text>
  22. <view class='bg'></view>
  23. <image src='{{info.myVideo}}?x-oss-process=video/snapshot,t_7000,f_jpg,w_76,h_50,m_fast'></image>
  24. </view>
  25. </view>
  26. <view class='button-pad'>
  27. <button class='button button-danger button-radius' bindtap='addVideo'>重新上传</button>
  28. </view>
  29. </view>
  30. <view class='button-pad' wx:else>
  31. <button class='button button-warn button-radius' bindtap='addVideo'>我要上传</button>
  32. </view>
  33. <view class='modal' wx:if="{{percent > 0 && percent < 100}}">
  34. <progress percent='{{percent}}' show-info active activeColor="#09BB07" class='progress' active-mode="forwards" />
  35. </view>
  36. <view class='modal-bg' wx:if="{{percent > 0 && percent < 100}}"></view>