index.wxml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <nav type="back" background-color="#46a9a4" title="评价管理" />
  2. <van-tabs active="{{active}}" id="tabs" bind:change="tabChange" color="#46a9a4" nav-class="tab_title">
  3. <van-tab title="未回复" name="noreply">
  4. <scroll-view scroll-y="true" style="height:calc(100vh - 210rpx);" bindscrolltolower="loadMore">
  5. <block wx:if="{{orders.length}}">
  6. <block wx:for="{{orders}}" wx:key="index">
  7. <view class="comments-wrapper">
  8. <view class="order-number order-row text">
  9. <view class="number ">订单号:{{item.orderNum}}</view>
  10. </view>
  11. <view class="order-content" data-item="{{item}}">
  12. <view class="order-shop order-row">
  13. <image class="order-shop-img " src="{{item.images[0]}}" />
  14. <view class="order-shop-text">
  15. <view class="order-shop-name text">{{item.goods.name}}</view>
  16. <view class="order-price red">¥{{item.price}}</view>
  17. </view>
  18. </view>
  19. <view class="order-user order-row">
  20. <image class="order-user-avatar avatar" src="{{item.user.avatar}}" />
  21. <view class="order-user-name text-small">
  22. {{item.user.nickname}}
  23. <view class="order-score text-small">
  24. <van-rate readonly allow-half value="{{ item.score }}" size="{{ 12 }}" color="#FF8936" void-icon="star" void-color="#eee" />
  25. {{item.score}}分
  26. </view>
  27. </view>
  28. <view class="order-time text-small grey">{{item.time}}</view>
  29. </view>
  30. <!-- <view class="order-comment">
  31. <view class="order-comment-text text-small">{{item.content}}</view>
  32. </view> -->
  33. <view class="">{{item.content}}</view>
  34. </view>
  35. <view class="order-footer">
  36. <van-button color="#46a9a4" class="btn reply-btn " round size="small" data-id="{{item.objectId}}" bindtap="details">
  37. <text class="reply-text">查看详情</text>
  38. </van-button>
  39. </view>
  40. </view>
  41. </block>
  42. </block>
  43. <block wx:else>
  44. <van-empty description="暂无评论"></van-empty>
  45. </block>
  46. </scroll-view>
  47. </van-tab>
  48. <van-tab title="已回复" name="replied">
  49. <scroll-view scroll-y="true" style="height:calc(100vh - 210rpx);" bindscrolltolower="loadMore">
  50. <block wx:if="{{orders.length}}">
  51. <block wx:for="{{orders}}" wx:key="index">
  52. <view class="comments-wrapper">
  53. <view class="order-number order-row text">
  54. <view class="number ">订单号:{{item.orderNum}}</view>
  55. </view>
  56. <view class="order-content" data-item="{{item}}">
  57. <view class="order-shop order-row">
  58. <image class="order-shop-img " src="{{item.images[0]}}" />
  59. <view class="order-shop-text">
  60. <view class="order-shop-name text">{{item.goods.name}}</view>
  61. <view class="order-price red">¥{{item.price}}</view>
  62. </view>
  63. </view>
  64. <view class="order-user order-row">
  65. <image class="order-user-avatar avatar" src="{{item.user.avatar}}" />
  66. <view class="order-user-name text-small">
  67. {{item.user.nickname}}
  68. <view class="order-score text-small">
  69. <van-rate readonly allow-half value="{{ item.score }}" size="{{ 12 }}" color="#FF8936" void-icon="star" void-color="#eee" />
  70. {{item.score}}分
  71. </view>
  72. </view>
  73. <view class="order-time text-small grey">{{item.time}}</view>
  74. </view>
  75. <!-- <view class="order-comment">
  76. <view class="order-comment-text text-small">{{item.content}}</view>
  77. </view> -->
  78. <view class="count">{{item.content}}</view>
  79. </view>
  80. <view class="order-footer">
  81. <van-button color="#46a9a4" class="btn reply-btn " round size="small" data-id="{{item.objectId}}" bindtap="details">
  82. <text class="reply-text">查看详情</text>
  83. </van-button>
  84. </view>
  85. </view>
  86. </block>
  87. </block>
  88. <block wx:else>
  89. <van-empty description="暂无评论"></van-empty>
  90. </block>
  91. </scroll-view>
  92. </van-tab>
  93. </van-tabs>