DeskTop.js 206 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466
  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 (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1118. switch (str) {
  1119. case "studnetProject": //好友打开
  1120. _formdiv = new U.UF.UI.form(
  1121. "我的项目",
  1122. $$("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 }), {
  1123. "id": "studnetProject",
  1124. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1125. "onresize": function () { }
  1126. }, {
  1127. closecallback: function () { }
  1128. }, { "style": { "height": "36px" } }).form; //创建窗体
  1129. _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); } }
  1130. break;
  1131. case "studentEvaluate": //好友打开
  1132. _formdiv = new U.UF.UI.form(
  1133. "我的评价",
  1134. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1135. "id": "studentEvaluate",
  1136. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1137. "onresize": function () { }
  1138. }, {
  1139. closecallback: function () { }
  1140. }, { "style": { "height": "36px" } }).form; //创建窗体
  1141. _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); } }
  1142. break;
  1143. case "my":
  1144. _formdiv = new U.UF.UI.form(
  1145. "我的资料",
  1146. $$("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 }), {
  1147. "id": "my",
  1148. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1149. "onresize": function () { }
  1150. }, {
  1151. closecallback: function () { }
  1152. }, { "style": { "height": "36px" } }).form; //创建窗体
  1153. _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); } }
  1154. break;
  1155. case "program":
  1156. _formdiv = new U.UF.UI.form(
  1157. "编程平台",
  1158. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1159. "id": "program",
  1160. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1161. "onresize": function () { }
  1162. }, {
  1163. closecallback: function () { }
  1164. }, { "style": { "height": "36px" } }).form; //创建窗体
  1165. _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); } }
  1166. break;
  1167. case "library":
  1168. _formdiv = new U.UF.UI.form(
  1169. "素材库",
  1170. $$("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 }), {
  1171. "id": "library",
  1172. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1173. "onresize": function () { }
  1174. }, {
  1175. closecallback: function () { }
  1176. }, { "style": { "height": "36px" } }).form; //创建窗体
  1177. _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); } }
  1178. break;
  1179. case "whiteboard":
  1180. _formdiv = new U.UF.UI.form(
  1181. "电子白板",
  1182. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1183. "id": "whiteboard",
  1184. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1185. "onresize": function () { }
  1186. }, {
  1187. closecallback: function () { }
  1188. }, { "style": { "height": "36px" } }).form; //创建窗体
  1189. _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); } }
  1190. break;
  1191. case "investigation":
  1192. _formdiv = new U.UF.UI.form(
  1193. "问卷调查",
  1194. $$("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 }), {
  1195. "id": "investigation",
  1196. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1197. "onresize": function () { }
  1198. }, {
  1199. closecallback: function () { }
  1200. }, { "style": { "height": "36px" } }).form; //创建窗体
  1201. _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); } }
  1202. break;
  1203. case "note":
  1204. _formdiv = new U.UF.UI.form(
  1205. "便签分类",
  1206. $$("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 }), {
  1207. "id": "note",
  1208. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1209. "onresize": function () { }
  1210. }, {
  1211. closecallback: function () { }
  1212. }, { "style": { "height": "36px" } }).form; //创建窗体
  1213. _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); } }
  1214. break;
  1215. // case "score":
  1216. // _formdiv = new U.UF.UI.form(
  1217. // "量规评分",
  1218. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1219. // "id": "score",
  1220. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1221. // "onresize": function() {}
  1222. // }, {
  1223. // closecallback: function() {}
  1224. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1225. // _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); } }
  1226. // break;
  1227. case "mind":
  1228. _formdiv = new U.UF.UI.form(
  1229. "思维导图",
  1230. $$("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"
  1231. "id": "mind",
  1232. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1233. "onresize": function () { }
  1234. }, {
  1235. closecallback: function () { }
  1236. }, { "style": { "height": "36px" } }).form; //创建窗体
  1237. _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); } }
  1238. break;
  1239. case "doc":
  1240. // U.MD.D.I.isRoom();
  1241. _formdiv = new U.UF.UI.form(
  1242. "协同文档",
  1243. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1244. "id": "doc",
  1245. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1246. "onresize": function () { }
  1247. }, {
  1248. closecallback: function () { }
  1249. }, { "style": { "height": "36px" } }).form; //创建窗体
  1250. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1251. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1252. // })
  1253. _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); } }
  1254. break;
  1255. case "studentStudy":
  1256. _formdiv = new U.UF.UI.form(
  1257. "学习中心",
  1258. $$("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
  1259. "id": "studentStudy",
  1260. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1261. "onresize": function () { }
  1262. }, {
  1263. closecallback: function () { }
  1264. }, { "style": { "height": "36px" } }).form; //创建窗体
  1265. _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); } }
  1266. break;
  1267. case "train": //好友打开
  1268. _formdiv = new U.UF.UI.form(
  1269. "训练平台",
  1270. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1271. "id": "train",
  1272. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1273. "onresize": function () { }
  1274. }, {
  1275. closecallback: function () { }
  1276. }, { "style": { "height": "36px" } }).form; //创建窗体
  1277. _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); } }
  1278. break;
  1279. case "mindNetwork": //好友打开
  1280. _formdiv = new U.UF.UI.form(
  1281. "思维网格",
  1282. $$("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 }), {
  1283. "id": "mindNetwork",
  1284. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1285. "onresize": function () { }
  1286. }, {
  1287. closecallback: function () { }
  1288. }, { "style": { "height": "36px" } }).form; //创建窗体
  1289. _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); } }
  1290. break;
  1291. case "studentClassRoom": //好友打开
  1292. _formdiv = new U.UF.UI.form(
  1293. "实时课堂",
  1294. $$("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 }), {
  1295. "id": "studentClassRoom",
  1296. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1297. "onresize": function () { }
  1298. }, {
  1299. closecallback: function () { }
  1300. }, { "style": { "height": "36px" } }).form; //创建窗体
  1301. _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); } }
  1302. setTimeout(() => {
  1303. U.UF.F.windowZooming(_formdiv)
  1304. }, 0);
  1305. break;
  1306. }
  1307. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1308. switch (str) {
  1309. case "studnetProject": //好友打开
  1310. _formdiv = new U.UF.UI.form(
  1311. "我的项目",
  1312. $$("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 }), {
  1313. "id": "studnetProject",
  1314. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1315. "onresize": function () { }
  1316. }, {
  1317. closecallback: function () { }
  1318. }, { "style": { "height": "36px" } }).form; //创建窗体
  1319. _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); } }
  1320. break;
  1321. case "studentEvaluate": //好友打开
  1322. _formdiv = new U.UF.UI.form(
  1323. "我的评价",
  1324. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1325. "id": "studentEvaluate",
  1326. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1327. "onresize": function () { }
  1328. }, {
  1329. closecallback: function () { }
  1330. }, { "style": { "height": "36px" } }).form; //创建窗体
  1331. _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); } }
  1332. break;
  1333. case "my":
  1334. _formdiv = new U.UF.UI.form(
  1335. "我的资料",
  1336. $$("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 }), {
  1337. "id": "my",
  1338. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1339. "onresize": function () { }
  1340. }, {
  1341. closecallback: function () { }
  1342. }, { "style": { "height": "36px" } }).form; //创建窗体
  1343. _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); } }
  1344. break;
  1345. case "program":
  1346. _formdiv = new U.UF.UI.form(
  1347. "编程平台",
  1348. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1349. "id": "program",
  1350. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1351. "onresize": function () { }
  1352. }, {
  1353. closecallback: function () { }
  1354. }, { "style": { "height": "36px" } }).form; //创建窗体
  1355. _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); } }
  1356. break;
  1357. case "library":
  1358. _formdiv = new U.UF.UI.form(
  1359. "素材库",
  1360. $$("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 }), {
  1361. "id": "library",
  1362. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1363. "onresize": function () { }
  1364. }, {
  1365. closecallback: function () { }
  1366. }, { "style": { "height": "36px" } }).form; //创建窗体
  1367. _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); } }
  1368. break;
  1369. case "whiteboard":
  1370. _formdiv = new U.UF.UI.form(
  1371. "电子白板",
  1372. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1373. "id": "whiteboard",
  1374. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1375. "onresize": function () { }
  1376. }, {
  1377. closecallback: function () { }
  1378. }, { "style": { "height": "36px" } }).form; //创建窗体
  1379. _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); } }
  1380. break;
  1381. case "investigation":
  1382. _formdiv = new U.UF.UI.form(
  1383. "问卷调查",
  1384. $$("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 }), {
  1385. "id": "investigation",
  1386. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1387. "onresize": function () { }
  1388. }, {
  1389. closecallback: function () { }
  1390. }, { "style": { "height": "36px" } }).form; //创建窗体
  1391. _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); } }
  1392. break;
  1393. case "note":
  1394. _formdiv = new U.UF.UI.form(
  1395. "便签分类",
  1396. $$("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 }), {
  1397. "id": "note",
  1398. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1399. "onresize": function () { }
  1400. }, {
  1401. closecallback: function () { }
  1402. }, { "style": { "height": "36px" } }).form; //创建窗体
  1403. _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); } }
  1404. break;
  1405. // case "score":
  1406. // _formdiv = new U.UF.UI.form(
  1407. // "量规评分",
  1408. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1409. // "id": "score",
  1410. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1411. // "onresize": function() {}
  1412. // }, {
  1413. // closecallback: function() {}
  1414. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1415. // _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); } }
  1416. // break;
  1417. case "mind":
  1418. _formdiv = new U.UF.UI.form(
  1419. "思维导图",
  1420. $$("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"
  1421. "id": "mind",
  1422. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1423. "onresize": function () { }
  1424. }, {
  1425. closecallback: function () { }
  1426. }, { "style": { "height": "36px" } }).form; //创建窗体
  1427. _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); } }
  1428. break;
  1429. case "doc":
  1430. // U.MD.D.I.isRoom();
  1431. _formdiv = new U.UF.UI.form(
  1432. "协同文档",
  1433. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1434. "id": "doc",
  1435. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1436. "onresize": function () { }
  1437. }, {
  1438. closecallback: function () { }
  1439. }, { "style": { "height": "36px" } }).form; //创建窗体
  1440. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1441. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1442. })
  1443. _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); } }
  1444. break;
  1445. case "train": //好友打开
  1446. _formdiv = new U.UF.UI.form(
  1447. "训练平台",
  1448. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1449. "id": "train",
  1450. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1451. "onresize": function () { }
  1452. }, {
  1453. closecallback: function () { }
  1454. }, { "style": { "height": "36px" } }).form; //创建窗体
  1455. _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); } }
  1456. break;
  1457. case "studentStudy":
  1458. _formdiv = new U.UF.UI.form(
  1459. "学习中心",
  1460. $$("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
  1461. "id": "studentStudy",
  1462. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1463. "onresize": function () { }
  1464. }, {
  1465. closecallback: function () { }
  1466. }, { "style": { "height": "36px" } }).form; //创建窗体
  1467. _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); } }
  1468. break;
  1469. case "mindNetwork": //好友打开
  1470. _formdiv = new U.UF.UI.form(
  1471. "思维网格",
  1472. $$("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 }), {
  1473. "id": "mindNetwork",
  1474. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1475. "onresize": function () { }
  1476. }, {
  1477. closecallback: function () { }
  1478. }, { "style": { "height": "36px" } }).form; //创建窗体
  1479. _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); } }
  1480. break;
  1481. case "studentClassRoom": //好友打开
  1482. _formdiv = new U.UF.UI.form(
  1483. "实时课堂",
  1484. $$("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 }), {
  1485. "id": "studentClassRoom",
  1486. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1487. "onresize": function () { }
  1488. }, {
  1489. closecallback: function () { }
  1490. }, { "style": { "height": "36px" } }).form; //创建窗体
  1491. _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); } }
  1492. setTimeout(() => {
  1493. U.UF.F.windowZooming(_formdiv)
  1494. }, 0);
  1495. break;
  1496. }
  1497. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1498. //选择应用处理
  1499. switch (str) {
  1500. case "project": //好友打开
  1501. _formdiv = new U.UF.UI.form(
  1502. "项目管理",
  1503. $$("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 }), {
  1504. "id": "project",
  1505. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1506. "onresize": function () { }
  1507. }, {
  1508. closecallback: function () { }
  1509. }, { "style": { "height": "36px" } }).form; //创建窗体
  1510. _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); } }
  1511. break;
  1512. case "student":
  1513. _formdiv = new U.UF.UI.form(
  1514. "学生管理",
  1515. $$("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 }), {
  1516. "id": "student",
  1517. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1518. "onresize": function () { }
  1519. }, {
  1520. closecallback: function () { }
  1521. }, { "style": { "height": "36px" } }).form; //创建窗体
  1522. _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); } }
  1523. break;
  1524. case "evaluate":
  1525. _formdiv = new U.UF.UI.form(
  1526. "学生评价",
  1527. $$("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 }), {
  1528. "id": "evaluate",
  1529. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1530. "onresize": function () { }
  1531. }, {
  1532. closecallback: function () { }
  1533. }, { "style": { "height": "36px" } }).form; //创建窗体
  1534. _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); } }
  1535. break;
  1536. case "sys":
  1537. _formdiv = new U.UF.UI.form(
  1538. "目标管理",
  1539. $$("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 }), {
  1540. "id": "sys",
  1541. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1542. "onresize": function () { }
  1543. }, {
  1544. closecallback: function () { }
  1545. }, { "style": { "height": "36px" } }).form; //创建窗体
  1546. _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); } }
  1547. break;
  1548. case "courseDesign":
  1549. _formdiv = new U.UF.UI.form(
  1550. "课程设计",
  1551. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1552. "id": "courseDesign",
  1553. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1554. "onresize": function () { }
  1555. }, {
  1556. closecallback: function () { }
  1557. }, { "style": { "height": "36px" } }).form; //创建窗体
  1558. _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); } }
  1559. break;
  1560. case "program":
  1561. _formdiv = new U.UF.UI.form(
  1562. "编程平台",
  1563. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1564. "id": "program",
  1565. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1566. "onresize": function () { }
  1567. }, {
  1568. closecallback: function () { }
  1569. }, { "style": { "height": "36px" } }).form; //创建窗体
  1570. _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); } }
  1571. break;
  1572. case "class":
  1573. _formdiv = new U.UF.UI.form(
  1574. "班级管理",
  1575. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1576. "id": "class",
  1577. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1578. "onresize": function () { }
  1579. }, {
  1580. closecallback: function () { }
  1581. }, { "style": { "height": "36px" } }).form; //创建窗体
  1582. _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); } }
  1583. break;
  1584. case "my":
  1585. _formdiv = new U.UF.UI.form(
  1586. "我的资料",
  1587. $$("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 }), {
  1588. "id": "my",
  1589. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1590. "onresize": function () { }
  1591. }, {
  1592. closecallback: function () { }
  1593. }, { "style": { "height": "36px" } }).form; //创建窗体
  1594. _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); } }
  1595. break;
  1596. case "notice":
  1597. _formdiv = new U.UF.UI.form(
  1598. "通知公告",
  1599. $$("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 }), {
  1600. "id": "notice",
  1601. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1602. "onresize": function () { }
  1603. }, {
  1604. closecallback: function () { }
  1605. }, { "style": { "height": "36px" } }).form; //创建窗体
  1606. _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); } }
  1607. break;
  1608. case "library":
  1609. _formdiv = new U.UF.UI.form(
  1610. "素材库",
  1611. $$("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 }), {
  1612. "id": "library",
  1613. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1614. "onresize": function () { }
  1615. }, {
  1616. closecallback: function () { }
  1617. }, { "style": { "height": "36px" } }).form; //创建窗体
  1618. _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); } }
  1619. break;
  1620. case "whiteboard":
  1621. _formdiv = new U.UF.UI.form(
  1622. "电子白板",
  1623. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1624. "id": "whiteboard",
  1625. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1626. "onresize": function () { }
  1627. }, {
  1628. closecallback: function () { }
  1629. }, { "style": { "height": "36px" } }).form; //创建窗体
  1630. _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); } }
  1631. break;
  1632. case "investigation":
  1633. _formdiv = new U.UF.UI.form(
  1634. "问卷调查",
  1635. $$("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 }), {
  1636. "id": "investigation",
  1637. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1638. "onresize": function () { }
  1639. }, {
  1640. closecallback: function () { }
  1641. }, { "style": { "height": "36px" } }).form; //创建窗体
  1642. _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); } }
  1643. break;
  1644. case "note":
  1645. _formdiv = new U.UF.UI.form(
  1646. "便签分类",
  1647. $$("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 }), {
  1648. "id": "note",
  1649. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1650. "onresize": function () { }
  1651. }, {
  1652. closecallback: function () { }
  1653. }, { "style": { "height": "36px" } }).form; //创建窗体
  1654. _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); } }
  1655. break;
  1656. // case "score":
  1657. // _formdiv = new U.UF.UI.form(
  1658. // "量规评分",
  1659. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1660. // "id": "score",
  1661. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1662. // "onresize": function() {}
  1663. // }, {
  1664. // closecallback: function() {}
  1665. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1666. // _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); } }
  1667. // break;
  1668. case "mind":
  1669. _formdiv = new U.UF.UI.form(
  1670. "思维导图",
  1671. $$("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"
  1672. "id": "mind",
  1673. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1674. "onresize": function () { }
  1675. }, {
  1676. closecallback: function () { }
  1677. }, { "style": { "height": "36px" } }).form; //创建窗体
  1678. _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); } }
  1679. break;
  1680. case "doc":
  1681. // U.MD.D.I.isRoom();
  1682. _formdiv = new U.UF.UI.form(
  1683. "协同文档",
  1684. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1685. "id": "doc",
  1686. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1687. "onresize": function () { }
  1688. }, {
  1689. closecallback: function () { }
  1690. }, { "style": { "height": "36px" } }).form; //创建窗体
  1691. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1692. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1693. })
  1694. _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); } }
  1695. break;
  1696. case "study":
  1697. _formdiv = new U.UF.UI.form(
  1698. "学习中心",
  1699. $$("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
  1700. "id": "study",
  1701. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1702. "onresize": function () { }
  1703. }, {
  1704. closecallback: function () { }
  1705. }, { "style": { "height": "36px" } }).form; //创建窗体
  1706. _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); } }
  1707. break;
  1708. case "mindNetwork": //好友打开
  1709. _formdiv = new U.UF.UI.form(
  1710. "思维网格",
  1711. $$("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 }), {
  1712. "id": "mindNetwork",
  1713. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1714. "onresize": function () { }
  1715. }, {
  1716. closecallback: function () { }
  1717. }, { "style": { "height": "36px" } }).form; //创建窗体
  1718. _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); } }
  1719. break;
  1720. case "train": //好友打开
  1721. _formdiv = new U.UF.UI.form(
  1722. "训练平台",
  1723. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1724. "id": "mindNetwork",
  1725. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1726. "onresize": function () { }
  1727. }, {
  1728. closecallback: function () { }
  1729. }, { "style": { "height": "36px" } }).form; //创建窗体
  1730. _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); } }
  1731. break;
  1732. case "teacherClassRoom": //好友打开
  1733. _formdiv = new U.UF.UI.form(
  1734. "实时课堂",
  1735. $$("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 }), {
  1736. "id": "teacherClassRoom",
  1737. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1738. "onresize": function () { }
  1739. }, {
  1740. closecallback: function () { }
  1741. }, { "style": { "height": "36px" } }).form; //创建窗体
  1742. _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); } }
  1743. setTimeout(() => {
  1744. U.UF.F.windowZooming(_formdiv)
  1745. }, 0);
  1746. break;
  1747. }
  1748. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1749. switch (str) {
  1750. case "project": //好友打开
  1751. _formdiv = new U.UF.UI.form(
  1752. "项目管理",
  1753. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1754. "id": "project",
  1755. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1756. "onresize": function () { }
  1757. }, {
  1758. closecallback: function () { }
  1759. }, { "style": { "height": "36px" } }).form; //创建窗体
  1760. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1761. break;
  1762. case "evaluate":
  1763. _formdiv = new U.UF.UI.form(
  1764. "学生评价",
  1765. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1766. "id": "evaluate",
  1767. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1768. "onresize": function () { }
  1769. }, {
  1770. closecallback: function () { }
  1771. }, { "style": { "height": "36px" } }).form; //创建窗体
  1772. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1773. break;
  1774. case "notice":
  1775. _formdiv = new U.UF.UI.form(
  1776. "通知公告",
  1777. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  1778. "id": "notice",
  1779. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1780. "onresize": function () { }
  1781. }, {
  1782. closecallback: function () { }
  1783. }, { "style": { "height": "36px" } }).form; //创建窗体
  1784. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1785. break;
  1786. case "stuLibrary":
  1787. _formdiv = new U.UF.UI.form(
  1788. "学习资料",
  1789. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/studyLibrary?userid=" + _userid + "&org=" + _org }), {
  1790. "id": "stuLibrary",
  1791. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1792. "onresize": function () { }
  1793. }, {
  1794. closecallback: function () { }
  1795. }, { "style": { "height": "36px" } }).form; //创建窗体
  1796. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/stuLibrary.png)" }, "name": "学习资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1797. break;
  1798. case "program":
  1799. _formdiv = new U.UF.UI.form(
  1800. "编程平台",
  1801. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1802. "id": "program",
  1803. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1804. "onresize": function () { }
  1805. }, {
  1806. closecallback: function () { }
  1807. }, { "style": { "height": "36px" } }).form; //创建窗体
  1808. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1809. break;
  1810. case "whiteboard":
  1811. _formdiv = new U.UF.UI.form(
  1812. "电子白板",
  1813. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1814. "id": "whiteboard",
  1815. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1816. "onresize": function () { }
  1817. }, {
  1818. closecallback: function () { }
  1819. }, { "style": { "height": "36px" } }).form; //创建窗体
  1820. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1821. break;
  1822. case "investigation":
  1823. _formdiv = new U.UF.UI.form(
  1824. "问卷调查",
  1825. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  1826. "id": "investigation",
  1827. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1828. "onresize": function () { }
  1829. }, {
  1830. closecallback: function () { }
  1831. }, { "style": { "height": "36px" } }).form; //创建窗体
  1832. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1833. break;
  1834. case "mind":
  1835. _formdiv = new U.UF.UI.form(
  1836. "思维导图",
  1837. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1838. "id": "mind",
  1839. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1840. "onresize": function () { }
  1841. }, {
  1842. closecallback: function () { }
  1843. }, { "style": { "height": "36px" } }).form; //创建窗体
  1844. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1845. break;
  1846. case "doc":
  1847. // U.MD.D.I.isRoom();
  1848. _formdiv = new U.UF.UI.form(
  1849. "协同文档",
  1850. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1851. "id": "doc",
  1852. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1853. "onresize": function () { }
  1854. }, {
  1855. closecallback: function () { }
  1856. }, { "style": { "height": "36px" } }).form; //创建窗体
  1857. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1858. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1859. })
  1860. _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); } }
  1861. break;
  1862. case "study":
  1863. _formdiv = new U.UF.UI.form(
  1864. "学习中心",
  1865. $$("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
  1866. "id": "study",
  1867. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1868. "onresize": function () { }
  1869. }, {
  1870. closecallback: function () { }
  1871. }, { "style": { "height": "36px" } }).form; //创建窗体
  1872. _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); } }
  1873. break;
  1874. case "mindNetwork": //好友打开
  1875. _formdiv = new U.UF.UI.form(
  1876. "思维网格",
  1877. $$("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 }), {
  1878. "id": "mindNetwork",
  1879. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1880. "onresize": function () { }
  1881. }, {
  1882. closecallback: function () { }
  1883. }, { "style": { "height": "36px" } }).form; //创建窗体
  1884. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1885. break;
  1886. case "train": //好友打开
  1887. _formdiv = new U.UF.UI.form(
  1888. "训练平台",
  1889. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1890. "id": "train",
  1891. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1892. "onresize": function () { }
  1893. }, {
  1894. closecallback: function () { }
  1895. }, { "style": { "height": "36px" } }).form; //创建窗体
  1896. _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); } }
  1897. break;
  1898. case "sys":
  1899. _formdiv = new U.UF.UI.form(
  1900. "目标管理",
  1901. $$("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 }), {
  1902. "id": "sys",
  1903. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1904. "onresize": function () { }
  1905. }, {
  1906. closecallback: function () { }
  1907. }, { "style": { "height": "36px" } }).form; //创建窗体
  1908. _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); } }
  1909. break;
  1910. case "courseDesign":
  1911. _formdiv = new U.UF.UI.form(
  1912. "课程设计",
  1913. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1914. "id": "courseDesign",
  1915. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1916. "onresize": function () { }
  1917. }, {
  1918. closecallback: function () { }
  1919. }, { "style": { "height": "36px" } }).form; //创建窗体
  1920. _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); } }
  1921. break;
  1922. }
  1923. } else if (!_type) {
  1924. switch (str) {
  1925. case "my":
  1926. _formdiv = new U.UF.UI.form(
  1927. "我的资料",
  1928. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  1929. "id": "my",
  1930. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1931. "onresize": function () { }
  1932. }, {
  1933. closecallback: function () { }
  1934. }, { "style": { "height": "36px" } }).form; //创建窗体
  1935. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1936. break;
  1937. }
  1938. }
  1939. switch (str) {
  1940. // AIprogram2 AI体验 aihub.cocorobo.cn
  1941. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  1942. // AIprogram AI编程 ai-blockly.cocorobo.cn
  1943. case "AIprogram2": //AI体验
  1944. _formdiv = new U.UF.UI.form(
  1945. "AI体验",
  1946. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  1947. "id": "AIprogram2",
  1948. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1949. "onresize": function () { }
  1950. }, {
  1951. closecallback: function () { }
  1952. }, { "style": { "height": "36px" } }).form; //创建窗体
  1953. _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); } }
  1954. break;
  1955. case "Pythonprogram": //python编程
  1956. _formdiv = new U.UF.UI.form(
  1957. "Python编程",
  1958. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  1959. "id": "Pythonprogram",
  1960. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1961. "onresize": function () { }
  1962. }, {
  1963. closecallback: function () { }
  1964. }, { "style": { "height": "36px" } }).form; //创建窗体
  1965. _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); } }
  1966. break;
  1967. case "AIprogram": //ai编程
  1968. _formdiv = new U.UF.UI.form(
  1969. "AI编程平台",
  1970. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  1971. "id": "AIprogram",
  1972. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1973. "onresize": function () { }
  1974. }, {
  1975. closecallback: function () { }
  1976. }, { "style": { "height": "36px" } }).form; //创建窗体
  1977. _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); } }
  1978. break;
  1979. case "resources": //国家教育
  1980. _formdiv = new U.UF.UI.form(
  1981. "国家教育",
  1982. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  1983. "id": "resources",
  1984. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1985. "onresize": function () { }
  1986. }, {
  1987. closecallback: function () { }
  1988. }, { "style": { "height": "36px" } }).form; //创建窗体
  1989. _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); } }
  1990. break;
  1991. case "codeEdit": //源码编辑
  1992. _formdiv = new U.UF.UI.form(
  1993. "源码编辑",
  1994. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  1995. "id": "codeEdit",
  1996. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1997. "onresize": function () { }
  1998. }, {
  1999. closecallback: function () { }
  2000. }, { "style": { "height": "36px" } }).form; //创建窗体
  2001. _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); } }
  2002. break; //
  2003. case "MindMap": //MindMap
  2004. _formdiv = new U.UF.UI.form(
  2005. "MindMap",
  2006. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2007. "id": "MindMap",
  2008. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2009. "onresize": function () { }
  2010. }, {
  2011. closecallback: function () { }
  2012. }, { "style": { "height": "36px" } }).form; //创建窗体
  2013. _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); } }
  2014. break;
  2015. case "netWorkPanel": //netWorkPanel
  2016. _formdiv = new U.UF.UI.form(
  2017. "netWorkPanel",
  2018. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2019. "id": "netWorkPanel",
  2020. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2021. "onresize": function () { }
  2022. }, {
  2023. closecallback: function () { }
  2024. }, { "style": { "height": "36px" } }).form; //创建窗体
  2025. _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); } }
  2026. break;
  2027. case "GeoGebra": //GeoGebra
  2028. _formdiv = new U.UF.UI.form(
  2029. "GeoGebra",
  2030. $$("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" }), {
  2031. "id": "GeoGebra",
  2032. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2033. "onresize": function () { }
  2034. }, {
  2035. closecallback: function () { }
  2036. }, { "style": { "height": "36px" } }).form; //创建窗体
  2037. _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); } }
  2038. break;
  2039. case "translation": //翻译
  2040. _formdiv = new U.UF.UI.form(
  2041. "翻译",
  2042. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2043. "id": "translation",
  2044. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2045. "onresize": function () { }
  2046. }, {
  2047. closecallback: function () { }
  2048. }, { "style": { "height": "36px" } }).form; //创建窗体
  2049. _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); } }
  2050. break;
  2051. case "mohe": //魔盒
  2052. _formdiv = new U.UF.UI.form(
  2053. "魔盒识字",
  2054. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2055. "id": "mohe",
  2056. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2057. "onresize": function () { }
  2058. }, {
  2059. closecallback: function () { }
  2060. }, { "style": { "height": "36px" } }).form; //创建窗体
  2061. _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); } }
  2062. break;
  2063. case "24game": //24点
  2064. _formdiv = new U.UF.UI.form(
  2065. "24点",
  2066. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2067. "id": "24game",
  2068. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2069. "onresize": function () { }
  2070. }, {
  2071. closecallback: function () { }
  2072. }, { "style": { "height": "36px" } }).form; //创建窗体
  2073. _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); } }
  2074. break;
  2075. case "case":
  2076. _formdiv = new U.UF.UI.form(
  2077. "项目进展",
  2078. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/CaseDesign?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2079. "id": "case",
  2080. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2081. "onresize": function () { }
  2082. }, {
  2083. closecallback: function () { }
  2084. }, { "style": { "height": "36px" } }).form; //创建窗体
  2085. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/case.png)" }, "name": "项目进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2086. break;
  2087. case "snf":
  2088. _formdiv = new U.UF.UI.form(
  2089. "赛诺梵",
  2090. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//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" }), {
  2091. "id": "snf",
  2092. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2093. "onresize": function () { }
  2094. }, {
  2095. closecallback: function () { }
  2096. }, { "style": { "height": "36px" } }).form; //创建窗体
  2097. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/snf.png)" }, "name": "赛诺梵", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2098. break;
  2099. case "hanFamily":
  2100. _formdiv = new U.UF.UI.form(
  2101. "汉字家族",
  2102. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2103. "id": "hanFamily",
  2104. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2105. "onresize": function () { }
  2106. }, {
  2107. closecallback: function () { }
  2108. }, { "style": { "height": "36px" } }).form; //创建窗体
  2109. _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); } }
  2110. break;
  2111. case "hanClassics":
  2112. _formdiv = new U.UF.UI.form(
  2113. "国学经典",
  2114. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2115. "id": "hanClassics",
  2116. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2117. "onresize": function () { }
  2118. }, {
  2119. closecallback: function () { }
  2120. }, { "style": { "height": "36px" } }).form; //创建窗体
  2121. _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); } }
  2122. break;
  2123. case "hanTraining":
  2124. _formdiv = new U.UF.UI.form(
  2125. "笔画训练",
  2126. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2127. "id": "hanTraining",
  2128. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2129. "onresize": function () { }
  2130. }, {
  2131. closecallback: function () { }
  2132. }, { "style": { "height": "36px" } }).form; //创建窗体
  2133. _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); } }
  2134. break;
  2135. case "hanClass":
  2136. _formdiv = new U.UF.UI.form(
  2137. "书法课堂",
  2138. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2139. "id": "hanClass",
  2140. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2141. "onresize": function () { }
  2142. }, {
  2143. closecallback: function () { }
  2144. }, { "style": { "height": "36px" } }).form; //创建窗体
  2145. _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); } }
  2146. break;
  2147. case "han":
  2148. _formdiv = new U.UF.UI.form(
  2149. "汉字宫",
  2150. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2151. "id": "han",
  2152. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2153. "onresize": function () { }
  2154. }, {
  2155. closecallback: function () { }
  2156. }, { "style": { "height": "36px" } }).form; //创建窗体
  2157. _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); } }
  2158. break;
  2159. case "projectGM": //项目管理
  2160. _formdiv = new U.UF.UI.form(
  2161. "项目管理",
  2162. $$("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 }), {
  2163. "id": "projectGM",
  2164. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2165. "onresize": function () { }
  2166. }, {
  2167. closecallback: function () { }
  2168. }, { "style": { "height": "36px" } }).form; //创建窗体
  2169. _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); } }
  2170. break;
  2171. case "studyGM"://学习中心
  2172. _formdiv = new U.UF.UI.form(
  2173. "学习中心",
  2174. $$("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
  2175. "id": "study",
  2176. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2177. "onresize": function () { }
  2178. }, {
  2179. closecallback: function () { }
  2180. }, { "style": { "height": "36px" } }).form; //创建窗体
  2181. _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); } }
  2182. break;
  2183. // studentGM
  2184. case "studentGM"://学生管理
  2185. _formdiv = new U.UF.UI.form(
  2186. "学生管理",
  2187. $$("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 }), {
  2188. "id": "studentGM",
  2189. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2190. "onresize": function () { }
  2191. }, {
  2192. closecallback: function () { }
  2193. }, { "style": { "height": "36px" } }).form; //创建窗体
  2194. _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); } }
  2195. break;
  2196. case "evaluateGM"://学生评价
  2197. _formdiv = new U.UF.UI.form(
  2198. "学生评价",
  2199. $$("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 }), {
  2200. "id": "evaluateGM",
  2201. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2202. "onresize": function () { }
  2203. }, {
  2204. closecallback: function () { }
  2205. }, { "style": { "height": "36px" } }).form; //创建窗体
  2206. _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); } }
  2207. break;
  2208. // classGM
  2209. case "classGM"://班级管理
  2210. _formdiv = new U.UF.UI.form(
  2211. "班级管理",
  2212. $$("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 }), {
  2213. "id": "classGM",
  2214. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2215. "onresize": function () { }
  2216. }, {
  2217. closecallback: function () { }
  2218. }, { "style": { "height": "36px" } }).form; //创建窗体
  2219. _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); } }
  2220. break;
  2221. // dataGM
  2222. case "dataGM":
  2223. _formdiv = new U.UF.UI.form(
  2224. "我的资料",
  2225. $$("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 }), {
  2226. "id": "dataGM",
  2227. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2228. "onresize": function () { }
  2229. }, {
  2230. closecallback: function () { }
  2231. }, { "style": { "height": "36px" } }).form; //创建窗体
  2232. _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); } }
  2233. break;
  2234. // caseGM
  2235. case "caseGM"://项目进展
  2236. _formdiv = new U.UF.UI.form(
  2237. "项目进展",
  2238. $$("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 }), {
  2239. "id": "caseGM",
  2240. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2241. "onresize": function () { }
  2242. }, {
  2243. closecallback: function () { }
  2244. }, { "style": { "height": "36px" } }).form; //创建窗体
  2245. _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); } }
  2246. break;
  2247. // meterialGM
  2248. case "meterialGM"://素材库
  2249. _formdiv = new U.UF.UI.form(
  2250. "素材库",
  2251. $$("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 }), {
  2252. "id": "meterialGM",
  2253. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2254. "onresize": function () { }
  2255. }, {
  2256. closecallback: function () { }
  2257. }, { "style": { "height": "36px" } }).form; //创建窗体
  2258. _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); } }
  2259. break;
  2260. // evaluateSGM
  2261. case "evaluateSGM": //我的评价
  2262. _formdiv = new U.UF.UI.form(
  2263. "我的评价",
  2264. $$("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 }), {
  2265. "id": "evaluateSGM",
  2266. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2267. "onresize": function () { }
  2268. }, {
  2269. closecallback: function () { }
  2270. }, { "style": { "height": "36px" } }).form; //创建窗体
  2271. _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); } }
  2272. break;
  2273. case "jupyter": //jupyter
  2274. _formdiv = new U.UF.UI.form(
  2275. "jupyter",
  2276. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  2277. "id": "jupyter",
  2278. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2279. "onresize": function () { }
  2280. }, {
  2281. closecallback: function () { }
  2282. }, { "style": { "height": "36px" } }).form; //创建窗体
  2283. _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); } }
  2284. break;
  2285. case "number": //数字实验室
  2286. _formdiv = new U.UF.UI.form(
  2287. "数字实验室",
  2288. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  2289. "id": "number",
  2290. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2291. "onresize": function () { }
  2292. }, {
  2293. closecallback: function () { }
  2294. }, { "style": { "height": "36px" } }).form; //创建窗体
  2295. _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); } }
  2296. break;
  2297. case "studentCourse": //学生项目 学生
  2298. _formdiv = new U.UF.UI.form(
  2299. _org == "150e3120-9195-11ed-b13d-005056b86db5" ? "师生项目" : "学生项目",
  2300. $$("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 }), {
  2301. "id": "studentCourse",
  2302. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2303. "onresize": function () { }
  2304. }, {
  2305. closecallback: function () { }
  2306. }, { "style": { "height": "36px" } }).form; //创建窗体
  2307. _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); } }
  2308. break;
  2309. case "studentCourseS": //学生项目 老师
  2310. _formdiv = new U.UF.UI.form(
  2311. _org == "150e3120-9195-11ed-b13d-005056b86db5" ? "师生项目" : "学生项目",
  2312. $$("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 }), {
  2313. "id": "studentCourseS",
  2314. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2315. "onresize": function () { }
  2316. }, {
  2317. closecallback: function () { }
  2318. }, { "style": { "height": "36px" } }).form; //创建窗体
  2319. _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); } }
  2320. break;
  2321. case "tcStudent": //腾讯学生管理
  2322. _formdiv = new U.UF.UI.form(
  2323. "学生管理",
  2324. $$("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 }), {
  2325. "id": "tcStudent",
  2326. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2327. "onresize": function () { }
  2328. }, {
  2329. closecallback: function () { }
  2330. }, { "style": { "height": "36px" } }).form; //创建窗体
  2331. _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); } }
  2332. break;
  2333. case "tcSchool": //腾讯学校管理
  2334. _formdiv = new U.UF.UI.form(
  2335. "学校管理",
  2336. $$("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 }), {
  2337. "id": "tcSchool",
  2338. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2339. "onresize": function () { }
  2340. }, {
  2341. closecallback: function () { }
  2342. }, { "style": { "height": "36px" } }).form; //创建窗体
  2343. _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); } }
  2344. break;
  2345. case "tcTeacher": //腾讯学校管理
  2346. _formdiv = new U.UF.UI.form(
  2347. "教师管理",
  2348. $$("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 }), {
  2349. "id": "tcTeacher",
  2350. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2351. "onresize": function () { }
  2352. }, {
  2353. closecallback: function () { }
  2354. }, { "style": { "height": "36px" } }).form; //创建窗体
  2355. _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); } }
  2356. break;
  2357. case "tcData": //腾讯我的资料
  2358. _formdiv = new U.UF.UI.form(
  2359. "我的资料",
  2360. $$("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 }), {
  2361. "id": "tcData",
  2362. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2363. "onresize": function () { }
  2364. }, {
  2365. closecallback: function () { }
  2366. }, { "style": { "height": "36px" } }).form; //创建窗体
  2367. _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); } }
  2368. break;
  2369. case "tcNotice": //腾讯消息通知
  2370. _formdiv = new U.UF.UI.form(
  2371. "消息通知",
  2372. $$("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 }), {
  2373. "id": "tcNotice",
  2374. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2375. "onresize": function () { }
  2376. }, {
  2377. closecallback: function () { }
  2378. }, { "style": { "height": "36px" } }).form; //创建窗体
  2379. _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); } }
  2380. break;
  2381. }
  2382. //U.MD.D.I.openClick(str);
  2383. //如果有任务栏信息
  2384. if (_taskbar) {
  2385. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2386. }
  2387. }
  2388. // U.MD.D.I.openClick = function(str){
  2389. // var click = '';
  2390. // switch(str){
  2391. // case 'friend':
  2392. // click = '我的好友';
  2393. // break;
  2394. // case 'domain':
  2395. // click = '域名管理';
  2396. // break;
  2397. // case 'disk':
  2398. // click = '我的云盘';
  2399. // break;
  2400. // case 'word':
  2401. // click = 'Word';
  2402. // break;
  2403. // case 'excel':
  2404. // click = 'Execl';
  2405. // break;
  2406. // case 'txt':
  2407. // click = '文本文件';
  2408. // break;
  2409. // case 'lookupFriend':
  2410. // click = '查找好友';
  2411. // break;
  2412. // case 'ftp':
  2413. // click = 'FTP';
  2414. // break;
  2415. // case 'group':
  2416. // click = '群组';
  2417. // break;
  2418. // case 'set':
  2419. // click = '我的设置';
  2420. // break;
  2421. // case 'systemSet':
  2422. // click = '系统设置';
  2423. // break;
  2424. // case 'boomYun':
  2425. // click = '互联办公';
  2426. // break;
  2427. // case 'xz':
  2428. // click = '云端下载';
  2429. // break;
  2430. // case 'client':
  2431. // click = '有思浏览器';
  2432. // break;
  2433. // case 'backEndProgramming':
  2434. // click = '在线后台编程';
  2435. // break;
  2436. // case 'frontEndProgramming':
  2437. // click = '在线前端编程';
  2438. // break;
  2439. // default: break;
  2440. // }
  2441. // if(U.MD.D.I.Ip && click){
  2442. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  2443. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  2444. // })
  2445. // }
  2446. // }
  2447. /**
  2448. *函数作用:ajax简易函数,使用post格式
  2449. *@param url {data} 后台地址
  2450. *@param data {data} 参数json
  2451. *@param fn {data} 回调函数
  2452. *
  2453. */
  2454. // U.MD.D.I.Mysqlrequest = function(url,fn){
  2455. // var xhr = new XMLHttpRequest();
  2456. // xhr.open("GET",url,true);
  2457. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  2458. // xhr.onreadystatechange = function(){
  2459. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  2460. // fn.call(this,xhr.responseText);
  2461. // }
  2462. // };
  2463. // xhr.send();
  2464. // }
  2465. /*判断是否是内网IP*/
  2466. // U.MD.D.I.isInnerIPFn = function(str){
  2467. // var curPageUrl = str;
  2468. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  2469. // curPageUrl =curPageUrl.replace(reg1,'');
  2470. // // console.log('curPageUrl-1 '+curPageUrl);
  2471. // var reg2 = /\:+/g;//替换冒号为一点
  2472. // curPageUrl =curPageUrl.replace(reg2,'.');
  2473. // // console.log('curPageUrl-2 '+curPageUrl);
  2474. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  2475. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  2476. // if(curPageUrl[2] != '16'){
  2477. // return ipAddress;
  2478. // }else{
  2479. // return false;
  2480. // }
  2481. // }
  2482. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  2483. // //compatibility for firefox and chrome
  2484. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  2485. // var pc = new myPeerConnection({
  2486. // iceServers: []
  2487. // }),
  2488. // noop = function() {},
  2489. // localIPs = {},
  2490. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  2491. // key;
  2492. // function iterateIP(ip) {
  2493. // if (!localIPs[ip]) onNewIP(ip);
  2494. // localIPs[ip] = true;
  2495. // }
  2496. // //create a bogus data channel
  2497. // pc.createDataChannel("");
  2498. // // create offer and set local description
  2499. // pc.createOffer().then(function(sdp) {
  2500. // sdp.sdp.split('\n').forEach(function(line) {
  2501. // if (line.indexOf('candidate') < 0) return;
  2502. // line.match(ipRegex).forEach(iterateIP);
  2503. // });
  2504. // pc.setLocalDescription(sdp, noop, noop);
  2505. // }).catch(function(reason) {
  2506. // // An error occurred, so handle the failure to connect
  2507. // });
  2508. // //sten for candidate events
  2509. // pc.onicecandidate = function(ice) {
  2510. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  2511. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  2512. // };
  2513. // }
  2514. // U.MD.D.I.getUserIpBool = function(callback){
  2515. // U.MD.D.I.getUserIP(function(ip){
  2516. // alert("Got IP! :" + ip);
  2517. // });
  2518. //}
  2519. //#endregion
  2520. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  2521. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2522. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2523. _userinfo = US.userInfo, //登录用户信息
  2524. _userid = US.userInfo.userid //登录用户id
  2525. let _iframe;
  2526. let _cid = cid,
  2527. _stage = stage,
  2528. _task = task,
  2529. _tool = tool;
  2530. var _jie = $$("div", {
  2531. "style": {
  2532. "position": "absolute",
  2533. "bottom": "50px",
  2534. "right": "50px",
  2535. "zIndex": "9999",
  2536. "backgroundColor": "#2268bc",
  2537. "color": "#fff",
  2538. "padding": "12px 20px",
  2539. "cursor": "pointer",
  2540. "borderRadius": "4px",
  2541. },
  2542. "innerHTML": "提交作业"
  2543. })
  2544. let aTool = ''
  2545. let _loading = document.createElement('div')
  2546. _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;"
  2547. // _loading.id = "";
  2548. let _lchild = document.createElement('div')
  2549. let _limg = document.createElement('img')
  2550. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  2551. _limg.style = "width: 26px;margin-right: 10px;"
  2552. _lchild.appendChild(_limg)
  2553. let _lspan = document.createElement('span')
  2554. _lspan.innerHTML = "上传中..."
  2555. _lchild.appendChild(_lspan)
  2556. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  2557. _loading.appendChild(_lchild)
  2558. var _box = $$('div', {
  2559. "style": {
  2560. "position": "relative",
  2561. "width": "100%",
  2562. "height": "100%",
  2563. },
  2564. })
  2565. _box.appendChild(_loading)
  2566. _box.id = str + '_loadLi'
  2567. switch (str) {
  2568. case "whiteboard":
  2569. aTool = 1;
  2570. _iframe = $$("iframe", {
  2571. "frameborder": "no",
  2572. "border": "0",
  2573. "scrolling ": "no",
  2574. "style": {
  2575. "cssText": "border:0;width:100%;height:100%"
  2576. },
  2577. "src": "https://iwb.cocorobo.cn/"
  2578. })
  2579. _box.appendChild(_iframe);
  2580. _box.appendChild(_jie);
  2581. _formdiv = new U.UF.UI.form(
  2582. "电子白板",
  2583. _box, {
  2584. "id": "whiteboard" + cid + stage + task + tool,
  2585. "style": {
  2586. "width": "90%",
  2587. "height": "90%",
  2588. "overflow": 'hidden'
  2589. },
  2590. "onresize": function () { }
  2591. }, {
  2592. closecallback: function () { }
  2593. }, {
  2594. "style": {
  2595. "height": "36px"
  2596. }
  2597. }).form; //创建窗体
  2598. _taskbar = {
  2599. "id": str + _formdiv.id,
  2600. "style": {
  2601. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  2602. },
  2603. "name": "电子白板",
  2604. "forms": _formdiv,
  2605. "click": function () {
  2606. U.MD.D.I.openApplication(str, obj, info);
  2607. }
  2608. }
  2609. break;
  2610. case "mind":
  2611. aTool = 3;
  2612. _iframe = $$("iframe", {
  2613. "frameborder": "no",
  2614. "border": "0",
  2615. "scrolling ": "no",
  2616. "style": {
  2617. "cssText": "border:0;width:100%;height:100%"
  2618. },
  2619. "src": "/kityminder-editor/dist/index.html"
  2620. })
  2621. _box.appendChild(_iframe);
  2622. _box.appendChild(_jie);
  2623. _formdiv = new U.UF.UI.form(
  2624. "思维导图",
  2625. _box, { //"/jsmind/example/demo.html"
  2626. "id": "mind" + cid + stage + task + tool,
  2627. "style": {
  2628. "width": "90%",
  2629. "height": "90%",
  2630. "overflow": 'hidden'
  2631. },
  2632. "onresize": function () { }
  2633. }, {
  2634. closecallback: function () { }
  2635. }, {
  2636. "style": {
  2637. "height": "36px"
  2638. }
  2639. }).form; //创建窗体
  2640. _taskbar = {
  2641. "id": str + _formdiv.id,
  2642. "style": {
  2643. "backgroundImage": "url(/img/icon/mindMapping.png)"
  2644. },
  2645. "name": "思维导图",
  2646. "forms": _formdiv,
  2647. "click": function () {
  2648. U.MD.D.I.openApplication(str, obj, info);
  2649. }
  2650. }
  2651. break;
  2652. case "MindMap":
  2653. aTool = 3;
  2654. _iframe = $$("iframe", {
  2655. "frameborder": "no",
  2656. "border": "0",
  2657. "scrolling ": "no",
  2658. "style": {
  2659. "cssText": "border:0;width:100%;height:100%"
  2660. },
  2661. "src": "//cloud.cocorobo.cn/mind/"
  2662. })
  2663. _box.appendChild(_iframe);
  2664. _box.appendChild(_jie);
  2665. _formdiv = new U.UF.UI.form(
  2666. "思维导图",
  2667. _box, { //"/jsmind/example/demo.html"
  2668. "id": "mind" + cid + stage + task + tool,
  2669. "style": {
  2670. "width": "90%",
  2671. "height": "90%",
  2672. "overflow": 'hidden'
  2673. },
  2674. "onresize": function () { }
  2675. }, {
  2676. closecallback: function () { }
  2677. }, {
  2678. "style": {
  2679. "height": "36px"
  2680. }
  2681. }).form; //创建窗体
  2682. _taskbar = {
  2683. "id": str + _formdiv.id,
  2684. "style": {
  2685. "backgroundImage": "url(/img/icon/mindMapping.png)"
  2686. },
  2687. "name": "思维导图",
  2688. "forms": _formdiv,
  2689. "click": function () {
  2690. U.MD.D.I.openApplication(str, obj, info);
  2691. }
  2692. }
  2693. break;
  2694. case "doc":
  2695. aTool = 6;
  2696. _iframe = $$("iframe", {
  2697. "frameborder": "no",
  2698. "border": "0",
  2699. "scrolling ": "no",
  2700. "style": {
  2701. "cssText": "border:0;width:100%;height:100%"
  2702. },
  2703. "src": "/Office/Word/WordEditArea.htm"
  2704. })
  2705. _box.appendChild(_iframe);
  2706. _box.appendChild(_jie);
  2707. _formdiv = new U.UF.UI.form(
  2708. "协同文档",
  2709. _box, {
  2710. "id": "doc" + cid + stage + task + tool,
  2711. "style": {
  2712. "width": "90%",
  2713. "height": "90%",
  2714. "overflow": 'hidden'
  2715. },
  2716. "onresize": function () { }
  2717. }, {
  2718. closecallback: function () { }
  2719. }, {
  2720. "style": {
  2721. "height": "36px"
  2722. }
  2723. }).form; //创建窗体
  2724. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2725. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  2726. })
  2727. _taskbar = {
  2728. "id": str + _formdiv.id,
  2729. "style": {
  2730. "backgroundImage": "url(/img/icon/doc.png)"
  2731. },
  2732. "name": "协同文档",
  2733. "forms": _formdiv,
  2734. "click": function () {
  2735. U.MD.D.I.openApplication(str, obj, info);
  2736. }
  2737. }
  2738. break;
  2739. case "mindNetwork": //好友打开
  2740. aTool = 7;
  2741. _iframe = $$("iframe", {
  2742. "webkitallowfullscreen": "",
  2743. "mozallowfullscreen": "",
  2744. "allowfullscreen": "",
  2745. "frameborder": "no",
  2746. "border": "0",
  2747. "scrolling ": "no",
  2748. "style": {
  2749. "cssText": "border:0; width:100%; height:100%;"
  2750. },
  2751. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  2752. })
  2753. _box.appendChild(_iframe);
  2754. _box.appendChild(_jie);
  2755. _formdiv = new U.UF.UI.form(
  2756. "思维网格",
  2757. _box, {
  2758. "id": "mindNetwork" + cid + stage + task + tool,
  2759. "style": {
  2760. "width": "90%",
  2761. "height": "90%",
  2762. "overflow": 'hidden'
  2763. },
  2764. "onresize": function () { }
  2765. }, {
  2766. closecallback: function () { }
  2767. }, {
  2768. "style": {
  2769. "height": "36px"
  2770. }
  2771. }).form; //创建窗体
  2772. _taskbar = {
  2773. "id": str + _formdiv.id,
  2774. "style": {
  2775. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  2776. },
  2777. "name": "思维网格",
  2778. "forms": _formdiv,
  2779. "click": function () {
  2780. U.MD.D.I.openApplication(str, obj, info);
  2781. }
  2782. }
  2783. break;
  2784. case "courseDesign":
  2785. _iframe = $$("iframe", {
  2786. "webkitallowfullscreen": "",
  2787. "mozallowfullscreen": "",
  2788. "allowfullscreen": "",
  2789. "frameborder": "no",
  2790. "border": "0",
  2791. "scrolling ": "no",
  2792. "style": {
  2793. "cssText": "border:0; width:100%; height:100%;"
  2794. },
  2795. "src": "/course-design-vue"
  2796. })
  2797. _box.appendChild(_iframe);
  2798. _box.appendChild(_jie);
  2799. _formdiv = new U.UF.UI.form(
  2800. "课程设计",
  2801. _box, {
  2802. "id": "courseDesign" + cid + stage + task + tool,
  2803. "style": {
  2804. "width": "90%",
  2805. "height": "90%",
  2806. "overflow": 'hidden'
  2807. },
  2808. "onresize": function () { }
  2809. }, {
  2810. closecallback: function () { }
  2811. }, {
  2812. "style": {
  2813. "height": "36px"
  2814. }
  2815. }).form; //创建窗体
  2816. _taskbar = {
  2817. "id": str + _formdiv.id,
  2818. "style": {
  2819. "backgroundImage": "url(/img/icon/courseDesign.png)"
  2820. },
  2821. "name": "课程设计",
  2822. "forms": _formdiv,
  2823. "click": function () {
  2824. U.MD.D.I.openApplication(str, obj, info);
  2825. }
  2826. }
  2827. break;
  2828. }
  2829. const script1 = document.createElement("script");
  2830. script1.type = "text/javascript";
  2831. // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  2832. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  2833. const script2 = document.createElement("script");
  2834. script2.type = "text/javascript";
  2835. // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  2836. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  2837. const script3 = document.createElement("script");
  2838. script3.type = "text/javascript";
  2839. script3.charset = "UTF-8";
  2840. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  2841. const script4 = document.createElement("script");
  2842. script4.type = "text/javascript";
  2843. // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  2844. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  2845. if (_iframe) {
  2846. if (str == 'doc') {
  2847. U.UF.DL.iframeLoad(_iframe, function () {
  2848. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  2849. _iframe.contentWindow.document.body.appendChild(script1);
  2850. _iframe.contentWindow.document.body.appendChild(script2);
  2851. // _iframe.contentWindow.document.body.appendChild(script3);
  2852. _iframe.contentWindow.document.body.appendChild(script4);
  2853. })
  2854. } else if (str == 'courseDesign') {
  2855. U.UF.DL.iframeLoad(_iframe, function () {
  2856. // _iframe.contentWindow.U.MD.O.W.load();
  2857. // _iframe.contentWindow.document.body.appendChild(script1);
  2858. _iframe.contentWindow.document.body.appendChild(script2);
  2859. _iframe.contentWindow.document.body.appendChild(script4);
  2860. })
  2861. } else if (str == 'mind') {
  2862. U.UF.DL.iframeLoad(_iframe, function () {
  2863. //
  2864. _iframe.contentWindow.document.body.appendChild(script1);
  2865. _iframe.contentWindow.document.body.appendChild(script2);
  2866. _iframe.contentWindow.document.body.appendChild(script4);
  2867. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  2868. })
  2869. } else {
  2870. _iframe.onload = () => {
  2871. _iframe.contentWindow.document.body.appendChild(script1);
  2872. _iframe.contentWindow.document.body.appendChild(script2);
  2873. // _iframe.contentWindow.document.body.appendChild(script3);
  2874. _iframe.contentWindow.document.body.appendChild(script4);
  2875. };
  2876. }
  2877. _jie.onclick = async () => {
  2878. let text = ''
  2879. if (aTool == 6) {
  2880. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  2881. } else if (aTool == 3) {
  2882. text = await U.MD.D.I.getEditorContent(_iframe);
  2883. }
  2884. _loading.style.display = 'flex'
  2885. console.log(_loading);
  2886. var _ajs = _iframe.contentWindow.document.createElement("script");
  2887. _ajs.type = "text/javascript";
  2888. _ajs.innerHTML =
  2889. // 'console.log(' + _loading + ');\n' +
  2890. 'var _js = document.createElement("script");\n' +
  2891. '_js.type="text/javascript";\n' +
  2892. '_js.charset="UTF-8";\n' +
  2893. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  2894. "_js.onload = function(){\n" +
  2895. ' var a = document.getElementsByTagName("img")\n' +
  2896. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  2897. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  2898. '  var base64Url = canvas.toDataURL("image/png");\n' +
  2899. 'var base64 = "<img src=" + base64Url + " />"\n' +
  2900. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  2901. "beforeUpload_shishi(file," +
  2902. "'" +
  2903. _userid +
  2904. "'" +
  2905. ", " +
  2906. "'" +
  2907. _cid +
  2908. "'" +
  2909. ", " +
  2910. "'" +
  2911. _stage +
  2912. "'" +
  2913. ", " +
  2914. "'" +
  2915. _task +
  2916. "'" +
  2917. ", " +
  2918. "'" +
  2919. _tool +
  2920. "'" +
  2921. ", " +
  2922. "'" +
  2923. str + '_loadLi' +
  2924. "'" +
  2925. ", " +
  2926. "'" +
  2927. aTool +
  2928. "'" +
  2929. ", " +
  2930. "`" +
  2931. text +
  2932. "`" +
  2933. ")\n" +
  2934. " });\n" +
  2935. "}\n" +
  2936. "document.head.appendChild(_js);\n";
  2937. _iframe.contentWindow.document.head.appendChild(_ajs);
  2938. }
  2939. }
  2940. //U.MD.D.I.openClick(str);
  2941. //如果有任务栏信息
  2942. // if (_taskbar) {
  2943. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2944. // }
  2945. }
  2946. U.MD.D.I.getEditorContent = function (iframe) {
  2947. return new Promise((resolve, reject) => {
  2948. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  2949. console.log(content);
  2950. resolve(content)
  2951. });
  2952. });
  2953. }
  2954. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  2955. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  2956. // if (res.value[0].length > 0) {
  2957. // // resolve(res.value[0][0].text);
  2958. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  2959. // $(fileInput).val('');
  2960. // });
  2961. // }
  2962. // }, [], { "type": "GET", "withCredentials": true });
  2963. var xmlhttp;
  2964. var Mac, Sn, DeviceId
  2965. if (window.XMLHttpRequest) {
  2966. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  2967. xmlhttp = new XMLHttpRequest();
  2968. }
  2969. else {
  2970. // IE6, IE5 浏览器执行代码
  2971. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  2972. }
  2973. xmlhttp.onreadystatechange = function () {
  2974. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  2975. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  2976. // resolve(res.value[0][0].text);
  2977. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  2978. $(fileInput).val('');
  2979. });
  2980. }
  2981. }
  2982. }
  2983. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  2984. xmlhttp.send();
  2985. }
  2986. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  2987. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2988. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2989. _userinfo = US.userInfo, //登录用户信息
  2990. _userid = US.userInfo.userid //登录用户id
  2991. let _iframe;
  2992. let _cid = cid,
  2993. _stage = stage,
  2994. _task = task,
  2995. _tool = tool;
  2996. var _jie = $$("div", {
  2997. "style": {
  2998. "position": "absolute",
  2999. "bottom": "50px",
  3000. "right": "50px",
  3001. "zIndex": "9999",
  3002. "backgroundColor": "#2268bc",
  3003. "color": "#fff",
  3004. "padding": "12px 20px",
  3005. "cursor": "pointer",
  3006. "borderRadius": "4px",
  3007. },
  3008. "innerHTML": "确认并提交"
  3009. })
  3010. let aTool = ''
  3011. let _loading = document.createElement('div')
  3012. _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;"
  3013. // _loading.id = "";
  3014. let _lchild = document.createElement('div')
  3015. let _limg = document.createElement('img')
  3016. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  3017. _limg.style = "width: 26px;margin-right: 10px;"
  3018. _lchild.appendChild(_limg)
  3019. let _lspan = document.createElement('span')
  3020. _lspan.innerHTML = "上传中..."
  3021. _lchild.appendChild(_lspan)
  3022. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  3023. _loading.appendChild(_lchild)
  3024. var _box = $$('div', {
  3025. "style": {
  3026. "position": "relative",
  3027. "width": "100%",
  3028. "height": "100%",
  3029. },
  3030. })
  3031. _box.appendChild(_loading)
  3032. _box.id = str + '_loadLi'
  3033. switch (str) {
  3034. case "whiteboard":
  3035. aTool = 1;
  3036. _iframe = $$("iframe", {
  3037. "frameborder": "no",
  3038. "border": "0",
  3039. "scrolling ": "no",
  3040. "style": {
  3041. "cssText": "border:0;width:100%;height:100%"
  3042. },
  3043. "src": "https://iwb.cocorobo.cn/"
  3044. })
  3045. _box.appendChild(_iframe);
  3046. _box.appendChild(_jie);
  3047. _formdiv = new U.UF.UI.form(
  3048. "电子白板",
  3049. _box, {
  3050. "id": "whiteboards" + cid + stage + task + tool,
  3051. "style": {
  3052. "width": "90%",
  3053. "height": "90%",
  3054. "overflow": 'hidden'
  3055. },
  3056. "onresize": function () { }
  3057. }, {
  3058. closecallback: function () { }
  3059. }, {
  3060. "style": {
  3061. "height": "36px"
  3062. }
  3063. }).form; //创建窗体
  3064. _taskbar = {
  3065. "id": str + _formdiv.id,
  3066. "style": {
  3067. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3068. },
  3069. "name": "电子白板",
  3070. "forms": _formdiv,
  3071. "click": function () {
  3072. U.MD.D.I.openApplication(str, obj, info);
  3073. }
  3074. }
  3075. break;
  3076. case "mind":
  3077. aTool = 3;
  3078. _iframe = $$("iframe", {
  3079. "frameborder": "no",
  3080. "border": "0",
  3081. "scrolling ": "no",
  3082. "style": {
  3083. "cssText": "border:0;width:100%;height:100%"
  3084. },
  3085. "src": "/kityminder-editor/dist/index.html"
  3086. });
  3087. _box.appendChild(_iframe);
  3088. _box.appendChild(_jie);
  3089. _formdiv = new U.UF.UI.form(
  3090. "思维导图",
  3091. _box, { //"/jsmind/example/demo.html"
  3092. "id": "minds" + cid + stage + task + tool,
  3093. "style": {
  3094. "width": "90%",
  3095. "height": "90%",
  3096. "overflow": 'hidden'
  3097. },
  3098. "onresize": function () { }
  3099. }, {
  3100. closecallback: function () { }
  3101. }, {
  3102. "style": {
  3103. "height": "36px"
  3104. }
  3105. }).form; //创建窗体
  3106. _taskbar = {
  3107. "id": str + _formdiv.id,
  3108. "style": {
  3109. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3110. },
  3111. "name": "思维导图",
  3112. "forms": _formdiv,
  3113. "click": function () {
  3114. U.MD.D.I.openApplication(str, obj, info);
  3115. }
  3116. }
  3117. break;
  3118. case "doc":
  3119. aTool = 6;
  3120. _iframe = $$("iframe", {
  3121. "frameborder": "no",
  3122. "border": "0",
  3123. "scrolling ": "no",
  3124. "style": {
  3125. "cssText": "border:0;width:100%;height:100%"
  3126. },
  3127. "src": "/Office/Word/WordEditArea.htm"
  3128. })
  3129. _box.appendChild(_iframe);
  3130. _box.appendChild(_jie);
  3131. _formdiv = new U.UF.UI.form(
  3132. "协同文档",
  3133. _box, {
  3134. "id": "docs" + cid + stage + task + tool,
  3135. "style": {
  3136. "width": "90%",
  3137. "height": "90%",
  3138. "overflow": 'hidden'
  3139. },
  3140. "onresize": function () { }
  3141. }, {
  3142. closecallback: function () { }
  3143. }, {
  3144. "style": {
  3145. "height": "36px"
  3146. }
  3147. }).form; //创建窗体
  3148. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3149. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  3150. })
  3151. _taskbar = {
  3152. "id": str + _formdiv.id,
  3153. "style": {
  3154. "backgroundImage": "url(/img/icon/doc.png)"
  3155. },
  3156. "name": "协同文档",
  3157. "forms": _formdiv,
  3158. "click": function () {
  3159. U.MD.D.I.openApplication(str, obj, info);
  3160. }
  3161. }
  3162. break;
  3163. }
  3164. const script1 = document.createElement("script");
  3165. script1.type = "text/javascript";
  3166. // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3167. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3168. const script2 = document.createElement("script");
  3169. script2.type = "text/javascript";
  3170. // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3171. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3172. const script3 = document.createElement("script");
  3173. script3.type = "text/javascript";
  3174. script3.charset = "UTF-8";
  3175. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3176. const script4 = document.createElement("script");
  3177. script4.type = "text/javascript";
  3178. // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu4.js";
  3179. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  3180. if (_iframe) {
  3181. if (str == 'doc') {
  3182. U.UF.DL.iframeLoad(_iframe, function () {
  3183. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  3184. _iframe.contentWindow.document.body.appendChild(script1);
  3185. _iframe.contentWindow.document.body.appendChild(script2);
  3186. // _iframe.contentWindow.document.body.appendChild(script3);
  3187. _iframe.contentWindow.document.body.appendChild(script4);
  3188. })
  3189. } else if (str == 'mind') {
  3190. U.UF.DL.iframeLoad(_iframe, function () {
  3191. _iframe.contentWindow.document.body.appendChild(script1);
  3192. _iframe.contentWindow.document.body.appendChild(script2);
  3193. _iframe.contentWindow.document.body.appendChild(script4);
  3194. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  3195. })
  3196. } else {
  3197. _iframe.onload = () => {
  3198. _iframe.contentWindow.document.body.appendChild(script1);
  3199. _iframe.contentWindow.document.body.appendChild(script2);
  3200. // _iframe.contentWindow.document.body.appendChild(script3);
  3201. _iframe.contentWindow.document.body.appendChild(script4);
  3202. };
  3203. }
  3204. _jie.onclick = async () => {
  3205. let text = ''
  3206. if (aTool == 6) {
  3207. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3208. } else if (aTool == 3) {
  3209. text = await U.MD.D.I.getEditorContent(_iframe);
  3210. }
  3211. _loading.style.display = 'flex'
  3212. console.log(_loading);
  3213. var _ajs = _iframe.contentWindow.document.createElement("script");
  3214. _ajs.type = "text/javascript";
  3215. _ajs.innerHTML =
  3216. // 'console.log(' + _loading + ');\n' +
  3217. 'var _js = document.createElement("script");\n' +
  3218. '_js.type="text/javascript";\n' +
  3219. '_js.charset="UTF-8";\n' +
  3220. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3221. "_js.onload = function(){\n" +
  3222. ' var a = document.getElementsByTagName("img")\n' +
  3223. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3224. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3225. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3226. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3227. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3228. "beforeUpload_shishi(file," +
  3229. "'" +
  3230. _userid +
  3231. "'" +
  3232. ", " +
  3233. "'" +
  3234. _cid +
  3235. "'" +
  3236. ", " +
  3237. "'" +
  3238. _stage +
  3239. "'" +
  3240. ", " +
  3241. "'" +
  3242. _task +
  3243. "'" +
  3244. ", " +
  3245. "'" +
  3246. _tool +
  3247. "'" +
  3248. ", " +
  3249. "'" +
  3250. str + '_loadLi' +
  3251. "'" +
  3252. ", " +
  3253. "'" +
  3254. aTool +
  3255. "'" +
  3256. ", " +
  3257. "`" +
  3258. text +
  3259. "`" +
  3260. ")\n" +
  3261. " });\n" +
  3262. "}\n" +
  3263. "document.head.appendChild(_js);\n";
  3264. _iframe.contentWindow.document.head.appendChild(_ajs);
  3265. }
  3266. }
  3267. //U.MD.D.I.openClick(str);
  3268. //如果有任务栏信息
  3269. // if (_taskbar) {
  3270. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3271. // }
  3272. }
  3273. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  3274. var xmlhttp;
  3275. var Mac, Sn, DeviceId
  3276. if (window.XMLHttpRequest) {
  3277. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  3278. xmlhttp = new XMLHttpRequest();
  3279. }
  3280. else {
  3281. // IE6, IE5 浏览器执行代码
  3282. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  3283. }
  3284. xmlhttp.onreadystatechange = function () {
  3285. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  3286. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  3287. // resolve(res.value[0][0].text);
  3288. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  3289. $(fileInput).val('');
  3290. });
  3291. }
  3292. }
  3293. }
  3294. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  3295. xmlhttp.send();
  3296. }