works.wxml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. <image src="{{isFans? '../../../static/image/fully_heart.png' : '../../../static/image/empty_heart.png'}}" />
  12. <text class="followBtn" bindtap="follow">{{isFans ? '已' : ''}}关注</text>
  13. </view>
  14. </view>
  15. <view class="userSection">
  16. <view class="peopleNum">
  17. <image class="peoplesIcon" src="../../../static/image/peoples.png" />
  18. <view class="title">共有{{totalRead}}人完成了录音</view>
  19. </view>
  20. <scroll-view scroll-x class="scrollWrapper" scroll-with-animation="true">
  21. <view class="avatarRow">
  22. <view class="userItem" wx:for="{{user}}" wx:key="{{index}}">
  23. <image src="{{item.image}}" bindtap="goToOthers" data-uid="{{item.uid}}" data-title="{{item.title}}" />
  24. </view>
  25. </view>
  26. </scroll-view>
  27. </view>
  28. <view class="commentSection">
  29. <view class="title">评论({{total}})</view>
  30. <input class="commentInput" bindconfirm="sendHandler" confirm-type="send" placeholder="听了这么多,说点什么吧" bindinput="inputValue"></input>
  31. </view>
  32. <view class="commentArea">
  33. <view class="commentItem" wx:for="{{replyList}}" wx:key="{{index}}">
  34. <image class="avatar" src="{{item.avatar}}" />
  35. <view class="commentCore">
  36. <text class="nickName">{{item.nickName}}</text>
  37. <text class="time">{{item.time}}</text>
  38. <text class="gut">{{item.text}}</text>
  39. <view class="commentAll" bindtap="goToDetail" data-id="{{item.id}}" data-count="{{item.replyCount}}" wx:if="{{item.replyCount}}">
  40. 共有{{item.replyCount}}条评论
  41. </view>
  42. </view>
  43. <view class="btnWrapper">
  44. <image class="commentBtn" src="../../../static/image/comment.png" bindtap="setSBId" data-id="{{item.id}}" data-index="{{index}}" />
  45. <text class="commentText" bindtap="setSBId" data-id="{{item.id}}" data-index="{{index}}">评论</text>
  46. <image class="likeBtn" src="../../../static/image/like.png" data-index="{{index}}" data-likes="{{item.likes}}" data-id="{{item.id}}" bindtap="likeCommend" />
  47. <text class="likeText" data-index="{{index}}" data-likes="{{item.likes}}" data-id="{{item.id}}" bindtap="likeCommend">{{item.likes}}</text>
  48. </view>
  49. </view>
  50. </view>
  51. <view class="footSection">
  52. <image class="blackbord" src="../../../static/image/blackbord.png" />
  53. <view class="collectBtn footerBtn" bindtap="reward">
  54. <image src="../../../static/image/bonus.png" />
  55. <text>奖励</text>
  56. </view>
  57. <view class="readingBtn footerBtn" bindtap="goToReading">
  58. <image class="microphone" src="../../../static/image/microphone.png" />
  59. <text>我要朗读</text>
  60. </view>
  61. <view class="shareBtn footerBtn" bindtap="openShare">
  62. <!-- <button open-type="share" plain="true" hover-class="none">
  63. <image src="../../../static/image/share.png" />
  64. <text>分享</text>
  65. </button> -->
  66. <image src="../../../static/image/share.png" />
  67. <text>分享</text>
  68. </view>
  69. </view>
  70. <!-- 分享框 -->
  71. <!-- <canvas canvas-id="myCanvas" style="width:750rpx;z-index=99999; height: 1334rpx;"></canvas> -->
  72. <canvas canvas-id="myCanvas" style="width:375px;z-index=99999; height: 668px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>
  73. <shareDialog id="share-dialog" shareType='works' shareId="{{id}}" />
  74. <!-- 评论框 -->
  75. <view class="replySection" wx:if="{{replyModal}}">
  76. <input bindblur="bindTextAreaBlur" bindconfirm="replySB" confirm-type="send" placeholder="回复" bindinput="inputSBValue" auto-focus auto-height />
  77. </view>
  78. <!-- 奖励弹窗 -->
  79. <cover-view class="modalWrapper" wx:if="{{ifReward}}">
  80. <cover-view class="rewardContent">
  81. <cover-image class="rewardWrapper" src="../../../static/image/reward_wrapper.png" />
  82. <cover-image class="rewardAvatar" src="{{authorAvatar}}" />
  83. <cover-view class="rewardNickName">奖励给朗读者:{{author}}</cover-view>
  84. <cover-view class="moneyArea">
  85. <cover-view class="{{howMuch ==='100' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="100">
  86. 1.0元
  87. </cover-view>
  88. <cover-view class="{{howMuch ==='200' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="200">
  89. 2.0元
  90. </cover-view>
  91. <cover-view class="{{howMuch ==='300' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="300">
  92. 3.0元
  93. </cover-view>
  94. </cover-view>
  95. <cover-view class="rewardBtn" bindtap="rewardMoney">立即奖励</cover-view>
  96. </cover-view>
  97. <cover-image class="quitBtn" bindtap="quitReward" src="../../../static/groupImg/cha.png" />
  98. </cover-view>
  99. <!-- 回到首页弹窗 -->
  100. <!-- <view class="goBackHome" bindtap="goBackHome" wx:if="{{goBackHome}}">
  101. <image src="../../../static/image/goBackHome.png" />
  102. </view> -->
  103. <goBackHome id="goBackHome" shareType="{{goBackHome}}" wx:if="{{goBackHome}}" />
  104. </view>