orderDetail.wxml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <view class="container">
  2. <view class="order-info">
  3. <view class="item">
  4. <view class="label">下单时间:</view>
  5. <view class="txt">{{orderInfo.addTime}}</view>
  6. </view>
  7. <view class="item">
  8. <view class="label">订单编号:</view>
  9. <view class="txt">{{orderInfo.orderSn}}</view>
  10. </view>
  11. <view class="item">
  12. <view class="label">订单留言:</view>
  13. <view class="txt">{{orderInfo.message}}</view>
  14. </view>
  15. <view class="item-c">
  16. <view class="r">
  17. <view class="btn active" bindtap="cancelOrder" wx:if="{{handleOption.cancel}}">取消订单</view>
  18. <view class="btn active" bindtap="payOrder" wx:if="{{handleOption.pay}}">去付款</view>
  19. <view class="btn active" bindtap="confirmOrder" wx:if="{{handleOption.confirm}}">确认收货</view>
  20. <view class="btn active" bindtap="deleteOrder" wx:if="{{handleOption.delete}}">删除订单</view>
  21. <view class="btn active" bindtap="refundOrder" wx:if="{{handleOption.refund}}">申请退款</view>
  22. <view class="btn active" bindtap="aftersaleOrder" wx:if="{{handleOption.aftersale}}">申请售后</view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="order-goods">
  27. <view class="h">
  28. <view class="label">商品信息</view>
  29. <view class="status">{{orderInfo.orderStatusText}}</view>
  30. </view>
  31. <view class="goods">
  32. <view class="item" wx:for="{{orderGoods}}" wx:key="id">
  33. <view class="img">
  34. <image src="{{item.picUrl}}"></image>
  35. </view>
  36. <view class="info">
  37. <view class="t">
  38. <text class="name">{{item.goodsName}}</text>
  39. <text class="number">x{{item.number}}</text>
  40. </view>
  41. <view class="attr">{{item.specifications}}</view>
  42. <view class="price">¥{{item.price}}</view>
  43. <view class="btn active" wx:if="{{handleOption.comment && (item.comment == 0)}}">
  44. <navigator url="../../commentPost/commentPost?ogid={{item.id}}">去评价</navigator>
  45. </view>
  46. <view class="btn active" wx:if="{{handleOption.rebuy}}">
  47. <navigator url="../../goods/goods?id={{item.goodsId}}">再次购买</navigator>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="order-bottom">
  53. <view class="address">
  54. <view class="t">
  55. <text class="name">{{orderInfo.consignee}}</text>
  56. <text class="mobile">{{orderInfo.mobile}}</text>
  57. </view>
  58. <view class="b">{{orderInfo.address}}</view>
  59. </view>
  60. <view class="total">
  61. <view class="t">
  62. <text class="label">商品合计:</text>
  63. <text class="txt">¥{{orderInfo.goodsPrice}}元</text>
  64. </view>
  65. <view class="t">
  66. <text class="label">订单运费:</text>
  67. <text class="txt">¥{{orderInfo.freightPrice}}元</text>
  68. </view>
  69. <view class="t">
  70. <text class="label">订单优惠:</text>
  71. <text class="txt">-¥{{orderInfo.couponPrice}}元</text>
  72. </view>
  73. <view class="t">
  74. <text class="label">订单实付:</text>
  75. <text class="txt">¥{{orderInfo.actualPrice}}元</text>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. <view class="order-express" bindtap="expandDetail" wx:if="{{ orderInfo.expNo }}">
  81. <view class="order-express">
  82. <view class="title">
  83. <view class="t">快递公司:{{orderInfo.expName}}</view>
  84. <view class="b">物流单号:{{orderInfo.expNo}}</view>
  85. </view>
  86. <van-icon class="ti" name="arrow" />
  87. </view>
  88. <view class="traces" wx:for="{{expressInfo.Traces}}" wx:key="item" wx:for-item="iitem" wx:if="{{ flag }}">
  89. <view class="trace">
  90. <view class="acceptStation">{{iitem.AcceptStation}}</view>
  91. <view class="acceptTime">{{iitem.AcceptTime}}</view>
  92. </view>
  93. </view>
  94. </view>
  95. </view>