package.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <template>
  2. <div class="page">
  3. <div class="page-top flex flex-col justify-center items-center">
  4. <img
  5. class="logo"
  6. src="https://static.caimei365.com/www/authentic/pc/ldm-logo-rect.png"
  7. />
  8. <div class="name mt-2">
  9. Bring you into a new era<br />
  10. of high-tech non-invasive beauty care
  11. </div>
  12. </div>
  13. <div class="page-content">
  14. <div class="list">
  15. <div class="section flex justify-between items-center">
  16. <div class="info">
  17. <div class="name">
  18. 以色列无针水光JDV/优斐斯/瑞漾小白盒及希腊YELLOWROSE,无针透皮注入技...
  19. </div>
  20. <div class="download">点击下载</div>
  21. </div>
  22. </div>
  23. <div class="section flex justify-between items-center">
  24. <div class="info">
  25. <div class="name">
  26. 以色列无针水光JDV/优斐斯/瑞漾小白盒及希腊YELLOWROSE,无针透皮注入技...
  27. </div>
  28. <div class="download">点击下载</div>
  29. </div>
  30. </div>
  31. <div class="section flex justify-between items-center">
  32. <div class="info">
  33. <div class="name">
  34. 以色列无针水光JDV/优斐斯/瑞漾小白盒及希腊YELLOWROSE,无针透皮注入技...
  35. </div>
  36. <div class="download">点击下载</div>
  37. </div>
  38. </div>
  39. <div class="section flex justify-between items-center">
  40. <div class="info">
  41. <div class="name">
  42. 以色列无针水光JDV/优斐斯/瑞漾小白盒及希腊YELLOWROSE,无针透皮注入技...
  43. </div>
  44. <div class="download">点击下载</div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </template>
  51. <script>
  52. export default {
  53. layout: 'app-ldm',
  54. }
  55. </script>
  56. <style scoped lang="scss">
  57. /* scss中可以用mixin来扩展 */
  58. @mixin ellipsis($line: 1) {
  59. overflow: hidden;
  60. text-overflow: ellipsis;
  61. display: -webkit-box;
  62. -webkit-line-clamp: $line;
  63. -webkit-box-orient: vertical;
  64. }
  65. @media screen and (min-width: 768px) {
  66. .page-top {
  67. height: 466px;
  68. .logo {
  69. height: 61px;
  70. width: 311px;
  71. display: block;
  72. }
  73. .name {
  74. font-size: 19px;
  75. color: #221815;
  76. margin-top: 80px;
  77. text-align: center;
  78. line-height: 36px;
  79. text-transform: uppercase;
  80. }
  81. }
  82. .page-content {
  83. width: 973px;
  84. margin: 0 auto;
  85. .list {
  86. .section {
  87. position: relative;
  88. padding: 32px 16px;
  89. background: #fff;
  90. border-bottom: 1px solid #d8d8d8;
  91. &:first-child {
  92. border-top: 1px solid #d8d8d8;
  93. }
  94. .info {
  95. .name {
  96. width: 800px;
  97. font-size: 19px;
  98. color: #404040;
  99. line-height: 1.5;
  100. text-align: justify;
  101. @include ellipsis(1);
  102. }
  103. .download {
  104. position: absolute;
  105. right: 16px;
  106. bottom: 50%;
  107. transform: translateY(50%);
  108. font-size: 16px;
  109. color: #0080ed;
  110. cursor: pointer;
  111. &::after {
  112. content: '>';
  113. margin-left: 8px;
  114. }
  115. }
  116. }
  117. }
  118. }
  119. }
  120. }
  121. @media screen and (max-width: 768px) {
  122. .page-top {
  123. height: 76.4vw;
  124. .logo {
  125. height: 11.5vw;
  126. width: 59vw;
  127. display: block;
  128. }
  129. .name {
  130. font-size: 3.5vw;
  131. color: #221815;
  132. margin-top: 15vw;
  133. text-align: center;
  134. line-height: 6.6vw;
  135. text-transform: uppercase;
  136. }
  137. }
  138. .page-content {
  139. .list {
  140. .section {
  141. position: relative;
  142. padding: 6vw 2.6vw;
  143. margin: 0 4vw;
  144. background: #fff;
  145. border-bottom: 0.1vw solid #d8d8d8;
  146. &:first-child {
  147. border-top: 0.1vw solid #d8d8d8;
  148. }
  149. .info {
  150. .name {
  151. width: 66vw;
  152. font-size: 3.6vw;
  153. color: #404040;
  154. line-height: 1.5;
  155. text-align: justify;
  156. @include ellipsis(1);
  157. }
  158. .download {
  159. position: absolute;
  160. right: 2.6vw;
  161. bottom: 50%;
  162. transform: translateY(50%);
  163. font-size: 3vw;
  164. color: #0080ed;
  165. cursor: pointer;
  166. &::after {
  167. content: '>';
  168. margin-left: 8px;
  169. }
  170. }
  171. }
  172. }
  173. }
  174. }
  175. }
  176. </style>