DeskTop.js 120 KB

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