works.wxml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <view class="works-page {{noScroll}}">
  2. <view class="videoSection">
  3. <image wx:if="{{!videoLoad}}" class="video-playBtn" bindtap="videoPlayHandler" src="../../../static/image/play-btn.png"/>
  4. <image wx:if="{{!videoLoad}}" class="videoIcon" src="{{iconImg}}" />
  5. <video wx:if="{{videoLoad}}" id="worksVideo" class="videoSection" src="{{videoSrc}}" bindplay="videoPlay" bindtimeupdate="videoTimeupdate" bindprogress="videoProgress" bindwaiting="videoWaiting" bindended="videoEnd" bindpause="videoPause" controls="false" enable-progress-gesture="{{gesture}}" show-fullscreen-btn="{{fullScreenBtn}}" show-play-btn="{{playBtn}}"></video>
  6. </view>
  7. <!-- <video wx:if="{{isIOS}}" id="worksVideo" class="videoSection" src="{{videoUrl}}" autoPlay="{{autoPlay}}" controls="{{controls}}" show-center-play-btn="{{centerBtn}}" show-fullscreen-btn="{{fullScreenBtn}}" show-play-btn="{{playBtn}}"></video> -->
  8. <!-- <video wx:if="{{isIOS}}" id="worksVideo" class="videoSection" src="{{videoSrc}}" bindplay="videoPlay" bindwaiting="videoWaiting" bindended="videoEnd" bindpause="videoPause" controls="false" enable-progress-gesture="{{gesture}}" show-fullscreen-btn="{{fullScreenBtn}}" show-play-btn="{{playBtn}}"></video> -->
  9. <view class="readAuthorSection">
  10. <image class="avatar" src="{{authorAvatar}}" bindtap="goToUsers" data-uid="{{authorUid}}" />
  11. <view class="profession" wx:if="{{authorProfession}}">{{authorProfession}}</view>
  12. <text class="nickName" bindtap="goToUsers" data-uid="{{authorUid}}">{{author}}</text>
  13. <view class="follow" wx:if="{{authorUid !== myUid && authorUid !== 'c7f0a8fdd3a549ea9109a7b7486775f2'}}" bindtap="follow">
  14. <image src="{{isFans? '../../../static/image/have_followed_btn.png' : '../../../static/image/follow_btn.png'}}" />
  15. <!-- <text class="followBtn">{{isFans ? '已' : '+ '}}关注</text> -->
  16. </view>
  17. </view>
  18. <!-- 重新调整html费时间 用定位实现 -->
  19. <view class="userSection">
  20. <view class="peopleNum">
  21. <view class="title">共有{{totalRead}}个录音作品</view>
  22. </view>
  23. <scroll-view scroll-x class="scrollWrapper" scroll-with-animation="true">
  24. <view class="avatarRow">
  25. <view class="userItem" wx:for="{{user}}" wx:key="{{index}}">
  26. <image src="{{item.image}}" bindtap="goToOthers" lazy-load="true" data-uid="{{item.uid}}" data-title="{{item.title}}" />
  27. </view>
  28. </view>
  29. </scroll-view>
  30. </view>
  31. <view class="commentSection">
  32. <view class="title">评论({{total || 0}})</view>
  33. <view class="like" bindtap="likeWorks" wx:if="{{authorUid !== myUid}}" style="{{authorUid === 'c7f0a8fdd3a549ea9109a7b7486775f2'? 'margin-left:160rpx' : null}}">
  34. <text class="animation-flower {{addComeOut}}">+1</text>
  35. <image src="../../../static/image/add_flower.png" />
  36. </view>
  37. <input class="commentInput" bindconfirm="sendHandler" value="{{inputValue}}" confirm-type="send" placeholder="听了这么多,说点什么吧" bindinput="inputValue"></input>
  38. </view>
  39. <view class="commentArea">
  40. <view class="commentItem" wx:for="{{replyList}}" wx:key="{{index}}">
  41. <view class="avatar-wrapper" bindtap="goToUsers" data-uid="{{item.uid}}">
  42. <image class="avatar" src="{{item.avatar}}" />
  43. <view class="profession" wx:if="{{item.profession}}">{{item.profession}}</view>
  44. </view>
  45. <view class="commentCore">
  46. <text class="nickName">{{item.nickName}}</text>
  47. <text class="time">{{item.time}}</text>
  48. <view class="gut">
  49. <text class="gutInGut">{{item.text}}</text>
  50. <text wx:if="{{item.text.length >=22}}" class="whole" bindtap="goToDetail" data-id="{{item.id}}">全文</text>
  51. </view>
  52. <view class="commentAll" bindtap="goToDetail" data-id="{{item.id}}" wx:if="{{item.replyCount}}">
  53. <text>共有{{item.replyCount}}条评论</text>
  54. </view>
  55. </view>
  56. <view class="btnWrapper">
  57. <!-- <image class="commentBtn" src="../../../static/image/comment.png" bindtap="goToDetail" data-count="{{item.replyCount}}" data-id="{{item.id}}" data-index="{{index}}" />
  58. <text class="commentText" bindtap="goToDetail" data-id="{{item.id}}" data-count="{{item.replyCount}}" data-index="{{index}}">评论</text> -->
  59. <view class="hotAreaBigBigBig" bindtap="{{item.isLike? null:'likeCommend'}}" data-index="{{index}}" data-likes="{{item.likes}}" data-id="{{item.id}}">
  60. <image class="likeBtn" src="{{item.isLike? '../../../static/image/point.png' : '../../../static/image/like.png'}}" />
  61. <text class="likeText">{{item.likes}}</text>
  62. </view>
  63. <view class="hotAreaBigBigBig" bindtap="goToDetail" data-id="{{item.id}}" data-index="{{index}}">
  64. <image class="commentBtn" src="../../../static/image/comment.png" />
  65. <text class="commentText">回复</text>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="footSection">
  71. <image class="blackbord" src="../../../static/image/blackbord.png" />
  72. <view class="collectBtn footerBtn" bindtap="goToClass">
  73. <!-- <view wx:if="{{isIOS}}" class="stop-default"></view> -->
  74. <image src="../../../static/image/listen_carfully.png" />
  75. <text>听示范</text>
  76. </view>
  77. <view class="readingBtn footerBtn" bindtap="goToReading">
  78. <image class="microphone" src="../../../static/image/microphone.png" />
  79. <text>我要朗读</text>
  80. </view>
  81. <view class="shareBtn footerBtn" bindtap="openShare">
  82. <!-- <button open-type="share" plain="true" hover-class="none">
  83. <image src="../../../static/image/share.png" />
  84. <text>分享</text>
  85. </button> -->
  86. <image src="../../../static/image/share.png" />
  87. <text>分享</text>
  88. </view>
  89. </view>
  90. <!-- 分享框 -->
  91. <canvas canvas-id="myCanvas" style="width:300px; height: 525px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>
  92. <shareDialog id="share-dialog" shareType='works' bindShareDialogClose="shareDialogClose" shareId="{{id}}" />
  93. <!-- 评论框 -->
  94. <view class="replySection" wx:if="{{replyModal}}">
  95. <input bindblur="bindTextAreaBlur" bindconfirm="replySB" confirm-type="send" placeholder="回复" bindinput="inputSBValue" auto-focus auto-height />
  96. </view>
  97. <!-- 奖励弹窗 -->
  98. <cover-view class="modalWrapper" wx:if="{{ifReward}}">
  99. <cover-view class="rewardContent">
  100. <cover-image class="rewardWrapper" src="../../../static/image/reward_wrapper.png" />
  101. <cover-image class="rewardAvatar" src="{{authorAvatar}}" />
  102. <!-- <cover-view class="rewardNickName">奖励给朗读者:{{author}}</cover-view> -->
  103. <cover-view class="rewardNickName">播音主持特长生</cover-view>
  104. <cover-view class="sologan">声情并茂 悦耳动听</cover-view>
  105. <cover-view class="moneyArea">
  106. <cover-view class="{{howMuch ==='100' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="100">
  107. <!-- <cover-view class="{{howMuch ==='1' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="1"> -->
  108. 1.0元
  109. </cover-view>
  110. <cover-view class="{{howMuch ==='200' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="200">
  111. 2.0元
  112. </cover-view>
  113. <cover-view class="{{howMuch ==='300' ? 'money moneySelect' : 'money moneyNormal'}}" bindtap="setMoney" data-money="300">
  114. 3.0元
  115. </cover-view>
  116. </cover-view>
  117. <cover-view class="rewardBtn" bindtap="rewardMoney">立即奖励</cover-view>
  118. </cover-view>
  119. <cover-image class="quitBtn" bindtap="quitReward" src="../../../static/groupImg/cha.png" />
  120. </cover-view>
  121. <!-- 回到首页弹窗 -->
  122. <!-- <view class="goBackHome" bindtap="goBackHome" wx:if="{{goBackHome}}">
  123. <image src="../../../static/image/goBackHome.png" />
  124. </view> -->
  125. <goBackHome id="goBackHome" shareType="{{goBackHome}}" wx:if="{{goBackHome}}" />
  126. <MyToast bindShowAlert="showAlert" wx:if="{{alertFlag}}" />
  127. <myModal id="myModal" btnText="{{modalBtnText}}" type="{{modalType}}" isCloseShow="{{modalCloseShow}}" text="{{modalText}}" wx:if="{{isModalShow}}" bindconfirm="modalConfirmHandler" bindclose="modalCloseHandler" />
  128. <view hidden="{{hide}}">
  129. <Dialog bindmyevent="jurisdiction" />
  130. </view>
  131. </view>