DeskTop.js 114 KB

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