index.wxml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <van-tabs title-active-color="#191C27" title-inactive-color="#666666" color="#4699FF" line-width="30" sticky bind:click="onClick">
  2. <van-tab title="全部">
  3. <view class="itemBoxs" wx:for="{{orderList}}" wx:key="index">
  4. <view class="titBoxs b-bottom flex ju-b">
  5. <view class="le">{{item.order_type_name}}</view>
  6. <!-- or skyBlue or gray -->
  7. <view class="lr orange">{{item.status_name}}</view>
  8. <!-- <view class="lr gray" wx:if="{{item.type == 2}}">已取消</view> -->
  9. </view>
  10. <view class="contioner">
  11. <view class="messageBoxs">
  12. <view class="tips">当前状态:{{item.logistics_status_name}}</view>
  13. <view class="time">{{item.created_at}}</view>
  14. </view>
  15. <view class="centerBoxs flex ju-b" bindtap="detail" data-no="{{item.order_no}}">
  16. <scroll-view scroll-x>
  17. <view wx:if="{{item.order_info.length < 2}}">
  18. <view class="flex ju-b" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="idx" wx:key="index">
  19. <view>
  20. <view class="le flex">
  21. <image src="{{v.good.thumb?i.good.thumb:'/image/icon/dayiwaitao.png'}}" class="clothes"></image>
  22. <view class="name">{{v.good.title}}</view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="flex" wx:else>
  28. <view class="imgBoxs" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="idx" wx:key="">
  29. <image src="{{v.good.thumb?item.good.thumb:'/image/order/houwaitao.png'}}" class="clothes"></image>
  30. <view class="nums">共{{v.stock}}件</view>
  31. </view>
  32. </view>
  33. </scroll-view>
  34. <view class="lr {{item.numList.length < 2 ? '' : 'showModel'}}">
  35. <view class="price"><text class="small">¥</text>{{item.total_price}}</view>
  36. <view class="num">共{{item.stock}}件</view>
  37. </view>
  38. </view>
  39. <view class="footerBoxs flex ju-e" wx:if="{{item.status == 1}}">
  40. <view class="btn border" bindtap="closOrder" data-oid="{{item.order_no}}">取消订单</view>
  41. <view class="btn bg" bindtap="pay" data-oid="{{item.order_no}}">支付</view>
  42. </view>
  43. <view class="footerBoxs flex ju-e" wx:if="{{item.status != 1}}" data-no="{{item.order_no}}" bindtap="toDetail">
  44. <view class="btn border">查看详情</view>
  45. </view>
  46. </view>
  47. </view>
  48. </van-tab>
  49. <van-tab title="未支付"> <view class="itemBoxs" wx:for="{{orderList}}" wx:key="index">
  50. <view class="titBoxs b-bottom flex ju-b">
  51. <view class="le">{{item.order_type_name}}</view>
  52. <!-- or skyBlue or gray -->
  53. <view class="lr orange">{{item.status_name}}</view>
  54. <!-- <view class="lr gray" wx:if="{{item.type == 2}}">已取消</view> -->
  55. </view>
  56. <view class="contioner">
  57. <view class="messageBoxs">
  58. <view class="tips">当前状态:{{item.logistics_status_name}}</view>
  59. <view class="time">{{item.created_at}}</view>
  60. </view>
  61. <view class="centerBoxs flex ju-b" bindtap="toDetail" data-no="{{item.order_no}}">
  62. <scroll-view scroll-x>
  63. <view wx:if="{{item.order_info.length < 2}}">
  64. <view class="flex ju-b" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="idxx" wx:key="idxx">
  65. <view>
  66. <view class="le flex">
  67. <image src="{{v.good.thumb?i.good.thumb:'/image/icon/dayiwaitao.png'}}" class="clothes"></image>
  68. <view class="name">{{v.good.title}}</view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="flex" wx:else>
  74. <view class="imgBoxs" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="idx" wx:key="">
  75. <image src="{{v.good.thumb?item.good.thumb:'/image/order/houwaitao.png'}}" class="clothes"></image>
  76. <view class="nums">共{{v.stock}}件</view>
  77. </view>
  78. </view>
  79. </scroll-view>
  80. <view class="lr {{item.numList.length < 2 ? '' : 'showModel'}}">
  81. <view class="price"><text class="small">¥</text>{{item.total_price}}</view>
  82. <view class="num">共{{item.stock}}件</view>
  83. </view>
  84. </view>
  85. <view class="footerBoxs flex ju-e" wx:if="{{item.status == 1}}">
  86. <view class="btn border" bindtap="closOrder" data-oid="{{item.order_no}}">取消订单</view>
  87. <view class="btn bg" bindtap="pay" data-oid="{{item.order_no}}">支付</view>
  88. </view>
  89. <view class="footerBoxs flex ju-e" wx:if="{{item.status != 1}}" data-no="{{item.order_no}}" bindtap="toDetail">
  90. <view class="btn border">查看详情</view>
  91. </view>
  92. </view>
  93. </view></van-tab>
  94. <van-tab title="待服务"> <view class="itemBoxs" wx:for="{{orderList}}" wx:key="index">
  95. <view class="titBoxs b-bottom flex ju-b">
  96. <view class="le">{{item.order_type_name}}</view>
  97. <!-- or skyBlue or gray -->
  98. <view class="lr orange">{{item.status_name}}</view>
  99. <!-- <view class="lr gray" wx:if="{{item.type == 2}}">已取消</view> -->
  100. </view>
  101. <view class="contioner">
  102. <view class="messageBoxs">
  103. <view class="tips">当前状态:{{item.logistics_status_name}}</view>
  104. <view class="time">{{item.created_at}}</view>
  105. </view>
  106. <view class="centerBoxs flex ju-b" bindtap="detail" data-no="{{item.order_no}}">
  107. <scroll-view scroll-x>
  108. <view wx:if="{{item.order_info.length < 2}}">
  109. <view class="flex ju-b" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="idx" wx:key="idx">
  110. <view>
  111. <view class="le flex">
  112. <image src="{{v.good.thumb?i.good.thumb:'/image/icon/dayiwaitao.png'}}" class="clothes"></image>
  113. <view class="name">{{v.good.title}}</view>
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. <view class="flex" wx:else>
  119. <view class="imgBoxs" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="idx" wx:key="">
  120. <image src="{{v.good.thumb?item.good.thumb:'/image/order/houwaitao.png'}}" class="clothes"></image>
  121. <view class="nums">共{{v.stock}}件</view>
  122. </view>
  123. </view>
  124. </scroll-view>
  125. <view class="lr {{item.numList.length < 2 ? '' : 'showModel'}}">
  126. <view class="price"><text class="small">¥</text>{{item.total_price}}</view>
  127. <view class="num">共{{item.stock}}件</view>
  128. </view>
  129. </view>
  130. <view class="footerBoxs flex ju-e" wx:if="{{item.status == 1}}">
  131. <view class="btn border" bindtap="closOrder" data-oid="{{item.order_no}}">取消订单</view>
  132. <view class="btn bg" bindtap="pay" data-oid="{{item.order_no}}">支付</view>
  133. </view>
  134. <view class="footerBoxs flex ju-e" wx:if="{{item.status != 1}}" data-no="{{item.order_no}}" bindtap="toDetail">
  135. <view class="btn border">查看详情</view>
  136. </view>
  137. </view>
  138. </view></van-tab>
  139. <van-tab title="服务中"> <view class="itemBoxs" wx:for="{{orderList}}" wx:key="index">
  140. <view class="titBoxs b-bottom flex ju-b">
  141. <view class="le">{{item.order_type_name}}</view>
  142. <!-- or skyBlue or gray -->
  143. <view class="lr orange">{{item.status_name}}</view>
  144. <!-- <view class="lr gray" wx:if="{{item.type == 2}}">已取消</view> -->
  145. </view>
  146. <view class="contioner">
  147. <view class="messageBoxs">
  148. <view class="tips">当前状态:{{item.logistics_status_name}}</view>
  149. <view class="time">{{item.created_at}}</view>
  150. </view>
  151. <view class="centerBoxs flex ju-b" bindtap="detail" data-no="{{item.order_info.orde_no}}">
  152. <scroll-view scroll-x>
  153. <view wx:if="{{item.order_info.length < 2}}">
  154. <view class="flex ju-b" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="idsx" wx:key="idsx">
  155. <view>
  156. <view class="le flex">
  157. <image src="{{v.good.thumb?i.good.thumb:'/image/icon/dayiwaitao.png'}}" class="clothes"></image>
  158. <view class="name">{{v.good.title}}</view>
  159. </view>
  160. </view>
  161. </view>
  162. </view>
  163. <view class="flex" wx:else>
  164. <view class="imgBoxs" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="idx" wx:key="">
  165. <image src="{{v.good.thumb?item.good.thumb:'/image/order/houwaitao.png'}}" class="clothes"></image>
  166. <view class="nums">共{{v.stock}}件</view>
  167. </view>
  168. </view>
  169. </scroll-view>
  170. <view class="lr {{item.numList.length < 2 ? '' : 'showModel'}}">
  171. <view class="price"><text class="small">¥</text>{{item.total_price}}</view>
  172. <view class="num">共{{item.stock}}件</view>
  173. </view>
  174. </view>
  175. <view class="footerBoxs flex ju-e" wx:if="{{item.status == 1}}">
  176. <view class="btn border" bindtap="closOrder" data-oid="{{item.order_no}}">取消订单</view>
  177. <view class="btn bg" bindtap="pay" data-oid="{{item.order_no}}">支付</view>
  178. </view>
  179. <view class="footerBoxs flex ju-e" wx:if="{{item.status != 1}}" data-no="{{item.order_no}}" bindtap="toDetail">
  180. <view class="btn border">查看详情</view>
  181. </view>
  182. </view>
  183. </view></van-tab>
  184. <van-tab title="已完成"> <view class="itemBoxs" bindtap="toDetail" data-no="{{item.order_no}}" wx:for="{{orderList}}" wx:key="index">
  185. <view class="titBoxs b-bottom flex ju-b">
  186. <view class="le">{{item.order_type_name}}</view>
  187. <!-- or skyBlue or gray -->
  188. <view class="lr orange">{{item.status_name}}</view>
  189. <!-- <view class="lr gray" wx:if="{{item.type == 2}}">已取消</view> -->
  190. </view>
  191. <view class="contioner">
  192. <view class="messageBoxs">
  193. <view class="tips">当前状态:{{item.logistics_status_name}}</view>
  194. <view class="time">{{item.created_at}}</view>
  195. </view>
  196. <view class="centerBoxs flex ju-b">
  197. <scroll-view scroll-x>
  198. <view wx:if="{{item.order_info.length < 2}}">
  199. <view class="flex ju-b" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="indx" wx:key="indx">
  200. <view>
  201. <view class="le flex">
  202. <image src="{{v.good.thumb?i.good.thumb:'/image/icon/dayiwaitao.png'}}" class="clothes"></image>
  203. <view class="name">{{v.good.title}}</view>
  204. </view>
  205. </view>
  206. </view>
  207. </view>
  208. <view class="flex" wx:else>
  209. <view class="imgBoxs" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="idx" wx:key="">
  210. <image src="{{v.good.thumb?item.good.thumb:'/image/order/houwaitao.png'}}" class="clothes"></image>
  211. <view class="nums">共{{v.stock}}件</view>
  212. </view>
  213. </view>
  214. </scroll-view>
  215. <view class="lr {{item.numList.length < 2 ? '' : 'showModel'}}">
  216. <view class="price"><text class="small">¥</text>{{item.total_price}}</view>
  217. <view class="num">共{{item.stock}}件</view>
  218. </view>
  219. </view>
  220. <view class="footerBoxs flex ju-e" wx:if="{{item.status == 1}}">
  221. <view class="btn border" bindtap="closOrder" data-oid="{{item.order_no}}">取消订单</view>
  222. <view class="btn bg" bindtap="pay" data-oid="{{item.order_no}}">支付</view>
  223. </view>
  224. <view class="footerBoxs flex ju-e" wx:if="{{item.status != 1}}" data-no="{{item.order_no}}" bindtap="toDetail">
  225. <view class="btn border">查看详情</view>
  226. </view>
  227. </view>
  228. </view></van-tab>
  229. </van-tabs>
  230. <van-empty wx:if="{{orderList.length == 0}}" class="custom-image" image="/image/order/no-order.png" description="暂无订单" />
  231. <van-dialog id="van-dialog" confirm-button-color="#4699FF" />