works.wxml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <view>
  2. <video id="worksVideo" class="videoSection" poster="{{iconImg}}" src="{{videoSrc}}" bindplay="videoPlay" bindended="videoEnd" bindpause="videoPause" muted="true" controls="false" enable-progress-gesture="false" show-fullscreen-btn="{{fullScreenBtn}}" show-play-btn="{{playBtn}}"></video>
  3. <view class="readAuthorSection">
  4. <image class="avatar" src="{{authorAvatar}}" bindtap="goToUsers" data-uid="{{authorUid}}" />
  5. <view class="profession" wx:if="{{authorProfession}}">{{authorProfession}}</view>
  6. <text class="nickName" bindtap="goToUsers" data-uid="{{authorUid}}">{{author}}</text>
  7. <view class="like" bindtap="likeWorks" wx:if="{{authorUid !== myUid}}">
  8. <image src="{{isLike? '../../../static/image/red_like.png' :'../../../static/image/red_like_empty.png' }}" />
  9. <text class="likeBtn">{{isLike ? '已' : ''}}点赞</text>
  10. </view>
  11. <view class="follow" wx:if="{{authorUid !== myUid}}">
  12. <image src="{{isFans? '../../../static/image/fully_heart.png' : '../../../static/image/empty_heart.png'}}" />
  13. <text class="followBtn" bindtap="follow">{{isFans ? '已' : ''}}关注</text>
  14. </view>
  15. </view>
  16. <view class="userSection">
  17. <view class="peopleNum">
  18. <image class="peoplesIcon" src="../../../static/image/peoples.png" />
  19. <view class="title">共有{{totalRead}}人完成了录音</view>
  20. </view>
  21. <scroll-view scroll-x class="scrollWrapper" scroll-with-animation="true">
  22. <view class="avatarRow">
  23. <view class="userItem" wx:for="{{user}}" wx:key="{{index}}">
  24. <image src="{{item.image}}" bindtap="goToOthers" lazy-load="true" data-uid="{{item.uid}}" data-title="{{item.title}}" />
  25. </view>
  26. </view>
  27. </scroll-view>
  28. </view>
  29. <view class="commentSection">
  30. <view class="title">评论({{total}})</view>
  31. <input class="commentInput" bindconfirm="sendHandler" confirm-type="send" placeholder="听了这么多,说点什么吧" bindinput="inputValue"></input>
  32. </view>
  33. <view class="commentArea">
  34. <view class="commentItem" wx:for="{{replyList}}" wx:key="{{index}}">
  35. <view class="avatar-wrapper" bindtap="goToUsers" data-uid="{{item.uid}}">
  36. <image class="avatar" src="{{item.avatar}}" />
  37. <view class="profession" wx:if="{{item.profession}}">{{item.profession}}</view>
  38. </view>
  39. <view class="commentCore">
  40. <text class="nickName">{{item.nickName}}</text>
  41. <text class="time">{{item.time}}</text>
  42. <text class="gut">{{item.text}}</text>
  43. <view class="commentAll" bindtap="goToDetail" data-id="{{item.id}}" data-count="{{item.replyCount}}" wx:if="{{item.replyCount}}">
  44. 共有{{item.replyCount}}条评论
  45. </view>
  46. </view>
  47. <view class="btnWrapper">
  48. <image class="commentBtn" src="../../../static/image/comment.png" bindtap="goToDetail" data-id="{{item.id}}" data-index="{{index}}" />
  49. <text class="commentText" bindtap="goToDetail" data-id="{{item.id}}" data-index="{{index}}">
  50. 回复
  51. </text>
  52. <!-- <image class="commentBtn" src="../../../static/image/comment.png" bindtap="goToDetail" data-count="{{item.replyCount}}" data-id="{{item.id}}" data-index="{{index}}" />
  53. <text class="commentText" bindtap="goToDetail" data-id="{{item.id}}" data-count="{{item.replyCount}}" data-index="{{index}}">评论</text> -->
  54. <image class="likeBtn" src="../../../static/image/like.png" data-index="{{index}}" data-likes="{{item.likes}}" data-id="{{item.id}}" bindtap="likeCommend" />
  55. <text class="likeText" data-index="{{index}}" data-likes="{{item.likes}}" data-id="{{item.id}}" bindtap="likeCommend">
  56. {{item.likes}}
  57. </text>
  58. </view>
  59. </view>
  60. </view>
  61. <view class="footSection">
  62. <image class="blackbord" src="../../../static/image/blackbord.png" />
  63. <view class="collectBtn footerBtn" bindtap="reward">
  64. <image src="../../../static/image/bonus.png" />
  65. <text>奖励</text>
  66. </view>
  67. <view class="readingBtn footerBtn" bindtap="goToReading">
  68. <image class="microphone" src="../../../static/image/microphone.png" />
  69. <text>我要朗读</text>
  70. </view>
  71. <view class="shareBtn footerBtn" bindtap="openShare">
  72. <!-- <button open-type="share" plain="true" hover-class="none">
  73. <image src="../../../static/image/share.png" />
  74. <text>分享</text>
  75. </button> -->
  76. <image src="../../../static/image/share.png" />
  77. <text>分享</text>
  78. </view>
  79. </view>
  80. <!-- 分享框 -->
  81. <!-- <canvas canvas-id="myCanvas" style="width:750rpx;z-index=99999; height: 1334rpx;"></canvas> -->
  82. <canvas canvas-id="myCanvas" style="width:375px;z-index=99999; height: 667px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>
  83. <shareDialog id="share-dialog" shareType='works' shareId="{{id}}" />
  84. <!-- 评论框 -->
  85. <view class="replySection" wx:if="{{replyModal}}">
  86. <input bindblur="bindTextAreaBlur" bindconfirm="replySB" confirm-type="send" placeholder="回复" bindinput="inputSBValue" auto-focus auto-height />
  87. </view>
  88. <!-- 奖励弹窗 -->
  89. <cover-view class="modalWrapper" wx:if="{{ifReward}}">
  90. <cover-view class="rewardContent">
  91. <cover-image class="rewardWrapper" src="../../../static/image/reward_wrapper.png" />
  92. <cover-image class="rewardAvatar" src="{{authorAvatar}}" />
  93. <!-- <cover-view class="rewardNickName">奖励给朗读者:{{author}}</cover-view> -->
  94. <cover-view class="rewardNickName">播音主持特长生</cover-view>
  95. <cover-view class="sologan">声情并茂 悦耳动听</cover-view>
  96. <cover-view class="moneyArea">
  97. <cover-view class="{{howMuch ==='100' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="100">
  98. 1.0元
  99. </cover-view>
  100. <cover-view class="{{howMuch ==='200' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="200">
  101. 2.0元
  102. </cover-view>
  103. <cover-view class="{{howMuch ==='300' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="300">
  104. 3.0元
  105. </cover-view>
  106. </cover-view>
  107. <cover-view class="rewardBtn" bindtap="rewardMoney">立即奖励</cover-view>
  108. </cover-view>
  109. <cover-image class="quitBtn" bindtap="quitReward" src="../../../static/groupImg/cha.png" />
  110. </cover-view>
  111. <!-- 回到首页弹窗 -->
  112. <!-- <view class="goBackHome" bindtap="goBackHome" wx:if="{{goBackHome}}">
  113. <image src="../../../static/image/goBackHome.png" />
  114. </view> -->
  115. <goBackHome id="goBackHome" shareType="{{goBackHome}}" wx:if="{{goBackHome}}" />
  116. </view>