DeskTop.js 193 KB

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