index.wxml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <view class="commentBox" wx:if="{{show}}">
  3. <view class="commentBg" catchtap="close" catchtouchmove="true"></view>
  4. <view class="comment {{tabBarPadding?'seat2':''}}" animation="{{animationData}}">
  5. <view class="header">
  6. <view class="hl">评论 {{totalSize}}</view>
  7. <view class="hr" catchtap="close">×</view>
  8. </view>
  9. <view class="body" bindtap="cancelId">
  10. <view class="body-box">
  11. <view class="content" wx:for="{{list}}" wx:key="id">
  12. <image src="{{item.user.avatar}}" class="c-avatar" />
  13. <view class="c-right">
  14. <view class="nickName">
  15. {{item.user.nickName||item.user.eid}}
  16. </view>
  17. <view class="detailDesc">{{item.detailDesc}}</view>
  18. <view class="replyList" wx:if="{{item.replyVOList.length>0}}">
  19. <view class="reply" wx:for="{{item.replyVOList}}" wx:for-item="reply" wx:key='id'>
  20. <text class="replyTitle">{{reply.user.nickName||reply.user.eid}}</text>
  21. <text class="replyContent">:{{reply.content}}</text>
  22. </view>
  23. </view>
  24. <view class="record">
  25. <view class="time">{{filters.formatDate(item.gmtCreated,3)}}</view>
  26. <view class="record-right">
  27. <view class="iconBox" catchtap="{{item.isLike? null:'setLike'}}" data-index="{{index}}"
  28. data-id="{{item.id}}">
  29. <image class="icon" src="{{item.isLike? '/static/like_reply.png' : '/static/like_reply_grey.png'}}" />
  30. <text>{{item.likeCount}}</text>
  31. </view>
  32. <view class="iconBox" catchtap="ReplyComment" data-index="{{index}}" data-id="{{item.id}}">
  33. <image class="icon" src="/static/reply_icon.png" />
  34. <text>{{item.replyCount}}</text>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="footer">
  43. <input class="input" bindinput="bindKeyInput" value="{{detailDesc}}" placeholder="留下你的赞美,鼓励一下"
  44. focus="{{ifGetFocus}}" />
  45. <view class="submit" bindtap="sendReply">发送</view>
  46. </view>
  47. </view>
  48. </view>