index.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. <ldm-login></ldm-login>
  27. </div>
  28. </template>
  29. <script>
  30. export default {
  31. layout: 'app-ldm',
  32. data() {
  33. return {
  34. list: [],
  35. }
  36. },
  37. asyncData() {
  38. return {
  39. list: [
  40. {
  41. id: 0,
  42. name: '授权认证',
  43. image: 'ldm-icon-approve.png',
  44. path: '/ldm/approve',
  45. },
  46. {
  47. id: 1,
  48. name: '官方产品资料',
  49. image: 'ldm-icon-database.png',
  50. path: '/ldm/database/package',
  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. @media screen and (min-width: 768px) {
  64. .page-top {
  65. height: 596px;
  66. background: url(https://static.caimei365.com/www/authentic/pc/ldm-bg-home.png)
  67. no-repeat center;
  68. background-size: auto 596px;
  69. }
  70. .page-content {
  71. width: 700px;
  72. margin: 0 auto;
  73. min-height: calc(100vh - 596px - 100px);
  74. overflow: hidden;
  75. .list {
  76. display: flex;
  77. align-items: center;
  78. justify-content: space-between;
  79. margin-top: 124px;
  80. margin-bottom: 314px;
  81. .section {
  82. .icon {
  83. width: 120px;
  84. height: 120px;
  85. }
  86. .name {
  87. width: 241px;
  88. height: 73px;
  89. background: #000;
  90. text-align: center;
  91. line-height: 73px;
  92. color: #fff;
  93. font-size: 22px;
  94. cursor: pointer;
  95. }
  96. }
  97. }
  98. }
  99. .page-footer {
  100. position: relative;
  101. height: 100px;
  102. padding-left: 194px;
  103. background: linear-gradient(to bottom, #f1f1f1, #fdfdfd, #f1f1f1);
  104. .name {
  105. font-size: 24px;
  106. color: #9d9d9d;
  107. }
  108. .contact {
  109. font-size: 19px;
  110. color: #9d9d9d;
  111. }
  112. &::before {
  113. position: absolute;
  114. left: 120px;
  115. top: 50%;
  116. transform: translateY(-50%);
  117. content: '';
  118. display: block;
  119. width: 56px;
  120. height: 56px;
  121. background: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-contact1.png)
  122. no-repeat center;
  123. background-size: 56px auto;
  124. }
  125. }
  126. }
  127. @media screen and (max-width: 768px) {
  128. .page-top {
  129. height: 59.6vw;
  130. background: url(https://static.caimei365.com/www/authentic/h5/ldm-bg-home.png);
  131. background-size: auto 59.6vw;
  132. }
  133. .page-content {
  134. min-height: calc(100vh - 59.6vw - 15.4vw);
  135. overflow: hidden;
  136. .list {
  137. display: flex;
  138. flex-direction: column;
  139. align-items: center;
  140. margin-top: 10.9vw;
  141. .section {
  142. width: 80vw;
  143. height: 48vw;
  144. background: #f8f8f8;
  145. border: 0.1vw solid #bfbfbf;
  146. margin-bottom: 5.8vw;
  147. .icon {
  148. width: 18.9vw;
  149. height: 18.9vw;
  150. }
  151. .name {
  152. width: 37.8vw;
  153. height: 11.4vw;
  154. background: #000;
  155. text-align: center;
  156. line-height: 11.4vw;
  157. color: #fff;
  158. }
  159. }
  160. }
  161. }
  162. .page-footer {
  163. position: relative;
  164. height: 15.4vw;
  165. padding-left: 12.5vw;
  166. background: linear-gradient(to bottom, #f1f1f1, #fdfdfd, #f1f1f1);
  167. .name {
  168. font-size: 3.2vw;
  169. color: #9d9d9d;
  170. }
  171. .contact {
  172. font-size: 2.6vw;
  173. color: #9d9d9d;
  174. }
  175. &::before {
  176. position: absolute;
  177. left: 2.4vw;
  178. top: 50%;
  179. transform: translateY(-50%);
  180. content: '';
  181. display: block;
  182. width: 7.5vw;
  183. height: 7.5vw;
  184. background: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-contact1.png)
  185. no-repeat center;
  186. background-size: 7.4vw auto;
  187. }
  188. }
  189. }
  190. </style>