DeskTop.js 153 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575
  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 != "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  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 == "2gm") {
  566. var _formel = document.getElementById("studyDetail");
  567. U.UF.F.windowZooming(_formel);
  568. } else if (e.data.allScreen && e.data.allScreen == "3") {
  569. var _formel = document.getElementById("studentStudy");
  570. U.UF.F.windowZooming(_formel);
  571. } else if (e.data.allScreen && e.data.allScreen == "6") {
  572. var _formel = document.getElementById("study");
  573. //如果最大化了,那么就把他缩小
  574. // if (_formel.ismaximize) {
  575. // return;
  576. // }
  577. // U.UF.F.windowZooming(_formel);
  578. U.UF.F.topWindow(_formel);
  579. } else if (e.data.allScreen && e.data.allScreen == "4") {
  580. var _formel = document.getElementById("studyDetail");
  581. //如果最大化了,那么就把他缩小
  582. // if (_formel.ismaximize) {
  583. // return;
  584. // }
  585. // U.UF.F.windowZooming(_formel);
  586. U.UF.F.topWindow(_formel);
  587. } else if (e.data.allScreen && e.data.allScreen == "5") {
  588. var _formel = document.getElementById("studentStudy");
  589. // if (_formel.ismaximize) {
  590. // return;
  591. // }
  592. // U.UF.F.windowZooming(_formel);
  593. U.UF.F.topWindow(_formel);
  594. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  595. var _formel = document.getElementById("study");
  596. // if (_formel.ismaximize) {
  597. // return;
  598. // }
  599. // U.UF.F.windowZooming(_formel);
  600. U.UF.F.topWindow(_formel);
  601. } else if (e.data.tools && e.data.tools == "1") {
  602. // U.MD.D.I.openApplication("whiteboard")
  603. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  604. } else if (e.data.tools && e.data.tools == "2") {
  605. U.MD.D.I.openApplication("note")
  606. } else if (e.data.tools && e.data.tools == "3") {
  607. // U.MD.D.I.openApplication("mind")
  608. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  609. } else if (e.data.tools && e.data.tools == "4") {
  610. U.MD.D.I.openApplication("investigation")
  611. } else if (e.data.tools && e.data.tools == "6") {
  612. // U.MD.D.I.openApplication("doc")
  613. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  614. } else if (e.data.tools && e.data.tools == "7") {
  615. // U.MD.D.I.openApplication("mindNetwork")
  616. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  617. } else if (e.data.tools && e.data.tools == "8") {
  618. U.MD.D.I.openApplication("library")
  619. } else if (e.data.tools && e.data.tools == "17") {
  620. U.MD.D.I.openApplication("stuLibrary")
  621. } else if (e.data.tools && e.data.tools == "18") {
  622. U.MD.D.I.openApplication("train")
  623. } else if (e.data.tools && e.data.tools == "21") {
  624. U.MD.D.I.openApplication("program")
  625. } else if (e.data.tools && e.data.tools == "22") {
  626. U.MD.D.I.openApplication("AIprogram2")
  627. } else if (e.data.tools && e.data.tools == "23") {
  628. U.MD.D.I.openApplication("Pythonprogram")
  629. } else if (e.data.tools && e.data.tools == "24") {
  630. U.MD.D.I.openApplication("AIprogram")
  631. } else if (e.data.tools && e.data.tools == "25") {
  632. U.MD.D.I.openApplication("sys")
  633. } else if (e.data.tools && e.data.tools == "26") {
  634. // U.MD.D.I.openApplication("courseDesign")
  635. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  636. } else if (e.data.tools && e.data.tools == "31") {
  637. U.MD.D.I.openApplication("netWorkPanel")
  638. } else if (e.data.tools && e.data.tools == "32") {
  639. U.MD.D.I.openApplication("codeEdit")
  640. } else if (e.data.tools && e.data.tools == "28") {
  641. U.MD.D.I.openApplication("translation")
  642. } else if (e.data.tools && e.data.tools == "37") {
  643. U.MD.D.I.openApplication("mohe")
  644. } else if (e.data.tools && e.data.tools == "38") {
  645. U.MD.D.I.openApplication("24game")
  646. } else if (e.data.tools && e.data.tools == "39") {
  647. U.MD.D.I.openApplication("GeoGebra")
  648. } else if (e.data.tools && e.data.tools == "43") {
  649. U.MD.D.I.openApplication("studentEvaluate")
  650. } else if (e.data.tools && e.data.tools == "44") {
  651. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  652. } else if (e.data.tools && e.data.tools == "46") {
  653. U.MD.D.I.openApplication("project")
  654. }
  655. });
  656. U.MD.D.I.selectUser = function() {
  657. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function(res) { //US.userInfo.userid
  658. if (res.value[0].length > 0) {
  659. US.userInfo = res.value[0][0];
  660. $(".userName")[0].innerHTML = US.userInfo.username;
  661. }
  662. }, [], { "type": "GET", "withCredentials": true });
  663. }
  664. U.MD.D.I.openInApplication = function(str, data, screenType, tType) {
  665. var _userinfo = US.userInfo, //登录用户信息
  666. _userid = US.userInfo.userid, //登录用户id
  667. _oid = _userinfo.organizeid,
  668. _type = US.userInfo.type,
  669. _org = US.userInfo.org,
  670. _classId = US.userInfo.classid;
  671. if (_type == 4) {
  672. tType = 4
  673. }
  674. switch (str) {
  675. case "studyDetail":
  676. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  677. setTimeout(() => {
  678. U.MD.U.L.login();
  679. }, 2000);
  680. } else {
  681. _formdiv = new U.UF.UI.form(
  682. "项目详情",
  683. $$("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 }), {
  684. "id": "studyDetail",
  685. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  686. "onresize": function () { }
  687. }, {
  688. closecallback: function () { }
  689. }, { "style": { "height": "36px" } }).form; //创建窗体
  690. _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); } }
  691. break;
  692. }
  693. case "studyDetailGM":
  694. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  695. setTimeout(() => {
  696. U.MD.U.L.login();
  697. }, 2000);
  698. } else {
  699. _formdiv = new U.UF.UI.form(
  700. "项目详情",
  701. $$("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 }), {
  702. "id": "studyDetail",
  703. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  704. "onresize": function () { }
  705. }, {
  706. closecallback: function () { }
  707. }, { "style": { "height": "36px" } }).form; //创建窗体
  708. _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); } }
  709. break;
  710. }
  711. case "hanUrl":
  712. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  713. setTimeout(() => {
  714. U.MD.U.L.login();
  715. }, 2000);
  716. } else {
  717. _formdiv = new U.UF.UI.form(
  718. "汉字宫",
  719. $$("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" }), {
  720. "id": "hanUrl",
  721. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  722. "onresize": function () { }
  723. }, {
  724. closecallback: function () { }
  725. }, { "style": { "height": "36px" } }).form; //创建窗体
  726. _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); } }
  727. break;
  728. }
  729. }
  730. }
  731. U.MD.D.I.openApplication = function(str, obj, info) {
  732. obj = obj || {};
  733. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  734. _formdiv, //创建任务栏时同时弹出的窗体元素。
  735. _userinfo = US.userInfo, //登录用户信息
  736. _userid = obj.userid || US.userInfo.userid, //登录用户id
  737. _oid = obj.organizeid || _userinfo.organizeid,
  738. _type = US.userInfo.type,
  739. _org = US.userInfo.org,
  740. _classId = US.userInfo.classid,
  741. _TscreenType = 1
  742. _screenType = 2,
  743. _SscreenType = 3;
  744. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  745. switch (str) {
  746. case "studnetProject": //好友打开
  747. _formdiv = new U.UF.UI.form(
  748. "我的项目",
  749. $$("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 }), {
  750. "id": "studnetProject",
  751. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  752. "onresize": function() {}
  753. }, {
  754. closecallback: function() {}
  755. }, { "style": { "height": "36px" } }).form; //创建窗体
  756. _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); } }
  757. break;
  758. case "studentEvaluate": //好友打开
  759. _formdiv = new U.UF.UI.form(
  760. "我的评价",
  761. $$("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 }), {
  762. "id": "studentEvaluate",
  763. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  764. "onresize": function() {}
  765. }, {
  766. closecallback: function() {}
  767. }, { "style": { "height": "36px" } }).form; //创建窗体
  768. _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); } }
  769. break;
  770. case "my":
  771. _formdiv = new U.UF.UI.form(
  772. "我的资料",
  773. $$("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 }), {
  774. "id": "my",
  775. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  776. "onresize": function() {}
  777. }, {
  778. closecallback: function() {}
  779. }, { "style": { "height": "36px" } }).form; //创建窗体
  780. _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); } }
  781. break;
  782. case "program":
  783. _formdiv = new U.UF.UI.form(
  784. "编程平台",
  785. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  786. "id": "program",
  787. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  788. "onresize": function() {}
  789. }, {
  790. closecallback: function() {}
  791. }, { "style": { "height": "36px" } }).form; //创建窗体
  792. _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); } }
  793. break;
  794. case "library":
  795. _formdiv = new U.UF.UI.form(
  796. "素材库",
  797. $$("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 }), {
  798. "id": "library",
  799. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  800. "onresize": function() {}
  801. }, {
  802. closecallback: function() {}
  803. }, { "style": { "height": "36px" } }).form; //创建窗体
  804. _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); } }
  805. break;
  806. case "whiteboard":
  807. _formdiv = new U.UF.UI.form(
  808. "电子白板",
  809. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  810. "id": "whiteboard",
  811. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  812. "onresize": function() {}
  813. }, {
  814. closecallback: function() {}
  815. }, { "style": { "height": "36px" } }).form; //创建窗体
  816. _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); } }
  817. break;
  818. case "investigation":
  819. _formdiv = new U.UF.UI.form(
  820. "问卷调查",
  821. $$("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 }), {
  822. "id": "investigation",
  823. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  824. "onresize": function() {}
  825. }, {
  826. closecallback: function() {}
  827. }, { "style": { "height": "36px" } }).form; //创建窗体
  828. _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); } }
  829. break;
  830. case "note":
  831. _formdiv = new U.UF.UI.form(
  832. "便签分类",
  833. $$("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 }), {
  834. "id": "note",
  835. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  836. "onresize": function() {}
  837. }, {
  838. closecallback: function() {}
  839. }, { "style": { "height": "36px" } }).form; //创建窗体
  840. _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); } }
  841. break;
  842. // case "score":
  843. // _formdiv = new U.UF.UI.form(
  844. // "量规评分",
  845. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  846. // "id": "score",
  847. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  848. // "onresize": function() {}
  849. // }, {
  850. // closecallback: function() {}
  851. // }, { "style": { "height": "36px" } }).form; //创建窗体
  852. // _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); } }
  853. // break;
  854. case "mind":
  855. _formdiv = new U.UF.UI.form(
  856. "思维导图",
  857. $$("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"
  858. "id": "mind",
  859. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  860. "onresize": function() {}
  861. }, {
  862. closecallback: function() {}
  863. }, { "style": { "height": "36px" } }).form; //创建窗体
  864. _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); } }
  865. break;
  866. case "doc":
  867. // U.MD.D.I.isRoom();
  868. _formdiv = new U.UF.UI.form(
  869. "协同文档",
  870. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  871. "id": "doc",
  872. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  873. "onresize": function() {}
  874. }, {
  875. closecallback: function() {}
  876. }, { "style": { "height": "36px" } }).form; //创建窗体
  877. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  878. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  879. // })
  880. _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); } }
  881. break;
  882. case "studentStudy":
  883. _formdiv = new U.UF.UI.form(
  884. "学习中心",
  885. $$("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
  886. "id": "studentStudy",
  887. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  888. "onresize": function() {}
  889. }, {
  890. closecallback: function() {}
  891. }, { "style": { "height": "36px" } }).form; //创建窗体
  892. _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); } }
  893. break;
  894. case "train": //好友打开
  895. _formdiv = new U.UF.UI.form(
  896. "训练平台",
  897. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  898. "id": "train",
  899. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  900. "onresize": function() {}
  901. }, {
  902. closecallback: function() {}
  903. }, { "style": { "height": "36px" } }).form; //创建窗体
  904. _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); } }
  905. break;
  906. case "mindNetwork": //好友打开
  907. _formdiv = new U.UF.UI.form(
  908. "思维网格",
  909. $$("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 }), {
  910. "id": "mindNetwork",
  911. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  912. "onresize": function() {}
  913. }, {
  914. closecallback: function() {}
  915. }, { "style": { "height": "36px" } }).form; //创建窗体
  916. _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); } }
  917. break;
  918. case "studentClassRoom": //好友打开
  919. _formdiv = new U.UF.UI.form(
  920. "实时课堂",
  921. $$("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 }), {
  922. "id": "studentClassRoom",
  923. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  924. "onresize": function() {}
  925. }, {
  926. closecallback: function() {}
  927. }, { "style": { "height": "36px" } }).form; //创建窗体
  928. _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); } }
  929. setTimeout(() => {
  930. U.UF.F.windowZooming(_formdiv)
  931. }, 0);
  932. break;
  933. }
  934. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  935. switch (str) {
  936. case "studnetProject": //好友打开
  937. _formdiv = new U.UF.UI.form(
  938. "我的项目",
  939. $$("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 }), {
  940. "id": "studnetProject",
  941. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  942. "onresize": function() {}
  943. }, {
  944. closecallback: function() {}
  945. }, { "style": { "height": "36px" } }).form; //创建窗体
  946. _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); } }
  947. break;
  948. case "studentEvaluate": //好友打开
  949. _formdiv = new U.UF.UI.form(
  950. "我的评价",
  951. $$("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 }), {
  952. "id": "studentEvaluate",
  953. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  954. "onresize": function() {}
  955. }, {
  956. closecallback: function() {}
  957. }, { "style": { "height": "36px" } }).form; //创建窗体
  958. _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); } }
  959. break;
  960. case "my":
  961. _formdiv = new U.UF.UI.form(
  962. "我的资料",
  963. $$("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 }), {
  964. "id": "my",
  965. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  966. "onresize": function() {}
  967. }, {
  968. closecallback: function() {}
  969. }, { "style": { "height": "36px" } }).form; //创建窗体
  970. _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); } }
  971. break;
  972. case "program":
  973. _formdiv = new U.UF.UI.form(
  974. "编程平台",
  975. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  976. "id": "program",
  977. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  978. "onresize": function() {}
  979. }, {
  980. closecallback: function() {}
  981. }, { "style": { "height": "36px" } }).form; //创建窗体
  982. _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); } }
  983. break;
  984. case "library":
  985. _formdiv = new U.UF.UI.form(
  986. "素材库",
  987. $$("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 }), {
  988. "id": "library",
  989. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  990. "onresize": function() {}
  991. }, {
  992. closecallback: function() {}
  993. }, { "style": { "height": "36px" } }).form; //创建窗体
  994. _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); } }
  995. break;
  996. case "whiteboard":
  997. _formdiv = new U.UF.UI.form(
  998. "电子白板",
  999. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1000. "id": "whiteboard",
  1001. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1002. "onresize": function() {}
  1003. }, {
  1004. closecallback: function() {}
  1005. }, { "style": { "height": "36px" } }).form; //创建窗体
  1006. _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); } }
  1007. break;
  1008. case "investigation":
  1009. _formdiv = new U.UF.UI.form(
  1010. "问卷调查",
  1011. $$("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 }), {
  1012. "id": "investigation",
  1013. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1014. "onresize": function() {}
  1015. }, {
  1016. closecallback: function() {}
  1017. }, { "style": { "height": "36px" } }).form; //创建窗体
  1018. _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); } }
  1019. break;
  1020. case "note":
  1021. _formdiv = new U.UF.UI.form(
  1022. "便签分类",
  1023. $$("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 }), {
  1024. "id": "note",
  1025. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1026. "onresize": function() {}
  1027. }, {
  1028. closecallback: function() {}
  1029. }, { "style": { "height": "36px" } }).form; //创建窗体
  1030. _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); } }
  1031. break;
  1032. // case "score":
  1033. // _formdiv = new U.UF.UI.form(
  1034. // "量规评分",
  1035. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1036. // "id": "score",
  1037. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1038. // "onresize": function() {}
  1039. // }, {
  1040. // closecallback: function() {}
  1041. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1042. // _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); } }
  1043. // break;
  1044. case "mind":
  1045. _formdiv = new U.UF.UI.form(
  1046. "思维导图",
  1047. $$("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"
  1048. "id": "mind",
  1049. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1050. "onresize": function() {}
  1051. }, {
  1052. closecallback: function() {}
  1053. }, { "style": { "height": "36px" } }).form; //创建窗体
  1054. _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); } }
  1055. break;
  1056. case "doc":
  1057. // U.MD.D.I.isRoom();
  1058. _formdiv = new U.UF.UI.form(
  1059. "协同文档",
  1060. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1061. "id": "doc",
  1062. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1063. "onresize": function() {}
  1064. }, {
  1065. closecallback: function() {}
  1066. }, { "style": { "height": "36px" } }).form; //创建窗体
  1067. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  1068. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1069. })
  1070. _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); } }
  1071. break;
  1072. case "train": //好友打开
  1073. _formdiv = new U.UF.UI.form(
  1074. "训练平台",
  1075. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1076. "id": "train",
  1077. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1078. "onresize": function() {}
  1079. }, {
  1080. closecallback: function() {}
  1081. }, { "style": { "height": "36px" } }).form; //创建窗体
  1082. _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); } }
  1083. break;
  1084. case "studentStudy":
  1085. _formdiv = new U.UF.UI.form(
  1086. "学习中心",
  1087. $$("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
  1088. "id": "studentStudy",
  1089. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1090. "onresize": function() {}
  1091. }, {
  1092. closecallback: function() {}
  1093. }, { "style": { "height": "36px" } }).form; //创建窗体
  1094. _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); } }
  1095. break;
  1096. case "mindNetwork": //好友打开
  1097. _formdiv = new U.UF.UI.form(
  1098. "思维网格",
  1099. $$("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 }), {
  1100. "id": "mindNetwork",
  1101. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1102. "onresize": function() {}
  1103. }, {
  1104. closecallback: function() {}
  1105. }, { "style": { "height": "36px" } }).form; //创建窗体
  1106. _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); } }
  1107. break;
  1108. case "studentClassRoom": //好友打开
  1109. _formdiv = new U.UF.UI.form(
  1110. "实时课堂",
  1111. $$("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 }), {
  1112. "id": "studentClassRoom",
  1113. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1114. "onresize": function() {}
  1115. }, {
  1116. closecallback: function() {}
  1117. }, { "style": { "height": "36px" } }).form; //创建窗体
  1118. _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); } }
  1119. setTimeout(() => {
  1120. U.UF.F.windowZooming(_formdiv)
  1121. }, 0);
  1122. break;
  1123. }
  1124. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1125. //选择应用处理
  1126. switch (str) {
  1127. case "project": //好友打开
  1128. _formdiv = new U.UF.UI.form(
  1129. "项目管理",
  1130. $$("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 }), {
  1131. "id": "project",
  1132. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1133. "onresize": function() {}
  1134. }, {
  1135. closecallback: function() {}
  1136. }, { "style": { "height": "36px" } }).form; //创建窗体
  1137. _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); } }
  1138. break;
  1139. case "student":
  1140. _formdiv = new U.UF.UI.form(
  1141. "学生管理",
  1142. $$("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 }), {
  1143. "id": "student",
  1144. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1145. "onresize": function() {}
  1146. }, {
  1147. closecallback: function() {}
  1148. }, { "style": { "height": "36px" } }).form; //创建窗体
  1149. _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); } }
  1150. break;
  1151. case "evaluate":
  1152. _formdiv = new U.UF.UI.form(
  1153. "学生评价",
  1154. $$("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 }), {
  1155. "id": "evaluate",
  1156. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1157. "onresize": function() {}
  1158. }, {
  1159. closecallback: function() {}
  1160. }, { "style": { "height": "36px" } }).form; //创建窗体
  1161. _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); } }
  1162. break;
  1163. case "sys":
  1164. _formdiv = new U.UF.UI.form(
  1165. "目标管理",
  1166. $$("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 }), {
  1167. "id": "sys",
  1168. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1169. "onresize": function() {}
  1170. }, {
  1171. closecallback: function() {}
  1172. }, { "style": { "height": "36px" } }).form; //创建窗体
  1173. _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); } }
  1174. break;
  1175. case "courseDesign":
  1176. _formdiv = new U.UF.UI.form(
  1177. "课程设计",
  1178. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1179. "id": "courseDesign",
  1180. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1181. "onresize": function() {}
  1182. }, {
  1183. closecallback: function() {}
  1184. }, { "style": { "height": "36px" } }).form; //创建窗体
  1185. _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); } }
  1186. break;
  1187. case "program":
  1188. _formdiv = new U.UF.UI.form(
  1189. "编程平台",
  1190. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1191. "id": "program",
  1192. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1193. "onresize": function() {}
  1194. }, {
  1195. closecallback: function() {}
  1196. }, { "style": { "height": "36px" } }).form; //创建窗体
  1197. _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); } }
  1198. break;
  1199. case "class":
  1200. _formdiv = new U.UF.UI.form(
  1201. "班级管理",
  1202. $$("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 }), {
  1203. "id": "class",
  1204. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1205. "onresize": function() {}
  1206. }, {
  1207. closecallback: function() {}
  1208. }, { "style": { "height": "36px" } }).form; //创建窗体
  1209. _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); } }
  1210. break;
  1211. case "my":
  1212. _formdiv = new U.UF.UI.form(
  1213. "我的资料",
  1214. $$("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 }), {
  1215. "id": "my",
  1216. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1217. "onresize": function() {}
  1218. }, {
  1219. closecallback: function() {}
  1220. }, { "style": { "height": "36px" } }).form; //创建窗体
  1221. _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); } }
  1222. break;
  1223. case "notice":
  1224. _formdiv = new U.UF.UI.form(
  1225. "通知公告",
  1226. $$("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 }), {
  1227. "id": "notice",
  1228. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1229. "onresize": function() {}
  1230. }, {
  1231. closecallback: function() {}
  1232. }, { "style": { "height": "36px" } }).form; //创建窗体
  1233. _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); } }
  1234. break;
  1235. case "library":
  1236. _formdiv = new U.UF.UI.form(
  1237. "素材库",
  1238. $$("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 }), {
  1239. "id": "library",
  1240. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1241. "onresize": function() {}
  1242. }, {
  1243. closecallback: function() {}
  1244. }, { "style": { "height": "36px" } }).form; //创建窗体
  1245. _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); } }
  1246. break;
  1247. case "whiteboard":
  1248. _formdiv = new U.UF.UI.form(
  1249. "电子白板",
  1250. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1251. "id": "whiteboard",
  1252. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1253. "onresize": function() {}
  1254. }, {
  1255. closecallback: function() {}
  1256. }, { "style": { "height": "36px" } }).form; //创建窗体
  1257. _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); } }
  1258. break;
  1259. case "investigation":
  1260. _formdiv = new U.UF.UI.form(
  1261. "问卷调查",
  1262. $$("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 }), {
  1263. "id": "investigation",
  1264. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1265. "onresize": function() {}
  1266. }, {
  1267. closecallback: function() {}
  1268. }, { "style": { "height": "36px" } }).form; //创建窗体
  1269. _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); } }
  1270. break;
  1271. case "note":
  1272. _formdiv = new U.UF.UI.form(
  1273. "便签分类",
  1274. $$("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 }), {
  1275. "id": "note",
  1276. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1277. "onresize": function() {}
  1278. }, {
  1279. closecallback: function() {}
  1280. }, { "style": { "height": "36px" } }).form; //创建窗体
  1281. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1282. break;
  1283. // case "score":
  1284. // _formdiv = new U.UF.UI.form(
  1285. // "量规评分",
  1286. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1287. // "id": "score",
  1288. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1289. // "onresize": function() {}
  1290. // }, {
  1291. // closecallback: function() {}
  1292. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1293. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1294. // break;
  1295. case "mind":
  1296. _formdiv = new U.UF.UI.form(
  1297. "思维导图",
  1298. $$("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"
  1299. "id": "mind",
  1300. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1301. "onresize": function() {}
  1302. }, {
  1303. closecallback: function() {}
  1304. }, { "style": { "height": "36px" } }).form; //创建窗体
  1305. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1306. break;
  1307. case "doc":
  1308. // U.MD.D.I.isRoom();
  1309. _formdiv = new U.UF.UI.form(
  1310. "协同文档",
  1311. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1312. "id": "doc",
  1313. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1314. "onresize": function() {}
  1315. }, {
  1316. closecallback: function() {}
  1317. }, { "style": { "height": "36px" } }).form; //创建窗体
  1318. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  1319. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1320. })
  1321. _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); } }
  1322. break;
  1323. case "study":
  1324. _formdiv = new U.UF.UI.form(
  1325. "学习中心",
  1326. $$("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
  1327. "id": "study",
  1328. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1329. "onresize": function() {}
  1330. }, {
  1331. closecallback: function() {}
  1332. }, { "style": { "height": "36px" } }).form; //创建窗体
  1333. _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); } }
  1334. break;
  1335. case "mindNetwork": //好友打开
  1336. _formdiv = new U.UF.UI.form(
  1337. "思维网格",
  1338. $$("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 }), {
  1339. "id": "mindNetwork",
  1340. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1341. "onresize": function() {}
  1342. }, {
  1343. closecallback: function() {}
  1344. }, { "style": { "height": "36px" } }).form; //创建窗体
  1345. _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); } }
  1346. break;
  1347. case "train": //好友打开
  1348. _formdiv = new U.UF.UI.form(
  1349. "训练平台",
  1350. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1351. "id": "mindNetwork",
  1352. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1353. "onresize": function() {}
  1354. }, {
  1355. closecallback: function() {}
  1356. }, { "style": { "height": "36px" } }).form; //创建窗体
  1357. _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); } }
  1358. break;
  1359. case "teacherClassRoom": //好友打开
  1360. _formdiv = new U.UF.UI.form(
  1361. "实时课堂",
  1362. $$("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 }), {
  1363. "id": "teacherClassRoom",
  1364. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1365. "onresize": function() {}
  1366. }, {
  1367. closecallback: function() {}
  1368. }, { "style": { "height": "36px" } }).form; //创建窗体
  1369. _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); } }
  1370. setTimeout(() => {
  1371. U.UF.F.windowZooming(_formdiv)
  1372. }, 0);
  1373. break;
  1374. }
  1375. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1376. switch (str) {
  1377. case "project": //好友打开
  1378. _formdiv = new U.UF.UI.form(
  1379. "项目管理",
  1380. $$("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 }), {
  1381. "id": "project",
  1382. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1383. "onresize": function() {}
  1384. }, {
  1385. closecallback: function() {}
  1386. }, { "style": { "height": "36px" } }).form; //创建窗体
  1387. _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); } }
  1388. break;
  1389. case "evaluate":
  1390. _formdiv = new U.UF.UI.form(
  1391. "学生评价",
  1392. $$("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 }), {
  1393. "id": "evaluate",
  1394. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1395. "onresize": function() {}
  1396. }, {
  1397. closecallback: function() {}
  1398. }, { "style": { "height": "36px" } }).form; //创建窗体
  1399. _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); } }
  1400. break;
  1401. case "notice":
  1402. _formdiv = new U.UF.UI.form(
  1403. "通知公告",
  1404. $$("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 }), {
  1405. "id": "notice",
  1406. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1407. "onresize": function() {}
  1408. }, {
  1409. closecallback: function() {}
  1410. }, { "style": { "height": "36px" } }).form; //创建窗体
  1411. _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); } }
  1412. break;
  1413. case "stuLibrary":
  1414. _formdiv = new U.UF.UI.form(
  1415. "学习资料",
  1416. $$("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 }), {
  1417. "id": "stuLibrary",
  1418. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1419. "onresize": function() {}
  1420. }, {
  1421. closecallback: function() {}
  1422. }, { "style": { "height": "36px" } }).form; //创建窗体
  1423. _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); } }
  1424. break;
  1425. case "program":
  1426. _formdiv = new U.UF.UI.form(
  1427. "编程平台",
  1428. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1429. "id": "program",
  1430. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1431. "onresize": function() {}
  1432. }, {
  1433. closecallback: function() {}
  1434. }, { "style": { "height": "36px" } }).form; //创建窗体
  1435. _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); } }
  1436. break;
  1437. case "whiteboard":
  1438. _formdiv = new U.UF.UI.form(
  1439. "电子白板",
  1440. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1441. "id": "whiteboard",
  1442. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1443. "onresize": function() {}
  1444. }, {
  1445. closecallback: function() {}
  1446. }, { "style": { "height": "36px" } }).form; //创建窗体
  1447. _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); } }
  1448. break;
  1449. case "investigation":
  1450. _formdiv = new U.UF.UI.form(
  1451. "问卷调查",
  1452. $$("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 }), {
  1453. "id": "investigation",
  1454. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1455. "onresize": function() {}
  1456. }, {
  1457. closecallback: function() {}
  1458. }, { "style": { "height": "36px" } }).form; //创建窗体
  1459. _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); } }
  1460. break;
  1461. case "mind":
  1462. _formdiv = new U.UF.UI.form(
  1463. "思维导图",
  1464. $$("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"
  1465. "id": "mind",
  1466. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1467. "onresize": function() {}
  1468. }, {
  1469. closecallback: function() {}
  1470. }, { "style": { "height": "36px" } }).form; //创建窗体
  1471. _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); } }
  1472. break;
  1473. case "doc":
  1474. // U.MD.D.I.isRoom();
  1475. _formdiv = new U.UF.UI.form(
  1476. "协同文档",
  1477. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1478. "id": "doc",
  1479. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1480. "onresize": function() {}
  1481. }, {
  1482. closecallback: function() {}
  1483. }, { "style": { "height": "36px" } }).form; //创建窗体
  1484. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  1485. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1486. })
  1487. _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); } }
  1488. break;
  1489. case "study":
  1490. _formdiv = new U.UF.UI.form(
  1491. "学习中心",
  1492. $$("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
  1493. "id": "study",
  1494. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1495. "onresize": function() {}
  1496. }, {
  1497. closecallback: function() {}
  1498. }, { "style": { "height": "36px" } }).form; //创建窗体
  1499. _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); } }
  1500. break;
  1501. case "mindNetwork": //好友打开
  1502. _formdiv = new U.UF.UI.form(
  1503. "思维网格",
  1504. $$("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 }), {
  1505. "id": "mindNetwork",
  1506. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1507. "onresize": function() {}
  1508. }, {
  1509. closecallback: function() {}
  1510. }, { "style": { "height": "36px" } }).form; //创建窗体
  1511. _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); } }
  1512. break;
  1513. case "train": //好友打开
  1514. _formdiv = new U.UF.UI.form(
  1515. "训练平台",
  1516. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1517. "id": "train",
  1518. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1519. "onresize": function() {}
  1520. }, {
  1521. closecallback: function() {}
  1522. }, { "style": { "height": "36px" } }).form; //创建窗体
  1523. _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); } }
  1524. break;
  1525. case "sys":
  1526. _formdiv = new U.UF.UI.form(
  1527. "目标管理",
  1528. $$("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 }), {
  1529. "id": "sys",
  1530. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1531. "onresize": function() {}
  1532. }, {
  1533. closecallback: function() {}
  1534. }, { "style": { "height": "36px" } }).form; //创建窗体
  1535. _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); } }
  1536. break;
  1537. case "courseDesign":
  1538. _formdiv = new U.UF.UI.form(
  1539. "课程设计",
  1540. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1541. "id": "courseDesign",
  1542. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1543. "onresize": function() {}
  1544. }, {
  1545. closecallback: function() {}
  1546. }, { "style": { "height": "36px" } }).form; //创建窗体
  1547. _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); } }
  1548. break;
  1549. }
  1550. } else if (!_type) {
  1551. switch (str) {
  1552. case "my":
  1553. _formdiv = new U.UF.UI.form(
  1554. "我的资料",
  1555. $$("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 }), {
  1556. "id": "my",
  1557. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1558. "onresize": function() {}
  1559. }, {
  1560. closecallback: function() {}
  1561. }, { "style": { "height": "36px" } }).form; //创建窗体
  1562. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1563. break;
  1564. }
  1565. }
  1566. switch (str) {
  1567. // AIprogram2 AI体验 aihub.cocorobo.cn
  1568. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  1569. // AIprogram AI编程 ai-blockly.cocorobo.cn
  1570. case "AIprogram2": //AI体验
  1571. _formdiv = new U.UF.UI.form(
  1572. "AI体验",
  1573. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  1574. "id": "AIprogram2",
  1575. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1576. "onresize": function() {}
  1577. }, {
  1578. closecallback: function() {}
  1579. }, { "style": { "height": "36px" } }).form; //创建窗体
  1580. _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); } }
  1581. break;
  1582. case "Pythonprogram": //python编程
  1583. _formdiv = new U.UF.UI.form(
  1584. "Python编程",
  1585. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  1586. "id": "Pythonprogram",
  1587. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1588. "onresize": function() {}
  1589. }, {
  1590. closecallback: function() {}
  1591. }, { "style": { "height": "36px" } }).form; //创建窗体
  1592. _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); } }
  1593. break;
  1594. case "AIprogram": //ai编程
  1595. _formdiv = new U.UF.UI.form(
  1596. "AI编程平台",
  1597. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  1598. "id": "AIprogram",
  1599. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1600. "onresize": function() {}
  1601. }, {
  1602. closecallback: function() {}
  1603. }, { "style": { "height": "36px" } }).form; //创建窗体
  1604. _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); } }
  1605. break;
  1606. case "resources": //国家教育
  1607. _formdiv = new U.UF.UI.form(
  1608. "国家教育",
  1609. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  1610. "id": "resources",
  1611. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1612. "onresize": function() {}
  1613. }, {
  1614. closecallback: function() {}
  1615. }, { "style": { "height": "36px" } }).form; //创建窗体
  1616. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/resources.png)" }, "name": "国家教育", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1617. break;
  1618. case "codeEdit": //源码编辑
  1619. _formdiv = new U.UF.UI.form(
  1620. "源码编辑",
  1621. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  1622. "id": "codeEdit",
  1623. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1624. "onresize": function() {}
  1625. }, {
  1626. closecallback: function() {}
  1627. }, { "style": { "height": "36px" } }).form; //创建窗体
  1628. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/code.png)" }, "name": "源码编辑", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1629. break; //
  1630. case "MindMap": //MindMap
  1631. _formdiv = new U.UF.UI.form(
  1632. "MindMap",
  1633. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  1634. "id": "MindMap",
  1635. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1636. "onresize": function() {}
  1637. }, {
  1638. closecallback: function() {}
  1639. }, { "style": { "height": "36px" } }).form; //创建窗体
  1640. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/MIndMap.png)" }, "name": "MindMap", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1641. break;
  1642. case "netWorkPanel": //netWorkPanel
  1643. _formdiv = new U.UF.UI.form(
  1644. "netWorkPanel",
  1645. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  1646. "id": "netWorkPanel",
  1647. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1648. "onresize": function() {}
  1649. }, {
  1650. closecallback: function() {}
  1651. }, { "style": { "height": "36px" } }).form; //创建窗体
  1652. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/netWorkPanel.png)" }, "name": "netWorkPanel", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1653. break;
  1654. case "GeoGebra": //GeoGebra
  1655. _formdiv = new U.UF.UI.form(
  1656. "GeoGebra",
  1657. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  1658. "id": "GeoGebra",
  1659. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1660. "onresize": function() {}
  1661. }, {
  1662. closecallback: function() {}
  1663. }, { "style": { "height": "36px" } }).form; //创建窗体
  1664. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/GeoGebra.png)" }, "name": "GeoGebra", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1665. break;
  1666. case "translation": //翻译
  1667. _formdiv = new U.UF.UI.form(
  1668. "翻译",
  1669. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  1670. "id": "translation",
  1671. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1672. "onresize": function() {}
  1673. }, {
  1674. closecallback: function() {}
  1675. }, { "style": { "height": "36px" } }).form; //创建窗体
  1676. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/translation.png)" }, "name": "翻译", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1677. break;
  1678. case "mohe": //魔盒
  1679. _formdiv = new U.UF.UI.form(
  1680. "魔盒识字",
  1681. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  1682. "id": "mohe",
  1683. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  1684. "onresize": function() {}
  1685. }, {
  1686. closecallback: function() {}
  1687. }, { "style": { "height": "36px" } }).form; //创建窗体
  1688. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mohe.png)" }, "name": "魔盒识字", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1689. break;
  1690. case "24game": //24点
  1691. _formdiv = new U.UF.UI.form(
  1692. "24点",
  1693. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  1694. "id": "24game",
  1695. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  1696. "onresize": function() {}
  1697. }, {
  1698. closecallback: function() {}
  1699. }, { "style": { "height": "36px" } }).form; //创建窗体
  1700. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/24game.png)" }, "name": "24点", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1701. break;
  1702. case "case":
  1703. _formdiv = new U.UF.UI.form(
  1704. "项目进展",
  1705. $$("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 }), {
  1706. "id": "case",
  1707. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1708. "onresize": function() {}
  1709. }, {
  1710. closecallback: function() {}
  1711. }, { "style": { "height": "36px" } }).form; //创建窗体
  1712. _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); } }
  1713. break;
  1714. case "snf":
  1715. _formdiv = new U.UF.UI.form(
  1716. "赛诺梵",
  1717. $$("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" }), {
  1718. "id": "snf",
  1719. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1720. "onresize": function() {}
  1721. }, {
  1722. closecallback: function() {}
  1723. }, { "style": { "height": "36px" } }).form; //创建窗体
  1724. _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); } }
  1725. break;
  1726. case "hanFamily":
  1727. _formdiv = new U.UF.UI.form(
  1728. "汉字家族",
  1729. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  1730. "id": "hanFamily",
  1731. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1732. "onresize": function() {}
  1733. }, {
  1734. closecallback: function() {}
  1735. }, { "style": { "height": "36px" } }).form; //创建窗体
  1736. _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); } }
  1737. break;
  1738. case "hanClassics":
  1739. _formdiv = new U.UF.UI.form(
  1740. "国学经典",
  1741. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  1742. "id": "hanClassics",
  1743. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1744. "onresize": function() {}
  1745. }, {
  1746. closecallback: function() {}
  1747. }, { "style": { "height": "36px" } }).form; //创建窗体
  1748. _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); } }
  1749. break;
  1750. case "hanTraining":
  1751. _formdiv = new U.UF.UI.form(
  1752. "笔画训练",
  1753. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  1754. "id": "hanTraining",
  1755. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1756. "onresize": function() {}
  1757. }, {
  1758. closecallback: function() {}
  1759. }, { "style": { "height": "36px" } }).form; //创建窗体
  1760. _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); } }
  1761. break;
  1762. case "hanClass":
  1763. _formdiv = new U.UF.UI.form(
  1764. "书法课堂",
  1765. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  1766. "id": "hanClass",
  1767. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1768. "onresize": function() {}
  1769. }, {
  1770. closecallback: function() {}
  1771. }, { "style": { "height": "36px" } }).form; //创建窗体
  1772. _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); } }
  1773. break;
  1774. case "han":
  1775. _formdiv = new U.UF.UI.form(
  1776. "汉字宫",
  1777. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  1778. "id": "han",
  1779. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1780. "onresize": function() {}
  1781. }, {
  1782. closecallback: function() {}
  1783. }, { "style": { "height": "36px" } }).form; //创建窗体
  1784. _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); } }
  1785. break;
  1786. case "projectGM": //项目管理
  1787. _formdiv = new U.UF.UI.form(
  1788. "项目管理",
  1789. $$("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 }), {
  1790. "id": "projectGM",
  1791. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1792. "onresize": function() {}
  1793. }, {
  1794. closecallback: function() {}
  1795. }, { "style": { "height": "36px" } }).form; //创建窗体
  1796. _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); } }
  1797. break;
  1798. case "studyGM"://学习中心
  1799. _formdiv = new U.UF.UI.form(
  1800. "学习中心",
  1801. $$("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
  1802. "id": "study",
  1803. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1804. "onresize": function () { }
  1805. }, {
  1806. closecallback: function () { }
  1807. }, { "style": { "height": "36px" } }).form; //创建窗体
  1808. _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); } }
  1809. break;
  1810. // studentGM
  1811. case "studentGM"://学生管理
  1812. _formdiv = new U.UF.UI.form(
  1813. "学生管理",
  1814. $$("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 }), {
  1815. "id": "studentGM",
  1816. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1817. "onresize": function() {}
  1818. }, {
  1819. closecallback: function() {}
  1820. }, { "style": { "height": "36px" } }).form; //创建窗体
  1821. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1822. break;
  1823. case "evaluateGM"://学生评价
  1824. _formdiv = new U.UF.UI.form(
  1825. "学生评价",
  1826. $$("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 }), {
  1827. "id": "evaluateGM",
  1828. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1829. "onresize": function() {}
  1830. }, {
  1831. closecallback: function() {}
  1832. }, { "style": { "height": "36px" } }).form; //创建窗体
  1833. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/evaluate.png)" }, "name": "学生评价", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1834. break;
  1835. // classGM
  1836. case "classGM"://班级管理
  1837. _formdiv = new U.UF.UI.form(
  1838. "班级管理",
  1839. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/classGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1840. "id": "classGM",
  1841. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1842. "onresize": function() {}
  1843. }, {
  1844. closecallback: function() {}
  1845. }, { "style": { "height": "36px" } }).form; //创建窗体
  1846. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1847. break;
  1848. // dataGM
  1849. case "dataGM":
  1850. _formdiv = new U.UF.UI.form(
  1851. "我的资料",
  1852. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/dataGM?userid=" + _userid + "&org=" + _org }), {
  1853. "id": "dataGM",
  1854. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1855. "onresize": function() {}
  1856. }, {
  1857. closecallback: function() {}
  1858. }, { "style": { "height": "36px" } }).form; //创建窗体
  1859. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/data.png)" }, "name": "我的资料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1860. break;
  1861. // caseGM
  1862. case "caseGM"://项目进展
  1863. _formdiv = new U.UF.UI.form(
  1864. "项目进展",
  1865. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/CaseDesignGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1866. "id": "caseGM",
  1867. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1868. "onresize": function() {}
  1869. }, {
  1870. closecallback: function() {}
  1871. }, { "style": { "height": "36px" } }).form; //创建窗体
  1872. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/case.png)" }, "name": "项目进展", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1873. break;
  1874. // meterialGM
  1875. case "meterialGM"://素材库
  1876. _formdiv = new U.UF.UI.form(
  1877. "素材库",
  1878. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/libraryGM?userid=" + _userid + "&org=" + _org }), {
  1879. "id": "meterialGM",
  1880. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1881. "onresize": function() {}
  1882. }, {
  1883. closecallback: function() {}
  1884. }, { "style": { "height": "36px" } }).form; //创建窗体
  1885. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/material.png)" }, "name": "素材库", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1886. break;
  1887. // evaluateSGM
  1888. case "evaluateSGM": //我的评价
  1889. _formdiv = new U.UF.UI.form(
  1890. "我的评价",
  1891. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1892. "id": "evaluateSGM",
  1893. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1894. "onresize": function() {}
  1895. }, {
  1896. closecallback: function() {}
  1897. }, { "style": { "height": "36px" } }).form; //创建窗体
  1898. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/evaluate.png)" }, "name": "我的评价", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1899. break;
  1900. }
  1901. //U.MD.D.I.openClick(str);
  1902. //如果有任务栏信息
  1903. if (_taskbar) {
  1904. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  1905. }
  1906. }
  1907. // U.MD.D.I.openClick = function(str){
  1908. // var click = '';
  1909. // switch(str){
  1910. // case 'friend':
  1911. // click = '我的好友';
  1912. // break;
  1913. // case 'domain':
  1914. // click = '域名管理';
  1915. // break;
  1916. // case 'disk':
  1917. // click = '我的云盘';
  1918. // break;
  1919. // case 'word':
  1920. // click = 'Word';
  1921. // break;
  1922. // case 'excel':
  1923. // click = 'Execl';
  1924. // break;
  1925. // case 'txt':
  1926. // click = '文本文件';
  1927. // break;
  1928. // case 'lookupFriend':
  1929. // click = '查找好友';
  1930. // break;
  1931. // case 'ftp':
  1932. // click = 'FTP';
  1933. // break;
  1934. // case 'group':
  1935. // click = '群组';
  1936. // break;
  1937. // case 'set':
  1938. // click = '我的设置';
  1939. // break;
  1940. // case 'systemSet':
  1941. // click = '系统设置';
  1942. // break;
  1943. // case 'boomYun':
  1944. // click = '互联办公';
  1945. // break;
  1946. // case 'xz':
  1947. // click = '云端下载';
  1948. // break;
  1949. // case 'client':
  1950. // click = '有思浏览器';
  1951. // break;
  1952. // case 'backEndProgramming':
  1953. // click = '在线后台编程';
  1954. // break;
  1955. // case 'frontEndProgramming':
  1956. // click = '在线前端编程';
  1957. // break;
  1958. // default: break;
  1959. // }
  1960. // if(U.MD.D.I.Ip && click){
  1961. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  1962. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  1963. // })
  1964. // }
  1965. // }
  1966. /**
  1967. *函数作用:ajax简易函数,使用post格式
  1968. *@param url {data} 后台地址
  1969. *@param data {data} 参数json
  1970. *@param fn {data} 回调函数
  1971. *
  1972. */
  1973. // U.MD.D.I.Mysqlrequest = function(url,fn){
  1974. // var xhr = new XMLHttpRequest();
  1975. // xhr.open("GET",url,true);
  1976. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  1977. // xhr.onreadystatechange = function(){
  1978. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  1979. // fn.call(this,xhr.responseText);
  1980. // }
  1981. // };
  1982. // xhr.send();
  1983. // }
  1984. /*判断是否是内网IP*/
  1985. // U.MD.D.I.isInnerIPFn = function(str){
  1986. // var curPageUrl = str;
  1987. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  1988. // curPageUrl =curPageUrl.replace(reg1,'');
  1989. // // console.log('curPageUrl-1 '+curPageUrl);
  1990. // var reg2 = /\:+/g;//替换冒号为一点
  1991. // curPageUrl =curPageUrl.replace(reg2,'.');
  1992. // // console.log('curPageUrl-2 '+curPageUrl);
  1993. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  1994. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  1995. // if(curPageUrl[2] != '16'){
  1996. // return ipAddress;
  1997. // }else{
  1998. // return false;
  1999. // }
  2000. // }
  2001. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  2002. // //compatibility for firefox and chrome
  2003. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  2004. // var pc = new myPeerConnection({
  2005. // iceServers: []
  2006. // }),
  2007. // noop = function() {},
  2008. // localIPs = {},
  2009. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  2010. // key;
  2011. // function iterateIP(ip) {
  2012. // if (!localIPs[ip]) onNewIP(ip);
  2013. // localIPs[ip] = true;
  2014. // }
  2015. // //create a bogus data channel
  2016. // pc.createDataChannel("");
  2017. // // create offer and set local description
  2018. // pc.createOffer().then(function(sdp) {
  2019. // sdp.sdp.split('\n').forEach(function(line) {
  2020. // if (line.indexOf('candidate') < 0) return;
  2021. // line.match(ipRegex).forEach(iterateIP);
  2022. // });
  2023. // pc.setLocalDescription(sdp, noop, noop);
  2024. // }).catch(function(reason) {
  2025. // // An error occurred, so handle the failure to connect
  2026. // });
  2027. // //sten for candidate events
  2028. // pc.onicecandidate = function(ice) {
  2029. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  2030. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  2031. // };
  2032. // }
  2033. // U.MD.D.I.getUserIpBool = function(callback){
  2034. // U.MD.D.I.getUserIP(function(ip){
  2035. // alert("Got IP! :" + ip);
  2036. // });
  2037. //}
  2038. //#endregion
  2039. U.MD.D.I.openApplicationJie = function(str, cid, stage, task, tool) {
  2040. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2041. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2042. _userinfo = US.userInfo, //登录用户信息
  2043. _userid = US.userInfo.userid //登录用户id
  2044. let _iframe;
  2045. var _jie = $$("div", {
  2046. "style": {
  2047. "position": "absolute",
  2048. "bottom": "50px",
  2049. "right": "50px",
  2050. "zIndex": "9999",
  2051. "backgroundColor": "#2268bc",
  2052. "color": "#fff",
  2053. "padding": "12px 20px",
  2054. "cursor": "pointer",
  2055. "borderRadius": "4px",
  2056. },
  2057. "innerHTML": "提交作业"
  2058. })
  2059. let _loading = document.createElement('div')
  2060. _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;"
  2061. // _loading.id = "";
  2062. let _lchild = document.createElement('div')
  2063. let _limg = document.createElement('img')
  2064. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  2065. _limg.style = "width: 26px;margin-right: 10px;"
  2066. _lchild.appendChild(_limg)
  2067. let _lspan = document.createElement('span')
  2068. _lspan.innerHTML = "上传中..."
  2069. _lchild.appendChild(_lspan)
  2070. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  2071. _loading.appendChild(_lchild)
  2072. var _box = $$('div', {
  2073. "style": {
  2074. "position": "relative",
  2075. "width": "100%",
  2076. "height": "100%",
  2077. },
  2078. })
  2079. _box.appendChild(_loading)
  2080. _box.id = str + '_loadLi'
  2081. switch (str) {
  2082. case "whiteboard":
  2083. _iframe = $$("iframe", {
  2084. "frameborder": "no",
  2085. "border": "0",
  2086. "scrolling ": "no",
  2087. "style": {
  2088. "cssText": "border:0;width:100%;height:100%"
  2089. },
  2090. "src": "https://iwb.cocorobo.cn/"
  2091. })
  2092. _box.appendChild(_iframe);
  2093. _box.appendChild(_jie);
  2094. _formdiv = new U.UF.UI.form(
  2095. "电子白板",
  2096. _box, {
  2097. "id": "whiteboard",
  2098. "style": {
  2099. "width": "90%",
  2100. "height": "90%",
  2101. "overflow": 'hidden'
  2102. },
  2103. "onresize": function() {}
  2104. }, {
  2105. closecallback: function() {}
  2106. }, {
  2107. "style": {
  2108. "height": "36px"
  2109. }
  2110. }).form; //创建窗体
  2111. _taskbar = {
  2112. "id": str + _formdiv.id,
  2113. "style": {
  2114. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  2115. },
  2116. "name": "电子白板",
  2117. "forms": _formdiv,
  2118. "click": function() {
  2119. U.MD.D.I.openApplication(str, obj, info);
  2120. }
  2121. }
  2122. break;
  2123. case "mind":
  2124. _iframe = $$("iframe", {
  2125. "frameborder": "no",
  2126. "border": "0",
  2127. "scrolling ": "no",
  2128. "style": {
  2129. "cssText": "border:0;width:100%;height:100%"
  2130. },
  2131. "src": "/kityminder-editor/dist/index.html"
  2132. })
  2133. _box.appendChild(_iframe);
  2134. _box.appendChild(_jie);
  2135. _formdiv = new U.UF.UI.form(
  2136. "思维导图",
  2137. _box, { //"/jsmind/example/demo.html"
  2138. "id": "mind",
  2139. "style": {
  2140. "width": "90%",
  2141. "height": "90%",
  2142. "overflow": 'hidden'
  2143. },
  2144. "onresize": function() {}
  2145. }, {
  2146. closecallback: function() {}
  2147. }, {
  2148. "style": {
  2149. "height": "36px"
  2150. }
  2151. }).form; //创建窗体
  2152. _taskbar = {
  2153. "id": str + _formdiv.id,
  2154. "style": {
  2155. "backgroundImage": "url(/img/icon/mindMapping.png)"
  2156. },
  2157. "name": "思维导图",
  2158. "forms": _formdiv,
  2159. "click": function() {
  2160. U.MD.D.I.openApplication(str, obj, info);
  2161. }
  2162. }
  2163. break;
  2164. case "MindMap":
  2165. _iframe = $$("iframe", {
  2166. "frameborder": "no",
  2167. "border": "0",
  2168. "scrolling ": "no",
  2169. "style": {
  2170. "cssText": "border:0;width:100%;height:100%"
  2171. },
  2172. "src": "//cloud.cocorobo.cn/mind/"
  2173. })
  2174. _box.appendChild(_iframe);
  2175. _box.appendChild(_jie);
  2176. _formdiv = new U.UF.UI.form(
  2177. "思维导图",
  2178. _box, { //"/jsmind/example/demo.html"
  2179. "id": "mind",
  2180. "style": {
  2181. "width": "90%",
  2182. "height": "90%",
  2183. "overflow": 'hidden'
  2184. },
  2185. "onresize": function() {}
  2186. }, {
  2187. closecallback: function() {}
  2188. }, {
  2189. "style": {
  2190. "height": "36px"
  2191. }
  2192. }).form; //创建窗体
  2193. _taskbar = {
  2194. "id": str + _formdiv.id,
  2195. "style": {
  2196. "backgroundImage": "url(/img/icon/mindMapping.png)"
  2197. },
  2198. "name": "思维导图",
  2199. "forms": _formdiv,
  2200. "click": function() {
  2201. U.MD.D.I.openApplication(str, obj, info);
  2202. }
  2203. }
  2204. break;
  2205. case "doc":
  2206. _iframe = $$("iframe", {
  2207. "frameborder": "no",
  2208. "border": "0",
  2209. "scrolling ": "no",
  2210. "style": {
  2211. "cssText": "border:0;width:100%;height:100%"
  2212. },
  2213. "src": "/Office/Word/WordEditArea.htm"
  2214. })
  2215. _box.appendChild(_iframe);
  2216. _box.appendChild(_jie);
  2217. _formdiv = new U.UF.UI.form(
  2218. "协同文档",
  2219. _box, {
  2220. "id": "doc",
  2221. "style": {
  2222. "width": "90%",
  2223. "height": "90%",
  2224. "overflow": 'hidden'
  2225. },
  2226. "onresize": function() {}
  2227. }, {
  2228. closecallback: function() {}
  2229. }, {
  2230. "style": {
  2231. "height": "36px"
  2232. }
  2233. }).form; //创建窗体
  2234. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  2235. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2236. })
  2237. _taskbar = {
  2238. "id": str + _formdiv.id,
  2239. "style": {
  2240. "backgroundImage": "url(/img/icon/doc.png)"
  2241. },
  2242. "name": "协同文档",
  2243. "forms": _formdiv,
  2244. "click": function() {
  2245. U.MD.D.I.openApplication(str, obj, info);
  2246. }
  2247. }
  2248. break;
  2249. case "mindNetwork": //好友打开
  2250. _iframe = $$("iframe", {
  2251. "webkitallowfullscreen": "",
  2252. "mozallowfullscreen": "",
  2253. "allowfullscreen": "",
  2254. "frameborder": "no",
  2255. "border": "0",
  2256. "scrolling ": "no",
  2257. "style": {
  2258. "cssText": "border:0; width:100%; height:100%;"
  2259. },
  2260. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  2261. })
  2262. _box.appendChild(_iframe);
  2263. _box.appendChild(_jie);
  2264. _formdiv = new U.UF.UI.form(
  2265. "思维网格",
  2266. _box, {
  2267. "id": "mindNetwork",
  2268. "style": {
  2269. "width": "90%",
  2270. "height": "90%",
  2271. "overflow": 'hidden'
  2272. },
  2273. "onresize": function() {}
  2274. }, {
  2275. closecallback: function() {}
  2276. }, {
  2277. "style": {
  2278. "height": "36px"
  2279. }
  2280. }).form; //创建窗体
  2281. _taskbar = {
  2282. "id": str + _formdiv.id,
  2283. "style": {
  2284. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  2285. },
  2286. "name": "思维网格",
  2287. "forms": _formdiv,
  2288. "click": function() {
  2289. U.MD.D.I.openApplication(str, obj, info);
  2290. }
  2291. }
  2292. break;
  2293. case "courseDesign":
  2294. _iframe = $$("iframe", {
  2295. "webkitallowfullscreen": "",
  2296. "mozallowfullscreen": "",
  2297. "allowfullscreen": "",
  2298. "frameborder": "no",
  2299. "border": "0",
  2300. "scrolling ": "no",
  2301. "style": {
  2302. "cssText": "border:0; width:100%; height:100%;"
  2303. },
  2304. "src": "/course-design-vue"
  2305. })
  2306. _box.appendChild(_iframe);
  2307. _box.appendChild(_jie);
  2308. _formdiv = new U.UF.UI.form(
  2309. "课程设计",
  2310. _box, {
  2311. "id": "courseDesign",
  2312. "style": {
  2313. "width": "90%",
  2314. "height": "90%",
  2315. "overflow": 'hidden'
  2316. },
  2317. "onresize": function() {}
  2318. }, {
  2319. closecallback: function() {}
  2320. }, {
  2321. "style": {
  2322. "height": "36px"
  2323. }
  2324. }).form; //创建窗体
  2325. _taskbar = {
  2326. "id": str + _formdiv.id,
  2327. "style": {
  2328. "backgroundImage": "url(/img/icon/courseDesign.png)"
  2329. },
  2330. "name": "课程设计",
  2331. "forms": _formdiv,
  2332. "click": function() {
  2333. U.MD.D.I.openApplication(str, obj, info);
  2334. }
  2335. }
  2336. break;
  2337. }
  2338. const script1 = document.createElement("script");
  2339. script1.type = "text/javascript";
  2340. script1.src =
  2341. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  2342. const script2 = document.createElement("script");
  2343. script2.type = "text/javascript";
  2344. script2.src =
  2345. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  2346. const script3 = document.createElement("script");
  2347. script3.type = "text/javascript";
  2348. script3.charset = "UTF-8";
  2349. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  2350. const script4 = document.createElement("script");
  2351. script4.type = "text/javascript";
  2352. script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  2353. if (_iframe) {
  2354. if (str == 'doc') {
  2355. U.UF.DL.iframeLoad(_iframe, function() {
  2356. _iframe.contentWindow.U.MD.O.W.load();
  2357. _iframe.contentWindow.document.body.appendChild(script1);
  2358. _iframe.contentWindow.document.body.appendChild(script2);
  2359. // _iframe.contentWindow.document.body.appendChild(script3);
  2360. _iframe.contentWindow.document.body.appendChild(script4);
  2361. })
  2362. } else if (str == 'courseDesign') {
  2363. U.UF.DL.iframeLoad(_iframe, function() {
  2364. // _iframe.contentWindow.U.MD.O.W.load();
  2365. // _iframe.contentWindow.document.body.appendChild(script1);
  2366. _iframe.contentWindow.document.body.appendChild(script2);
  2367. _iframe.contentWindow.document.body.appendChild(script4);
  2368. })
  2369. } else {
  2370. _iframe.onload = () => {
  2371. _iframe.contentWindow.document.body.appendChild(script1);
  2372. _iframe.contentWindow.document.body.appendChild(script2);
  2373. // _iframe.contentWindow.document.body.appendChild(script3);
  2374. _iframe.contentWindow.document.body.appendChild(script4);
  2375. };
  2376. }
  2377. _jie.onclick = () => {
  2378. _loading.style.display = 'flex'
  2379. console.log(_loading);
  2380. var _ajs = _iframe.contentWindow.document.createElement("script");
  2381. _ajs.type = "text/javascript";
  2382. _ajs.innerHTML =
  2383. // 'console.log(' + _loading + ');\n' +
  2384. 'var _js = document.createElement("script");\n' +
  2385. '_js.type="text/javascript";\n' +
  2386. '_js.charset="UTF-8";\n' +
  2387. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  2388. "_js.onload = function(){\n" +
  2389. ' var a = document.getElementsByTagName("img")\n' +
  2390. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  2391. " html2canvas(document.body,{allowTaint: true,useCORS: true}).then(canvas => {\n" +
  2392. '  var base64Url = canvas.toDataURL("image/png");\n' +
  2393. 'var base64 = "<img src=" + base64Url + " />"\n' +
  2394. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  2395. "beforeUpload_shishi(file," +
  2396. "'" +
  2397. _userid +
  2398. "'" +
  2399. ", " +
  2400. "'" +
  2401. cid +
  2402. "'" +
  2403. ", " +
  2404. "'" +
  2405. stage +
  2406. "'" +
  2407. ", " +
  2408. "'" +
  2409. task +
  2410. "'" +
  2411. ", " +
  2412. "'" +
  2413. tool +
  2414. "'" +
  2415. ", " +
  2416. "'" +
  2417. str + '_loadLi' +
  2418. "'" +
  2419. ")\n" +
  2420. " });\n" +
  2421. "}\n" +
  2422. "document.head.appendChild(_js);\n";
  2423. _iframe.contentWindow.document.head.appendChild(_ajs);
  2424. }
  2425. }
  2426. //U.MD.D.I.openClick(str);
  2427. //如果有任务栏信息
  2428. if (_taskbar) {
  2429. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2430. }
  2431. }