index.wxml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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 {{ item.reparation && "font-color" }}'>
  58. <view class='name {{ item.reparation ? "font-color" : "line2" }}'
  59. >{{item.productInfo.store_name + (item.reparation && " -- 已赔付") }}</view
  60. >
  61. <view class="money">
  62. <view wx:if="{{item.productInfo.attrInfo}}">¥{{item.productInfo.attrInfo.price}}</view>
  63. <view wx:else>¥{{item.productInfo.price}}</view>
  64. <view>x{{item.cart_num}}</view>
  65. </view>
  66. </view>
  67. </view>
  68. <view class="totalPrice"
  69. >共{{item.cartInfo.length || 0}}件商品,总金额
  70. <text class="money font-color">¥{{item.pay_price}}</text>
  71. </view>
  72. </view>
  73. <view class="bottom acea-row row-right row-middle">
  74. <view
  75. class="bnt cancelBnt"
  76. wx:if="{{item._status._type==0 || item._status._type == 9}}"
  77. data-index="{{index}}"
  78. data-order_id="{{item.order_id}}"
  79. bindtap="cancelOrder"
  80. >取消订单</view
  81. >
  82. <view
  83. class="bnt bg-color"
  84. wx:if="{{item._status._type == 0}}"
  85. data-pay_price="{{item.pay_price}}"
  86. data-order_id="{{item.order_id}}"
  87. bindtap="goPay"
  88. >立即付款</view
  89. >
  90. <view
  91. class="bnt bg-color"
  92. wx:elif="{{item._status._type == 1 || item._status._type == 9}}"
  93. data-order_id="{{item.order_id}}"
  94. bindtap="goOrderDetails"
  95. >查看详情</view
  96. >
  97. <view
  98. class="bnt bg-color"
  99. wx:elif="{{item._status._type == 2 && item.delivery_type}}"
  100. data-order_id="{{item.order_id}}"
  101. bindtap="goOrderDetails"
  102. >查看详情</view
  103. >
  104. <view
  105. class="bnt bg-color"
  106. wx:elif="{{item._status._type == 3}}"
  107. data-order_id="{{item.order_id}}"
  108. bindtap="goOrderDetails"
  109. >去评价</view
  110. >
  111. <view
  112. class="bnt bg-color"
  113. wx:elif="{{item.seckill_id < 1 && item.bargain_id < 1 && item.combination_id < 1 && item._status._type == 4}}"
  114. data-order_id="{{item.order_id}}"
  115. bindtap="goOrderDetails"
  116. >再次购买</view
  117. >
  118. <view
  119. class="bnt cancelBnt"
  120. wx:if="{{item._status._type == 4 }}"
  121. data-order_id="{{item.order_id}}"
  122. data-index="{{index}}"
  123. bindtap="delOrder"
  124. >删除订单</view
  125. >
  126. </view>
  127. </view>
  128. </view>
  129. <view class="loadingicon acea-row row-center-wrapper" wx:if="{{loading}}">
  130. <text class="loading iconfont icon-jiazai" hidden="{{loading==false}}"></text>{{loadTitle}}
  131. </view>
  132. </view>
  133. <view class="noCart" wx:if="{{orderList.length == 0 && page > 1}}">
  134. <view class="pictrue">
  135. <image src="/images/noOrder.png"></image>
  136. </view>
  137. </view>
  138. <authorize bind:onLoadFun="onLoadFun"></authorize>
  139. <!-- <home></home> -->
  140. <payment
  141. payMode="{{payMode}}"
  142. pay_close="{{pay_close}}"
  143. bind:onChangeFun="onChangeFun"
  144. order_id="{{pay_order_id}}"
  145. totalPrice="{{totalPrice}}"
  146. ></payment>