DeskTop.js 174 KB

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