chao 3 months ago
parent
commit
a3c88af392

File diff suppressed because it is too large
+ 0 - 0
dist/assets/Details-nBNoRio7.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/admin-ONF5p0Xm.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-NoUxBiZJ.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-guepuggO.css


+ 2 - 2
dist/index.html

@@ -8,8 +8,8 @@
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index-PBsV9HRN.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index-KrHfCpU7.css">
+    <script type="module" crossorigin src="./assets/index-NoUxBiZJ.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-guepuggO.css">
   </head>
   <body>
     <div id="app"></div>

BIN
src/assets/icon/show.png


+ 2 - 4
src/components/header/headerLeft.vue

@@ -15,11 +15,9 @@ import LOGOTEXT from '@/assets/icon/深圳市青少年人工智能.png'
 <style scoped lang="scss">
 .header_left {
     display: flex;
+    align-items: center;
     padding: 13px 5px;
 
-    img{
-        height: 30px;
-        // margin-right: 10px;
-    }
+    
 }
 </style>

+ 26 - 6
src/views/main.vue

@@ -2,7 +2,7 @@
   <div style="height:100%">
     <Header></Header>
     <div class="container">
-      <div class="container-left">
+      <div class="container-left" :style="leftShow ? {width:0}:{width:'240px'}">
         <div :class="activeIndex == 0 ? 'container-left-top active' : 'container-left-top'" @click="activeIndex = 0">
           <img class="icon-img" :src="activeIndex == 0 ? img1 : img11" alt="教学中心" />教学中心
         </div>
@@ -26,8 +26,11 @@
               应用精选</div>
           </div>
         </transition>
+        <div class="container-left-show" :style="leftShow ? {width:'35px'}:{width:'240px'}" @click="leftShow = !leftShow">
+          <img :src="shows" alt="">
+        </div>
       </div>
-      <div class="main" v-if="activeIndex == 0">
+      <div class="main" :style="leftShow ? {width:'100%'}:''" v-if="activeIndex == 0">
         <!-- <BannerVue></BannerVue> -->
         <CourseSelect></CourseSelect>
         <resource></resource>
@@ -73,6 +76,7 @@ import img2 from '@/assets/icon/2.png'
 import img3 from '@/assets/icon/up.png'
 import down from '@/assets/icon/down.png'
 import info from '@/assets/icon/info.png'
+import shows from '@/assets/icon/show.png'
 import BannerVue from '@/components/main/banner.vue'
 import CourseSelect from '@/components/main/courseSelect.vue'
 import resource from '@/components/main/resource.vue';
@@ -96,6 +100,7 @@ const loading = ref(false)
 const iframeRef1Url = ref('')
 const iframeRef2Url = ref('')
 const iframeRef2Dialog = ref(true)
+const leftShow = ref(false)
 
 watchEffect(() => {
   // console.log('111111111111',CurrentRole, user.user)
@@ -143,6 +148,9 @@ const copyEmail = () => {
     console.error('复制失败:', error);
   });
 }
+const show = () => {
+  console.log('show')
+}
 </script>
 <style lang="scss">
 .container {
@@ -152,10 +160,10 @@ const copyEmail = () => {
 
   .container-left {
     height: calc(100vh - 60px);
-    width: 200px;
+    width: 240px;
     background: #fff;
     overflow: hidden;
-    margin-top: 15px;
+    padding-top: 15px;
 
     .container-left-top {
       margin: 0 10px 0 10px;
@@ -165,6 +173,7 @@ const copyEmail = () => {
       padding: 10px 0 10px 40px;
       position: relative;
       cursor: pointer;
+      transition: all 0.7s ease 0ms;
 
       .icon-img {
         position: absolute;
@@ -175,7 +184,7 @@ const copyEmail = () => {
       .up {
         position: absolute;
         top: 15px;
-        left: 110px;
+        left: 140px;
       }
 
       div {
@@ -185,12 +194,23 @@ const copyEmail = () => {
       }
 
     }
+
+    .container-left-show{
+      width: 240px;
+      position: fixed;
+      bottom: 0;
+      left: 0;
+      border: 1px solid #E7E7E7;
+      cursor: pointer;
+      background-color: #fff;
+      height: 35px;
+    }
   }
 
   .main {
     background: #F0F2F5;
     padding: 20px 10%;
-    width: calc(100% - 200px);
+    width: calc(100% - 240px);
     height: calc(100vh - 60px);
     overflow: auto;
   }

Some files were not shown because too many files changed in this diff