orderItemInfo.wxml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <view class="orderItemInfoContainer">
  2. <!-- 订单信息 -->
  3. <view class="orderInfoBox">
  4. <!-- 油枪 -->
  5. <view class="nozzleAndStatus">
  6. <text class="nozzle">{{order.nozzle}} 号油枪</text>
  7. <text class="status" style="color: {{order.statusColor}};">{{order.status}}</text>
  8. </view>
  9. <view class="orderInfo" style="height: {{contentHeight}}vh;" bind:tap="showOrHide">
  10. <!-- 订单主要信息 -->
  11. <view class="mainInfo">
  12. <image style="width: 150rpx; height: 140rpx; display: block; box-sizing: border-box; position: relative; left: 0rpx; top: 14rpx" class="youqiang" src="/images/oiloil.png" mode="aspectFill" />
  13. <view class="oilInfo">
  14. <text class="oil" style="position: relative; left: 22rpx; top: 0rpx">{{order.oilName}}</text>
  15. <text class="volume" style="position: relative; left: 22rpx; top: 0rpx">{{order.volume}}升数</text>
  16. </view>
  17. <view class="amountBox">
  18. <text class="mainAmount">¥ {{order.payAmount}}</text>
  19. <image src="../../images/down.png" mode="aspectFill" style="transform: rotate({{rotateDeg}}deg);" />
  20. </view>
  21. </view>
  22. <!-- 分割线 -->
  23. <view class="line"></view>
  24. <view class="orderDetailInfo transition-box">
  25. <view>
  26. <text>升数</text>
  27. <text>{{order.volume}}L</text>
  28. </view>
  29. <view>
  30. <text>单价</text>
  31. <text>¥ {{order.price}}</text>
  32. </view>
  33. <!-- 分割线 -->
  34. <view class="line"></view>
  35. <!-- 详情信息 -->
  36. <view class="orderDetailInfo transition-box">
  37. <view>
  38. <text>金额</text>
  39. <text>¥ {{order.amount}}</text>
  40. </view>
  41. <view>
  42. <text>优惠</text>
  43. <text>-{{order.discount}}</text>
  44. </view>
  45. <view>
  46. <text>合计</text>
  47. <text>¥ {{order.payAmount}}</text>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <!-- 分割线 -->
  53. <view class="line"></view>
  54. <!-- 其余信息 -->
  55. <view class="orderDetailInfo">
  56. <view>
  57. <text>交易订单号</text>
  58. <text>{{order.orderId}}</text>
  59. </view>
  60. <view>
  61. <text>时间</text>
  62. <text>{{order.time}}</text>
  63. </view>
  64. </view>
  65. </view>
  66. <text wx:if="{{bottonText2 != ''}}" class="botton" bind:tap="buttonClick2">{{bottonText2}}</text>
  67. </view>