| | |
| | | <template> |
| | | <el-container> |
| | | <div calss="box"> |
| | | <!-- 首页上半部分 --> |
| | | <el-header> |
| | | <el-container> |
| | | <el-aside width="600px">图片要闻</el-aside> |
| | | <el-main>通知公告</el-main> |
| | | </el-container> |
| | | </el-header> |
| | | <!-- 首页下半部分 --> |
| | | <el-main class="xiaBian"> |
| | | <el-container> |
| | | <!-- 下边左半部分 --> |
| | | <el-aside width="1000px"> |
| | | <el-container> |
| | | <el-aside width="500px">工作状态</el-aside> |
| | | <el-main>学院动态</el-main> |
| | | </el-container> |
| | | <el-row type="flex" class="row-bg" justify="space-between"> |
| | | <el-aside width="600px"> |
| | | <div class="block"> |
| | | <el-carousel height="350px" type="card"> |
| | | <el-carousel-item v-for="item in 4" :key="item"> |
| | | <h3 class="small"></h3> |
| | | <div> |
| | | <img src="../../assets/boer.jpg" alt=""> |
| | | <img src="../../assets/boer2.jpg" alt=""> |
| | | <img src="../../assets/boer.jpg" alt=""> |
| | | <img src="../../assets/boer2.jpg" alt=""> |
| | | </div> |
| | | </el-carousel-item> |
| | | </el-carousel> |
| | | </div> |
| | | </el-aside> |
| | | <!-- 下边右半部分 --> |
| | | <el-main class="youXiaJiao"> |
| | | <el-container> |
| | | <el-header>友情链接</el-header> |
| | | <el-main>联系我们</el-main> |
| | | </el-container> |
| | | </el-main> |
| | | </el-container> |
| | | </el-main> |
| | | </el-container> |
| | | <notice class="notice" /> |
| | | </el-row> |
| | | <!-- 首页下半部分 --> |
| | | <el-row type="flex" class="row-bg" justify="space-between"> |
| | | <work class="work"/> |
| | | <school class="school"/> |
| | | <other class="other"/> |
| | | </el-row> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import notice from '../../views/notice.vue' |
| | | import work from '../../views/work.vue' |
| | | import school from '../../views/school.vue' |
| | | import other from '../../views/other.vue' |
| | | |
| | | export default { |
| | | components: { notice, work, school, other }, |
| | | name: 'index' |
| | | } |
| | | </script> |
| | |
| | | background-color: rgb(206, 44, 171); |
| | | } |
| | | } |
| | | |
| | | .el-carousel__item h3 { |
| | | color: #475669; |
| | | font-size: 14px; |
| | | opacity: 0.75; |
| | | line-height: 150px; |
| | | margin: 0; |
| | | } |
| | | |
| | | .el-carousel__item:nth-child(2n) { |
| | | background-color: #99a9bf; |
| | | } |
| | | |
| | | .el-carousel__item:nth-child(2n + 1) { |
| | | background-color: #d3dce6; |
| | | } |
| | | .block div { |
| | | img { |
| | | width: 100%; |
| | | height: 100%; |
| | | object-fit:cover; |
| | | } |
| | | } |
| | | .notice{ |
| | | width: 50%; |
| | | } |
| | | .work { |
| | | width: 40%; |
| | | margin-right: 10px; |
| | | } |
| | | .school { |
| | | width: 40%; |
| | | } |
| | | .other { |
| | | width: 20%; |
| | | margin-left: 5px; |
| | | } |
| | | </style> |