order.wxml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <view class="wrap">
  2. <view class="nav-bar">
  3. <view class="nav-bar-inner">
  4. <view bindtap="changeTabs" wx:for="{{tabs}}" wx:key="id" class="nav-bar-item {{status==item.id?'current':''}}" data-type="{{item.id}}">{{item.name}}</view>
  5. </view>
  6. </view>
  7. <view class="nav-bar-content" wx:if="{{list.length>0}}">
  8. <block wx:for="{{list}}" wx:key="order_num_alias">
  9. <!-- 待取货 -->
  10. <view class="item bg-f mb10" wx:if="{{status==2}}">
  11. <view class="border-bottom text-gray p15 fsz-24 i-flex i-flex-spb">
  12. <view>订单编号: {{item.order_num_alias}}</view>
  13. <i-cashon_delivery paymentCode="{{item.order_info.payment_code}}" codeImg="{{item.cashondelivery_code_img}}"></i-cashon_delivery>
  14. </view>
  15. <view class="goodsList py10 mx15 border-bottom mb10" wx:if="{{item.order_info.goods_list}}">
  16. <view class="goods i-flex" wx:for="{{item.order_info.goods_list}}" wx:for-item="goods" wx:key="order_id">
  17. <image class="img" src="{{goods.goods_images}}"></image>
  18. <view class="i-flex-item">
  19. <view class="fsz-28 i-flex">
  20. <view class="i-flex-item">{{goods.name}}</view>
  21. <view class="u-font-24 bule u-m-l-10" wx:if="{{item.order_info.payment_code=='cashon_delivery'}}">货到付款</view>
  22. </view>
  23. <view class="text-gray fsz-24 mt5">{{goods.option_str}}x{{goods.quantity}}</view>
  24. <view class="red fsz-26 mt5">小计¥{{goods.total}}</view>
  25. </view>
  26. </view>
  27. <view class="red fsz-28 weight mt5 text-right">合计¥{{item.order_info.total}}</view>
  28. </view>
  29. <view class="shop py10 px15">
  30. <view class="fsz-30 weight text-dark">{{item.shop_name}}</view>
  31. <!-- <view class="fsz-26 mt5">期望送达时间:{{item.want_time}}</view> -->
  32. </view>
  33. <view class="px15">
  34. <view class="i-flex i-aic">
  35. <text class="iconfont icon-qu fsz-38" style="color:#2082f5;"></text>
  36. <view class="i-flex-item mx10 fsz-26">{{item.shop_address}}</view>
  37. <!-- <text class="iconfont icon-ditu1 text-sucess fsz-38"></text> -->
  38. </view>
  39. <view class="i-flex i-aic mt10" bindtap="gotoMap" data-idx="{{index}}">
  40. <text class="iconfont icon-song fsz-38 text-gray"></text>
  41. <view class="addr i-flex-item mx10 fsz-26">{{item.member_address}}</view>
  42. <text class="iconfont icon-ditu1 text-sucess fsz-38"></text>
  43. </view>
  44. </view>
  45. <view class="user border-bottom p15 fsz-26">
  46. <view class="weight">收货人:{{item.shipping_name}}</view>
  47. <view class="mt5">下单时间:{{item.pay_time}}</view>
  48. <view class="mt5 red">{{item.delivery_note}}</view>
  49. </view>
  50. <view class="footer i-flex jcontent-sa py10">
  51. <view class="btn" bindtap="phoneCall" data-tel="{{item.shop_mobile}}">联系商家</view>
  52. <view class="btn" bindtap="pickup" data-orderid="{{item.order_id}}">确认取货</view>
  53. </view>
  54. </view>
  55. <!-- 配送中/待配送 -->
  56. <view class="item bg-f mb10" wx:if="{{status==3||status==4}}">
  57. <view class="border-bottom text-gray p15 fsz-24 i-flex i-flex-spb">
  58. <view>订单编号: {{item.order_num_alias}}</view>
  59. <i-cashon_delivery paymentCode="{{item.order_info.payment_code}}" codeImg="{{item.cashondelivery_code_img}}"></i-cashon_delivery>
  60. </view>
  61. <view class="goodsList py10 mx15 border-bottom mb10" wx:if="{{item.order_info.goods_list}}">
  62. <view class="goods i-flex" wx:for="{{item.order_info.goods_list}}" wx:for-item="goods" wx:key="order_id">
  63. <image class="img" src="{{goods.goods_images}}"></image>
  64. <view class="i-flex-item">
  65. <view class="fsz-28 i-flex">
  66. <view class="i-flex-item">{{goods.name}}</view>
  67. <view class="u-font-24 bule u-m-l-10" wx:if="{{item.order_info.payment_code=='cashon_delivery'}}">货到付款</view>
  68. </view>
  69. <view class="text-gray fsz-24 mt5">{{goods.option_str}}x{{goods.quantity}}</view>
  70. <view class="red fsz-26 mt5">小计¥{{goods.total}}</view>
  71. </view>
  72. </view>
  73. <view class="red fsz-28 weight mt5 text-right">合计¥{{item.order_info.total}}</view>
  74. </view>
  75. <view class="px15">
  76. <view class="i-flex i-aic">
  77. <text class="iconfont icon-qu fsz-38" style="color:#2082f5;"></text>
  78. <view class="i-flex-item mx10 fsz-26">{{item.shop_address}}</view>
  79. <!-- <text class="iconfont icon-ditu1 text-sucess fsz-38"></text> -->
  80. </view>
  81. <view class="i-flex i-aic mt10" bindtap="gotoMap" data-idx="{{index}}">
  82. <text class="iconfont icon-song fsz-38 text-gray"></text>
  83. <view class="addr i-flex-item mx10 fsz-26">{{item.member_address}}</view>
  84. <text class="iconfont icon-ditu1 text-sucess fsz-38"></text>
  85. </view>
  86. </view>
  87. <view class="user border-bottom p15 fsz-26">
  88. <view class="weight">收货人:{{item.shipping_name}}</view>
  89. <!-- <view class="fsz-26 mt5">期望送达时间:{{item.want_time}}</view> -->
  90. <view class="mt5 red">{{item.delivery_note}}</view>
  91. </view>
  92. <view class="footer i-flex jcontent-sa py10" wx:if="{{status==3}}">
  93. <view class="btn" bindtap="phoneCall" data-tel="{{item.order_info.shipping_tel}}">联系客户</view>
  94. <view class="btn" bindtap="arrived" data-orderid="{{item.order_id}}">确认送达</view>
  95. </view>
  96. </view>
  97. </block>
  98. <i-load-more iClass="loadMore" loading="{{loadMore}}" tip="{{loadText}}" wx:if="{{!noMore}}"></i-load-more>
  99. </view>
  100. <i-empty wx:if="{{noData}}">暂无订单~</i-empty>
  101. </view>