index.wxml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <nav type="back" background-color="{{activeColor}}" title="我的订单" frontColor="#ffffff" />
  2. <van-tabs active="{{ active }}" bind:change="onChange" color="{{activeColor}}">
  3. <van-tab title="全部">
  4. <scroll-view style="height:calc(100vh - {{stickytop+ 48}}px);" scroll-y="{{true}}">
  5. <block wx:if="{{!goodsList}}">
  6. <van-empty description="暂无订单" />
  7. </block>
  8. <block wx:for="{{goodsList}}" wx:key="index">
  9. <view class="box" data-item="{{item}}" bindtap="details">
  10. <view class="name">
  11. <view>{{item.store.storeName}}</view>
  12. <block wx:if="{{item.status=='100'}}">
  13. <view>待付款</view>
  14. </block>
  15. <block wx:if="{{item.status=='200'}}">
  16. <view>待发货</view>
  17. </block>
  18. <block wx:if="{{item.status=='300'}}">
  19. <view>待收货</view>
  20. </block>
  21. <block wx:if="{{item.status=='400'}}">
  22. <view>已完成</view>
  23. </block>
  24. <block wx:if="{{item.status=='500'}}">
  25. <view>退款申请中</view>
  26. </block>
  27. <block wx:if="{{item.status=='601'}}">
  28. <view>退款审核通过</view>
  29. </block>
  30. <block wx:if="{{item.status=='602'}}">
  31. <view>退款审核被驳回</view>
  32. </block>
  33. <block wx:if="{{item.status=='700'}}">
  34. <view>退款成功</view>
  35. </block>
  36. <block wx:if="{{item.status=='800'}}">
  37. <view>已完成</view>
  38. </block>
  39. </view>
  40. <view class="details">
  41. <image class="image" src="{{item.store.cover}}" />
  42. <view class="txt">
  43. <view class="">下单时间:{{item.orderTime}}</view>
  44. <view class="totalPrice" style="color: {{activeColor}};">总金额:¥{{item.totalPrice}}</view>
  45. </view>
  46. </view>
  47. </view>
  48. </block>
  49. </scroll-view>
  50. </van-tab>
  51. <van-tab title="待付款">
  52. <block wx:if="{{!goodsList}}">
  53. <van-empty description="暂无订单" />
  54. </block>
  55. <block wx:for="{{goodsList}}" wx:key="index">
  56. <view class="box" data-item="{{item}}" bindtap="details">
  57. <view class="name">
  58. <view>{{item.store.storeName}}</view>
  59. <view>待付款</view>
  60. </view>
  61. <view class="details">
  62. <image class="image" src="{{item.store.cover}}" />
  63. <view class="txt">
  64. <view class="">下单时间:{{item.orderTime}}</view>
  65. <view class="totalPrice">总金额:¥{{item.totalPrice}}</view>
  66. </view>
  67. </view>
  68. </view>
  69. </block>
  70. </van-tab>
  71. <van-tab title="待收货">
  72. <block wx:if="{{!goodsList}}">
  73. <van-empty description="暂无订单" />
  74. </block>
  75. <block wx:for="{{goodsList}}" wx:key="index">
  76. <view class="box" data-item="{{item}}" bindtap="details">
  77. <view class="name">
  78. <view>{{item.store.storeName}}</view>
  79. <block wx:if="{{item.status=='200'}}">
  80. <view>待发货</view>
  81. </block>
  82. <block wx:if="{{item.status=='300'}}">
  83. <view>待收货</view>
  84. </block>
  85. </view>
  86. <view class="details">
  87. <image class="image" src="{{item.store.cover}}" />
  88. <view class="txt">
  89. <view class="">下单时间:{{item.orderTime}}</view>
  90. <view class="totalPrice">总金额:¥{{item.totalPrice}}</view>
  91. </view>
  92. </view>
  93. </view>
  94. </block>
  95. </van-tab>
  96. <van-tab title="已完成">
  97. <block wx:if="{{!goodsList}}">
  98. <van-empty description="暂无订单" />
  99. </block>
  100. <block wx:for="{{goodsList}}" wx:key="index">
  101. <view class="box" data-item="{{item}}" bindtap="details">
  102. <view class="name">
  103. <view>{{item.store.storeName}}</view>
  104. <block wx:if="{{item.status=='400'}}">
  105. <view>已完成</view>
  106. </block>
  107. <block wx:if="{{item.status=='500'}}">
  108. <view>退款申请中</view>
  109. </block>
  110. <block wx:if="{{item.status=='601'}}">
  111. <view>退款审核通过</view>
  112. </block>
  113. <block wx:if="{{item.status=='602'}}">
  114. <view>退款审核被驳回</view>
  115. </block>
  116. <block wx:if="{{item.status=='700'}}">
  117. <view>退款成功</view>
  118. </block>
  119. <block wx:if="{{item.status=='800'}}">
  120. <view>已完成</view>
  121. </block>
  122. </view>
  123. <view class="details">
  124. <image class="image" src="{{item.store.cover}}" />
  125. <view class="txt">
  126. <view class="">下单时间:{{item.orderTime}}</view>
  127. <view class="totalPrice">总金额:¥{{item.totalPrice}}</view>
  128. </view>
  129. </view>
  130. </view>
  131. </block>
  132. </van-tab>
  133. </van-tabs>