index.wxml 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <view class="commentBox" wx:if="{{show}}">
  3. <!-- <view class="commentBox"> -->
  4. <view class="commentBg" catchtap="close" catchtouchmove="true"></view>
  5. <view class="comment {{tabBarPadding?'seat2':''}}" animation="{{animationData}}">
  6. <view class="header">
  7. <view class="hl {{type=='comment'?'currentH':''}}" bindtap="changeType" data-type="comment">评论
  8. {{count.commentNum}}
  9. </view>
  10. <view class="hl {{type=='like'?'currentH':''}}" bindtap="changeType" data-type="like">赞 {{count.likeNum}}</view>
  11. <view class=" hr" catchtap="close">×</view>
  12. </view>
  13. <scroll-view scroll-y="true" class="body" bindscrolltolower='loadMore' bindtap="cancelId">
  14. <view class="body-box">
  15. <view class="content" wx:for="{{list}}" wx:key="id">
  16. <image src="{{item.user.avatar}}" class="c-avatar" data-uid='{{item.user.uid}}' bindtap="jumpUserInfo" />
  17. <view class="c-right" wx:if="{{type=='comment'}}">
  18. <view class="nickName">
  19. {{item.user.nickName||item.user.eid}}
  20. </view>
  21. <view class="detailDesc" data-id='{{item.id}}' data-type='1' bind:longpress="onLongPress"
  22. hover-class='hoverClass'>
  23. {{item.detailDesc}}
  24. </view>
  25. <view class="replyList" wx:if="{{item.replyVOList.length>0}}">
  26. <view class="reply" wx:for="{{item.replyVOList}}" wx:for-item="reply" wx:key='id'
  27. data-parent="{{item.id}}" data-id='{{reply.id}}' data-type='2' bind:longpress="onLongPress"
  28. hover-class='hoverClass2'>
  29. <text class="replyTitle">{{reply.user.nickName||reply.user.eid}}</text>
  30. <text class="replyContent">:{{reply.content}}</text>
  31. </view>
  32. </view>
  33. <view class="record">
  34. <view class="time">{{filters.formatDate(item.gmtCreated,3)}}</view>
  35. <view class="record-right">
  36. <view class="iconBox" catchtap="{{item.isLike? null:'setLike'}}" data-index="{{index}}"
  37. data-id="{{item.id}}">
  38. <image class="icon" src="{{item.isLike? '/static/like_reply.png' : '/static/like_reply_grey.png'}}" />
  39. <text>{{item.likeCount}}</text>
  40. </view>
  41. <view class="iconBox" catchtap="ReplyComment" data-index="{{index}}" data-id="{{item.id}}">
  42. <image class="icon" src="/static/reply_icon.png" />
  43. <text>{{item.replyCount}}</text>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="c-like" wx:else>
  49. <view class="left">
  50. <view class="nickName">
  51. {{item.user.nickName||item.user.eid}}
  52. </view>
  53. <view class="time">{{item.gmtCreated}}</view>
  54. </view>
  55. <view class="follow {{item.isFans?'isFans':''}}" data-user='{{item}}' bindtap="setFans">
  56. <image src="{{item.isFans?'/static/follow_2.png':'/static/follow_3.png'}}" class="character" mode="" />
  57. <text class="text">{{item.isFans?'已关注':'关注'}}</text>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </scroll-view>
  63. <!-- 快捷回复 -->
  64. <view class=" quick" wx:if="{{quickShow&&type=='comment'}}">
  65. <view class="close" catchtap="quickClose">×</view>
  66. <view class="quickTop">
  67. <view class="left">留下你的赞美,鼓励一下。</view>
  68. <view class="right">试试下面的快捷回复吧~</view>
  69. </view>
  70. <scroll-view class="contents" scroll-x="true" enhanced show-scrollbar="{{false}}">
  71. <view class="remark" bindtap="quickRemark" data-remark='你读的也太棒啦!' style="background-color: #FC614E">
  72. 你读的也太棒啦!
  73. </view>
  74. <view class="remark" bindtap="quickRemark" data-remark='很优秀,向你学习'>
  75. 很优秀,向你学习
  76. </view>
  77. <view class="remark" bindtap="quickRemark" data-remark='挺好的,期待更好' style="background-color: #26B944">
  78. 挺好的,期待更好
  79. </view>
  80. <view class="remark" bindtap="quickRemark" data-remark='还可以,继续努力' style="background-color: #7DB2FF">
  81. 还可以,继续努力
  82. </view>
  83. </scroll-view>
  84. </view>
  85. <view class="footer">
  86. <input class="input" bindinput="bindKeyInput" value="{{detailDesc}}" placeholder="留下你的赞美,鼓励一下"
  87. focus="{{ifGetFocus}}" />
  88. <view class="submit" bindtap="sendReply">发送</view>
  89. </view>
  90. </view>
  91. </view>