home.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <template>
  2. <div class="home">
  3. <div class="title">
  4. <!--顶部轮播图-->
  5. <div >
  6. <Carousel >
  7. <CarouselItem v-for="(homeImagesList,index) in homeCarouselImg" :key="index">
  8. <div class="demo-carousel">
  9. <img class="carousel-img" :src="homeImagesList.images" >
  10. </div>
  11. </CarouselItem>
  12. </Carousel>
  13. </div>
  14. </div>
  15. <div class="who-is">
  16. <ul class="people-list">
  17. <li class=" show animated slideInLeft delay-1s">
  18. <img src="../../assets/image/resource/who01.png">
  19. <span>我是管理者</span>
  20. </li>
  21. <li class=" show animated slideInLeft ">
  22. <img src="../../assets/image/resource/who02.png">
  23. <span>我是教师</span>
  24. </li>
  25. <li class="show animated slideInRight">
  26. <img src="../../assets/image/resource/who03.png">
  27. <span>我是学生</span>
  28. </li>
  29. <li class="show animated slideInRight delay-1s">
  30. <img src="../../assets/image/resource/who04.png">
  31. <span>我是家长</span>
  32. </li>
  33. </ul>
  34. </div>
  35. <div class="center-info">
  36. <h1>已超过<span>1000</span>所学校开通了我们的服务</h1>
  37. <img src="../../assets/image/resource/center01.png" >
  38. <img src="../../assets/image/resource/bottom.png" >
  39. </div>
  40. </div>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. homeCarouselImg: [
  47. {
  48. images: require('../../assets/image/resource/banner02.png')
  49. },
  50. {
  51. images: require('../../assets/image/resource/banner01.png')
  52. },
  53. ]
  54. };
  55. },
  56. methods:{
  57. init(){
  58. $.api.
  59. }
  60. }
  61. }
  62. </script>
  63. <style scoped>
  64. .home {
  65. width: 100%;
  66. margin: auto;
  67. }
  68. .title {
  69. width: 100%;
  70. }
  71. .header {
  72. height: 80px;
  73. background-color: rgb(29, 34, 34);
  74. }
  75. .demo-carousel {
  76. width: 100%;
  77. }
  78. .carousel-img {
  79. width: 100%;
  80. cursor: pointer;
  81. margin: auto;
  82. }
  83. .who-is {
  84. height: 240px;
  85. margin-top: -70px;
  86. position: relative;
  87. z-index: 21;
  88. width: 64%;
  89. overflow: hidden;
  90. margin-left: 19%;
  91. }
  92. .people-list {
  93. display: block;
  94. }
  95. .who-is ul {
  96. list-style: none;
  97. }
  98. .who-is ul li span {
  99. padding-top: 20px;
  100. font-size: 24px;
  101. color: #fff;
  102. }
  103. .who-is ul li {
  104. float: left;
  105. width: 300px;
  106. height: 264px;
  107. text-align: center;
  108. position: relative;
  109. /*opacity: 0;
  110. opacity: 1\9;*/
  111. background-color: #289EFB;
  112. }
  113. .show:hover {
  114. transition: all 0.6s;
  115. margin-top: -2%;
  116. cursor:pointer;
  117. }
  118. .who-is ul li img {
  119. border: 0;
  120. vertical-align: middle;
  121. margin-top: 30%;
  122. }
  123. .center-info{
  124. width:100%;
  125. }
  126. .center-info h1{
  127. font-size:40px;
  128. text-align:center;
  129. }
  130. .center-info span {
  131. color: #289EFB;
  132. font-size:60px;
  133. }
  134. </style>