DeskTop.js 131 KB

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