DeskTop.js 133 KB

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