index.wxml 5.6 KB

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