order.wxml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <view class="orders-one" wx:if="{{orderData.goods.length>1}}">
  2. <view class="o-one">
  3. <view class="orders-top">
  4. <view class="o-top-left">
  5. <van-image round width="60rpx" style="margin-top: 8rpx;" fit="cover" height="60rpx" src="https://img.yzcdn.cn/vant/cat.jpeg" />
  6. <view class="o-top-left-name">
  7. <p style="color: #3F3F3F; font-size: 24rpx;font-weight: 600;">阿萍子</p>
  8. <p style="color:#878787; font-size:20rpx;">2021-09-21 19:30</p>
  9. </view>
  10. </view>
  11. <view class="o-top-right">
  12. <image wx:if="{{orderData.statu == 1}}" src="/images/erweima.png"></image>
  13. <p style="font-size: 28rpx;color: #FF874E;">{{orderData.statu==1?'待收货':'待付款'}}</p>
  14. </view>
  15. </view>
  16. <view class="orders-body">
  17. <view class="o-body-scroll">
  18. <scroll-view scroll-x="true" class="o-body-scrolls">
  19. <van-image width="77" class="o-b-s-img" height="77" wx:for="{{orderData.goods}}" wx:key="index" src="{{item.img}}" />
  20. </scroll-view>
  21. <view class="o-body-go">
  22. 共{{orderData.goods.length}}件<image src="/images/go.png"></image>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="orders-price">
  27. <p class="o-p-he">合计: </p>
  28. <p class="o-p-bi">C$ </p>
  29. <p class="o-p-ge">24.4</p>
  30. </view>
  31. <view class="orders-foot">
  32. <button class="orders-share">
  33. <image src="/images/share.png"></image>
  34. 分享
  35. </button>
  36. <view class="orders-right">
  37. <button class="orders-rel">联系团长</button>
  38. <button class="orders-pay" wx:if="{{orderData.statu!=1}}">立即支付</button>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="order" wx:else>
  44. <view class="o-one">
  45. <view class="orders-top">
  46. <view class="o-top-left">
  47. <van-image round width="60rpx" style="margin-top: 8rpx;" fit="cover" height="60rpx" src="https://img.yzcdn.cn/vant/cat.jpeg" />
  48. <view class="o-top-left-name">
  49. <p style="color: #3F3F3F; font-size: 24rpx;font-weight: 600;">阿萍子</p>
  50. <p style="color:#878787; font-size:20rpx;">2021-09-21 19:30</p>
  51. </view>
  52. </view>
  53. <view class="o-top-right">
  54. <image src="/images/erweima.png" wx:if="{{orderData.statu==1}}"></image>
  55. <p style="font-size: 28rpx;color: #FF874E;">{{orderData.statu==1?'待收货':'待付款'}}</p>
  56. </view>
  57. </view>
  58. <view class="order-body">
  59. <van-image width="76" class="o-b-s-img" height="76" src="{{orderData.goods[0].img}}" />
  60. <view class="order-title">
  61. <view class="titinfo">
  62. <p>{{orderData.goods[0].name}}</p>
  63. <p>C$ 12.2</p>
  64. </view>
  65. <view class="guiinfo">
  66. <view>
  67. <p class="guige">规格:500 </p>
  68. <p>g/份</p>
  69. </view>
  70. <p>共2份</p>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="orders-price">
  75. <p class="o-p-he">合计: </p>
  76. <p class="o-p-bi">C$ </p>
  77. <p class="o-p-ge">24.4</p>
  78. </view>
  79. <view class="orders-foot">
  80. <button class="orders-share">
  81. <image src="/images/share.png"></image>
  82. 分享
  83. </button>
  84. <view class="orders-right">
  85. <button class="orders-rel">联系团长</button>
  86. <button class="orders-pay" wx:if="{{orderData.statu!=1}}">立即支付</button>
  87. </view>
  88. </view>
  89. </view>
  90. </view>