lsc 1 year ago
parent
commit
d6ca574233
1 changed files with 15 additions and 2 deletions
  1. 15 2
      js/Desktop/DeskTop.js

+ 15 - 2
js/Desktop/DeskTop.js

@@ -3191,6 +3191,10 @@ window.addEventListener('message', function (e) { // 监听 message 事件
         U.MD.D.I.openInApplication("opencCscl", _data)
     } else if (e.data.tools && e.data.tools == "dataBoardTest") {
         U.MD.D.I.openApplication("dataBoardTest")
+    } else if (e.data.tools && e.data.tools == "openCourseUpdate") {
+        U.MD.D.I.openApplication("openCourseUpdate", e.data.cid)
+    }else if (e.data.tools && e.data.tools == "openCourseEUpdate") {
+        U.MD.D.I.openApplication("openCourseEUpdate", e.data.cid)
     }
 });
 
@@ -3427,7 +3431,6 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                 }, {
                     closecallback: function () { }
                 }, { "style": { "height": "36px" } }).form; //创建窗体
-                _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "协同建构", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
                 break;
             }
         case "openCourseEUpdate":
@@ -3445,9 +3448,19 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                 }, {
                     closecallback: function () { }
                 }, { "style": { "height": "36px" } }).form; //创建窗体
-                _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "协同建构", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
                 break;
             }
+        case "inviteLoginSz":
+            _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-teacher-table/dist/#/course/inviteLoginSZ?code=" + data }), {
+                "id": "inviteLoginSz",
+                "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                "onresize": function () { }
+            }, {
+                closecallback: function () { }
+            }, { "style": { "height": "36px" } }).form; //创建窗体
+            break;
     }
 }
 U.MD.D.I.openApplication = function (str, obj, info) {