index.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <div class="p-benefits bg-gray">
  3. <h3 class="ptc-title">Member benefits</h3>
  4. <div class="ptc-block">
  5. <div class="ptc-inner">
  6. <div class="l1">
  7. <i class="icon-lite"></i
  8. ><strong class="ptc-text">Lite</strong>2021/09/01 to 2022/08/31
  9. </div>
  10. <p class="l2">iPhone 12</p>
  11. <p class="l3">QWERTYUIO12345678</p>
  12. <p class="l4">
  13. <button class="ptc-button ptc-button--stroke">Renewal</button>
  14. </p>
  15. <p class="l5" @click="$router.push('/renewal')">Renewal management ></p>
  16. </div>
  17. </div>
  18. <div class="ptc-block">
  19. <div class="ptc-inner">
  20. <div class="benefit benefit-a">
  21. <p class="benefit-name">Unlimited</p>
  22. <p class="benefit-desc">Avaliable 1</p>
  23. <p class="benefit-sup">
  24. Member price:<span class="highlight">$35</span>
  25. </p>
  26. <button class="ptc-button">Apply</button>
  27. </div>
  28. <div class="benefit benefit-b">
  29. <p class="benefit-name">Phone Health Inspection Service</p>
  30. <p class="benefit-desc">Avaliable 1</p>
  31. <p class="benefit-sup">Available after 2021/06/01</p>
  32. <button class="ptc-button">Nearby shops</button>
  33. </div>
  34. <div class="benefit benefit-c">
  35. <p class="benefit-name">Technical Support</p>
  36. <p class="benefit-desc">Available throughout the year</p>
  37. <button class="ptc-button">Contact us</button>
  38. </div>
  39. <div class="benefit benefit-d">
  40. <p class="benefit-name">Birthday Gift</p>
  41. <p class="benefit-desc">
  42. Pick up at the store in the month of your birthday, you can only
  43. enjoy it once
  44. </p>
  45. </div>
  46. <div class="benefit benefit-e">
  47. <p class="benefit-name">Cleaning Kit</p>
  48. <p class="benefit-desc">Give a gift of XX</p>
  49. <button class="ptc-button">Send to me</button>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </template>
  55. <style lang="scss">
  56. .p-benefits {
  57. .l1 {
  58. display: flex;
  59. font-size: 28px;
  60. color: #90a0c0;
  61. strong {
  62. margin: 0 20px 0 10px;
  63. }
  64. }
  65. .l2 {
  66. margin-top: 48px;
  67. line-height: 56px;
  68. font-size: 40px;
  69. font-weight: bold;
  70. color: #333;
  71. text-align: center;
  72. }
  73. .l3 {
  74. margin-top: 8px;
  75. line-height: 40px;
  76. font-size: 28px;
  77. color: #999;
  78. text-align: center;
  79. }
  80. .l4 {
  81. margin: 64px 0 24px;
  82. font-size: 0;
  83. text-align: center;
  84. button {
  85. margin: auto;
  86. width: 412px;
  87. height: 68px;
  88. font-size: 32px;
  89. }
  90. }
  91. .l5 {
  92. line-height: 44px;
  93. font-weight: bold;
  94. font-size: 32px;
  95. color: $primary-color;
  96. text-align: center;
  97. }
  98. .benefit {
  99. padding-left: 100px;
  100. padding-bottom: 46px;
  101. background-repeat: no-repeat;
  102. background-position: 0 48px;
  103. background-size: 64px 64px;
  104. &-a {
  105. background-position: 0 0;
  106. background-image: url(@img/benefit0.png);
  107. }
  108. &-b {
  109. background-image: url(@img/benefit1.png);
  110. }
  111. &-c {
  112. background-image: url(@img/benefit2.png);
  113. }
  114. &-d {
  115. background-image: url(@img/benefit3.png);
  116. }
  117. &-e {
  118. background-image: url(@img/benefit4.png);
  119. }
  120. + .benefit {
  121. padding-top: 48px;
  122. @include thin-border(top);
  123. }
  124. &-name {
  125. line-height: 56px;
  126. font-size: 40px;
  127. font-weight: bold;
  128. color: #1a1a1a;
  129. }
  130. &-desc {
  131. margin-top: 24px;
  132. line-height: 44px;
  133. font-size: 32px;
  134. color: #1a1a1a;
  135. }
  136. &-sup {
  137. margin-top: 8px;
  138. line-height: 44px;
  139. font-size: 32px;
  140. color: #999;
  141. }
  142. .ptc-button {
  143. margin-top: 24px;
  144. width: 248px;
  145. height: 68px;
  146. font-size: 32px;
  147. }
  148. }
  149. }
  150. </style>