Damon 4 лет назад
Родитель
Сommit
447cacbbb4

+ 36 - 0
src/components/GlobalFooter.vue

@@ -0,0 +1,36 @@
+<template>
+  <div class="foot__main" data-v-50fced26="">
+    <div class="foot__left" data-v-50fced26="">
+      <div class="foot__slogan" data-v-50fced26="">软件工程教育云平台 Software Engineering Education Cloud</div>
+    </div>
+    <div class="foot__right" data-v-50fced26="">
+      <div class="foot__list" data-v-50fced26="">
+        <div class="foot__title" data-v-50fced26="">关于我们</div>
+        <a data-v-50fced26="">常见问题</a> <a data-v-50fced26="">意见反馈</a> <a data-v-50fced26="">联系我们</a> <a data-v-50fced26="">法律条款</a></div>
+      <div class="foot__list foot__list-icons" data-v-50fced26="">
+        <div class="foot__title" data-v-50fced26="">关注我们</div>
+        <a data-v-50fced26="" href="https://zhuanlan.zhihu.com/c_1220396784981487616" target="_blank">
+          <div class="foot__icon foot__icon-zhihu" data-v-50fced26=""></div>
+        </a> <a data-v-50fced26="" href="https://space.bilibili.com/507030405" target="_blank">
+        <div class="foot__icon foot__icon-bilibili" data-v-50fced26=""></div>
+      </a></div>
+      <div class="foot__list" data-v-50fced26="">
+        <div class="foot__title" data-v-50fced26="">合作机构</div>
+        <a data-v-50fced26="">南京大学</a> <a data-v-50fced26="">阿里巴巴</a></div>
+    </div>
+  </div>
+  <div class="foot__bottom" data-v-50fced26="">
+    ©2020 NJU SEECODER TEAM<br data-v-50fced26="">
+    苏ICP备19073881号-1
+  </div>
+</template>
+
+<script>
+export default {
+  name: "GlobalFooter"
+};
+</script>
+
+<style scoped>
+
+</style>

+ 1 - 0
src/views/AuthPage/components/AuthCard.vue

@@ -264,6 +264,7 @@ export default {
       this.cardForm.password = localStorage.password;
       this.rememberMe = true;
     }
+    this.cardVerified = false;
   },
 
   methods: {

+ 57 - 0
src/views/PortalPage/PortalPage.css

@@ -0,0 +1,57 @@
+#portal-body {
+    height: 100%;
+    display: grid;
+    grid-template-columns: 2fr 1fr;
+    grid-template-rows: auto auto auto;
+    grid-gap: 10px 20px;
+    background: ghostwhite;
+    padding: 10px 20px 0 20px;
+}
+
+#portal-course-card-body {
+    height: 400px;
+}
+
+#portal-course-card-title {
+    display: flex;
+    justify-content: space-between;
+    margin-right: 5%;
+    align-items: baseline;
+    margin-bottom: 20px;
+}
+
+#portal-course-card-main {
+    display: grid;
+    grid-template-columns: 1fr 1fr 1fr;
+}
+
+#portal-course-card-title-1 {
+    font-weight: bold;
+    font-size: larger;
+    margin: 0 10px 0 0;
+}
+
+
+
+#portal-test-card-body {
+    height: 400px;
+}
+
+#portal-test-card-title {
+    display: flex;
+    justify-content: space-between;
+    margin-right: 5%;
+    align-items: baseline;
+    margin-bottom: 20px;
+}
+
+#portal-test-card-main {
+    display: grid;
+    grid-template-columns: 1fr 1fr 1fr;
+}
+
+#portal-test-card-title-1 {
+    font-weight: bold;
+    font-size: larger;
+    margin: 0 10px 0 0;
+}

+ 31 - 18
src/views/PortalPage/PortalPage.vue

@@ -3,35 +3,53 @@
   <div id="portal-body">
     <CarouselCard/>
     <InfoCard/>
