index.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <template>
  2. <div class="page">
  3. <div class="page-top"></div>
  4. <div class="page-content">
  5. <div class="title">专业美容培训师</div>
  6. <div class="list">
  7. <div class="section flex items-center">
  8. <img class="cover" src="https://picsum.photos/200/200" />
  9. <div class="info">
  10. <div class="name">宋医师<i /></div>
  11. <div class="tag">皮肤美容科 | 主任医师│从业24年</div>
  12. <div class="more">点击查看</div>
  13. </div>
  14. </div>
  15. <div class="section flex items-center">
  16. <img class="cover" src="https://picsum.photos/200/200" />
  17. <div class="info">
  18. <div class="name">宋医师<i /></div>
  19. <div class="tag">皮肤美容科 | 主任医师│从业24年</div>
  20. <div class="more">点击查看</div>
  21. </div>
  22. </div>
  23. <div class="section flex items-center">
  24. <img class="cover" src="https://picsum.photos/200/200" />
  25. <div class="info">
  26. <div class="name">宋医师<i /></div>
  27. <div class="tag">皮肤美容科 | 主任医师│从业24年</div>
  28. <div class="more">点击查看</div>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </template>
  35. <script>
  36. export default {
  37. layout: 'app-ldm',
  38. }
  39. </script>
  40. <style scoped lang="scss">
  41. @media screen and (min-width: 768px) {
  42. .page-top {
  43. height: 596px;
  44. background: url(https://static.caimei365.com/www/authentic/pc/ldm-bg-training-doctor.png)
  45. no-repeat center;
  46. background-size: auto 596px;
  47. }
  48. .page-content {
  49. width: 838px;
  50. margin: 0 auto;
  51. overflow: hidden;
  52. .title {
  53. font-size: 22px;
  54. color: #221815;
  55. padding-top: 112px;
  56. }
  57. .list {
  58. display: flex;
  59. align-items: center;
  60. justify-content: space-between;
  61. flex-wrap: wrap;
  62. margin-top: 27px;
  63. .section {
  64. width: 407px;
  65. padding: 14px;
  66. background: #f1f1f1;
  67. border-radius: 20px;
  68. box-sizing: border-box;
  69. margin-bottom: 25px;
  70. .cover {
  71. display: block;
  72. width: 92px;
  73. height: 92px;
  74. border-radius: 17px;
  75. }
  76. .info {
  77. position: relative;
  78. flex: 1;
  79. margin-left: 25px;
  80. .name {
  81. font-size: 28px;
  82. color: #000;
  83. text-overflow: ellipsis;
  84. overflow: hidden;
  85. white-space: nowrap;
  86. i {
  87. font-size: 0;
  88. display: inline-block;
  89. background: url(https://static.caimei365.com/www/authentic/pc/ldm-icon-star.png)
  90. no-repeat left center;
  91. padding-left: 13px;
  92. vertical-align: 2px;
  93. margin-left: 7px;
  94. &::after,
  95. &::before {
  96. display: inline-block;
  97. content: '';
  98. width: 13px;
  99. height: 13px;
  100. background: url(https://static.caimei365.com/www/authentic/pc/ldm-icon-star.png)
  101. no-repeat center;
  102. vertical-align: middle;
  103. margin-left: 4px;
  104. }
  105. }
  106. }
  107. .tag {
  108. width: 190px;
  109. font-size: 10px;
  110. color: #221815;
  111. text-overflow: ellipsis;
  112. overflow: hidden;
  113. white-space: nowrap;
  114. margin-top: 12px;
  115. }
  116. .more {
  117. position: absolute;
  118. bottom: 0;
  119. right: 0;
  120. font-size: 12px;
  121. color: #0080ed;
  122. cursor: pointer;
  123. &::after {
  124. content: '>';
  125. margin-left: 8px;
  126. }
  127. }
  128. }
  129. }
  130. }
  131. }
  132. }
  133. @media screen and (max-width: 768px) {
  134. .page-top {
  135. height: 59.6vw;
  136. background: url(https://static.caimei365.com/www/authentic/h5/ldm-bg-training-doctor.png);
  137. background-size: auto 59.6vw;
  138. }
  139. .page-content {
  140. .title {
  141. font-size: 3.6vw;
  142. color: #221815;
  143. padding-left: 5.6vw;
  144. padding-top: 9.8vw;
  145. }
  146. .list {
  147. display: flex;
  148. flex-direction: column;
  149. align-items: center;
  150. margin-top: 6vw;
  151. .section {
  152. width: 95vw;
  153. padding: 3.2vw;
  154. background: #f1f1f1;
  155. border-radius: 2vw;
  156. box-sizing: border-box;
  157. margin-bottom: 4.8vw;
  158. .cover {
  159. display: block;
  160. width: 21.5vw;
  161. height: 21.5vw;
  162. border-radius: 1.7vw;
  163. }
  164. .info {
  165. position: relative;
  166. flex: 1;
  167. margin-left: 2.7vw;
  168. .name {
  169. font-size: 6.6vw;
  170. color: #000;
  171. text-overflow: ellipsis;
  172. overflow: hidden;
  173. white-space: nowrap;
  174. i {
  175. font-size: 0;
  176. display: inline-block;
  177. background: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-star.png)
  178. no-repeat left center;
  179. padding-left: 3.2vw;
  180. vertical-align: 1vw;
  181. margin-left: 1.8vw;
  182. &::after,
  183. &::before {
  184. display: inline-block;
  185. content: '';
  186. width: 3.2vw;
  187. height: 3.2vw;
  188. background: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-star.png)
  189. no-repeat center;
  190. vertical-align: middle;
  191. margin-left: 0.9vw;
  192. }
  193. }
  194. }
  195. .tag {
  196. width: 46vw;
  197. font-size: 2.5vw;
  198. color: #221815;
  199. text-overflow: ellipsis;
  200. overflow: hidden;
  201. white-space: nowrap;
  202. margin-top: 1.2vw;
  203. }
  204. .more {
  205. position: absolute;
  206. bottom: 0;
  207. right: 0;
  208. font-size: 3vw;
  209. color: #0080ed;
  210. &::after {
  211. content: '>';
  212. margin-left: 1vw;
  213. }
  214. }
  215. }
  216. }
  217. }
  218. }
  219. }
  220. </style>