index.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <template>
  2. <div class="page">
  3. <div class="page-top"></div>
  4. <div class="page-content">
  5. <keep-alive>
  6. <div class="list">
  7. <div
  8. class="section flex flex-col justify-center items-center rounded-md"
  9. v-for="item in list"
  10. :key="item.id"
  11. >
  12. <icon-image class="icon" :name="item.image"></icon-image>
  13. <div
  14. class="name mt-4"
  15. v-text="item.name"
  16. @click="toDetail(item)"
  17. ></div>
  18. </div>
  19. </div>
  20. </keep-alive>
  21. </div>
  22. <div class="page-footer flex flex-col justify-center">
  23. <div class="name mb-1">需要帮助吗?</div>
  24. <div class="contact">联系我们 +86 1382160616</div>
  25. </div>
  26. </div>
  27. </template>
  28. <script>
  29. export default {
  30. layout: 'app-ldm',
  31. data() {
  32. return {
  33. list: [],
  34. }
  35. },
  36. asyncData() {
  37. return {
  38. list: [
  39. {
  40. id: 0,
  41. name: '授权认证',
  42. image: 'ldm-icon-approve.png',
  43. path: '/ldm/approve',
  44. },
  45. {
  46. id: 1,
  47. name: '官方产品资料',
  48. image: 'ldm-icon-database.png',
  49. path: '/ldm/database/package',
  50. },
  51. ],
  52. }
  53. },
  54. methods: {
  55. toDetail(item) {
  56. this.$router.push(item.path)
  57. },
  58. },
  59. }
  60. </script>
  61. <style scoped lang="scss">
  62. @media screen and (min-width: 768px) {
  63. .page-top {
  64. height: 596px;
  65. background: url(https://static.caimei365.com/www/authentic/pc/ldm-bg-home.png)
  66. no-repeat center;
  67. background-size: auto 596px;
  68. }
  69. .page-content {
  70. width: 700px;
  71. margin: 0 auto;
  72. min-height: calc(100vh - 596px - 100px);
  73. overflow: hidden;
  74. .list {
  75. display: flex;
  76. align-items: center;
  77. justify-content: space-between;
  78. margin-top: 124px;
  79. margin-bottom: 314px;
  80. .section {
  81. .icon {
  82. width: 120px;
  83. height: 120px;
  84. }
  85. .name {
  86. width: 241px;
  87. height: 73px;
  88. background: #000;
  89. text-align: center;
  90. line-height: 73px;
  91. color: #fff;
  92. font-size: 22px;
  93. cursor: pointer;
  94. }
  95. }
  96. }
  97. }
  98. .page-footer {
  99. position: relative;
  100. height: 100px;
  101. padding-left: 194px;
  102. background: linear-gradient(to bottom, #f1f1f1, #fdfdfd, #f1f1f1);
  103. .name {
  104. font-size: 24px;
  105. color: #9d9d9d;
  106. }
  107. .contact {
  108. font-size: 19px;
  109. color: #9d9d9d;
  110. }
  111. &::before {
  112. position: absolute;
  113. left: 120px;
  114. top: 50%;
  115. transform: translateY(-50%);
  116. content: '';
  117. display: block;
  118. width: 56px;
  119. height: 56px;
  120. background: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-contact1.png)
  121. no-repeat center;
  122. background-size: 56px auto;
  123. }
  124. }
  125. }
  126. @media screen and (max-width: 768px) {
  127. .page-top {
  128. height: 59.6vw;
  129. background: url(https://static.caimei365.com/www/authentic/h5/ldm-bg-home.png);
  130. background-size: auto 59.6vw;
  131. }
  132. .page-content {
  133. min-height: calc(100vh - 59.6vw - 15.4vw);
  134. overflow: hidden;
  135. .list {
  136. display: flex;
  137. flex-direction: column;
  138. align-items: center;
  139. margin-top: 10.9vw;
  140. .section {
  141. width: 80vw;
  142. height: 48vw;
  143. background: #f8f8f8;
  144. border: 0.1vw solid #bfbfbf;
  145. margin-bottom: 5.8vw;
  146. .icon {
  147. width: 18.9vw;
  148. height: 18.9vw;
  149. }
  150. .name {
  151. width: 37.8vw;
  152. height: 11.4vw;
  153. background: #000;
  154. text-align: center;
  155. line-height: 11.4vw;
  156. color: #fff;
  157. }
  158. }
  159. }
  160. }
  161. .page-footer {
  162. position: relative;
  163. height: 15.4vw;
  164. padding-left: 12.5vw;
  165. background: linear-gradient(to bottom, #f1f1f1, #fdfdfd, #f1f1f1);
  166. .name {
  167. font-size: 3.2vw;
  168. color: #9d9d9d;
  169. }
  170. .contact {
  171. font-size: 2.6vw;
  172. color: #9d9d9d;
  173. }
  174. &::before {
  175. position: absolute;
  176. left: 2.4vw;
  177. top: 50%;
  178. transform: translateY(-50%);
  179. content: '';
  180. display: block;
  181. width: 7.5vw;
  182. height: 7.5vw;
  183. background: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-contact1.png)
  184. no-repeat center;
  185. background-size: 7.4vw auto;
  186. }
  187. }
  188. }
  189. </style>