DeskTop.js 130 KB

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