list.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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 md:px-0">共<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">SN码:SR******8088</div>
  21. <div class="club-name">
  22. 所属机构:<span>丽颜科美复兴广场店</span>
  23. </div>
  24. </div>
  25. </div>
  26. <div class="section flex justify-between mb-4">
  27. <img class="cover" src="https://picsum.photos/400/400" />
  28. <div class="info">
  29. <div class="name">日本水素水细胞仪</div>
  30. <div class="code">SN码:SR******8088</div>
  31. <div class="club-name">
  32. 所属机构:<span>丽颜科美复兴广场店</span>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </template>
  40. <script>
  41. export default {
  42. layout: 'app',
  43. }
  44. </script>
  45. <style scoped lang="scss">
  46. // pc 端
  47. @media screen and (min-width: 768px) {
  48. .page {
  49. min-height: calc(100vh - 80px - 80px);
  50. background-color: #fff;
  51. }
  52. .page-top {
  53. height: 420px;
  54. background: url(https://static.caimei365.com/www/authentic/pc/bg-device.png);
  55. background-size: auto 420px;
  56. .logo {
  57. display: block;
  58. width: 120px;
  59. height: 120px;
  60. border-radius: 50%;
  61. }
  62. .name {
  63. font-size: 30px;
  64. color: #fff;
  65. }
  66. }
  67. .page-content {
  68. width: 1200px;
  69. margin: 0 auto;
  70. position: relative;
  71. .search {
  72. display: none;
  73. }
  74. .title {
  75. font-size: 16px;
  76. color: #404040;
  77. span {
  78. color: #bc1724;
  79. }
  80. }
  81. .list {
  82. display: flex;
  83. align-items: center;
  84. flex-wrap: wrap;
  85. justify-content: space-between;
  86. .section {
  87. width: 390px;
  88. height: 108px;
  89. background-color: #f3f5f6;
  90. border-radius: 4px;
  91. box-sizing: border-box;
  92. padding: 12px;
  93. cursor: pointer;
  94. transition: all 0.4s;
  95. &:hover {
  96. box-shadow: 0 0 24px rgba(0, 0, 0, 0.2);
  97. }
  98. .cover {
  99. display: block;
  100. width: 84px;
  101. height: 84px;
  102. }
  103. .info {
  104. width: 270px;
  105. position: relative;
  106. .name {
  107. font-size: 16px;
  108. color: #101010;
  109. font-weight: bold;
  110. margin-bottom: 16px;
  111. text-overflow: ellipsis;
  112. white-space: nowrap;
  113. overflow: hidden;
  114. }
  115. .code,
  116. .club-name {
  117. position: relative;
  118. font-size: 14px;
  119. color: #404040;
  120. line-height: 24px;
  121. text-overflow: ellipsis;
  122. white-space: nowrap;
  123. overflow: hidden;
  124. span {
  125. color: #6d9eff;
  126. }
  127. }
  128. }
  129. }
  130. }
  131. }
  132. }
  133. // 移动 端
  134. @media screen and (max-width: 768px) {
  135. .page-top {
  136. height: 46vw;
  137. background: url(https://static.caimei365.com/www/authentic/h5/bg-club.png);
  138. background-size: auto 46vw;
  139. .logo {
  140. display: block;
  141. width: 14.8vw;
  142. height: 14.8vw;
  143. border-radius: 50%;
  144. }
  145. .name {
  146. font-size: 4vw;
  147. color: #fff;
  148. }
  149. }
  150. .page-content {
  151. position: relative;
  152. .search {
  153. position: absolute;
  154. left: 50%;
  155. top: 0;
  156. transform: translate(-50%, -50%);
  157. }
  158. .title {
  159. font-size: 3.4vw;
  160. color: #404040;
  161. span {
  162. color: #bc1724;
  163. }
  164. }
  165. .list {
  166. display: flex;
  167. align-items: center;
  168. flex-direction: column;
  169. .section {
  170. width: 93.6vw;
  171. height: 26vw;
  172. background-color: #f3f5f6;
  173. border-radius: 4px;
  174. box-sizing: border-box;
  175. padding: 3.2vw;
  176. .cover {
  177. display: block;
  178. width: 19.6vw;
  179. height: 19.6vw;
  180. }
  181. .info {
  182. position: relative;
  183. margin-left: 3.2vw;
  184. .name {
  185. font-size: 4vw;
  186. color: #101010;
  187. font-weight: bold;
  188. margin-bottom: 4vw;
  189. text-overflow: ellipsis;
  190. white-space: nowrap;
  191. overflow: hidden;
  192. }
  193. .code,
  194. .club-name {
  195. width: 66vw;
  196. position: relative;
  197. font-size: 3vw;
  198. color: #404040;
  199. line-height: 5vw;
  200. text-overflow: ellipsis;
  201. white-space: nowrap;
  202. overflow: hidden;
  203. span {
  204. color: #6d9eff;
  205. }
  206. }
  207. }
  208. }
  209. }
  210. }
  211. }
  212. </style>