DeskTop.js 206 KB

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