DeskTop.js 153 KB

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