DeskTop.js 207 KB

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