comment.wxml 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <view class="comments">
  2. <view class="h">
  3. <view class="item {{ showType == 0 ? 'active' : ''}}" bindtap="switchTab">
  4. <view class="txt">全部({{allCount}})</view>
  5. </view>
  6. <view class="item {{ showType == 0 ? '' : 'active'}}" bindtap="switchTab">
  7. <view class="txt">有图({{hasPicCount}})</view>
  8. </view>
  9. </view>
  10. <view class="b">
  11. <view class="item" wx:for="{{comments}}" wx:key="{{item.id}}">
  12. <view class="info">
  13. <view class="user">
  14. <image src="{{item.user_info.avatar}}"></image>
  15. <text>{{item.user_info.nickname}}</text>
  16. </view>
  17. <view class="time">{{item.add_time}}</view>
  18. </view>
  19. <view class="comment">{{item.content}}</view>
  20. <view class="imgs" wx:if="{{item.pic_list.length > 0}}">
  21. <image class="img" wx:for="{{item.pic_list}}" wx:key="{{pitem.id}}" wx:for-item="pitem" src="{{pitem.pic_url}}"></image>
  22. </view>
  23. <view class="spec">
  24. <!-- <text class="item">白色 2件</text> -->
  25. </view>
  26. <!--<view class="customer-service" wx:if="{{item.commentReplyVO}}">
  27. <text class="u">小选回复:</text>
  28. <text class="c">{{item.commentReplyVO.replyContent}}</text>
  29. </view>-->
  30. </view>
  31. </view>
  32. </view>