videoDetails.wxml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <view class="flexible">
  2. <video autoplay loop controls="false" show-fullscreen-btn="{{false}}" show-center-play-btn="{{false}}" class="full col center" src="{{imgUrl + article.filePath}}" bindtap="clickVideo">
  3. <!-- <cover-image src="../../../imgs/video-play.png" class="videoPlay"></cover-image> -->
  4. <cover-view class="videoContent {{showComments?'showComments':''}}" wx:if="{{showInfo}}">
  5. <cover-view class="wrp row crosscenter">
  6. <cover-view class="circle">
  7. <cover-image mode="widthFix" src="{{article.avatar}}" class="avatar"></cover-image>
  8. </cover-view>
  9. <cover-view>{{article.nickname}}</cover-view>
  10. </cover-view>
  11. <cover-view class="intop txtsub">{{article.articleContent}}</cover-view>
  12. <cover-view class="bortop commentsContatiner {{allowComments?'':'hide'}}">
  13. <cover-view class="comment row textsub wrp" style="color:#333">
  14. <cover-view class="row flexible crosscenter input item" catchtap="clickCommemntInput">
  15. <cover-image src="../../../imgs/input.png" mode="scaleToFill"></cover-image>
  16. <cover-view class="subtxt" wx:if="{{!commentFocus}}" style="line-height: 1.8em">说点什么...</cover-view>
  17. <input wx:if="{{commentFocus}}" placeholder="说点什么..." cursor-spacing="10" class="flexible" focus="{{commentFocus}}" bindfocus="focusComment" bindblur="blurComment" confirm-type="done" bindconfirm="clickCommentconfirm" bindinput="inputComment" value="{{comment}}"></input>
  18. </cover-view>
  19. <cover-view class="row crosscenter item" wx:if="{{isFocused}}" bindtap="clickCommentconfirm">确定</cover-view>
  20. <cover-view class="row crosscenter subtxt item" wx:if="{{!isFocused}}" bindtap="clickFavor">
  21. <cover-view>
  22. <cover-image src="../../../imgs/favorite{{article.is_zan=='1'?'-checked':''}}.png" mode="scaleToFill"></cover-image>
  23. </cover-view>
  24. <cover-view>{{article.num_zan}}</cover-view>
  25. </cover-view>
  26. <cover-view class="row crosscenter subtxt item" wx:if="{{!isFocused}}" bindtap="clickCollection">
  27. <cover-view>
  28. <cover-image src="../../../imgs/collection{{article.is_follow=='1'?'-checked':''}}.png" mode="scaleToFill"></cover-image>
  29. </cover-view>
  30. <cover-view>{{article.num_follow}}</cover-view>
  31. </cover-view>
  32. <cover-view class="row crosscenter subtxt item" bindtap="clickComments" wx:if="{{!isFocused}}">
  33. <cover-view>
  34. <cover-image src="../../../imgs/comments.png" mode="scaleToFill"></cover-image>
  35. </cover-view>
  36. <cover-view>{{article.num_comment}}</cover-view>
  37. </cover-view>
  38. </cover-view>
  39. <cover-view class="comments scrolly">
  40. <cover-view class="inright row" wx:for="{{comments}}" wx:key>
  41. <cover-image src="{{item.upload_head}}" class="gapright"></cover-image>
  42. <cover-view class="col flexible">
  43. <cover-view class="txtsub nickname gapbot">{{item.nickname}}</cover-view>
  44. <cover-view class="row content wrpright borbot">
  45. <cover-view class="flexible" style="color: #333;word-break: break-all;word-wrap:break-word;white-space:pre-line;">{{item.content}}</cover-view>
  46. <cover-view class="subtxt">{{item.addtime}}</cover-view>
  47. </cover-view>
  48. </cover-view>
  49. </cover-view>
  50. </cover-view>
  51. </cover-view>
  52. </cover-view>
  53. </video>
  54. </view>