DeskTop.js 110 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904
  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. } else if (e.data.tools && e.data.tools == "22") {
  439. U.MD.D.I.openApplication("AIprogram2")
  440. } else if (e.data.tools && e.data.tools == "23") {
  441. U.MD.D.I.openApplication("Pythonprogram")
  442. } else if (e.data.tools && e.data.tools == "24") {
  443. U.MD.D.I.openApplication("AIprogram")
  444. }
  445. });
  446. U.MD.D.I.selectUser = function() {
  447. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function(res) { //US.userInfo.userid
  448. if (res.value[0].length > 0) {
  449. US.userInfo = res.value[0][0];
  450. $(".userName")[0].innerHTML = US.userInfo.username;
  451. }
  452. }, [], { "type": "GET", "withCredentials": true });
  453. }
  454. U.MD.D.I.openInApplication = function(str, data) {
  455. var _userinfo = US.userInfo, //登录用户信息
  456. _userid = US.userInfo.userid, //登录用户id
  457. _oid = _userinfo.organizeid,
  458. _type = US.userInfo.type;
  459. switch (str) {
  460. case "studyDetail":
  461. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  462. setTimeout(() => {
  463. U.MD.U.L.login();
  464. }, 2000);
  465. } else {
  466. _formdiv = new U.UF.UI.form(
  467. "项目详情",
  468. $$("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 }), {
  469. "id": "studyDetail",
  470. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  471. "onresize": function() {}
  472. }, {
  473. closecallback: function() {}
  474. }, { "style": { "height": "36px" } }).form; //创建窗体
  475. _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); } }
  476. break;
  477. }
  478. }
  479. }
  480. U.MD.D.I.openApplication = function(str, obj, info) {
  481. obj = obj || {};
  482. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  483. _formdiv, //创建任务栏时同时弹出的窗体元素。
  484. _userinfo = US.userInfo, //登录用户信息
  485. _userid = obj.userid || US.userInfo.userid, //登录用户id
  486. _oid = obj.organizeid || _userinfo.organizeid,
  487. _type = US.userInfo.type,
  488. _classId = US.userInfo.classid;
  489. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  490. switch (str) {
  491. case "studnetProject": //好友打开
  492. _formdiv = new U.UF.UI.form(
  493. "我的项目",
  494. $$("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 }), {
  495. "id": "studnetProject",
  496. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  497. "onresize": function() {}
  498. }, {
  499. closecallback: function() {}
  500. }, { "style": { "height": "36px" } }).form; //创建窗体
  501. _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); } }
  502. break;
  503. case "studentEvaluate": //好友打开
  504. _formdiv = new U.UF.UI.form(
  505. "我的评价",
  506. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
  507. "id": "studentEvaluate",
  508. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  509. "onresize": function() {}
  510. }, {
  511. closecallback: function() {}
  512. }, { "style": { "height": "36px" } }).form; //创建窗体
  513. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  514. break;
  515. case "my":
  516. _formdiv = new U.UF.UI.form(
  517. "我的资料",
  518. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid }), {
  519. "id": "my",
  520. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  521. "onresize": function() {}
  522. }, {
  523. closecallback: function() {}
  524. }, { "style": { "height": "36px" } }).form; //创建窗体
  525. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  526. break;
  527. case "program":
  528. _formdiv = new U.UF.UI.form(
  529. "编程平台",
  530. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  531. "id": "program",
  532. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  533. "onresize": function() {}
  534. }, {
  535. closecallback: function() {}
  536. }, { "style": { "height": "36px" } }).form; //创建窗体
  537. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  538. break;
  539. case "library":
  540. _formdiv = new U.UF.UI.form(
  541. "素材库",
  542. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid }), {
  543. "id": "library",
  544. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  545. "onresize": function() {}
  546. }, {
  547. closecallback: function() {}
  548. }, { "style": { "height": "36px" } }).form; //创建窗体
  549. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  550. break;
  551. case "whiteboard":
  552. _formdiv = new U.UF.UI.form(
  553. "电子白板",
  554. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  555. "id": "whiteboard",
  556. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  557. "onresize": function() {}
  558. }, {
  559. closecallback: function() {}
  560. }, { "style": { "height": "36px" } }).form; //创建窗体
  561. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  562. break;
  563. case "investigation":
  564. _formdiv = new U.UF.UI.form(
  565. "问卷调查",
  566. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
  567. "id": "investigation",
  568. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  569. "onresize": function() {}
  570. }, {
  571. closecallback: function() {}
  572. }, { "style": { "height": "36px" } }).form; //创建窗体
  573. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  574. break;
  575. case "note":
  576. _formdiv = new U.UF.UI.form(
  577. "便签分类",
  578. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid }), {
  579. "id": "note",
  580. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  581. "onresize": function() {}
  582. }, {
  583. closecallback: function() {}
  584. }, { "style": { "height": "36px" } }).form; //创建窗体
  585. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  586. break;
  587. // case "score":
  588. // _formdiv = new U.UF.UI.form(
  589. // "量规评分",
  590. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  591. // "id": "score",
  592. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  593. // "onresize": function() {}
  594. // }, {
  595. // closecallback: function() {}
  596. // }, { "style": { "height": "36px" } }).form; //创建窗体
  597. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  598. // break;
  599. case "mind":
  600. _formdiv = new U.UF.UI.form(
  601. "思维导图",
  602. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  603. "id": "mind",
  604. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  605. "onresize": function() {}
  606. }, {
  607. closecallback: function() {}
  608. }, { "style": { "height": "36px" } }).form; //创建窗体
  609. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  610. break;
  611. case "doc":
  612. // U.MD.D.I.isRoom();
  613. _formdiv = new U.UF.UI.form(
  614. "协同文档",
  615. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.kdocs.cn/latest?from=docs" }), { //"/Office/Word/WordEditArea.htm"
  616. "id": "doc",
  617. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  618. "onresize": function() {}
  619. }, {
  620. closecallback: function() {}
  621. }, { "style": { "height": "36px" } }).form; //创建窗体
  622. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  623. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  624. // })
  625. _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); } }
  626. break;
  627. case "studentStudy":
  628. _formdiv = new U.UF.UI.form(
  629. "学习中心",
  630. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  631. "id": "studentStudy",
  632. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  633. "onresize": function() {}
  634. }, {
  635. closecallback: function() {}
  636. }, { "style": { "height": "36px" } }).form; //创建窗体
  637. _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); } }
  638. break;
  639. case "train": //好友打开
  640. _formdiv = new U.UF.UI.form(
  641. "训练平台",
  642. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  643. "id": "mindNetwork",
  644. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  645. "onresize": function() {}
  646. }, {
  647. closecallback: function() {}
  648. }, { "style": { "height": "36px" } }).form; //创建窗体
  649. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "训练平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  650. break;
  651. case "mindNetwork": //好友打开
  652. _formdiv = new U.UF.UI.form(
  653. "思维网格",
  654. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
  655. "id": "mindNetwork",
  656. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  657. "onresize": function() {}
  658. }, {
  659. closecallback: function() {}
  660. }, { "style": { "height": "36px" } }).form; //创建窗体
  661. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  662. break;
  663. case "studentClassRoom": //好友打开
  664. _formdiv = new U.UF.UI.form(
  665. "实时课堂",
  666. $$("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 }), {
  667. "id": "studentClassRoom",
  668. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  669. "onresize": function() {}
  670. }, {
  671. closecallback: function() {}
  672. }, { "style": { "height": "36px" } }).form; //创建窗体
  673. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  674. setTimeout(() => {
  675. U.UF.F.windowZooming(_formdiv)
  676. }, 0);
  677. break;
  678. }
  679. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  680. switch (str) {
  681. case "studnetProject": //好友打开
  682. _formdiv = new U.UF.UI.form(
  683. "我的项目",
  684. $$("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 }), {
  685. "id": "studnetProject",
  686. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  687. "onresize": function() {}
  688. }, {
  689. closecallback: function() {}
  690. }, { "style": { "height": "36px" } }).form; //创建窗体
  691. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  692. break;
  693. case "studentEvaluate": //好友打开
  694. _formdiv = new U.UF.UI.form(
  695. "我的评价",
  696. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
  697. "id": "studentEvaluate",
  698. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  699. "onresize": function() {}
  700. }, {
  701. closecallback: function() {}
  702. }, { "style": { "height": "36px" } }).form; //创建窗体
  703. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  704. break;
  705. case "my":
  706. _formdiv = new U.UF.UI.form(
  707. "我的资料",
  708. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid }), {
  709. "id": "my",
  710. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  711. "onresize": function() {}
  712. }, {
  713. closecallback: function() {}
  714. }, { "style": { "height": "36px" } }).form; //创建窗体
  715. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  716. break;
  717. case "program":
  718. _formdiv = new U.UF.UI.form(
  719. "编程平台",
  720. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  721. "id": "program",
  722. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  723. "onresize": function() {}
  724. }, {
  725. closecallback: function() {}
  726. }, { "style": { "height": "36px" } }).form; //创建窗体
  727. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  728. break;
  729. case "library":
  730. _formdiv = new U.UF.UI.form(
  731. "素材库",
  732. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid }), {
  733. "id": "library",
  734. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  735. "onresize": function() {}
  736. }, {
  737. closecallback: function() {}
  738. }, { "style": { "height": "36px" } }).form; //创建窗体
  739. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  740. break;
  741. case "whiteboard":
  742. _formdiv = new U.UF.UI.form(
  743. "电子白板",
  744. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  745. "id": "whiteboard",
  746. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  747. "onresize": function() {}
  748. }, {
  749. closecallback: function() {}
  750. }, { "style": { "height": "36px" } }).form; //创建窗体
  751. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  752. break;
  753. case "investigation":
  754. _formdiv = new U.UF.UI.form(
  755. "问卷调查",
  756. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
  757. "id": "investigation",
  758. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  759. "onresize": function() {}
  760. }, {
  761. closecallback: function() {}
  762. }, { "style": { "height": "36px" } }).form; //创建窗体
  763. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  764. break;
  765. case "note":
  766. _formdiv = new U.UF.UI.form(
  767. "便签分类",
  768. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid }), {
  769. "id": "note",
  770. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  771. "onresize": function() {}
  772. }, {
  773. closecallback: function() {}
  774. }, { "style": { "height": "36px" } }).form; //创建窗体
  775. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  776. break;
  777. // case "score":
  778. // _formdiv = new U.UF.UI.form(
  779. // "量规评分",
  780. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  781. // "id": "score",
  782. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  783. // "onresize": function() {}
  784. // }, {
  785. // closecallback: function() {}
  786. // }, { "style": { "height": "36px" } }).form; //创建窗体
  787. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  788. // break;
  789. case "mind":
  790. _formdiv = new U.UF.UI.form(
  791. "思维导图",
  792. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  793. "id": "mind",
  794. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  795. "onresize": function() {}
  796. }, {
  797. closecallback: function() {}
  798. }, { "style": { "height": "36px" } }).form; //创建窗体
  799. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  800. break;
  801. case "doc":
  802. // U.MD.D.I.isRoom();
  803. _formdiv = new U.UF.UI.form(
  804. "协同文档",
  805. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.kdocs.cn/latest?from=docs" }), {
  806. "id": "doc",
  807. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  808. "onresize": function() {}
  809. }, {
  810. closecallback: function() {}
  811. }, { "style": { "height": "36px" } }).form; //创建窗体
  812. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  813. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  814. // })
  815. _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); } }
  816. break;
  817. case "train": //好友打开
  818. _formdiv = new U.UF.UI.form(
  819. "训练平台",
  820. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  821. "id": "mindNetwork",
  822. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  823. "onresize": function() {}
  824. }, {
  825. closecallback: function() {}
  826. }, { "style": { "height": "36px" } }).form; //创建窗体
  827. _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); } }
  828. break;
  829. case "studentStudy":
  830. _formdiv = new U.UF.UI.form(
  831. "学习中心",
  832. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  833. "id": "studentStudy",
  834. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  835. "onresize": function() {}
  836. }, {
  837. closecallback: function() {}
  838. }, { "style": { "height": "36px" } }).form; //创建窗体
  839. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  840. break;
  841. case "mindNetwork": //好友打开
  842. _formdiv = new U.UF.UI.form(
  843. "思维网格",
  844. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
  845. "id": "mindNetwork",
  846. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  847. "onresize": function() {}
  848. }, {
  849. closecallback: function() {}
  850. }, { "style": { "height": "36px" } }).form; //创建窗体
  851. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  852. break;
  853. case "studentClassRoom": //好友打开
  854. _formdiv = new U.UF.UI.form(
  855. "实时课堂",
  856. $$("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 }), {
  857. "id": "studentClassRoom",
  858. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  859. "onresize": function() {}
  860. }, {
  861. closecallback: function() {}
  862. }, { "style": { "height": "36px" } }).form; //创建窗体
  863. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  864. setTimeout(() => {
  865. U.UF.F.windowZooming(_formdiv)
  866. }, 0);
  867. break;
  868. }
  869. } else if (_type == 1 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  870. //选择应用处理
  871. switch (str) {
  872. case "project": //好友打开
  873. _formdiv = new U.UF.UI.form(
  874. "项目管理",
  875. $$("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 }), {
  876. "id": "project",
  877. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  878. "onresize": function() {}
  879. }, {
  880. closecallback: function() {}
  881. }, { "style": { "height": "36px" } }).form; //创建窗体
  882. _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); } }
  883. break;
  884. case "student":
  885. _formdiv = new U.UF.UI.form(
  886. "学生管理",
  887. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid }), {
  888. "id": "student",
  889. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  890. "onresize": function() {}
  891. }, {
  892. closecallback: function() {}
  893. }, { "style": { "height": "36px" } }).form; //创建窗体
  894. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  895. break;
  896. case "evaluate":
  897. _formdiv = new U.UF.UI.form(
  898. "学生评价",
  899. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
  900. "id": "evaluate",
  901. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  902. "onresize": function() {}
  903. }, {
  904. closecallback: function() {}
  905. }, { "style": { "height": "36px" } }).form; //创建窗体
  906. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  907. break;
  908. case "sys":
  909. _formdiv = new U.UF.UI.form(
  910. "目标管理",
  911. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid }), {
  912. "id": "sys",
  913. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  914. "onresize": function() {}
  915. }, {
  916. closecallback: function() {}
  917. }, { "style": { "height": "36px" } }).form; //创建窗体
  918. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "目标管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  919. break;
  920. case "courseDesign":
  921. _formdiv = new U.UF.UI.form(
  922. "课程设计",
  923. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design/index.html" }), {
  924. "id": "courseDesign",
  925. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  926. "onresize": function() {}
  927. }, {
  928. closecallback: function() {}
  929. }, { "style": { "height": "36px" } }).form; //创建窗体
  930. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "课程设计", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  931. break;
  932. case "program":
  933. _formdiv = new U.UF.UI.form(
  934. "编程平台",
  935. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  936. "id": "program",
  937. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  938. "onresize": function() {}
  939. }, {
  940. closecallback: function() {}
  941. }, { "style": { "height": "36px" } }).form; //创建窗体
  942. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  943. break;
  944. case "class":
  945. _formdiv = new U.UF.UI.form(
  946. "班级管理",
  947. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid }), {
  948. "id": "class",
  949. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  950. "onresize": function() {}
  951. }, {
  952. closecallback: function() {}
  953. }, { "style": { "height": "36px" } }).form; //创建窗体
  954. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  955. break;
  956. case "my":
  957. _formdiv = new U.UF.UI.form(
  958. "我的资料",
  959. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid }), {
  960. "id": "my",
  961. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  962. "onresize": function() {}
  963. }, {
  964. closecallback: function() {}
  965. }, { "style": { "height": "36px" } }).form; //创建窗体
  966. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  967. break;
  968. case "notice":
  969. _formdiv = new U.UF.UI.form(
  970. "通知公告",
  971. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/notice?userid=" + _userid }), {
  972. "id": "notice",
  973. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  974. "onresize": function() {}
  975. }, {
  976. closecallback: function() {}
  977. }, { "style": { "height": "36px" } }).form; //创建窗体
  978. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  979. break;
  980. case "library":
  981. _formdiv = new U.UF.UI.form(
  982. "素材库",
  983. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid }), {
  984. "id": "library",
  985. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  986. "onresize": function() {}
  987. }, {
  988. closecallback: function() {}
  989. }, { "style": { "height": "36px" } }).form; //创建窗体
  990. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  991. break;
  992. case "whiteboard":
  993. _formdiv = new U.UF.UI.form(
  994. "电子白板",
  995. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  996. "id": "whiteboard",
  997. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  998. "onresize": function() {}
  999. }, {
  1000. closecallback: function() {}
  1001. }, { "style": { "height": "36px" } }).form; //创建窗体
  1002. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1003. break;
  1004. case "investigation":
  1005. _formdiv = new U.UF.UI.form(
  1006. "问卷调查",
  1007. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
  1008. "id": "investigation",
  1009. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1010. "onresize": function() {}
  1011. }, {
  1012. closecallback: function() {}
  1013. }, { "style": { "height": "36px" } }).form; //创建窗体
  1014. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1015. break;
  1016. case "note":
  1017. _formdiv = new U.UF.UI.form(
  1018. "便签分类",
  1019. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid }), {
  1020. "id": "note",
  1021. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1022. "onresize": function() {}
  1023. }, {
  1024. closecallback: function() {}
  1025. }, { "style": { "height": "36px" } }).form; //创建窗体
  1026. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1027. break;
  1028. // case "score":
  1029. // _formdiv = new U.UF.UI.form(
  1030. // "量规评分",
  1031. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1032. // "id": "score",
  1033. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1034. // "onresize": function() {}
  1035. // }, {
  1036. // closecallback: function() {}
  1037. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1038. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1039. // break;
  1040. case "mind":
  1041. _formdiv = new U.UF.UI.form(
  1042. "思维导图",
  1043. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1044. "id": "mind",
  1045. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1046. "onresize": function() {}
  1047. }, {
  1048. closecallback: function() {}
  1049. }, { "style": { "height": "36px" } }).form; //创建窗体
  1050. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1051. break;
  1052. case "doc":
  1053. // U.MD.D.I.isRoom();
  1054. _formdiv = new U.UF.UI.form(
  1055. "协同文档",
  1056. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.kdocs.cn/latest?from=docs" }), {
  1057. "id": "doc",
  1058. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1059. "onresize": function() {}
  1060. }, {
  1061. closecallback: function() {}
  1062. }, { "style": { "height": "36px" } }).form; //创建窗体
  1063. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1064. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1065. // })
  1066. _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); } }
  1067. break;
  1068. case "study":
  1069. _formdiv = new U.UF.UI.form(
  1070. "学习中心",
  1071. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1072. "id": "study",
  1073. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1074. "onresize": function() {}
  1075. }, {
  1076. closecallback: function() {}
  1077. }, { "style": { "height": "36px" } }).form; //创建窗体
  1078. _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); } }
  1079. break;
  1080. case "mindNetwork": //好友打开
  1081. _formdiv = new U.UF.UI.form(
  1082. "思维网格",
  1083. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
  1084. "id": "mindNetwork",
  1085. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1086. "onresize": function() {}
  1087. }, {
  1088. closecallback: function() {}
  1089. }, { "style": { "height": "36px" } }).form; //创建窗体
  1090. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1091. break;
  1092. case "train": //好友打开
  1093. _formdiv = new U.UF.UI.form(
  1094. "训练平台",
  1095. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1096. "id": "mindNetwork",
  1097. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1098. "onresize": function() {}
  1099. }, {
  1100. closecallback: function() {}
  1101. }, { "style": { "height": "36px" } }).form; //创建窗体
  1102. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "训练平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1103. break;
  1104. case "teacherClassRoom": //好友打开
  1105. _formdiv = new U.UF.UI.form(
  1106. "实时课堂",
  1107. $$("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 }), {
  1108. "id": "teacherClassRoom",
  1109. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1110. "onresize": function() {}
  1111. }, {
  1112. closecallback: function() {}
  1113. }, { "style": { "height": "36px" } }).form; //创建窗体
  1114. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1115. setTimeout(() => {
  1116. U.UF.F.windowZooming(_formdiv)
  1117. }, 0);
  1118. break;
  1119. }
  1120. } else if (_type == 1 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1121. switch (str) {
  1122. case "project": //好友打开
  1123. _formdiv = new U.UF.UI.form(
  1124. "项目管理",
  1125. $$("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 }), {
  1126. "id": "project",
  1127. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1128. "onresize": function() {}
  1129. }, {
  1130. closecallback: function() {}
  1131. }, { "style": { "height": "36px" } }).form; //创建窗体
  1132. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "项目管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1133. break;
  1134. case "evaluate":
  1135. _formdiv = new U.UF.UI.form(
  1136. "学生评价",
  1137. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
  1138. "id": "evaluate",
  1139. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1140. "onresize": function() {}
  1141. }, {
  1142. closecallback: function() {}
  1143. }, { "style": { "height": "36px" } }).form; //创建窗体
  1144. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1145. break;
  1146. case "notice":
  1147. _formdiv = new U.UF.UI.form(
  1148. "通知公告",
  1149. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/notice?userid=" + _userid }), {
  1150. "id": "notice",
  1151. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1152. "onresize": function() {}
  1153. }, {
  1154. closecallback: function() {}
  1155. }, { "style": { "height": "36px" } }).form; //创建窗体
  1156. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1157. break;
  1158. case "stuLibrary":
  1159. _formdiv = new U.UF.UI.form(
  1160. "学习资料",
  1161. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/studyLibrary?userid=" + _userid }), {
  1162. "id": "stuLibrary",
  1163. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1164. "onresize": function() {}
  1165. }, {
  1166. closecallback: function() {}
  1167. }, { "style": { "height": "36px" } }).form; //创建窗体
  1168. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/stuLibrary.png)" }, "name": "学习资料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1169. break;
  1170. case "program":
  1171. _formdiv = new U.UF.UI.form(
  1172. "编程平台",
  1173. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1174. "id": "program",
  1175. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1176. "onresize": function() {}
  1177. }, {
  1178. closecallback: function() {}
  1179. }, { "style": { "height": "36px" } }).form; //创建窗体
  1180. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1181. break;
  1182. case "whiteboard":
  1183. _formdiv = new U.UF.UI.form(
  1184. "电子白板",
  1185. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1186. "id": "whiteboard",
  1187. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1188. "onresize": function() {}
  1189. }, {
  1190. closecallback: function() {}
  1191. }, { "style": { "height": "36px" } }).form; //创建窗体
  1192. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1193. break;
  1194. case "investigation":
  1195. _formdiv = new U.UF.UI.form(
  1196. "问卷调查",
  1197. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid }), {
  1198. "id": "investigation",
  1199. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1200. "onresize": function() {}
  1201. }, {
  1202. closecallback: function() {}
  1203. }, { "style": { "height": "36px" } }).form; //创建窗体
  1204. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1205. break;
  1206. case "mind":
  1207. _formdiv = new U.UF.UI.form(
  1208. "思维导图",
  1209. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1210. "id": "mind",
  1211. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1212. "onresize": function() {}
  1213. }, {
  1214. closecallback: function() {}
  1215. }, { "style": { "height": "36px" } }).form; //创建窗体
  1216. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1217. break;
  1218. case "doc":
  1219. // U.MD.D.I.isRoom();
  1220. _formdiv = new U.UF.UI.form(
  1221. "协同文档",
  1222. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.kdocs.cn/latest?from=docs" }), {
  1223. "id": "doc",
  1224. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1225. "onresize": function() {}
  1226. }, {
  1227. closecallback: function() {}
  1228. }, { "style": { "height": "36px" } }).form; //创建窗体
  1229. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1230. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1231. // })
  1232. _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); } }
  1233. break;
  1234. case "study":
  1235. _formdiv = new U.UF.UI.form(
  1236. "学习中心",
  1237. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1238. "id": "study",
  1239. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1240. "onresize": function() {}
  1241. }, {
  1242. closecallback: function() {}
  1243. }, { "style": { "height": "36px" } }).form; //创建窗体
  1244. _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); } }
  1245. break;
  1246. case "mindNetwork": //好友打开
  1247. _formdiv = new U.UF.UI.form(
  1248. "思维网格",
  1249. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid }), {
  1250. "id": "mindNetwork",
  1251. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1252. "onresize": function() {}
  1253. }, {
  1254. closecallback: function() {}
  1255. }, { "style": { "height": "36px" } }).form; //创建窗体
  1256. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1257. break;
  1258. case "train": //好友打开
  1259. _formdiv = new U.UF.UI.form(
  1260. "训练平台",
  1261. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1262. "id": "mindNetwork",
  1263. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1264. "onresize": function() {}
  1265. }, {
  1266. closecallback: function() {}
  1267. }, { "style": { "height": "36px" } }).form; //创建窗体
  1268. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "训练平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1269. break;
  1270. case "sys":
  1271. _formdiv = new U.UF.UI.form(
  1272. "目标管理",
  1273. $$("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 }), {
  1274. "id": "sys",
  1275. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1276. "onresize": function() {}
  1277. }, {
  1278. closecallback: function() {}
  1279. }, { "style": { "height": "36px" } }).form; //创建窗体
  1280. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "目标管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1281. break;
  1282. case "courseDesign":
  1283. _formdiv = new U.UF.UI.form(
  1284. "课程设计",
  1285. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design/index.html" }), {
  1286. "id": "courseDesign",
  1287. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1288. "onresize": function() {}
  1289. }, {
  1290. closecallback: function() {}
  1291. }, { "style": { "height": "36px" } }).form; //创建窗体
  1292. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "课程设计", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1293. break;
  1294. }
  1295. }
  1296. switch (str) {
  1297. // AIprogram2 AI体验 aihub.cocorobo.cn
  1298. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  1299. // AIprogram AI编程 ai-blockly.cocorobo.cn
  1300. case "AIprogram2": //AI体验
  1301. _formdiv = new U.UF.UI.form(
  1302. "AI体验",
  1303. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  1304. "id": "studnetProject",
  1305. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1306. "onresize": function() {}
  1307. }, {
  1308. closecallback: function() {}
  1309. }, { "style": { "height": "36px" } }).form; //创建窗体
  1310. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram2.png)" }, "name": "AI体验", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1311. break;
  1312. case "Pythonprogram": //python编程
  1313. _formdiv = new U.UF.UI.form(
  1314. "Python编程",
  1315. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  1316. "id": "studnetProject",
  1317. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1318. "onresize": function() {}
  1319. }, {
  1320. closecallback: function() {}
  1321. }, { "style": { "height": "36px" } }).form; //创建窗体
  1322. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Pythonprogram.png)" }, "name": "Python编程", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1323. break;
  1324. case "AIprogram": //ai编程
  1325. _formdiv = new U.UF.UI.form(
  1326. "ai编程平台",
  1327. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/" }), {
  1328. "id": "studnetProject",
  1329. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1330. "onresize": function() {}
  1331. }, {
  1332. closecallback: function() {}
  1333. }, { "style": { "height": "36px" } }).form; //创建窗体
  1334. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/program.png)" }, "name": "ai编程平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1335. break;
  1336. }
  1337. //U.MD.D.I.openClick(str);
  1338. //如果有任务栏信息
  1339. if (_taskbar) {
  1340. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  1341. }
  1342. }
  1343. // U.MD.D.I.openClick = function(str){
  1344. // var click = '';
  1345. // switch(str){
  1346. // case 'friend':
  1347. // click = '我的好友';
  1348. // break;
  1349. // case 'domain':
  1350. // click = '域名管理';
  1351. // break;
  1352. // case 'disk':
  1353. // click = '我的云盘';
  1354. // break;
  1355. // case 'word':
  1356. // click = 'Word';
  1357. // break;
  1358. // case 'excel':
  1359. // click = 'Execl';
  1360. // break;
  1361. // case 'txt':
  1362. // click = '文本文件';
  1363. // break;
  1364. // case 'lookupFriend':
  1365. // click = '查找好友';
  1366. // break;
  1367. // case 'ftp':
  1368. // click = 'FTP';
  1369. // break;
  1370. // case 'group':
  1371. // click = '群组';
  1372. // break;
  1373. // case 'set':
  1374. // click = '我的设置';
  1375. // break;
  1376. // case 'systemSet':
  1377. // click = '系统设置';
  1378. // break;
  1379. // case 'boomYun':
  1380. // click = '互联办公';
  1381. // break;
  1382. // case 'xz':
  1383. // click = '云端下载';
  1384. // break;
  1385. // case 'client':
  1386. // click = '有思浏览器';
  1387. // break;
  1388. // case 'backEndProgramming':
  1389. // click = '在线后台编程';
  1390. // break;
  1391. // case 'frontEndProgramming':
  1392. // click = '在线前端编程';
  1393. // break;
  1394. // default: break;
  1395. // }
  1396. // if(U.MD.D.I.Ip && click){
  1397. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  1398. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  1399. // })
  1400. // }
  1401. // }
  1402. /**
  1403. *函数作用:ajax简易函数,使用post格式
  1404. *@param url {data} 后台地址
  1405. *@param data {data} 参数json
  1406. *@param fn {data} 回调函数
  1407. *
  1408. */
  1409. // U.MD.D.I.Mysqlrequest = function(url,fn){
  1410. // var xhr = new XMLHttpRequest();
  1411. // xhr.open("GET",url,true);
  1412. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  1413. // xhr.onreadystatechange = function(){
  1414. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  1415. // fn.call(this,xhr.responseText);
  1416. // }
  1417. // };
  1418. // xhr.send();
  1419. // }
  1420. /*判断是否是内网IP*/
  1421. // U.MD.D.I.isInnerIPFn = function(str){
  1422. // var curPageUrl = str;
  1423. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  1424. // curPageUrl =curPageUrl.replace(reg1,'');
  1425. // // console.log('curPageUrl-1 '+curPageUrl);
  1426. // var reg2 = /\:+/g;//替换冒号为一点
  1427. // curPageUrl =curPageUrl.replace(reg2,'.');
  1428. // // console.log('curPageUrl-2 '+curPageUrl);
  1429. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  1430. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  1431. // if(curPageUrl[2] != '16'){
  1432. // return ipAddress;
  1433. // }else{
  1434. // return false;
  1435. // }
  1436. // }
  1437. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  1438. // //compatibility for firefox and chrome
  1439. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  1440. // var pc = new myPeerConnection({
  1441. // iceServers: []
  1442. // }),
  1443. // noop = function() {},
  1444. // localIPs = {},
  1445. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  1446. // key;
  1447. // function iterateIP(ip) {
  1448. // if (!localIPs[ip]) onNewIP(ip);
  1449. // localIPs[ip] = true;
  1450. // }
  1451. // //create a bogus data channel
  1452. // pc.createDataChannel("");
  1453. // // create offer and set local description
  1454. // pc.createOffer().then(function(sdp) {
  1455. // sdp.sdp.split('\n').forEach(function(line) {
  1456. // if (line.indexOf('candidate') < 0) return;
  1457. // line.match(ipRegex).forEach(iterateIP);
  1458. // });
  1459. // pc.setLocalDescription(sdp, noop, noop);
  1460. // }).catch(function(reason) {
  1461. // // An error occurred, so handle the failure to connect
  1462. // });
  1463. // //sten for candidate events
  1464. // pc.onicecandidate = function(ice) {
  1465. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  1466. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  1467. // };
  1468. // }
  1469. // U.MD.D.I.getUserIpBool = function(callback){
  1470. // U.MD.D.I.getUserIP(function(ip){
  1471. // alert("Got IP! :" + ip);
  1472. // });
  1473. //}
  1474. //#endregion
  1475. U.MD.D.I.openApplicationJie = function(str, cid, stage, task, tool) {
  1476. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1477. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1478. _userinfo = US.userInfo, //登录用户信息
  1479. _userid = US.userInfo.userid //登录用户id
  1480. let _iframe;
  1481. var _jie = $$("div", {
  1482. "style": {
  1483. "position": "absolute",
  1484. "bottom": "50px",
  1485. "right": "50px",
  1486. "zIndex": "9999",
  1487. "backgroundColor": "#2268bc",
  1488. "color": "#fff",
  1489. "padding": "12px 20px",
  1490. "cursor": "pointer",
  1491. "borderRadius": "4px",
  1492. },
  1493. "innerHTML": "提交作业"
  1494. })
  1495. let _loading = document.createElement('div')
  1496. _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;"
  1497. // _loading.id = "";
  1498. let _lchild = document.createElement('div')
  1499. let _limg = document.createElement('img')
  1500. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  1501. _limg.style = "width: 26px;margin-right: 10px;"
  1502. _lchild.appendChild(_limg)
  1503. let _lspan = document.createElement('span')
  1504. _lspan.innerHTML = "上传中..."
  1505. _lchild.appendChild(_lspan)
  1506. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  1507. _loading.appendChild(_lchild)
  1508. var _box = $$('div', {
  1509. "style": {
  1510. "position": "relative",
  1511. "width": "100%",
  1512. "height": "100%",
  1513. },
  1514. })
  1515. _box.appendChild(_loading)
  1516. _box.id = str + '_loadLi'
  1517. switch (str) {
  1518. case "whiteboard":
  1519. _iframe = $$("iframe", {
  1520. "frameborder": "no",
  1521. "border": "0",
  1522. "scrolling ": "no",
  1523. "style": {
  1524. "cssText": "border:0;width:100%;height:100%"
  1525. },
  1526. "src": "https://iwb.cocorobo.cn/"
  1527. })
  1528. _box.appendChild(_iframe);
  1529. _box.appendChild(_jie);
  1530. _formdiv = new U.UF.UI.form(
  1531. "电子白板",
  1532. _box, {
  1533. "id": "whiteboard",
  1534. "style": {
  1535. "width": "90%",
  1536. "height": "90%",
  1537. "overflow": 'hidden'
  1538. },
  1539. "onresize": function() {}
  1540. }, {
  1541. closecallback: function() {}
  1542. }, {
  1543. "style": {
  1544. "height": "36px"
  1545. }
  1546. }).form; //创建窗体
  1547. _taskbar = {
  1548. "id": str + _formdiv.id,
  1549. "style": {
  1550. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  1551. },
  1552. "name": "电子白板",
  1553. "forms": _formdiv,
  1554. "click": function() {
  1555. U.MD.D.I.openApplication(str, obj, info);
  1556. }
  1557. }
  1558. break;
  1559. case "mind":
  1560. _iframe = $$("iframe", {
  1561. "frameborder": "no",
  1562. "border": "0",
  1563. "scrolling ": "no",
  1564. "style": {
  1565. "cssText": "border:0;width:100%;height:100%"
  1566. },
  1567. "src": "/kityminder-editor/dist/index.html"
  1568. })
  1569. _box.appendChild(_iframe);
  1570. _box.appendChild(_jie);
  1571. _formdiv = new U.UF.UI.form(
  1572. "思维导图",
  1573. _box, { //"/jsmind/example/demo.html"
  1574. "id": "mind",
  1575. "style": {
  1576. "width": "90%",
  1577. "height": "90%",
  1578. "overflow": 'hidden'
  1579. },
  1580. "onresize": function() {}
  1581. }, {
  1582. closecallback: function() {}
  1583. }, {
  1584. "style": {
  1585. "height": "36px"
  1586. }
  1587. }).form; //创建窗体
  1588. _taskbar = {
  1589. "id": str + _formdiv.id,
  1590. "style": {
  1591. "backgroundImage": "url(/img/icon/mindMapping.png)"
  1592. },
  1593. "name": "思维导图",
  1594. "forms": _formdiv,
  1595. "click": function() {
  1596. U.MD.D.I.openApplication(str, obj, info);
  1597. }
  1598. }
  1599. break;
  1600. case "doc":
  1601. _iframe = $$("iframe", {
  1602. "frameborder": "no",
  1603. "border": "0",
  1604. "scrolling ": "no",
  1605. "style": {
  1606. "cssText": "border:0;width:100%;height:100%"
  1607. },
  1608. "src": "https://www.kdocs.cn/latest?from=docs"
  1609. })
  1610. _box.appendChild(_iframe);
  1611. _box.appendChild(_jie);
  1612. _formdiv = new U.UF.UI.form(
  1613. "协同文档",
  1614. _box, {
  1615. "id": "doc",
  1616. "style": {
  1617. "width": "90%",
  1618. "height": "90%",
  1619. "overflow": 'hidden'
  1620. },
  1621. "onresize": function() {}
  1622. }, {
  1623. closecallback: function() {}
  1624. }, {
  1625. "style": {
  1626. "height": "36px"
  1627. }
  1628. }).form; //创建窗体
  1629. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  1630. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1631. // })
  1632. _taskbar = {
  1633. "id": str + _formdiv.id,
  1634. "style": {
  1635. "backgroundImage": "url(/img/icon/doc.png)"
  1636. },
  1637. "name": "协同文档",
  1638. "forms": _formdiv,
  1639. "click": function() {
  1640. U.MD.D.I.openApplication(str, obj, info);
  1641. }
  1642. }
  1643. break;
  1644. case "mindNetwork": //好友打开
  1645. _iframe = $$("iframe", {
  1646. "webkitallowfullscreen": "",
  1647. "mozallowfullscreen": "",
  1648. "allowfullscreen": "",
  1649. "frameborder": "no",
  1650. "border": "0",
  1651. "scrolling ": "no",
  1652. "style": {
  1653. "cssText": "border:0; width:100%; height:100%;"
  1654. },
  1655. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  1656. })
  1657. _box.appendChild(_iframe);
  1658. _box.appendChild(_jie);
  1659. _formdiv = new U.UF.UI.form(
  1660. "思维网格",
  1661. _box, {
  1662. "id": "mindNetwork",
  1663. "style": {
  1664. "width": "90%",
  1665. "height": "90%",
  1666. "overflow": 'hidden'
  1667. },
  1668. "onresize": function() {}
  1669. }, {
  1670. closecallback: function() {}
  1671. }, {
  1672. "style": {
  1673. "height": "36px"
  1674. }
  1675. }).form; //创建窗体
  1676. _taskbar = {
  1677. "id": str + _formdiv.id,
  1678. "style": {
  1679. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  1680. },
  1681. "name": "思维网格",
  1682. "forms": _formdiv,
  1683. "click": function() {
  1684. U.MD.D.I.openApplication(str, obj, info);
  1685. }
  1686. }
  1687. break;
  1688. }
  1689. const script1 = document.createElement("script");
  1690. script1.type = "text/javascript";
  1691. script1.src =
  1692. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  1693. const script2 = document.createElement("script");
  1694. script2.type = "text/javascript";
  1695. script2.src =
  1696. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  1697. const script3 = document.createElement("script");
  1698. script3.type = "text/javascript";
  1699. script3.src = "https://html2canvas.hertzen.com/dist/js/html2canvas.min.js";
  1700. const script4 = document.createElement("script");
  1701. script4.type = "text/javascript";
  1702. script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  1703. if (_iframe) {
  1704. if (str == 'doc') {
  1705. U.UF.DL.iframeLoad(_iframe, function() {
  1706. //_iframe.contentWindow.U.MD.O.W.load();
  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. } else {
  1713. _iframe.onload = () => {
  1714. _iframe.contentWindow.document.body.appendChild(script1);
  1715. _iframe.contentWindow.document.body.appendChild(script2);
  1716. // _iframe.contentWindow.document.body.appendChild(script3);
  1717. _iframe.contentWindow.document.body.appendChild(script4);
  1718. };
  1719. }
  1720. _jie.onclick = () => {
  1721. _loading.style.display = 'flex'
  1722. console.log(_loading);
  1723. var _ajs = _iframe.contentWindow.document.createElement("script");
  1724. _ajs.type = "text/javascript";
  1725. _ajs.innerHTML =
  1726. // 'console.log(' + _loading + ');\n' +
  1727. 'var _js = document.createElement("script");\n' +
  1728. '_js.type="text/javascript";\n' +
  1729. '_js.src="https://html2canvas.hertzen.com/dist/html2canvas.min.js";\n' +
  1730. "_js.onload = function(){\n" +
  1731. ' var a = document.getElementsByTagName("img")\n' +
  1732. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  1733. " html2canvas(document.body,{allowTaint: true,useCORS: true}).then(canvas => {\n" +
  1734. '  var base64Url = canvas.toDataURL("image/png");\n' +
  1735. 'var base64 = "<img src=" + base64Url + " />"\n' +
  1736. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  1737. "beforeUpload_shishi(file," +
  1738. "'" +
  1739. _userid +
  1740. "'" +
  1741. ", " +
  1742. "'" +
  1743. cid +
  1744. "'" +
  1745. ", " +
  1746. "'" +
  1747. stage +
  1748. "'" +
  1749. ", " +
  1750. "'" +
  1751. task +
  1752. "'" +
  1753. ", " +
  1754. "'" +
  1755. tool +
  1756. "'" +
  1757. ", " +
  1758. "'" +
  1759. str + '_loadLi' +
  1760. "'" +
  1761. ")\n" +
  1762. " });\n" +
  1763. "}\n" +
  1764. "document.head.appendChild(_js);\n";
  1765. _iframe.contentWindow.document.head.appendChild(_ajs);
  1766. }
  1767. }
  1768. //U.MD.D.I.openClick(str);
  1769. //如果有任务栏信息
  1770. if (_taskbar) {
  1771. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  1772. }
  1773. }