topicComment.wxml 935 B

1234567891011121314151617181920212223242526
  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="id">
  12. <view class="info">
  13. <view class="user">
  14. <image src="{{item.userInfo.avatarUrl}}"></image>
  15. <text>{{item.userInfo.nickName}}</text>
  16. </view>
  17. <view class="time">{{item.addTime}}</view>
  18. </view>
  19. <view class="comment">{{item.content}}</view>
  20. <view class="imgs" wx:if="{{item.picList.length > 0}}">
  21. <image class="img" wx:for="{{item.picList}}" wx:key="*this" wx:for-item="pitem" src="{{pitem}}"></image>
  22. </view>
  23. </view>
  24. </view>
  25. </view>