orderManage.wxml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <import src="tabbar.wxml"></import>
  2. <view class="wrap pb100">
  3. <view class="nav">
  4. <view bindtap="switchNav" class="orderList_item {{currentTab==item.status?'on':''}}" data-current="{{item.status}}" wx:for="{{navList}}" wx:key="status">{{item.name}}</view>
  5. </view>
  6. <!--搜索框begin-->
  7. <view class='search-bar'>
  8. <view class='search-box'>
  9. <input class='ipt' placeholder="搜索" confirm-type="搜索" type="text" bindconfirm="goResult"></input>
  10. <view class='search-icon'>
  11. <text class="iconfont icon-sousuo1"></text>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="list" wx:if="{{list.length>0}}">
  16. <i-card wx:for="{{list}}" wx:key="id" iClass="orderItem" bindtap="goLink" data-link="/lionfish_comshop/moduleB/supply/orderDetails?id={{item.order_id}}">
  17. <view slot="header" class="i-flex i-flex-spb p10 border-bottom">
  18. <text>订单编号:{{item.order_num_alias}}</text>
  19. <text class="{{item.order_status_id==11?'black':''}} red">{{item.status_name}}</text>
  20. </view>
  21. <view slot="content">
  22. <view class="userinfo i-flex p10">
  23. <view>收货人信息:{{item.shipping_name}} {{item.shipping_tel}}</view>
  24. <view class="call ml5 bg-primary text-white" data-phone="{{item.shipping_tel}}" catchtap='callPhone'>联系收货人</view>
  25. </view>
  26. <view class="goodsBox">
  27. <block wx:for="{{item.goods_list}}" wx:for-item="goods" wx:if="{{item.goods_list.length}}" wx:key="order_goods_id">
  28. <view class="item p15 bg-f border-bottom i-flex">
  29. <i-img defaultImage="{{placeholdeImg?placeholdeImg:'../../images/placeholder-refund.png'}}" height="160" iClass="img-class" lazyLoad="true" loadImage="{{goods.goods_images}}" width="160"></i-img>
  30. <view class="i-flex-item ml10 i-flex-col jcontent-c">
  31. <view class="fsz-28 weight">{{goods.name}}</view>
  32. <view class="price mt10 fsz-22 text-gray">¥{{goods.price}} x{{goods.quantity}}</view>
  33. <view class="fsz-24 mt-auto">小计:<text class="red">{{goods.total}}</text></view>
  34. </view>
  35. </view>
  36. </block>
  37. </view>
  38. </view>
  39. <view slot="footer" class="i-flex footer p10">
  40. <!-- <view class="btn bg-ccc text-3" data-id="{{item.order_id}}">备注</view> -->
  41. <!-- <view class="btn bg-warning" data-id="{{item.order_id}}">订单退款</view> -->
  42. <block wx:if="{{item.order_status_id==4}}">
  43. <!-- 同城配送指定配送员 -->
  44. <view class="btn bg-primary" catchtap="chooseRider" data-id="{{item.order_id}}" wx:if="{{item.delivery=='localtown_delivery'&&item.orderdistribution_order.state==1&&!item.third_distribution_type}}">指定配送员配送</view>
  45. <!-- <view class="btn bg-sucess" wx:if="{{item.delivery=='express'}}" data-id="{{item.order_id}}" catchtap="getExpList">修改物流</view> -->
  46. <view class="btn bg-blue" data-id="{{item.order_id}}" catchtap="opreceive">确认收货</view>
  47. </block>
  48. <block wx:if="{{item.order_status_id==1}}">
  49. <!-- 快递发货 -->
  50. <view class="btn bg-blue" wx:if="{{item.delivery=='express'}}" catchtap="getExpList" data-id="{{item.order_id}}">确认发货</view>
  51. <!-- 团长配送 -->
  52. <view class="btn bg-blue" wx:if="{{item.delivery=='tuanz_send'||item.delivery=='pickup'}}" catchtap="tuanSend" data-id="{{item.order_id}}">确认配送</view>
  53. <!-- 同城配送 -->
  54. <view class="btn bg-blue" wx:if="{{item.delivery=='localtown_delivery'}}" catchtap="localtownSend" data-id="{{item.order_id}}">确认配送</view>
  55. </block>
  56. <block wx:if="{{item.order_status_id==14}}">
  57. <!-- 快递确认收货 -->
  58. <view class="btn bg-blue" wx:if="{{item.delivery=='express'}}" data-id="{{item.order_id}}" catchtap="opreceive">确认收货</view>
  59. <!-- 团长确认收货 -->
  60. <view class="btn bg-blue" wx:if="{{item.delivery=='tuanz_send'||item.delivery=='pickup'}}" data-id="{{item.order_id}}" catchtap="tuanOver">确认送达团长</view>
  61. </block>
  62. <block wx:if="{{item.order_status_id==3}}">
  63. <view class="btn bg-primary" catchtap="goLink" data-link='/lionfish_comshop/moduleB/supply/changePrice?order_id={{item.order_id}}' wx:if="{{item.is_presale!=1}}">订单改价</view>
  64. <view class="btn bg-blue" catchtap="confirmPay" data-id="{{item.order_id}}">确认付款</view>
  65. </block>
  66. </view>
  67. </i-card>
  68. <i-load-more iClass="loadMore" loading="{{loadMore}}" tip="{{loadText}}" wx:if="{{!noMore}}"></i-load-more>
  69. </view>
  70. <i-empty wx:if="{{noData}}">暂无订单~</i-empty>
  71. </view>
  72. <template is="tabbar" data="{{data:1}}"></template>
  73. <!-- 快递信息 -->
  74. <i-modal scrollUp="{{false}}" visible="{{showExpModal}}" wx:if="{{showExpModal}}">
  75. <view class="exp-modal bg-f rounded">
  76. <view class="p10 border-bottom bg-lighter text-dark weight fsz-30">订单发货</view>
  77. <view class="p15 border-bottom fsz-24">
  78. <view class="mb5">联系人:{{expInfo.shipping_name}}</view>
  79. <view class="mb10">收货地址:{{expInfo.shipping_name}}</view>
  80. <view class="mb10 i-flex i-aic">
  81. <picker class="i-flex-item" bindchange="bindPickerChange" value="{{index}}" range="{{expInfo.express_list}}" range-key="name">
  82. <view class="picker">
  83. 物流公司:{{expInfo.express_list[index].name}} <text class="iconfont icon-xia fsz-24 text-gray"></text>
  84. </view>
  85. </picker>
  86. </view>
  87. <view class="i-flex i-aic">
  88. 物流单号:
  89. <input class="ipt i-flex-item" type="text" placeholder="请输入物流单号" bindinput="bindKeyInput" wx:if="{{showExpModal}}"></input>
  90. </view>
  91. </view>
  92. <view class="i-flex jcontent-sa text-center weight fsz-30">
  93. <view class="btn p10 i-flex-item text-gray" bindtap="hideExpModal">取消</view>
  94. <view class="btn p10 i-flex-item bule" data-id="{{expInfo.order_id}}" bindtap="expSend">确认发货</view>
  95. </view>
  96. </view>
  97. </i-modal>
  98. <i-select-rider order_id="{{selectOrderId}}" bind:update="initFn" bind:close="closeRiderList" show="{{showRaderList}}" wx:if="{{showRaderList}}" />