lsc 2 роки тому
батько
коміт
cacc833eb9

+ 1 - 1
dist/index.html

@@ -25,7 +25,7 @@
       height: 100%;
       width: 100%;
       background: #e6eaf0;
-    }</style><link href=./static/css/app.b589379d1ccc8e5f46cc66097777aea6.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3512a67a6213c2df4180.js></script><script type=text/javascript src=./static/js/vendor.f1661c5ebfd33221b88f.js></script><script type=text/javascript src=./static/js/app.a9505ff752761660e74e.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.31b966b23d92355013407aae27ca09c8.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3512a67a6213c2df4180.js></script><script type=text/javascript src=./static/js/vendor.f1661c5ebfd33221b88f.js></script><script type=text/javascript src=./static/js/app.3993da936603bbe35097.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/static/css/app.31b966b23d92355013407aae27ca09c8.css


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/static/css/app.31b966b23d92355013407aae27ca09c8.css.map


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/static/css/app.b589379d1ccc8e5f46cc66097777aea6.css.map


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/static/js/app.3993da936603bbe35097.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/static/js/app.3993da936603bbe35097.js.map


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/static/js/app.a9505ff752761660e74e.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/static/js/manifest.3512a67a6213c2df4180.js.map


+ 2 - 2
src/components/pages/course.vue

@@ -22,9 +22,9 @@
       </div>
       <div class="student_button">
         <!-- <el-button type="primary" class="bgColor" @click="openCourse">协同编辑</el-button> -->
-        <el-button type="primary" class="bgColor" @click="goToCourse2()"
+        <!-- <el-button type="primary" class="bgColor" @click="goToCourse2()"
           >极简课程</el-button
-        >
+        > -->
         <el-button type="primary" class="bgColor" @click="goToCourse()"
           >添加课程</el-button
         >

+ 26 - 28
src/components/pages/easy/addCourse.vue

@@ -3467,20 +3467,18 @@ export default {
       // document.querySelector('.course_left').scrollHeight
       // document.querySelector('.stepsBottom2').scrollHeight
 
-      // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
-      // let client = $(".course_left")[0].clientHeight - stepsBottom2
-      // let top = $(".rightBox")[0].scrollTop - 400
-      // if (top > client) {
-      //   $('.stepsBottom2')[0].style.top = client + 'px'
-      // } else if (top > 0) {
-      //   $('.stepsBottom2')[0].style.top = top + 'px'
-      // } else {
-      //   $('.stepsBottom2')[0].style.top = '0px'
-      // }
-      let stepsBottom2 = $(".stepsBottom2")[0].offsetTop
-      if (stepsBottom2 > 40) {
-        $('.stepsBottom2')[0].style.top = (stepsBottom2 - 40) + 'px'
+      let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
+      let client = $(".course_left")[0].clientHeight - stepsBottom2
+      let top = $(".rightBox")[0].scrollTop - 400
+      if (top > client) {
+        $('.stepsBottom2')[0].style.top = client + 'px'
+      } else if (top > 0) {
+        let top = $(".rightBox")[0].offsetTop
+        $('.stepsBottom2')[0].style.position = 'fixed'
+        $('.stepsBottom2')[0].style.top = top + 'px'
+        // $('.stepsBottom2')[0].style.top = top + 'px'
       } else {
+        $('.stepsBottom2')[0].style.position = 'absolute'
         $('.stepsBottom2')[0].style.top = '0px'
       }
     },
@@ -3716,19 +3714,19 @@ export default {
           );
           _this.$message.success("删除成功");
 
-          this.$nextTick(() => {
-            $('.stepsBottom2')[0].style.transition = 'unset'
-            setTimeout(() => {
-              let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
-              let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
-              let top = $('.stepsBottom2')[0].offsetTop - 20
-              if (top > client) {
-                $('.stepsBottom2')[0].style.top = client + 'px'
-              }
-              $('.stepsBottom2')[0].style.transition = 'all .5s'
-              this.$forceUpdate()
-            }, 500)
-          })
+          // this.$nextTick(() => {
+          //   $('.stepsBottom2')[0].style.transition = 'unset'
+          //   setTimeout(() => {
+          //     let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
+          //     let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
+          //     let top = $('.stepsBottom2')[0].offsetTop - 20
+          //     if (top > client) {
+          //       $('.stepsBottom2')[0].style.top = client + 'px'
+          //     }
+          //     $('.stepsBottom2')[0].style.transition = 'all .5s'
+          //     this.$forceUpdate()
+          //   }, 500)
+          // })
         })
         .catch(() => {
           return;
@@ -9915,7 +9913,7 @@ ol {
 }
 
 .stepsBottom2 {
-  width: 100%;
+  width: 300px;
   margin: 20px 0;
   /* box-shadow: 0 0 10px 10px #f7f7f7; */
   /* background: #f7f7f7; */
@@ -9923,7 +9921,7 @@ ol {
   overflow: hidden;
   height: fit-content;
   position: relative;
-  transition: all .5s;
+  /* transition: all .5s; */
 }
 
 .navTop {

Деякі файли не було показано, через те що забагато файлів було змінено