lsc 2 년 전
부모
커밋
384a4243cc
1개의 변경된 파일14개의 추가작업 그리고 10개의 파일을 삭제
  1. 14 10
      js/Desktop/DeskTop.js

+ 14 - 10
js/Desktop/DeskTop.js

@@ -421,17 +421,21 @@ window.addEventListener('message', function(e) { // 监听 message 事件
         var _formel = document.getElementById("study") || document.getElementById("studyDetail") || document.getElementById("studentStudy");
         U.UF.F.windowZooming(_formel);
     } else if (e.data.tools && e.data.tools == "1") {
-        U.MD.D.I.openApplication("whiteboard")
+        // U.MD.D.I.openApplication("whiteboard")
+         U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
     } else if (e.data.tools && e.data.tools == "2") {
         U.MD.D.I.openApplication("note")
     } else if (e.data.tools && e.data.tools == "3") {
-        U.MD.D.I.openApplication("mind")
+        // U.MD.D.I.openApplication("mind")
+        U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
     } else if (e.data.tools && e.data.tools == "4") {
         U.MD.D.I.openApplication("investigation")
     } else if (e.data.tools && e.data.tools == "6") {
-        U.MD.D.I.openApplication("doc")
+        // U.MD.D.I.openApplication("doc")
+        U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
     } else if (e.data.tools && e.data.tools == "7") {
-        U.MD.D.I.openApplication("mindNetwork")
+        // U.MD.D.I.openApplication("mindNetwork")
+        U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
     } else if (e.data.tools && e.data.tools == "8") {
         U.MD.D.I.openApplication("library")
     } else if (e.data.tools && e.data.tools == "17") {
@@ -1437,7 +1441,7 @@ U.MD.D.I.openApplication = function(str, obj, info) {
 //#endregion
 
 
-U.MD.D.I.openApplicationJie = function (str) {
+U.MD.D.I.openApplicationJie = function (str,cid,stage,task,tool) {
     var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
         _formdiv, //创建任务栏时同时弹出的窗体元素。
         _userinfo = US.userInfo, //登录用户信息
@@ -1674,23 +1678,23 @@ U.MD.D.I.openApplicationJie = function (str) {
                 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
                 "beforeUpload_shishi(file," +
                 "'" +
-                this.userid +
+                _userid +
                 "'" +
                 ", " +
                 "'" +
-                this.cid +
+                cid +
                 "'" +
                 ", " +
                 "'" +
-                0 +
+                stage +
                 "'" +
                 ", " +
                 "'" +
-                0 +
+                task +
                 "'" +
                 ", " +
                 "'" +
-                0  +
+                tool  +
                 "'" +
                 ")\n" +
                 " });\n" +