DeskTop.js 154 KB

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