DeskTop.js 125 KB

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