DeskTop.js 155 KB

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