DeskTop.js 110 KB

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