index.wxml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <van-tabs swipeable title-active-color="#191C27" title-inactive-color="#666666" color="#4699FF" line-width="30" sticky>
  2. <van-tab title="全部">
  3. <view class="itemBoxs" bindtap="detail" wx:for="{{orderList}}" wx:key="*this">
  4. <view class="titBoxs b-bottom flex ju-b">
  5. <view class="le">到柜存取</view>
  6. <!-- or skyBlue or gray -->
  7. <view class="lr orange" wx:if="{{item.type ==1}}">未支付</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">当前状态:订单提交成功,请完成支付</view>
  13. <view class="time">2019-05-07 15:17:35</view>
  14. </view>
  15. <view class="centerBoxs flex ju-b">
  16. <scroll-view scroll-x>
  17. <view class="flex ju-b" wx:if="{{item.numList.length < 2}}">
  18. <view>
  19. <view class="le flex">
  20. <image src="/image/order/houwaitao.png" class="clothes"></image>
  21. <view class="name">衬衫-上衣类</view>
  22. </view>
  23. </view>
  24. </view>
  25. <view wx:else class="flex">
  26. <view class="imgBoxs" wx:for="{{item.numList}}" wx:for-item="i" wx:for-index="idx" wx:key="{{idx}}">
  27. <image src="/image/order/houwaitao.png" class="clothes"></image>
  28. <view class="nums">共1件</view>
  29. </view>
  30. </view>
  31. </scroll-view>
  32. <view class="lr {{item.numList.length < 2 ? '' : 'showModel'}}">
  33. <view class="price"><text class="small">¥</text>89</view>
  34. <view class="num">共1件</view>
  35. </view>
  36. </view>
  37. <view class="footerBoxs flex ju-e" wx:if="{{item.type == 1}}">
  38. <view class="btn border">取消订单</view>
  39. <view class="btn bg">支付</view>
  40. </view>
  41. <view class="footerBoxs flex ju-e" wx:if="{{item.type == 2}}" bindtap="toDetail">
  42. <view class="btn border">查看详情</view>
  43. </view>
  44. </view>
  45. </view>
  46. </van-tab>
  47. <van-tab title="未支付">内容 2</van-tab>
  48. <van-tab title="待服务">内容 3</van-tab>
  49. <van-tab title="服务中">内容 4</van-tab>
  50. <van-tab title="已完成">内容 4</van-tab>
  51. </van-tabs>
  52. <van-empty
  53. wx:if="{{orderList.length == 0}}"
  54. class="custom-image"
  55. image="/image/order/no-order.png"
  56. description="暂无订单"
  57. />
  58. <van-dialog id="van-dialog" confirm-button-color="#4699FF" />