zengyicheng vor 2 Jahren
Ursprung
Commit
de6d192cd7
1 geänderte Dateien mit 23 neuen und 13 gelöschten Zeilen
  1. 23 13
      js/Desktop/DeskTop.js

+ 23 - 13
js/Desktop/DeskTop.js

@@ -322,6 +322,16 @@ window.addEventListener('message', function(e) { // 监听 message 事件
         U.MD.D.I.openInApplication("study", e.data.cid)
     } else if (e.data.close && e.data.close == "1") { //更新用户信息
         U.MD.D.I.selectUser();
+    } else if (e.data.tools && e.data.tools == "1") {
+        U.MD.D.I.openApplication("whiteboard")
+    } 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")
+    } 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")
     }
 });
 
@@ -502,19 +512,19 @@ U.MD.D.I.openApplication = function(str, obj, info) {
                 }, { "style": { "height": "36px" } }).form; //创建窗体
             _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
             break;
-        // case "score":
-
-        //     _formdiv = new U.UF.UI.form(
-        //         "量规评分",
-        //         $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
-        //             "id": "score",
-        //             "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
-        //             "onresize": function() {}
-        //         }, {
-        //             closecallback: function() {}
-        //         }, { "style": { "height": "36px" } }).form; //创建窗体
-        //     _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
-        //     break;
+            // case "score":
+
+            //     _formdiv = new U.UF.UI.form(
+            //         "量规评分",
+            //         $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
+            //             "id": "score",
+            //             "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+            //             "onresize": function() {}
+            //         }, {
+            //             closecallback: function() {}
+            //         }, { "style": { "height": "36px" } }).form; //创建窗体
+            //     _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+            //     break;
         case "mind":
 
             _formdiv = new U.UF.UI.form(