lsc vor 1 Jahr
Ursprung
Commit
de2017d464
1 geänderte Dateien mit 25 neuen und 0 gelöschten Zeilen
  1. 25 0
      js/Desktop/DeskTop.js

+ 25 - 0
js/Desktop/DeskTop.js

@@ -2443,6 +2443,13 @@ window.addEventListener('message', function(e) { // 监听 message 事件
         U.MD.D.I.openApplication("molStr")
     } else if (e.data.tools && e.data.tools == "68") {
         U.MD.D.I.openApplication("timeAxis")
+    } else if (e.data.tools && e.data.tools == "openCourse") {
+        let _data = {
+            typea:e.data.typea,
+            typeb:e.data.typeb,
+            typed:e.data.typed,
+        }
+        U.MD.D.I.openInApplication("index", _data)
     }
 
 });
@@ -2593,6 +2600,24 @@ U.MD.D.I.openInApplication = function(str, data, screenType, tType) {
                 _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
                 break;
             }
+        case "index":
+                if (!_userinfo || Object.keys(_userinfo).length === 0) {
+                    setTimeout(() => {
+                        U.MD.U.L.login();
+                    }, 2000);
+                } else {
+                    _formdiv = new U.UF.UI.form(
+                        "课程中心",
+                        $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=2" + "&typea="+  data.typea+ "&typeb=" + data.typeb + "&typed=" + data.typed }), {
+                            "id": "study",
+                            "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                            "onresize": function() {}
+                        }, {
+                            closecallback: function() {}
+                        }, { "style": { "height": "36px" } }).form; //创建窗体
+                    _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+                    break;
+                }
     }
 
 }