index.wxml 4.5 KB

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