home.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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 ">
  18. <img src="../../assets/image/resource/who01.png">
  19. <span>我是管理者</span>
  20. </li>
  21. <li class=" show ">
  22. <img src="../../assets/image/resource/who02.png">
  23. <span>我是教师</span>
  24. </li>
  25. <li class="show ">
  26. <img src="../../assets/image/resource/who03.png">
  27. <span>我是学生</span>
  28. </li>
  29. <li class="show">
  30. <img src="../../assets/image/resource/who04.png">
  31. <span>我是家长</span>
  32. </li>
  33. </ul>
  34. </div>
  35. <div class="arrow">
  36. <br><br>
  37. <h1>开通智慧学校</h1>
  38. <div class="box"></div>
  39. </div>
  40. <img src="../../assets/image/resource/center001.png">
  41. <div class="arrow">
  42. <img src="../../assets/image/resource/arrow.png">
  43. <h1>开通智慧云平台</h1>
  44. <div class="box"></div>
  45. </div>
  46. <img src="../../assets/image/resource/botton.png" style="width:100%">
  47. <div class="arrow">
  48. <img src="../../assets/image/resource/arrow.png" >
  49. <h1>联系我们</h1>
  50. <div class="box"></div>
  51. </div>
  52. <div class="center-info">
  53. </div>
  54. </div>
  55. </template>
  56. <script>
  57. export default {
  58. data() {
  59. return {
  60. homeCarouselImg: [
  61. {
  62. images: require('../../assets/image/resource/banner002.png')
  63. },
  64. //{
  65. // images: require('../../assets/image/resource/banner01.png')
  66. //},
  67. ]
  68. };
  69. },
  70. }
  71. </script>
  72. <style scoped>
  73. .home {
  74. width: 100%;
  75. margin: auto;
  76. }
  77. .title {
  78. width: 100%;
  79. overflow:hidden;
  80. }
  81. .header {
  82. height: 80px;
  83. background-color: rgb(29, 34, 34);
  84. }
  85. .demo-carousel {
  86. width: 100%;
  87. }
  88. /*.demo-carousel img {
  89. background-size:contain;
  90. }*/
  91. .carousel-img {
  92. width: 100%;
  93. /*cursor: pointer;*/
  94. margin: auto;
  95. }
  96. .who-is {
  97. height: 260px;
  98. margin-top: -80px;
  99. position: relative;
  100. z-index: 20;
  101. width: 60%;
  102. /*overflow: hidden;*/
  103. margin-left: 21%;
  104. }
  105. .people-list {
  106. display: block;
  107. }
  108. .who-is ul {
  109. list-style: none;
  110. }
  111. .who-is ul li span {
  112. padding-top: 20px;
  113. display: block;
  114. font-size: 24px;
  115. /* margin-top: 35px; */
  116. font-weight: 800;
  117. color: #141414;
  118. }
  119. .who-is ul li {
  120. float: left;
  121. width: 240px;
  122. height: 280px;
  123. text-align: center;
  124. position: relative;
  125. box-shadow: 0px 0px 5px #dde8f9;
  126. border-radius: 5%;
  127. margin-left: 38px;
  128. background-color: #fff;
  129. }
  130. .who-is ul li:first-child{margin-left:0}
  131. .show:hover {
  132. transition: all 0.6s;
  133. margin-top: -2%;
  134. cursor:pointer;
  135. }
  136. .who-is ul li img {
  137. border: 0;
  138. /* vertical-align: middle; */
  139. margin-top: 80px;
  140. height: 93px;
  141. }
  142. .arrow{
  143. width:100%;
  144. text-align:center;
  145. }
  146. .arrow h1 {
  147. margin-top: 70px;
  148. font-weight: 800;
  149. font-size: 26px;
  150. color: #0099FF;
  151. margin-bottom: 5px;
  152. }
  153. .arrow img{
  154. width:25px;
  155. margin-top: 20px;
  156. }
  157. .box {
  158. width: 120px;
  159. height: 5px;
  160. background-color: #0099FF;
  161. margin: auto;
  162. margin-bottom:20px;
  163. /*text-align:center;*/
  164. }
  165. .center-info {
  166. width: 100%;
  167. }
  168. .center-info h1{
  169. font-size:40px;
  170. text-align:center;
  171. }
  172. .center-info span {
  173. color: #289EFB;
  174. font-size:60px;
  175. }
  176. </style>