index.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <template>
  2. <div class="p-my-order">
  3. <h3 class="ptc-title">My Order</h3>
  4. <div class="ptc-block" :class="{ pb24: 1 }">
  5. <div class="cell-group border-bottom">
  6. <div class="cell">
  7. <span class="cell__label">Order Status</span>
  8. <span class="cell__value">
  9. <span
  10. class="ptc-tag"
  11. :class="{ 'not-paid': 1, paid: 0, canceled: 0 }"
  12. >Not Paid</span
  13. >
  14. </span>
  15. </div>
  16. <div class="cell">
  17. <span class="cell__label">Order Number</span>
  18. <span class="cell__value">12345678910</span>
  19. </div>
  20. <div class="cell">
  21. <span class="cell__label">Order Time</span>
  22. <span class="cell__value">2021/08/20 12:34</span>
  23. </div>
  24. <div class="cell">
  25. <span class="cell__label">Phone brand</span>
  26. <span class="cell__value">Apple iphone 12</span>
  27. </div>
  28. <div class="cell">
  29. <span class="cell__label">Version</span>
  30. <span class="cell__value">Lite(2022/7/31 Expires)</span>
  31. </div>
  32. </div>
  33. <div class="cell-group cell-group--compact">
  34. <template v-if="1">
  35. <div class="cell">
  36. <span class="cell__label">Activation fee</span>
  37. <span class="cell__value">$20.00</span>
  38. </div>
  39. <div class="cell">
  40. <span class="cell__label">Membership fee</span>
  41. <span class="cell__value">$8.95</span>
  42. </div>
  43. <div class="cell">
  44. <span class="cell__label">Discount</span>
  45. <span class="cell__value highlight">-$10.00</span>
  46. </div>
  47. </template>
  48. <div class="cell" :class="{ mt48: 1 }">
  49. <span class="cell__label">Cost</span>
  50. <span class="cell__value bold">$18.95</span>
  51. </div>
  52. </div>
  53. <div class="button-group">
  54. <button class="ptc-button ptc-button--stroke">Cancel</button>
  55. <button class="ptc-button">Pay 14:40</button>
  56. </div>
  57. </div>
  58. </div>
  59. </template>
  60. <style lang="scss">
  61. .p-my-order {
  62. background: #f7f7f7;
  63. .pb24 {
  64. padding-bottom: 24px !important;
  65. }
  66. .cell {
  67. &-group {
  68. padding: 8px 0 48px;
  69. &--compact {
  70. padding: 48px 0 8px;
  71. .cell + .cell {
  72. margin-top: 24px;
  73. }
  74. }
  75. }
  76. display: flex;
  77. justify-content: space-between;
  78. align-items: center;
  79. font-size: 32px;
  80. + .cell {
  81. margin-top: 48px;
  82. }
  83. &__label {
  84. color: #999;
  85. }
  86. &__value {
  87. color: #1a1a1a;
  88. }
  89. }
  90. .ptc-tag {
  91. &.not-paid {
  92. background: #dae1ef;
  93. color: $primary-color;
  94. }
  95. &.paid {
  96. background: #dae1ef;
  97. color: #a7b0c1;
  98. }
  99. &.canceled {
  100. background: #eaeaea;
  101. color: #999;
  102. }
  103. }
  104. .button-group {
  105. display: flex;
  106. justify-content: flex-end;
  107. margin-top: 24px;
  108. .ptc-button {
  109. width: 328px;
  110. height: 92px;
  111. + .ptc-button {
  112. margin-left: 26px;
  113. }
  114. }
  115. }
  116. }
  117. </style>