index.wxml 5.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <navbar parameter='{{parameter}}'></navbar>
  2. <view class="pos-order-list" ref="container">
  3. <view class="nav acea-row row-around row-middle" style='top:{{navH}}rpx'>
  4. <view class="item" class="{{orderStatus == 0 ? 'active':''}}" bindtap="changeStatus" data-status="0">
  5. 待付款
  6. </view>
  7. <view class="item" class="{{orderStatus == 1 ? 'active':''}}" bindtap="changeStatus" data-status="1">
  8. 待发货
  9. </view>
  10. <view class="item" class="{{orderStatus == 2 ? 'active':''}}" bindtap="changeStatus" data-status="2">
  11. 待收货
  12. </view>
  13. <view class="item" class="{{orderStatus == 3 ? 'active':''}}" bindtap="changeStatus" data-status="3">
  14. 待评价
  15. </view>
  16. <view class="item" class="{{orderStatus == 4 ? 'active':''}}" bindtap="changeStatus" data-status="4">
  17. 已完成
  18. </view>
  19. <view class="item" class="{{orderStatus == -3 ? 'active':''}}" bindtap="changeStatus" data-status="-3">
  20. 退款
  21. </view>
  22. </view>
  23. <view class="list">
  24. <view class="item" wx:for="{{orderList}}" wx:key='index'>
  25. <view class="order-num acea-row row-middle" bindtap='goOrderDetails' data-order_id="{{item.order_id}}">
  26. 订单号:{{ item.order_id }}
  27. <span class="time">下单时间:{{ item.add_time }}</span>
  28. </view>
  29. <view class="pos-order-goods" wx:for="{{item._info}}" wx:key='index' wx:for-item='itemn'
  30. wx:for-index='indexn'>
  31. <view class="goods acea-row row-between-wrapper">
  32. <view class="picTxt acea-row row-between-wrapper" bindtap='goOrderDetails'
  33. data-order_id="{{item.order_id}}">
  34. <view class="pictrue">
  35. <image src='{{itemn.cart_info.productInfo.image}}'></image>
  36. </view>
  37. <view class="text acea-row row-between row-column">
  38. <view class="info line2">
  39. {{ itemn.cart_info.productInfo.store_name }}
  40. </view>
  41. <view class="attr" wx:if='{{itemn.cart_info.productInfo.suk}}'>
  42. {{ itemn.cart_info.productInfo.suk }}
  43. </view>
  44. </view>
  45. </view>
  46. <view class="money">
  47. <view class="x-money">¥{{ itemn.cart_info.productInfo.price }}</view>
  48. <view class="num">x{{ itemn.cart_info.cart_num }}</view>
  49. <view class="y-money">
  50. ¥{{ itemn.cart_info.productInfo.ot_price }}
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="public-total">
  56. 共{{ item.total_num }}件商品,应支付
  57. <span class="money">¥{{ item.pay_price }}</span> ( 邮费 ¥{{item.total_postage}})
  58. </view>
  59. <view class="operation acea-row row-between-wrapper">
  60. <view class="more">
  61. <!-- <div class="iconfont icon-gengduo" @click="more(index)"></div>-->
  62. <!-- <div class="order" v-show="current === index">-->
  63. <!-- <div class="items">-->
  64. <!-- {{ where.status > 0 ? "删除" : "取消" }}订单-->
  65. <!-- </div>-->
  66. <!-- <div class="arrow"></div>-->
  67. <!-- </div>-->
  68. </view>
  69. <view class="acea-row row-middle">
  70. <view class="bnt" wx:if="{{orderStatus == 0}}" bindtap="modify" data-status="0"
  71. data-orderInfo="{{item}}">
  72. 一键改价
  73. </view>
  74. <view class="bnt" bindtap="modify" data-status="1" data-orderInfo="{{item}}">订单备注</view>
  75. <view class="bnt" wx:if="{{orderStatus == -3 && item.refund_status === 1}}" bindtap="modify"
  76. data-status="0" data-orderInfo="{{item}}">
  77. 立即退款
  78. </view>
  79. <view class="bnt cancel" wx:if="{{item.pay_type === 'offline' && item.paid === 0}}"
  80. bindtap="offlinePay" data-orderInfo="{{item}}">
  81. 确认付款
  82. </view>
  83. <navigator class="bnt" url='/pages/admin/order_deliver/index?order_id={{item.order_id}}'
  84. wx:if="{{orderStatus == 1}}" hover-class='none'>去发货</navigator>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. <view class='loadingicon acea-row row-center-wrapper' wx:if="{{loading}}">
  90. <text class='loading iconfont icon-jiazai' hidden='{{loading==false}}'></text>{{loadTitle}}
  91. </view>
  92. </view>
  93. <authorize bind:onLoadFun='onLoadFun'></authorize>
  94. <priceChange status="{{status}}" change="{{change}}" orderInfo="{{orderInfo}}" bind:onChangeFun='onChangeFun'
  95. bind:getIndex='getIndex' wx:if="{{orderInfo}}"></priceChange>