DeskTop.js 130 KB

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