From 711d098689b220944d7f7f023daa5c0255605367 Mon Sep 17 00:00:00 2001
From: 明梦爽 <2972214568@qq.com>
Date: 星期五, 05 十一月 2021 15:10:58 +0800
Subject: [PATCH] 首页基本完善

---
 src/components/page/index.vue |  112 ++++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 77 insertions(+), 35 deletions(-)

diff --git a/src/components/page/index.vue b/src/components/page/index.vue
index f5d804f..e326b25 100644
--- a/src/components/page/index.vue
+++ b/src/components/page/index.vue
@@ -1,35 +1,40 @@
 <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-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>
+      <notice class="notice" />
+    </el-row>
     <!-- 棣栭〉涓嬪崐閮ㄥ垎 -->
-    <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-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>
+    <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>
@@ -53,14 +58,51 @@
   }
 }
 .youXiaJiao {
-    padding: 0;
-    // height: 400px;
-    .el-header {
-        height: 200px !important;
-    }
-    .el-main {
-        height: 200px;
-        background-color: rgb(206, 44, 171);
-    }
+  padding: 0;
+  // height: 400px;
+  .el-header {
+    height: 200px !important;
+  }
+  .el-main {
+    height: 200px;
+    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>
\ No newline at end of file

--
Gitblit v1.8.0