DeskTop.js 126 KB

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