order.wxml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <wxs src="../../../utils/formatFuc.wxs" module="formatFuc" />
  2. <view class="poster" wx:if="{{myqr_show}}">
  3. <view>
  4. <image src="{{myqr_url}}" style="width:{{myqr_width}}rpx;" mode="widthFix">
  5. </image>
  6. <view class="tool">
  7. <view>
  8. <button open-type='share' class="share-btn">
  9. <image class="img" style="width: 85rpx;margin-right: 25rpx;" mode="widthFix" src="/static/images/share/p_wx.png"></image>
  10. </button>
  11. </view>
  12. <view>
  13. <image class="img" mode="widthFix" bindtap="goSaveQrcode" src="/static/images/share/p_save.png"></image>
  14. </view>
  15. </view>
  16. <view style="text-align:center">
  17. <image class="closeImg" bindtap="hidePoster" src="/static/images/share/close.png"></image>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="container" style="filter:blur({{myqr_blur}}rpx)">
  22. <van-sticky>
  23. <van-tabs active="{{showType }}" color="#09afff" bind:change="onTabChange">
  24. <van-tab title="全部" name="0"></van-tab>
  25. <van-tab title="待付款" name="1"></van-tab>
  26. <van-tab title="待确认" name="5"></van-tab>
  27. <van-tab title="待领取" name="6"></van-tab>
  28. <van-tab title="已付款" name="2"></van-tab>
  29. <van-tab title="已取消" name="3"></van-tab>
  30. <van-tab title="待退款" name="4"></van-tab>
  31. </van-tabs>
  32. </van-sticky>
  33. <view class="no-order" wx:if="{{orderList.length <= 0}}">
  34. <view class="c">
  35. <text>还没有任何订单呢</text>
  36. </view>
  37. </view>
  38. <view class="orders" wx:if="{{showType!=5&&showType!=6}}">
  39. <view class="order" wx:for="{{orderList}}" wx:key="index">
  40. <view class="h">
  41. <!-- <view class="l">订单编号:{{item.orderNo}}</view> -->
  42. <view class="l" wx:if="{{item.buyType==1}}">{{item.orderNo}}(自购)</view>
  43. <view class="l" wx:if="{{item.buyType==2}}">{{item.orderNo}} (代购)</view>
  44. <view class="r" wx:if="{{showType==0}}">{{formatFuc.statusText(item.orderStatus)}}</view>
  45. </view>
  46. <!-- <navigator url="../orderDetail/orderDetail?id={{item.id}}" open-type="redirect" > -->
  47. <view class="special-content">
  48. <scroll-view class="goods-scroll" scroll-x="true" >
  49. <view class="goods" wx:for="{{item.orderItemList}}" wx:key="id" wx:for-item="gitem">
  50. <view class="img">
  51. <image src="{{gitem.thumbnail}}"></image>
  52. </view>
  53. <view class="info">
  54. <view class="name">{{gitem.skuName}}</view>
  55. <view class="number">件数:{{gitem.buyNumber}}</view>
  56. </view>
  57. <view class="status">
  58. </view>
  59. </view>
  60. </scroll-view>
  61. <view class="goods-num">共{{item.commodityNum}}件</view>
  62. </view>
  63. <!-- </navigator> -->
  64. <view class="b">
  65. <view class="l">实付:¥{{item.orderAmount}}</view>
  66. <view style="float:right">{{item.createTime}}</view>
  67. </view>
  68. <!-- 操作事件 -->
  69. <view class="order-item-operate" >
  70. <view class="order-item-result">
  71. </view>
  72. <view class="order-operate-wrapper">
  73. <view catchtap="payOrder" wx:if="{{item.orderStatus==0}}" data-id="{{item.id}}">去付款</view>
  74. <!-- <view catchtap="confirmOrder" wx:if="{{item.handleOption.confirm}}" data-id="{{item.id}}">待上门</view> -->
  75. <view catchtap="deleteOrder" wx:if="{{item.orderStatus==0||item.orderStatus==2||item.orderStatus==3}}" data-id="{{item.id}}">删除订单</view>
  76. <view catchtap="cancelOrder" wx:if="{{item.orderStatus==0}}" data-id="{{item.id}}">取消订单</view>
  77. <view catchtap="refundOrder" wx:if="{{item.orderStatus==1}}" data-id="{{item.id}}">申请退款</view>
  78. <!-- <view data-id="{{item.goodsList[0].goodsId}}" catchtap="shareFriendOrCircle" >分享商品</view> -->
  79. <!-- <view catchtap="viewService" data-id="{{item.id}}" wx:if="{{!(item.orderStatus==101||item.orderStatus==102||item.orderStatus==103)}}">查看服务</view> -->
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. <view class="special-orders" wx:if="{{showType==5}}">
  85. <view class="special-item" wx:for="{{orderList}}" wx:key="index">
  86. <view class="title">
  87. <image src="/static/images/upgrade/order@selected.png"></image>
  88. <view wx:if="{{item.buyType==1}}">
  89. {{item.orderNo}} (自购)</view>
  90. <view wx:if="{{item.buyType==2}}">
  91. {{item.orderNo}} (代购)</view>
  92. </view>
  93. <view class="special-content">
  94. <scroll-view class="special-scroll" scroll-x="true" >
  95. <view class="scroll-item" wx:for="{{item.orderItemList}}" wx:key="id" wx:for-item="gitem">
  96. <image src="{{gitem.thumbnail}}" class="goods-img"></image>
  97. <view class="googs-name">
  98. {{gitem.skuName}}
  99. </view>
  100. <view class="buy-num">件数:{{gitem.buyNumber}}</view>
  101. </view>
  102. </scroll-view>
  103. <view class="goods-num">共{{item.commodityNum}}件</view>
  104. </view>
  105. <view class="special-operate">
  106. <view class="special-btn" bindtap="confirmOrder" data-id="{{item.id}}">确认领取</view>
  107. </view>
  108. </view>
  109. </view>
  110. <view class="special-orders" wx:if="{{showType==6}}">
  111. <view class="special-item" wx:for="{{orderList}}" wx:key="index">
  112. <view class="title-wrapper">
  113. <view class="title">
  114. <image src="/static/images/upgrade/order@selected.png"></image>
  115. <view>
  116. {{item.kitNo}}</view>
  117. </view>
  118. <view class="status-special">
  119. {{formatFuc.specialStatusText(item.disStatus)}}
  120. </view>
  121. </view>
  122. <view class="special-content">
  123. <scroll-view class="special-scroll" scroll-x="true" >
  124. <view class="scroll-item" wx:for="{{item.detailList}}" wx:key="id" wx:for-item="gitem">
  125. <image src="{{gitem.commodityPic}}" class="goods-img"></image>
  126. <view class="googs-name">
  127. {{gitem.name}}
  128. </view>
  129. <view class="buy-num">件数:{{gitem.num}}</view>
  130. </view>
  131. </scroll-view>
  132. <view class="goods-num">共{{item.total}}件</view>
  133. </view>
  134. <view class="fail-reason" wx:if="{{item.disStatus==8}}">{{item.failReason}}</view>
  135. <view class="special-operate">
  136. <view class="special-btn" wx:if="{{item.disStatus==2}}" bindtap="cancelSpec" data-id="{{item.id}}">我不需要</view>
  137. <view class="special-btn" wx:if="{{item.disStatus==2}}" bindtap="confirmSpec" data-id="{{item.id}}">确认规格</view>
  138. </view>
  139. </view>
  140. </view>
  141. </view>