image.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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. <div class="divider"></div>
  13. <!-- tabbar -->
  14. <simple-tabs></simple-tabs>
  15. <div class="list">
  16. <div class="section">
  17. <div class="info">
  18. <div class="name">
  19. VISIA第七代皮肤图像检测分析系统皮肤检测以色列无针水光JDV/优斐斯/瑞漾小白盒希腊YELLOWROSE,无针透皮注入
  20. </div>
  21. <div class="date">2022-02-16 17:42</div>
  22. <div class="download">保存所有图片</div>
  23. </div>
  24. <div class="images grid grid-cols-4 md:grid-cols-8 gap-3 md:gap-4">
  25. <div class="item">
  26. <img
  27. class="object-cover"
  28. src="https://picsum.photos/200/400?random=1"
  29. />
  30. </div>
  31. <div class="item">
  32. <img
  33. class="object-cover"
  34. src="https://picsum.photos/800/400?random=1"
  35. />
  36. </div>
  37. <div class="item">
  38. <img
  39. class="object-cover"
  40. src="https://picsum.photos/60/400?random=1"
  41. />
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </template>
  49. <script>
  50. export default {
  51. layout: 'app',
  52. }
  53. </script>
  54. <style scoped lang="scss">
  55. /* scss中可以用mixin来扩展 */
  56. @mixin ellipsis($line: 1) {
  57. overflow: hidden;
  58. text-overflow: ellipsis;
  59. display: -webkit-box;
  60. -webkit-line-clamp: $line;
  61. -webkit-box-orient: vertical;
  62. }
  63. // pc 端
  64. @media screen and (min-width: 768px) {
  65. .page-top {
  66. height: 360px;
  67. background: url(https://static.caimei365.com/www/authentic/pc/bg-doc.png);
  68. background-size: auto 360px;
  69. .logo {
  70. display: block;
  71. width: 120px;
  72. height: 120px;
  73. border-radius: 50%;
  74. }
  75. .name {
  76. font-size: 30px;
  77. color: #fff;
  78. }
  79. }
  80. .page-content {
  81. width: 1200px;
  82. margin: 0 auto;
  83. background-color: #fff;
  84. .divider {
  85. height: 16px;
  86. background: #f7f7f7;
  87. }
  88. .search {
  89. display: none;
  90. }
  91. }
  92. .list {
  93. border-top: 16px solid #f7f7f7;
  94. border-bottom: 16px solid #f7f7f7;
  95. .section {
  96. padding: 32px 0;
  97. margin: 0 24px;
  98. background: #fff;
  99. border-bottom: 1px solid #d8d8d8;
  100. &:last-child {
  101. border-bottom: 0;
  102. }
  103. .info {
  104. position: relative;
  105. .name {
  106. font-size: 18px;
  107. color: #404040;
  108. line-height: 1.6;
  109. margin-bottom: 18px;
  110. text-align: justify;
  111. }
  112. .date {
  113. font-size: 18px;
  114. color: #b2b2b2;
  115. line-height: 1.4;
  116. }
  117. .download {
  118. bottom: 0;
  119. right: 0;
  120. position: absolute;
  121. color: #bc1724;
  122. font-size: 16px;
  123. cursor: pointer;
  124. }
  125. }
  126. .images {
  127. margin-top: 24px;
  128. .item {
  129. width: 126px;
  130. height: 126px;
  131. overflow: hidden;
  132. img {
  133. display: block;
  134. width: 100%;
  135. height: 100%;
  136. }
  137. }
  138. }
  139. }
  140. }
  141. }
  142. // 移动 端
  143. @media screen and (max-width: 768px) {
  144. .page-top {
  145. height: 46vw;
  146. background: url(https://static.caimei365.com/www/authentic/h5/bg-club.png);
  147. background-size: auto 46vw;
  148. .logo {
  149. display: block;
  150. width: 14.8vw;
  151. height: 14.8vw;
  152. border-radius: 50%;
  153. }
  154. .name {
  155. font-size: 4vw;
  156. color: #fff;
  157. }
  158. }
  159. .page-content {
  160. position: relative;
  161. .divider {
  162. border-bottom: 3.2vw solid #f7f7f7;
  163. height: 12.4vw;
  164. }
  165. }
  166. .search {
  167. position: absolute;
  168. left: 50%;
  169. top: 0;
  170. transform: translate(-50%, -50%);
  171. }
  172. .list {
  173. .section {
  174. position: relative;
  175. padding: 2.4vw 0;
  176. margin: 0 4vw;
  177. padding-bottom: 9.8vw;
  178. background: #fff;
  179. border-bottom: 0.1vw solid #d8d8d8;
  180. &:first-child {
  181. border-top: 0.1vw solid #d8d8d8;
  182. }
  183. .info {
  184. .name {
  185. font-size: 3.6vw;
  186. color: #404040;
  187. line-height: 1.5;
  188. margin-bottom: 2.4vw;
  189. @include ellipsis(2);
  190. text-align: justify;
  191. }
  192. .date {
  193. bottom: 2.4vw;
  194. left: 0;
  195. position: absolute;
  196. font-size: 3.2vw;
  197. color: #b2b2b2;
  198. line-height: 1.4;
  199. }
  200. .download {
  201. bottom: 2.4vw;
  202. right: 0;
  203. position: absolute;
  204. color: #bc1724;
  205. font-size: 3.6vw;
  206. cursor: pointer;
  207. }
  208. }
  209. .images {
  210. margin-top: 2.4vw;
  211. .item {
  212. width: 21vw;
  213. height: 21vw;
  214. overflow: hidden;
  215. img {
  216. display: block;
  217. width: 100%;
  218. height: 100%;
  219. }
  220. }
  221. }
  222. }
  223. }
  224. }
  225. </style>