DeskTop.js 124 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176
  1. /*
  2. 此处为桌面系统启动应用区域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面应用处理
  5. //判断图片是否在拖拽,如果是拖拽图标的过程是不会打开图片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教师桌面图标的全局变量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  15. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  16. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  17. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  18. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  19. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  20. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  21. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  22. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  23. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  24. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  25. { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  26. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  27. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  28. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  29. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  30. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  31. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  32. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  33. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  34. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  35. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  36. { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  37. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  38. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  39. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  40. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  41. ];
  42. U.MD.D.I.studentDeskIcon = [
  43. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  44. { "Name": "学习中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  45. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  46. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  47. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  48. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  49. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  50. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  51. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  52. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  53. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  54. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  55. { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } }
  56. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  57. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  58. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  59. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  60. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  61. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  62. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  63. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  64. // { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  65. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  66. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  67. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  68. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  69. ];
  70. U.MD.D.I.schoolDeskIcon = [
  71. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  72. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  73. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  74. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  75. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  76. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  77. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  78. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  79. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  80. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  81. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  82. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  83. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  84. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  85. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  86. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  87. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  88. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  89. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  90. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  91. ];
  92. //#region 桌面初始化a
  93. /**
  94. * 初始化桌面的起始函数
  95. *
  96. */
  97. U.MD.D.I.init = function () {
  98. if ($("#U_MD_D_K")[0]) {
  99. //初始化桌面图标
  100. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0]);
  101. // var clickUrl = ':12588/requestIp.php';
  102. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  103. // U.MD.D.I.Ip = data;
  104. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  105. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  106. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  107. // })
  108. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  109. // })
  110. }
  111. }
  112. /**
  113. * 隐藏任务栏
  114. *
  115. * @param {element} 桌面元素
  116. */
  117. U.MD.D.I.hiddenTaskbar = function (el) {
  118. //任务栏位置变小
  119. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  120. //桌面的位置变大
  121. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  122. }
  123. /**
  124. * 隐藏任务栏
  125. *
  126. * @param {element} 桌面元素
  127. */
  128. U.MD.D.I.hiddenTaskbarout = function (el) {
  129. //任务栏位置变小
  130. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  131. //任务栏位置变化
  132. U.selectEl(el).css({ "bottom": "-60px" });
  133. //桌面的位置变大
  134. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  135. }
  136. }
  137. /**
  138. * 初始化打印桌面图标
  139. *
  140. * @param {element} 桌面元素
  141. */
  142. U.MD.D.I.initDesktopIcons = function (el) {
  143. var i, //用于循环
  144. _content, //桌面图标元素
  145. _iconcontent, //桌面图标元素
  146. _frag = $$("frag"), //定义一个碎片元素
  147. _type = US.userInfo.type,
  148. _oid = US.userInfo.organizeid;
  149. _teacherDesktopIconInfo = U.MD.D.I.teacherDeskIcon, //获取教师端桌面图标
  150. _studentDesktopIconInfo = U.MD.D.I.studentDeskIcon, //获取学生端桌面图标
  151. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon; //获取测试学校桌面图标
  152. //清楚桌面图标
  153. el.innerHTML = "";
  154. //循环创建桌面图标
  155. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  156. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  157. _content = $$("div", {
  158. className: "U_MD_D_KO",
  159. "onmousedown": U.UF.C.closure(function (obj) {
  160. //防止拖动图标即打开了桌面应用
  161. U.MD.D.click(this, obj);
  162. }, [_studentDesktopIconInfo[i]]),
  163. "onclick": U.UF.C.closure(function (obj) {
  164. //防止拖动图标即打开了桌面应用
  165. U.MD.D.click(this, obj);
  166. }, [_studentDesktopIconInfo[i]])
  167. }, _frag); //
  168. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  169. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  170. $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  171. }
  172. } else if (_type == 1 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  173. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  174. _content = $$("div", {
  175. className: "U_MD_D_KO",
  176. "onmousedown": U.UF.C.closure(function (obj) {
  177. //防止拖动图标即打开了桌面应用
  178. U.MD.D.click(this, obj);
  179. }, [_teacherDesktopIconInfo[i]]),
  180. "onclick": U.UF.C.closure(function (obj) {
  181. //防止拖动图标即打开了桌面应用
  182. U.MD.D.click(this, obj);
  183. }, [_teacherDesktopIconInfo[i]])
  184. }, _frag); //
  185. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  186. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  187. $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  188. }
  189. } else if (_type == 1 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  190. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  191. _content = $$("div", {
  192. className: "U_MD_D_KO",
  193. "onmousedown": U.UF.C.closure(function (obj) {
  194. //防止拖动图标即打开了桌面应用
  195. U.MD.D.click(this, obj);
  196. }, [_schoolDesktopIconInfo[i]]),
  197. "onclick": U.UF.C.closure(function (obj) {
  198. //防止拖动图标即打开了桌面应用
  199. U.MD.D.click(this, obj);
  200. }, [_schoolDesktopIconInfo[i]])
  201. }, _frag); //
  202. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  203. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  204. $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  205. }
  206. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  207. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  208. _content = $$("div", {
  209. className: "U_MD_D_KO",
  210. "onmousedown": U.UF.C.closure(function (obj) {
  211. //防止拖动图标即打开了桌面应用
  212. U.MD.D.click(this, obj);
  213. }, [_studentDesktopIconInfo[i]]),
  214. "onclick": U.UF.C.closure(function (obj) {
  215. //防止拖动图标即打开了桌面应用
  216. U.MD.D.click(this, obj);
  217. }, [_studentDesktopIconInfo[i]])
  218. }, _frag); //
  219. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  220. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  221. $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  222. }
  223. } else {
  224. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  225. _content = $$("div", {
  226. className: "U_MD_D_KO",
  227. "onmousedown": U.UF.C.closure(function (obj) {
  228. //防止拖动图标即打开了桌面应用
  229. U.MD.D.click(this, obj);
  230. }, [_teacherDesktopIconInfo[i]]),
  231. "onclick": U.UF.C.closure(function (obj) {
  232. //防止拖动图标即打开了桌面应用
  233. U.MD.D.click(this, obj);
  234. }, [_teacherDesktopIconInfo[i]])
  235. }, _frag); //
  236. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  237. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  238. $$("div", { className: "U_MD_D_KOX", "style": { "cssText": "text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -webkit-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; -moz-text-shadow: rgb(100 100 100) 2px 1px 3px, rgb(102 102 102) 0px 1px 0px, rgb(85 85 85) -1px 0px 0px, rgb(153 153 153) 0px -1px 0px; filter: Glow(color=#777777, strength=1)\9;" }, "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  239. }
  240. }
  241. //加载好后给图标定位
  242. U.MD.D.iconPostion($(_frag).Child());
  243. //把图标加载到页面
  244. el.appendChild(_frag);
  245. }
  246. /**
  247. * 显示任务栏
  248. *
  249. * @param {element} 桌面元素
  250. */
  251. U.MD.D.I.displayTaskbar = function (el) {
  252. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  253. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  254. //任务栏位置变化
  255. U.selectEl(el).css({ "bottom": "0px" });
  256. //桌面位置变话
  257. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  258. }
  259. }
  260. //#region 桌面图标拖动逻辑
  261. /**
  262. * 桌面排列图标
  263. *
  264. * @param {element} 桌面元素
  265. * @param {object} 上下相距的距离
  266. * @param {object} 左右相距的距离
  267. * @return {object} 命名空间
  268. */
  269. U.MD.D.iconPostion = function (childs, top, left) {
  270. var i; //用于循环处理
  271. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  272. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  273. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  274. for (i = 0; i < childs.length; i++) {
  275. //如果竖排top超过了范围处理
  276. if (top + 95 > US.height - 10) {
  277. //left超过了页面范围处理,则向上重叠打印处理
  278. if ((left + 180) > US.width) {
  279. top -= 115;
  280. left -= 90;
  281. }
  282. //没有超过范围,那么left+90添加到下一个竖排打印
  283. else {
  284. left += 90;
  285. top = 15;
  286. };
  287. }
  288. //给图标的位置赋值
  289. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  290. if (i < childs.length - 1) {
  291. //页面图标每次向下加115
  292. top += 115;
  293. }
  294. }
  295. //返回最后调用的图标的位置
  296. return [top, left];
  297. }
  298. /**
  299. * 桌面点击事件逻辑
  300. *
  301. * @param {element} 桌面元素
  302. * @param {object} 上下相距的距离
  303. * @param {object} 左右相距的距离
  304. * @return {object} 命名空间
  305. */
  306. U.MD.D.click = function (el, obj) {
  307. var _buttonnumber = event.button; //点击的按钮的事件值
  308. var _userinfo = US.userInfo;
  309. U.UF.EV.stopBubble(); //阻止向上冒泡
  310. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  311. if (_buttonnumber < 2) {
  312. //如果是click事件的处理
  313. if (event.type == "click") {
  314. //如果元素在mousemove事件中没有移动则出发click事件
  315. if (!U.MD.D.I.IsDrag) {
  316. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  317. U.alert("请先登录您的账号!");
  318. setTimeout(() => {
  319. U.MD.U.L.login();
  320. }, 2000);
  321. } else {
  322. //打开应用处理
  323. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  324. }
  325. }
  326. }
  327. //如果是mouse事件的处理
  328. else {
  329. //拖动处理,添加拖动和拖动结束事件
  330. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  331. }
  332. U.MD.D.I.IsDrag = false;
  333. }
  334. }
  335. /**
  336. * 拖动的处理
  337. *
  338. */
  339. U.MD.D.iconMove = function () {
  340. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  341. U.MD.D.I.IsDrag = true;
  342. }
  343. /**
  344. * 拖动结束后,这里是定位处理,以网状的形式定位
  345. *
  346. * @param {element} 拖动的元素
  347. * @return {object} 命名空间
  348. */
  349. U.MD.D.iconUp = function (el) {
  350. var _top = 15,
  351. _left = 20,
  352. _margin,
  353. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  354. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  355. if (_positioninfo["OT"] > 15) {
  356. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  357. _margin = ((_positioninfo["OT"] - 15) % 115 > 55 && _positioninfo["OT"] + 115 < US.height) ? 1 : 0;
  358. _top = (Math.floor((_positioninfo["OT"] - 15) / 115) + _margin) * 115 + 15;
  359. }
  360. if (_positioninfo["OL"] > 20) {
  361. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  362. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  363. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  364. }
  365. //while循环判断么一个重叠的元素
  366. do {
  367. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  368. _top = _positioninfo[0] + 115; //得到定位后的top
  369. _left = _positioninfo[1]; //得到定位后的left
  370. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  371. }
  372. /**
  373. * 判断拖动后图标是否重叠
  374. *
  375. * @param {element} 拖动的元素
  376. * @param {element} 桌面所有的元素
  377. * @param {array} 拖动元素的位置
  378. ----------[0] 上 top
  379. ----------[1] 左 left
  380. * @return {object} 命名空间
  381. */
  382. U.MD.D.isOverlap = function (el, childs, postionarray) {
  383. //循环所有的图标
  384. for (var i = 0; i < childs.length; i++) {
  385. //判断有没有和该图标诶子重叠的元素
  386. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  387. return childs[i]; //如果有返回
  388. }
  389. }
  390. }
  391. //#endregion
  392. //#endregion
  393. //#region 桌面应用
  394. /**
  395. * 打开应用
  396. *
  397. * @param {string} 类型
  398. -----------------Disk 网盘系统
  399. -----------------PDisk 学习系统网盘
  400. -----------------Poto 图片
  401. -----------------Video 视频
  402. -----------------Music 音乐
  403. -----------------Word word
  404. -----------------Excel excel
  405. -----------------Txt 记事本
  406. -----------------PB 学习系统
  407. -----------------Blog 朋友圈系统
  408. -----------------FTP ftp系统
  409. -----------------Group 好友群
  410. -----------------SY 首页系统
  411. -----------------Set 个人设置
  412. -----------------XSet 系统设置
  413. -----------------App 我们所有的app
  414. -----------------BC c.1473.cn 平台
  415. -----------------CWeb d.1473.cn 变成平台
  416. -----------------其他的外联系统 我们统一用iframe打开
  417. * @param {array} 类型
  418. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  419. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  420. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  421. 如果第一个参数为其他,则无第二个参数
  422. * @returns {array}
  423. */
  424. window.addEventListener('message', function (e) { // 监听 message 事件
  425. // alert(e.data.type);
  426. if (e.data.screenType && e.data.screenType == "2") { //项目管理传入
  427. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType)
  428. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  429. U.MD.D.I.selectUser();
  430. } else if (e.data.allScreen && e.data.allScreen == "1") {
  431. var _formel = document.getElementById("study");
  432. U.UF.F.windowZooming(_formel);
  433. } else if (e.data.allScreen && e.data.allScreen == "2") {
  434. var _formel = document.getElementById("studyDetail");
  435. U.UF.F.windowZooming(_formel);
  436. } else if (e.data.allScreen && e.data.allScreen == "3") {
  437. var _formel = document.getElementById("studentStudy");
  438. U.UF.F.windowZooming(_formel);
  439. } else if (e.data.allScreen && e.data.allScreen == "6") {
  440. var _formel = document.getElementById("study");
  441. //如果最大化了,那么就把他缩小
  442. if (_formel.ismaximize) {
  443. return;
  444. }
  445. U.UF.F.windowZooming(_formel);
  446. } else if (e.data.allScreen && e.data.allScreen == "4") {
  447. var _formel = document.getElementById("studyDetail");
  448. //如果最大化了,那么就把他缩小
  449. if (_formel.ismaximize) {
  450. return;
  451. }
  452. U.UF.F.windowZooming(_formel);
  453. } else if (e.data.allScreen && e.data.allScreen == "5") {
  454. var _formel = document.getElementById("studentStudy");
  455. if (_formel.ismaximize) {
  456. return;
  457. }
  458. U.UF.F.windowZooming(_formel);
  459. } else if (e.data.tools && e.data.tools == "1") {
  460. // U.MD.D.I.openApplication("whiteboard")
  461. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  462. } else if (e.data.tools && e.data.tools == "2") {
  463. U.MD.D.I.openApplication("note")
  464. } else if (e.data.tools && e.data.tools == "3") {
  465. // U.MD.D.I.openApplication("mind")
  466. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  467. } else if (e.data.tools && e.data.tools == "4") {
  468. U.MD.D.I.openApplication("investigation")
  469. } else if (e.data.tools && e.data.tools == "6") {
  470. // U.MD.D.I.openApplication("doc")
  471. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  472. } else if (e.data.tools && e.data.tools == "7") {
  473. // U.MD.D.I.openApplication("mindNetwork")
  474. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  475. } else if (e.data.tools && e.data.tools == "8") {
  476. U.MD.D.I.openApplication("library")
  477. } else if (e.data.tools && e.data.tools == "17") {
  478. U.MD.D.I.openApplication("stuLibrary")
  479. } else if (e.data.tools && e.data.tools == "18") {
  480. U.MD.D.I.openApplication("train")
  481. } else if (e.data.tools && e.data.tools == "21") {
  482. U.MD.D.I.openApplication("program")
  483. } else if (e.data.tools && e.data.tools == "22") {
  484. U.MD.D.I.openApplication("AIprogram2")
  485. } else if (e.data.tools && e.data.tools == "23") {
  486. U.MD.D.I.openApplication("Pythonprogram")
  487. } else if (e.data.tools && e.data.tools == "24") {
  488. U.MD.D.I.openApplication("AIprogram")
  489. } else if (e.data.tools && e.data.tools == "25") {
  490. U.MD.D.I.openApplication("sys")
  491. } else if (e.data.tools && e.data.tools == "26") {
  492. // U.MD.D.I.openApplication("courseDesign")
  493. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  494. } else if (e.data.tools && e.data.tools == "31") {
  495. U.MD.D.I.openApplication("netWorkPanel")
  496. } else if (e.data.tools && e.data.tools == "32") {
  497. U.MD.D.I.openApplication("codeEdit")
  498. } else if (e.data.tools && e.data.tools == "28") {
  499. U.MD.D.I.openApplication("translation")
  500. } else if (e.data.tools && e.data.tools == "37") {
  501. U.MD.D.I.openApplication("mohe")
  502. } else if (e.data.tools && e.data.tools == "38") {
  503. U.MD.D.I.openApplication("24game")
  504. } else if (e.data.tools && e.data.tools == "39") {
  505. U.MD.D.I.openApplication("GeoGebra")
  506. }
  507. });
  508. U.MD.D.I.selectUser = function () {
  509. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  510. if (res.value[0].length > 0) {
  511. US.userInfo = res.value[0][0];
  512. $(".userName")[0].innerHTML = US.userInfo.username;
  513. }
  514. }, [], { "type": "GET", "withCredentials": true });
  515. }
  516. U.MD.D.I.openInApplication = function (str, data, screenType) {
  517. var _userinfo = US.userInfo, //登录用户信息
  518. _userid = US.userInfo.userid, //登录用户id
  519. _oid = _userinfo.organizeid,
  520. _type = US.userInfo.type,
  521. _classId = US.userInfo.classid;
  522. switch (str) {
  523. case "studyDetail":
  524. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  525. setTimeout(() => {
  526. U.MD.U.L.login();
  527. }, 2000);
  528. } else {
  529. _formdiv = new U.UF.UI.form(
  530. "项目详情",
  531. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&courseId=" + data + "&tType=" + 3 + "&cid=" + _classId + "&screenType=" + screenType }), {
  532. "id": "studyDetail",
  533. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  534. "onresize": function () { }
  535. }, {
  536. closecallback: function () { }
  537. }, { "style": { "height": "36px" } }).form; //创建窗体
  538. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  539. break;
  540. }
  541. }
  542. }
  543. U.MD.D.I.openApplication = function (str, obj, info) {
  544. obj = obj || {};
  545. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  546. _formdiv, //创建任务栏时同时弹出的窗体元素。
  547. _userinfo = US.userInfo, //登录用户信息
  548. _userid = obj.userid || US.userInfo.userid, //登录用户id
  549. _oid = obj.organizeid || _userinfo.organizeid,
  550. _type = US.userInfo.type,
  551. _classId = US.userInfo.classid,
  552. _TscreenType = 1
  553. _screenType = 2,
  554. _SscreenType = 3;
  555. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  556. switch (str) {
  557. case "studnetProject": //好友打开
  558. _formdiv = new U.UF.UI.form(
  559. "我的项目",
  560. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  561. "id": "studnetProject",
  562. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  563. "onresize": function () { }
  564. }, {
  565. closecallback: function () { }
  566. }, { "style": { "height": "36px" } }).form; //创建窗体
  567. _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); } }
  568. break;
  569. case "studentEvaluate": //好友打开
  570. _formdiv = new U.UF.UI.form(
  571. "我的评价",
  572. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
  573. "id": "studentEvaluate",
  574. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  575. "onresize": function () { }
  576. }, {
  577. closecallback: function () { }
  578. }, { "style": { "height": "36px" } }).form; //创建窗体
  579. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  580. break;
  581. case "my":
  582. _formdiv = new U.UF.UI.form(
  583. "我的资料",
  584. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid }), {
  585. "id": "my",
  586. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  587. "onresize": function () { }
  588. }, {
  589. closecallback: function () { }
  590. }, { "style": { "height": "36px" } }).form; //创建窗体
  591. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  592. break;
  593. case "program":
  594. _formdiv = new U.UF.UI.form(
  595. "编程平台",
  596. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  597. "id": "program",
  598. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  599. "onresize": function () { }
  600. }, {
  601. closecallback: function () { }
  602. }, { "style": { "height": "36px" } }).form; //创建窗体
  603. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  604. break;
  605. case "library":
  606. _formdiv = new U.UF.UI.form(
  607. "素材库",
  608. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid }), {
  609. "id": "library",
  610. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  611. "onresize": function () { }
  612. }, {
  613. closecallback: function () { }
  614. }, { "style": { "height": "36px" } }).form; //创建窗体
  615. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  616. break;
  617. case "whiteboard":
  618. _formdiv = new U.UF.UI.form(
  619. "电子白板",
  620. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  621. "id": "whiteboard",
  622. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  623. "onresize": function () { }
  624. }, {
  625. closecallback: function () { }
  626. }, { "style": { "height": "36px" } }).form; //创建窗体
  627. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  628. break;
  629. case "investigation":
  630. _formdiv = new U.UF.UI.form(
  631. "问卷调查",
  632. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
  633. "id": "investigation",
  634. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  635. "onresize": function () { }
  636. }, {
  637. closecallback: function () { }
  638. }, { "style": { "height": "36px" } }).form; //创建窗体
  639. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  640. break;
  641. case "note":
  642. _formdiv = new U.UF.UI.form(
  643. "便签分类",
  644. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid }), {
  645. "id": "note",
  646. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  647. "onresize": function () { }
  648. }, {
  649. closecallback: function () { }
  650. }, { "style": { "height": "36px" } }).form; //创建窗体
  651. _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); } }
  652. break;
  653. // case "score":
  654. // _formdiv = new U.UF.UI.form(
  655. // "量规评分",
  656. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  657. // "id": "score",
  658. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  659. // "onresize": function() {}
  660. // }, {
  661. // closecallback: function() {}
  662. // }, { "style": { "height": "36px" } }).form; //创建窗体
  663. // _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); } }
  664. // break;
  665. case "mind":
  666. _formdiv = new U.UF.UI.form(
  667. "思维导图",
  668. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  669. "id": "mind",
  670. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  671. "onresize": function () { }
  672. }, {
  673. closecallback: function () { }
  674. }, { "style": { "height": "36px" } }).form; //创建窗体
  675. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  676. break;
  677. case "doc":
  678. // U.MD.D.I.isRoom();
  679. _formdiv = new U.UF.UI.form(
  680. "协同文档",
  681. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  682. "id": "doc",
  683. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  684. "onresize": function () { }
  685. }, {
  686. closecallback: function () { }
  687. }, { "style": { "height": "36px" } }).form; //创建窗体
  688. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  689. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  690. // })
  691. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  692. break;
  693. case "studentStudy":
  694. _formdiv = new U.UF.UI.form(
  695. "学习中心",
  696. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  697. "id": "studentStudy",
  698. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  699. "onresize": function () { }
  700. }, {
  701. closecallback: function () { }
  702. }, { "style": { "height": "36px" } }).form; //创建窗体
  703. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  704. break;
  705. case "train": //好友打开
  706. _formdiv = new U.UF.UI.form(
  707. "训练平台",
  708. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  709. "id": "train",
  710. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  711. "onresize": function () { }
  712. }, {
  713. closecallback: function () { }
  714. }, { "style": { "height": "36px" } }).form; //创建窗体
  715. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  716. break;
  717. case "mindNetwork": //好友打开
  718. _formdiv = new U.UF.UI.form(
  719. "思维网格",
  720. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
  721. "id": "mindNetwork",
  722. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  723. "onresize": function () { }
  724. }, {
  725. closecallback: function () { }
  726. }, { "style": { "height": "36px" } }).form; //创建窗体
  727. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  728. break;
  729. case "studentClassRoom": //好友打开
  730. _formdiv = new U.UF.UI.form(
  731. "实时课堂",
  732. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/liveRoom?userid=" + _userid + "&oid=" + _oid }), {
  733. "id": "studentClassRoom",
  734. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  735. "onresize": function () { }
  736. }, {
  737. closecallback: function () { }
  738. }, { "style": { "height": "36px" } }).form; //创建窗体
  739. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  740. setTimeout(() => {
  741. U.UF.F.windowZooming(_formdiv)
  742. }, 0);
  743. break;
  744. }
  745. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  746. switch (str) {
  747. case "studnetProject": //好友打开
  748. _formdiv = new U.UF.UI.form(
  749. "我的项目",
  750. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  751. "id": "studnetProject",
  752. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  753. "onresize": function () { }
  754. }, {
  755. closecallback: function () { }
  756. }, { "style": { "height": "36px" } }).form; //创建窗体
  757. _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); } }
  758. break;
  759. case "studentEvaluate": //好友打开
  760. _formdiv = new U.UF.UI.form(
  761. "我的评价",
  762. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
  763. "id": "studentEvaluate",
  764. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  765. "onresize": function () { }
  766. }, {
  767. closecallback: function () { }
  768. }, { "style": { "height": "36px" } }).form; //创建窗体
  769. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  770. break;
  771. case "my":
  772. _formdiv = new U.UF.UI.form(
  773. "我的资料",
  774. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid }), {
  775. "id": "my",
  776. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  777. "onresize": function () { }
  778. }, {
  779. closecallback: function () { }
  780. }, { "style": { "height": "36px" } }).form; //创建窗体
  781. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  782. break;
  783. case "program":
  784. _formdiv = new U.UF.UI.form(
  785. "编程平台",
  786. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  787. "id": "program",
  788. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  789. "onresize": function () { }
  790. }, {
  791. closecallback: function () { }
  792. }, { "style": { "height": "36px" } }).form; //创建窗体
  793. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  794. break;
  795. case "library":
  796. _formdiv = new U.UF.UI.form(
  797. "素材库",
  798. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid }), {
  799. "id": "library",
  800. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  801. "onresize": function () { }
  802. }, {
  803. closecallback: function () { }
  804. }, { "style": { "height": "36px" } }).form; //创建窗体
  805. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  806. break;
  807. case "whiteboard":
  808. _formdiv = new U.UF.UI.form(
  809. "电子白板",
  810. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  811. "id": "whiteboard",
  812. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  813. "onresize": function () { }
  814. }, {
  815. closecallback: function () { }
  816. }, { "style": { "height": "36px" } }).form; //创建窗体
  817. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  818. break;
  819. case "investigation":
  820. _formdiv = new U.UF.UI.form(
  821. "问卷调查",
  822. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
  823. "id": "investigation",
  824. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  825. "onresize": function () { }
  826. }, {
  827. closecallback: function () { }
  828. }, { "style": { "height": "36px" } }).form; //创建窗体
  829. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  830. break;
  831. case "note":
  832. _formdiv = new U.UF.UI.form(
  833. "便签分类",
  834. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid }), {
  835. "id": "note",
  836. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  837. "onresize": function () { }
  838. }, {
  839. closecallback: function () { }
  840. }, { "style": { "height": "36px" } }).form; //创建窗体
  841. _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); } }
  842. break;
  843. // case "score":
  844. // _formdiv = new U.UF.UI.form(
  845. // "量规评分",
  846. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  847. // "id": "score",
  848. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  849. // "onresize": function() {}
  850. // }, {
  851. // closecallback: function() {}
  852. // }, { "style": { "height": "36px" } }).form; //创建窗体
  853. // _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); } }
  854. // break;
  855. case "mind":
  856. _formdiv = new U.UF.UI.form(
  857. "思维导图",
  858. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  859. "id": "mind",
  860. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  861. "onresize": function () { }
  862. }, {
  863. closecallback: function () { }
  864. }, { "style": { "height": "36px" } }).form; //创建窗体
  865. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  866. break;
  867. case "doc":
  868. // U.MD.D.I.isRoom();
  869. _formdiv = new U.UF.UI.form(
  870. "协同文档",
  871. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  872. "id": "doc",
  873. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  874. "onresize": function () { }
  875. }, {
  876. closecallback: function () { }
  877. }, { "style": { "height": "36px" } }).form; //创建窗体
  878. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  879. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  880. })
  881. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  882. break;
  883. case "train": //好友打开
  884. _formdiv = new U.UF.UI.form(
  885. "训练平台",
  886. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  887. "id": "train",
  888. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  889. "onresize": function () { }
  890. }, {
  891. closecallback: function () { }
  892. }, { "style": { "height": "36px" } }).form; //创建窗体
  893. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  894. break;
  895. case "studentStudy":
  896. _formdiv = new U.UF.UI.form(
  897. "学习中心",
  898. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  899. "id": "studentStudy",
  900. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  901. "onresize": function () { }
  902. }, {
  903. closecallback: function () { }
  904. }, { "style": { "height": "36px" } }).form; //创建窗体
  905. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  906. break;
  907. case "mindNetwork": //好友打开
  908. _formdiv = new U.UF.UI.form(
  909. "思维网格",
  910. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
  911. "id": "mindNetwork",
  912. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  913. "onresize": function () { }
  914. }, {
  915. closecallback: function () { }
  916. }, { "style": { "height": "36px" } }).form; //创建窗体
  917. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  918. break;
  919. case "studentClassRoom": //好友打开
  920. _formdiv = new U.UF.UI.form(
  921. "实时课堂",
  922. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/liveRoom?userid=" + _userid + "&oid=" + _oid }), {
  923. "id": "studentClassRoom",
  924. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  925. "onresize": function () { }
  926. }, {
  927. closecallback: function () { }
  928. }, { "style": { "height": "36px" } }).form; //创建窗体
  929. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  930. setTimeout(() => {
  931. U.UF.F.windowZooming(_formdiv)
  932. }, 0);
  933. break;
  934. }
  935. } else if (_type == 1 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  936. //选择应用处理
  937. switch (str) {
  938. case "project": //好友打开
  939. _formdiv = new U.UF.UI.form(
  940. "项目管理",
  941. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid }), {
  942. "id": "project",
  943. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  944. "onresize": function () { }
  945. }, {
  946. closecallback: function () { }
  947. }, { "style": { "height": "36px" } }).form; //创建窗体
  948. _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); } }
  949. break;
  950. case "student":
  951. _formdiv = new U.UF.UI.form(
  952. "学生管理",
  953. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId }), {
  954. "id": "student",
  955. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  956. "onresize": function () { }
  957. }, {
  958. closecallback: function () { }
  959. }, { "style": { "height": "36px" } }).form; //创建窗体
  960. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  961. break;
  962. case "evaluate":
  963. _formdiv = new U.UF.UI.form(
  964. "学生评价",
  965. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
  966. "id": "evaluate",
  967. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  968. "onresize": function () { }
  969. }, {
  970. closecallback: function () { }
  971. }, { "style": { "height": "36px" } }).form; //创建窗体
  972. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  973. break;
  974. case "sys":
  975. _formdiv = new U.UF.UI.form(
  976. "目标管理",
  977. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid }), {
  978. "id": "sys",
  979. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  980. "onresize": function () { }
  981. }, {
  982. closecallback: function () { }
  983. }, { "style": { "height": "36px" } }).form; //创建窗体
  984. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  985. break;
  986. case "courseDesign":
  987. _formdiv = new U.UF.UI.form(
  988. "课程设计",
  989. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design/index.html" }), {
  990. "id": "courseDesign",
  991. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  992. "onresize": function () { }
  993. }, {
  994. closecallback: function () { }
  995. }, { "style": { "height": "36px" } }).form; //创建窗体
  996. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "课程设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  997. break;
  998. case "program":
  999. _formdiv = new U.UF.UI.form(
  1000. "编程平台",
  1001. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1002. "id": "program",
  1003. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1004. "onresize": function () { }
  1005. }, {
  1006. closecallback: function () { }
  1007. }, { "style": { "height": "36px" } }).form; //创建窗体
  1008. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1009. break;
  1010. case "class":
  1011. _formdiv = new U.UF.UI.form(
  1012. "班级管理",
  1013. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid }), {
  1014. "id": "class",
  1015. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1016. "onresize": function () { }
  1017. }, {
  1018. closecallback: function () { }
  1019. }, { "style": { "height": "36px" } }).form; //创建窗体
  1020. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1021. break;
  1022. case "my":
  1023. _formdiv = new U.UF.UI.form(
  1024. "我的资料",
  1025. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid }), {
  1026. "id": "my",
  1027. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1028. "onresize": function () { }
  1029. }, {
  1030. closecallback: function () { }
  1031. }, { "style": { "height": "36px" } }).form; //创建窗体
  1032. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1033. break;
  1034. case "notice":
  1035. _formdiv = new U.UF.UI.form(
  1036. "通知公告",
  1037. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/notice?userid=" + _userid }), {
  1038. "id": "notice",
  1039. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1040. "onresize": function () { }
  1041. }, {
  1042. closecallback: function () { }
  1043. }, { "style": { "height": "36px" } }).form; //创建窗体
  1044. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1045. break;
  1046. case "library":
  1047. _formdiv = new U.UF.UI.form(
  1048. "素材库",
  1049. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid }), {
  1050. "id": "library",
  1051. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1052. "onresize": function () { }
  1053. }, {
  1054. closecallback: function () { }
  1055. }, { "style": { "height": "36px" } }).form; //创建窗体
  1056. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1057. break;
  1058. case "whiteboard":
  1059. _formdiv = new U.UF.UI.form(
  1060. "电子白板",
  1061. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1062. "id": "whiteboard",
  1063. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1064. "onresize": function () { }
  1065. }, {
  1066. closecallback: function () { }
  1067. }, { "style": { "height": "36px" } }).form; //创建窗体
  1068. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1069. break;
  1070. case "investigation":
  1071. _formdiv = new U.UF.UI.form(
  1072. "问卷调查",
  1073. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
  1074. "id": "investigation",
  1075. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1076. "onresize": function () { }
  1077. }, {
  1078. closecallback: function () { }
  1079. }, { "style": { "height": "36px" } }).form; //创建窗体
  1080. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1081. break;
  1082. case "note":
  1083. _formdiv = new U.UF.UI.form(
  1084. "便签分类",
  1085. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid }), {
  1086. "id": "note",
  1087. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1088. "onresize": function () { }
  1089. }, {
  1090. closecallback: function () { }
  1091. }, { "style": { "height": "36px" } }).form; //创建窗体
  1092. _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); } }
  1093. break;
  1094. // case "score":
  1095. // _formdiv = new U.UF.UI.form(
  1096. // "量规评分",
  1097. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1098. // "id": "score",
  1099. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1100. // "onresize": function() {}
  1101. // }, {
  1102. // closecallback: function() {}
  1103. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1104. // _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); } }
  1105. // break;
  1106. case "mind":
  1107. _formdiv = new U.UF.UI.form(
  1108. "思维导图",
  1109. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1110. "id": "mind",
  1111. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1112. "onresize": function () { }
  1113. }, {
  1114. closecallback: function () { }
  1115. }, { "style": { "height": "36px" } }).form; //创建窗体
  1116. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1117. break;
  1118. case "doc":
  1119. // U.MD.D.I.isRoom();
  1120. _formdiv = new U.UF.UI.form(
  1121. "协同文档",
  1122. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1123. "id": "doc",
  1124. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1125. "onresize": function () { }
  1126. }, {
  1127. closecallback: function () { }
  1128. }, { "style": { "height": "36px" } }).form; //创建窗体
  1129. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1130. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1131. })
  1132. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1133. break;
  1134. case "study":
  1135. _formdiv = new U.UF.UI.form(
  1136. "学习中心",
  1137. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1138. "id": "study",
  1139. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1140. "onresize": function () { }
  1141. }, {
  1142. closecallback: function () { }
  1143. }, { "style": { "height": "36px" } }).form; //创建窗体
  1144. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1145. break;
  1146. case "mindNetwork": //好友打开
  1147. _formdiv = new U.UF.UI.form(
  1148. "思维网格",
  1149. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
  1150. "id": "mindNetwork",
  1151. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1152. "onresize": function () { }
  1153. }, {
  1154. closecallback: function () { }
  1155. }, { "style": { "height": "36px" } }).form; //创建窗体
  1156. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1157. break;
  1158. case "train": //好友打开
  1159. _formdiv = new U.UF.UI.form(
  1160. "训练平台",
  1161. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1162. "id": "mindNetwork",
  1163. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1164. "onresize": function () { }
  1165. }, {
  1166. closecallback: function () { }
  1167. }, { "style": { "height": "36px" } }).form; //创建窗体
  1168. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1169. break;
  1170. case "teacherClassRoom": //好友打开
  1171. _formdiv = new U.UF.UI.form(
  1172. "实时课堂",
  1173. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/classRoom?userid=" + _userid + "&oid=" + _oid }), {
  1174. "id": "teacherClassRoom",
  1175. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1176. "onresize": function () { }
  1177. }, {
  1178. closecallback: function () { }
  1179. }, { "style": { "height": "36px" } }).form; //创建窗体
  1180. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1181. setTimeout(() => {
  1182. U.UF.F.windowZooming(_formdiv)
  1183. }, 0);
  1184. break;
  1185. }
  1186. } else if (_type == 1 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1187. switch (str) {
  1188. case "project": //好友打开
  1189. _formdiv = new U.UF.UI.form(
  1190. "项目管理",
  1191. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid }), {
  1192. "id": "project",
  1193. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1194. "onresize": function () { }
  1195. }, {
  1196. closecallback: function () { }
  1197. }, { "style": { "height": "36px" } }).form; //创建窗体
  1198. _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); } }
  1199. break;
  1200. case "evaluate":
  1201. _formdiv = new U.UF.UI.form(
  1202. "学生评价",
  1203. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
  1204. "id": "evaluate",
  1205. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1206. "onresize": function () { }
  1207. }, {
  1208. closecallback: function () { }
  1209. }, { "style": { "height": "36px" } }).form; //创建窗体
  1210. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1211. break;
  1212. case "notice":
  1213. _formdiv = new U.UF.UI.form(
  1214. "通知公告",
  1215. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/notice?userid=" + _userid }), {
  1216. "id": "notice",
  1217. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1218. "onresize": function () { }
  1219. }, {
  1220. closecallback: function () { }
  1221. }, { "style": { "height": "36px" } }).form; //创建窗体
  1222. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1223. break;
  1224. case "stuLibrary":
  1225. _formdiv = new U.UF.UI.form(
  1226. "学习资料",
  1227. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/studyLibrary?userid=" + _userid }), {
  1228. "id": "stuLibrary",
  1229. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1230. "onresize": function () { }
  1231. }, {
  1232. closecallback: function () { }
  1233. }, { "style": { "height": "36px" } }).form; //创建窗体
  1234. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/stuLibrary.png)" }, "name": "学习资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1235. break;
  1236. case "program":
  1237. _formdiv = new U.UF.UI.form(
  1238. "编程平台",
  1239. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1240. "id": "program",
  1241. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1242. "onresize": function () { }
  1243. }, {
  1244. closecallback: function () { }
  1245. }, { "style": { "height": "36px" } }).form; //创建窗体
  1246. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1247. break;
  1248. case "whiteboard":
  1249. _formdiv = new U.UF.UI.form(
  1250. "电子白板",
  1251. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1252. "id": "whiteboard",
  1253. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1254. "onresize": function () { }
  1255. }, {
  1256. closecallback: function () { }
  1257. }, { "style": { "height": "36px" } }).form; //创建窗体
  1258. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1259. break;
  1260. case "investigation":
  1261. _formdiv = new U.UF.UI.form(
  1262. "问卷调查",
  1263. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
  1264. "id": "investigation",
  1265. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1266. "onresize": function () { }
  1267. }, {
  1268. closecallback: function () { }
  1269. }, { "style": { "height": "36px" } }).form; //创建窗体
  1270. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1271. break;
  1272. case "mind":
  1273. _formdiv = new U.UF.UI.form(
  1274. "思维导图",
  1275. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1276. "id": "mind",
  1277. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1278. "onresize": function () { }
  1279. }, {
  1280. closecallback: function () { }
  1281. }, { "style": { "height": "36px" } }).form; //创建窗体
  1282. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1283. break;
  1284. case "doc":
  1285. // U.MD.D.I.isRoom();
  1286. _formdiv = new U.UF.UI.form(
  1287. "协同文档",
  1288. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1289. "id": "doc",
  1290. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1291. "onresize": function () { }
  1292. }, {
  1293. closecallback: function () { }
  1294. }, { "style": { "height": "36px" } }).form; //创建窗体
  1295. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1296. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1297. })
  1298. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1299. break;
  1300. case "study":
  1301. _formdiv = new U.UF.UI.form(
  1302. "学习中心",
  1303. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1304. "id": "study",
  1305. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1306. "onresize": function () { }
  1307. }, {
  1308. closecallback: function () { }
  1309. }, { "style": { "height": "36px" } }).form; //创建窗体
  1310. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1311. break;
  1312. case "mindNetwork": //好友打开
  1313. _formdiv = new U.UF.UI.form(
  1314. "思维网格",
  1315. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
  1316. "id": "mindNetwork",
  1317. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1318. "onresize": function () { }
  1319. }, {
  1320. closecallback: function () { }
  1321. }, { "style": { "height": "36px" } }).form; //创建窗体
  1322. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1323. break;
  1324. case "train": //好友打开
  1325. _formdiv = new U.UF.UI.form(
  1326. "训练平台",
  1327. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1328. "id": "train",
  1329. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1330. "onresize": function () { }
  1331. }, {
  1332. closecallback: function () { }
  1333. }, { "style": { "height": "36px" } }).form; //创建窗体
  1334. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1335. break;
  1336. case "sys":
  1337. _formdiv = new U.UF.UI.form(
  1338. "目标管理",
  1339. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid }), {
  1340. "id": "sys",
  1341. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1342. "onresize": function () { }
  1343. }, {
  1344. closecallback: function () { }
  1345. }, { "style": { "height": "36px" } }).form; //创建窗体
  1346. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1347. break;
  1348. case "courseDesign":
  1349. _formdiv = new U.UF.UI.form(
  1350. "课程设计",
  1351. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design/index.html" }), {
  1352. "id": "courseDesign",
  1353. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1354. "onresize": function () { }
  1355. }, {
  1356. closecallback: function () { }
  1357. }, { "style": { "height": "36px" } }).form; //创建窗体
  1358. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "课程设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1359. break;
  1360. }
  1361. } else if (!_type) {
  1362. switch (str) {
  1363. case "my":
  1364. _formdiv = new U.UF.UI.form(
  1365. "我的资料",
  1366. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid }), {
  1367. "id": "my",
  1368. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1369. "onresize": function () { }
  1370. }, {
  1371. closecallback: function () { }
  1372. }, { "style": { "height": "36px" } }).form; //创建窗体
  1373. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1374. break;
  1375. }
  1376. }
  1377. switch (str) {
  1378. // AIprogram2 AI体验 aihub.cocorobo.cn
  1379. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  1380. // AIprogram AI编程 ai-blockly.cocorobo.cn
  1381. case "AIprogram2": //AI体验
  1382. _formdiv = new U.UF.UI.form(
  1383. "AI体验",
  1384. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  1385. "id": "AIprogram2",
  1386. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1387. "onresize": function () { }
  1388. }, {
  1389. closecallback: function () { }
  1390. }, { "style": { "height": "36px" } }).form; //创建窗体
  1391. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram2.png)" }, "name": "AI体验", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1392. break;
  1393. case "Pythonprogram": //python编程
  1394. _formdiv = new U.UF.UI.form(
  1395. "Python编程",
  1396. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  1397. "id": "Pythonprogram",
  1398. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1399. "onresize": function () { }
  1400. }, {
  1401. closecallback: function () { }
  1402. }, { "style": { "height": "36px" } }).form; //创建窗体
  1403. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Pythonprogram.png)" }, "name": "Python编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1404. break;
  1405. case "AIprogram": //ai编程
  1406. _formdiv = new U.UF.UI.form(
  1407. "AI编程平台",
  1408. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  1409. "id": "AIprogram",
  1410. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1411. "onresize": function () { }
  1412. }, {
  1413. closecallback: function () { }
  1414. }, { "style": { "height": "36px" } }).form; //创建窗体
  1415. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/program.png)" }, "name": "AI编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1416. break;
  1417. case "resources": //国家教育
  1418. _formdiv = new U.UF.UI.form(
  1419. "国家教育",
  1420. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  1421. "id": "resources",
  1422. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1423. "onresize": function () { }
  1424. }, {
  1425. closecallback: function () { }
  1426. }, { "style": { "height": "36px" } }).form; //创建窗体
  1427. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/resources.png)" }, "name": "国家教育", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1428. break;
  1429. case "codeEdit": //源码编辑
  1430. _formdiv = new U.UF.UI.form(
  1431. "源码编辑",
  1432. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  1433. "id": "codeEdit",
  1434. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1435. "onresize": function () { }
  1436. }, {
  1437. closecallback: function () { }
  1438. }, { "style": { "height": "36px" } }).form; //创建窗体
  1439. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/code.png)" }, "name": "源码编辑", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1440. break; //
  1441. case "MindMap": //MindMap
  1442. _formdiv = new U.UF.UI.form(
  1443. "MindMap",
  1444. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  1445. "id": "MindMap",
  1446. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1447. "onresize": function () { }
  1448. }, {
  1449. closecallback: function () { }
  1450. }, { "style": { "height": "36px" } }).form; //创建窗体
  1451. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/MIndMap.png)" }, "name": "MindMap", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1452. break;
  1453. case "netWorkPanel": //netWorkPanel
  1454. _formdiv = new U.UF.UI.form(
  1455. "netWorkPanel",
  1456. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  1457. "id": "netWorkPanel",
  1458. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1459. "onresize": function () { }
  1460. }, {
  1461. closecallback: function () { }
  1462. }, { "style": { "height": "36px" } }).form; //创建窗体
  1463. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/netWorkPanel.png)" }, "name": "netWorkPanel", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1464. break;
  1465. case "GeoGebra": //GeoGebra
  1466. _formdiv = new U.UF.UI.form(
  1467. "GeoGebra",
  1468. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  1469. "id": "GeoGebra",
  1470. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1471. "onresize": function () { }
  1472. }, {
  1473. closecallback: function () { }
  1474. }, { "style": { "height": "36px" } }).form; //创建窗体
  1475. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/GeoGebra.png)" }, "name": "GeoGebra", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1476. break;
  1477. case "translation": //翻译
  1478. _formdiv = new U.UF.UI.form(
  1479. "翻译",
  1480. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  1481. "id": "translation",
  1482. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1483. "onresize": function () { }
  1484. }, {
  1485. closecallback: function () { }
  1486. }, { "style": { "height": "36px" } }).form; //创建窗体
  1487. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/translation.png)" }, "name": "翻译", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1488. break;
  1489. case "mohe": //魔盒
  1490. _formdiv = new U.UF.UI.form(
  1491. "魔盒识字",
  1492. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  1493. "id": "mohe",
  1494. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  1495. "onresize": function () { }
  1496. }, {
  1497. closecallback: function () { }
  1498. }, { "style": { "height": "36px" } }).form; //创建窗体
  1499. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mohe.png)" }, "name": "魔盒识字", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1500. break;
  1501. case "24game": //24点
  1502. _formdiv = new U.UF.UI.form(
  1503. "24点",
  1504. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  1505. "id": "24game",
  1506. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  1507. "onresize": function () { }
  1508. }, {
  1509. closecallback: function () { }
  1510. }, { "style": { "height": "36px" } }).form; //创建窗体
  1511. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/24game.png)" }, "name": "24点", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1512. break;
  1513. }
  1514. //U.MD.D.I.openClick(str);
  1515. //如果有任务栏信息
  1516. if (_taskbar) {
  1517. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  1518. }
  1519. }
  1520. // U.MD.D.I.openClick = function(str){
  1521. // var click = '';
  1522. // switch(str){
  1523. // case 'friend':
  1524. // click = '我的好友';
  1525. // break;
  1526. // case 'domain':
  1527. // click = '域名管理';
  1528. // break;
  1529. // case 'disk':
  1530. // click = '我的云盘';
  1531. // break;
  1532. // case 'word':
  1533. // click = 'Word';
  1534. // break;
  1535. // case 'excel':
  1536. // click = 'Execl';
  1537. // break;
  1538. // case 'txt':
  1539. // click = '文本文件';
  1540. // break;
  1541. // case 'lookupFriend':
  1542. // click = '查找好友';
  1543. // break;
  1544. // case 'ftp':
  1545. // click = 'FTP';
  1546. // break;
  1547. // case 'group':
  1548. // click = '群组';
  1549. // break;
  1550. // case 'set':
  1551. // click = '我的设置';
  1552. // break;
  1553. // case 'systemSet':
  1554. // click = '系统设置';
  1555. // break;
  1556. // case 'boomYun':
  1557. // click = '互联办公';
  1558. // break;
  1559. // case 'xz':
  1560. // click = '云端下载';
  1561. // break;
  1562. // case 'client':
  1563. // click = '有思浏览器';
  1564. // break;
  1565. // case 'backEndProgramming':
  1566. // click = '在线后台编程';
  1567. // break;
  1568. // case 'frontEndProgramming':
  1569. // click = '在线前端编程';
  1570. // break;
  1571. // default: break;
  1572. // }
  1573. // if(U.MD.D.I.Ip && click){
  1574. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  1575. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  1576. // })
  1577. // }
  1578. // }
  1579. /**
  1580. *函数作用:ajax简易函数,使用post格式
  1581. *@param url {data} 后台地址
  1582. *@param data {data} 参数json
  1583. *@param fn {data} 回调函数
  1584. *
  1585. */
  1586. // U.MD.D.I.Mysqlrequest = function(url,fn){
  1587. // var xhr = new XMLHttpRequest();
  1588. // xhr.open("GET",url,true);
  1589. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  1590. // xhr.onreadystatechange = function(){
  1591. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  1592. // fn.call(this,xhr.responseText);
  1593. // }
  1594. // };
  1595. // xhr.send();
  1596. // }
  1597. /*判断是否是内网IP*/
  1598. // U.MD.D.I.isInnerIPFn = function(str){
  1599. // var curPageUrl = str;
  1600. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  1601. // curPageUrl =curPageUrl.replace(reg1,'');
  1602. // // console.log('curPageUrl-1 '+curPageUrl);
  1603. // var reg2 = /\:+/g;//替换冒号为一点
  1604. // curPageUrl =curPageUrl.replace(reg2,'.');
  1605. // // console.log('curPageUrl-2 '+curPageUrl);
  1606. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  1607. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  1608. // if(curPageUrl[2] != '16'){
  1609. // return ipAddress;
  1610. // }else{
  1611. // return false;
  1612. // }
  1613. // }
  1614. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  1615. // //compatibility for firefox and chrome
  1616. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  1617. // var pc = new myPeerConnection({
  1618. // iceServers: []
  1619. // }),
  1620. // noop = function() {},
  1621. // localIPs = {},
  1622. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  1623. // key;
  1624. // function iterateIP(ip) {
  1625. // if (!localIPs[ip]) onNewIP(ip);
  1626. // localIPs[ip] = true;
  1627. // }
  1628. // //create a bogus data channel
  1629. // pc.createDataChannel("");
  1630. // // create offer and set local description
  1631. // pc.createOffer().then(function(sdp) {
  1632. // sdp.sdp.split('\n').forEach(function(line) {
  1633. // if (line.indexOf('candidate') < 0) return;
  1634. // line.match(ipRegex).forEach(iterateIP);
  1635. // });
  1636. // pc.setLocalDescription(sdp, noop, noop);
  1637. // }).catch(function(reason) {
  1638. // // An error occurred, so handle the failure to connect
  1639. // });
  1640. // //sten for candidate events
  1641. // pc.onicecandidate = function(ice) {
  1642. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  1643. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  1644. // };
  1645. // }
  1646. // U.MD.D.I.getUserIpBool = function(callback){
  1647. // U.MD.D.I.getUserIP(function(ip){
  1648. // alert("Got IP! :" + ip);
  1649. // });
  1650. //}
  1651. //#endregion
  1652. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  1653. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1654. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1655. _userinfo = US.userInfo, //登录用户信息
  1656. _userid = US.userInfo.userid //登录用户id
  1657. let _iframe;
  1658. var _jie = $$("div", {
  1659. "style": {
  1660. "position": "absolute",
  1661. "bottom": "50px",
  1662. "right": "50px",
  1663. "zIndex": "9999",
  1664. "backgroundColor": "#2268bc",
  1665. "color": "#fff",
  1666. "padding": "12px 20px",
  1667. "cursor": "pointer",
  1668. "borderRadius": "4px",
  1669. },
  1670. "innerHTML": "提交作业"
  1671. })
  1672. let _loading = document.createElement('div')
  1673. _loading.style = "width:100%;height:100%;background:#0000008f;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
  1674. // _loading.id = "";
  1675. let _lchild = document.createElement('div')
  1676. let _limg = document.createElement('img')
  1677. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  1678. _limg.style = "width: 26px;margin-right: 10px;"
  1679. _lchild.appendChild(_limg)
  1680. let _lspan = document.createElement('span')
  1681. _lspan.innerHTML = "上传中..."
  1682. _lchild.appendChild(_lspan)
  1683. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  1684. _loading.appendChild(_lchild)
  1685. var _box = $$('div', {
  1686. "style": {
  1687. "position": "relative",
  1688. "width": "100%",
  1689. "height": "100%",
  1690. },
  1691. })
  1692. _box.appendChild(_loading)
  1693. _box.id = str + '_loadLi'
  1694. switch (str) {
  1695. case "whiteboard":
  1696. _iframe = $$("iframe", {
  1697. "frameborder": "no",
  1698. "border": "0",
  1699. "scrolling ": "no",
  1700. "style": {
  1701. "cssText": "border:0;width:100%;height:100%"
  1702. },
  1703. "src": "https://iwb.cocorobo.cn/"
  1704. })
  1705. _box.appendChild(_iframe);
  1706. _box.appendChild(_jie);
  1707. _formdiv = new U.UF.UI.form(
  1708. "电子白板",
  1709. _box, {
  1710. "id": "whiteboard",
  1711. "style": {
  1712. "width": "90%",
  1713. "height": "90%",
  1714. "overflow": 'hidden'
  1715. },
  1716. "onresize": function () { }
  1717. }, {
  1718. closecallback: function () { }
  1719. }, {
  1720. "style": {
  1721. "height": "36px"
  1722. }
  1723. }).form; //创建窗体
  1724. _taskbar = {
  1725. "id": str + _formdiv.id,
  1726. "style": {
  1727. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  1728. },
  1729. "name": "电子白板",
  1730. "forms": _formdiv,
  1731. "click": function () {
  1732. U.MD.D.I.openApplication(str, obj, info);
  1733. }
  1734. }
  1735. break;
  1736. case "mind":
  1737. _iframe = $$("iframe", {
  1738. "frameborder": "no",
  1739. "border": "0",
  1740. "scrolling ": "no",
  1741. "style": {
  1742. "cssText": "border:0;width:100%;height:100%"
  1743. },
  1744. "src": "/kityminder-editor/dist/index.html"
  1745. })
  1746. _box.appendChild(_iframe);
  1747. _box.appendChild(_jie);
  1748. _formdiv = new U.UF.UI.form(
  1749. "思维导图",
  1750. _box, { //"/jsmind/example/demo.html"
  1751. "id": "mind",
  1752. "style": {
  1753. "width": "90%",
  1754. "height": "90%",
  1755. "overflow": 'hidden'
  1756. },
  1757. "onresize": function () { }
  1758. }, {
  1759. closecallback: function () { }
  1760. }, {
  1761. "style": {
  1762. "height": "36px"
  1763. }
  1764. }).form; //创建窗体
  1765. _taskbar = {
  1766. "id": str + _formdiv.id,
  1767. "style": {
  1768. "backgroundImage": "url(/img/icon/mindMapping.png)"
  1769. },
  1770. "name": "思维导图",
  1771. "forms": _formdiv,
  1772. "click": function () {
  1773. U.MD.D.I.openApplication(str, obj, info);
  1774. }
  1775. }
  1776. break;
  1777. case "MindMap":
  1778. _iframe = $$("iframe", {
  1779. "frameborder": "no",
  1780. "border": "0",
  1781. "scrolling ": "no",
  1782. "style": {
  1783. "cssText": "border:0;width:100%;height:100%"
  1784. },
  1785. "src": "//cloud.cocorobo.cn/mind/"
  1786. })
  1787. _box.appendChild(_iframe);
  1788. _box.appendChild(_jie);
  1789. _formdiv = new U.UF.UI.form(
  1790. "思维导图",
  1791. _box, { //"/jsmind/example/demo.html"
  1792. "id": "mind",
  1793. "style": {
  1794. "width": "90%",
  1795. "height": "90%",
  1796. "overflow": 'hidden'
  1797. },
  1798. "onresize": function () { }
  1799. }, {
  1800. closecallback: function () { }
  1801. }, {
  1802. "style": {
  1803. "height": "36px"
  1804. }
  1805. }).form; //创建窗体
  1806. _taskbar = {
  1807. "id": str + _formdiv.id,
  1808. "style": {
  1809. "backgroundImage": "url(/img/icon/mindMapping.png)"
  1810. },
  1811. "name": "思维导图",
  1812. "forms": _formdiv,
  1813. "click": function () {
  1814. U.MD.D.I.openApplication(str, obj, info);
  1815. }
  1816. }
  1817. break;
  1818. case "doc":
  1819. _iframe = $$("iframe", {
  1820. "frameborder": "no",
  1821. "border": "0",
  1822. "scrolling ": "no",
  1823. "style": {
  1824. "cssText": "border:0;width:100%;height:100%"
  1825. },
  1826. "src": "/Office/Word/WordEditArea.htm"
  1827. })
  1828. _box.appendChild(_iframe);
  1829. _box.appendChild(_jie);
  1830. _formdiv = new U.UF.UI.form(
  1831. "协同文档",
  1832. _box, {
  1833. "id": "doc",
  1834. "style": {
  1835. "width": "90%",
  1836. "height": "90%",
  1837. "overflow": 'hidden'
  1838. },
  1839. "onresize": function () { }
  1840. }, {
  1841. closecallback: function () { }
  1842. }, {
  1843. "style": {
  1844. "height": "36px"
  1845. }
  1846. }).form; //创建窗体
  1847. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1848. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1849. })
  1850. _taskbar = {
  1851. "id": str + _formdiv.id,
  1852. "style": {
  1853. "backgroundImage": "url(/img/icon/doc.png)"
  1854. },
  1855. "name": "协同文档",
  1856. "forms": _formdiv,
  1857. "click": function () {
  1858. U.MD.D.I.openApplication(str, obj, info);
  1859. }
  1860. }
  1861. break;
  1862. case "mindNetwork": //好友打开
  1863. _iframe = $$("iframe", {
  1864. "webkitallowfullscreen": "",
  1865. "mozallowfullscreen": "",
  1866. "allowfullscreen": "",
  1867. "frameborder": "no",
  1868. "border": "0",
  1869. "scrolling ": "no",
  1870. "style": {
  1871. "cssText": "border:0; width:100%; height:100%;"
  1872. },
  1873. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  1874. })
  1875. _box.appendChild(_iframe);
  1876. _box.appendChild(_jie);
  1877. _formdiv = new U.UF.UI.form(
  1878. "思维网格",
  1879. _box, {
  1880. "id": "mindNetwork",
  1881. "style": {
  1882. "width": "90%",
  1883. "height": "90%",
  1884. "overflow": 'hidden'
  1885. },
  1886. "onresize": function () { }
  1887. }, {
  1888. closecallback: function () { }
  1889. }, {
  1890. "style": {
  1891. "height": "36px"
  1892. }
  1893. }).form; //创建窗体
  1894. _taskbar = {
  1895. "id": str + _formdiv.id,
  1896. "style": {
  1897. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  1898. },
  1899. "name": "思维网格",
  1900. "forms": _formdiv,
  1901. "click": function () {
  1902. U.MD.D.I.openApplication(str, obj, info);
  1903. }
  1904. }
  1905. break;
  1906. case "courseDesign":
  1907. _iframe = $$("iframe", {
  1908. "webkitallowfullscreen": "",
  1909. "mozallowfullscreen": "",
  1910. "allowfullscreen": "",
  1911. "frameborder": "no",
  1912. "border": "0",
  1913. "scrolling ": "no",
  1914. "style": {
  1915. "cssText": "border:0; width:100%; height:100%;"
  1916. },
  1917. "src": "/course-design/index.html"
  1918. })
  1919. _box.appendChild(_iframe);
  1920. _box.appendChild(_jie);
  1921. _formdiv = new U.UF.UI.form(
  1922. "课程设计",
  1923. _box, {
  1924. "id": "courseDesign",
  1925. "style": {
  1926. "width": "90%",
  1927. "height": "90%",
  1928. "overflow": 'hidden'
  1929. },
  1930. "onresize": function () { }
  1931. }, {
  1932. closecallback: function () { }
  1933. }, {
  1934. "style": {
  1935. "height": "36px"
  1936. }
  1937. }).form; //创建窗体
  1938. _taskbar = {
  1939. "id": str + _formdiv.id,
  1940. "style": {
  1941. "backgroundImage": "url(/img/icon/courseDesign.png)"
  1942. },
  1943. "name": "课程设计",
  1944. "forms": _formdiv,
  1945. "click": function () {
  1946. U.MD.D.I.openApplication(str, obj, info);
  1947. }
  1948. }
  1949. break;
  1950. }
  1951. const script1 = document.createElement("script");
  1952. script1.type = "text/javascript";
  1953. script1.src =
  1954. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  1955. const script2 = document.createElement("script");
  1956. script2.type = "text/javascript";
  1957. script2.src =
  1958. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  1959. const script3 = document.createElement("script");
  1960. script3.type = "text/javascript";
  1961. script3.charset = "UTF-8";
  1962. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  1963. const script4 = document.createElement("script");
  1964. script4.type = "text/javascript";
  1965. script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  1966. if (_iframe) {
  1967. if (str == 'doc') {
  1968. U.UF.DL.iframeLoad(_iframe, function () {
  1969. _iframe.contentWindow.U.MD.O.W.load();
  1970. _iframe.contentWindow.document.body.appendChild(script1);
  1971. _iframe.contentWindow.document.body.appendChild(script2);
  1972. // _iframe.contentWindow.document.body.appendChild(script3);
  1973. _iframe.contentWindow.document.body.appendChild(script4);
  1974. })
  1975. } else if (str == 'courseDesign') {
  1976. U.UF.DL.iframeLoad(_iframe, function () {
  1977. // _iframe.contentWindow.U.MD.O.W.load();
  1978. // _iframe.contentWindow.document.body.appendChild(script1);
  1979. _iframe.contentWindow.document.body.appendChild(script2);
  1980. _iframe.contentWindow.document.body.appendChild(script4);
  1981. })
  1982. } else {
  1983. _iframe.onload = () => {
  1984. _iframe.contentWindow.document.body.appendChild(script1);
  1985. _iframe.contentWindow.document.body.appendChild(script2);
  1986. // _iframe.contentWindow.document.body.appendChild(script3);
  1987. _iframe.contentWindow.document.body.appendChild(script4);
  1988. };
  1989. }
  1990. _jie.onclick = () => {
  1991. _loading.style.display = 'flex'
  1992. console.log(_loading);
  1993. var _ajs = _iframe.contentWindow.document.createElement("script");
  1994. _ajs.type = "text/javascript";
  1995. _ajs.innerHTML =
  1996. // 'console.log(' + _loading + ');\n' +
  1997. 'var _js = document.createElement("script");\n' +
  1998. '_js.type="text/javascript";\n' +
  1999. '_js.charset="UTF-8";\n' +
  2000. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  2001. "_js.onload = function(){\n" +
  2002. ' var a = document.getElementsByTagName("img")\n' +
  2003. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  2004. " html2canvas(document.body,{allowTaint: true,useCORS: true}).then(canvas => {\n" +
  2005. '  var base64Url = canvas.toDataURL("image/png");\n' +
  2006. 'var base64 = "<img src=" + base64Url + " />"\n' +
  2007. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  2008. "beforeUpload_shishi(file," +
  2009. "'" +
  2010. _userid +
  2011. "'" +
  2012. ", " +
  2013. "'" +
  2014. cid +
  2015. "'" +
  2016. ", " +
  2017. "'" +
  2018. stage +
  2019. "'" +
  2020. ", " +
  2021. "'" +
  2022. task +
  2023. "'" +
  2024. ", " +
  2025. "'" +
  2026. tool +
  2027. "'" +
  2028. ", " +
  2029. "'" +
  2030. str + '_loadLi' +
  2031. "'" +
  2032. ")\n" +
  2033. " });\n" +
  2034. "}\n" +
  2035. "document.head.appendChild(_js);\n";
  2036. _iframe.contentWindow.document.head.appendChild(_ajs);
  2037. }
  2038. }
  2039. //U.MD.D.I.openClick(str);
  2040. //如果有任务栏信息
  2041. if (_taskbar) {
  2042. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2043. }
  2044. }