comment.wxml 1.3 KB

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