index.wxml 5.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <navbar parameter='{{parameter}}'></navbar>
  2. <view class='my-order'>
  3. <view class='header bg-color'>
  4. <view class='picTxt acea-row row-between-wrapper'>
  5. <view class='text'>
  6. <view class='name'>订单信息</view>
  7. <view>消费订单:{{orderData.order_count || 0}} 总消费:¥{{orderData.sum_price || 0}}</view>
  8. </view>
  9. <view class='pictrue'>
  10. <image src='/images/orderTime.png'></image>
  11. </view>
  12. </view>
  13. </view>
  14. <view class='nav acea-row row-around'>
  15. <view class='item {{orderStatus==0 ? "on": ""}}' data-status="0" bindtap="statusClick">
  16. <view>待付款</view>
  17. <view class='num'>{{orderData.unpaid_count || 0}}</view>
  18. </view>
  19. <view class='item {{orderStatus==1 ? "on": ""}}' data-status="1" bindtap="statusClick">
  20. <view>待发货</view>
  21. <view class='num'>{{orderData.unshipped_count || 0}}</view>
  22. </view>
  23. <view class='item {{orderStatus==2 ? "on": ""}}' data-status="2" bindtap="statusClick">
  24. <view>待收货</view>
  25. <view class='num '>{{orderData.received_count || 0}}</view>
  26. </view>
  27. <view class='item {{orderStatus==3 ? "on": ""}}' data-status="3" bindtap="statusClick">
  28. <view>待评价</view>
  29. <view class='num'>{{orderData.evaluated_count || 0}}</view>
  30. </view>
  31. <view class='item {{orderStatus==4 ? "on": ""}}' data-status="4" bindtap="statusClick">
  32. <view>已完成</view>
  33. <view class='num'>{{orderData.complete_count || 0}}</view>
  34. </view>
  35. </view>
  36. <view class='list'>
  37. <view class='item' wx:for="{{orderList}}" wx:key='index'>
  38. <view bindtap='goOrderDetails' data-order_id="{{item.order_id}}">
  39. <view class='title acea-row row-between-wrapper'>
  40. <view class="acea-row row-middle">
  41. <text class="sign cart-color acea-row row-center-wrapper" wx:if='{{item.bargain_id != 0}}'>砍价</text>
  42. <text class="sign cart-color acea-row row-center-wrapper" wx:elif='{{item.combination_id != 0}}'>拼团</text>
  43. <text class="sign cart-color acea-row row-center-wrapper" wx:elif='{{item.seckill_id != 0}}'>秒杀</text>
  44. <view>{{item._add_time}}</view>
  45. </view>
  46. <view wx:if="{{item._status._type == 0}}" class='font-color'>待付款</view>
  47. <view wx:elif="{{item._status._type == 1 && item.shipping_type==1}}" class='font-color'>待发货</view>
  48. <view wx:elif="{{item._status._type == 2}}" class='font-color'>待收货</view>
  49. <view wx:elif="{{item._status._type == 3}}" class='font-color'>待评价</view>
  50. <view wx:elif="{{item._status._type == 4}}" class='font-color'>已完成</view>
  51. <view wx:elif="{{item._status._type == 1 && item.shipping_type==2}}" class='font-color'>待核销</view>
  52. </view>
  53. <view class='item-info acea-row row-between row-top' wx:for="{{item.cartInfo}}" wx:key='index'>
  54. <view class='pictrue'>
  55. <image src='{{item.productInfo.image}}'></image>
  56. </view>
  57. <view class='text acea-row row-between'>
  58. <view class='name line2'>{{item.productInfo.store_name}}</view>
  59. <view class='money'>
  60. <view wx:if="{{item.productInfo.attrInfo}}">¥{{item.productInfo.attrInfo.price}}</view>
  61. <view wx:else>¥{{item.productInfo.price}}</view>
  62. <view>x{{item.cart_num}}</view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class='totalPrice'>共{{item.cartInfo.length || 0}}件商品,总金额
  67. <text class='money font-color'>¥{{item.pay_price}}</text>
  68. </view>
  69. </view>
  70. <view class='bottom acea-row row-right row-middle'>
  71. <view class='bnt cancelBnt' wx:if="{{item._status._type==0 || item._status._type == 9}}" data-index="{{index}}" data-order_id="{{item.order_id}}" bindtap='cancelOrder'>取消订单</view>
  72. <view class='bnt bg-color' wx:if="{{item._status._type == 0}}" data-pay_price="{{item.pay_price}}" data-order_id="{{item.order_id}}" bindtap='goPay'>立即付款</view>
  73. <view class='bnt bg-color' wx:elif="{{item._status._type == 1 || item._status._type == 9}}" data-order_id="{{item.order_id}}" bindtap='goOrderDetails'>查看详情</view>
  74. <view class='bnt bg-color' wx:elif="{{item._status._type == 2 && item.delivery_type}}" data-order_id="{{item.order_id}}" bindtap='goOrderDetails'>查看详情</view>
  75. <view class='bnt bg-color' wx:elif="{{item._status._type == 3}}" data-order_id="{{item.order_id}}" bindtap='goOrderDetails'>去评价</view>
  76. <view class='bnt bg-color' wx:elif="{{item.seckill_id < 1 && item.bargain_id < 1 && item.combination_id < 1 && item._status._type == 4}}" data-order_id="{{item.order_id}}" bindtap='goOrderDetails'>再次购买</view>
  77. <view class='bnt cancelBnt' wx:if='{{item._status._type == 4 }}' data-order_id="{{item.order_id}}" data-index="{{index}}" bindtap='delOrder'>删除订单</view>
  78. </view>
  79. </view>
  80. </view>
  81. <view class='loadingicon acea-row row-center-wrapper' wx:if="{{loading}}">
  82. <text class='loading iconfont icon-jiazai' hidden='{{loading==false}}'></text>{{loadTitle}}
  83. </view>
  84. </view>
  85. <view class='noCart' wx:if="{{orderList.length == 0 && page > 1}}">
  86. <view class='pictrue'>
  87. <image src='/images/noOrder.png'></image>
  88. </view>
  89. </view>
  90. <authorize bind:onLoadFun='onLoadFun'></authorize>
  91. <home></home>
  92. <payment payMode='{{payMode}}' pay_close="{{pay_close}}" bind:onChangeFun='onChangeFun' order_id="{{pay_order_id}}" totalPrice='{{totalPrice}}'></payment>