Browse Source

修改样式及功能问题

zengyicheng 2 years ago
parent
commit
a46c7e7e39

+ 1 - 1
dist/index.html

@@ -25,4 +25,4 @@
       height: 100%;
       width: 100%;
       background: #e6eaf0;
-    }</style><link href=./static/css/app.875a8fa69a0fc00b6fcdc75c59099a52.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.fed1de90e0941b3846db.js></script><script type=text/javascript src=./static/js/vendor.779ee1bbeec2c196af1e.js></script><script type=text/javascript src=./static/js/app.acb44cab23adf76e94db.js></script></body></html>
+    }</style><link href=./static/css/app.b003ff8f699d0dbbbc6cb39f04e1bf8f.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.fed1de90e0941b3846db.js></script><script type=text/javascript src=./static/js/vendor.779ee1bbeec2c196af1e.js></script><script type=text/javascript src=./static/js/app.16c60fb7952d3a66a5e9.js></script></body></html>

File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.b003ff8f699d0dbbbc6cb39f04e1bf8f.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.b003ff8f699d0dbbbc6cb39f04e1bf8f.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.16c60fb7952d3a66a5e9.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.acb44cab23adf76e94db.js


+ 30 - 41
src/components/pages/addCourse.vue

@@ -472,7 +472,7 @@
                 </div>
                 <div class="toolChoose">
                   <div class="tool">
-                    <div class="whiteBIcon" @click="addTools(1)">
+                    <div class="whiteBIcon" @click="openTools(1)">
                       <img src="../../assets/icon/whiteBordIcon.png" alt="" />
                     </div>
                     <div class="check" @click="addTools(1)">
@@ -489,7 +489,7 @@
                     </div>
                   </div>
                   <div class="tool">
-                    <div class="whiteBIcon" @click="addTools(2)">
+                    <div class="whiteBIcon" @click="openTools(2)">
                       <img src="../../assets/icon/noteIcon.png" alt="" />
                     </div>
                     <div class="check" @click="addTools(2)">
@@ -506,7 +506,7 @@
                     </div>
                   </div>
                   <div class="tool">
-                    <div class="whiteBIcon" @click="addTools(3)">
+                    <div class="whiteBIcon" @click="openTools(3)">
                       <img src="../../assets/icon/mindIcon.png" alt="" />
                     </div>
                     <div class="check" @click="addTools(3)">
@@ -523,7 +523,7 @@
                     </div>
                   </div>
                   <div class="tool">
-                    <div class="whiteBIcon" @click="addTools(4)">
+                    <div class="whiteBIcon" @click="openTools(4)">
                       <img src="../../assets/icon/askIcon.png" alt="" />
                     </div>
                     <div class="check" @click="addTools(4)">
@@ -557,7 +557,7 @@
                     </div>
                   </div> -->
                   <div class="tool">
-                    <div class="whiteBIcon" @click="addTools(6)">
+                    <div class="whiteBIcon" @click="openTools(6)">
                       <img src="../../assets/icon/wordIcon.png" alt="" />
                     </div>
                     <div class="check" @click="addTools(6)">
@@ -592,6 +592,8 @@
                         font-size: 1.5em;
                         font-weight: bold;
                         margin-top: 15px;
+                        width: 250px;
+                        min-width: 250px;
                       "
                     >
                       教学视频与课件添加
@@ -850,10 +852,10 @@
               <div>您的课程编号</div>
               <div class="number">{{ number }}</div>
               <div class="success_button">
-                <div class="look_course" @click="dialogVisible4 = true">邀请老师协同编辑</div>
-                <div class="attend_others" @click="goCourse">
-                  预览课程
+                <div class="look_course" @click="dialogVisible4 = true">
+                  邀请老师协同编辑
                 </div>
+                <div class="attend_others" @click="goCourse">预览课程</div>
               </div>
             </div>
           </div>
@@ -1012,7 +1014,7 @@ export default {
       isIndeterminate: true,
       steps: 1,
       nbOrder: 0,
-      courseId:"",
+      courseId: "",
       courseName: "",
       isTeacherSee: false,
       courseText: "",
@@ -1076,7 +1078,7 @@ export default {
       courseTypeId: [],
       courseTypeSon: [],
       clearArray: [],
-      loading:false,
+      loading: false,
     };
   },
   computed: {
@@ -1582,7 +1584,7 @@ export default {
           console.error(err);
         });
     },
-    goCourse(){
+    goCourse() {
       window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
     },
     updateWork() {
@@ -1707,24 +1709,26 @@ export default {
     goTo(path) {
       this.$router.push(path);
     },
+    openTools(i) {
+      if (i == 1) {
+        window.parent.postMessage({ tools: "1" }, "*");
+      } else if (i == 2) {
+        window.parent.postMessage({ tools: "2" }, "*");
+      } else if (i == 3) {
+        window.parent.postMessage({ tools: "3" }, "*");
+      } else if (i == 4) {
+        window.parent.postMessage({ tools: "4" }, "*");
+      }
+      // else if(i == 5){
+      //   window.parent.postMessage({ tools: "5" }, "*");
+      // }
+      else {
+        window.parent.postMessage({ tools: "6" }, "*");
+      }
+    },
     addTools(i) {
       if (this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.length == 0) {
         this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.push(i);
-        if (i == 1) {
-          window.parent.postMessage({ tools: "1" }, "*");
-        } else if (i == 2) {
-          window.parent.postMessage({ tools: "2" }, "*");
-        } else if (i == 3) {
-          window.parent.postMessage({ tools: "3" }, "*");
-        } else if (i == 4) {
-          window.parent.postMessage({ tools: "4" }, "*");
-        }
-        // else if(i == 5){
-        //   window.parent.postMessage({ tools: "5" }, "*");
-        // }
-        else {
-          window.parent.postMessage({ tools: "6" }, "*");
-        }
       } else {
         if (
           this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.indexOf(i) !=
@@ -1736,21 +1740,6 @@ export default {
           );
         } else {
           this.unitJson[this.unitIndex].chapterInfo[0].toolChoose.push(i);
-          if (i == 1) {
-            window.parent.postMessage({ tools: "1" }, "*");
-          } else if (i == 2) {
-            window.parent.postMessage({ tools: "2" }, "*");
-          } else if (i == 3) {
-            window.parent.postMessage({ tools: "3" }, "*");
-          } else if (i == 4) {
-            window.parent.postMessage({ tools: "4" }, "*");
-          }
-          // else if(i == 5){
-          //   window.parent.postMessage({ tools: "5" }, "*");
-          // }
-          else {
-            window.parent.postMessage({ tools: "6" }, "*");
-          }
         }
       }
       this.$forceUpdate();

+ 1 - 1
src/components/pages/works.vue

@@ -360,7 +360,7 @@ export default {
   height: 100%;
   position: absolute;
   top: 0;
-  background: #f8f8f8;
+  background: #e9e9e9;
   overflow: auto;
   z-index: 1;
   width: 95%;

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