DeskTop.js 130 KB

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