home.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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 class="center-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. .center-img{
  109. max-width:100%;
  110. }
  111. .who-is ul {
  112. list-style: none;
  113. }
  114. .who-is ul li span {
  115. padding-top: 20px;
  116. display: block;
  117. font-size: 24px;
  118. /* margin-top: 35px; */
  119. font-weight: 800;
  120. color: #141414;
  121. }
  122. .who-is ul li {
  123. float: left;
  124. width: 240px;
  125. height: 280px;
  126. text-align: center;
  127. position: relative;
  128. box-shadow: 0px 0px 5px #dde8f9;
  129. border-radius: 5%;
  130. margin-left: 38px;
  131. background-color: #fff;
  132. }
  133. .who-is ul li:first-child{margin-left:0}
  134. .show:hover {
  135. transition: all 0.6s;
  136. margin-top: -2%;
  137. cursor:pointer;
  138. }
  139. .who-is ul li img {
  140. border: 0;
  141. /* vertical-align: middle; */
  142. margin-top: 80px;
  143. height: 93px;
  144. }
  145. .arrow{
  146. width:100%;
  147. text-align:center;
  148. }
  149. .arrow h1 {
  150. margin-top: 70px;
  151. font-weight: 800;
  152. font-size: 26px;
  153. color: #0099FF;
  154. margin-bottom: 5px;
  155. }
  156. .arrow img{
  157. width:25px;
  158. margin-top: 20px;
  159. }
  160. .box {
  161. width: 120px;
  162. height: 5px;
  163. background-color: #0099FF;
  164. margin: auto;
  165. margin-bottom:20px;
  166. /*text-align:center;*/
  167. }
  168. .center-info {
  169. width: 100%;
  170. }
  171. .center-info h1{
  172. font-size:40px;
  173. text-align:center;
  174. }
  175. .center-info span {
  176. color: #289EFB;
  177. font-size:60px;
  178. }
  179. </style>