index.wxml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <view class="comments-header">
  2. <t-tag t-class="comments-header-tag {{commentType === '' ? 'comments-header-active' : ''}}" data-commentType="" bindtap="changeTag">
  3. 全部({{countObj.commentCount}})
  4. </t-tag>
  5. <t-tag
  6. t-class="comments-header-tag {{commentType === '5' ? 'comments-header-active' : ''}}"
  7. wx:if="{{countObj.uidCount !== '0'}}"
  8. data-commentType="5"
  9. bindtap="changeTag"
  10. >
  11. 自己({{countObj.uidCount}})
  12. </t-tag>
  13. <t-tag t-class="comments-header-tag {{commentType === '4' ? 'comments-header-active' : ''}}" data-commentType="4" bindtap="changeTag">
  14. 带图({{countObj.hasImageCount}})
  15. </t-tag>
  16. <t-tag t-class="comments-header-tag {{commentType === '3' ? 'comments-header-active' : ''}}" data-commentType="3" bindtap="changeTag">
  17. 好评({{countObj.goodCount}})
  18. </t-tag>
  19. <t-tag t-class="comments-header-tag {{commentType === '2' ? 'comments-header-active' : ''}}" data-commentType="2" bindtap="changeTag">
  20. 中评({{countObj.middleCount}})
  21. </t-tag>
  22. <t-tag t-class="comments-header-tag {{commentType === '1' ? 'comments-header-active' : ''}}" data-commentType="1" bindtap="changeTag">
  23. 差评({{countObj.badCount}})
  24. </t-tag>
  25. </view>
  26. <view class="comments-card-list">
  27. <block wx:for="{{commentList}}" wx:key="index">
  28. <comments-card
  29. commentScore="{{item.commentScore}}"
  30. userName="{{item.userName}}"
  31. commentResources="{{item.commentResources || []}}"
  32. commentContent="{{item.commentContent}}"
  33. isAnonymity="{{item.isAnonymity}}"
  34. commentTime="{{item.commentTime}}"
  35. isAutoComment="{{item.isAutoComment}}"
  36. userHeadUrl="{{item.userHeadUrl}}"
  37. specInfo="{{item.specInfo}}"
  38. sellerReply="{{item.sellerReply || ''}}"
  39. goodsDetailInfo="{{item.goodsDetailInfo || ''}}"
  40. />
  41. </block>
  42. <t-load-more
  43. t-class="no-more"
  44. status="{{loadMoreStatus}}"
  45. no-more-text="没有更多了"
  46. color="#BBBBBB"
  47. failedColor="#FA550F"
  48. />
  49. </view>