works.wxml 5.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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" wx:if="{{authorUid !== myUid}}">
  7. <image src="{{isLike? '../../../static/image/liked.png' : '../../../static/image/like.png'}}" />
  8. <text class="likeBtn">{{isLike ? '已' : ''}}点赞</text>
  9. </view>
  10. <view class="follow" wx:if="{{authorUid !== myUid}}">
  11. <text class="followBtn" bindtap="follow" >{{isFans ? '已' : ''}}关注</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">共有{{totalRead}}人完成了录音</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}}" data-title="{{item.title}}" />
  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}}" wx:if="{{item.replyCount}}">
  39. 共有{{item.replyCount}}条评论
  40. </view>
  41. </view>
  42. <view class="btnWrapper">
  43. <image class="commentBtn" src="../../../static/image/comment.png" bindtap="setSBId" data-id="{{item.id}}" data-index="{{index}}" />
  44. <text class="commentText" bindtap="setSBId" data-id="{{item.id}}" data-index="{{index}}" >评论</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" data-index="{{index}}" data-likes="{{item.likes}}" data-id="{{item.id}}" bindtap="likeCommend">{{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. <canvas canvas-id="myCanvas" style="width:370px;z-index=99999; height: 507px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>
  71. <shareDialog id="share-dialog" shareType='works' shareId="{{id}}" />
  72. <!-- 评论框 -->
  73. <view class="replySection" wx:if="{{replyModal}}">
  74. <input bindblur="bindTextAreaBlur" bindconfirm="replySB" confirm-type="send" placeholder="回复" bindinput="inputSBValue" auto-focus auto-height />
  75. </view>
  76. <!-- 奖励弹窗 -->
  77. <cover-view class="modalWrapper" wx:if="{{ifReward}}">
  78. <cover-view class="rewardContent">
  79. <cover-image class="rewardWrapper" src="../../../static/image/reward_wrapper.png" />
  80. <cover-image class="rewardAvatar" src="{{authorAvatar}}" />
  81. <cover-view class="rewardNickName">奖励给朗读者:{{author}}</cover-view>
  82. <cover-view class="moneyArea">
  83. <cover-view class="{{howMuch ==='100' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="100">
  84. 1.0元
  85. </cover-view>
  86. <cover-view class="{{howMuch ==='200' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="200">
  87. 2.0元
  88. </cover-view>
  89. <cover-view class="{{howMuch ==='300' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="300">
  90. 3.0元
  91. </cover-view>
  92. </cover-view>
  93. <cover-view class="rewardBtn" bindtap="rewardMoney">立即奖励</cover-view>
  94. </cover-view>
  95. <cover-image class="quitBtn" bindtap="quitReward" src="../../../static/groupImg/cha.png" />
  96. </cover-view>
  97. </view>