index.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. <div class="list">
  9. <div
  10. class="section flex flex-col justify-center items-center mt-5 mb-5"
  11. v-for="item in list"
  12. :key="item.id"
  13. @click="toDetail(item)"
  14. >
  15. <icon-image class="icon" :name="item.image"></icon-image>
  16. <div class="line mt-3 mb-3"></div>
  17. <div class="name" v-text="item.name"></div>
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. </template>
  23. <script>
  24. export default {
  25. layout: 'app',
  26. data() {
  27. return {
  28. list: [],
  29. }
  30. },
  31. asyncData() {
  32. return {
  33. list: [
  34. {
  35. id: 1,
  36. name: '机构认证',
  37. image: 'icon-club.png',
  38. path: '/ph/approve/club',
  39. },
  40. {
  41. id: 2,
  42. name: '设备认证',
  43. image: 'icon-device.png',
  44. path: '/ph/approve/device',
  45. },
  46. {
  47. id: 3,
  48. name: '医师认证',
  49. image: 'icon-doctor.png',
  50. path: '/ph/approve/personnel/operate',
  51. },
  52. ],
  53. }
  54. },
  55. methods: {
  56. toDetail(item) {
  57. this.$router.push(item.path)
  58. },
  59. },
  60. }
  61. </script>
  62. <style scoped lang="scss">
  63. // pc 端
  64. @media screen and (min-width: 768px) {
  65. .page {
  66. min-height: calc(100vh - 80px - 80px);
  67. background-color: #fff;
  68. }
  69. .page-top {
  70. height: 360px;
  71. background: url(https://static.caimei365.com/www/authentic/pc/bg-approve.png);
  72. background-size: auto 360px;
  73. .logo {
  74. display: block;
  75. width: 120px;
  76. height: 120px;
  77. border-radius: 50%;
  78. }
  79. .name {
  80. font-size: 30px;
  81. color: #fff;
  82. }
  83. }
  84. .page-content {
  85. width: 1200px;
  86. margin: 0 auto;
  87. .list {
  88. display: flex;
  89. justify-content: space-between;
  90. align-items: center;
  91. }
  92. .section {
  93. width: 380px;
  94. height: 220px;
  95. background-size: 380px 220px;
  96. margin-left: auto;
  97. margin-right: auto;
  98. cursor: pointer;
  99. transition: all 0.4s;
  100. &:hover {
  101. box-shadow: 0 0 32px rgba(0, 0, 0, 0.4);
  102. }
  103. .icon {
  104. width: 48px;
  105. height: 48px;
  106. }
  107. .line {
  108. width: 24px;
  109. height: 2px;
  110. background-color: #bc1724;
  111. }
  112. .name {
  113. font-size: 20px;
  114. color: #fff;
  115. }
  116. &:nth-child(1) {
  117. background-image: url(https://static.caimei365.com/www/authentic/pc/section-bg-club.png);
  118. }
  119. &:nth-child(2) {
  120. background-image: url(https://static.caimei365.com/www/authentic/pc/section-bg-device.png);
  121. }
  122. &:nth-child(3) {
  123. background-image: url(https://static.caimei365.com/www/authentic/pc/section-bg-doctor.png);
  124. }
  125. }
  126. }
  127. }
  128. // 移动 端
  129. @media screen and (max-width: 768px) {
  130. .page-top {
  131. height: 46vw;
  132. background: url(https://static.caimei365.com/www/authentic/h5/bg-approve.png);
  133. background-size: auto 46vw;
  134. .logo {
  135. display: block;
  136. width: 14.8vw;
  137. height: 14.8vw;
  138. border-radius: 50%;
  139. }
  140. .name {
  141. font-size: 4vw;
  142. color: #fff;
  143. }
  144. }
  145. .page-content {
  146. .section {
  147. width: 92vw;
  148. height: 42vw;
  149. background-size: 92vw 42vw;
  150. margin-left: auto;
  151. margin-right: auto;
  152. .icon {
  153. width: 8.8vw;
  154. height: 8.8vw;
  155. }
  156. .line {
  157. width: 4.2vw;
  158. height: 0.3vw;
  159. background-color: #bc1724;
  160. }
  161. .name {
  162. font-size: 4.2vw;
  163. color: #fff;
  164. }
  165. &:nth-child(1) {
  166. background-image: url(https://static.caimei365.com/www/authentic/h5/bg-club.png);
  167. }
  168. &:nth-child(2) {
  169. background-image: url(https://static.caimei365.com/www/authentic/h5/bg-device.png);
  170. }
  171. &:nth-child(3) {
  172. background-image: url(https://static.caimei365.com/www/authentic/h5/bg-doctor.png);
  173. }
  174. }
  175. }
  176. }
  177. </style>