comment.wxml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <view class="container" wx:if="{{ total.all > 0 }}">
  2. <!-- 顶部选项卡 -->
  3. <view class="swiper-tab dis-flex box-align-center flex-y-center">
  4. <view class="swiper-tab-item {{options.scoreType == -1 ? 'on' : ''}}" data-current="-1" bindtap="swichNav">全部 ({{ total.all }})</view>
  5. <view class="swiper-tab-item {{options.scoreType == 10 ? 'on' : ''}}" data-current="10" bindtap="swichNav">好评 ({{ total.praise }})</view>
  6. <view class="swiper-tab-item {{options.scoreType == 20 ? 'on' : ''}}" data-current="20" bindtap="swichNav">中评 ({{ total.review }})</view>
  7. <view class="swiper-tab-item {{options.scoreType == 30 ? 'on' : ''}}" data-current="30" bindtap="swichNav">差评 ({{ total.negative }})</view>
  8. </view>
  9. <!-- 评价列表 -->
  10. <scroll-view scroll-y="{{ true }}" bindscrolltolower="bindDownLoad" style="height: {{swiperHeight}}px;">
  11. <view class="comment-list" wx:if="{{ list.data.length }}">
  12. <view class="comment-item" wx:for="{{ list.data }}" wx:key="this">
  13. <view class="goods-comment-box dis-flex flex-dir-column b-f b-b">
  14. <view class="row dis-flex flex-y-center">
  15. <!-- 用户信息 -->
  16. <view class="user dis-flex flex-y-center">
  17. <image class="user_avatar" mode="aspectFill" src="{{ item.user.avatarUrl }}"></image>
  18. <text class="user_name f-26">{{ item.user.nickName }}</text>
  19. </view>
  20. <!-- 评价评星 -->
  21. <view class="com_xing dis-flex flex-y-center">
  22. <text class="iconfont icon-shoucang active"></text>
  23. <block wx:if="{{ item.score < 30 }}">
  24. <text class="iconfont icon-shoucang active"></text>
  25. <text class="iconfont icon-shoucang active"></text>
  26. </block>
  27. <block wx:if="{{ item.score < 20 }}">
  28. <text class="iconfont icon-shoucang active"></text>
  29. <text class="iconfont icon-shoucang active"></text>
  30. </block>
  31. </view>
  32. <!-- 评价日期-->
  33. <view class="flex-box f-22 col-9 t-r">{{ item.create_time }}</view>
  34. </view>
  35. <!-- 评价内容 -->
  36. <view class="goods-comment-cont row m-top20">
  37. <text class="f-26">{{ item.content }}</text>
  38. </view>
  39. <!-- 评价图片 -->
  40. <view class="comment-images row" wx:if="{{ item.image.length }}">
  41. <view class="image-preview" wx:for="{{ item.image }}" wx:for-item="image" wx:for-index="imgIndex" wx:key="this">
  42. <image data-comment-index="{{ index }}" data-img-index="{{ imgIndex }}" catchtap="previewImages" mode="aspectFill" src="{{ image.file_path }}"></image>
  43. </view>
  44. </view>
  45. <!-- 商品规格 -->
  46. <view class="row f-24 col-9">{{ item.order_goods.goods_attr }}</view>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="yoshop-notcont" wx:elif="{{ notcont }}">
  51. <text class="iconfont icon-wushuju"></text>
  52. <text class="cont">亲,暂时没有记录哦</text>
  53. </view>
  54. </scroll-view>
  55. </view>