index.wxml 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. <nav type="back" background-color="#FFE300" title="评论列表" />
  2. <view class="page-section page-section-spacing " style="margin-bottom: 140rpx;" wx:if="{{comments&&comments.length}}">
  3. <!-- <view class="title">共{{comments.length}}条评价</view> -->
  4. <comment-list comments="{{comments}}" ></comment-list>
  5. <!-- <van-divider customStyle="margin: 16rpx 0;" />
  6. <!-- <scroll-view scroll-y="true" style="height:calc(100vh - {{navigationBarHeight}}rpx);" bindscrolltolower="loadMore"> -->
  7. <!-- <view id="comments">
  8. <view class="comment" wx:for="{{comments}}" wx:key="index">
  9. <view class="comment-header">
  10. <view class="header-avatar">
  11. <image class="header-avatar-image" src="{{item.user.avatar}}"></image>
  12. </view>
  13. <view class="header-text">
  14. <view class="comment-name text-small">{{item.user.nickname}}</view>
  15. <view class="comment-score ">
  16. <van-rate readonly allow-half value="{{ item.score }}" size="{{ 12 }}" color="#FF8936" void-icon="star" void-color="#eee" />
  17. </view>
  18. </view>
  19. <view class="comment-date text-small grey">{{item.orderTime}}</view>
  20. </view>
  21. <view class="comment-content">
  22. <view class="comment-text text">{{item.content}}</view>
  23. <view class="comment-images">
  24. <block wx:for="{{item.images}}" wx:key="index" wx:for-item="image">
  25. <image class="comment-image" src="{{image}}"></image>
  26. </block>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="comments-footer"></view>
  31. </view> -->
  32. <!-- </scroll-view> -->
  33. </view>
  34. <van-empty wx:else description="暂无评论"></van-empty>