order.wxml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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-tabs active="{{showType }}" color="#09afff" bind:change="onTabChange">
  23. <van-tab title="全部" name="0"></van-tab>
  24. <van-tab title="待付款" name="1"></van-tab>
  25. <van-tab title="已付款" name="2"></van-tab>
  26. <van-tab title="已取消" name="3"></van-tab>
  27. <van-tab title="待退款" name="4"></van-tab>
  28. </van-tabs>
  29. <view class="no-order" wx:if="{{orderList.length <= 0}}">
  30. <view class="c">
  31. <text>还没有任何订单呢</text>
  32. </view>
  33. </view>
  34. <view class="orders">
  35. <view class="order" wx:for="{{orderList}}" wx:key="index">
  36. <view class="h">
  37. <view class="l">订单编号:{{item.orderNo}}</view>
  38. <view class="r">{{formatFuc.statusText(item.orderStatus)}}</view>
  39. </view>
  40. <navigator url="../orderDetail/orderDetail?id={{item.id}}" open-type="redirect" >
  41. <view class="goods" wx:for="{{item.orderItemList}}" wx:key="id" wx:for-item="gitem">
  42. <view class="img">
  43. <image src="{{gitem.thumbnail}}"></image>
  44. </view>
  45. <view class="info">
  46. <text class="name">{{gitem.skuName}}</text>
  47. <text class="number">共{{gitem.buyNumber}}件商品</text>
  48. </view>
  49. <view class="status">
  50. </view>
  51. </view>
  52. </navigator>
  53. <view class="b">
  54. <view class="l">实付:¥{{item.orderAmount}}</view>
  55. </view>
  56. <!-- 操作事件 -->
  57. <view class="order-item-operate" >
  58. <view class="order-item-result">
  59. </view>
  60. <view class="order-operate-wrapper">
  61. <view catchtap="payOrder" wx:if="{{item.orderStatus==0}}" data-id="{{item.id}}">去付款</view>
  62. <!-- <view catchtap="confirmOrder" wx:if="{{item.handleOption.confirm}}" data-id="{{item.id}}">待上门</view> -->
  63. <view catchtap="deleteOrder" wx:if="{{item.orderStatus==0||item.orderStatus==2||item.orderStatus==3}}" data-id="{{item.id}}">删除订单</view>
  64. <view catchtap="cancelOrder" wx:if="{{item.orderStatus==0}}" data-id="{{item.id}}">取消订单</view>
  65. <view catchtap="refundOrder" wx:if="{{item.orderStatus==1}}" data-id="{{item.id}}">申请退款</view>
  66. <!-- <view data-id="{{item.goodsList[0].goodsId}}" catchtap="shareFriendOrCircle" >分享商品</view> -->
  67. <!-- <view catchtap="viewService" data-id="{{item.id}}" wx:if="{{!(item.orderStatus==101||item.orderStatus==102||item.orderStatus==103)}}">查看服务</view> -->
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>