DeskTop.js 151 KB

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