DeskTop.js 164 KB

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