DeskTop.js 134 KB

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