pc.vue 3.3 KB

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