comment.wxml 1.1 KB

123456789101112131415161718192021222324252627282930
  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 class="customer-service" wx:if="{{item.adminContent}}">
  24. <text class="u">商家回复:</text>
  25. <text class="c">{{item.adminContent}}</text>
  26. </view>
  27. </view>
  28. </view>
  29. </view>