DeskTop.js 155 KB

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