-    <div id="a" :style="{height:(this.extending?'650px':'200px'), transition: 'height 0.5s'}" style="cursor: pointer;" @click="toCourse">精选课程
-      <img alt="err" src="@/assets/allCourse.png" style="width: 100%; height: 80%">
+    <div id="portal-course-card-body" :style="{height:(this.extending?'650px':'350px'), transition: 'height 0.5s'}">
+      <div id="portal-course-card-title">
+        <div id="portal-course-card-title-1">精选课程</div>
+        <ElButton type="primary" plain @click="toCourse">查看全部课程</ElButton>
+      </div>
+      <div id="portal-course-card-main">
+        <div v-for="(index) in devTemp_1" :key="index" class="cItem">
+          <CourseItem/>
+        </div>
+      </div>
     </div>
-    <div :style="{height:(this.extending?'650px':'200px'), transition: 'height 0.5s'}">我的课程
+    <div :style="{height:(this.extending?'650px':'350px'), transition: 'height 0.5s'}">我的课程
       <img alt="err" src="@/assets/myCourse.png" style="width: 100%; height: 80%">
     </div>
-    <div :style="{height:(this.extending?'650px':'200px'), transition: 'height 0.5s'}" style="cursor: pointer" @click="toTest">智能测试
-      <img alt="err" src="@/assets/allTest.png" style="width: 100%; height: 80%">
+    <div id="portal-test-card-body" :style="{height:(this.extending?'650px':'350px'), transition: 'height 0.5s'}" style="cursor: pointer" @click="toTest">
+      <div id="portal-test-card-title">
+        <div id="portal-test-card-title-1">智能测试</div>
+        <ElButton type="primary" plain @click="toCourse">查看全部测试</ElButton>
+      </div>
+      <div id="portal-test-card-main">
+        <div v-for="(index) in devTemp_1" :key="index" class="cItem">
+          <CourseItem/>
+        </div>
+      </div>
     </div>
-    <div :style="{height:(this.extending?'650px':'200px'), transition: 'height 0.5s'}">我的测试
+    <div :style="{height:(this.extending?'650px':'350px'), transition: 'height 0.5s'}">我的测试
       <img alt="err" src="@/assets/myTest.png" style="width: 100%; height: 80%">
     </div>
-
   </div>
-
+  <GlobalFooter/>
 </template>
 
 <script>
 import GlobalHeader from "@/components/GlobalHeader";
 import CarouselCard from "@/views/PortalPage/components/CarouselCard";
 import InfoCard from "@/views/PortalPage/components/InfoCard";
+import CourseItem from "@/components/CourseItem";
+import GlobalFooter from "@/components/GlobalFooter";
 
 export default {
   //属性
   name: "PortalPage",
-  components: { InfoCard, CarouselCard, GlobalHeader },
+  components: { GlobalFooter, CourseItem, InfoCard, CarouselCard, GlobalHeader },
   data() {
     return {
       extending: false,
+      devTemp_1: 3,
     };
   },
 
@@ -53,21 +71,16 @@ export default {
     },
     handleScroll() {
       let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
-      if (scrollTop > 15) {
+      if (scrollTop > 100) {
         this.extending = true;
+        this.devTemp_1 = 6;
       } else if (scrollTop < 5) {
         this.extending = false;
+        this.devTemp_1 = 3;
       }
     },
   }
 };
 </script>
 
-<style scoped>
-#portal-body {
-  display: grid;
-  grid-template-columns: 2fr 1fr;
-  grid-gap: 10px 20px;
-  background: #409eff;
-}
-</style>
+<style scoped src="./PortalPage.css"/>

+ 0 - 1
src/views/PortalPage/components/CarouselCard.vue

@@ -24,7 +24,6 @@ export default {
 
 <style scoped>
 #carousel-card-body {
-  margin: 10px 0 0 20px;
 }
 
 #carousel-card-body img {

+ 1 - 1
src/views/PortalPage/components/InfoCard.vue

@@ -67,7 +67,7 @@ export default {
 #info-card-body {
   height: calc(100% - 10px);
   width: 200px;
-  margin: 10px auto 0 auto;
+  margin: 0 auto 0 auto;
   display: flex;
   flex-direction: column;
   justify-content: space-around;