DeskTop.js 113 KB

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