order.wxml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <!-- 商品数量不为1 -->
  2. <view class="orders-one" wx:if="{{orderData.commodity.length>1}}">
  3. <view class="o-one">
  4. <view class="orders-top">
  5. <view class="o-top-left">
  6. <van-image round width="60rpx" style="margin-top: 8rpx;" fit="cover" height="60rpx" src="{{orderData.user_info.headimg}}" />
  7. <view class="o-top-left-name">
  8. <p style="color: #3F3F3F; font-size: 24rpx;font-weight: 600;">{{orderData.user_info.name}}</p>
  9. <p style="color:#878787; font-size:20rpx;">{{orderData.create_time}}</p>
  10. </view>
  11. </view>
  12. <view class="o-top-right">
  13. <image wx:if="{{orderData.order_status == 1}}" src="/images/erweima.png"></image>
  14. <p wx:if="{{orderData.order_status === 0}}" style="font-size: 28rpx;color: #FF874E;">待支付</p>
  15. <p wx:if="{{orderData.order_status === 1}}" style="font-size: 28rpx;color: #FF874E;">待取货</p>
  16. <p wx:if="{{orderData.order_status === 2}}" style="font-size: 28rpx;color: #FF874E;">交易完成</p>
  17. <p wx:if="{{orderData.order_status === 3}}" style="font-size: 28rpx;color: #FF874E;">已取消</p>
  18. <p wx:if="{{orderData.order_status === 4}}" style="font-size: 28rpx;color: #FF874E;">申请退款</p>
  19. <p wx:if="{{orderData.order_status === 5}}" style="font-size: 28rpx;color: #FF874E;">退款成功</p>
  20. </view>
  21. </view>
  22. <view class="orders-body">
  23. <view class="o-body-scroll">
  24. <scroll-view scroll-x="true" class="o-body-scrolls">
  25. <van-image width="77" class="o-b-s-img" height="77" wx:for="{{orderData.commodity}}" wx:key="index" src="{{item.commodity_img}}" />
  26. </scroll-view>
  27. <view class="o-body-go">
  28. 共{{orderData.commodity.length}}件<image src="/images/go.png"></image>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="orders-price">
  33. <p class="o-p-he">合计: </p>
  34. <p class="o-p-bi">C$ </p>
  35. <p class="o-p-ge">{{orderData.payment_amount}}</p>
  36. </view>
  37. <view class="orders-foot">
  38. <button class="orders-share" open-type="share" catchtap="shareOrder">
  39. <image src="/images/share.png"></image>
  40. 分享
  41. </button>
  42. <view class="orders-right">
  43. <button class="orders-pay" wx:if="{{orderData.order_status === 0}}">立即支付</button>
  44. <button class="orders-rel" catchtap="callHead">联系团长</button>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. <!-- 商品数量为1 -->
  50. <view class="order" wx:else>
  51. <view class="o-one">
  52. <view class="orders-top">
  53. <view class="o-top-left">
  54. <van-image round width="60rpx" style="margin-top: 8rpx;" fit="cover" height="60rpx" src="{{orderData.user_info.headimg}}" />
  55. <view class="o-top-left-name">
  56. <p style="color: #3F3F3F; font-size: 24rpx;font-weight: 600;">{{orderData.user_info.name}}</p>
  57. <p style="color:#878787; font-size:20rpx;">{{orderData.create_time}}</p>
  58. </view>
  59. </view>
  60. <view class="o-top-right">
  61. <image wx:if="{{orderData.order_status == 1}}" src="/images/erweima.png"></image>
  62. <p wx:if="{{orderData.order_status === 0}}" style="font-size: 28rpx;color: #FF874E;">待支付</p>
  63. <p wx:if="{{orderData.order_status === 1}}" style="font-size: 28rpx;color: #FF874E;">待取货</p>
  64. <p wx:if="{{orderData.order_status === 2}}" style="font-size: 28rpx;color: #FF874E;">交易完成</p>
  65. <p wx:if="{{orderData.order_status === 3}}" style="font-size: 28rpx;color: #FF874E;">已取消</p>
  66. <p wx:if="{{orderData.order_status === 4}}" style="font-size: 28rpx;color: #FF874E;">申请退款</p>
  67. <p wx:if="{{orderData.order_status === 5}}" style="font-size: 28rpx;color: #FF874E;">退款成功</p>
  68. </view>
  69. </view>
  70. <view class="order-body">
  71. <van-image radius="10" width="76" class="o-b-s-img" height="76" src="{{orderData.commodity[0].commodity_img}}" />
  72. <view class="order-title">
  73. <view class="titinfo">
  74. <p>{{orderData.commodity[0].commodity_name}}</p>
  75. <p>C${{orderData.commodity[0].price}}</p>
  76. </view>
  77. <view class="guiinfo">
  78. <view wx:if="{{orderData.commodity[0].specifications}}">
  79. <p class="guige">规格:{{orderData.commodity[0].specifications[0].title}}</p>
  80. <p>/份</p>
  81. </view>
  82. <view wx:else>
  83. <p>暂无规格</p>
  84. </view>
  85. <p>共{{orderData.commodity.length}}份</p>
  86. </view>
  87. </view>
  88. </view>
  89. <view class="orders-price">
  90. <p class="o-p-he">合计: </p>
  91. <p class="o-p-bi">C$ </p>
  92. <p class="o-p-ge">{{orderData.payment_amount}}</p>
  93. </view>
  94. <view class="orders-foot">
  95. <view class="orders-share" catchtap="shareOrder">
  96. <image src="/images/share.png"></image>
  97. 分享
  98. </view>
  99. <view class="orders-right">
  100. <button class="orders-pay" wx:if="{{orderData.order_status === 0}}">立即支付</button>
  101. <button class="orders-rel" catchtap="callHead">联系团长</button>
  102. </view>
  103. </view>
  104. </view>
  105. </view>