DeskTop.js 111 KB

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