DeskTop.js 204 KB

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