pc.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <template>
  2. <div class="pc-container">
  3. <!-- <div class="banner-img">
  4. <img
  5. :src="bannerImg"
  6. alt=""
  7. >
  8. <section class="label">PC端独立课堂</section>
  9. </div> -->
  10. <slot></slot>
  11. <slot name="label"></slot>
  12. <div class="content">
  13. <div class="first">
  14. <img
  15. src="~/assets/images/products/pc_img_first.png"
  16. alt="">
  17. </div>
  18. <div class="seconed">
  19. <div class="label">更适合中国宝宝的儿童智能发展测评</div>
  20. <div class="seconed-box">
  21. <div
  22. :class="['seconed-item']"
  23. v-for="item in showList"
  24. :key="item.id"
  25. >
  26. <img :src="item.imgUrl" alt="">
  27. </div>
  28. </div>
  29. </div>
  30. <div class="thirdly">
  31. <img
  32. src="~/assets/images/products/pc_img_second.png"
  33. alt=""
  34. >
  35. </div>
  36. </div>
  37. </div>
  38. </template>
  39. <script>
  40. const showList = Object.freeze([
  41. {
  42. id: 0,
  43. imgUrl: require('~/assets/images/products/pc_dev_01.png'),
  44. },
  45. {
  46. id: 1,
  47. imgUrl: require('~/assets/images/products/pc_dev_02.png'),
  48. },
  49. {
  50. id: 2,
  51. imgUrl: require('~/assets/images/products/pc_dev_03.png'),
  52. },
  53. ]);
  54. if (process.browser) {
  55. var { WOW } = require("wowjs");
  56. }
  57. export default {
  58. name: "PcPage",
  59. mounted() {
  60. if (process.browser) {
  61. new WOW({
  62. offset: 0,
  63. live: true,
  64. }).init();
  65. }
  66. },
  67. data() {
  68. return {
  69. showList,
  70. bannerImg: require('~/assets/images/products/banner-pc.png')
  71. };
  72. },
  73. };
  74. </script>
  75. <style scoped lang="scss">
  76. .pc-container {
  77. .banner-img {
  78. position: relative;
  79. img {
  80. width: 100%;
  81. height: 595px;
  82. }
  83. .label {
  84. font-family: PingFangSC-Semibold, sans-serif;
  85. font-weight: 600;
  86. color: #ffffff;
  87. font-size: 80px;
  88. position: absolute;
  89. top: 50%;
  90. left: 50%;
  91. transform: translate(-50%, -50%);
  92. }
  93. }
  94. .content {
  95. .first {
  96. display: flex;
  97. justify-content: center;
  98. img {
  99. width: 1334px;
  100. height: 887px;
  101. }
  102. }
  103. .seconed {
  104. width: 100%;
  105. height: 607px;
  106. background-color: #f7fbff;
  107. padding-top: 52px;
  108. box-sizing: border-box;
  109. .label {
  110. font-size: 48px;
  111. font-family: PingFangSC-Semibold, sans-serif;
  112. font-weight: 600;
  113. color: rgba(38, 38, 38, 1);
  114. letter-spacing: 1px;
  115. text-align: center;
  116. margin-bottom: 118px;
  117. }
  118. .seconed-box {
  119. display: flex;
  120. justify-content: center;
  121. .seconed-item {
  122. img {
  123. width: 414px;
  124. height: 302px;
  125. }
  126. }
  127. }
  128. }
  129. .thirdly {
  130. height: 900px;
  131. display: flex;
  132. justify-content: center;
  133. padding-top: 100px;
  134. box-sizing: border-box;
  135. img {
  136. width: 1328px;
  137. height: 569px;
  138. }
  139. }
  140. }
  141. }
  142. </style>