DeskTop.js 190 KB

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