index.wxml 5.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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}}" 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>
  52. <view class='item-info acea-row row-between row-top' wx:for="{{item.cartInfo}}" wx:key='index'>
  53. <view class='pictrue'>
  54. <image src='{{item.productInfo.image}}'></image>
  55. </view>
  56. <view class='text acea-row row-between'>
  57. <view class='name line2'>{{item.productInfo.store_name}}</view>
  58. <view class='money'>
  59. <view wx:if="{{item.productInfo.attrInfo}}">¥{{item.productInfo.attrInfo.price}}</view>
  60. <view wx:else>¥{{item.productInfo.price}}</view>
  61. <view>x{{item.cart_num}}</view>
  62. </view>
  63. </view>
  64. </view>
  65. <view class='totalPrice'>共{{item.cartInfo.length || 0}}件商品,总金额
  66. <text class='money font-color'>¥{{item.pay_price}}</text>
  67. </view>
  68. </view>
  69. <view class='bottom acea-row row-right row-middle'>
  70. <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>
  71. <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>
  72. <view class='bnt bg-color' wx:elif="{{item._status._type == 1 || item._status._type == 9}}" data-order_id="{{item.order_id}}" bindtap='goOrderDetails'>查看详情</view>
  73. <view class='bnt bg-color' wx:elif="{{item._status._type == 2 && item.delivery_type}}" data-order_id="{{item.order_id}}" bindtap='goOrderDetails'>查看详情</view>
  74. <view class='bnt bg-color' wx:elif="{{item._status._type == 3}}" data-order_id="{{item.order_id}}" bindtap='goOrderDetails'>去评价</view>
  75. <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>
  76. <view class='bnt cancelBnt' wx:if='{{item._status._type == 4 }}' data-order_id="{{item.order_id}}" data-index="{{index}}" bindtap='delOrder'>删除订单</view>
  77. </view>
  78. </view>
  79. </view>
  80. <view class='loadingicon acea-row row-center-wrapper' wx:if="{{loading}}">
  81. <text class='loading iconfont icon-jiazai' hidden='{{loading==false}}'></text>{{loadTitle}}
  82. </view>
  83. </view>
  84. <view class='noCart' wx:if="{{orderList.length == 0 && page > 1}}">
  85. <view class='pictrue'>
  86. <image src='/images/noOrder.png'></image>
  87. </view>
  88. </view>
  89. <authorize bind:onLoadFun='onLoadFun'></authorize>
  90. <home></home>
  91. <payment payMode='{{payMode}}' pay_close="{{pay_close}}" bind:onChangeFun='onChangeFun' order_id="{{pay_order_id}}" totalPrice='{{totalPrice}}'></payment>