DeskTop.js 130 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224
  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": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  96. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  97. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.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. }else if(e.data.tools && e.data.tools == "39"){
  538. U.MD.D.I.openApplication("studentEvaluate")
  539. }
  540. });
  541. U.MD.D.I.selectUser = function() {
  542. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function(res) { //US.userInfo.userid
  543. if (res.value[0].length > 0) {
  544. US.userInfo = res.value[0][0];
  545. $(".userName")[0].innerHTML = US.userInfo.username;
  546. }
  547. }, [], { "type": "GET", "withCredentials": true });
  548. }
  549. U.MD.D.I.openInApplication = function(str, data, screenType, tType) {
  550. var _userinfo = US.userInfo, //登录用户信息
  551. _userid = US.userInfo.userid, //登录用户id
  552. _oid = _userinfo.organizeid,
  553. _type = US.userInfo.type,
  554. _org = US.userInfo.org,
  555. _classId = US.userInfo.classid;
  556. switch (str) {
  557. case "studyDetail":
  558. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  559. setTimeout(() => {
  560. U.MD.U.L.login();
  561. }, 2000);
  562. } else {
  563. _formdiv = new U.UF.UI.form(
  564. "项目详情",
  565. $$("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 + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  566. "id": "studyDetail",
  567. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  568. "onresize": function() {}
  569. }, {
  570. closecallback: function() {}
  571. }, { "style": { "height": "36px" } }).form; //创建窗体
  572. _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); } }
  573. break;
  574. }
  575. }
  576. }
  577. U.MD.D.I.openApplication = function(str, obj, info) {
  578. obj = obj || {};
  579. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  580. _formdiv, //创建任务栏时同时弹出的窗体元素。
  581. _userinfo = US.userInfo, //登录用户信息
  582. _userid = obj.userid || US.userInfo.userid, //登录用户id
  583. _oid = obj.organizeid || _userinfo.organizeid,
  584. _type = US.userInfo.type,
  585. _org = US.userInfo.org,
  586. _classId = US.userInfo.classid,
  587. _TscreenType = 1
  588. _screenType = 2,
  589. _SscreenType = 3;
  590. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  591. switch (str) {
  592. case "studnetProject": //好友打开
  593. _formdiv = new U.UF.UI.form(
  594. "我的项目",
  595. $$("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 }), {
  596. "id": "studnetProject",
  597. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  598. "onresize": function() {}
  599. }, {
  600. closecallback: function() {}
  601. }, { "style": { "height": "36px" } }).form; //创建窗体
  602. _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); } }
  603. break;
  604. case "studentEvaluate": //好友打开
  605. _formdiv = new U.UF.UI.form(
  606. "我的评价",
  607. $$("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 }), {
  608. "id": "studentEvaluate",
  609. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  610. "onresize": function() {}
  611. }, {
  612. closecallback: function() {}
  613. }, { "style": { "height": "36px" } }).form; //创建窗体
  614. _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); } }
  615. break;
  616. case "my":
  617. _formdiv = new U.UF.UI.form(
  618. "我的资料",
  619. $$("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 }), {
  620. "id": "my",
  621. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  622. "onresize": function() {}
  623. }, {
  624. closecallback: function() {}
  625. }, { "style": { "height": "36px" } }).form; //创建窗体
  626. _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); } }
  627. break;
  628. case "program":
  629. _formdiv = new U.UF.UI.form(
  630. "编程平台",
  631. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  632. "id": "program",
  633. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  634. "onresize": function() {}
  635. }, {
  636. closecallback: function() {}
  637. }, { "style": { "height": "36px" } }).form; //创建窗体
  638. _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); } }
  639. break;
  640. case "library":
  641. _formdiv = new U.UF.UI.form(
  642. "素材库",
  643. $$("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 }), {
  644. "id": "library",
  645. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  646. "onresize": function() {}
  647. }, {
  648. closecallback: function() {}
  649. }, { "style": { "height": "36px" } }).form; //创建窗体
  650. _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); } }
  651. break;
  652. case "whiteboard":
  653. _formdiv = new U.UF.UI.form(
  654. "电子白板",
  655. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  656. "id": "whiteboard",
  657. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  658. "onresize": function() {}
  659. }, {
  660. closecallback: function() {}
  661. }, { "style": { "height": "36px" } }).form; //创建窗体
  662. _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); } }
  663. break;
  664. case "investigation":
  665. _formdiv = new U.UF.UI.form(
  666. "问卷调查",
  667. $$("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 }), {
  668. "id": "investigation",
  669. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  670. "onresize": function() {}
  671. }, {
  672. closecallback: function() {}
  673. }, { "style": { "height": "36px" } }).form; //创建窗体
  674. _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); } }
  675. break;
  676. case "note":
  677. _formdiv = new U.UF.UI.form(
  678. "便签分类",
  679. $$("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 }), {
  680. "id": "note",
  681. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  682. "onresize": function() {}
  683. }, {
  684. closecallback: function() {}
  685. }, { "style": { "height": "36px" } }).form; //创建窗体
  686. _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); } }
  687. break;
  688. // case "score":
  689. // _formdiv = new U.UF.UI.form(
  690. // "量规评分",
  691. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  692. // "id": "score",
  693. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  694. // "onresize": function() {}
  695. // }, {
  696. // closecallback: function() {}
  697. // }, { "style": { "height": "36px" } }).form; //创建窗体
  698. // _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); } }
  699. // break;
  700. case "mind":
  701. _formdiv = new U.UF.UI.form(
  702. "思维导图",
  703. $$("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"
  704. "id": "mind",
  705. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  706. "onresize": function() {}
  707. }, {
  708. closecallback: function() {}
  709. }, { "style": { "height": "36px" } }).form; //创建窗体
  710. _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); } }
  711. break;
  712. case "doc":
  713. // U.MD.D.I.isRoom();
  714. _formdiv = new U.UF.UI.form(
  715. "协同文档",
  716. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  717. "id": "doc",
  718. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  719. "onresize": function() {}
  720. }, {
  721. closecallback: function() {}
  722. }, { "style": { "height": "36px" } }).form; //创建窗体
  723. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  724. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  725. // })
  726. _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); } }
  727. break;
  728. case "studentStudy":
  729. _formdiv = new U.UF.UI.form(
  730. "学习中心",
  731. $$("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
  732. "id": "studentStudy",
  733. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  734. "onresize": function() {}
  735. }, {
  736. closecallback: function() {}
  737. }, { "style": { "height": "36px" } }).form; //创建窗体
  738. _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); } }
  739. break;
  740. case "train": //好友打开
  741. _formdiv = new U.UF.UI.form(
  742. "训练平台",
  743. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  744. "id": "train",
  745. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  746. "onresize": function() {}
  747. }, {
  748. closecallback: function() {}
  749. }, { "style": { "height": "36px" } }).form; //创建窗体
  750. _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); } }
  751. break;
  752. case "mindNetwork": //好友打开
  753. _formdiv = new U.UF.UI.form(
  754. "思维网格",
  755. $$("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 }), {
  756. "id": "mindNetwork",
  757. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  758. "onresize": function() {}
  759. }, {
  760. closecallback: function() {}
  761. }, { "style": { "height": "36px" } }).form; //创建窗体
  762. _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); } }
  763. break;
  764. case "studentClassRoom": //好友打开
  765. _formdiv = new U.UF.UI.form(
  766. "实时课堂",
  767. $$("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 }), {
  768. "id": "studentClassRoom",
  769. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  770. "onresize": function() {}
  771. }, {
  772. closecallback: function() {}
  773. }, { "style": { "height": "36px" } }).form; //创建窗体
  774. _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); } }
  775. setTimeout(() => {
  776. U.UF.F.windowZooming(_formdiv)
  777. }, 0);
  778. break;
  779. }
  780. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  781. switch (str) {
  782. case "studnetProject": //好友打开
  783. _formdiv = new U.UF.UI.form(
  784. "我的项目",
  785. $$("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 }), {
  786. "id": "studnetProject",
  787. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  788. "onresize": function() {}
  789. }, {
  790. closecallback: function() {}
  791. }, { "style": { "height": "36px" } }).form; //创建窗体
  792. _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); } }
  793. break;
  794. case "studentEvaluate": //好友打开
  795. _formdiv = new U.UF.UI.form(
  796. "我的评价",
  797. $$("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 }), {
  798. "id": "studentEvaluate",
  799. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  800. "onresize": function() {}
  801. }, {
  802. closecallback: function() {}
  803. }, { "style": { "height": "36px" } }).form; //创建窗体
  804. _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); } }
  805. break;
  806. case "my":
  807. _formdiv = new U.UF.UI.form(
  808. "我的资料",
  809. $$("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 }), {
  810. "id": "my",
  811. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  812. "onresize": function() {}
  813. }, {
  814. closecallback: function() {}
  815. }, { "style": { "height": "36px" } }).form; //创建窗体
  816. _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); } }
  817. break;
  818. case "program":
  819. _formdiv = new U.UF.UI.form(
  820. "编程平台",
  821. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  822. "id": "program",
  823. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  824. "onresize": function() {}
  825. }, {
  826. closecallback: function() {}
  827. }, { "style": { "height": "36px" } }).form; //创建窗体
  828. _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); } }
  829. break;
  830. case "library":
  831. _formdiv = new U.UF.UI.form(
  832. "素材库",
  833. $$("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 }), {
  834. "id": "library",
  835. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  836. "onresize": function() {}
  837. }, {
  838. closecallback: function() {}
  839. }, { "style": { "height": "36px" } }).form; //创建窗体
  840. _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); } }
  841. break;
  842. case "whiteboard":
  843. _formdiv = new U.UF.UI.form(
  844. "电子白板",
  845. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  846. "id": "whiteboard",
  847. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  848. "onresize": function() {}
  849. }, {
  850. closecallback: function() {}
  851. }, { "style": { "height": "36px" } }).form; //创建窗体
  852. _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); } }
  853. break;
  854. case "investigation":
  855. _formdiv = new U.UF.UI.form(
  856. "问卷调查",
  857. $$("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 }), {
  858. "id": "investigation",
  859. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  860. "onresize": function() {}
  861. }, {
  862. closecallback: function() {}
  863. }, { "style": { "height": "36px" } }).form; //创建窗体
  864. _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); } }
  865. break;
  866. case "note":
  867. _formdiv = new U.UF.UI.form(
  868. "便签分类",
  869. $$("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 }), {
  870. "id": "note",
  871. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  872. "onresize": function() {}
  873. }, {
  874. closecallback: function() {}
  875. }, { "style": { "height": "36px" } }).form; //创建窗体
  876. _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); } }
  877. break;
  878. // case "score":
  879. // _formdiv = new U.UF.UI.form(
  880. // "量规评分",
  881. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  882. // "id": "score",
  883. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  884. // "onresize": function() {}
  885. // }, {
  886. // closecallback: function() {}
  887. // }, { "style": { "height": "36px" } }).form; //创建窗体
  888. // _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); } }
  889. // break;
  890. case "mind":
  891. _formdiv = new U.UF.UI.form(
  892. "思维导图",
  893. $$("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"
  894. "id": "mind",
  895. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  896. "onresize": function() {}
  897. }, {
  898. closecallback: function() {}
  899. }, { "style": { "height": "36px" } }).form; //创建窗体
  900. _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); } }
  901. break;
  902. case "doc":
  903. // U.MD.D.I.isRoom();
  904. _formdiv = new U.UF.UI.form(
  905. "协同文档",
  906. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  907. "id": "doc",
  908. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  909. "onresize": function() {}
  910. }, {
  911. closecallback: function() {}
  912. }, { "style": { "height": "36px" } }).form; //创建窗体
  913. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  914. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  915. })
  916. _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); } }
  917. break;
  918. case "train": //好友打开
  919. _formdiv = new U.UF.UI.form(
  920. "训练平台",
  921. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  922. "id": "train",
  923. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  924. "onresize": function() {}
  925. }, {
  926. closecallback: function() {}
  927. }, { "style": { "height": "36px" } }).form; //创建窗体
  928. _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); } }
  929. break;
  930. case "studentStudy":
  931. _formdiv = new U.UF.UI.form(
  932. "学习中心",
  933. $$("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
  934. "id": "studentStudy",
  935. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  936. "onresize": function() {}
  937. }, {
  938. closecallback: function() {}
  939. }, { "style": { "height": "36px" } }).form; //创建窗体
  940. _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); } }
  941. break;
  942. case "mindNetwork": //好友打开
  943. _formdiv = new U.UF.UI.form(
  944. "思维网格",
  945. $$("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 }), {
  946. "id": "mindNetwork",
  947. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  948. "onresize": function() {}
  949. }, {
  950. closecallback: function() {}
  951. }, { "style": { "height": "36px" } }).form; //创建窗体
  952. _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); } }
  953. break;
  954. case "studentClassRoom": //好友打开
  955. _formdiv = new U.UF.UI.form(
  956. "实时课堂",
  957. $$("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 }), {
  958. "id": "studentClassRoom",
  959. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  960. "onresize": function() {}
  961. }, {
  962. closecallback: function() {}
  963. }, { "style": { "height": "36px" } }).form; //创建窗体
  964. _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); } }
  965. setTimeout(() => {
  966. U.UF.F.windowZooming(_formdiv)
  967. }, 0);
  968. break;
  969. }
  970. } else if (_type == 1 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  971. //选择应用处理
  972. switch (str) {
  973. case "project": //好友打开
  974. _formdiv = new U.UF.UI.form(
  975. "项目管理",
  976. $$("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 }), {
  977. "id": "project",
  978. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  979. "onresize": function() {}
  980. }, {
  981. closecallback: function() {}
  982. }, { "style": { "height": "36px" } }).form; //创建窗体
  983. _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); } }
  984. break;
  985. case "student":
  986. _formdiv = new U.UF.UI.form(
  987. "学生管理",
  988. $$("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 }), {
  989. "id": "student",
  990. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  991. "onresize": function() {}
  992. }, {
  993. closecallback: function() {}
  994. }, { "style": { "height": "36px" } }).form; //创建窗体
  995. _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); } }
  996. break;
  997. case "evaluate":
  998. _formdiv = new U.UF.UI.form(
  999. "学生评价",
  1000. $$("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 }), {
  1001. "id": "evaluate",
  1002. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1003. "onresize": function() {}
  1004. }, {
  1005. closecallback: function() {}
  1006. }, { "style": { "height": "36px" } }).form; //创建窗体
  1007. _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); } }
  1008. break;
  1009. case "sys":
  1010. _formdiv = new U.UF.UI.form(
  1011. "目标管理",
  1012. $$("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 }), {
  1013. "id": "sys",
  1014. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1015. "onresize": function() {}
  1016. }, {
  1017. closecallback: function() {}
  1018. }, { "style": { "height": "36px" } }).form; //创建窗体
  1019. _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); } }
  1020. break;
  1021. case "courseDesign":
  1022. _formdiv = new U.UF.UI.form(
  1023. "课程设计",
  1024. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1025. "id": "courseDesign",
  1026. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1027. "onresize": function() {}
  1028. }, {
  1029. closecallback: function() {}
  1030. }, { "style": { "height": "36px" } }).form; //创建窗体
  1031. _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); } }
  1032. break;
  1033. case "program":
  1034. _formdiv = new U.UF.UI.form(
  1035. "编程平台",
  1036. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1037. "id": "program",
  1038. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1039. "onresize": function() {}
  1040. }, {
  1041. closecallback: function() {}
  1042. }, { "style": { "height": "36px" } }).form; //创建窗体
  1043. _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); } }
  1044. break;
  1045. case "class":
  1046. _formdiv = new U.UF.UI.form(
  1047. "班级管理",
  1048. $$("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 }), {
  1049. "id": "class",
  1050. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1051. "onresize": function() {}
  1052. }, {
  1053. closecallback: function() {}
  1054. }, { "style": { "height": "36px" } }).form; //创建窗体
  1055. _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); } }
  1056. break;
  1057. case "my":
  1058. _formdiv = new U.UF.UI.form(
  1059. "我的资料",
  1060. $$("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 }), {
  1061. "id": "my",
  1062. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1063. "onresize": function() {}
  1064. }, {
  1065. closecallback: function() {}
  1066. }, { "style": { "height": "36px" } }).form; //创建窗体
  1067. _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); } }
  1068. break;
  1069. case "notice":
  1070. _formdiv = new U.UF.UI.form(
  1071. "通知公告",
  1072. $$("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 }), {
  1073. "id": "notice",
  1074. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1075. "onresize": function() {}
  1076. }, {
  1077. closecallback: function() {}
  1078. }, { "style": { "height": "36px" } }).form; //创建窗体
  1079. _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); } }
  1080. break;
  1081. case "library":
  1082. _formdiv = new U.UF.UI.form(
  1083. "素材库",
  1084. $$("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 }), {
  1085. "id": "library",
  1086. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1087. "onresize": function() {}
  1088. }, {
  1089. closecallback: function() {}
  1090. }, { "style": { "height": "36px" } }).form; //创建窗体
  1091. _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); } }
  1092. break;
  1093. case "whiteboard":
  1094. _formdiv = new U.UF.UI.form(
  1095. "电子白板",
  1096. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1097. "id": "whiteboard",
  1098. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1099. "onresize": function() {}
  1100. }, {
  1101. closecallback: function() {}
  1102. }, { "style": { "height": "36px" } }).form; //创建窗体
  1103. _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); } }
  1104. break;
  1105. case "investigation":
  1106. _formdiv = new U.UF.UI.form(
  1107. "问卷调查",
  1108. $$("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 }), {
  1109. "id": "investigation",
  1110. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1111. "onresize": function() {}
  1112. }, {
  1113. closecallback: function() {}
  1114. }, { "style": { "height": "36px" } }).form; //创建窗体
  1115. _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); } }
  1116. break;
  1117. case "note":
  1118. _formdiv = new U.UF.UI.form(
  1119. "便签分类",
  1120. $$("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 }), {
  1121. "id": "note",
  1122. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1123. "onresize": function() {}
  1124. }, {
  1125. closecallback: function() {}
  1126. }, { "style": { "height": "36px" } }).form; //创建窗体
  1127. _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); } }
  1128. break;
  1129. // case "score":
  1130. // _formdiv = new U.UF.UI.form(
  1131. // "量规评分",
  1132. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1133. // "id": "score",
  1134. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1135. // "onresize": function() {}
  1136. // }, {
  1137. // closecallback: function() {}
  1138. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1139. // _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); } }
  1140. // break;
  1141. case "mind":
  1142. _formdiv = new U.UF.UI.form(
  1143. "思维导图",
  1144. $$("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"
  1145. "id": "mind",
  1146. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1147. "onresize": function() {}
  1148. }, {
  1149. closecallback: function() {}
  1150. }, { "style": { "height": "36px" } }).form; //创建窗体
  1151. _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); } }
  1152. break;
  1153. case "doc":
  1154. // U.MD.D.I.isRoom();
  1155. _formdiv = new U.UF.UI.form(
  1156. "协同文档",
  1157. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1158. "id": "doc",
  1159. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1160. "onresize": function() {}
  1161. }, {
  1162. closecallback: function() {}
  1163. }, { "style": { "height": "36px" } }).form; //创建窗体
  1164. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  1165. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1166. })
  1167. _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); } }
  1168. break;
  1169. case "study":
  1170. _formdiv = new U.UF.UI.form(
  1171. "学习中心",
  1172. $$("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
  1173. "id": "study",
  1174. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1175. "onresize": function() {}
  1176. }, {
  1177. closecallback: function() {}
  1178. }, { "style": { "height": "36px" } }).form; //创建窗体
  1179. _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); } }
  1180. break;
  1181. case "mindNetwork": //好友打开
  1182. _formdiv = new U.UF.UI.form(
  1183. "思维网格",
  1184. $$("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 }), {
  1185. "id": "mindNetwork",
  1186. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1187. "onresize": function() {}
  1188. }, {
  1189. closecallback: function() {}
  1190. }, { "style": { "height": "36px" } }).form; //创建窗体
  1191. _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); } }
  1192. break;
  1193. case "train": //好友打开
  1194. _formdiv = new U.UF.UI.form(
  1195. "训练平台",
  1196. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1197. "id": "mindNetwork",
  1198. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1199. "onresize": function() {}
  1200. }, {
  1201. closecallback: function() {}
  1202. }, { "style": { "height": "36px" } }).form; //创建窗体
  1203. _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); } }
  1204. break;
  1205. case "teacherClassRoom": //好友打开
  1206. _formdiv = new U.UF.UI.form(
  1207. "实时课堂",
  1208. $$("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 }), {
  1209. "id": "teacherClassRoom",
  1210. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1211. "onresize": function() {}
  1212. }, {
  1213. closecallback: function() {}
  1214. }, { "style": { "height": "36px" } }).form; //创建窗体
  1215. _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); } }
  1216. setTimeout(() => {
  1217. U.UF.F.windowZooming(_formdiv)
  1218. }, 0);
  1219. break;
  1220. }
  1221. } else if (_type == 1 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1222. switch (str) {
  1223. case "project": //好友打开
  1224. _formdiv = new U.UF.UI.form(
  1225. "项目管理",
  1226. $$("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 }), {
  1227. "id": "project",
  1228. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1229. "onresize": function() {}
  1230. }, {
  1231. closecallback: function() {}
  1232. }, { "style": { "height": "36px" } }).form; //创建窗体
  1233. _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); } }
  1234. break;
  1235. case "evaluate":
  1236. _formdiv = new U.UF.UI.form(
  1237. "学生评价",
  1238. $$("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 }), {
  1239. "id": "evaluate",
  1240. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1241. "onresize": function() {}
  1242. }, {
  1243. closecallback: function() {}
  1244. }, { "style": { "height": "36px" } }).form; //创建窗体
  1245. _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); } }
  1246. break;
  1247. case "notice":
  1248. _formdiv = new U.UF.UI.form(
  1249. "通知公告",
  1250. $$("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 }), {
  1251. "id": "notice",
  1252. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1253. "onresize": function() {}
  1254. }, {
  1255. closecallback: function() {}
  1256. }, { "style": { "height": "36px" } }).form; //创建窗体
  1257. _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); } }
  1258. break;
  1259. case "stuLibrary":
  1260. _formdiv = new U.UF.UI.form(
  1261. "学习资料",
  1262. $$("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 }), {
  1263. "id": "stuLibrary",
  1264. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1265. "onresize": function() {}
  1266. }, {
  1267. closecallback: function() {}
  1268. }, { "style": { "height": "36px" } }).form; //创建窗体
  1269. _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); } }
  1270. break;
  1271. case "program":
  1272. _formdiv = new U.UF.UI.form(
  1273. "编程平台",
  1274. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1275. "id": "program",
  1276. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1277. "onresize": function() {}
  1278. }, {
  1279. closecallback: function() {}
  1280. }, { "style": { "height": "36px" } }).form; //创建窗体
  1281. _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); } }
  1282. break;
  1283. case "whiteboard":
  1284. _formdiv = new U.UF.UI.form(
  1285. "电子白板",
  1286. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1287. "id": "whiteboard",
  1288. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1289. "onresize": function() {}
  1290. }, {
  1291. closecallback: function() {}
  1292. }, { "style": { "height": "36px" } }).form; //创建窗体
  1293. _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); } }
  1294. break;
  1295. case "investigation":
  1296. _formdiv = new U.UF.UI.form(
  1297. "问卷调查",
  1298. $$("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 }), {
  1299. "id": "investigation",
  1300. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1301. "onresize": function() {}
  1302. }, {
  1303. closecallback: function() {}
  1304. }, { "style": { "height": "36px" } }).form; //创建窗体
  1305. _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); } }
  1306. break;
  1307. case "mind":
  1308. _formdiv = new U.UF.UI.form(
  1309. "思维导图",
  1310. $$("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"
  1311. "id": "mind",
  1312. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1313. "onresize": function() {}
  1314. }, {
  1315. closecallback: function() {}
  1316. }, { "style": { "height": "36px" } }).form; //创建窗体
  1317. _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); } }
  1318. break;
  1319. case "doc":
  1320. // U.MD.D.I.isRoom();
  1321. _formdiv = new U.UF.UI.form(
  1322. "协同文档",
  1323. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1324. "id": "doc",
  1325. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1326. "onresize": function() {}
  1327. }, {
  1328. closecallback: function() {}
  1329. }, { "style": { "height": "36px" } }).form; //创建窗体
  1330. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  1331. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1332. })
  1333. _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); } }
  1334. break;
  1335. case "study":
  1336. _formdiv = new U.UF.UI.form(
  1337. "学习中心",
  1338. $$("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
  1339. "id": "study",
  1340. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1341. "onresize": function() {}
  1342. }, {
  1343. closecallback: function() {}
  1344. }, { "style": { "height": "36px" } }).form; //创建窗体
  1345. _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); } }
  1346. break;
  1347. case "mindNetwork": //好友打开
  1348. _formdiv = new U.UF.UI.form(
  1349. "思维网格",
  1350. $$("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 }), {
  1351. "id": "mindNetwork",
  1352. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1353. "onresize": function() {}
  1354. }, {
  1355. closecallback: function() {}
  1356. }, { "style": { "height": "36px" } }).form; //创建窗体
  1357. _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); } }
  1358. break;
  1359. case "train": //好友打开
  1360. _formdiv = new U.UF.UI.form(
  1361. "训练平台",
  1362. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1363. "id": "train",
  1364. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1365. "onresize": function() {}
  1366. }, {
  1367. closecallback: function() {}
  1368. }, { "style": { "height": "36px" } }).form; //创建窗体
  1369. _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); } }
  1370. break;
  1371. case "sys":
  1372. _formdiv = new U.UF.UI.form(
  1373. "目标管理",
  1374. $$("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 }), {
  1375. "id": "sys",
  1376. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1377. "onresize": function() {}
  1378. }, {
  1379. closecallback: function() {}
  1380. }, { "style": { "height": "36px" } }).form; //创建窗体
  1381. _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); } }
  1382. break;
  1383. case "courseDesign":
  1384. _formdiv = new U.UF.UI.form(
  1385. "课程设计",
  1386. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1387. "id": "courseDesign",
  1388. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1389. "onresize": function() {}
  1390. }, {
  1391. closecallback: function() {}
  1392. }, { "style": { "height": "36px" } }).form; //创建窗体
  1393. _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); } }
  1394. break;
  1395. }
  1396. } else if (!_type) {
  1397. switch (str) {
  1398. case "my":
  1399. _formdiv = new U.UF.UI.form(
  1400. "我的资料",
  1401. $$("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 }), {
  1402. "id": "my",
  1403. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1404. "onresize": function() {}
  1405. }, {
  1406. closecallback: function() {}
  1407. }, { "style": { "height": "36px" } }).form; //创建窗体
  1408. _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); } }
  1409. break;
  1410. }
  1411. }
  1412. switch (str) {
  1413. // AIprogram2 AI体验 aihub.cocorobo.cn
  1414. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  1415. // AIprogram AI编程 ai-blockly.cocorobo.cn
  1416. case "AIprogram2": //AI体验
  1417. _formdiv = new U.UF.UI.form(
  1418. "AI体验",
  1419. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  1420. "id": "AIprogram2",
  1421. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1422. "onresize": function() {}
  1423. }, {
  1424. closecallback: function() {}
  1425. }, { "style": { "height": "36px" } }).form; //创建窗体
  1426. _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); } }
  1427. break;
  1428. case "Pythonprogram": //python编程
  1429. _formdiv = new U.UF.UI.form(
  1430. "Python编程",
  1431. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  1432. "id": "Pythonprogram",
  1433. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1434. "onresize": function() {}
  1435. }, {
  1436. closecallback: function() {}
  1437. }, { "style": { "height": "36px" } }).form; //创建窗体
  1438. _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); } }
  1439. break;
  1440. case "AIprogram": //ai编程
  1441. _formdiv = new U.UF.UI.form(
  1442. "AI编程平台",
  1443. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  1444. "id": "AIprogram",
  1445. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1446. "onresize": function() {}
  1447. }, {
  1448. closecallback: function() {}
  1449. }, { "style": { "height": "36px" } }).form; //创建窗体
  1450. _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); } }
  1451. break;
  1452. case "resources": //国家教育
  1453. _formdiv = new U.UF.UI.form(
  1454. "国家教育",
  1455. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  1456. "id": "resources",
  1457. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1458. "onresize": function() {}
  1459. }, {
  1460. closecallback: function() {}
  1461. }, { "style": { "height": "36px" } }).form; //创建窗体
  1462. _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); } }
  1463. break;
  1464. case "codeEdit": //源码编辑
  1465. _formdiv = new U.UF.UI.form(
  1466. "源码编辑",
  1467. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  1468. "id": "codeEdit",
  1469. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1470. "onresize": function() {}
  1471. }, {
  1472. closecallback: function() {}
  1473. }, { "style": { "height": "36px" } }).form; //创建窗体
  1474. _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); } }
  1475. break; //
  1476. case "MindMap": //MindMap
  1477. _formdiv = new U.UF.UI.form(
  1478. "MindMap",
  1479. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  1480. "id": "MindMap",
  1481. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1482. "onresize": function() {}
  1483. }, {
  1484. closecallback: function() {}
  1485. }, { "style": { "height": "36px" } }).form; //创建窗体
  1486. _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); } }
  1487. break;
  1488. case "netWorkPanel": //netWorkPanel
  1489. _formdiv = new U.UF.UI.form(
  1490. "netWorkPanel",
  1491. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  1492. "id": "netWorkPanel",
  1493. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1494. "onresize": function() {}
  1495. }, {
  1496. closecallback: function() {}
  1497. }, { "style": { "height": "36px" } }).form; //创建窗体
  1498. _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); } }
  1499. break;
  1500. case "GeoGebra": //GeoGebra
  1501. _formdiv = new U.UF.UI.form(
  1502. "GeoGebra",
  1503. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  1504. "id": "GeoGebra",
  1505. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1506. "onresize": function() {}
  1507. }, {
  1508. closecallback: function() {}
  1509. }, { "style": { "height": "36px" } }).form; //创建窗体
  1510. _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); } }
  1511. break;
  1512. case "translation": //翻译
  1513. _formdiv = new U.UF.UI.form(
  1514. "翻译",
  1515. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  1516. "id": "translation",
  1517. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1518. "onresize": function() {}
  1519. }, {
  1520. closecallback: function() {}
  1521. }, { "style": { "height": "36px" } }).form; //创建窗体
  1522. _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); } }
  1523. break;
  1524. case "mohe": //魔盒
  1525. _formdiv = new U.UF.UI.form(
  1526. "魔盒识字",
  1527. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  1528. "id": "mohe",
  1529. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  1530. "onresize": function() {}
  1531. }, {
  1532. closecallback: function() {}
  1533. }, { "style": { "height": "36px" } }).form; //创建窗体
  1534. _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); } }
  1535. break;
  1536. case "24game": //24点
  1537. _formdiv = new U.UF.UI.form(
  1538. "24点",
  1539. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  1540. "id": "24game",
  1541. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  1542. "onresize": function() {}
  1543. }, {
  1544. closecallback: function() {}
  1545. }, { "style": { "height": "36px" } }).form; //创建窗体
  1546. _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); } }
  1547. break;
  1548. case "case":
  1549. _formdiv = new U.UF.UI.form(
  1550. "项目进展",
  1551. $$("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 }), {
  1552. "id": "evaluate",
  1553. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1554. "onresize": function() {}
  1555. }, {
  1556. closecallback: function() {}
  1557. }, { "style": { "height": "36px" } }).form; //创建窗体
  1558. _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); } }
  1559. break;
  1560. }
  1561. //U.MD.D.I.openClick(str);
  1562. //如果有任务栏信息
  1563. if (_taskbar) {
  1564. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  1565. }
  1566. }
  1567. // U.MD.D.I.openClick = function(str){
  1568. // var click = '';
  1569. // switch(str){
  1570. // case 'friend':
  1571. // click = '我的好友';
  1572. // break;
  1573. // case 'domain':
  1574. // click = '域名管理';
  1575. // break;
  1576. // case 'disk':
  1577. // click = '我的云盘';
  1578. // break;
  1579. // case 'word':
  1580. // click = 'Word';
  1581. // break;
  1582. // case 'excel':
  1583. // click = 'Execl';
  1584. // break;
  1585. // case 'txt':
  1586. // click = '文本文件';
  1587. // break;
  1588. // case 'lookupFriend':
  1589. // click = '查找好友';
  1590. // break;
  1591. // case 'ftp':
  1592. // click = 'FTP';
  1593. // break;
  1594. // case 'group':
  1595. // click = '群组';
  1596. // break;
  1597. // case 'set':
  1598. // click = '我的设置';
  1599. // break;
  1600. // case 'systemSet':
  1601. // click = '系统设置';
  1602. // break;
  1603. // case 'boomYun':
  1604. // click = '互联办公';
  1605. // break;
  1606. // case 'xz':
  1607. // click = '云端下载';
  1608. // break;
  1609. // case 'client':
  1610. // click = '有思浏览器';
  1611. // break;
  1612. // case 'backEndProgramming':
  1613. // click = '在线后台编程';
  1614. // break;
  1615. // case 'frontEndProgramming':
  1616. // click = '在线前端编程';
  1617. // break;
  1618. // default: break;
  1619. // }
  1620. // if(U.MD.D.I.Ip && click){
  1621. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  1622. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  1623. // })
  1624. // }
  1625. // }
  1626. /**
  1627. *函数作用:ajax简易函数,使用post格式
  1628. *@param url {data} 后台地址
  1629. *@param data {data} 参数json
  1630. *@param fn {data} 回调函数
  1631. *
  1632. */
  1633. // U.MD.D.I.Mysqlrequest = function(url,fn){
  1634. // var xhr = new XMLHttpRequest();
  1635. // xhr.open("GET",url,true);
  1636. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  1637. // xhr.onreadystatechange = function(){
  1638. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  1639. // fn.call(this,xhr.responseText);
  1640. // }
  1641. // };
  1642. // xhr.send();
  1643. // }
  1644. /*判断是否是内网IP*/
  1645. // U.MD.D.I.isInnerIPFn = function(str){
  1646. // var curPageUrl = str;
  1647. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  1648. // curPageUrl =curPageUrl.replace(reg1,'');
  1649. // // console.log('curPageUrl-1 '+curPageUrl);
  1650. // var reg2 = /\:+/g;//替换冒号为一点
  1651. // curPageUrl =curPageUrl.replace(reg2,'.');
  1652. // // console.log('curPageUrl-2 '+curPageUrl);
  1653. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  1654. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  1655. // if(curPageUrl[2] != '16'){
  1656. // return ipAddress;
  1657. // }else{
  1658. // return false;
  1659. // }
  1660. // }
  1661. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  1662. // //compatibility for firefox and chrome
  1663. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  1664. // var pc = new myPeerConnection({
  1665. // iceServers: []
  1666. // }),
  1667. // noop = function() {},
  1668. // localIPs = {},
  1669. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  1670. // key;
  1671. // function iterateIP(ip) {
  1672. // if (!localIPs[ip]) onNewIP(ip);
  1673. // localIPs[ip] = true;
  1674. // }
  1675. // //create a bogus data channel
  1676. // pc.createDataChannel("");
  1677. // // create offer and set local description
  1678. // pc.createOffer().then(function(sdp) {
  1679. // sdp.sdp.split('\n').forEach(function(line) {
  1680. // if (line.indexOf('candidate') < 0) return;
  1681. // line.match(ipRegex).forEach(iterateIP);
  1682. // });
  1683. // pc.setLocalDescription(sdp, noop, noop);
  1684. // }).catch(function(reason) {
  1685. // // An error occurred, so handle the failure to connect
  1686. // });
  1687. // //sten for candidate events
  1688. // pc.onicecandidate = function(ice) {
  1689. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  1690. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  1691. // };
  1692. // }
  1693. // U.MD.D.I.getUserIpBool = function(callback){
  1694. // U.MD.D.I.getUserIP(function(ip){
  1695. // alert("Got IP! :" + ip);
  1696. // });
  1697. //}
  1698. //#endregion
  1699. U.MD.D.I.openApplicationJie = function(str, cid, stage, task, tool) {
  1700. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1701. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1702. _userinfo = US.userInfo, //登录用户信息
  1703. _userid = US.userInfo.userid //登录用户id
  1704. let _iframe;
  1705. var _jie = $$("div", {
  1706. "style": {
  1707. "position": "absolute",
  1708. "bottom": "50px",
  1709. "right": "50px",
  1710. "zIndex": "9999",
  1711. "backgroundColor": "#2268bc",
  1712. "color": "#fff",
  1713. "padding": "12px 20px",
  1714. "cursor": "pointer",
  1715. "borderRadius": "4px",
  1716. },
  1717. "innerHTML": "提交作业"
  1718. })
  1719. let _loading = document.createElement('div')
  1720. _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;"
  1721. // _loading.id = "";
  1722. let _lchild = document.createElement('div')
  1723. let _limg = document.createElement('img')
  1724. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  1725. _limg.style = "width: 26px;margin-right: 10px;"
  1726. _lchild.appendChild(_limg)
  1727. let _lspan = document.createElement('span')
  1728. _lspan.innerHTML = "上传中..."
  1729. _lchild.appendChild(_lspan)
  1730. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  1731. _loading.appendChild(_lchild)
  1732. var _box = $$('div', {
  1733. "style": {
  1734. "position": "relative",
  1735. "width": "100%",
  1736. "height": "100%",
  1737. },
  1738. })
  1739. _box.appendChild(_loading)
  1740. _box.id = str + '_loadLi'
  1741. switch (str) {
  1742. case "whiteboard":
  1743. _iframe = $$("iframe", {
  1744. "frameborder": "no",
  1745. "border": "0",
  1746. "scrolling ": "no",
  1747. "style": {
  1748. "cssText": "border:0;width:100%;height:100%"
  1749. },
  1750. "src": "https://iwb.cocorobo.cn/"
  1751. })
  1752. _box.appendChild(_iframe);
  1753. _box.appendChild(_jie);
  1754. _formdiv = new U.UF.UI.form(
  1755. "电子白板",
  1756. _box, {
  1757. "id": "whiteboard",
  1758. "style": {
  1759. "width": "90%",
  1760. "height": "90%",
  1761. "overflow": 'hidden'
  1762. },
  1763. "onresize": function() {}
  1764. }, {
  1765. closecallback: function() {}
  1766. }, {
  1767. "style": {
  1768. "height": "36px"
  1769. }
  1770. }).form; //创建窗体
  1771. _taskbar = {
  1772. "id": str + _formdiv.id,
  1773. "style": {
  1774. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  1775. },
  1776. "name": "电子白板",
  1777. "forms": _formdiv,
  1778. "click": function() {
  1779. U.MD.D.I.openApplication(str, obj, info);
  1780. }
  1781. }
  1782. break;
  1783. case "mind":
  1784. _iframe = $$("iframe", {
  1785. "frameborder": "no",
  1786. "border": "0",
  1787. "scrolling ": "no",
  1788. "style": {
  1789. "cssText": "border:0;width:100%;height:100%"
  1790. },
  1791. "src": "/kityminder-editor/dist/index.html"
  1792. })
  1793. _box.appendChild(_iframe);
  1794. _box.appendChild(_jie);
  1795. _formdiv = new U.UF.UI.form(
  1796. "思维导图",
  1797. _box, { //"/jsmind/example/demo.html"
  1798. "id": "mind",
  1799. "style": {
  1800. "width": "90%",
  1801. "height": "90%",
  1802. "overflow": 'hidden'
  1803. },
  1804. "onresize": function() {}
  1805. }, {
  1806. closecallback: function() {}
  1807. }, {
  1808. "style": {
  1809. "height": "36px"
  1810. }
  1811. }).form; //创建窗体
  1812. _taskbar = {
  1813. "id": str + _formdiv.id,
  1814. "style": {
  1815. "backgroundImage": "url(/img/icon/mindMapping.png)"
  1816. },
  1817. "name": "思维导图",
  1818. "forms": _formdiv,
  1819. "click": function() {
  1820. U.MD.D.I.openApplication(str, obj, info);
  1821. }
  1822. }
  1823. break;
  1824. case "MindMap":
  1825. _iframe = $$("iframe", {
  1826. "frameborder": "no",
  1827. "border": "0",
  1828. "scrolling ": "no",
  1829. "style": {
  1830. "cssText": "border:0;width:100%;height:100%"
  1831. },
  1832. "src": "//cloud.cocorobo.cn/mind/"
  1833. })
  1834. _box.appendChild(_iframe);
  1835. _box.appendChild(_jie);
  1836. _formdiv = new U.UF.UI.form(
  1837. "思维导图",
  1838. _box, { //"/jsmind/example/demo.html"
  1839. "id": "mind",
  1840. "style": {
  1841. "width": "90%",
  1842. "height": "90%",
  1843. "overflow": 'hidden'
  1844. },
  1845. "onresize": function() {}
  1846. }, {
  1847. closecallback: function() {}
  1848. }, {
  1849. "style": {
  1850. "height": "36px"
  1851. }
  1852. }).form; //创建窗体
  1853. _taskbar = {
  1854. "id": str + _formdiv.id,
  1855. "style": {
  1856. "backgroundImage": "url(/img/icon/mindMapping.png)"
  1857. },
  1858. "name": "思维导图",
  1859. "forms": _formdiv,
  1860. "click": function() {
  1861. U.MD.D.I.openApplication(str, obj, info);
  1862. }
  1863. }
  1864. break;
  1865. case "doc":
  1866. _iframe = $$("iframe", {
  1867. "frameborder": "no",
  1868. "border": "0",
  1869. "scrolling ": "no",
  1870. "style": {
  1871. "cssText": "border:0;width:100%;height:100%"
  1872. },
  1873. "src": "/Office/Word/WordEditArea.htm"
  1874. })
  1875. _box.appendChild(_iframe);
  1876. _box.appendChild(_jie);
  1877. _formdiv = new U.UF.UI.form(
  1878. "协同文档",
  1879. _box, {
  1880. "id": "doc",
  1881. "style": {
  1882. "width": "90%",
  1883. "height": "90%",
  1884. "overflow": 'hidden'
  1885. },
  1886. "onresize": function() {}
  1887. }, {
  1888. closecallback: function() {}
  1889. }, {
  1890. "style": {
  1891. "height": "36px"
  1892. }
  1893. }).form; //创建窗体
  1894. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  1895. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1896. })
  1897. _taskbar = {
  1898. "id": str + _formdiv.id,
  1899. "style": {
  1900. "backgroundImage": "url(/img/icon/doc.png)"
  1901. },
  1902. "name": "协同文档",
  1903. "forms": _formdiv,
  1904. "click": function() {
  1905. U.MD.D.I.openApplication(str, obj, info);
  1906. }
  1907. }
  1908. break;
  1909. case "mindNetwork": //好友打开
  1910. _iframe = $$("iframe", {
  1911. "webkitallowfullscreen": "",
  1912. "mozallowfullscreen": "",
  1913. "allowfullscreen": "",
  1914. "frameborder": "no",
  1915. "border": "0",
  1916. "scrolling ": "no",
  1917. "style": {
  1918. "cssText": "border:0; width:100%; height:100%;"
  1919. },
  1920. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  1921. })
  1922. _box.appendChild(_iframe);
  1923. _box.appendChild(_jie);
  1924. _formdiv = new U.UF.UI.form(
  1925. "思维网格",
  1926. _box, {
  1927. "id": "mindNetwork",
  1928. "style": {
  1929. "width": "90%",
  1930. "height": "90%",
  1931. "overflow": 'hidden'
  1932. },
  1933. "onresize": function() {}
  1934. }, {
  1935. closecallback: function() {}
  1936. }, {
  1937. "style": {
  1938. "height": "36px"
  1939. }
  1940. }).form; //创建窗体
  1941. _taskbar = {
  1942. "id": str + _formdiv.id,
  1943. "style": {
  1944. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  1945. },
  1946. "name": "思维网格",
  1947. "forms": _formdiv,
  1948. "click": function() {
  1949. U.MD.D.I.openApplication(str, obj, info);
  1950. }
  1951. }
  1952. break;
  1953. case "courseDesign":
  1954. _iframe = $$("iframe", {
  1955. "webkitallowfullscreen": "",
  1956. "mozallowfullscreen": "",
  1957. "allowfullscreen": "",
  1958. "frameborder": "no",
  1959. "border": "0",
  1960. "scrolling ": "no",
  1961. "style": {
  1962. "cssText": "border:0; width:100%; height:100%;"
  1963. },
  1964. "src": "/course-design-vue"
  1965. })
  1966. _box.appendChild(_iframe);
  1967. _box.appendChild(_jie);
  1968. _formdiv = new U.UF.UI.form(
  1969. "课程设计",
  1970. _box, {
  1971. "id": "courseDesign",
  1972. "style": {
  1973. "width": "90%",
  1974. "height": "90%",
  1975. "overflow": 'hidden'
  1976. },
  1977. "onresize": function() {}
  1978. }, {
  1979. closecallback: function() {}
  1980. }, {
  1981. "style": {
  1982. "height": "36px"
  1983. }
  1984. }).form; //创建窗体
  1985. _taskbar = {
  1986. "id": str + _formdiv.id,
  1987. "style": {
  1988. "backgroundImage": "url(/img/icon/courseDesign.png)"
  1989. },
  1990. "name": "课程设计",
  1991. "forms": _formdiv,
  1992. "click": function() {
  1993. U.MD.D.I.openApplication(str, obj, info);
  1994. }
  1995. }
  1996. break;
  1997. }
  1998. const script1 = document.createElement("script");
  1999. script1.type = "text/javascript";
  2000. script1.src =
  2001. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  2002. const script2 = document.createElement("script");
  2003. script2.type = "text/javascript";
  2004. script2.src =
  2005. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  2006. const script3 = document.createElement("script");
  2007. script3.type = "text/javascript";
  2008. script3.charset = "UTF-8";
  2009. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  2010. const script4 = document.createElement("script");
  2011. script4.type = "text/javascript";
  2012. script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  2013. if (_iframe) {
  2014. if (str == 'doc') {
  2015. U.UF.DL.iframeLoad(_iframe, function() {
  2016. _iframe.contentWindow.U.MD.O.W.load();
  2017. _iframe.contentWindow.document.body.appendChild(script1);
  2018. _iframe.contentWindow.document.body.appendChild(script2);
  2019. // _iframe.contentWindow.document.body.appendChild(script3);
  2020. _iframe.contentWindow.document.body.appendChild(script4);
  2021. })
  2022. } else if (str == 'courseDesign') {
  2023. U.UF.DL.iframeLoad(_iframe, function() {
  2024. // _iframe.contentWindow.U.MD.O.W.load();
  2025. // _iframe.contentWindow.document.body.appendChild(script1);
  2026. _iframe.contentWindow.document.body.appendChild(script2);
  2027. _iframe.contentWindow.document.body.appendChild(script4);
  2028. })
  2029. } else {
  2030. _iframe.onload = () => {
  2031. _iframe.contentWindow.document.body.appendChild(script1);
  2032. _iframe.contentWindow.document.body.appendChild(script2);
  2033. // _iframe.contentWindow.document.body.appendChild(script3);
  2034. _iframe.contentWindow.document.body.appendChild(script4);
  2035. };
  2036. }
  2037. _jie.onclick = () => {
  2038. _loading.style.display = 'flex'
  2039. console.log(_loading);
  2040. var _ajs = _iframe.contentWindow.document.createElement("script");
  2041. _ajs.type = "text/javascript";
  2042. _ajs.innerHTML =
  2043. // 'console.log(' + _loading + ');\n' +
  2044. 'var _js = document.createElement("script");\n' +
  2045. '_js.type="text/javascript";\n' +
  2046. '_js.charset="UTF-8";\n' +
  2047. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  2048. "_js.onload = function(){\n" +
  2049. ' var a = document.getElementsByTagName("img")\n' +
  2050. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  2051. " html2canvas(document.body,{allowTaint: true,useCORS: true}).then(canvas => {\n" +
  2052. '  var base64Url = canvas.toDataURL("image/png");\n' +
  2053. 'var base64 = "<img src=" + base64Url + " />"\n' +
  2054. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  2055. "beforeUpload_shishi(file," +
  2056. "'" +
  2057. _userid +
  2058. "'" +
  2059. ", " +
  2060. "'" +
  2061. cid +
  2062. "'" +
  2063. ", " +
  2064. "'" +
  2065. stage +
  2066. "'" +
  2067. ", " +
  2068. "'" +
  2069. task +
  2070. "'" +
  2071. ", " +
  2072. "'" +
  2073. tool +
  2074. "'" +
  2075. ", " +
  2076. "'" +
  2077. str + '_loadLi' +
  2078. "'" +
  2079. ")\n" +
  2080. " });\n" +
  2081. "}\n" +
  2082. "document.head.appendChild(_js);\n";
  2083. _iframe.contentWindow.document.head.appendChild(_ajs);
  2084. }
  2085. }
  2086. //U.MD.D.I.openClick(str);
  2087. //如果有任务栏信息
  2088. if (_taskbar) {
  2089. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2090. }
  2091. }