1
0

order.wxml 6.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <view class="container">
  2. <view class="tab-bar">
  3. <view wx:for="{{tabList}}" wx:key="{{index}}" bindtap="toggleTab" data-index="{{index}}" class="tab-bar-item {{ index == tabIndex ? 'active' : '' }}">{{ item }}</view>
  4. </view>
  5. <view style='height:40rpx;margin-left:20rpx;margin-top:20px;margin-bottom: 20rpx;'>
  6. <!-- <text style='font-size:24rpx;color:red;'>
  7. * 非保税仓商品不允许再来一单,需门店扫描二维码进行购买
  8. </text> -->
  9. </view>
  10. <view class="orders" wx:for="{{orderList}}" wx:if="{{orderList[index].id>0}}" wx:key="{{index}}">
  11. <view class="list-group">
  12. <navigator class="list-cell" url="../orderDetail/orderDetail?id={{item.id}}&&tabIndex={{tabIndex}}&&isRefundStatus={{item.isRefundStatus}}&&refundStatus={{item.refundStatus}}&&approvalRemark={{item.approvalRemark}}">
  13. <view class="list-cell-bd">
  14. <view class="list-label" style="color: #FE7200;">
  15. <image wx:if="{{item.orderBizType==00}}" src="../../../static/images/service-bao.png" class="search-icon-shop"></image>
  16. <text class="biz-type" wx:if="{{item.orderBizType==00}}">{{item.merchName}}{{item.storeName}} - 保税仓 </text>
  17. <image wx:if="{{item.orderBizType==02}}" src="../../../static/images/service-zs.png" class="search-icon-shop"></image>
  18. <text class="biz-type" wx:if="{{item.orderBizType==02}}">{{item.merchName}}{{item.storeName}} - 保税展示</text>
  19. <image wx:if="{{item.orderBizType==10}}" src="../../../static/images/service-ziti.png" class="search-icon-shop"></image>
  20. <text class="biz-type" wx:if="{{item.orderBizType==10}}">{{item.merchName}}{{item.storeName}} - 现场速递</text>
  21. <image wx:if="{{item.orderBizType==11}}" src="../../../static/images/service-ptsp.png" class="search-icon-shop"></image>
  22. <text class="biz-type" wx:if="{{item.orderBizType==11}}">{{item.merchName}}{{item.storeName}} - 普通商品</text>
  23. <!-- <text class="add_time">{{item.add_time}}{{orderList[0].id}}</text> -->
  24. <text class="add_time" wx:if="{{tabIndex!=5}}">{{tabIndex!=5 && item.order_status != 401 && item.pay_status!=7 && item.pay_status!=8?item.order_status_text:""}}{{item.order_status == 201 && item.isRefundStatus?"(维权申请中)":""}}{{item.pay_status==7?"订单关闭":""}}{{item.pay_status==8?"支付失败":""}}{{item.refundStatus==3?'-退款申请被拒绝':''}}
  25. </text>
  26. <text class="add_time" wx:if="{{tabIndex!=5 && item.order_status==401}}">{{item.pay_status==3 && item.order_status==401?'退款中':""}}{{item.pay_status==4 && item.order_status == 401?"已退款":""}}{{item.pay_status==5 && item.order_status == 401?"退款关闭":""}}{{item.pay_status==6 && item.order_status == 401?"退款异常":""}}
  27. </text>
  28. </view>
  29. </view>
  30. <view class="list-cell-ft router">
  31. </view>
  32. </navigator>
  33. <navigator url="../orderDetail/orderDetail?id={{item.id}}&&tabIndex={{tabIndex}}&&isRefundStatus={{item.isRefundStatus}}&&refundStatus={{item.refundStatus}}&&approvalRemark={{item.approvalRemark}}">
  34. <view class="list-cell2" wx:if="{{ index < 4 }}" wx:for="{{item.goodsList}}" wx:for-item="cell" wx:key="{{index}}">
  35. <view class="list-cell-hd order-image-hd">
  36. <image class="order-image" src="{{cell.list_pic_url}}"></image>
  37. </view>
  38. <view class="list-cell-bd">
  39. <view class="order-details">
  40. <view class="order-details-cell">
  41. <text class="name">{{cell.goods_name}}</text>
  42. <text class="num">x{{cell.number}}</text>
  43. </view>
  44. <view wx:if="{{ item.goodsList.length > 4 }}" class="order-details-cell">
  45. <text>...</text>
  46. </view>
  47. <view class="order-details-cell" wx:if="{{(index+1)==item.goodsList.length}}">
  48. <text style="margin-left: auto;">共{{item.goodsCount}}件商品,实付<text class="price">¥{{item.actual_price}}</text></text>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </navigator>
  54. <!-- 订单配送中 -->
  55. <!-- <view class="list-cell" wx:if="{{item.order_status==300}}">
  56. <map id="map" longitude="{{item.markers[0].longitude}}" latitude="{{item.markers[0].latitude}}" show-location include-points markers="{{item.markers}}" style="width: 100%; height: 30vh;z-index: 600"></map>
  57. </view> -->
  58. <view class="list-cell-tk" wx:if="{{tabIndex ==5 && (item.order_status == 401 || item.order_status == 402)}}">
  59. <image src="../../../static/images/service-tk.png" class="search-icon-shop3"></image>
  60. <text style='font-size: 26rpx;margin-left:5rpx'>
  61. {{item.order_status == 401?"仅退款 退款成功":""}}
  62. {{item.order_status == 402?"退货退款 退款成功":""}}
  63. </text>
  64. </view>
  65. <!-- <view class="list-cell-wq" wx:if="{{item.order_status == 201 && item.isRefundStatus}}">
  66. <text class='names'>
  67. 维权申请中
  68. </text>
  69. </view> -->
  70. <view class="list-cell-check" wx:if="{{item.buyerPayCheck == 2}}">
  71. <image src="../../../static/images/service-jg.png" class="search-icon-shop2"></image>
  72. <text class='names'>
  73. 您的订付人身份证姓名不一致
  74. </text>
  75. </view>
  76. <view class="list-cell">
  77. <view class="btn-box">
  78. <button wx:if="{{tabIndex != 5}}" class="{{item.orderBizType==00 && currentStoreId == item.store_id?'btn':'btn-disabel'}}" data-order-id="{{item.id}}" data-goods-type="{{item.orderBizType}}" data-is-Store='{{currentStoreId == item.store_id}}' catchtap="{{item.orderBizType==00 && currentStoreId == item.store_id ?'againBuy':'againBuyDisabel'}}">再来一单</button>
  79. <button class="btn" wx:if="{{item.order_status==300 && tabIndex != 5}}" data-shipping-No="{{item.shipping_no}}" data-shipping-Code="{{item.shipping_code}}" data-order-id="{{item.id}}" data-goods-type="{{item.orderBizType}}" catchtap="getWuliuList">查看物流</button>
  80. <button class="btn" data-actual-price="{{item.actual_price}}" data-order-id="{{item.id}}" data-order-index="{{index}}" data-order-biz-type="{{item.orderBizType}}" catchtap="payOrder" wx:if="{{item.handleOption.pay && item.dateformat && tabIndex != 5}}">去付款 {{item.dateformat.min}}{{item.dateformat?':':''}}{{item.dateformat.sec}}</button>
  81. <button wx:if="{{item.order_status==201 && tabIndex != 5 && !item.isRefundStatus}}" class="btn" data-order-Id="{{item.id}}" data-actual-Price="{{item.actual_price}}" data-merch-Order-Sn="{{item.merchOrderSn}}" data-is-Store='{{currentStoreId == item.store_id}}'
  82. catchtap="applyRefund">申请维权</button>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="orders" wx:if="{{!orderList[0].id}}">
  89. <view class="no-data">
  90. <image src="/static/images/tip-null.png"></image>
  91. <text>暂无订单</text>
  92. </view>
  93. </view>