index.wxml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <view class="container">
  2. <!-- tab栏 -->
  3. <view class="header f-28 col-3">
  4. <view catchtap="bindHeaderTap" class="{{dataType==='all'?'active':''}}" data-type="all">
  5. <text>全部</text>
  6. </view>
  7. <view bindtap="bindHeaderTap" class="{{dataType==='payment'?'active':''}}" data-type="payment">
  8. <text>待付款</text>
  9. </view>
  10. <view bindtap="bindHeaderTap" class="{{dataType==='delivery'?'active':''}}" data-type="delivery">
  11. <text>待发货</text>
  12. </view>
  13. <view bindtap="bindHeaderTap" class="{{dataType==='received'?'active':''}}" data-type="received">
  14. <text>待收货</text>
  15. </view>
  16. <view bindtap="bindHeaderTap" class="{{dataType==='comment'?'active':''}}" data-type="comment">
  17. <text>待评价</text>
  18. </view>
  19. </view>
  20. <!-- 订单列表 -->
  21. <view class="goods-detail-box">
  22. <scroll-view bindscrolltolower="bindDownLoad" scroll-y style="height: {{scrollHeight}}px; width: 750rpx;margin-top:88rpx;">
  23. <view class="wrapper" wx:if="{{list.data.length > 0}}">
  24. <!-- <view wx:if="{{list.length}}"> -->
  25. <view class="m-top20" wx:for="{{list.data}}" wx:key="this" catchtap="navigateToDetail" data-id="{{item.order_id}}">
  26. <view class="order-box b-f">
  27. <view class="order-header dis-flex">
  28. <view class="flex-box t-l">
  29. <text class="title">商品列表</text>
  30. </view>
  31. <view class="flex-box t-r">
  32. <text class="cont">{{item.state_text}}</text>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="order-box b-f">
  37. <view class="order-cont dis-flex">
  38. <view class="order-num">
  39. <text>订单号:{{item.order_no}}</text>
  40. </view>
  41. <view class="order-time">
  42. <text>{{item.create_time}}</text>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="order-box order-img_list">
  47. <view class="order-shop">
  48. <view class="order-list-box dis-flex">
  49. <view class="left">
  50. <view class="dis-flex">
  51. <view class="order-shop-left" wx:for="{{item.goods}}" wx:key="goods">
  52. <image src="{{item.image.file_path}}"></image>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="right dis-flex flex-x-center flex-y-center">
  57. <text class="goods-number">共{{item.goods.length}}件</text>
  58. <text class="iconfont icon-xiangyoujiantou user-orderJtou"></text>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. <view class="order-box b-f">
  64. <view class="order-btn dis-flex">
  65. <view class="order-left">
  66. <view class="text">
  67. <text>合计:</text>
  68. <text class="col-m">¥{{item.pay_price}}</text>
  69. </view>
  70. </view>
  71. <view class="order-right">
  72. <view class="btn-group dis-flex" wx:if="{{ item.order_status.value != 20 }}">
  73. <!-- 未支付取消订单 -->
  74. <view wx:if="{{ item.pay_status.value==10 }}">
  75. <view catchtap="cancelOrder" class="btn-default" data-id="{{item.order_id}}">取消</view>
  76. </view>
  77. <!-- 已支付取消订单 -->
  78. <block wx:if="{{ item.order_status.value!=21 }}">
  79. <view wx:if="{{ item.pay_status.value==20 && item.delivery_status.value==10 }}">
  80. <view catchtap="cancelOrder" class="btn-default" data-id="{{item.order_id}}">申请取消</view>
  81. </view>
  82. <!-- 订单核销码 -->
  83. <view wx:if="{{ item.pay_status.value==20 && item.delivery_type.value == DeliveryTypeEnum.EXTRACT.value && item.delivery_status.value == 10 }}">
  84. <view catchtap="onExtractQRCode" class="btn-main" data-id="{{item.order_id}}">
  85. <text class="iconfont icon-qr-extract"></text>
  86. <text class="m-l-10">核销码</text>
  87. </view>
  88. </view>
  89. </block>
  90. <block wx:else>
  91. <view class="f-28 col-8">取消申请中</view>
  92. </block>
  93. <!-- 订单付款 -->
  94. <view wx:if="{{item.pay_status.value==10}}">
  95. <view catchtap="onPayOrder" class="btn-main" data-id="{{item.order_id}}">付款</view>
  96. </view>
  97. <!-- 确认收货 -->
  98. <view wx:if="{{item.delivery_status.value==20 && item.receipt_status.value == 10}}">
  99. <view catchtap="receipt" class="btn-main" data-id="{{item.order_id}}">确认收货</view>
  100. </view>
  101. <!-- 订单评价 -->
  102. <view wx:if="{{item.order_status.value==30 && item.is_comment==0}}">
  103. <view catchtap="comment" class="btn-default" data-id="{{item.order_id}}">评价</view>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. <view wx:if="{{ no_more }}" class="no-more f-30">亲, 没有更多了</view>
  112. <view wx:if="{{ !isLoading && !list.data.length }}">
  113. <view class="yoshop-notcont">
  114. <text class="iconfont icon-wushuju"></text>
  115. <text class="cont">亲,您还没有订单信息哦!</text>
  116. </view>
  117. </view>
  118. </scroll-view>
  119. </view>
  120. <!-- 核销码弹出层 -->
  121. <zan-popup show="{{ showQRCodePopup }}" bindclose="onToggleQRCodePopup">
  122. <view class="pop-qrcode pop-example__container">
  123. <view class="pop-title">
  124. <text class="f-30">核销二维码</text>
  125. </view>
  126. <view class="pop-content">
  127. <image src="{{ QRCodeImage }}"></image>
  128. </view>
  129. </view>
  130. </zan-popup>
  131. <!-- 支付方式弹窗 -->
  132. <zan-popup show="{{ showPayPopup }}" bindclose="onTogglePayPopup">
  133. <view class="pop-orderPay pop-example__container">
  134. <view class="pop-title">
  135. <text class="f-30">请选择支付方式</text>
  136. </view>
  137. <view class="pop-content">
  138. <view class="pay-method">
  139. <form bindsubmit="onSelectPayType" data-value="{{ PayTypeEnum.WECHAT.value }}" report-submit="true">
  140. <button formType="submit" class="btn-normal">
  141. <view class="pay-item dis-flex flex-x-between">
  142. <view class="item-left dis-flex flex-y-center">
  143. <view class="item-left_icon wechat">
  144. <text class="iconfont icon-weixinzhifu"></text>
  145. </view>
  146. <view class="item-left_text">
  147. <text>{{ PayTypeEnum.WECHAT.name }}</text>
  148. </view>
  149. </view>
  150. </view>
  151. </button>
  152. </form>
  153. <form bindsubmit="onSelectPayType" data-value="{{ PayTypeEnum.BALANCE.value }}" report-submit="true">
  154. <button formType="submit" class="btn-normal">
  155. <view class="pay-item dis-flex flex-x-between">
  156. <view class="item-left dis-flex flex-y-center">
  157. <view class="item-left_icon balance">
  158. <text class="iconfont icon-qiandai"></text>
  159. </view>
  160. <view class="item-left_text">
  161. <text>{{ PayTypeEnum.BALANCE.name }}</text>
  162. </view>
  163. </view>
  164. </view>
  165. </button>
  166. </form>
  167. </view>
  168. </view>
  169. </view>
  170. </zan-popup>
  171. </view>