Browse Source

megre branch beta

lsc 1 tuần trước cách đây
mục cha
commit
60bacc6885
38 tập tin đã thay đổi với 981 bổ sung919 xóa
  1. 18 2
      dist/index.html
  2. 0 0
      dist/static/css/app.fb00174be64e4ec101c162929c3317a0.css
  3. 0 0
      dist/static/css/app.fb00174be64e4ec101c162929c3317a0.css.map
  4. 0 0
      dist/static/js/app.ff462ee07c76d3bfd9e3.js
  5. 0 0
      dist/static/js/app.ff462ee07c76d3bfd9e3.js.map
  6. 0 0
      dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map
  7. 17 1
      index.html
  8. 4 4
      js/jietu2.js
  9. 4 4
      js/jietu4.js
  10. 3 3
      src/common/jietu2.js
  11. 29 29
      src/components/GM/studyStudentGM.vue
  12. 3 3
      src/components/classRoomHelper/component/taskArea.vue
  13. 5 5
      src/components/courseDetail.vue
  14. 36 36
      src/components/easy/studyStudent.vue
  15. 1 1
      src/components/easy2/commpont/markDialog.vue
  16. 41 41
      src/components/easy2/studyStudent jiu.vue
  17. 79 71
      src/components/easy2/studyStudent.vue
  18. 41 41
      src/components/easy3/studyStudent jiu.vue
  19. 73 65
      src/components/easy3/studyStudent.vue
  20. 4 4
      src/components/liveProjectDetail(湖心亭看雪).vue
  21. 6 6
      src/components/liveProjectDetail.vue
  22. 6 6
      src/components/liveProjectDetailKH.vue
  23. 36 36
      src/components/noTerminal/studyStudent.vue
  24. 1 1
      src/components/scoreList/commpont/course.vue
  25. 29 29
      src/components/student/studyStudent.vue
  26. 29 29
      src/components/student/studyStudentJiu.vue
  27. 29 29
      src/components/studio/studyStudent.vue
  28. 20 20
      src/components/study.vue
  29. 58 52
      src/components/studyStudent.vue
  30. 42 42
      src/components/studyStudentJiu.vue
  31. 1 1
      src/components/studySutdentClass/commpont/markDialog.vue
  32. 41 41
      src/components/studySutdentClass/studyStudent jiu.vue
  33. 120 112
      src/components/studySutdentClass/studyStudent.vue
  34. 41 41
      src/components/trainCourse/easy2/studyStudent.vue
  35. 41 41
      src/components/trainCourse/easy3/studyStudent.vue
  36. 41 41
      src/components/trainCourse/studyStudent.vue
  37. 41 41
      src/components/横板极简和任务模式/easy2/studyStudent.vue
  38. 41 41
      src/components/横板极简和任务模式/easy3/studyStudent.vue

+ 18 - 2
dist/index.html

