DeskTop.js 169 KB

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