works.wxml 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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" bindtap="likeWorks">
  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" bindtap="openShare">
  61. <!-- <button open-type="share" plain="true" hover-class="none">
  62. <image src="../../../static/image/share.png" />
  63. <text>分享</text>
  64. </button> -->
  65. <image src="../../../static/image/share.png" />
  66. <text>分享</text>
  67. </view>
  68. </view>
  69. <!-- 奖励弹窗 -->
  70. <cover-view class="modalWrapper" wx:if="{{ifReward}}">
  71. <cover-view class="rewardContent">
  72. <cover-image class="rewardWrapper" src="../../../static/image/reward_wrapper.png" />
  73. <cover-image class="rewardAvatar" src="{{authorAvatar}}" />
  74. <cover-view class="rewardNickName">奖励给朗读者:{{author}}</cover-view>
  75. <cover-view class="moneyArea">
  76. <cover-view class="{{howMuch ==='100' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="100">
  77. 1.0元
  78. </cover-view>
  79. <cover-view class="{{howMuch ==='200' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="200">
  80. 2.0元
  81. </cover-view>
  82. <cover-view class="{{howMuch ==='300' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="300">
  83. 3.0元
  84. </cover-view>
  85. </cover-view>
  86. <cover-view class="rewardBtn" bindtap="rewardMoney">立即奖励</cover-view>
  87. </cover-view>
  88. </cover-view>
  89. <canvas canvas-id="myCanvas" style="width:370px;z-index=99999; height: 507px; position: absolute; left: -99rpx; top: -999rpx;"></canvas>
  90. <shareDialog id="share-dialog" shareType = 'works'/>
  91. </view>