index.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <template>
  2. <div class="page">
  3. <div class="page-top flex flex-col justify-center items-center">
  4. <img class="logo" src="https://picsum.photos/200/200" />
  5. <span class="name mt-2">上海品辉医疗科技有限公司</span>
  6. </div>
  7. <div class="page-content">
  8. <!-- 搜索区域 -->
  9. <div class="search">
  10. <simple-search />
  11. </div>
  12. <!-- 标题 -->
  13. <div class="title px-4 pt-12 pb-6">共<span>4</span>位医师</div>
  14. <!-- 列表 -->
  15. <div class="list">
  16. <div class="section flex justify-between mb-4">
  17. <img class="cover" src="https://picsum.photos/400/400" />
  18. <div class="info">
  19. <div class="name">王医师</div>
  20. <div class="code">资格证编号:ZHIP1710034</div>
  21. <div class="club-name">所在机构:丽颜科美复兴广场店</div>
  22. </div>
  23. </div>
  24. <div class="section flex justify-between mb-4">
  25. <img class="cover" src="https://picsum.photos/400/400" />
  26. <div class="info">
  27. <div class="name">王医师</div>
  28. <div class="code">资格证编号:ZHIP1710034</div>
  29. <div class="club-name">所在机构:丽颜科美复兴广场店</div>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </template>
  36. <script>
  37. export default {
  38. layout: 'app',
  39. }
  40. </script>
  41. <style scoped lang="scss">
  42. .page {
  43. min-height: calc(100vh - 80px - 80px);
  44. background-color: #fff;
  45. }
  46. // pc 端
  47. @media screen and (min-width: 768px) {
  48. .page-top {
  49. height: 420px;
  50. background: url(https://static.caimei365.com/www/authentic/h5/bg-doctor.png);
  51. background-size: auto 420px;
  52. .logo {
  53. display: block;
  54. width: 120px;
  55. height: 120px;
  56. border-radius: 50%;
  57. }
  58. .name {
  59. font-size: 30px;
  60. color: #fff;
  61. }
  62. }
  63. .page-content {
  64. width: 1200px;
  65. margin: 0 auto;
  66. position: relative;
  67. .search {
  68. display: none;
  69. }
  70. .title {
  71. font-size: 16px;
  72. color: #404040;
  73. span {
  74. color: #bc1724;
  75. }
  76. }
  77. .list {
  78. display: flex;
  79. align-items: center;
  80. flex-wrap: wrap;
  81. justify-content: space-between;
  82. .section {
  83. width: 390px;
  84. height: 108px;
  85. background-color: #f3f5f6;
  86. border-radius: 4px;
  87. box-sizing: border-box;
  88. padding: 12px;
  89. .cover {
  90. display: block;
  91. width: 84px;
  92. height: 84px;
  93. }
  94. .info {
  95. width: 270px;
  96. position: relative;
  97. margin-left: 12px;
  98. .name {
  99. font-size: 16px;
  100. color: #101010;
  101. font-weight: bold;
  102. margin-bottom: 16px;
  103. text-overflow: ellipsis;
  104. white-space: nowrap;
  105. overflow: hidden;
  106. }
  107. .code,
  108. .club-name {
  109. position: relative;
  110. font-size: 14px;
  111. color: #404040;
  112. line-height: 24px;
  113. text-overflow: ellipsis;
  114. white-space: nowrap;
  115. overflow: hidden;
  116. span {
  117. color: #6d9eff;
  118. }
  119. }
  120. }
  121. }
  122. }
  123. }
  124. }
  125. // 移动 端
  126. @media screen and (max-width: 768px) {
  127. .page-top {
  128. height: 46vw;
  129. background: url(https://static.caimei365.com/www/authentic/h5/bg-doctor.png);
  130. background-size: auto 46vw;
  131. .logo {
  132. display: block;
  133. width: 14.8vw;
  134. height: 14.8vw;
  135. border-radius: 50%;
  136. }
  137. .name {
  138. font-size: 4vw;
  139. color: #fff;
  140. }
  141. }
  142. .page-content {
  143. position: relative;
  144. .search {
  145. position: absolute;
  146. left: 50%;
  147. top: 0;
  148. transform: translate(-50%, -50%);
  149. }
  150. .city {
  151. padding-top: 12vw;
  152. }
  153. .title {
  154. font-size: 3.4vw;
  155. color: #404040;
  156. span {
  157. color: #bc1724;
  158. }
  159. }
  160. .list {
  161. display: flex;
  162. align-items: center;
  163. flex-direction: column;
  164. .section {
  165. width: 93.6vw;
  166. height: 26vw;
  167. background-color: #f3f5f6;
  168. border-radius: 4px;
  169. box-sizing: border-box;
  170. padding: 3.2vw;
  171. .cover {
  172. display: block;
  173. width: 19.6vw;
  174. height: 19.6vw;
  175. }
  176. .info {
  177. position: relative;
  178. margin-left: 3.2vw;
  179. .name {
  180. font-size: 4vw;
  181. color: #101010;
  182. font-weight: bold;
  183. margin-bottom: 4vw;
  184. text-overflow: ellipsis;
  185. white-space: nowrap;
  186. overflow: hidden;
  187. }
  188. .code,
  189. .club-name {
  190. width: 66vw;
  191. position: relative;
  192. font-size: 3vw;
  193. color: #404040;
  194. line-height: 5vw;
  195. text-overflow: ellipsis;
  196. white-space: nowrap;
  197. overflow: hidden;
  198. span {
  199. color: #6d9eff;
  200. }
  201. }
  202. }
  203. }
  204. }
  205. }
  206. }
  207. </style>