lsc hace 1 año
padre
commit
5d08f2e901

+ 1 - 1
dist/index.html

@@ -25,7 +25,7 @@
       height: 100%;
       width: 100%;
       background: #e6eaf0;
-    }</style><link href=./static/css/app.0d40b5627b453ae469e2a7e7a2cd07eb.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.bb6723fb373b947e6ee5.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.71017fbaa475fd811dd48eb32a0344de.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.587c8c5739a8a0aefe8b.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/css/app.0d40b5627b453ae469e2a7e7a2cd07eb.css


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/css/app.71017fbaa475fd811dd48eb32a0344de.css


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/css/app.71017fbaa475fd811dd48eb32a0344de.css.map


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/js/app.587c8c5739a8a0aefe8b.js


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/js/app.587c8c5739a8a0aefe8b.js.map


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/js/manifest.3512a67a6213c2df4180.js.map


BIN
src/assets/icon/new/icon-show.png


BIN
src/assets/icon/new/icon-slide.png


BIN
src/assets/icon/new/icon-slide2.png


+ 32 - 9
src/components/pages/addCourse.vue

@@ -476,6 +476,7 @@
                   添加任务
                 </div> -->
                     <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
+                      :class="{smallTaskBorder:itemTask.isFold === 1}"
                       v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
                       <div v-if="unitJson[unitIndex].easy != 1">
                         <div :style="{
@@ -501,13 +502,15 @@
                                   itemTaskIndex
                                 ].task
                                   " />
+                                  <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />收起任务描述</div>
+                                <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD" @click="fold2(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开任务描述</div>
                             </div>
                             <div class="remove" v-if="item.taskJson.length > 1 &&
                               (!unitJson[unitIndex].easy ||
                                 unitJson[unitIndex].easy == 6)
                               " @click="deleteTask(itemTaskIndex)" style="margin-right: 10px;"></div>
                           </div>
-                          <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" style="
+                          <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2" style="
                           display: flex;
                           margin: 20px 0;
                           flex-direction: row;
@@ -517,7 +520,7 @@
                             <div class="lineTitle">任务描述</div>
                             <!-- <div class="line"></div> -->
                           </div>
-                          <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1">
+                          <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2">
                             <editor-bar style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
                               itemTaskIndex
                             ].taskDetail
@@ -4730,18 +4733,19 @@ export default {
       el.getElementsByTagName("input")[0].click();
     },
     fold(i, e) {
-      var a = e.currentTarget.parentElement.parentElement;
-      var b = e.currentTarget.parentElement;
       if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
         this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
-        a.className += " smallTaskBorder";
-        b.className += " funBlockTop";
       } else {
         this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
-        a.className = "taskBorder";
-        b.className = "funBlock";
       }
-      console.log(e);
+    },
+    fold2(i) {
+      if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
+        this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
+      } else {
+        this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
+      }
+      this.$forceUpdate();
     },
     deleteHomeworkBox(unitIndex, index, i) {
       this.unitJson[unitIndex].chapterInfo[index].taskJson[
@@ -8100,8 +8104,27 @@ export default {
 
 .chapter_contentbox .cc_input {
   width: 100%;
+  display:flex;
+}
+
+.show_taskD{
+  min-width:fit-content;
+  margin-left: 10px;
+  display: flex;
+  align-items: center;
+  font-size: 14px;
+  cursor: pointer;
+  color: #717C8D;
 }
 
+.show_taskD > img{
+  width:15px;
+  margin-right:5px;
+}
+
+.show_taskD.show > img{
+  transform: rotate(180deg);
+}
 .remove {
   background-image: url("../../assets/icon/new/delete_u.png");
   cursor: pointer;

+ 31 - 1
src/components/pages/easy/addCourse.vue

@@ -380,12 +380,14 @@
                                     itemTaskIndex
                                   ].task
                                   " />
+                                <div v-if="!itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
+                                <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div>
                             </div>
                             <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
                           </div>
                         </div>
                       </div>
-                      <div style="margin: 25px 0">
+                      <div style="margin: 25px 0" v-if="!itemTask.isFold2">
                         <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
                           itemTaskIndex
                         ].taskDetail
@@ -5709,6 +5711,14 @@ export default {
       }
       console.log(e);
     },
+    fold2(i) {
+      if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
+        this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
+      } else {
+        this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
+      }
+      this.$forceUpdate();
+    },
     deleteHomeworkBox(unitIndex, index, i) {
       this.unitJson[unitIndex].chapterInfo[index].taskJson[
         this.taskCount
@@ -9094,6 +9104,26 @@ export default {
 
 .chapter_contentbox .cc_input {
   width: 100%;
+  display:flex;
+}
+
+.show_taskD{
+  min-width:fit-content;
+  margin-left: 10px;
+  display: flex;
+  align-items: center;
+  font-size: 14px;
+  cursor: pointer;
+  color: #717C8D;
+}
+
+.show_taskD > img{
+  width:15px;
+  margin-right:5px;
+}
+
+.show_taskD.show > img{
+  transform: rotate(180deg);
 }
 
 .remove {

+ 31 - 1
src/components/pages/task/addCourse.vue

@@ -245,6 +245,8 @@
                                   ].task
                                 "
                               />
+                              <div v-if="!itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
+                                <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div>
                             </div>
                             <div
                               class="remove"
@@ -254,7 +256,7 @@
                           </div>
                         </div>
                       </div>
-                      <div style="margin: 25px 0">
+                      <div style="margin: 25px 0" v-if="!itemTask.isFold2">
                         <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
                           itemTaskIndex
                         ].taskDetail
@@ -8292,6 +8294,14 @@ export default {
       }
       console.log(e);
     },
+    fold2(i) {
+      if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
+        this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
+      } else {
+        this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
+      }
+      this.$forceUpdate();
+    },
     deleteHomeworkBox(unitIndex, index, i) {
       this.unitJson[unitIndex].chapterInfo[index].taskJson[
         this.taskCount
@@ -11648,6 +11658,26 @@ export default {
 
 .chapter_contentbox .cc_input {
   width: 100%;
+  display:flex;
+}
+
+.show_taskD{
+  min-width:fit-content;
+  margin-left: 10px;
+  display: flex;
+  align-items: center;
+  font-size: 14px;
+  cursor: pointer;
+  color: #717C8D;
+}
+
+.show_taskD > img{
+  width:15px;
+  margin-right:5px;
+}
+
+.show_taskD.show > img{
+  transform: rotate(180deg);
 }
 
 .remove {

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio