index.wxml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <nav type="back" background-color="{{activeColor}}" title="退款订单" frontColor="#ffffff" />
  2. <van-tabs class="tabs" active="{{ active }}" bind:change="onChange" color="{{activeColor}}">
  3. <van-tab title="全部"></van-tab>
  4. <van-tab title="餐饮"></van-tab>
  5. <van-tab title="商品"></van-tab>
  6. <van-tab title="民宿"></van-tab>
  7. </van-tabs>
  8. <scroll-view style="height:calc(100vh - {{navigationBarHeight+ 44}}px);" scroll-y="{{true}}">
  9. <block wx:if="{{active==0}}">
  10. <block wx:if="{{orders.length==0}}">
  11. <van-empty description="暂无订单信息" />
  12. </block>
  13. <block wx:for="{{orders}}" wx:key="index">
  14. <view class="box">
  15. <view class="order-number">
  16. <view class="number">订单号:{{item.orderNum}}</view>
  17. <block wx:if="{{item.status==500}}">
  18. <view class="state">待审核</view>
  19. </block>
  20. <block wx:if="{{item.status==601}}">
  21. <view class="state">退款中</view>
  22. </block>
  23. <block wx:if="{{item.status==602}}">
  24. <view class="state">退款失败</view>
  25. </block>
  26. <block wx:if="{{item.status==700}}">
  27. <view class="state">已退款</view>
  28. </block>
  29. </view>
  30. <view class="order-txt" data-item="{{item}}" catchtap="orderpay">
  31. <block wx:if="{{item.room}}">
  32. <image class="order-image" src="{{item.room.images[0]}}" />
  33. <view class="order-text">
  34. <view class="order-name">{{item.room.name}}</view>
  35. <view class="order-price">¥{{item.price}}</view>
  36. <view class="order-time">{{item.startTime}} - {{item.endTime}}</view>
  37. </view>
  38. </block>
  39. <block wx:else>
  40. <image class="order-image" src="{{item.image}}" />
  41. <view class="order-text">
  42. <view class="order-name">{{item.name}}</view>
  43. <view class="order-price">¥{{item.price}}</view>
  44. <view class="order-time">{{item.shopStore.workingTime}}</view>
  45. </view>
  46. </block>
  47. </view>
  48. <view class="order-btns">
  49. <van-button data-item="{{item}}" catchtap="phone" size="small" type="default" class="btn">
  50. 联系房东
  51. </van-button>
  52. </view>
  53. </view>
  54. </block>
  55. </block>
  56. <block wx:if="{{active==1}}">
  57. <block wx:if="{{orders.length==0}}">
  58. <van-empty description="暂无订单信息" />
  59. </block>
  60. <block wx:for="{{orders}}" wx:key="index">
  61. <view class="box">
  62. <view class="order-number">
  63. <view class="number">订单号:{{item.orderNum}}</view>
  64. <block wx:if="{{item.status==500}}">
  65. <view class="state">待审核</view>
  66. </block>
  67. <block wx:if="{{item.status==601}}">
  68. <view class="state">退款中</view>
  69. </block>
  70. <block wx:if="{{item.status==602}}">
  71. <view class="state">退款失败</view>
  72. </block>
  73. <block wx:if="{{item.status==700}}">
  74. <view class="state">已退款</view>
  75. </block>
  76. </view>
  77. <view class="order-txt" data-item="{{item}}" catchtap="orderpay">
  78. <image class="order-image" src="{{item.image}}" />
  79. <view class="order-text">
  80. <view class="order-name">{{item.name}}</view>
  81. <view class="order-price">¥{{item.price}}</view>
  82. <view class="order-time">{{item.shopStore.workingTime}}</view>
  83. </view>
  84. </view>
  85. <view class="order-btns">
  86. <van-button data-item="{{item}}" catchtap="phone" size="small" type="default" class="btn">
  87. 联系房东
  88. </van-button>
  89. </view>
  90. </view>
  91. </block>
  92. </block>
  93. <block wx:if="{{active==2}}">
  94. <block wx:if="{{orders.length==0}}">
  95. <van-empty description="暂无订单信息" />
  96. </block>
  97. <block wx:for="{{orders}}" wx:key="index">
  98. <view class="box">
  99. <view class="order-number">
  100. <view class="number">订单号:{{item.orderNum}}</view>
  101. <block wx:if="{{item.status==500}}">
  102. <view class="state">待审核</view>
  103. </block>
  104. <block wx:if="{{item.status==601}}">
  105. <view class="state">退款中</view>
  106. </block>
  107. <block wx:if="{{item.status==602}}">
  108. <view class="state">退款失败</view>
  109. </block>
  110. <block wx:if="{{item.status==700}}">
  111. <view class="state">已退款</view>
  112. </block>
  113. </view>
  114. <view class="order-txt" data-item="{{item}}" catchtap="orderpay">
  115. <image class="order-image" src="{{item.image}}" />
  116. <view class="order-text">
  117. <view class="order-name">{{item.name}}</view>
  118. <view class="order-price">¥{{item.price}}</view>
  119. <view class="order-time">{{item.shopStore.workingTime}}</view>
  120. </view>
  121. </view>
  122. <view class="order-btns">
  123. <van-button data-item="{{item}}" catchtap="phone" size="small" type="default" class="btn">
  124. 联系房东
  125. </van-button>
  126. </view>
  127. </view>
  128. </block>
  129. </block>
  130. <block wx:if="{{active==3}}">
  131. <block wx:if="{{orders.length==0}}">
  132. <van-empty description="暂无订单信息" />
  133. </block>
  134. <block wx:for="{{orders}}" wx:key="index">
  135. <view class="box">
  136. <view class="order-number">
  137. <view class="number">订单号:{{item.orderNum}}</view>
  138. <block wx:if="{{item.status==500}}">
  139. <view class="state">待审核</view>
  140. </block>
  141. <block wx:if="{{item.status==601}}">
  142. <view class="state">退款中</view>
  143. </block>
  144. <block wx:if="{{item.status==602}}">
  145. <view class="state">退款失败</view>
  146. </block>
  147. <block wx:if="{{item.status==700}}">
  148. <view class="state">已退款</view>
  149. </block>
  150. </view>
  151. <view class="order-txt" data-item="{{item}}" catchtap="orderpay">
  152. <image class="order-image" src="{{item.room.images[0]}}" />
  153. <view class="order-text">
  154. <view class="order-name">{{item.room.name}}</view>
  155. <view class="order-price">¥{{item.price}}</view>
  156. <view class="order-time">{{item.startTime}} - {{item.endTime}}</view>
  157. </view>
  158. </view>
  159. <view class="order-btns">
  160. <van-button data-item="{{item}}" catchtap="phone" size="small" type="default" class="btn">
  161. 联系房东
  162. </van-button>
  163. </view>
  164. </view>
  165. </block>
  166. </block>
  167. </scroll-view>