pc.vue 4.0 KB

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