DeskTop.js 229 KB

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