@@ -27,7 +27,7 @@
     html,
     body{
       font-family: '黑体';
-    }</style><link href=./static/css/app.efa616efe54066fe53d22b8fc14de3df.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.acbd8cb5870df69e0141.js></script><script type=text/javascript src=./static/js/app.08a50fadde7944ffffa3.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.fb00174be64e4ec101c162929c3317a0.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.acbd8cb5870df69e0141.js></script><script type=text/javascript src=./static/js/app.ff462ee07c76d3bfd9e3.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {
@@ -53,6 +53,22 @@
 
   window.onload = () => {
     stopSafari();
+    try{
+      if(window.parent.U){
+        topU = window.parent
+      }
+    }catch(e){
+      try {
+        if(window.parent.parent.U){
+          topU = window.parent.parent
+        }
+      } catch (error) {
+        if(window.top.U){
+          topU = window.top
+        } 
+      }
+    }
+    window.topU = topU
   }
   
-  document.domain = "cocorobo.cn"</script>
+  document.domain = document.domain.split(".").slice(-2).join(".");</script>

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/css/app.fb00174be64e4ec101c162929c3317a0.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/css/app.fb00174be64e4ec101c162929c3317a0.css.map


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/app.ff462ee07c76d3bfd9e3.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/app.ff462ee07c76d3bfd9e3.js.map


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 17 - 1
index.html

@@ -73,8 +73,24 @@
 
   window.onload = () => {
     stopSafari();
+    try{
+      if(window.parent.U){
+        topU = window.parent
+      }
+    }catch(e){
+      try {
+        if(window.parent.parent.U){
+          topU = window.parent.parent
+        }
+      } catch (error) {
+        if(window.top.U){
+          topU = window.top
+        } 
+      }
+    }
+    window.topU = topU
   }
   
-  document.domain = "cocorobo.cn"
+  document.domain = document.domain.split(".").slice(-2).join(".");
 
 </script>

+ 4 - 4
js/jietu2.js

@@ -44,7 +44,7 @@ function dataURLtoFile_shishi(dataurl, filename) {
 
 function beforeUpload_shishi(nfile, uid, cid, stage, task, tool, loading, atool, text) {
   // loading.style.display = 'flex'
-  // top.document.getElementById(loading);
+  // window.topU.document.getElementById(loading);
   //  document.body.appendChild(_loading)
   var file = nfile;
   var credentials = {
@@ -91,7 +91,7 @@ function beforeUpload_shishi(nfile, uid, cid, stage, task, tool, loading, atool,
           for (var i = 0; i < _a.length; i++) {
             _a[i].removeAttribute("crossorigin")
           }
-          top.document.getElementById(loading).children[0].style.display = "none"
+          window.topU.document.getElementById(loading).children[0].style.display = "none"
           let _div = document.createElement('div')
           _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
           let _inner = document.createElement('div')
@@ -135,7 +135,7 @@ function addSWork_shishi(uid, cid, stage, task, tool, a, loading, atool, text) {
       for (var i = 0; i < _a.length; i++) {
         _a[i].removeAttribute("crossorigin")
       }
-      top.document.getElementById(loading).children[0].style.display = "none"
+      window.topU.document.getElementById(loading).children[0].style.display = "none"
       let _div = document.createElement('div')
       _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
       let _inner = document.createElement('div')
@@ -153,7 +153,7 @@ function addSWork_shishi(uid, cid, stage, task, tool, a, loading, atool, text) {
         for (var i = 0; i < _a.length; i++) {
           _a[i].removeAttribute("crossorigin")
         }
-        top.document.getElementById(loading).children[0].style.display = "none"
+        window.topU.document.getElementById(loading).children[0].style.display = "none"
         let _div = document.createElement('div')
         _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
         let _inner = document.createElement('div')

+ 4 - 4
js/jietu4.js

@@ -32,7 +32,7 @@ function dataURLtoFile_shishi(dataurl, filename) {
 
 function beforeUpload_shishi(nfile, uid, cid, stage, task, tool, loading, atool, text) {
   // loading.style.display = 'flex'
-  // top.document.getElementById(loading);
+  // window.topU.document.getElementById(loading);
   //  document.body.appendChild(_loading)
   var file = nfile;
   var credentials = {
@@ -79,7 +79,7 @@ function beforeUpload_shishi(nfile, uid, cid, stage, task, tool, loading, atool,
           for (var i = 0; i < _a.length; i++) {
             _a[i].removeAttribute("crossorigin")
           }
-          top.document.getElementById(loading).children[0].style.display = "none"
+          window.topU.document.getElementById(loading).children[0].style.display = "none"
           let _div = document.createElement('div')
           _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
           let _inner = document.createElement('div')
@@ -122,7 +122,7 @@ function addSWork_shishi(uid, cid, stage, task, tool, a, loading, atool, text) {
       for (var i = 0; i < _a.length; i++) {
         _a[i].removeAttribute("crossorigin")
       }
-      top.document.getElementById(loading).children[0].style.display = "none"
+      window.topU.document.getElementById(loading).children[0].style.display = "none"
       let _div = document.createElement('div')
       _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
       let _inner = document.createElement('div')
@@ -140,7 +140,7 @@ function addSWork_shishi(uid, cid, stage, task, tool, a, loading, atool, text) {
         for (var i = 0; i < _a.length; i++) {
           _a[i].removeAttribute("crossorigin")
         }
-        top.document.getElementById(loading).children[0].style.display = "none"
+        window.topU.document.getElementById(loading).children[0].style.display = "none"
         let _div = document.createElement('div')
         _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
         let _inner = document.createElement('div')

+ 3 - 3
src/common/jietu2.js

@@ -43,7 +43,7 @@ function dataURLtoFile_shishi(dataurl, filename) {
 
 function beforeUpload_shishi(nfile, uid, cid, stage, task, tool, loading, atool, text) {
   // loading.style.display = 'flex'
-  // top.document.getElementById(loading);
+  // window.topU.document.getElementById(loading);
   //  document.body.appendChild(_loading)
   var file = nfile;
   var credentials = {
@@ -111,7 +111,7 @@ function addSWork_shishi(uid, cid, stage, task, tool, a, loading,atool, text) {
       for (var i = 0; i < _a.length; i++) {
         _a[i].removeAttribute("crossorigin")
       }
-      top.document.getElementById(loading).children[0].style.display = "none"
+      window.topU.document.getElementById(loading).children[0].style.display = "none"
       let _div = document.createElement('div')
       _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
       let _inner = document.createElement('div')
@@ -129,7 +129,7 @@ function addSWork_shishi(uid, cid, stage, task, tool, a, loading,atool, text) {
         for (var i = 0; i < _a.length; i++) {
           _a[i].removeAttribute("crossorigin")
         }
-        top.document.getElementById(loading).children[0].style.display = "none"
+        window.topU.document.getElementById(loading).children[0].style.display = "none"
         let _div = document.createElement('div')
         _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
         let _inner = document.createElement('div')

+ 29 - 29
src/components/GM/studyStudentGM.vue

@@ -3003,7 +3003,7 @@ export default {
   },
   methods: {
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     previewImg(url) {
       this.$hevueImgPreview(url);
@@ -4396,7 +4396,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType }, "*");
+      window.topU.postMessage({ allScreen: this.screenType }, "*");
     },
     nextOrpreSteps(t) {
       var b = this.chapInfoList.length - 1;
@@ -5606,7 +5606,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1",
             cid: this.id,
@@ -5624,7 +5624,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t);
@@ -5633,7 +5633,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3",
             cid: this.id,
@@ -5674,7 +5674,7 @@ export default {
         }
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -5700,7 +5700,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -5710,7 +5710,7 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t);
@@ -5719,7 +5719,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -5737,7 +5737,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -5764,7 +5764,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -5773,7 +5773,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -5782,7 +5782,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -5809,29 +5809,29 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -5908,7 +5908,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       }
     },
     toolsCount(a, t) {
@@ -6329,11 +6329,11 @@ export default {
   },
   created() {
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: "5gm" }, "*");
+      window.topU.postMessage({ allScreen: "5gm" }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.selectEva();
     this.getCourseDetail();

+ 3 - 3
src/components/classRoomHelper/component/taskArea.vue

@@ -1273,17 +1273,17 @@ ${_textData}
     },
     goSetTopic() {
       if (this.courseDetail.state == 1 || this.courseDetail.state == 2) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           { tools: "openNewCourseUpdate", cid: this.courseDetail.courseId },
           "*"
         );
       } else if (this.courseDetail.state == 3) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           { tools: "openCourseEUpdate", cid: this.courseDetail.courseId },
           "*"
         );
       } else if (this.courseDetail.state == 4 || this.courseDetail.state == 5) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           { tools: "openCourseAiUpdate", cid: this.courseDetail.courseId },
           "*"
         );

+ 5 - 5
src/components/courseDetail.vue

@@ -1444,19 +1444,19 @@ export default {
       } else {
 				this.getCourseDetail1().then(_=>{
 					if(this.classList.length<=0){
-						this.$confirm("该课程尚未指定授课班级,请回首页,使用修改功能添加授课班级。","提示",{
+						this.$confirm("该课程尚未指定授课班级,请回首页,使用修改功能添加授课班级。","提示",{
 							confirmButtonText: '去修改',
         		  cancelButtonText: '取消',
 							type:"error",
 						}).then(() => {
 							if(this.courseDetail.state == 1 || this.courseDetail.state == 2){
-								window.parent.postMessage({ tools: "openNewCourseUpdate",cid:this.id }, "*");
+								window.topU.postMessage({ tools: "openNewCourseUpdate",cid:this.id }, "*");
 							}else if(this.courseDetail.state == 3){
-								window.parent.postMessage({ tools: "openCourseEUpdate",cid:this.id }, "*");
+								window.topU.postMessage({ tools: "openCourseEUpdate",cid:this.id }, "*");
 							}else if(this.courseDetail.state == 4 || this.courseDetail.state == 5){
-								window.parent.postMessage({ tools: "openCourseAiUpdate",cid:this.id }, "*");
+								window.topU.postMessage({ tools: "openCourseAiUpdate",cid:this.id }, "*");
               }else if(this.courseDetail.state == 6){
-								window.parent.postMessage({ tools: "openCourseAiUpdate2",cid:this.id }, "*");
+								window.topU.postMessage({ tools: "openCourseAiUpdate2",cid:this.id }, "*");
               }
 
 						})

+ 36 - 36
src/components/easy/studyStudent.vue

@@ -2889,7 +2889,7 @@ export default {
   },
   methods: {
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     previewImg(url) {
       this.$hevueImgPreview(url);
@@ -4743,7 +4743,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
+      window.topU.postMessage({ allScreen: this.screenType + "NT" }, "*");
     },
     nextToolindex(type) {
       this.$forceUpdate();
@@ -6378,7 +6378,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1E",
             cid: this.id,
@@ -6396,7 +6396,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t);
@@ -6405,7 +6405,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3E",
             cid: this.id,
@@ -6449,7 +6449,7 @@ export default {
 
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -6475,7 +6475,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -6485,7 +6485,7 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t);
@@ -6494,7 +6494,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -6512,7 +6512,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -6548,7 +6548,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -6557,7 +6557,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -6566,7 +6566,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -6598,41 +6598,41 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 57) {
-        window.parent.postMessage({ tools: "57" }, "*");
+        window.topU.postMessage({ tools: "57" }, "*");
       } else if (t == 58) {
-        window.parent.postMessage({ tools: "58" }, "*");
+        window.topU.postMessage({ tools: "58" }, "*");
       } else if (t == 59) {
-        window.parent.postMessage({ tools: "59" }, "*");
+        window.topU.postMessage({ tools: "59" }, "*");
       } else if (t == 60) {
-        window.parent.postMessage({ tools: "60" }, "*");
+        window.topU.postMessage({ tools: "60" }, "*");
       } else if (t == 61) {
-        window.parent.postMessage({ tools: "61" }, "*");
+        window.topU.postMessage({ tools: "61" }, "*");
       } else if (t == 63) {
-        window.parent.postMessage({ tools: "63" }, "*");
+        window.topU.postMessage({ tools: "63" }, "*");
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -6709,7 +6709,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       } else if (t == 47) {
         this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].sentenceList
@@ -6971,7 +6971,7 @@ export default {
         this.isStar = false;
         this.studentEvalDialogVisibleTeacher = true;
       } else if (t == 3 || t == 1 || t == 7) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: t + 'teacherE',
             cid: this.id,
@@ -7769,11 +7769,11 @@ export default {
   },
   mounted() {
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.setOperationTime();
     this.selectEva();

+ 1 - 1
src/components/easy2/commpont/markDialog.vue

@@ -1411,7 +1411,7 @@ export default {
         student: uname
       };
       if (tool == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: tool + "teacher",
             cid: this.cid,

+ 41 - 41
src/components/easy2/studyStudent jiu.vue

@@ -12519,7 +12519,7 @@ export default {
   },
   methods: {
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     getUpdateMore(f, checkboxList, searchTN, index) {
       this.dialogVisibleMember = f;
@@ -15159,7 +15159,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
+      window.topU.postMessage({ allScreen: this.screenType + "NT" }, "*");
     },
     nextToolindex(type) {
       if (type == "last") {
@@ -16980,7 +16980,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1",
             cid: this.id,
@@ -16998,7 +16998,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t);
@@ -17007,7 +17007,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3",
             cid: this.id,
@@ -17051,7 +17051,7 @@ export default {
 
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -17077,7 +17077,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -17087,7 +17087,7 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t);
@@ -17096,7 +17096,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -17114,7 +17114,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -17155,7 +17155,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -17164,7 +17164,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -17173,7 +17173,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -17205,36 +17205,36 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 66) {
-        window.parent.postMessage({ tools: "66" }, "*");
+        window.topU.postMessage({ tools: "66" }, "*");
       } else if (t == 67) {
-        window.parent.postMessage({ tools: "67" }, "*");
+        window.topU.postMessage({ tools: "67" }, "*");
       } else if (t == 68) {
-        window.parent.postMessage({ tools: "68" }, "*");
+        window.topU.postMessage({ tools: "68" }, "*");
       } else if (t == 57) {
-        // window.parent.postMessage({ tools: "57" }, "*");
-        window.parent.postMessage(
+        // window.topU.postMessage({ tools: "57" }, "*");
+        window.topU.postMessage(
           {
             tools: "57u",
             cid: this.id,
@@ -17245,15 +17245,15 @@ export default {
           "*"
         );
       } else if (t == 58) {
-        window.parent.postMessage({ tools: "58" }, "*");
+        window.topU.postMessage({ tools: "58" }, "*");
       } else if (t == 59) {
-        window.parent.postMessage({ tools: "59" }, "*");
+        window.topU.postMessage({ tools: "59" }, "*");
       } else if (t == 60) {
-        window.parent.postMessage({ tools: "60" }, "*");
+        window.topU.postMessage({ tools: "60" }, "*");
       } else if (t == 61) {
-        window.parent.postMessage({ tools: "61" }, "*");
+        window.topU.postMessage({ tools: "61" }, "*");
       } else if (t == 63) {
-        window.parent.postMessage({ tools: "63" }, "*");
+        window.topU.postMessage({ tools: "63" }, "*");
       } else if (t == 65) {
         if (this.tType == 2) {
           this.$message.error("不支持学生使用");
@@ -17268,7 +17268,7 @@ export default {
         }
         this.selectPickStudent();
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -17345,7 +17345,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       } else if (t == 47) {
         this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].sentenceList
@@ -17631,7 +17631,7 @@ export default {
         this.isStar = false;
         this.studentEvalDialogVisibleTeacher = true;
       } else if (t == 3 || t == 1 || t == 7 || t == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: t + "teacher",
             cid: this.id,
@@ -17650,7 +17650,7 @@ export default {
         student: uname,
       };
       if (tool == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: tool + "teacher",
             cid: this.id,
@@ -18924,11 +18924,11 @@ export default {
       }
     });
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.setOperationTime();
     this.selectEva();

+ 79 - 71
src/components/easy2/studyStudent.vue

@@ -1128,7 +1128,7 @@
                             <div style="margin: 5px 0">选择题</div>
                             <div
                               class="upload_toolBtn"
-                             
+
                               @click="
                                 openChoseWorksDetailDialog(
                                   tooC,
@@ -13839,7 +13839,7 @@
       <div style="height: 100%;position: relative;">
         <el-button
           v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
-          size="medium" 
+          size="medium"
           type="primary"
           @click="
             () => {
@@ -16133,15 +16133,15 @@
         <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
         <div>要认真听讲哦~</div>
       </div>
-      
+
 
       <div style="text-align: center;">
         <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
       </div>
-   
+
     </el-dialog>
 
-    <appStoreC ref="appStoreC" 
+    <appStoreC ref="appStoreC"
       :sStudent="sStudent"
       :courseType="courseType"
       :taskCount="taskCount"
@@ -17585,9 +17585,9 @@ export default {
             let scrollBody = document.querySelector('.body_student').parentElement
             scrollBody.scrollTop = scrollBody.scrollTop - 100
         }, 0);
-       
+
       }
-      
+
       this.navId = "";
       let flag = this.courseType == i;
       let flag2 = this.taskCount == j;
@@ -17693,7 +17693,7 @@ export default {
       this.$forceUpdate();
     },
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     getUpdateMore(f, checkboxList, searchTN, index) {
       this.dialogVisibleMember = f;
@@ -19022,9 +19022,11 @@ export default {
             });
             this.selectSWorks();
             this.selectStudent();
+            if(this.tType!=0){
             this.insertMemorandum(
               `对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`
             );
+            }
           })
           .catch(err => {
             this.$message.error("点赞失败");
@@ -19236,9 +19238,11 @@ export default {
                 this.commentText = "";
                 this.selectSWorks();
                 this.selectStudent();
+                if(this.tType!=0){
                 this.insertMemorandum(
                   `对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`
                 );
+                }
               })
               .catch(err => {
                 this.$message.error("评论失败");
@@ -19277,9 +19281,11 @@ export default {
           this.dialogVisibleScore = false;
           this.selectSWorks();
           this.selectStudent();
+          if(this.tType!=0){
           this.insertMemorandum(
             `对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`
           );
+          }
         })
         .catch(err => {
           this.$message.error("评分失败");
@@ -21142,7 +21148,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType }, "*");
+      window.topU.postMessage({ allScreen: this.screenType }, "*");
     },
     // 0上一步  1下一步
     nextOrpreSteps(t) {
@@ -21322,7 +21328,7 @@ export default {
         return;
       }
 
-      if (this.IsLookOpen && 
+      if (this.IsLookOpen &&
         this.courseDetail.userid != this.userid &&
         this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
         if (
@@ -21772,7 +21778,7 @@ export default {
                 }
               })
             }
-            
+
             this.vChapterData = _chapterData;
           } else {
             this.showType = 0;
@@ -22205,9 +22211,11 @@ export default {
           this.pzConText = "";
           this.addPzDialog = false;
           this.selectPz();
+          if(this.tType!=0){
           this.insertMemorandum(
             `使用<span class="btn">评论</span>功能,添加评论`
           );
+          }
         })
         .catch(err => {
           this.$message.error("添加失败");
@@ -22478,7 +22486,7 @@ export default {
           this.IsFollow = res.data[0][0].follow == 1 ? false : true;
           if (!this.IsLookOpen) {
             this.setNavList();
-          } 
+          }
           // else {
             this.getCourseState(1);
           // }
@@ -22599,7 +22607,7 @@ export default {
         });
     },
     addCourseState(type,val = '') {
-      
+
       let _state = val ? val : this.chapInfoList;
       // this.courseType   this.taskCount
       if (type == 1 || type == 2) {
@@ -22629,7 +22637,7 @@ export default {
           state: JSON.stringify(_state)
         }
       ];
-      
+
       this.ajax
         .post(
           this.$store.state.api +
@@ -23264,7 +23272,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1",
             cid: this.id,
@@ -23282,7 +23290,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t);
@@ -23291,7 +23299,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3",
             cid: this.id,
@@ -23337,7 +23345,7 @@ export default {
         }
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -23362,7 +23370,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -23372,7 +23380,7 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t);
@@ -23381,7 +23389,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -23399,7 +23407,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -23444,7 +23452,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -23453,7 +23461,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -23462,7 +23470,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -23494,36 +23502,36 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 66) {
-        window.parent.postMessage({ tools: "66" }, "*");
+        window.topU.postMessage({ tools: "66" }, "*");
       } else if (t == 67) {
-        window.parent.postMessage({ tools: "67" }, "*");
+        window.topU.postMessage({ tools: "67" }, "*");
       } else if (t == 68) {
-        window.parent.postMessage({ tools: "68" }, "*");
+        window.topU.postMessage({ tools: "68" }, "*");
       } else if (t == 57) {
-        // window.parent.postMessage({ tools: "57" }, "*");
-        window.parent.postMessage(
+        // window.topU.postMessage({ tools: "57" }, "*");
+        window.topU.postMessage(
           {
             tools: "57u",
             cid: this.id,
@@ -23534,21 +23542,21 @@ export default {
           "*"
         );
       } else if (t == 58) {
-        window.parent.postMessage({ tools: "58" }, "*");
+        window.topU.postMessage({ tools: "58" }, "*");
       } else if (t == 59) {
-        window.parent.postMessage({ tools: "59" }, "*");
+        window.topU.postMessage({ tools: "59" }, "*");
       } else if (t == 60) {
-        window.parent.postMessage({ tools: "60" }, "*");
+        window.topU.postMessage({ tools: "60" }, "*");
       } else if (t == 61) {
-        window.parent.postMessage({ tools: "61" }, "*");
+        window.topU.postMessage({ tools: "61" }, "*");
       } else if (t == 63) {
-        window.parent.postMessage({ tools: "63" }, "*");
+        window.topU.postMessage({ tools: "63" }, "*");
       } else if (t == 71) {
         // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
         //   this.$message.error("该工具不可使用");
         //   return
         // }
-        window.parent.postMessage({ tools: "71" }, "*");
+        window.topU.postMessage({ tools: "71" }, "*");
       } else if (t == 72) {
         let item = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].appJson
@@ -23556,7 +23564,7 @@ export default {
               .toolChoose[i].appJson
           : "";
           console.log('item.url',item.url);
-          
+
 
         if(!item || !item.url){
           this.$message.error("应用连接为空, 请到课程管理中添加");
@@ -23564,10 +23572,10 @@ export default {
         }
         if (!document.fullscreenElement) {
           this.enterFullScreen();
-        } 
-        this.$refs.appStoreC.getData(item.url,this.userid) 
+        }
+        this.$refs.appStoreC.getData(item.url,this.userid)
 
-        // window.parent.postMessage({ tools: "72", data: item }, "*");
+        // window.topU.postMessage({ tools: "72", data: item }, "*");
         // window.open(item.url, "_blank");
       } else if (t == 69) {
         if (this.worksStudent[i].length) {
@@ -23632,7 +23640,7 @@ export default {
         }
         this.selectPickStudent();
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -23706,7 +23714,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       } else if (t == 47) {
         this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].sentenceList
@@ -23994,7 +24002,7 @@ export default {
         this.isStar = false;
         this.studentEvalDialogVisibleTeacher = true;
       } else if (t == 3 || t == 1 || t == 7 || t == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: t + "teacher",
             cid: this.id,
@@ -24008,9 +24016,9 @@ export default {
       }else if (t == 72) {
         if (!document.fullscreenElement) {
           this.enterFullScreen();
-        } 
+        }
         let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
-        this.$refs.appStoreC.getData(url,this.sStudent.userid) 
+        this.$refs.appStoreC.getData(url,this.sStudent.userid)
       }
     },
     openCocoPi(tool, i, uid, uname) {
@@ -24019,7 +24027,7 @@ export default {
         student: uname
       };
       if (tool == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: tool + "teacher",
             cid: this.id,
@@ -25506,13 +25514,13 @@ export default {
       this.confirmOpenDig = false
       if (!document.fullscreenElement) {
         this.enterFullScreen();
-      } 
+      }
       if (this.timer2) {
         clearInterval(this.timer2);
         this.timer2 = null;
         console.log('清除定时器');
-        
-      } 
+
+      }
       this.timer2 = setInterval(()=> {
         this.getSplitScreenData();//获取分屏数据
       }, 1000);
@@ -25521,7 +25529,7 @@ export default {
     },
     getSplitScreenData() {
       // return;
-      // if (this.tType != 1) return; 
+      // if (this.tType != 1) return;
       let params = {
         cid: this.id
       };
@@ -25545,7 +25553,7 @@ export default {
             } else if (!this.splitScreenData.isOpen && data.isOpen) {
               this.confirmOpenDig = true
               this.confirmOpenDigData = data
-             
+
             } else if (this.splitScreenData.isOpen && !data.isOpen) {
               this.splitScreenData.isOpen = false;
               this.splitScreenData.userId = "";
@@ -25584,7 +25592,7 @@ export default {
                 .then(() => {
                   if (document.fullscreenElement) {
                       this.exitFullScreen();
-                  } 
+                  }
                 })
                 .catch(() => {});
             }
@@ -25603,7 +25611,7 @@ export default {
         if (behavior) {
           if (behavior.code === 99) {
             //初始化
-            this.fullDialogVisible = false;             
+            this.fullDialogVisible = false;
 						if(this.$refs.choseWorksDetailDialogRef.show){
 							this.$refs.choseWorksDetailDialogRef.close();
 						}
@@ -25615,7 +25623,7 @@ export default {
             //开启内容列表弹窗
             this.checkFileFull1(behavior.form.t, behavior.form.f);
             }else{
-              this.fullDialogVisible = false;         
+              this.fullDialogVisible = false;
             }
            if (behavior.code === 1) {
             //关于选择题的作业详细的操作
@@ -25688,10 +25696,10 @@ export default {
             if(JSON.stringify(oldData)!=JSON.stringify(newData)){
               // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
               this.getCourseDetail()
-              
+
             }
             this.setContent2(false)
-            
+
           }
         } else {
         }
@@ -26003,11 +26011,11 @@ export default {
       }
     });
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.setOperationTime();
     this.selectEva();
@@ -30545,6 +30553,6 @@ div::-webkit-scrollbar {
   display: -webkit-box;
   -webkit-box-orient: vertical;
   overflow: hidden;
-  text-overflow: ellipsis;           
+  text-overflow: ellipsis;
 }
 </style>

+ 41 - 41
src/components/easy3/studyStudent jiu.vue

@@ -12539,7 +12539,7 @@ export default {
   },
   methods: {
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     getUpdateMore(f, checkboxList, searchTN, index) {
       this.dialogVisibleMember = f;
@@ -15179,7 +15179,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
+      window.topU.postMessage({ allScreen: this.screenType + "NT" }, "*");
     },
     nextToolindex(type) {
       if (type == "last") {
@@ -16870,7 +16870,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1",
             cid: this.id,
@@ -16888,7 +16888,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t);
@@ -16897,7 +16897,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3",
             cid: this.id,
@@ -16941,7 +16941,7 @@ export default {
 
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -16967,7 +16967,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -16977,7 +16977,7 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t);
@@ -16986,7 +16986,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -17004,7 +17004,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -17045,7 +17045,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -17054,7 +17054,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -17063,7 +17063,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -17095,36 +17095,36 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 66) {
-        window.parent.postMessage({ tools: "66" }, "*");
+        window.topU.postMessage({ tools: "66" }, "*");
       } else if (t == 67) {
-        window.parent.postMessage({ tools: "67" }, "*");
+        window.topU.postMessage({ tools: "67" }, "*");
       } else if (t == 68) {
-        window.parent.postMessage({ tools: "68" }, "*");
+        window.topU.postMessage({ tools: "68" }, "*");
       } else if (t == 57) {
-        // window.parent.postMessage({ tools: "57" }, "*");
-        window.parent.postMessage(
+        // window.topU.postMessage({ tools: "57" }, "*");
+        window.topU.postMessage(
           {
             tools: "57u",
             cid: this.id,
@@ -17135,15 +17135,15 @@ export default {
           "*"
         );
       } else if (t == 58) {
-        window.parent.postMessage({ tools: "58" }, "*");
+        window.topU.postMessage({ tools: "58" }, "*");
       } else if (t == 59) {
-        window.parent.postMessage({ tools: "59" }, "*");
+        window.topU.postMessage({ tools: "59" }, "*");
       } else if (t == 60) {
-        window.parent.postMessage({ tools: "60" }, "*");
+        window.topU.postMessage({ tools: "60" }, "*");
       } else if (t == 61) {
-        window.parent.postMessage({ tools: "61" }, "*");
+        window.topU.postMessage({ tools: "61" }, "*");
       } else if (t == 63) {
-        window.parent.postMessage({ tools: "63" }, "*");
+        window.topU.postMessage({ tools: "63" }, "*");
       } else if (t == 65) {
         if (this.tType == 2) {
           this.$message.error("不支持学生使用");
@@ -17158,7 +17158,7 @@ export default {
         }
         this.selectPickStudent();
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -17235,7 +17235,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       } else if (t == 47) {
         this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].sentenceList
@@ -17521,7 +17521,7 @@ export default {
         this.isStar = false;
         this.studentEvalDialogVisibleTeacher = true;
       } else if (t == 3 || t == 1 || t == 7 || t == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: t + "teacher",
             cid: this.id,
@@ -17540,7 +17540,7 @@ export default {
         student: uname,
       };
       if (tool == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: tool + "teacher",
             cid: this.id,
@@ -18814,11 +18814,11 @@ export default {
       }
     });
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.setOperationTime();
     this.selectEva();

+ 73 - 65
src/components/easy3/studyStudent.vue

@@ -10420,7 +10420,7 @@
       <div style="height: 100%;position: relative;">
         <el-button
           v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
-          size="medium" 
+          size="medium"
           type="primary"
           @click="
             () => {
@@ -12404,7 +12404,7 @@
       ref="choseWorksDetailDialogRef"
       :worksStudentData="worksStudent"
       :noWorksSData="noWorksS"
-      :chapInfoListData="chapInfoList" 
+      :chapInfoListData="chapInfoList"
       :courseType="courseType"
       :taskCount="taskCount"
       :tType="tType"
@@ -12438,15 +12438,15 @@
         <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
         <div>要认真听讲哦~</div>
       </div>
-      
+
 
       <div style="text-align: center;">
         <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
       </div>
-   
+
     </el-dialog>
 
-    <appStoreC ref="appStoreC" 
+    <appStoreC ref="appStoreC"
       :sStudent="sStudent"
       :courseType="courseType"
       :taskCount="taskCount"
@@ -13281,7 +13281,7 @@ export default {
             let scrollBody = document.querySelector('.body_student').parentElement
             scrollBody.scrollTop = scrollBody.scrollTop - 100
         }, 0);
-       
+
       }
       this.navId = ""
 			let flag = this.courseType == i;
@@ -13369,7 +13369,7 @@ export default {
       this.$forceUpdate();
     },
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     getUpdateMore(f, checkboxList, searchTN, index) {
       this.dialogVisibleMember = f;
@@ -14673,7 +14673,9 @@ export default {
             });
             this.selectSWorks();
             this.selectStudent();
+            if(this.tType!=0){
 						this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
+            }
           })
           .catch((err) => {
             this.$message.error("点赞失败");
@@ -14866,7 +14868,9 @@ export default {
                 this.commentText = "";
                 this.selectSWorks();
                 this.selectStudent();
+                if(this.tType!=0){
 								this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
+                }
               })
               .catch((err) => {
                 this.$message.error("评论失败");
@@ -14905,7 +14909,9 @@ export default {
           this.dialogVisibleScore = false;
           this.selectSWorks();
           this.selectStudent();
+          if(this.tType!=0){
 					this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
+          }
         })
         .catch((err) => {
           this.$message.error("评分失败");
@@ -16681,7 +16687,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType }, "*");
+      window.topU.postMessage({ allScreen: this.screenType }, "*");
     },
     nextOrpreSteps(t) {
       if (this.IsFollow && this.tType == 2) {
@@ -16854,7 +16860,7 @@ export default {
         this.$message.error("已经开启跟随模式,请认真跟堂听讲");
         return;
       }
-      if (this.IsLookOpen && 
+      if (this.IsLookOpen &&
         this.courseDetail.userid != this.userid &&
         this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
         if (
@@ -17455,7 +17461,7 @@ export default {
                 }
               })
             }
-            this.vChapterData = _chapterData;         
+            this.vChapterData = _chapterData;
             this.$forceUpdate();
           }
           //  else {
@@ -17655,7 +17661,9 @@ export default {
           this.pzConText = "";
           this.addPzDialog = false;
           this.selectPz();
+          if(this.tType!=0){
 					this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
+          }
         })
         .catch((err) => {
           this.$message.error("添加失败");
@@ -17926,10 +17934,10 @@ export default {
           this.IsFollow = res.data[0][0].follow == 1 ? false : true;
           if (!this.IsLookOpen) {
             this.setNavList();
-          } 
-          
+          }
+
             this.getCourseState(1);
-          
+
 
 
 					if ((this.IsFollow && this.tType == 2)) {
@@ -18689,7 +18697,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1",
             cid: this.id,
@@ -18707,7 +18715,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t);
@@ -18716,7 +18724,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3",
             cid: this.id,
@@ -18765,7 +18773,7 @@ export default {
         }
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -18791,7 +18799,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -18801,7 +18809,7 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t);
@@ -18810,7 +18818,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -18828,7 +18836,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -18873,7 +18881,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -18882,7 +18890,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -18891,7 +18899,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -18923,36 +18931,36 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 66) {
-        window.parent.postMessage({ tools: "66" }, "*");
+        window.topU.postMessage({ tools: "66" }, "*");
       } else if (t == 67) {
-        window.parent.postMessage({ tools: "67" }, "*");
+        window.topU.postMessage({ tools: "67" }, "*");
       } else if (t == 68) {
-        window.parent.postMessage({ tools: "68" }, "*");
+        window.topU.postMessage({ tools: "68" }, "*");
       } else if (t == 57) {
-        // window.parent.postMessage({ tools: "57" }, "*");
-        window.parent.postMessage(
+        // window.topU.postMessage({ tools: "57" }, "*");
+        window.topU.postMessage(
           {
             tools: "57u",
             cid: this.id,
@@ -18963,21 +18971,21 @@ export default {
           "*"
         );
       } else if (t == 58) {
-        window.parent.postMessage({ tools: "58" }, "*");
+        window.topU.postMessage({ tools: "58" }, "*");
       } else if (t == 59) {
-        window.parent.postMessage({ tools: "59" }, "*");
+        window.topU.postMessage({ tools: "59" }, "*");
       } else if (t == 60) {
-        window.parent.postMessage({ tools: "60" }, "*");
+        window.topU.postMessage({ tools: "60" }, "*");
       } else if (t == 61) {
-        window.parent.postMessage({ tools: "61" }, "*");
+        window.topU.postMessage({ tools: "61" }, "*");
       } else if (t == 63) {
-        window.parent.postMessage({ tools: "63" }, "*");
+        window.topU.postMessage({ tools: "63" }, "*");
       } else if (t == 71) {
         // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
         //   this.$message.error("该工具不可使用");
         //   return
         // }
-        window.parent.postMessage({ tools: "71" }, "*");
+        window.topU.postMessage({ tools: "71" }, "*");
       } else if (t == 72) {
         let item = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].appJson
@@ -18990,11 +18998,11 @@ export default {
         }
         if (!document.fullscreenElement) {
           this.enterFullScreen();
-        } 
-        this.$refs.appStoreC.getData(item.url,this.userid) 
+        }
+        this.$refs.appStoreC.getData(item.url,this.userid)
 
 
-        // window.parent.postMessage({ tools: "72", data: item }, "*");
+        // window.topU.postMessage({ tools: "72", data: item }, "*");
         // window.open(item.url, "_blank");
       } else if (t == 69) {
         if (this.worksStudent[i].length) {
@@ -19054,7 +19062,7 @@ export default {
         }
         this.selectPickStudent();
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -19131,7 +19139,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       } else if (t == 47) {
         this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].sentenceList
@@ -19422,7 +19430,7 @@ export default {
         this.isStar = false;
         this.studentEvalDialogVisibleTeacher = true;
       } else if (t == 3 || t == 1 || t == 7 || t == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: t + "teacher",
             cid: this.id,
@@ -19436,9 +19444,9 @@ export default {
       }else if (t == 72) {
         if (!document.fullscreenElement) {
           this.enterFullScreen();
-        } 
+        }
         let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
-        this.$refs.appStoreC.getData(url,this.sStudent.userid) 
+        this.$refs.appStoreC.getData(url,this.sStudent.userid)
       }
     },
     openCocoPi(tool, i, uid, uname) {
@@ -19447,7 +19455,7 @@ export default {
         student: uname,
       };
       if (tool == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: tool + "teacher",
             cid: this.id,
@@ -20886,11 +20894,11 @@ export default {
       this.confirmOpenDig = false
       if (!document.fullscreenElement) {
         this.enterFullScreen();
-      } 
+      }
       if (this.timer2) {
         clearInterval(this.timer2);
         this.timer2 = null;
-      } 
+      }
       this.timer2 = setInterval(()=> {
         this.getSplitScreenData();//获取分屏数据
       }, 1000);
@@ -20961,7 +20969,7 @@ export default {
                 .then(() => {
                   if (document.fullscreenElement) {
                       this.exitFullScreen();
-                  } 
+                  }
                 })
                 .catch(() => {});
             }
@@ -20980,7 +20988,7 @@ export default {
         if (behavior) {
           if (behavior.code === 99) {
             //初始化
-            this.fullDialogVisible = false;             
+            this.fullDialogVisible = false;
 						if(this.$refs.choseWorksDetailDialogRef.show){
 							this.$refs.choseWorksDetailDialogRef.close();
 						}
@@ -20992,7 +21000,7 @@ export default {
             //开启内容列表弹窗
             this.checkFileFull1(behavior.form.t, behavior.form.f);
             }else{
-              this.fullDialogVisible = false;         
+              this.fullDialogVisible = false;
             }
            if (behavior.code === 1) {
             //关于选择题的作业详细的操作
@@ -21067,7 +21075,7 @@ export default {
             }
             this.setContent2(false)
 
-            
+
           }
         } else {
         }
@@ -21356,11 +21364,11 @@ export default {
       }
     });
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.setOperationTime();
     this.selectEva();
@@ -25831,6 +25839,6 @@ div::-webkit-scrollbar {
 
   -webkit-box-orient: vertical;
   overflow: hidden;
-  text-overflow: ellipsis;           
+  text-overflow: ellipsis;
 }
 </style>

+ 4 - 4
src/components/liveProjectDetail(湖心亭看雪).vue

@@ -940,7 +940,7 @@ export default {
       }
     },
     jump(cid) {
-      window.parent.postMessage({ cid: cid, type: "1" }, "*");
+      window.topU.postMessage({ cid: cid, type: "1" }, "*");
     },
     handleCurrentChange(val) {
       // console.log(`当前页: ${val}`);
@@ -986,11 +986,11 @@ export default {
     // },
     addTool(t) {
       if (t == 1) {
-        window.parent.postMessage({ tools: "1" }, "*");
+        window.topU.postMessage({ tools: "1" }, "*");
       } else if (t == 3) {
-        window.parent.postMessage({ tools: "3" }, "*");
+        window.topU.postMessage({ tools: "3" }, "*");
       } else if (t == 7) {
-        window.parent.postMessage({ tools: "7" }, "*");
+        window.topU.postMessage({ tools: "7" }, "*");
       }
     },
     answerQue() {

+ 6 - 6
src/components/liveProjectDetail.vue

@@ -1119,7 +1119,7 @@ export default {
       }
     },
     jump(cid) {
-      window.parent.postMessage({ cid: cid, type: "1" }, "*");
+      window.topU.postMessage({ cid: cid, type: "1" }, "*");
     },
     handleCurrentChange(val) {
       // console.log(`当前页: ${val}`);
@@ -1165,11 +1165,11 @@ export default {
     // },
     addTool(t) {
       if (t == 1) {
-        window.parent.postMessage({ tools: "1" }, "*");
+        window.topU.postMessage({ tools: "1" }, "*");
       } else if (t == 3) {
-        window.parent.postMessage({ tools: "3" }, "*");
+        window.topU.postMessage({ tools: "3" }, "*");
       } else if (t == 7) {
-        window.parent.postMessage({ tools: "7" }, "*");
+        window.topU.postMessage({ tools: "7" }, "*");
       }
     },
     answerQue() {
@@ -1925,7 +1925,7 @@ export default {
         {
           type: "getRealTimeClass",
           docid: this.cid,
-          pageid: window.parent.US.pageId,
+          pageid: window.topU.US.pageId,
           userid: this.userid,
           post: "1",
         },
@@ -1995,7 +1995,7 @@ export default {
               type: type, //类型
               content: content, //内容
               docId: id, //文档id
-              pageId: top.US.pageId, //当前页面id
+              pageId: window.topU.US.pageId, //当前页面id
             },
           },
         ],

+ 6 - 6
src/components/liveProjectDetailKH.vue

@@ -1119,7 +1119,7 @@ export default {
       }
     },
     jump(cid) {
-      window.parent.postMessage({ cid: cid, type: "1" }, "*");
+      window.topU.postMessage({ cid: cid, type: "1" }, "*");
     },
     handleCurrentChange(val) {
       // console.log(`当前页: ${val}`);
@@ -1165,11 +1165,11 @@ export default {
     // },
     addTool(t) {
       if (t == 1) {
-        window.parent.postMessage({ tools: "1" }, "*");
+        window.topU.postMessage({ tools: "1" }, "*");
       } else if (t == 3) {
-        window.parent.postMessage({ tools: "3" }, "*");
+        window.topU.postMessage({ tools: "3" }, "*");
       } else if (t == 7) {
-        window.parent.postMessage({ tools: "7" }, "*");
+        window.topU.postMessage({ tools: "7" }, "*");
       }
     },
     answerQue() {
@@ -1918,7 +1918,7 @@ export default {
         {
           type: "getRealTimeClass",
           docid: this.cid,
-          pageid: window.parent.US.pageId,
+          pageid: window.topU.US.pageId,
           userid: this.userid,
           post: "1",
         },
@@ -1988,7 +1988,7 @@ export default {
               type: type, //类型
               content: content, //内容
               docId: id, //文档id
-              pageId: top.US.pageId, //当前页面id
+              pageId: window.topU.US.pageId, //当前页面id
             },
           },
         ],

+ 36 - 36
src/components/noTerminal/studyStudent.vue

@@ -5455,7 +5455,7 @@ export default {
   },
   methods: {
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     previewImg(url) {
       this.$hevueImgPreview(url);
@@ -7945,7 +7945,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
+      window.topU.postMessage({ allScreen: this.screenType + "NT" }, "*");
     },
     nextToolindex(type) {
       if (type == 'last') {
@@ -9578,7 +9578,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1",
             cid: this.id,
@@ -9596,7 +9596,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t);
@@ -9605,7 +9605,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3",
             cid: this.id,
@@ -9649,7 +9649,7 @@ export default {
 
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -9675,7 +9675,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -9685,7 +9685,7 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t);
@@ -9694,7 +9694,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -9712,7 +9712,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -9748,7 +9748,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -9757,7 +9757,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -9766,7 +9766,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -9798,41 +9798,41 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 57) {
-        window.parent.postMessage({ tools: "57" }, "*");
+        window.topU.postMessage({ tools: "57" }, "*");
       } else if (t == 58) {
-        window.parent.postMessage({ tools: "58" }, "*");
+        window.topU.postMessage({ tools: "58" }, "*");
       } else if (t == 59) {
-        window.parent.postMessage({ tools: "59" }, "*");
+        window.topU.postMessage({ tools: "59" }, "*");
       } else if (t == 60) {
-        window.parent.postMessage({ tools: "60" }, "*");
+        window.topU.postMessage({ tools: "60" }, "*");
       } else if (t == 61) {
-        window.parent.postMessage({ tools: "61" }, "*");
+        window.topU.postMessage({ tools: "61" }, "*");
       } else if (t == 63) {
-        window.parent.postMessage({ tools: "63" }, "*");
+        window.topU.postMessage({ tools: "63" }, "*");
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -9909,7 +9909,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       } else if (t == 47) {
         this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].sentenceList
@@ -10172,7 +10172,7 @@ export default {
         this.isStar = false;
         this.studentEvalDialogVisibleTeacher = true;
       } else if (t == 3 || t == 1 || t == 7) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: t + 'teacher',
             cid: this.id,
@@ -10966,11 +10966,11 @@ export default {
   },
   mounted() {
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.setOperationTime();
     this.selectEva();

+ 1 - 1
src/components/scoreList/commpont/course.vue

@@ -154,7 +154,7 @@ export default {
             }, 500);
         },
         openCourse() {
-            top.postMessage({ cid: this.checkJson.answer2, screenType: "3" }, "*");
+            window.topU.postMessage({ cid: this.checkJson.answer2, screenType: "3" }, "*");
         },
         getCourse(id) {
             this.isloading = true

+ 29 - 29
src/components/student/studyStudent.vue

@@ -2204,7 +2204,7 @@ export default {
   },
   methods: {
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     previewImg(url) {
       this.$hevueImgPreview(url);
@@ -2502,7 +2502,7 @@ export default {
         });
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType + "s" }, "*");
+      window.topU.postMessage({ allScreen: this.screenType + "s" }, "*");
     },
     refreshCourse() {
       this.navList = [];
@@ -3271,7 +3271,7 @@ export default {
       // this.taskCount = index;
       this.toolindex = i;
       if (t == 1) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1s",
             cid: this.id,
@@ -3289,9 +3289,9 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3s",
             cid: this.id,
@@ -3332,7 +3332,7 @@ export default {
         }
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -3358,7 +3358,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -3368,9 +3368,9 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6s",
             cid: this.id,
@@ -3388,7 +3388,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -3415,7 +3415,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -3424,7 +3424,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -3433,7 +3433,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -3460,29 +3460,29 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -3559,7 +3559,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       }
     },
     addCourseState(type) {
@@ -4124,11 +4124,11 @@ export default {
   },
   mounted() {
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 + "s" }, "*");
+      window.topU.postMessage({ allScreen: 4 + "s" }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     if (this.tType == 5) {
       this.psDialog = true;

+ 29 - 29
src/components/student/studyStudentJiu.vue

@@ -1305,7 +1305,7 @@ export default {
   },
   methods: {
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     previewImg(url) {
       this.$hevueImgPreview(url);
@@ -1601,7 +1601,7 @@ export default {
         });
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType + "s" }, "*");
+      window.topU.postMessage({ allScreen: this.screenType + "s" }, "*");
     },
     refreshCourse(){
       this.navList = [];
@@ -2331,7 +2331,7 @@ export default {
       // this.taskCount = index;
       this.toolindex = i;
       if (t == 1) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1s",
             cid: this.id,
@@ -2349,9 +2349,9 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3s",
             cid: this.id,
@@ -2392,7 +2392,7 @@ export default {
         }
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -2418,7 +2418,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -2428,9 +2428,9 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6s",
             cid: this.id,
@@ -2448,7 +2448,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -2475,7 +2475,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -2484,7 +2484,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -2493,7 +2493,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -2520,29 +2520,29 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -2619,7 +2619,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       }
     },
     addCourseState(type) {
@@ -3130,11 +3130,11 @@ export default {
   },
   mounted() {
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 + "s" }, "*");
+      window.topU.postMessage({ allScreen: 4 + "s" }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     if (this.tType == 5) {
       this.psDialog = true;

+ 29 - 29
src/components/studio/studyStudent.vue

@@ -1291,7 +1291,7 @@ export default {
   },
   methods: {
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     previewImg(url) {
       this.$hevueImgPreview(url);
@@ -1587,7 +1587,7 @@ export default {
         });
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType+"studio" }, "*");
+      window.topU.postMessage({ allScreen: this.screenType+"studio" }, "*");
     },
     refreshCourse(){
       this.navList = [];
@@ -2308,7 +2308,7 @@ export default {
       // this.taskCount = index;
       this.toolindex = i;
       if (t == 1) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1s",
             cid: this.id,
@@ -2326,9 +2326,9 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3s",
             cid: this.id,
@@ -2369,7 +2369,7 @@ export default {
         }
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -2395,7 +2395,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -2405,9 +2405,9 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6s",
             cid: this.id,
@@ -2425,7 +2425,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -2452,7 +2452,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -2461,7 +2461,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -2470,7 +2470,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -2497,29 +2497,29 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -2596,7 +2596,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       }
     },
     addCourseState(type) {
@@ -2932,11 +2932,11 @@ export default {
   },
   mounted() {
     // if (this.screenType == 2) {
-    //   window.parent.postMessage({ allScreen: 4 + "s" }, "*");
+    //   window.topU.postMessage({ allScreen: 4 + "s" }, "*");
     // } else if (this.screenType == 3) {
-    //   window.parent.postMessage({ allScreen: 5 }, "*");
+    //   window.topU.postMessage({ allScreen: 5 }, "*");
     // } else if (this.screenType == 1) {
-    //   window.parent.postMessage({ allScreen: 6 }, "*");
+    //   window.topU.postMessage({ allScreen: 6 }, "*");
     // }
     if (this.tType == 5) {
       this.psDialog = true;

+ 20 - 20
src/components/study.vue

@@ -4443,7 +4443,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType }, "*");
+      window.topU.postMessage({ allScreen: this.screenType }, "*");
     },
     nextOrpreSteps(t) {
       // this.showType = 0;
@@ -5258,7 +5258,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t, jdIndex);
         }
-        // window.parent.postMessage(
+        // window.topU.postMessage(
         //   {
         //     tools: "1",
         //     cid: this.id,
@@ -5276,7 +5276,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t, jdIndex);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t, jdIndex);
@@ -5285,7 +5285,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t, jdIndex, jdIndex);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3",
             cid: this.id,
@@ -5326,7 +5326,7 @@ export default {
         }
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t, jdIndex);
@@ -5336,7 +5336,7 @@ export default {
           this.toolsCount(a, t, jdIndex);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t, jdIndex);
@@ -5345,7 +5345,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t, jdIndex);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -5363,7 +5363,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t, jdIndex);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -5390,7 +5390,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t, jdIndex);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t, jdIndex);
@@ -5399,7 +5399,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t, jdIndex);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t, jdIndex);
@@ -5408,7 +5408,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t, jdIndex);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t, jdIndex);
@@ -5435,15 +5435,15 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -5529,7 +5529,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       }
     },
     addSelectAnswer() {
@@ -5721,11 +5721,11 @@ export default {
   },
   created() {
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.selectEva();
     this.getCourseDetail();

+ 58 - 52
src/components/studyStudent.vue

@@ -12379,7 +12379,7 @@
 
     </el-dialog>
 
-    <appStoreC ref="appStoreC" 
+    <appStoreC ref="appStoreC"
       :sStudent="sStudent"
       :courseType="courseType"
       :taskCount="taskCount"
@@ -13340,7 +13340,7 @@ export default {
       this.$forceUpdate();
     },
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     getUpdateMore(f, checkboxList, searchTN, index) {
       this.dialogVisibleMember = f;
@@ -14643,7 +14643,9 @@ export default {
             });
             this.selectSWorks();
             this.selectStudent();
+            if(this.tType!=0){
 						this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
+            }
           })
           .catch((err) => {
             this.$message.error("点赞失败");
@@ -14836,7 +14838,9 @@ export default {
                 this.commentText = "";
                 this.selectSWorks();
                 this.selectStudent();
-								this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
+                if(this.tType!=0){
+                  this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
+                }
               })
               .catch((err) => {
                 this.$message.error("评论失败");
@@ -16657,7 +16661,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType }, "*");
+      window.topU.postMessage({ allScreen: this.screenType }, "*");
     },
     nextOrpreSteps(t) {
       if (this.IsFollow && this.tType == 2) {
@@ -17639,7 +17643,9 @@ export default {
           this.pzConText = "";
           this.addPzDialog = false;
           this.selectPz();
+          if(this.tType!=0){
 					this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
+          }
         })
         .catch((err) => {
           this.$message.error("添加失败");
@@ -18338,7 +18344,7 @@ export default {
         },
       ];
       console.log('params',params);
-      
+
       this.ajax
         .post(this.$store.state.api + "addCourseWorks", params)
         .then((res) => {
@@ -18674,7 +18680,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1",
             cid: this.id,
@@ -18692,7 +18698,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t);
@@ -18701,7 +18707,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3",
             cid: this.id,
@@ -18750,7 +18756,7 @@ export default {
         }
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -18776,7 +18782,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -18786,7 +18792,7 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t);
@@ -18795,7 +18801,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -18813,7 +18819,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -18858,7 +18864,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -18867,7 +18873,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -18876,7 +18882,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -18908,36 +18914,36 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 66) {
-        window.parent.postMessage({ tools: "66" }, "*");
+        window.topU.postMessage({ tools: "66" }, "*");
       } else if (t == 67) {
-        window.parent.postMessage({ tools: "67" }, "*");
+        window.topU.postMessage({ tools: "67" }, "*");
       } else if (t == 68) {
-        window.parent.postMessage({ tools: "68" }, "*");
+        window.topU.postMessage({ tools: "68" }, "*");
       } else if (t == 57) {
-        // window.parent.postMessage({ tools: "57" }, "*");
-        window.parent.postMessage(
+        // window.topU.postMessage({ tools: "57" }, "*");
+        window.topU.postMessage(
           {
             tools: "57u",
             cid: this.id,
@@ -18948,21 +18954,21 @@ export default {
           "*"
         );
       } else if (t == 58) {
-        window.parent.postMessage({ tools: "58" }, "*");
+        window.topU.postMessage({ tools: "58" }, "*");
       } else if (t == 59) {
-        window.parent.postMessage({ tools: "59" }, "*");
+        window.topU.postMessage({ tools: "59" }, "*");
       } else if (t == 60) {
-        window.parent.postMessage({ tools: "60" }, "*");
+        window.topU.postMessage({ tools: "60" }, "*");
       } else if (t == 61) {
-        window.parent.postMessage({ tools: "61" }, "*");
+        window.topU.postMessage({ tools: "61" }, "*");
       } else if (t == 63) {
-        window.parent.postMessage({ tools: "63" }, "*");
+        window.topU.postMessage({ tools: "63" }, "*");
       } else if (t == 71) {
         // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
         //   this.$message.error("该工具不可使用");
         //   return
         // }
-        window.parent.postMessage({ tools: "71" }, "*");
+        window.topU.postMessage({ tools: "71" }, "*");
       } else if (t == 72) {
         let item = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].appJson
@@ -18975,11 +18981,11 @@ export default {
         }
         if (!document.fullscreenElement) {
           this.enterFullScreen();
-        } 
-        this.$refs.appStoreC.getData(item.url,this.userid) 
+        }
+        this.$refs.appStoreC.getData(item.url,this.userid)
 
         // window.open(item.url, "_blank");
-        // window.parent.postMessage({ tools: "72", data: item }, "*");
+        // window.topU.postMessage({ tools: "72", data: item }, "*");
       } else if (t == 69) {
         if (this.worksStudent[i].length) {
           for (var k = 0; k < this.worksStudent[i].length; k++) {
@@ -19038,7 +19044,7 @@ export default {
         }
         this.selectPickStudent();
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -19115,7 +19121,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       } else if (t == 47) {
         this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].sentenceList
@@ -19406,7 +19412,7 @@ export default {
         this.isStar = false;
         this.studentEvalDialogVisibleTeacher = true;
       } else if (t == 3 || t == 1 || t == 7 || t == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: t + "teacher",
             cid: this.id,
@@ -19420,9 +19426,9 @@ export default {
       }else if (t == 72) {
         if (!document.fullscreenElement) {
           this.enterFullScreen();
-        } 
+        }
         let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
-        this.$refs.appStoreC.getData(url,this.sStudent.userid) 
+        this.$refs.appStoreC.getData(url,this.sStudent.userid)
       }
     },
     openCocoPi(tool, i, uid, uname) {
@@ -19431,7 +19437,7 @@ export default {
         student: uname,
       };
       if (tool == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: tool + "teacher",
             cid: this.id,
@@ -20964,7 +20970,7 @@ export default {
 
         if (behavior) {
           // console.log('behavior',behavior);
-          
+
           // this.toolindex = behavior.form.toolType
           // 初始状态
           if (behavior.code === 99) {
@@ -21344,11 +21350,11 @@ export default {
       }
     });
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.setOperationTime();
     this.selectEva();
@@ -25846,6 +25852,6 @@ div::-webkit-scrollbar {
 
   -webkit-box-orient: vertical;
   overflow: hidden;
-  text-overflow: ellipsis;           
+  text-overflow: ellipsis;
 }
 </style>

+ 42 - 42
src/components/studyStudentJiu.vue

@@ -12636,7 +12636,7 @@ export default {
       this.$forceUpdate();
     },
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     getUpdateMore(f, checkboxList, searchTN, index) {
       this.dialogVisibleMember = f;
@@ -15835,7 +15835,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType }, "*");
+      window.topU.postMessage({ allScreen: this.screenType }, "*");
     },
     nextOrpreSteps(t) {
       if (this.IsFollow && this.tType == 2) {
@@ -17755,7 +17755,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1",
             cid: this.id,
@@ -17773,7 +17773,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t);
@@ -17782,7 +17782,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3",
             cid: this.id,
@@ -17831,7 +17831,7 @@ export default {
         }
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -17857,7 +17857,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -17867,7 +17867,7 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t);
@@ -17876,7 +17876,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -17894,7 +17894,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -17939,7 +17939,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -17948,7 +17948,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -17957,7 +17957,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -17989,36 +17989,36 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 66) {
-        window.parent.postMessage({ tools: "66" }, "*");
+        window.topU.postMessage({ tools: "66" }, "*");
       } else if (t == 67) {
-        window.parent.postMessage({ tools: "67" }, "*");
+        window.topU.postMessage({ tools: "67" }, "*");
       } else if (t == 68) {
-        window.parent.postMessage({ tools: "68" }, "*");
+        window.topU.postMessage({ tools: "68" }, "*");
       } else if (t == 57) {
-        // window.parent.postMessage({ tools: "57" }, "*");
-        window.parent.postMessage(
+        // window.topU.postMessage({ tools: "57" }, "*");
+        window.topU.postMessage(
           {
             tools: "57u",
             cid: this.id,
@@ -18029,17 +18029,17 @@ export default {
           "*"
         );
       } else if (t == 58) {
-        window.parent.postMessage({ tools: "58" }, "*");
+        window.topU.postMessage({ tools: "58" }, "*");
       } else if (t == 59) {
-        window.parent.postMessage({ tools: "59" }, "*");
+        window.topU.postMessage({ tools: "59" }, "*");
       } else if (t == 60) {
-        window.parent.postMessage({ tools: "60" }, "*");
+        window.topU.postMessage({ tools: "60" }, "*");
       } else if (t == 61) {
-        window.parent.postMessage({ tools: "61" }, "*");
+        window.topU.postMessage({ tools: "61" }, "*");
       } else if (t == 63) {
-        window.parent.postMessage({ tools: "63" }, "*");
+        window.topU.postMessage({ tools: "63" }, "*");
       } else if (t == 71) {
-        window.parent.postMessage({ tools: "71" }, "*");
+        window.topU.postMessage({ tools: "71" }, "*");
       } else if (t == 69) {
         if (this.worksStudent[i].length) {
           for (var k = 0; k < this.worksStudent[i].length; k++) {
@@ -18098,7 +18098,7 @@ export default {
         }
         this.selectPickStudent();
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -18175,7 +18175,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       } else if (t == 47) {
         this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].sentenceList
@@ -18465,7 +18465,7 @@ export default {
         this.isStar = false;
         this.studentEvalDialogVisibleTeacher = true;
       } else if (t == 3 || t == 1 || t == 7 || t == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: t + "teacher",
             cid: this.id,
@@ -18484,7 +18484,7 @@ export default {
         student: uname,
       };
       if (tool == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: tool + "teacher",
             cid: this.id,
@@ -19953,11 +19953,11 @@ export default {
       }
     });
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.setOperationTime();
     this.selectEva();

+ 1 - 1
src/components/studySutdentClass/commpont/markDialog.vue

@@ -1410,7 +1410,7 @@ export default {
         student: uname
       };
       if (tool == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: tool + "teacher",
             cid: this.cid,

+ 41 - 41
src/components/studySutdentClass/studyStudent jiu.vue

@@ -12539,7 +12539,7 @@ export default {
   },
   methods: {
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     getUpdateMore(f, checkboxList, searchTN, index) {
       this.dialogVisibleMember = f;
@@ -15179,7 +15179,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
+      window.topU.postMessage({ allScreen: this.screenType + "NT" }, "*");
     },
     nextToolindex(type) {
       if (type == "last") {
@@ -16870,7 +16870,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1",
             cid: this.id,
@@ -16888,7 +16888,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t);
@@ -16897,7 +16897,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3",
             cid: this.id,
@@ -16941,7 +16941,7 @@ export default {
 
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -16967,7 +16967,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -16977,7 +16977,7 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t);
@@ -16986,7 +16986,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -17004,7 +17004,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -17045,7 +17045,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -17054,7 +17054,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -17063,7 +17063,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -17095,36 +17095,36 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 66) {
-        window.parent.postMessage({ tools: "66" }, "*");
+        window.topU.postMessage({ tools: "66" }, "*");
       } else if (t == 67) {
-        window.parent.postMessage({ tools: "67" }, "*");
+        window.topU.postMessage({ tools: "67" }, "*");
       } else if (t == 68) {
-        window.parent.postMessage({ tools: "68" }, "*");
+        window.topU.postMessage({ tools: "68" }, "*");
       } else if (t == 57) {
-        // window.parent.postMessage({ tools: "57" }, "*");
-        window.parent.postMessage(
+        // window.topU.postMessage({ tools: "57" }, "*");
+        window.topU.postMessage(
           {
             tools: "57u",
             cid: this.id,
@@ -17135,15 +17135,15 @@ export default {
           "*"
         );
       } else if (t == 58) {
-        window.parent.postMessage({ tools: "58" }, "*");
+        window.topU.postMessage({ tools: "58" }, "*");
       } else if (t == 59) {
-        window.parent.postMessage({ tools: "59" }, "*");
+        window.topU.postMessage({ tools: "59" }, "*");
       } else if (t == 60) {
-        window.parent.postMessage({ tools: "60" }, "*");
+        window.topU.postMessage({ tools: "60" }, "*");
       } else if (t == 61) {
-        window.parent.postMessage({ tools: "61" }, "*");
+        window.topU.postMessage({ tools: "61" }, "*");
       } else if (t == 63) {
-        window.parent.postMessage({ tools: "63" }, "*");
+        window.topU.postMessage({ tools: "63" }, "*");
       } else if (t == 65) {
         if (this.tType == 2) {
           this.$message.error("不支持学生使用");
@@ -17158,7 +17158,7 @@ export default {
         }
         this.selectPickStudent();
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -17235,7 +17235,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       } else if (t == 47) {
         this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].sentenceList
@@ -17521,7 +17521,7 @@ export default {
         this.isStar = false;
         this.studentEvalDialogVisibleTeacher = true;
       } else if (t == 3 || t == 1 || t == 7 || t == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: t + "teacher",
             cid: this.id,
@@ -17540,7 +17540,7 @@ export default {
         student: uname,
       };
       if (tool == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: tool + "teacher",
             cid: this.id,
@@ -18814,11 +18814,11 @@ export default {
       }
     });
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.setOperationTime();
     this.selectEva();

+ 120 - 112
src/components/studySutdentClass/studyStudent.vue

@@ -1082,7 +1082,7 @@
                             <!-- &&worksStudent[toolIndex].length > 0 -->
                             <div
                               class="upload_toolBtn"
-                             
+
                               @click="
                                 openChoseWorksDetailDialog(
                                   tooC,
@@ -4999,7 +4999,7 @@
                                     w.ateacher == userid,
                                 }"
                               >
-                                {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}    
+                                {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
                             </div> -->
 
                             <!-- @show="handleShow(toolIndex,wIndex)"
@@ -10092,7 +10092,7 @@
                                     w.ateacher == userid,
                                 }"
                               >
-                                {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}    
+                                {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
                             </div> -->
 
                             <!-- @show="handleShow(toolIndex,wIndex)"
@@ -11521,7 +11521,7 @@
                     margin-top: 20px;
                     box-shadow: 3px 1px 15px 3px #e0e0e0;
                   "
-                  :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}" 
+                  :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
                 >
                   <div class="e_add_top">
                     <div class="e_add_title" style="width: 100%">
@@ -13602,7 +13602,7 @@
       <div style="height: 100%;position: relative;">
         <el-button
           v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
-          size="medium" 
+          size="medium"
           type="primary"
           @click="
             () => {
@@ -15562,24 +15562,24 @@
         </div>
       </div>
     </el-dialog>
-    <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog' 
-    :englishVoiceJson='englishVoiceJson' 
-    :userid="userid" 
-    :id="id" 
-    :courseType="courseType" 
-    :taskCount="taskCount" 
-    :toolindex="toolindex" 
-    @selectSWorks="selectSWorks" 
+    <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
+    :englishVoiceJson='englishVoiceJson'
+    :userid="userid"
+    :id="id"
+    :courseType="courseType"
+    :taskCount="taskCount"
+    :toolindex="toolindex"
+    @selectSWorks="selectSWorks"
     @selectStudent="selectStudent"
     :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
-    <checkEnglishVoice :englishVoiceJson='englishVoiceJson'  
-    :userid="userid" 
+    <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
+    :userid="userid"
     :dialogVisibleENScore.sync='dialogVisibleENScore'
-    :commentDetail="commentDetail" 
-    :courseDetail="courseDetail" 
+    :commentDetail="commentDetail"
+    :courseDetail="courseDetail"
     :wScore="wScore"
     :scoreDetail="scoreDetail"
-    @selectSWorks="selectSWorks" 
+    @selectSWorks="selectSWorks"
     @selectStudent="selectStudent"></checkEnglishVoice>
 
 
@@ -15685,14 +15685,14 @@
         <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
         <div>要认真听讲哦~</div>
       </div>
-      
+
 
       <div style="text-align: center;">
         <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
       </div>
 
     </el-dialog>
-    <appStoreC ref="appStoreC" 
+    <appStoreC ref="appStoreC"
         :sStudent="sStudent"
         :courseType="courseType"
         :taskCount="taskCount"
@@ -15700,7 +15700,7 @@
         @selectSWorks="selectSWorks"
         @selectStudent="selectStudent"
       ></appStoreC>
-      
+
       <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
   </div>
 </template>
@@ -15786,7 +15786,7 @@ const getFile = (url) => {
           resolve({ data: 1 });
         }else {
           resolve({ data: data.Body });
-          console.log(data); 
+          console.log(data);
         }          // sxuccessful response
 
       });
@@ -16203,7 +16203,7 @@ export default {
       englishVoiceJsonWork:[],
 			scoreList:{
 				listdata:[],
-				isScoreList:[],	
+				isScoreList:[],
 			},
 			classRoomHelperWidth: '85px',
 			orgArray:[],
@@ -16218,7 +16218,7 @@ export default {
       },
       confirmOpenDig:false,
       confirmOpenDigData:'',
-      
+
       refreshKey: 0,
       AIloading: [],
       worksStudentCopy: [],
@@ -16552,7 +16552,7 @@ export default {
         #评分资料#
         评价标准:${std}
         评价细则:${laws}
-        作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text} 
+        作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
         任务描述:${taskDetail}
         工具描述:${toolDetail}
 
@@ -16630,15 +16630,15 @@ export default {
         }
 
         # Format example
-        == 
+        ==
         0 星,作业内容与作业要求无关;
         1 星,没有识别问题和需求;
         2 星,问题或需求没有被清晰理解或准确识别;
         3 星,问题或需求的一部分被识别;
         4 星,问题或需求的大部分被识别;
-        5 星,问题或需求都被识别。 
+        5 星,问题或需求都被识别。
         ==
-        
+
         `;
 
       let params = {
@@ -16840,7 +16840,7 @@ export default {
       // console.log('payload',payload)
       this.AIloading[payload.val][payload.val2].sco = payload.val3;
     },
-		
+
     gx(){
       this.$forceUpdate();
     },
@@ -16936,7 +16936,7 @@ export default {
           console.log(err);
           loading.close();
         }
-      );      
+      );
     },
     addToolChoose() {
       if (!this.checktoolArray.length) {
@@ -17041,7 +17041,7 @@ export default {
               type: "success",
             });
             this.toolDetailIndex = null;
-            
+
             this.updateToolDetailInner = "";
             this.getCourseDetail(2);
             this.$forceUpdate();
@@ -17070,7 +17070,7 @@ export default {
               message: "修改成功",
               type: "success",
             });
-            
+
             this.toolDetailIndex = i;
             this.isUpdateToolDetail1 = true;
             setTimeout(() => {
@@ -17116,7 +17116,7 @@ export default {
             let scrollBody = document.querySelector('.body_student').parentElement
             scrollBody.scrollTop = scrollBody.scrollTop - 100
         }, 0);
-       
+
       }
       this.navId = ""
 			let flag = this.courseType == i;
@@ -17205,7 +17205,7 @@ export default {
       this.$forceUpdate();
     },
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     getUpdateMore(f, checkboxList, searchTN, index) {
       this.dialogVisibleMember = f;
@@ -18528,7 +18528,9 @@ export default {
             });
             this.selectSWorks();
             this.selectStudent();
+            if(this.tType!=0){
 						this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
+            }
           })
           .catch((err) => {
             this.$message.error("点赞失败");
@@ -18680,7 +18682,7 @@ export default {
           ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
               .toolChoose[index].englishVoiceJson
           : {};
-        
+
         this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
       }
 			this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
@@ -18721,7 +18723,9 @@ export default {
                 this.commentText = "";
                 this.selectSWorks();
                 this.selectStudent();
+                if(this.tType!=0){
 								this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
+                }
               })
               .catch((err) => {
                 this.$message.error("评论失败");
@@ -18760,7 +18764,9 @@ export default {
           this.dialogVisibleScore = false;
           this.selectSWorks();
           this.selectStudent();
+          if(this.tType!=0){
 					this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
+          }
         })
         .catch((err) => {
           this.$message.error("评分失败");
@@ -20579,7 +20585,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType }, "*");
+      window.topU.postMessage({ allScreen: this.screenType }, "*");
     },
     nextOrpreSteps(t) {
       if (this.IsFollow && this.tType == 2) {
@@ -20596,7 +20602,7 @@ export default {
                 !this.navList[b].task[this.navList[b].task.length - 1].isLook
               ) {
                 if (
-                  this.courseDetail.userid != this.userid && 
+                  this.courseDetail.userid != this.userid &&
                   (!this.courseDetail.course_teacher ||
           (this.courseDetail.course_teacher &&
           this.courseDetail.course_teacher.indexOf(this.userid) == -1))
@@ -20645,7 +20651,7 @@ export default {
             if (
               !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
                 .isLook &&
-              this.courseDetail.userid != this.userid && 
+              this.courseDetail.userid != this.userid &&
               (!this.courseDetail.course_teacher ||
           (this.courseDetail.course_teacher &&
           this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
@@ -20671,7 +20677,7 @@ export default {
             var bbb = parseInt(this.courseType) + 1;
             if (
               !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
-              this.courseDetail.userid != this.userid && 
+              this.courseDetail.userid != this.userid &&
               (!this.courseDetail.course_teacher ||
           (this.courseDetail.course_teacher &&
           this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
@@ -20689,7 +20695,7 @@ export default {
             if (
               !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
                 .isLook &&
-              this.courseDetail.userid != this.userid && 
+              this.courseDetail.userid != this.userid &&
               (!this.courseDetail.course_teacher ||
           (this.courseDetail.course_teacher &&
           this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
@@ -20752,12 +20758,12 @@ export default {
         this.$message.error("已经开启跟随模式,请认真跟堂听讲");
         return;
       }
-      if (this.IsLookOpen && 
+      if (this.IsLookOpen &&
         this.courseDetail.userid != this.userid &&
         this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
         if (
           !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
-          this.courseDetail.userid != this.userid && 
+          this.courseDetail.userid != this.userid &&
           (!this.courseDetail.course_teacher ||
           (this.courseDetail.course_teacher &&
           this.courseDetail.course_teacher.indexOf(this.userid) == -1))
@@ -20798,7 +20804,7 @@ export default {
 
 			let flag = this.courseType==s;
 
-	
+
       this.courseType = s;
       this.navId = i;
       this.taskCount = n;
@@ -21453,7 +21459,7 @@ export default {
           _this.selectStudent();
           _this.selectSLook();
           _this.getPick();
-					
+
           if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
             _this.setCTask();
           }
@@ -21499,7 +21505,7 @@ export default {
             },  5000);
           }
 
-         
+
           _this.$nextTick(function () {
             setTimeout(() => {
               // var a =
@@ -21631,7 +21637,9 @@ export default {
           this.pzConText = "";
           this.addPzDialog = false;
           this.selectPz();
+          if(this.tType!=0){
 					this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
+          }
         })
         .catch((err) => {
           this.$message.error("添加失败");
@@ -21902,7 +21910,7 @@ export default {
           this.IsFollow = res.data[0][0].follow == 1 ? false : true;
           if (!this.IsLookOpen) {
             this.setNavList();
-          } 
+          }
           // else {
             this.getCourseState(1);
           // }
@@ -22633,7 +22641,7 @@ export default {
         //     index
         //   ].toolChoose[i].videoJson;
 				this.dialogVisibleVideo = true;
-				
+
       }
       //  else if (t == 15) {
       //   this.answerQ = "";
@@ -22664,7 +22672,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1",
             cid: this.id,
@@ -22682,7 +22690,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t);
@@ -22691,7 +22699,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3",
             cid: this.id,
@@ -22740,7 +22748,7 @@ export default {
         }
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -22766,7 +22774,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -22776,7 +22784,7 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t);
@@ -22785,7 +22793,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -22803,7 +22811,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -22848,7 +22856,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -22857,7 +22865,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -22866,7 +22874,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -22898,36 +22906,36 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 66) {
-        window.parent.postMessage({ tools: "66" }, "*");
+        window.topU.postMessage({ tools: "66" }, "*");
       } else if (t == 67) {
-        window.parent.postMessage({ tools: "67" }, "*");
+        window.topU.postMessage({ tools: "67" }, "*");
       } else if (t == 68) {
-        window.parent.postMessage({ tools: "68" }, "*");
+        window.topU.postMessage({ tools: "68" }, "*");
       } else if (t == 57) {
-        // window.parent.postMessage({ tools: "57" }, "*");
-        window.parent.postMessage(
+        // window.topU.postMessage({ tools: "57" }, "*");
+        window.topU.postMessage(
           {
             tools: "57u",
             cid: this.id,
@@ -22938,21 +22946,21 @@ export default {
           "*"
         );
       } else if (t == 58) {
-        window.parent.postMessage({ tools: "58" }, "*");
+        window.topU.postMessage({ tools: "58" }, "*");
       } else if (t == 59) {
-        window.parent.postMessage({ tools: "59" }, "*");
+        window.topU.postMessage({ tools: "59" }, "*");
       } else if (t == 60) {
-        window.parent.postMessage({ tools: "60" }, "*");
+        window.topU.postMessage({ tools: "60" }, "*");
       } else if (t == 61) {
-        window.parent.postMessage({ tools: "61" }, "*");
+        window.topU.postMessage({ tools: "61" }, "*");
       } else if (t == 63) {
-        window.parent.postMessage({ tools: "63" }, "*");
+        window.topU.postMessage({ tools: "63" }, "*");
       } else if (t == 71) {
         // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
         //   this.$message.error("该工具不可使用");
         //   return
         // }
-        window.parent.postMessage({ tools: "71" }, "*");
+        window.topU.postMessage({ tools: "71" }, "*");
       } else if (t == 72) {
         let item = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].appJson
@@ -22965,11 +22973,11 @@ export default {
         }
         if (!document.fullscreenElement) {
           this.enterFullScreen();
-        } 
-        this.$refs.appStoreC.getData(item.url,this.userid) 
+        }
+        this.$refs.appStoreC.getData(item.url,this.userid)
 
 
-        // window.parent.postMessage({ tools: "72", data: item }, "*");
+        // window.topU.postMessage({ tools: "72", data: item }, "*");
         // window.open(item.url, "_blank");
       } else if (t == 69) {
         if (this.worksStudent[i].length) {
@@ -22989,7 +22997,7 @@ export default {
           ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
               .toolChoose[i].englishList
           : {};
-        
+
         this.englishToolIndex = i;
         this.myAnList = this.myAnswerList1;
         this.engDialogVisible = true;
@@ -23012,7 +23020,7 @@ export default {
           ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
               .toolChoose[i].englishVoiceJson
           : {};
-        
+
         this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
         this.EnglishVoiceDialog = true;
       } else if (t == 65) {
@@ -23029,7 +23037,7 @@ export default {
         }
         this.selectPickStudent();
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -23106,7 +23114,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       } else if (t == 47) {
         this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].sentenceList
@@ -23397,7 +23405,7 @@ export default {
         this.isStar = false;
         this.studentEvalDialogVisibleTeacher = true;
       } else if (t == 3 || t == 1 || t == 7 || t == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: t + "teacher",
             cid: this.id,
@@ -23411,9 +23419,9 @@ export default {
       }else if (t == 72) {
         if (!document.fullscreenElement) {
           this.enterFullScreen();
-        } 
+        }
         let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
-        this.$refs.appStoreC.getData(url,this.sStudent.userid) 
+        this.$refs.appStoreC.getData(url,this.sStudent.userid)
       }
     },
     openCocoPi(tool, i, uid, uname) {
@@ -23422,7 +23430,7 @@ export default {
         student: uname,
       };
       if (tool == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: tool + "teacher",
             cid: this.id,
@@ -23588,7 +23596,7 @@ export default {
           "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
       }
       this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
-  
+
     },
     openSname(n, id, i, uid) {
       this.snameWid = id;
@@ -23707,11 +23715,11 @@ export default {
           a.href = url;
           a.download = f.name;
           a.click();
-          console.log(data); 
+          console.log(data);
         }          // sxuccessful response
 
       });
-      
+
       return;
       let url = f.url;
       let _url = "";
@@ -23790,11 +23798,11 @@ export default {
           a.href = url;
           a.download = name;
           a.click();
-          console.log(data); 
+          console.log(data);
         }          // sxuccessful response
 
       });
-      
+
       return;
       let _this = this;
       let _url = "";
@@ -24577,7 +24585,7 @@ export default {
             this.newEnglishList.engText = z.engText;
           }else{
             var a = res.data[0];
-            var ppp = JSON.parse(JSON.stringify(res.data[0])); 
+            var ppp = JSON.parse(JSON.stringify(res.data[0]));
             if(this.userMes[0].type == 2){
               var snum = 0;
               for(var i = 0;i<a.length;i++){
@@ -24738,7 +24746,7 @@ export default {
         _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
       }
       // console.log(_url)
-      return _url 
+      return _url
     },
 		getScoreList(){
 			let params = {
@@ -24868,11 +24876,11 @@ export default {
       this.confirmOpenDig = false
       if (!document.fullscreenElement) {
         this.enterFullScreen();
-      } 
+      }
         if (this.timer2) {
           clearInterval(this.timer2);
           this.timer2 = null;
-        } 
+        }
         this.timer2 = setInterval(()=> {
           this.getSplitScreenData();//获取分屏数据
         }, 1000);
@@ -24942,7 +24950,7 @@ export default {
                 .then(() => {
                   if (document.fullscreenElement) {
                       this.exitFullScreen();
-                  } 
+                  }
                 })
                 .catch(() => {});
             }
@@ -24961,7 +24969,7 @@ export default {
         if (behavior) {
           if (behavior.code === 99) {
             //初始化
-            this.fullDialogVisible = false;             
+            this.fullDialogVisible = false;
 						if(this.$refs.choseWorksDetailDialogRef.show){
 							this.$refs.choseWorksDetailDialogRef.close();
 						}
@@ -24973,7 +24981,7 @@ export default {
             //开启内容列表弹窗
             this.checkFileFull1(behavior.form.t, behavior.form.f);
             }else{
-              this.fullDialogVisible = false;         
+              this.fullDialogVisible = false;
             }
            if (behavior.code === 1) {
             //关于选择题的作业详细的操作
@@ -25048,7 +25056,7 @@ export default {
             }
             this.setContent2(false)
 
-            
+
           }
         } else {
         }
@@ -25197,7 +25205,7 @@ export default {
 
     clearInterval(this.opertimer);
     this.opertimer = null;
-		this.updateSplitScreenData(1); 
+		this.updateSplitScreenData(1);
   },
   computed: {
     getHeight(){
@@ -25343,11 +25351,11 @@ export default {
       }
     });
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.setOperationTime();
     this.selectEva();
@@ -28079,7 +28087,7 @@ export default {
 .checkbox>.cb-tabList{
 	display:flex;
 	align-items:center;
-	
+
 }
 
 .cb-tabList>div{
@@ -29668,7 +29676,7 @@ ol {
   display: flex;
   flex-direction: row;
   flex-wrap: nowrap;
-  align-items: flex-start;    
+  align-items: flex-start;
   padding: 0 20px 20px 20px;
   box-sizing: border-box;
 }
@@ -29757,7 +29765,7 @@ ol {
 }
 
 .isUpdateToolDetailClass{
- padding: 0 !important; 
+ padding: 0 !important;
 }
 
 .isUpdateToolDetailClass textarea{
@@ -29862,6 +29870,6 @@ div::-webkit-scrollbar {
   -webkit-box-orient: vertical;
   overflow: hidden;
 
-  text-overflow: ellipsis;           
+  text-overflow: ellipsis;
 }
 </style>

+ 41 - 41
src/components/trainCourse/easy2/studyStudent.vue

@@ -12301,7 +12301,7 @@ export default {
       this.$forceUpdate();
     },
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     getUpdateMore(f, checkboxList, searchTN, index) {
       this.dialogVisibleMember = f;
@@ -15421,7 +15421,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType }, "*");
+      window.topU.postMessage({ allScreen: this.screenType }, "*");
     },
     nextOrpreSteps(t) {
       if (this.IsFollow && this.tType == 2) {
@@ -17319,7 +17319,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1",
             cid: this.id,
@@ -17337,7 +17337,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t);
@@ -17346,7 +17346,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3",
             cid: this.id,
@@ -17395,7 +17395,7 @@ export default {
         }
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -17421,7 +17421,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -17431,7 +17431,7 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t);
@@ -17440,7 +17440,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -17458,7 +17458,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -17503,7 +17503,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -17512,7 +17512,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -17521,7 +17521,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -17553,36 +17553,36 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 66) {
-        window.parent.postMessage({ tools: "66" }, "*");
+        window.topU.postMessage({ tools: "66" }, "*");
       } else if (t == 67) {
-        window.parent.postMessage({ tools: "67" }, "*");
+        window.topU.postMessage({ tools: "67" }, "*");
       } else if (t == 68) {
-        window.parent.postMessage({ tools: "68" }, "*");
+        window.topU.postMessage({ tools: "68" }, "*");
       } else if (t == 57) {
-        // window.parent.postMessage({ tools: "57" }, "*");
-        window.parent.postMessage(
+        // window.topU.postMessage({ tools: "57" }, "*");
+        window.topU.postMessage(
           {
             tools: "57u",
             cid: this.id,
@@ -17593,15 +17593,15 @@ export default {
           "*"
         );
       } else if (t == 58) {
-        window.parent.postMessage({ tools: "58" }, "*");
+        window.topU.postMessage({ tools: "58" }, "*");
       } else if (t == 59) {
-        window.parent.postMessage({ tools: "59" }, "*");
+        window.topU.postMessage({ tools: "59" }, "*");
       } else if (t == 60) {
-        window.parent.postMessage({ tools: "60" }, "*");
+        window.topU.postMessage({ tools: "60" }, "*");
       } else if (t == 61) {
-        window.parent.postMessage({ tools: "61" }, "*");
+        window.topU.postMessage({ tools: "61" }, "*");
       } else if (t == 63) {
-        window.parent.postMessage({ tools: "63" }, "*");
+        window.topU.postMessage({ tools: "63" }, "*");
       } else if (t == 69) {
         if (this.worksStudent[i].length) {
           for (var k = 0; k < this.worksStudent[i].length; k++) {
@@ -17638,7 +17638,7 @@ export default {
         }
         this.selectPickStudent();
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -17715,7 +17715,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       } else if (t == 47) {
         this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].sentenceList
@@ -18003,7 +18003,7 @@ export default {
         this.isStar = false;
         this.studentEvalDialogVisibleTeacher = true;
       } else if (t == 3 || t == 1 || t == 7 || t == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: t + "teacher",
             cid: this.id,
@@ -18022,7 +18022,7 @@ export default {
         student: uname,
       };
       if (tool == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: tool + "teacher",
             cid: this.id,
@@ -19466,11 +19466,11 @@ export default {
       }
     });
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.setOperationTime();
     this.selectEva();

+ 41 - 41
src/components/trainCourse/easy3/studyStudent.vue

@@ -12290,7 +12290,7 @@ export default {
       this.$forceUpdate();
     },
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     getUpdateMore(f, checkboxList, searchTN, index) {
       this.dialogVisibleMember = f;
@@ -15411,7 +15411,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType }, "*");
+      window.topU.postMessage({ allScreen: this.screenType }, "*");
     },
     nextOrpreSteps(t) {
       if (this.IsFollow && this.tType == 2) {
@@ -17313,7 +17313,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1",
             cid: this.id,
@@ -17331,7 +17331,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t);
@@ -17340,7 +17340,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3",
             cid: this.id,
@@ -17389,7 +17389,7 @@ export default {
         }
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -17415,7 +17415,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -17425,7 +17425,7 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t);
@@ -17434,7 +17434,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -17452,7 +17452,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -17497,7 +17497,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -17506,7 +17506,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -17515,7 +17515,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -17547,36 +17547,36 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 66) {
-        window.parent.postMessage({ tools: "66" }, "*");
+        window.topU.postMessage({ tools: "66" }, "*");
       } else if (t == 67) {
-        window.parent.postMessage({ tools: "67" }, "*");
+        window.topU.postMessage({ tools: "67" }, "*");
       } else if (t == 68) {
-        window.parent.postMessage({ tools: "68" }, "*");
+        window.topU.postMessage({ tools: "68" }, "*");
       } else if (t == 57) {
-        // window.parent.postMessage({ tools: "57" }, "*");
-        window.parent.postMessage(
+        // window.topU.postMessage({ tools: "57" }, "*");
+        window.topU.postMessage(
           {
             tools: "57u",
             cid: this.id,
@@ -17587,15 +17587,15 @@ export default {
           "*"
         );
       } else if (t == 58) {
-        window.parent.postMessage({ tools: "58" }, "*");
+        window.topU.postMessage({ tools: "58" }, "*");
       } else if (t == 59) {
-        window.parent.postMessage({ tools: "59" }, "*");
+        window.topU.postMessage({ tools: "59" }, "*");
       } else if (t == 60) {
-        window.parent.postMessage({ tools: "60" }, "*");
+        window.topU.postMessage({ tools: "60" }, "*");
       } else if (t == 61) {
-        window.parent.postMessage({ tools: "61" }, "*");
+        window.topU.postMessage({ tools: "61" }, "*");
       } else if (t == 63) {
-        window.parent.postMessage({ tools: "63" }, "*");
+        window.topU.postMessage({ tools: "63" }, "*");
       } else if (t == 69) {
         if (this.worksStudent[i].length) {
           for (var k = 0; k < this.worksStudent[i].length; k++) {
@@ -17632,7 +17632,7 @@ export default {
         }
         this.selectPickStudent();
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -17709,7 +17709,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       } else if (t == 47) {
         this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].sentenceList
@@ -17997,7 +17997,7 @@ export default {
         this.isStar = false;
         this.studentEvalDialogVisibleTeacher = true;
       } else if (t == 3 || t == 1 || t == 7 || t == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: t + "teacher",
             cid: this.id,
@@ -18016,7 +18016,7 @@ export default {
         student: uname,
       };
       if (tool == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: tool + "teacher",
             cid: this.id,
@@ -19458,11 +19458,11 @@ export default {
       }
     });
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.setOperationTime();
     this.selectEva();

+ 41 - 41
src/components/trainCourse/studyStudent.vue

@@ -12272,7 +12272,7 @@ export default {
       this.$forceUpdate();
     },
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     getUpdateMore(f, checkboxList, searchTN, index) {
       this.dialogVisibleMember = f;
@@ -15392,7 +15392,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType }, "*");
+      window.topU.postMessage({ allScreen: this.screenType }, "*");
     },
     nextOrpreSteps(t) {
       if (this.IsFollow && this.tType == 2) {
@@ -17295,7 +17295,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1",
             cid: this.id,
@@ -17313,7 +17313,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t);
@@ -17322,7 +17322,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3",
             cid: this.id,
@@ -17371,7 +17371,7 @@ export default {
         }
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -17397,7 +17397,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -17407,7 +17407,7 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t);
@@ -17416,7 +17416,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -17434,7 +17434,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -17479,7 +17479,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -17488,7 +17488,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -17497,7 +17497,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -17529,36 +17529,36 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 66) {
-        window.parent.postMessage({ tools: "66" }, "*");
+        window.topU.postMessage({ tools: "66" }, "*");
       } else if (t == 67) {
-        window.parent.postMessage({ tools: "67" }, "*");
+        window.topU.postMessage({ tools: "67" }, "*");
       } else if (t == 68) {
-        window.parent.postMessage({ tools: "68" }, "*");
+        window.topU.postMessage({ tools: "68" }, "*");
       } else if (t == 57) {
-        // window.parent.postMessage({ tools: "57" }, "*");
-        window.parent.postMessage(
+        // window.topU.postMessage({ tools: "57" }, "*");
+        window.topU.postMessage(
           {
             tools: "57u",
             cid: this.id,
@@ -17569,15 +17569,15 @@ export default {
           "*"
         );
       } else if (t == 58) {
-        window.parent.postMessage({ tools: "58" }, "*");
+        window.topU.postMessage({ tools: "58" }, "*");
       } else if (t == 59) {
-        window.parent.postMessage({ tools: "59" }, "*");
+        window.topU.postMessage({ tools: "59" }, "*");
       } else if (t == 60) {
-        window.parent.postMessage({ tools: "60" }, "*");
+        window.topU.postMessage({ tools: "60" }, "*");
       } else if (t == 61) {
-        window.parent.postMessage({ tools: "61" }, "*");
+        window.topU.postMessage({ tools: "61" }, "*");
       } else if (t == 63) {
-        window.parent.postMessage({ tools: "63" }, "*");
+        window.topU.postMessage({ tools: "63" }, "*");
       } else if (t == 69) {
         if (this.worksStudent[i].length) {
           for (var k = 0; k < this.worksStudent[i].length; k++) {
@@ -17614,7 +17614,7 @@ export default {
         }
         this.selectPickStudent();
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -17691,7 +17691,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       } else if (t == 47) {
         this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].sentenceList
@@ -17979,7 +17979,7 @@ export default {
         this.isStar = false;
         this.studentEvalDialogVisibleTeacher = true;
       } else if (t == 3 || t == 1 || t == 7 || t == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: t + "teacher",
             cid: this.id,
@@ -17998,7 +17998,7 @@ export default {
         student: uname,
       };
       if (tool == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: tool + "teacher",
             cid: this.id,
@@ -19432,11 +19432,11 @@ export default {
       }
     });
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.setOperationTime();
     this.selectEva();

+ 41 - 41
src/components/横板极简和任务模式/easy2/studyStudent.vue

@@ -12519,7 +12519,7 @@ export default {
   },
   methods: {
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     getUpdateMore(f, checkboxList, searchTN, index) {
       this.dialogVisibleMember = f;
@@ -15159,7 +15159,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
+      window.topU.postMessage({ allScreen: this.screenType + "NT" }, "*");
     },
     nextToolindex(type) {
       if (type == "last") {
@@ -16980,7 +16980,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1",
             cid: this.id,
@@ -16998,7 +16998,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t);
@@ -17007,7 +17007,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3",
             cid: this.id,
@@ -17051,7 +17051,7 @@ export default {
 
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -17077,7 +17077,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -17087,7 +17087,7 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t);
@@ -17096,7 +17096,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -17114,7 +17114,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -17155,7 +17155,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -17164,7 +17164,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -17173,7 +17173,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -17205,36 +17205,36 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 66) {
-        window.parent.postMessage({ tools: "66" }, "*");
+        window.topU.postMessage({ tools: "66" }, "*");
       } else if (t == 67) {
-        window.parent.postMessage({ tools: "67" }, "*");
+        window.topU.postMessage({ tools: "67" }, "*");
       } else if (t == 68) {
-        window.parent.postMessage({ tools: "68" }, "*");
+        window.topU.postMessage({ tools: "68" }, "*");
       } else if (t == 57) {
-        // window.parent.postMessage({ tools: "57" }, "*");
-        window.parent.postMessage(
+        // window.topU.postMessage({ tools: "57" }, "*");
+        window.topU.postMessage(
           {
             tools: "57u",
             cid: this.id,
@@ -17245,15 +17245,15 @@ export default {
           "*"
         );
       } else if (t == 58) {
-        window.parent.postMessage({ tools: "58" }, "*");
+        window.topU.postMessage({ tools: "58" }, "*");
       } else if (t == 59) {
-        window.parent.postMessage({ tools: "59" }, "*");
+        window.topU.postMessage({ tools: "59" }, "*");
       } else if (t == 60) {
-        window.parent.postMessage({ tools: "60" }, "*");
+        window.topU.postMessage({ tools: "60" }, "*");
       } else if (t == 61) {
-        window.parent.postMessage({ tools: "61" }, "*");
+        window.topU.postMessage({ tools: "61" }, "*");
       } else if (t == 63) {
-        window.parent.postMessage({ tools: "63" }, "*");
+        window.topU.postMessage({ tools: "63" }, "*");
       } else if (t == 65) {
         if (this.tType == 2) {
           this.$message.error("不支持学生使用");
@@ -17268,7 +17268,7 @@ export default {
         }
         this.selectPickStudent();
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -17345,7 +17345,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       } else if (t == 47) {
         this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].sentenceList
@@ -17631,7 +17631,7 @@ export default {
         this.isStar = false;
         this.studentEvalDialogVisibleTeacher = true;
       } else if (t == 3 || t == 1 || t == 7 || t == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: t + "teacher",
             cid: this.id,
@@ -17650,7 +17650,7 @@ export default {
         student: uname,
       };
       if (tool == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: tool + "teacher",
             cid: this.id,
@@ -18924,11 +18924,11 @@ export default {
       }
     });
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.setOperationTime();
     this.selectEva();

+ 41 - 41
src/components/横板极简和任务模式/easy3/studyStudent.vue

@@ -12539,7 +12539,7 @@ export default {
   },
   methods: {
     jump() {
-      window.parent.postMessage({ tools: "43" }, "*");
+      window.topU.postMessage({ tools: "43" }, "*");
     },
     getUpdateMore(f, checkboxList, searchTN, index) {
       this.dialogVisibleMember = f;
@@ -15179,7 +15179,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
+      window.topU.postMessage({ allScreen: this.screenType + "NT" }, "*");
     },
     nextToolindex(type) {
       if (type == "last") {
@@ -16870,7 +16870,7 @@ export default {
           a = this.wbCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "1",
             cid: this.id,
@@ -16888,7 +16888,7 @@ export default {
           a = this.wordCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "2" }, "*");
+        window.topU.postMessage({ tools: "2" }, "*");
       } else if (t == 3) {
         if (this.mindCount > 0) {
           this.updateCount(this.mindCount, t);
@@ -16897,7 +16897,7 @@ export default {
           a = this.mindCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "3",
             cid: this.id,
@@ -16941,7 +16941,7 @@ export default {
 
         this.dialogVisible5 = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 45) {
         this.noteName = "";
         this.radio = [];
@@ -16967,7 +16967,7 @@ export default {
 
         this.dialogVisibleChoice = true;
 
-        // window.parent.postMessage({ tools: "4" }, "*");
+        // window.topU.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
           this.updateCount(this.scoreCount, t);
@@ -16977,7 +16977,7 @@ export default {
           this.toolsCount(a, t);
         }
         this.dialogVisible4 = true;
-        // window.parent.postMessage({ tools: "5" }, "*");
+        // window.topU.postMessage({ tools: "5" }, "*");
       } else if (t == 6) {
         if (this.noteCount > 0) {
           this.updateCount(this.noteCount, t);
@@ -16986,7 +16986,7 @@ export default {
           a = this.noteCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "6",
             cid: this.id,
@@ -17004,7 +17004,7 @@ export default {
           a = this.mindNetWorkCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "7",
             cid: this.id,
@@ -17045,7 +17045,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "8" }, "*");
+        window.topU.postMessage({ tools: "8" }, "*");
       } else if (t == 17) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -17054,7 +17054,7 @@ export default {
           a = this.libraryCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "17" }, "*");
+        window.topU.postMessage({ tools: "17" }, "*");
       } else if (t == 18) {
         if (this.trainCount > 0) {
           this.updateCount(this.trainCount, t);
@@ -17063,7 +17063,7 @@ export default {
           a = this.trainCount;
           this.toolsCount(a, t);
         }
-        window.parent.postMessage({ tools: "18" }, "*");
+        window.topU.postMessage({ tools: "18" }, "*");
       } else if (t == 10) {
         if (this.timeCount > 0) {
           this.updateCount(this.timeCount, t);
@@ -17095,36 +17095,36 @@ export default {
           : "";
         this.answerDialogVisible = true;
       } else if (t == 21) {
-        window.parent.postMessage({ tools: "21" }, "*");
+        window.topU.postMessage({ tools: "21" }, "*");
       } else if (t == 22) {
-        window.parent.postMessage({ tools: "22" }, "*");
+        window.topU.postMessage({ tools: "22" }, "*");
       } else if (t == 23) {
-        window.parent.postMessage({ tools: "23" }, "*");
+        window.topU.postMessage({ tools: "23" }, "*");
       } else if (t == 24) {
-        window.parent.postMessage({ tools: "24" }, "*");
+        window.topU.postMessage({ tools: "24" }, "*");
       } else if (t == 25) {
-        window.parent.postMessage({ tools: "25" }, "*");
+        window.topU.postMessage({ tools: "25" }, "*");
       } else if (t == 31) {
-        window.parent.postMessage({ tools: "31" }, "*");
+        window.topU.postMessage({ tools: "31" }, "*");
       } else if (t == 28) {
-        window.parent.postMessage({ tools: "28" }, "*");
+        window.topU.postMessage({ tools: "28" }, "*");
       } else if (t == 37) {
-        window.parent.postMessage({ tools: "37" }, "*");
+        window.topU.postMessage({ tools: "37" }, "*");
       } else if (t == 38) {
-        window.parent.postMessage({ tools: "38" }, "*");
+        window.topU.postMessage({ tools: "38" }, "*");
       } else if (t == 39) {
-        window.parent.postMessage({ tools: "39" }, "*");
+        window.topU.postMessage({ tools: "39" }, "*");
       } else if (t == 32) {
-        window.parent.postMessage({ tools: "32" }, "*");
+        window.topU.postMessage({ tools: "32" }, "*");
       } else if (t == 66) {
-        window.parent.postMessage({ tools: "66" }, "*");
+        window.topU.postMessage({ tools: "66" }, "*");
       } else if (t == 67) {
-        window.parent.postMessage({ tools: "67" }, "*");
+        window.topU.postMessage({ tools: "67" }, "*");
       } else if (t == 68) {
-        window.parent.postMessage({ tools: "68" }, "*");
+        window.topU.postMessage({ tools: "68" }, "*");
       } else if (t == 57) {
-        // window.parent.postMessage({ tools: "57" }, "*");
-        window.parent.postMessage(
+        // window.topU.postMessage({ tools: "57" }, "*");
+        window.topU.postMessage(
           {
             tools: "57u",
             cid: this.id,
@@ -17135,15 +17135,15 @@ export default {
           "*"
         );
       } else if (t == 58) {
-        window.parent.postMessage({ tools: "58" }, "*");
+        window.topU.postMessage({ tools: "58" }, "*");
       } else if (t == 59) {
-        window.parent.postMessage({ tools: "59" }, "*");
+        window.topU.postMessage({ tools: "59" }, "*");
       } else if (t == 60) {
-        window.parent.postMessage({ tools: "60" }, "*");
+        window.topU.postMessage({ tools: "60" }, "*");
       } else if (t == 61) {
-        window.parent.postMessage({ tools: "61" }, "*");
+        window.topU.postMessage({ tools: "61" }, "*");
       } else if (t == 63) {
-        window.parent.postMessage({ tools: "63" }, "*");
+        window.topU.postMessage({ tools: "63" }, "*");
       } else if (t == 65) {
         if (this.tType == 2) {
           this.$message.error("不支持学生使用");
@@ -17158,7 +17158,7 @@ export default {
         }
         this.selectPickStudent();
       } else if (t == 26) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: "26",
             cid: this.id,
@@ -17235,7 +17235,7 @@ export default {
         this.isSelect = false;
         this.dialogVisibleSelect = true;
       } else if (t == 44) {
-        window.parent.postMessage({ tools: "44" }, "*");
+        window.topU.postMessage({ tools: "44" }, "*");
       } else if (t == 47) {
         this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
           .taskJson[index].toolChoose[i].sentenceList
@@ -17521,7 +17521,7 @@ export default {
         this.isStar = false;
         this.studentEvalDialogVisibleTeacher = true;
       } else if (t == 3 || t == 1 || t == 7 || t == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: t + "teacher",
             cid: this.id,
@@ -17540,7 +17540,7 @@ export default {
         student: uname,
       };
       if (tool == 57) {
-        window.parent.postMessage(
+        window.topU.postMessage(
           {
             tools: tool + "teacher",
             cid: this.id,
@@ -18814,11 +18814,11 @@ export default {
       }
     });
     if (this.screenType == 2) {
-      window.parent.postMessage({ allScreen: 4 }, "*");
+      window.topU.postMessage({ allScreen: 4 }, "*");
     } else if (this.screenType == 3) {
-      window.parent.postMessage({ allScreen: 5 }, "*");
+      window.topU.postMessage({ allScreen: 5 }, "*");
     } else if (this.screenType == 1) {
-      window.parent.postMessage({ allScreen: 6 }, "*");
+      window.topU.postMessage({ allScreen: 6 }, "*");
     }
     this.setOperationTime();
     this.selectEva();

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác