OrderInfo.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="order-info">
  3. <view class="order-top">
  4. <view class="status">配送中</view>
  5. <text class="time">2021-05-20 07:52</text>
  6. </view>
  7. <view class="products">
  8. <view class="product">
  9. <u-image
  10. src="https://bpic.588ku.com/illus_water_img/21/07/05/ecab6de5a7b2972500459ba95cf97deb.jpg"
  11. width="160"
  12. height="160"
  13. border-radius="16"
  14. mode="cover"
  15. ></u-image>
  16. <view class="product-content">
  17. <view class="text1">
  18. <text>南瓜粥</text>
  19. <text>¥5</text>
  20. </view>
  21. <view class="text2">热</view>
  22. <view class="text2">共1件</view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. name: 'OrderInfo',
  31. data() {
  32. return {};
  33. }
  34. };
  35. </script>
  36. <style lang="scss">
  37. .order-info {
  38. background: #ffffff;
  39. border-radius: 12px;
  40. padding: 16px 12px;
  41. }
  42. .order-top {
  43. display: flex;
  44. justify-content: space-between;
  45. align-items: center;
  46. padding-bottom: 10px;
  47. border-bottom: 1px solid #f5f7fa;
  48. .status {
  49. font-size: 14px;
  50. font-weight: bold;
  51. color: $u-type-primary;
  52. line-height: 24px;
  53. }
  54. .time {
  55. font-size: 14px;
  56. color: #c8c9cc;
  57. line-height: 24px;
  58. }
  59. }
  60. .product {
  61. display: flex;
  62. padding: 20px 0;
  63. .product-content {
  64. flex-grow: 1;
  65. padding-left: 10px;
  66. .text1 {
  67. display: flex;
  68. justify-content: space-between;
  69. font-size: 14px;
  70. font-weight: bold;
  71. color: #1c1c1c;
  72. line-height: 24px;
  73. }
  74. .text2 {
  75. font-size: 14px;
  76. color: #c8c9cc;
  77. line-height: 24px;
  78. }
  79. }
  80. }
  81. </style>