DeskTop.js 110 KB

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