order.wxml 5.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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}}">
  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.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.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.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.storeName}} - 普通商品</text>
  23. <!-- <text class="add_time">{{item.add_time}}{{orderList[0].id}}</text> -->
  24. <text class="add_time" wx:if="{{tabIndex!=5}}">{{item.order_status_text}}</text>
  25. </view>
  26. </view>
  27. <view class="list-cell-ft router">
  28. </view>
  29. </navigator>
  30. <view class="list-cell">
  31. <view class="list-cell-hd order-image-hd">
  32. <navigator url="../orderDetail/orderDetail?id={{item.id}}">
  33. <image class="order-image" src="{{item.goodsList[0].list_pic_url}}"></image>
  34. </navigator>
  35. </view>
  36. <view class="list-cell-bd">
  37. <navigator url="../orderDetail/orderDetail?id={{item.id}}&&tabIndex={{tabIndex}}&&isRefundStatus={{item.isRefundStatus}}&&refundStatus={{item.refundStatus}}&&approvalRemark={{item.approvalRemark}}">
  38. <view class="order-details">
  39. <view class="order-details-cell" wx:if="{{ index < 4 }}" wx:for="{{item.goodsList}}" wx:for-item="cell" wx:key="{{index}}">
  40. <text class="name">{{cell.goods_name}}</text>
  41. <text class="num">x{{cell.number}}</text>
  42. </view>
  43. <view wx:if="{{ item.goodsList.length > 4 }}" class="order-details-cell">
  44. <text>...</text>
  45. </view>
  46. <view class="order-details-cell">
  47. <text style="margin-left: auto;">共{{item.goodsCount}}份,实付<text class="price">¥{{item.actual_price}}</text></text>
  48. </view>
  49. </view>
  50. </navigator>
  51. </view>
  52. </view>
  53. <!-- 订单配送中 -->
  54. <!-- <view class="list-cell" wx:if="{{item.order_status==300}}">
  55. <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>
  56. </view> -->
  57. <view class="list-cell-tk" wx:if="{{tabIndex ==5 || (item.order_status == 401 || item.order_status == 402)}}">
  58. <text style='font-size: 26rpx;'>
  59. {{item.order_status == 401?"仅退款 退款成功":""}}
  60. {{item.order_status == 402?"退货退款 退款成功":""}}
  61. </text>
  62. </view>
  63. <view class="list-cell-wq" wx:if="{{item.order_status == 201 && item.isRefundStatus}}">
  64. <text class='names'>
  65. 维权申请中
  66. </text>
  67. </view>
  68. <view class="list-cell">
  69. <view class="btn-box">
  70. <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>
  71. <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>
  72. <button class="btn" data-actual-price="{{item.actual_price}}" data-order-id="{{item.id}}" data-order-index="{{index}}" catchtap="payOrder" wx:if="{{item.handleOption.pay && item.dateformat && tabIndex != 5}}">去付款 {{item.dateformat.min}}{{item.dateformat?':':''}}{{item.dateformat.sec}}</button>
  73. <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-is-Store='{{currentStoreId == item.store_id}}' catchtap="applyRefund">申请维权</button>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. <view class="orders" wx:if="{{!orderList[0].id}}">
  80. <view class="no-data">
  81. <image src="/static/images/tip-null.png"></image>
  82. <text>暂无订单</text>
  83. </view>
  84. </view>