Forráskód Böngészése

添加荔园返回按钮

11wqe1 1 hónapja
szülő
commit
8592cf20ee
2 módosított fájl, 29 hozzáadás és 2 törlés
  1. 3 0
      src/assets/icon/backPage.svg
  2. 26 2
      src/views/main.vue

+ 3 - 0
src/assets/icon/backPage.svg

@@ -0,0 +1,3 @@
+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M7.78578 10L13.6783 15.8925L12.4999 17.0709L6.01828 10.5892C5.86205 10.4329 5.77429 10.221 5.77429 10C5.77429 9.77906 5.86205 9.56714 6.01828 9.41087L12.4999 2.9292L13.6783 4.10753L7.78578 10Z" fill="black"/>
+</svg>

+ 26 - 2
src/views/main.vue

@@ -5,7 +5,7 @@
       <div class="container-left" :style="leftShow ? { width: 0 } : { width: '240px' }" v-if="!gotype">
         <div class="container-left-top" @click="dialogVisible1 = !dialogVisible1">
           <span>
-            <img class="icon-img" :src="img11" alt="AI 应用" />AI通识课
+            <img class="icon-img" :src="img11" alt="AI 应用" />
             <img v-if="dialogVisible1" class="up" :src="img3" alt="up" />
             <img v-else class="up" :src="down" alt="down" />
           </span>
@@ -64,6 +64,12 @@
         </div>
       </div>
       <div class="main" :style="leftShow ? { width: '100%' } : ''" v-if="activeIndex == 0" :class="[gotype ? 'liyuan' : '']">
+        <div class="pgb" v-if="gotype">
+          <div @click="backO" class="pgbL">
+              <img src="../assets/icon/backPage.svg" alt="">
+              <div>AI通识课</div>
+          </div>
+        </div>
         <!-- <BannerVue></BannerVue> -->
         <CourseSelect></CourseSelect>
         <AIExperience></AIExperience>
@@ -275,6 +281,9 @@ const copyEmail = () => {
     console.error('复制失败:', error);
   });
 }
+const backO = () => {
+  window.location.href = `https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/CourseCon?userid=${user.user.userid}&oid=${user.user.oid}&org=${user.user.org}&role=${user.user.role}&tType=${user.user.tType}`
+}
 const show = () => {
   console.log('show')
 }
@@ -352,7 +361,7 @@ const show = () => {
   .liyuan{
     width: 100% !important;
     height: 100vh !important;
-    padding: 20px 15% !important;
+    padding: 20px 90px !important;
   }
   .iframe {
     width: calc(100% - 240px);
@@ -394,4 +403,19 @@ const show = () => {
 .fade-leave-to {
   opacity: 0;
 }
+.pgb{
+    /* font-family: PingFang SC; */
+    font-weight: bold;
+    font-size: 20px;
+    display: flex;align-items: center;
+    gap: 10px;
+    padding:20px 0px 0;
+    /* height: 23.8px; */
+    margin-bottom: 15px;
+}
+.pgbL{
+    display: flex;align-items: center;
+    gap: 10px;
+    cursor: pointer;
+}
 </style>