DeskTop.js 139 KB

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