commentCell.wxml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <view class="comment-class-contain" bind:tap="tapCommentAction">
  2. <image class="head-img" src="{{ data.userInfo.avatar || '../../images/default_head.png'}}"></image>
  3. <view class="right-wrap {{showLine?'bottom-line':''}}">
  4. <view class="name-like-wrap">
  5. <text class="name">{{data.userInfo.userName || ""}}</text>
  6. <!-- <view class="like-wrap">
  7. <image class="like-icon" src="{{ data.like || '../../images/default_head.png'}}"></image>
  8. <text class="like">{{data.likeNum}}</text>
  9. </view> -->
  10. </view>
  11. <text class="content">{{data.content || ''}}</text>
  12. <view class="flex-center pad-bot-20">
  13. <text class="time ">{{data.createTimeText || ''}}</text>
  14. <text wx:if="{{data.isCommentUser}}" class="delete" catch:tap="tapDeleteAction">删除</text>
  15. </view>
  16. <block wx:if="{{data.replyList.length}}">
  17. <view class="reply-wrap" catch:tap="tapCommentAction" data-current-item="{{item}}"
  18. data-current-index="{{index}}" wx:for="{{data.replyList}}" wx:key="index">
  19. <image class="reply-head" src="{{ item.userInfo.avatar || '../../images/default_head.png'}}"></image>
  20. <view class="reply-item flex-1">
  21. <view class="flex-center-between flex-1">
  22. <view class="flex-center">
  23. <text class="reply-name">{{item.userInfo.userName}} <text class="owner"
  24. wx:if="{{!!item.userInfo.isAuthor}}">作者</text></text>
  25. <block wx:if="{{item.toUserInfo}}">
  26. <image class="icon" src="{{ data.like || '../../images/arrow_right.png'}}"></image>
  27. <text class="reply-name">{{item.toUserInfo.userName}}<text class="owner"
  28. wx:if="{{!!item.toUserInfo.isAuthor}}">作者</text></text>
  29. </block>
  30. </view>
  31. <!-- <view class="like-wrap">
  32. <image class="like-icon" src="{{ data.like || '../../images/default_head.png'}}"></image>
  33. <text class="like">{{item.likeNum}}</text>
  34. </view> -->
  35. </view>
  36. <text class="content">{{item.content || ''}}</text>
  37. <view class="flex-center">
  38. <text class="time">{{item.createTimeText || ''}}</text>
  39. <text wx:if="{{item.isCommentUser}}" data-current-item="{{item}}" data-current-index="{{index}}"
  40. class="delete" catch:tap="tapDeleteAction">删除</text>
  41. </view>
  42. </view>
  43. <!-- <text wx:if="{{data.replyNum && data.replyNum > 3}}" class="look-all"
  44. catch:tap="loolDetailAction">查看全部{{data.replyNum}}条回复</text>
  45. <text wx:if="{{!data.son}}" class="look-all" catch:tap="loolDetailAction">回复</text> -->
  46. </view>
  47. </block>
  48. </view>
  49. </view>