index.wxml 1.6 KB

12345678910111213141516171819202122232425
  1. <view wx:if="{{loading}}">
  2. <t-loading t-class="page-loading" theme="circular" size="40rpx" loading t-class-indicator="t-class-indicator">
  3. <span slot="text" class="loading-text">加载中...</span>
  4. </t-loading>
  5. </view>
  6. <view class="comments-header">
  7. <t-tag t-class="comments-header-tag {{commentType === '' ? 'comments-header-active' : ''}}" data-commenttype="" bindtap="changeTag">
  8. 全部({{totalCount}})
  9. </t-tag>
  10. <t-tag t-class="comments-header-tag {{commentType === '3' ? 'comments-header-active' : ''}}" data-commenttype="3" bindtap="changeTag">
  11. 好评({{goodCount}})
  12. </t-tag>
  13. <t-tag t-class="comments-header-tag {{commentType === '2' ? 'comments-header-active' : ''}}" data-commenttype="2" bindtap="changeTag">
  14. 中评({{middleCount}})
  15. </t-tag>
  16. <t-tag t-class="comments-header-tag {{commentType === '1' ? 'comments-header-active' : ''}}" data-commenttype="1" bindtap="changeTag">
  17. 差评({{badCount}})
  18. </t-tag>
  19. </view>
  20. <view class="comments-card-list p-4">
  21. <block wx:for="{{items}}" wx:key="index">
  22. <comments-card score="{{item.score}}" userName="{{item.userName}}" commentResources="{{item.commentResources || []}}" content="{{item.content}}" isAnonymity="{{item.isAnonymity}}" commentTime="{{item.commentTime}}" isAutoComment="{{item.isAutoComment}}" userAvatar="{{item.userAvatar}}" specInfo="{{item.specInfo}}" sellerReply="{{item.sellerReply || ''}}" goodsDetailInfo="{{item.goodsDetailInfo || ''}}" />
  23. </block>
  24. <n-load-more wx:if="{{items && items.length > 0}}" status="{{loadMoreStatus}}" no-more-text="没有更多了" />
  25. </view>