order.wxml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <view class="poster" wx:if="{{myqr_show}}">
  2. <view>
  3. <image src="{{myqr_url}}" style="width:{{myqr_width}}rpx;" mode="widthFix">
  4. </image>
  5. <view class="tool">
  6. <view>
  7. <button open-type='share' class="share-btn">
  8. <image class="img" style="width: 85rpx;margin-right: 25rpx;" mode="widthFix" src="/static/images/share/p_wx.png"></image>
  9. </button>
  10. </view>
  11. <view>
  12. <image class="img" mode="widthFix" bindtap="goSaveQrcode" src="/static/images/share/p_save.png"></image>
  13. </view>
  14. </view>
  15. <view style="text-align:center">
  16. <image class="closeImg" bindtap="hidePoster" src="/static/images/share/close.png"></image>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="container" style="filter:blur({{myqr_blur}}rpx)">
  21. <!-- <view class="orders-switch">
  22. <view class="item {{ showType == 0 ? 'active' : ''}}" bindtap="switchTab" data-index='0'>
  23. <view class="txt">全部</view>
  24. </view>
  25. <view class="item {{ showType == 1 ? 'active' : ''}}" bindtap="switchTab" data-index='1'>
  26. <view class="txt">待付款</view>
  27. </view> -->
  28. <!-- <view class="item {{ showType == 2 ? 'active' : ''}}" bindtap="switchTab" data-index='2'>
  29. <view class="txt">待发货</view>
  30. </view> -->
  31. <!-- <view class="item {{ showType == 3 ? 'active' : ''}}" bindtap="switchTab" data-index='3'>
  32. <view class="txt">待上门</view>
  33. </view>
  34. <view class="item {{ showType == 4 ? 'active' : ''}}" bindtap="switchTab" data-index='4'>
  35. <view class="txt">待评价</view>
  36. </view>
  37. </view> -->
  38. <van-tabs active="{{showType }}" color="#09afff" bind:change="onTabChange">
  39. <van-tab title="全部" name="0"></van-tab>
  40. <van-tab title="待付款" name="1"></van-tab>
  41. <van-tab title="服务中" name="3"></van-tab>
  42. <van-tab title="待评价" name="4"></van-tab>
  43. </van-tabs>
  44. <view class="no-order" wx:if="{{orderList.length <= 0}}">
  45. <view class="c">
  46. <text>还没有任何订单呢</text>
  47. </view>
  48. </view>
  49. <view class="orders">
  50. <view class="order" wx:for="{{orderList}}" wx:key="id">
  51. <view class="h">
  52. <view class="l">订单编号:{{item.orderSn}}</view>
  53. <view class="r">{{item.orderStatusText}}</view>
  54. </view>
  55. <navigator url="../orderDetail/orderDetail?id={{item.id}}" open-type="redirect" >
  56. <view class="goods" wx:for="{{item.goodsList}}" wx:key="id" wx:for-item="gitem">
  57. <view class="img">
  58. <image src="{{gitem.picUrl}}"></image>
  59. </view>
  60. <view class="info">
  61. <text class="name">{{gitem.goodsName}}</text>
  62. <text class="number">共{{gitem.number}}件商品</text>
  63. </view>
  64. <view class="status">
  65. </view>
  66. </view>
  67. </navigator>
  68. <view class="b">
  69. <view class="l">实付:¥{{item.actualPrice}}</view>
  70. </view>
  71. <!-- 操作事件 -->
  72. <view class="order-item-operate" >
  73. <view class="order-item-result">
  74. </view>
  75. <view class="order-operate-wrapper">
  76. <view catchtap="payOrder" wx:if="{{item.handleOption.pay}}" data-id="{{item.id}}">去付款</view>
  77. <!-- <view catchtap="confirmOrder" wx:if="{{item.handleOption.confirm}}" data-id="{{item.id}}">待上门</view> -->
  78. <view catchtap="deleteOrder" wx:if="{{item.handleOption.delete}}" data-id="{{item.id}}">删除订单</view>
  79. <view catchtap="cancelOrder" wx:if="{{item.handleOption.cancel}}" data-id="{{item.id}}">取消订单</view>
  80. <!-- <view catchtap="refundOrder" wx:if="{{item.handleOption.refund&&item.goodsList[0].goodsSn!='1036016'}}" data-id="{{item.id}}">申请退款</view> -->
  81. <!-- <view data-id="{{item.goodsList[0].goodsId}}" catchtap="shareFriendOrCircle" >分享商品</view> -->
  82. <view catchtap="viewService" data-id="{{item.id}}" wx:if="{{!(item.orderStatus==101||item.orderStatus==102||item.orderStatus==103)}}">查看服务</view>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>