works.wxml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <view>
  2. <video class="videoSection" src="{{videoSrc}}" bindplay="videoPlay" bindended="videoEnd" bindpause="videoPause" muted="true" controls="false" show-fullscreen-btn="{{fullScreenBtn}}" show-play-btn="{{playBtn}}"></video>
  3. <view class="readAuthorSection">
  4. <image class="avatar" src="{{authorAvatar}}" />
  5. <text class="nickName">{{author}}</text>
  6. <view class="like">
  7. <image src="../../../static/image/liked.png" />
  8. <text class="likeBtn">点赞</text>
  9. </view>
  10. <view class="follow">
  11. <text class="followBtn" bindtap="follow">关注</text>
  12. </view>
  13. </view>
  14. <view class="userSection">
  15. <view class="peopleNum">
  16. <image class="peoplesIcon" src="../../../static/image/peoples.png" />
  17. <view class="title">共有12345人完成了录音</view>
  18. </view>
  19. <scroll-view scroll-x class="scrollWrapper" scroll-with-animation="true">
  20. <view class="avatarRow">
  21. <view class="userItem" wx:for="{{user}}" wx:key="{{index}}">
  22. <image src="{{item.image}}" bindtap="goToOthers" data-uid="{{item.uid}}" />
  23. </view>
  24. </view>
  25. </scroll-view>
  26. </view>
  27. <view class="commentSection">
  28. <view class="title">评论({{total}})</view>
  29. <input class="commentInput" bindconfirm="sendHandler" confirm-type="send" placeholder="听了这么多,说点什么吧" bindinput="inputValue"></input>
  30. </view>
  31. <view class="commentArea">
  32. <view class="commentItem" wx:for="{{replyList}}" wx:key="{{index}}">
  33. <image class="avatar" src="{{item.avatar}}" />
  34. <view class="commentCore">
  35. <text class="nickName">{{item.nickName}}</text>
  36. <text class="time">{{item.time}}</text>
  37. <text class="gut">{{item.text}}</text>
  38. <view class="commentAll" bindtap="goToDetail" data-id="{{item.id}}" data-count="{{item.replyCount}}">
  39. 共有{{item.replyCount}}条评论
  40. </view>
  41. </view>
  42. <view class="btnWrapper">
  43. <image class="commentBtn" src="../../../static/image/comment.png" />
  44. <text class="commentText">评论</text>
  45. <image class="likeBtn" src="../../../static/image/like.png" data-index="{{index}}" data-likes="{{item.likes}}" data-id="{{item.id}}" bindtap="likeCommend" />
  46. <text class="likeText">{{item.likes}}</text>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="footSection">
  51. <image class="blackbord" src="../../../static/image/blackbord.png" />
  52. <view class="collectBtn footerBtn" bindtap="reward">
  53. <image src="../../../static/image/bonus.png" />
  54. <text>奖励</text>
  55. </view>
  56. <view class="readingBtn footerBtn" bindtap="goToReading">
  57. <image class="microphone" src="../../../static/image/microphone.png" />
  58. <text>我要朗读</text>
  59. </view>
  60. <view class="shareBtn footerBtn">
  61. <button open-type="share" plain="true" hover-class="none">
  62. <image src="../../../static/image/share.png" />
  63. <text>分享</text>
  64. </button>
  65. </view>
  66. </view>
  67. <!-- 奖励弹窗 -->
  68. <cover-view class="modalWrapper" wx:if="{{ifReward}}">
  69. <cover-view class="rewardContent">
  70. <cover-image class="rewardWrapper" src="../../../static/image/reward_wrapper.png" />
  71. <cover-image class="rewardAvatar" src="{{authorAvatar}}" />
  72. <cover-view class="rewardNickName">奖励给朗读者:{{author}}</cover-view>
  73. <cover-view class="moneyArea">
  74. <cover-view class="{{howMuch ==='1000' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="1000">
  75. 1.0元
  76. </cover-view>
  77. <cover-view class="{{howMuch ==='2000' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="2000">
  78. 2.0元
  79. </cover-view>
  80. <cover-view class="{{howMuch ==='3000' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="3000">
  81. 3.0元
  82. </cover-view>
  83. </cover-view>
  84. <cover-view class="rewardBtn" bindtap="rewardMoney">立即奖励</cover-view>
  85. </cover-view>
  86. </cover-view>
  87. </view>