index.wxml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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. <!-- bindtap="toDetail" data-no="{{item.order_no}}" -->
  62. <view class="centerBoxs flex ju-b" >
  63. <scroll-view scroll-x>
  64. <view wx:if="{{item.order_info.length < 2}}">
  65. <view class="flex ju-b" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="idxx" wx:key="idxx">
  66. <view>
  67. <view class="le flex">
  68. <image src="{{v.good.thumb?i.good.thumb:'/image/icon/dayiwaitao.png'}}" class="clothes"></image>
  69. <view class="name">{{v.good.title}}</view>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="flex" wx:else>
  75. <view class="imgBoxs" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="idx" wx:key="">
  76. <image src="{{v.good.thumb?item.good.thumb:'/image/order/houwaitao.png'}}" class="clothes"></image>
  77. <view class="nums">共{{v.stock}}件</view>
  78. </view>
  79. </view>
  80. </scroll-view>
  81. <view class="lr {{item.numList.length < 2 ? '' : 'showModel'}}">
  82. <view class="price"><text class="small">¥</text>{{item.total_price}}</view>
  83. <view class="num">共{{item.stock}}件</view>
  84. </view>
  85. </view>
  86. <view class="footerBoxs flex ju-e" wx:if="{{item.status == 1}}">
  87. <view class="btn border" bindtap="closOrder" data-oid="{{item.order_no}}">取消订单</view>
  88. <view class="btn bg" bindtap="pay" data-oid="{{item.order_no}}">支付</view>
  89. </view>
  90. <view class="footerBoxs flex ju-e" wx:if="{{item.status != 1}}" data-no="{{item.order_no}}" bindtap="toDetail">
  91. <view class="btn border">查看详情</view>
  92. </view>
  93. </view>
  94. </view></van-tab>
  95. <van-tab title="待服务"> <view class="itemBoxs" wx:for="{{orderList}}" wx:key="index">
  96. <view class="titBoxs b-bottom flex ju-b">
  97. <view class="le">{{item.order_type_name}}</view>
  98. <!-- or skyBlue or gray -->
  99. <view class="lr orange">{{item.status_name}}</view>
  100. <!-- <view class="lr gray" wx:if="{{item.type == 2}}">已取消</view> -->
  101. </view>
  102. <view class="contioner">
  103. <view class="messageBoxs">
  104. <view class="tips">当前状态:{{item.logistics_status_name}}</view>
  105. <view class="time">{{item.created_at}}</view>
  106. </view>
  107. <view class="centerBoxs flex ju-b" bindtap="detail" data-no="{{item.order_no}}">
  108. <scroll-view scroll-x>
  109. <view wx:if="{{item.order_info.length < 2}}">
  110. <view class="flex ju-b" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="idx" wx:key="idx">
  111. <view>
  112. <view class="le flex">
  113. <image src="{{v.good.thumb?i.good.thumb:'/image/icon/dayiwaitao.png'}}" class="clothes"></image>
  114. <view class="name">{{v.good.title}}</view>
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. <view class="flex" wx:else>
  120. <view class="imgBoxs" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="idx" wx:key="">
  121. <image src="{{v.good.thumb?item.good.thumb:'/image/order/houwaitao.png'}}" class="clothes"></image>
  122. <view class="nums">共{{v.stock}}件</view>
  123. </view>
  124. </view>
  125. </scroll-view>
  126. <view class="lr {{item.numList.length < 2 ? '' : 'showModel'}}">
  127. <view class="price"><text class="small">¥</text>{{item.total_price}}</view>
  128. <view class="num">共{{item.stock}}件</view>
  129. </view>
  130. </view>
  131. <view class="footerBoxs flex ju-e" wx:if="{{item.status == 1}}">
  132. <view class="btn border" bindtap="closOrder" data-oid="{{item.order_no}}">取消订单</view>
  133. <view class="btn bg" bindtap="pay" data-oid="{{item.order_no}}">支付</view>
  134. </view>
  135. <view class="footerBoxs flex ju-e" wx:if="{{item.status != 1}}" data-no="{{item.order_no}}" bindtap="toDetail">
  136. <view class="btn border">查看详情</view>
  137. </view>
  138. </view>
  139. </view></van-tab>
  140. <van-tab title="服务中"> <view class="itemBoxs" wx:for="{{orderList}}" wx:key="index">
  141. <view class="titBoxs b-bottom flex ju-b">
  142. <view class="le">{{item.order_type_name}}</view>
  143. <!-- or skyBlue or gray -->
  144. <view class="lr orange">{{item.status_name}}</view>
  145. <!-- <view class="lr gray" wx:if="{{item.type == 2}}">已取消</view> -->
  146. </view>
  147. <view class="contioner">
  148. <view class="messageBoxs">
  149. <view class="tips">当前状态:{{item.logistics_status_name}}</view>
  150. <view class="time">{{item.created_at}}</view>
  151. </view>
  152. <!-- bindtap="detail" data-no="{{item.order_info.orde_no}}" -->
  153. <view class="centerBoxs flex ju-b">
  154. <scroll-view scroll-x>
  155. <view wx:if="{{item.order_info.length < 2}}">
  156. <view class="flex ju-b" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="idsx" wx:key="idsx">
  157. <view>
  158. <view class="le flex">
  159. <image src="{{v.good.thumb?i.good.thumb:'/image/icon/dayiwaitao.png'}}" class="clothes"></image>
  160. <view class="name">{{v.good.title}}</view>
  161. </view>
  162. </view>
  163. </view>
  164. </view>
  165. <view class="flex" wx:else>
  166. <view class="imgBoxs" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="idx" wx:key="">
  167. <image src="{{v.good.thumb?item.good.thumb:'/image/order/houwaitao.png'}}" class="clothes"></image>
  168. <view class="nums">共{{v.stock}}件</view>
  169. </view>
  170. </view>
  171. </scroll-view>
  172. <view class="lr {{item.numList.length < 2 ? '' : 'showModel'}}">
  173. <view class="price"><text class="small">¥</text>{{item.total_price}}</view>
  174. <view class="num">共{{item.stock}}件</view>
  175. </view>
  176. </view>
  177. <view class="footerBoxs flex ju-e" wx:if="{{item.status == 1}}">
  178. <view class="btn border" bindtap="closOrder" data-oid="{{item.order_no}}">取消订单</view>
  179. <view class="btn bg" bindtap="pay" data-oid="{{item.order_no}}">支付</view>
  180. </view>
  181. <view class="footerBoxs flex ju-e" wx:if="{{item.status != 1}}" data-no="{{item.order_no}}" bindtap="toDetail">
  182. <view class="btn border">查看详情</view>
  183. </view>
  184. </view>
  185. </view></van-tab>
  186. <!-- bindtap="toDetail" data-no="{{item.order_no}}" -->
  187. <van-tab title="已完成"> <view class="itemBoxs" wx:for="{{orderList}}" wx:key="index">
  188. <view class="titBoxs b-bottom flex ju-b">
  189. <view class="le">{{item.order_type_name}}</view>
  190. <!-- or skyBlue or gray -->
  191. <view class="lr orange">{{item.status_name}}</view>
  192. <!-- <view class="lr gray" wx:if="{{item.type == 2}}">已取消</view> -->
  193. </view>
  194. <view class="contioner">
  195. <view class="messageBoxs">
  196. <view class="tips">当前状态:{{item.logistics_status_name}}</view>
  197. <view class="time">{{item.created_at}}</view>
  198. </view>
  199. <view class="centerBoxs flex ju-b">
  200. <scroll-view scroll-x>
  201. <view wx:if="{{item.order_info.length < 2}}">
  202. <view class="flex ju-b" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="indx" wx:key="indx">
  203. <view>
  204. <view class="le flex">
  205. <image src="{{v.good.thumb?i.good.thumb:'/image/icon/dayiwaitao.png'}}" class="clothes"></image>
  206. <view class="name">{{v.good.title}}</view>
  207. </view>
  208. </view>
  209. </view>
  210. </view>
  211. <view class="flex" wx:else>
  212. <view class="imgBoxs" wx:for="{{item.order_info}}" wx:for-item="v" wx:for-index="idx" wx:key="">
  213. <image src="{{v.good.thumb?item.good.thumb:'/image/order/houwaitao.png'}}" class="clothes"></image>
  214. <view class="nums">共{{v.stock}}件</view>
  215. </view>
  216. </view>
  217. </scroll-view>
  218. <view class="lr {{item.numList.length < 2 ? '' : 'showModel'}}">
  219. <view class="price"><text class="small">¥</text>{{item.total_price}}</view>
  220. <view class="num">共{{item.stock}}件</view>
  221. </view>
  222. </view>
  223. <view class="footerBoxs flex ju-e" wx:if="{{item.status == 1}}">
  224. <view class="btn border" bindtap="closOrder" data-oid="{{item.order_no}}">取消订单</view>
  225. <view class="btn bg" bindtap="pay" data-oid="{{item.order_no}}">支付</view>
  226. </view>
  227. <view class="footerBoxs flex ju-e" wx:if="{{item.status != 1}}" data-no="{{item.order_no}}" bindtap="toDetail">
  228. <view class="btn border">查看详情</view>
  229. </view>
  230. </view>
  231. </view></van-tab>
  232. </van-tabs>
  233. <van-empty wx:if="{{orderList.length == 0}}" class="custom-image" image="/image/order/no-order.png" description="暂无订单" />
  234. <van-dialog id="van-dialog" confirm-button-color="#4699FF" />