lsc 2 年之前
父節點
當前提交
4ac2dc7db3
共有 1 個文件被更改,包括 22 次插入24 次删除
  1. 22 24
      js/Desktop/DeskTop.js

+ 22 - 24
js/Desktop/DeskTop.js

@@ -607,7 +607,7 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
         _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
         _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
     var _oidA = ['69893dca-1d47-11ed-8c78-005056b86db5', "91305d49-01ba-11ed-8c78-005056b86db5", "d9db3320-503a-11ed-8c78-005056b86db5", "05b62310-8cda-11ed-b13d-005056b86db5", '1c3b9def-8fbe-11ed-b13d-005056b86db5', '91305d49-01ba-11ed-8c78-005056b86db4'];
-    var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d", "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b", "150e3120-9195-11ed-b13d-005056b86db5", "ee40e8e3-e36c-4872-8105-cf395481012s",'97c4ee8b-d010-4042-986d-e9d3c217264f'];
+    var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d", "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b", "150e3120-9195-11ed-b13d-005056b86db5", "ee40e8e3-e36c-4872-8105-cf395481012s", '97c4ee8b-d010-4042-986d-e9d3c217264f'];
     //清楚桌面图标
     el.innerHTML = "";
     if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5") {
@@ -619,7 +619,7 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
             { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
         )
     }
-    if(_oid != '4c686762-1d0a-11ed-8c78-005056b86db5' && _oid != '45facc0a-1211-11ec-80ad-005056b86db5'){
+    if (_oid != '4c686762-1d0a-11ed-8c78-005056b86db5' && _oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
         _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
             return el.Name != '魔盒识字' && el.Name != '24点'
         })
@@ -801,7 +801,7 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
                 $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
                 $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
             }
-        }else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
+        } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
             for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
                 _content = $$("div", {
                     className: "U_MD_D_KO",
@@ -835,7 +835,7 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
                 $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
                 $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
             }
-        }else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
+        } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
             for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
                 _content = $$("div", {
                     className: "U_MD_D_KO",
@@ -852,7 +852,7 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
                 $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
                 $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
             }
-        }  else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
+        } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
             for (i = 0; i < _hanDeskIcon.length; i++) {
                 _content = $$("div", {
                     className: "U_MD_D_KO",
@@ -3152,7 +3152,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
                 "onresize": function () { }
             }, {
-                istop:true,
+                istop: true,
                 closecallback: function () { $("#aichat_icon").remove(); },
                 narrowcallback: function () {
                     if (!$("#aichat_icon")[0]) {
@@ -3411,9 +3411,9 @@ U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
     _lchild.appendChild(_lspan)
     _lchild.style = "color: #fff;padding: 15px;background: #00000070;font-size: 18px;display:flex;align-items:center;"
     _loading.appendChild(_lchild)
-    _loading.addEventListener("click", function(event) {
+    _loading.addEventListener("click", function (event) {
         event.stopPropagation();
-        event.target.style.display = 'flex' 
+        event.target.style.display = 'flex'
     });
     var _box = $$('div', {
         "style": {
@@ -3729,19 +3729,17 @@ U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
                 U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
             })
         } else if (str == 'whiteboard') {
-            let onloadListener = _iframe.onload = () => {
+            let onloadListener = _iframe.onload
+            if (onloadListener) {
                 _iframe.contentWindow.document.body.appendChild(script1);
                 _iframe.contentWindow.document.body.appendChild(script2);
                 _iframe.contentWindow.document.body.appendChild(script4);
-                U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
-            };   
-            if (onloadListener) {  
                 // iframe 已经加载完成  
-              } else {  
-                // iframe 还没有加载完成  
                 U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
-              }  
-              
+            } else {
+                // iframe 还没有加载完成  
+            }
+
         } else {
             _iframe.onload = () => {
                 _iframe.contentWindow.document.body.appendChild(script1);
@@ -3863,9 +3861,9 @@ U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, stud
     _lchild.appendChild(_lspan)
     _lchild.style = "color: #fff;padding: 15px;background: #00000070;font-size: 18px;display:flex;align-items:center;"
     _loading.appendChild(_lchild)
-    _loading.addEventListener("click", function(event) {
+    _loading.addEventListener("click", function (event) {
         event.stopPropagation();
-        event.target.style.display = 'flex' 
+        event.target.style.display = 'flex'
     });
     var _box = $$('div', {
         "style": {
@@ -4352,9 +4350,9 @@ U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
     _lchild.appendChild(_lspan)
     _lchild.style = "color: #fff;padding: 15px;background: #00000070;font-size: 18px;display:flex;align-items:center;"
     _loading.appendChild(_lchild)
-    _loading.addEventListener("click", function(event) {
+    _loading.addEventListener("click", function (event) {
         event.stopPropagation();
-        event.target.style.display = 'flex' 
+        event.target.style.display = 'flex'
     });
     var _box = $$('div', {
         "style": {
@@ -4649,9 +4647,9 @@ U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
     _lchild.appendChild(_lspan)
     _lchild.style = "color: #fff;padding: 15px;background: #00000070;font-size: 18px;display:flex;align-items:center;"
     _loading.appendChild(_lchild)
-    _loading.addEventListener("click", function(event) {
+    _loading.addEventListener("click", function (event) {
         event.stopPropagation();
-        event.target.style.display = 'flex' 
+        event.target.style.display = 'flex'
     });
     var _box = $$('div', {
         "style": {
@@ -4946,9 +4944,9 @@ U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
     _lchild.appendChild(_lspan)
     _lchild.style = "color: #fff;padding: 15px;background: #00000070;font-size: 18px;display:flex;align-items:center;"
     _loading.appendChild(_lchild)
-    _loading.addEventListener("click", function(event) {
+    _loading.addEventListener("click", function (event) {
         event.stopPropagation();
-        event.target.style.display = 'flex' 
+        event.target.style.display = 'flex'
     });
     var _box = $$('div', {
         "style": {