DeskTop.js 279 KB

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