DeskTop.js 162 KB

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