index.wxml 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <nav type="back" title="订单详情" background-color="#e6e6e6"></nav>
  2. <scroll-view scroll-y="{{true}}" style="background:#fff;">
  3. <view class="pay_wrap">
  4. <view class="line"></view>
  5. <!-- 地址 -->
  6. <view class="address" bindtap="toAddress">
  7. <block wx:if="{{address}}">
  8. <van-icon size="60rpx" class="address_icon" name="https://file-cloud.fmode.cn/MldI5PBNt7/20211008/012c91105654.png" />
  9. <view class="address_info">
  10. <view class="info_top">
  11. <view class="name">{{address.name}}</view>
  12. <view class="mobile">{{address.mobile}}</view>
  13. </view>
  14. <view class="info_content">
  15. {{address.province_name}}{{address.city_name}}{{address.district_name}}{{address.address}}
  16. </view>
  17. <view class="tips">收货不便时,可选择暂存服务</view>
  18. </view>
  19. <van-icon size="60rpx" class="address_icon" name="https://file-cloud.fmode.cn/MldI5PBNt7/20211008/v1bjgu114143.png" />
  20. </block>
  21. <block wx:if="{{!address}}">
  22. <van-icon size="60rpx" class="address_icon" name="https://file-cloud.fmode.cn/MldI5PBNt7/20211008/012c91105654.png" />
  23. <view class="address_select">
  24. <view>请选择收货地址</view>
  25. </view>
  26. <van-icon size="60rpx" class="address_icon" name="https://file-cloud.fmode.cn/MldI5PBNt7/20211008/v1bjgu114143.png" />
  27. </block>
  28. </view>
  29. <!-- 商品信息 -->
  30. <view class="goods_box">
  31. <view class="title">
  32. <van-icon class="logo" size="40rpx" name="{{companyInfo.logo}}" />
  33. <view>{{companyInfo.title}}</view>
  34. </view>
  35. <view class="goods_info">
  36. <image class="goods_image" mode="scaleToFill" src="{{order.image}}"></image>
  37. <view class="goods_detail">
  38. <view class="goods_name">{{order.name}}</view>
  39. <view class="goods_desc">{{order.desc}}</view>
  40. <view class="goods_tips">发货时间:付款后72小时内</view>
  41. </view>
  42. </view>
  43. <view class="goods_count" wx:if="{{!show}}">
  44. <view>购买数量</view>
  45. <view>{{order.count}}</view>
  46. </view>
  47. <view class="goods_count" wx:if="{{!show}}">
  48. <view>支付金额</view>
  49. <view>{{order.price}}</view>
  50. </view>
  51. <view class="goods_count">
  52. <view>订单编号</view>
  53. <view>{{order.orderNum}}</view>
  54. </view>
  55. <view class="goods_count">
  56. <view>下单时间</view>
  57. <view>{{order.orderTime}}</view>
  58. </view>
  59. <view class="goods_count">
  60. <view>配送服务</view>
  61. <view>快递 包邮</view>
  62. </view>
  63. <block wx:if="{{order.status==300 || order.status==400}}">
  64. <view class="goods_count">
  65. <view>快递公司</view>
  66. <view>{{order.shipper?order.shipper:'暂无'}}</view>
  67. </view>
  68. <view class="goods_count">
  69. <view>快递单号</view>
  70. <view>{{order.trackingNumber?order.trackingNumber:"暂无"}}</view>
  71. </view>
  72. </block>
  73. <view class="goods_remark">
  74. <view>订单备注</view>
  75. <input value="{{remark}}" type="text" placeholder="请填写订单备注" />
  76. </view>
  77. </view>
  78. <view class="pay_btm">
  79. <van-submit-bar price="{{ (goods.price * num * 100) + serviceFee - discount*100}}" button-text="提交订单" bind:submit="onSubmit" />
  80. </view>
  81. </view>
  82. </scroll-view>
  83. <view class="btn">
  84. <view class="status" wx:if="{{order.status == 200}}">待发货</view>
  85. <view class="status" wx:elif="{{order.status == 300}}">待收货</view>
  86. <view class="status" wx:elif="{{order.status == 700}}">待评价</view>
  87. <view class="status" wx:elif="{{order.status == 800}}">已完成</view>
  88. <view class="status" wx:elif="{{order.status == 500}}">退款中</view>
  89. <view class="status" wx:elif="{{order.status == 600}}">已退款</view>
  90. <view class="refund" wx:if="{{order.status == 200 || order.status == 300 || order.status == 700}}" bind:tap="refund">
  91. 申请退款
  92. </view>
  93. <view class="refund" wx:if="{{order.status == 500}}">已申请退款</view>
  94. </view>