DeskTop.js 291 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116
  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 == "2studio") { //课程管理传入
  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 == "3studio") { //课程管理传入
  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 == "1studio") {
  1340. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1341. } else if (e.data.tools && e.data.tools == "3studio") {
  1342. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1343. } else if (e.data.tools && e.data.tools == "6studio") {
  1344. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1345. } else if (e.data.tools && e.data.tools == "3y") {
  1346. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1347. } else if (e.data.tools && e.data.tools == "1y") {
  1348. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1349. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1350. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1351. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1352. U.MD.D.I.openApplication("AIAnalyse")
  1353. } else if (e.data.tools && e.data.tools == "1teacher") {
  1354. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1355. } else if (e.data.tools && e.data.tools == "3teacher") {
  1356. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1357. } else if (e.data.tools && e.data.tools == "7teacher") {
  1358. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1359. }
  1360. });
  1361. U.MD.D.I.selectUser = function () {
  1362. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1363. if (res.value[0].length > 0) {
  1364. US.userInfo = res.value[0][0];
  1365. $(".userName")[0].innerHTML = US.userInfo.username;
  1366. }
  1367. }, [], { "type": "GET", "withCredentials": true });
  1368. }
  1369. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1370. var _userinfo = US.userInfo, //登录用户信息
  1371. _userid = US.userInfo.userid, //登录用户id
  1372. _oid = _userinfo.organizeid,
  1373. _type = US.userInfo.type,
  1374. _org = US.userInfo.org,
  1375. _role = US.userInfo.role,
  1376. _classId = US.userInfo.classid;
  1377. if (_type == 4) {
  1378. tType = 4
  1379. }
  1380. switch (str) {
  1381. case "studyDetailNT"://无终端模式
  1382. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1383. setTimeout(() => {
  1384. U.MD.U.L.login();
  1385. }, 2000);
  1386. } else {
  1387. _formdiv = new U.UF.UI.form(
  1388. "课程详情",
  1389. $$("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 }), {
  1390. "id": "studyDetailNT",
  1391. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1392. "onresize": function () { }
  1393. }, {
  1394. closecallback: function () { }
  1395. }, { "style": { "height": "36px" } }).form; //创建窗体
  1396. _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); } }
  1397. break;
  1398. }
  1399. case "studyDetail":
  1400. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1401. setTimeout(() => {
  1402. U.MD.U.L.login();
  1403. }, 2000);
  1404. } else {
  1405. _formdiv = new U.UF.UI.form(
  1406. "课程详情",
  1407. $$("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 }), {
  1408. "id": "studyDetail",
  1409. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1410. "onresize": function () { }
  1411. }, {
  1412. closecallback: function () { }
  1413. }, { "style": { "height": "36px" } }).form; //创建窗体
  1414. _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); } }
  1415. break;
  1416. }
  1417. case "studyDetailS":
  1418. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1419. setTimeout(() => {
  1420. U.MD.U.L.login();
  1421. }, 2000);
  1422. } else {
  1423. _formdiv = new U.UF.UI.form(
  1424. "项目详情",
  1425. $$("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 }), {
  1426. "id": "studyDetailS",
  1427. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1428. "onresize": function () { }
  1429. }, {
  1430. closecallback: function () { }
  1431. }, { "style": { "height": "36px" } }).form; //创建窗体
  1432. _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); } }
  1433. break;
  1434. }
  1435. case "studyDetailStudio":
  1436. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1437. setTimeout(() => {
  1438. U.MD.U.L.login();
  1439. }, 2000);
  1440. } else {
  1441. _formdiv = new U.UF.UI.form(
  1442. "工作详情",
  1443. $$("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 }), {
  1444. "id": "studyDetailStudio",
  1445. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1446. "onresize": function () { }
  1447. }, {
  1448. closecallback: function () { }
  1449. }, { "style": { "height": "36px" } }).form; //创建窗体
  1450. _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); } }
  1451. break;
  1452. }
  1453. case "studyDetailS5":
  1454. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1455. setTimeout(() => {
  1456. U.MD.U.L.login();
  1457. }, 2000);
  1458. } else {
  1459. _formdiv = new U.UF.UI.form(
  1460. "项目详情",
  1461. $$("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 }), {
  1462. "id": "studyDetailS",
  1463. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1464. "onresize": function () { }
  1465. }, {
  1466. closecallback: function () { }
  1467. }, { "style": { "height": "36px" } }).form; //创建窗体
  1468. _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); } }
  1469. break;
  1470. }
  1471. case "studyDetailGM":
  1472. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1473. setTimeout(() => {
  1474. U.MD.U.L.login();
  1475. }, 2000);
  1476. } else {
  1477. _formdiv = new U.UF.UI.form(
  1478. "课程详情",
  1479. $$("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 }), {
  1480. "id": "studyDetail",
  1481. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1482. "onresize": function () { }
  1483. }, {
  1484. closecallback: function () { }
  1485. }, { "style": { "height": "36px" } }).form; //创建窗体
  1486. _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); } }
  1487. break;
  1488. }
  1489. case "hanUrl":
  1490. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1491. setTimeout(() => {
  1492. U.MD.U.L.login();
  1493. }, 2000);
  1494. } else {
  1495. _formdiv = new U.UF.UI.form(
  1496. "汉字宫",
  1497. $$("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" }), {
  1498. "id": "hanUrl",
  1499. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1500. "onresize": function () { }
  1501. }, {
  1502. closecallback: function () { }
  1503. }, { "style": { "height": "36px" } }).form; //创建窗体
  1504. _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); } }
  1505. break;
  1506. }
  1507. }
  1508. }
  1509. U.MD.D.I.openApplication = function (str, obj, info) {
  1510. obj = obj || {};
  1511. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1512. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1513. _userinfo = US.userInfo, //登录用户信息
  1514. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1515. _oid = obj.organizeid || _userinfo.organizeid,
  1516. _type = US.userInfo.type,
  1517. _org = US.userInfo.org,
  1518. _role = US.userInfo.role,
  1519. _classId = US.userInfo.classid,
  1520. _TscreenType = 1
  1521. _screenType = 2,
  1522. _SscreenType = 3;
  1523. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1524. return;
  1525. }
  1526. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1527. switch (str) {
  1528. case "studnetProject": //好友打开
  1529. _formdiv = new U.UF.UI.form(
  1530. "我的项目",
  1531. $$("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 }), {
  1532. "id": "studnetProject",
  1533. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1534. "onresize": function () { }
  1535. }, {
  1536. closecallback: function () { }
  1537. }, { "style": { "height": "36px" } }).form; //创建窗体
  1538. _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); } }
  1539. break;
  1540. case "studentEvaluate": //好友打开
  1541. _formdiv = new U.UF.UI.form(
  1542. "我的评价",
  1543. $$("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 }), {
  1544. "id": "studentEvaluate",
  1545. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1546. "onresize": function () { }
  1547. }, {
  1548. closecallback: function () { }
  1549. }, { "style": { "height": "36px" } }).form; //创建窗体
  1550. _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); } }
  1551. break;
  1552. case "my":
  1553. _formdiv = new U.UF.UI.form(
  1554. "我的资料",
  1555. $$("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 }), {
  1556. "id": "my",
  1557. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1558. "onresize": function () { }
  1559. }, {
  1560. closecallback: function () { }
  1561. }, { "style": { "height": "36px" } }).form; //创建窗体
  1562. _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); } }
  1563. break;
  1564. case "program":
  1565. _formdiv = new U.UF.UI.form(
  1566. "编程平台",
  1567. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1568. "id": "program",
  1569. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1570. "onresize": function () { }
  1571. }, {
  1572. closecallback: function () { }
  1573. }, { "style": { "height": "36px" } }).form; //创建窗体
  1574. _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); } }
  1575. break;
  1576. case "library":
  1577. _formdiv = new U.UF.UI.form(
  1578. "素材库",
  1579. $$("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 }), {
  1580. "id": "library",
  1581. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1582. "onresize": function () { }
  1583. }, {
  1584. closecallback: function () { }
  1585. }, { "style": { "height": "36px" } }).form; //创建窗体
  1586. _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); } }
  1587. break;
  1588. case "whiteboard":
  1589. _formdiv = new U.UF.UI.form(
  1590. "电子白板",
  1591. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1592. "id": "whiteboard",
  1593. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1594. "onresize": function () { }
  1595. }, {
  1596. closecallback: function () { }
  1597. }, { "style": { "height": "36px" } }).form; //创建窗体
  1598. _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); } }
  1599. break;
  1600. case "investigation":
  1601. _formdiv = new U.UF.UI.form(
  1602. "问卷调查",
  1603. $$("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 }), {
  1604. "id": "investigation",
  1605. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1606. "onresize": function () { }
  1607. }, {
  1608. closecallback: function () { }
  1609. }, { "style": { "height": "36px" } }).form; //创建窗体
  1610. _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); } }
  1611. break;
  1612. case "note":
  1613. _formdiv = new U.UF.UI.form(
  1614. "便签分类",
  1615. $$("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 }), {
  1616. "id": "note",
  1617. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1618. "onresize": function () { }
  1619. }, {
  1620. closecallback: function () { }
  1621. }, { "style": { "height": "36px" } }).form; //创建窗体
  1622. _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); } }
  1623. break;
  1624. // case "score":
  1625. // _formdiv = new U.UF.UI.form(
  1626. // "量规评分",
  1627. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1628. // "id": "score",
  1629. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1630. // "onresize": function() {}
  1631. // }, {
  1632. // closecallback: function() {}
  1633. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1634. // _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); } }
  1635. // break;
  1636. case "mind":
  1637. _formdiv = new U.UF.UI.form(
  1638. "思维导图",
  1639. $$("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"
  1640. "id": "mind",
  1641. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1642. "onresize": function () { }
  1643. }, {
  1644. closecallback: function () { }
  1645. }, { "style": { "height": "36px" } }).form; //创建窗体
  1646. _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); } }
  1647. break;
  1648. case "doc":
  1649. // U.MD.D.I.isRoom();
  1650. _formdiv = new U.UF.UI.form(
  1651. "协同文档",
  1652. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1653. "id": "doc",
  1654. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1655. "onresize": function () { }
  1656. }, {
  1657. closecallback: function () { }
  1658. }, { "style": { "height": "36px" } }).form; //创建窗体
  1659. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1660. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1661. // })
  1662. _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); } }
  1663. break;
  1664. case "studentStudy":
  1665. _formdiv = new U.UF.UI.form(
  1666. "课程中心",
  1667. $$("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
  1668. "id": "studentStudy",
  1669. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1670. "onresize": function () { }
  1671. }, {
  1672. closecallback: function () { }
  1673. }, { "style": { "height": "36px" } }).form; //创建窗体
  1674. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1675. break;
  1676. case "train": //好友打开
  1677. _formdiv = new U.UF.UI.form(
  1678. "训练平台",
  1679. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1680. "id": "train",
  1681. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1682. "onresize": function () { }
  1683. }, {
  1684. closecallback: function () { }
  1685. }, { "style": { "height": "36px" } }).form; //创建窗体
  1686. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1687. break;
  1688. case "mindNetwork": //好友打开
  1689. _formdiv = new U.UF.UI.form(
  1690. "思维网格",
  1691. $$("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 }), {
  1692. "id": "mindNetwork",
  1693. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1694. "onresize": function () { }
  1695. }, {
  1696. closecallback: function () { }
  1697. }, { "style": { "height": "36px" } }).form; //创建窗体
  1698. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1699. break;
  1700. case "studentClassRoom": //好友打开
  1701. _formdiv = new U.UF.UI.form(
  1702. "实时课堂",
  1703. $$("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 }), {
  1704. "id": "studentClassRoom",
  1705. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1706. "onresize": function () { }
  1707. }, {
  1708. closecallback: function () { }
  1709. }, { "style": { "height": "36px" } }).form; //创建窗体
  1710. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1711. setTimeout(() => {
  1712. U.UF.F.windowZooming(_formdiv)
  1713. }, 0);
  1714. break;
  1715. }
  1716. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1717. switch (str) {
  1718. case "studnetProject": //好友打开
  1719. _formdiv = new U.UF.UI.form(
  1720. "我的项目",
  1721. $$("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 }), {
  1722. "id": "studnetProject",
  1723. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1724. "onresize": function () { }
  1725. }, {
  1726. closecallback: function () { }
  1727. }, { "style": { "height": "36px" } }).form; //创建窗体
  1728. _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); } }
  1729. break;
  1730. case "studentEvaluate": //好友打开
  1731. _formdiv = new U.UF.UI.form(
  1732. "我的评价",
  1733. $$("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 }), {
  1734. "id": "studentEvaluate",
  1735. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1736. "onresize": function () { }
  1737. }, {
  1738. closecallback: function () { }
  1739. }, { "style": { "height": "36px" } }).form; //创建窗体
  1740. _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); } }
  1741. break;
  1742. case "my":
  1743. _formdiv = new U.UF.UI.form(
  1744. "我的资料",
  1745. $$("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 }), {
  1746. "id": "my",
  1747. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1748. "onresize": function () { }
  1749. }, {
  1750. closecallback: function () { }
  1751. }, { "style": { "height": "36px" } }).form; //创建窗体
  1752. _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); } }
  1753. break;
  1754. case "program":
  1755. _formdiv = new U.UF.UI.form(
  1756. "编程平台",
  1757. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1758. "id": "program",
  1759. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1760. "onresize": function () { }
  1761. }, {
  1762. closecallback: function () { }
  1763. }, { "style": { "height": "36px" } }).form; //创建窗体
  1764. _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); } }
  1765. break;
  1766. case "library":
  1767. _formdiv = new U.UF.UI.form(
  1768. "素材库",
  1769. $$("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 }), {
  1770. "id": "library",
  1771. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1772. "onresize": function () { }
  1773. }, {
  1774. closecallback: function () { }
  1775. }, { "style": { "height": "36px" } }).form; //创建窗体
  1776. _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); } }
  1777. break;
  1778. case "whiteboard":
  1779. _formdiv = new U.UF.UI.form(
  1780. "电子白板",
  1781. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1782. "id": "whiteboard",
  1783. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1784. "onresize": function () { }
  1785. }, {
  1786. closecallback: function () { }
  1787. }, { "style": { "height": "36px" } }).form; //创建窗体
  1788. _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); } }
  1789. break;
  1790. case "investigation":
  1791. _formdiv = new U.UF.UI.form(
  1792. "问卷调查",
  1793. $$("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 }), {
  1794. "id": "investigation",
  1795. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1796. "onresize": function () { }
  1797. }, {
  1798. closecallback: function () { }
  1799. }, { "style": { "height": "36px" } }).form; //创建窗体
  1800. _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); } }
  1801. break;
  1802. case "note":
  1803. _formdiv = new U.UF.UI.form(
  1804. "便签分类",
  1805. $$("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 }), {
  1806. "id": "note",
  1807. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1808. "onresize": function () { }
  1809. }, {
  1810. closecallback: function () { }
  1811. }, { "style": { "height": "36px" } }).form; //创建窗体
  1812. _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); } }
  1813. break;
  1814. // case "score":
  1815. // _formdiv = new U.UF.UI.form(
  1816. // "量规评分",
  1817. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1818. // "id": "score",
  1819. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1820. // "onresize": function() {}
  1821. // }, {
  1822. // closecallback: function() {}
  1823. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1824. // _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); } }
  1825. // break;
  1826. case "mind":
  1827. _formdiv = new U.UF.UI.form(
  1828. "思维导图",
  1829. $$("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"
  1830. "id": "mind",
  1831. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1832. "onresize": function () { }
  1833. }, {
  1834. closecallback: function () { }
  1835. }, { "style": { "height": "36px" } }).form; //创建窗体
  1836. _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); } }
  1837. break;
  1838. case "doc":
  1839. // U.MD.D.I.isRoom();
  1840. _formdiv = new U.UF.UI.form(
  1841. "协同文档",
  1842. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1843. "id": "doc",
  1844. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1845. "onresize": function () { }
  1846. }, {
  1847. closecallback: function () { }
  1848. }, { "style": { "height": "36px" } }).form; //创建窗体
  1849. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1850. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1851. })
  1852. _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); } }
  1853. break;
  1854. case "train": //好友打开
  1855. _formdiv = new U.UF.UI.form(
  1856. "训练平台",
  1857. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1858. "id": "train",
  1859. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1860. "onresize": function () { }
  1861. }, {
  1862. closecallback: function () { }
  1863. }, { "style": { "height": "36px" } }).form; //创建窗体
  1864. _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); } }
  1865. break;
  1866. case "studentStudy":
  1867. _formdiv = new U.UF.UI.form(
  1868. "课程中心",
  1869. $$("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
  1870. "id": "studentStudy",
  1871. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1872. "onresize": function () { }
  1873. }, {
  1874. closecallback: function () { }
  1875. }, { "style": { "height": "36px" } }).form; //创建窗体
  1876. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1877. break;
  1878. case "mindNetwork": //好友打开
  1879. _formdiv = new U.UF.UI.form(
  1880. "思维网格",
  1881. $$("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 }), {
  1882. "id": "mindNetwork",
  1883. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1884. "onresize": function () { }
  1885. }, {
  1886. closecallback: function () { }
  1887. }, { "style": { "height": "36px" } }).form; //创建窗体
  1888. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1889. break;
  1890. case "studentClassRoom": //好友打开
  1891. _formdiv = new U.UF.UI.form(
  1892. "实时课堂",
  1893. $$("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 }), {
  1894. "id": "studentClassRoom",
  1895. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1896. "onresize": function () { }
  1897. }, {
  1898. closecallback: function () { }
  1899. }, { "style": { "height": "36px" } }).form; //创建窗体
  1900. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1901. setTimeout(() => {
  1902. U.UF.F.windowZooming(_formdiv)
  1903. }, 0);
  1904. break;
  1905. }
  1906. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1907. //选择应用处理
  1908. switch (str) {
  1909. case "project": //好友打开
  1910. _formdiv = new U.UF.UI.form(
  1911. "课程管理",
  1912. $$("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 }), {
  1913. "id": "project",
  1914. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1915. "onresize": function () { }
  1916. }, {
  1917. closecallback: function () { }
  1918. }, { "style": { "height": "36px" } }).form; //创建窗体
  1919. _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); } }
  1920. break;
  1921. case "student":
  1922. _formdiv = new U.UF.UI.form(
  1923. "学生管理",
  1924. $$("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 }), {
  1925. "id": "student",
  1926. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1927. "onresize": function () { }
  1928. }, {
  1929. closecallback: function () { }
  1930. }, { "style": { "height": "36px" } }).form; //创建窗体
  1931. _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); } }
  1932. break;
  1933. case "evaluate":
  1934. _formdiv = new U.UF.UI.form(
  1935. "学生评价",
  1936. $$("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 }), {
  1937. "id": "evaluate",
  1938. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1939. "onresize": function () { }
  1940. }, {
  1941. closecallback: function () { }
  1942. }, { "style": { "height": "36px" } }).form; //创建窗体
  1943. _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); } }
  1944. break;
  1945. case "sys":
  1946. _formdiv = new U.UF.UI.form(
  1947. "目标管理",
  1948. $$("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 }), {
  1949. "id": "sys",
  1950. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1951. "onresize": function () { }
  1952. }, {
  1953. closecallback: function () { }
  1954. }, { "style": { "height": "36px" } }).form; //创建窗体
  1955. _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); } }
  1956. break;
  1957. case "courseDesign":
  1958. _formdiv = new U.UF.UI.form(
  1959. "项目设计",
  1960. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1961. "id": "courseDesign",
  1962. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1963. "onresize": function () { }
  1964. }, {
  1965. closecallback: function () { }
  1966. }, { "style": { "height": "36px" } }).form; //创建窗体
  1967. _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); } }
  1968. break;
  1969. case "program":
  1970. _formdiv = new U.UF.UI.form(
  1971. "编程平台",
  1972. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1973. "id": "program",
  1974. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1975. "onresize": function () { }
  1976. }, {
  1977. closecallback: function () { }
  1978. }, { "style": { "height": "36px" } }).form; //创建窗体
  1979. _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); } }
  1980. break;
  1981. case "class":
  1982. _formdiv = new U.UF.UI.form(
  1983. "班级管理",
  1984. $$("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 }), {
  1985. "id": "class",
  1986. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1987. "onresize": function () { }
  1988. }, {
  1989. closecallback: function () { }
  1990. }, { "style": { "height": "36px" } }).form; //创建窗体
  1991. _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); } }
  1992. break;
  1993. case "my":
  1994. _formdiv = new U.UF.UI.form(
  1995. "我的资料",
  1996. $$("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 }), {
  1997. "id": "my",
  1998. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1999. "onresize": function () { }
  2000. }, {
  2001. closecallback: function () { }
  2002. }, { "style": { "height": "36px" } }).form; //创建窗体
  2003. _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); } }
  2004. break;
  2005. case "notice":
  2006. _formdiv = new U.UF.UI.form(
  2007. "通知公告",
  2008. $$("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 }), {
  2009. "id": "notice",
  2010. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2011. "onresize": function () { }
  2012. }, {
  2013. closecallback: function () { }
  2014. }, { "style": { "height": "36px" } }).form; //创建窗体
  2015. _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); } }
  2016. break;
  2017. case "library":
  2018. _formdiv = new U.UF.UI.form(
  2019. "素材库",
  2020. $$("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 }), {
  2021. "id": "library",
  2022. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2023. "onresize": function () { }
  2024. }, {
  2025. closecallback: function () { }
  2026. }, { "style": { "height": "36px" } }).form; //创建窗体
  2027. _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); } }
  2028. break;
  2029. case "whiteboard":
  2030. _formdiv = new U.UF.UI.form(
  2031. "电子白板",
  2032. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2033. "id": "whiteboard",
  2034. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2035. "onresize": function () { }
  2036. }, {
  2037. closecallback: function () { }
  2038. }, { "style": { "height": "36px" } }).form; //创建窗体
  2039. _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); } }
  2040. break;
  2041. case "investigation":
  2042. _formdiv = new U.UF.UI.form(
  2043. "问卷调查",
  2044. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  2045. "id": "investigation",
  2046. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2047. "onresize": function () { }
  2048. }, {
  2049. closecallback: function () { }
  2050. }, { "style": { "height": "36px" } }).form; //创建窗体
  2051. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2052. break;
  2053. case "note":
  2054. _formdiv = new U.UF.UI.form(
  2055. "便签分类",
  2056. $$("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 }), {
  2057. "id": "note",
  2058. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2059. "onresize": function () { }
  2060. }, {
  2061. closecallback: function () { }
  2062. }, { "style": { "height": "36px" } }).form; //创建窗体
  2063. _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); } }
  2064. break;
  2065. // case "score":
  2066. // _formdiv = new U.UF.UI.form(
  2067. // "量规评分",
  2068. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  2069. // "id": "score",
  2070. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2071. // "onresize": function() {}
  2072. // }, {
  2073. // closecallback: function() {}
  2074. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2075. // _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); } }
  2076. // break;
  2077. case "mind":
  2078. _formdiv = new U.UF.UI.form(
  2079. "思维导图",
  2080. $$("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"
  2081. "id": "mind",
  2082. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2083. "onresize": function () { }
  2084. }, {
  2085. closecallback: function () { }
  2086. }, { "style": { "height": "36px" } }).form; //创建窗体
  2087. _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); } }
  2088. break;
  2089. case "doc":
  2090. // U.MD.D.I.isRoom();
  2091. _formdiv = new U.UF.UI.form(
  2092. "协同文档",
  2093. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2094. "id": "doc",
  2095. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2096. "onresize": function () { }
  2097. }, {
  2098. closecallback: function () { }
  2099. }, { "style": { "height": "36px" } }).form; //创建窗体
  2100. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2101. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2102. })
  2103. _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); } }
  2104. break;
  2105. case "study":
  2106. _formdiv = new U.UF.UI.form(
  2107. "课程中心",
  2108. $$("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
  2109. "id": "study",
  2110. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2111. "onresize": function () { }
  2112. }, {
  2113. closecallback: function () { }
  2114. }, { "style": { "height": "36px" } }).form; //创建窗体
  2115. _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); } }
  2116. break;
  2117. case "mindNetwork": //好友打开
  2118. _formdiv = new U.UF.UI.form(
  2119. "思维网格",
  2120. $$("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 }), {
  2121. "id": "mindNetwork",
  2122. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2123. "onresize": function () { }
  2124. }, {
  2125. closecallback: function () { }
  2126. }, { "style": { "height": "36px" } }).form; //创建窗体
  2127. _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); } }
  2128. break;
  2129. case "train": //好友打开
  2130. _formdiv = new U.UF.UI.form(
  2131. "训练平台",
  2132. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2133. "id": "mindNetwork",
  2134. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2135. "onresize": function () { }
  2136. }, {
  2137. closecallback: function () { }
  2138. }, { "style": { "height": "36px" } }).form; //创建窗体
  2139. _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); } }
  2140. break;
  2141. case "teacherClassRoom": //好友打开
  2142. _formdiv = new U.UF.UI.form(
  2143. "实时课堂",
  2144. $$("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 }), {
  2145. "id": "teacherClassRoom",
  2146. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2147. "onresize": function () { }
  2148. }, {
  2149. closecallback: function () { }
  2150. }, { "style": { "height": "36px" } }).form; //创建窗体
  2151. _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); } }
  2152. setTimeout(() => {
  2153. U.UF.F.windowZooming(_formdiv)
  2154. }, 0);
  2155. break;
  2156. }
  2157. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2158. switch (str) {
  2159. case "project": //好友打开
  2160. _formdiv = new U.UF.UI.form(
  2161. "课程管理",
  2162. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2163. "id": "project",
  2164. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2165. "onresize": function () { }
  2166. }, {
  2167. closecallback: function () { }
  2168. }, { "style": { "height": "36px" } }).form; //创建窗体
  2169. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2170. break;
  2171. case "evaluate":
  2172. _formdiv = new U.UF.UI.form(
  2173. "学生评价",
  2174. $$("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 }), {
  2175. "id": "evaluate",
  2176. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2177. "onresize": function () { }
  2178. }, {
  2179. closecallback: function () { }
  2180. }, { "style": { "height": "36px" } }).form; //创建窗体
  2181. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2182. break;
  2183. case "notice":
  2184. _formdiv = new U.UF.UI.form(
  2185. "通知公告",
  2186. $$("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 }), {
  2187. "id": "notice",
  2188. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2189. "onresize": function () { }
  2190. }, {
  2191. closecallback: function () { }
  2192. }, { "style": { "height": "36px" } }).form; //创建窗体
  2193. _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); } }
  2194. break;
  2195. case "stuLibrary":
  2196. _formdiv = new U.UF.UI.form(
  2197. "学习资料",
  2198. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/studyLibrary?userid=" + _userid + "&org=" + _org }), {
  2199. "id": "stuLibrary",
  2200. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2201. "onresize": function () { }
  2202. }, {
  2203. closecallback: function () { }
  2204. }, { "style": { "height": "36px" } }).form; //创建窗体
  2205. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/stuLibrary.png)" }, "name": "学习资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2206. break;
  2207. case "program":
  2208. _formdiv = new U.UF.UI.form(
  2209. "编程平台",
  2210. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2211. "id": "program",
  2212. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2213. "onresize": function () { }
  2214. }, {
  2215. closecallback: function () { }
  2216. }, { "style": { "height": "36px" } }).form; //创建窗体
  2217. _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); } }
  2218. break;
  2219. case "whiteboard":
  2220. _formdiv = new U.UF.UI.form(
  2221. "电子白板",
  2222. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2223. "id": "whiteboard",
  2224. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2225. "onresize": function () { }
  2226. }, {
  2227. closecallback: function () { }
  2228. }, { "style": { "height": "36px" } }).form; //创建窗体
  2229. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2230. break;
  2231. case "investigation":
  2232. _formdiv = new U.UF.UI.form(
  2233. "问卷调查",
  2234. $$("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 }), {
  2235. "id": "investigation",
  2236. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2237. "onresize": function () { }
  2238. }, {
  2239. closecallback: function () { }
  2240. }, { "style": { "height": "36px" } }).form; //创建窗体
  2241. _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); } }
  2242. break;
  2243. case "mind":
  2244. _formdiv = new U.UF.UI.form(
  2245. "思维导图",
  2246. $$("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"
  2247. "id": "mind",
  2248. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2249. "onresize": function () { }
  2250. }, {
  2251. closecallback: function () { }
  2252. }, { "style": { "height": "36px" } }).form; //创建窗体
  2253. _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); } }
  2254. break;
  2255. case "doc":
  2256. // U.MD.D.I.isRoom();
  2257. _formdiv = new U.UF.UI.form(
  2258. "协同文档",
  2259. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2260. "id": "doc",
  2261. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2262. "onresize": function () { }
  2263. }, {
  2264. closecallback: function () { }
  2265. }, { "style": { "height": "36px" } }).form; //创建窗体
  2266. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2267. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2268. })
  2269. _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); } }
  2270. break;
  2271. case "study":
  2272. _formdiv = new U.UF.UI.form(
  2273. "课程中心",
  2274. $$("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
  2275. "id": "study",
  2276. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2277. "onresize": function () { }
  2278. }, {
  2279. closecallback: function () { }
  2280. }, { "style": { "height": "36px" } }).form; //创建窗体
  2281. _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); } }
  2282. break;
  2283. case "mindNetwork": //好友打开
  2284. _formdiv = new U.UF.UI.form(
  2285. "思维网格",
  2286. $$("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 }), {
  2287. "id": "mindNetwork",
  2288. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2289. "onresize": function () { }
  2290. }, {
  2291. closecallback: function () { }
  2292. }, { "style": { "height": "36px" } }).form; //创建窗体
  2293. _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); } }
  2294. break;
  2295. case "train": //好友打开
  2296. _formdiv = new U.UF.UI.form(
  2297. "训练平台",
  2298. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2299. "id": "train",
  2300. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2301. "onresize": function () { }
  2302. }, {
  2303. closecallback: function () { }
  2304. }, { "style": { "height": "36px" } }).form; //创建窗体
  2305. _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); } }
  2306. break;
  2307. case "sys":
  2308. _formdiv = new U.UF.UI.form(
  2309. "目标管理",
  2310. $$("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 }), {
  2311. "id": "sys",
  2312. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2313. "onresize": function () { }
  2314. }, {
  2315. closecallback: function () { }
  2316. }, { "style": { "height": "36px" } }).form; //创建窗体
  2317. _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); } }
  2318. break;
  2319. case "courseDesign":
  2320. _formdiv = new U.UF.UI.form(
  2321. "项目设计",
  2322. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2323. "id": "courseDesign",
  2324. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2325. "onresize": function () { }
  2326. }, {
  2327. closecallback: function () { }
  2328. }, { "style": { "height": "36px" } }).form; //创建窗体
  2329. _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); } }
  2330. break;
  2331. }
  2332. } else if (!_type) {
  2333. switch (str) {
  2334. case "my":
  2335. _formdiv = new U.UF.UI.form(
  2336. "我的资料",
  2337. $$("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 }), {
  2338. "id": "my",
  2339. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2340. "onresize": function () { }
  2341. }, {
  2342. closecallback: function () { }
  2343. }, { "style": { "height": "36px" } }).form; //创建窗体
  2344. _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); } }
  2345. break;
  2346. }
  2347. }
  2348. switch (str) {
  2349. // AIprogram2 AI体验 aihub.cocorobo.cn
  2350. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2351. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2352. case "AIprogram2": //AI体验
  2353. _formdiv = new U.UF.UI.form(
  2354. "AI体验",
  2355. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2356. "id": "AIprogram2",
  2357. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2358. "onresize": function () { }
  2359. }, {
  2360. closecallback: function () { }
  2361. }, { "style": { "height": "36px" } }).form; //创建窗体
  2362. _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); } }
  2363. break;
  2364. case "Pythonprogram": //python编程
  2365. _formdiv = new U.UF.UI.form(
  2366. "Python编程",
  2367. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2368. "id": "Pythonprogram",
  2369. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2370. "onresize": function () { }
  2371. }, {
  2372. closecallback: function () { }
  2373. }, { "style": { "height": "36px" } }).form; //创建窗体
  2374. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Pythonprogram.png)" }, "name": "Python编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2375. break;
  2376. case "AIprogram": //ai编程
  2377. _formdiv = new U.UF.UI.form(
  2378. "AI编程平台",
  2379. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2380. "id": "AIprogram",
  2381. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2382. "onresize": function () { }
  2383. }, {
  2384. closecallback: function () { }
  2385. }, { "style": { "height": "36px" } }).form; //创建窗体
  2386. _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); } }
  2387. break;
  2388. case "CocoPi": //CocoPi
  2389. _formdiv = new U.UF.UI.form(
  2390. "CocoPi",
  2391. $$("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" }), {
  2392. "id": "CocoPi",
  2393. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2394. "onresize": function () { }
  2395. }, {
  2396. closecallback: function () { }
  2397. }, { "style": { "height": "36px" } }).form; //创建窗体
  2398. _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); } }
  2399. break;
  2400. case "car": //模拟驾驶
  2401. _formdiv = new U.UF.UI.form(
  2402. "模拟驾驶",
  2403. $$("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/" }), {
  2404. "id": "car",
  2405. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2406. "onresize": function () { }
  2407. }, {
  2408. closecallback: function () { }
  2409. }, { "style": { "height": "36px" } }).form; //创建窗体
  2410. _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); } }
  2411. break;
  2412. case "lineSearch": //路径搜索
  2413. _formdiv = new U.UF.UI.form(
  2414. "路径搜索",
  2415. $$("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/" }), {
  2416. "id": "lineSearch",
  2417. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2418. "onresize": function () { }
  2419. }, {
  2420. closecallback: function () { }
  2421. }, { "style": { "height": "36px" } }).form; //创建窗体
  2422. _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); } }
  2423. break;
  2424. case "deepLearning": //深度学习
  2425. _formdiv = new U.UF.UI.form(
  2426. "深度学习",
  2427. $$("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/#" }), {
  2428. "id": "deepLearning",
  2429. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2430. "onresize": function () { }
  2431. }, {
  2432. closecallback: function () { }
  2433. }, { "style": { "height": "36px" } }).form; //创建窗体
  2434. _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); } }
  2435. break;
  2436. case "chatPDF": //ai编程
  2437. _formdiv = new U.UF.UI.form(
  2438. "chatPDF",
  2439. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2440. "id": "chatPDF",
  2441. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2442. "onresize": function () { }
  2443. }, {
  2444. closecallback: function () { }
  2445. }, { "style": { "height": "36px" } }).form; //创建窗体
  2446. _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); } }
  2447. break;
  2448. case "resources": //国家教育
  2449. _formdiv = new U.UF.UI.form(
  2450. "国家教育",
  2451. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2452. "id": "resources",
  2453. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2454. "onresize": function () { }
  2455. }, {
  2456. closecallback: function () { }
  2457. }, { "style": { "height": "36px" } }).form; //创建窗体
  2458. _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); } }
  2459. break;
  2460. case "codeEdit": //源码编辑
  2461. _formdiv = new U.UF.UI.form(
  2462. "源码编辑",
  2463. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2464. "id": "codeEdit",
  2465. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2466. "onresize": function () { }
  2467. }, {
  2468. closecallback: function () { }
  2469. }, { "style": { "height": "36px" } }).form; //创建窗体
  2470. _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); } }
  2471. break; //
  2472. case "MindMap": //MindMap
  2473. _formdiv = new U.UF.UI.form(
  2474. "MindMap",
  2475. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2476. "id": "MindMap",
  2477. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2478. "onresize": function () { }
  2479. }, {
  2480. closecallback: function () { }
  2481. }, { "style": { "height": "36px" } }).form; //创建窗体
  2482. _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); } }
  2483. break;
  2484. case "netWorkPanel": //netWorkPanel
  2485. _formdiv = new U.UF.UI.form(
  2486. "netWorkPanel",
  2487. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2488. "id": "netWorkPanel",
  2489. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2490. "onresize": function () { }
  2491. }, {
  2492. closecallback: function () { }
  2493. }, { "style": { "height": "36px" } }).form; //创建窗体
  2494. _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); } }
  2495. break;
  2496. case "GeoGebra": //GeoGebra
  2497. _formdiv = new U.UF.UI.form(
  2498. "GeoGebra",
  2499. $$("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" }), {
  2500. "id": "GeoGebra",
  2501. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2502. "onresize": function () { }
  2503. }, {
  2504. closecallback: function () { }
  2505. }, { "style": { "height": "36px" } }).form; //创建窗体
  2506. _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); } }
  2507. break;
  2508. case "translation": //翻译
  2509. _formdiv = new U.UF.UI.form(
  2510. "翻译",
  2511. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2512. "id": "translation",
  2513. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2514. "onresize": function () { }
  2515. }, {
  2516. closecallback: function () { }
  2517. }, { "style": { "height": "36px" } }).form; //创建窗体
  2518. _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); } }
  2519. break;
  2520. case "mohe": //魔盒
  2521. _formdiv = new U.UF.UI.form(
  2522. "魔盒识字",
  2523. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2524. "id": "mohe",
  2525. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2526. "onresize": function () { }
  2527. }, {
  2528. closecallback: function () { }
  2529. }, { "style": { "height": "36px" } }).form; //创建窗体
  2530. _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); } }
  2531. break;
  2532. case "24game": //24点
  2533. _formdiv = new U.UF.UI.form(
  2534. "24点",
  2535. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2536. "id": "24game",
  2537. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2538. "onresize": function () { }
  2539. }, {
  2540. closecallback: function () { }
  2541. }, { "style": { "height": "36px" } }).form; //创建窗体
  2542. _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); } }
  2543. break;
  2544. case "case":
  2545. _formdiv = new U.UF.UI.form(
  2546. "课程进展",
  2547. $$("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 }), {
  2548. "id": "case",
  2549. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2550. "onresize": function () { }
  2551. }, {
  2552. closecallback: function () { }
  2553. }, { "style": { "height": "36px" } }).form; //创建窗体
  2554. _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); } }
  2555. break;
  2556. case "snf":
  2557. _formdiv = new U.UF.UI.form(
  2558. "赛诺梵",
  2559. $$("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" }), {
  2560. "id": "snf",
  2561. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2562. "onresize": function () { }
  2563. }, {
  2564. closecallback: function () { }
  2565. }, { "style": { "height": "36px" } }).form; //创建窗体
  2566. _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); } }
  2567. break;
  2568. case "hanFamily":
  2569. _formdiv = new U.UF.UI.form(
  2570. "汉字家族",
  2571. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2572. "id": "hanFamily",
  2573. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2574. "onresize": function () { }
  2575. }, {
  2576. closecallback: function () { }
  2577. }, { "style": { "height": "36px" } }).form; //创建窗体
  2578. _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); } }
  2579. break;
  2580. case "hanClassics":
  2581. _formdiv = new U.UF.UI.form(
  2582. "国学经典",
  2583. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2584. "id": "hanClassics",
  2585. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2586. "onresize": function () { }
  2587. }, {
  2588. closecallback: function () { }
  2589. }, { "style": { "height": "36px" } }).form; //创建窗体
  2590. _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); } }
  2591. break;
  2592. case "hanTraining":
  2593. _formdiv = new U.UF.UI.form(
  2594. "笔画训练",
  2595. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2596. "id": "hanTraining",
  2597. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2598. "onresize": function () { }
  2599. }, {
  2600. closecallback: function () { }
  2601. }, { "style": { "height": "36px" } }).form; //创建窗体
  2602. _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); } }
  2603. break;
  2604. case "hanClass":
  2605. _formdiv = new U.UF.UI.form(
  2606. "书法课堂",
  2607. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2608. "id": "hanClass",
  2609. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2610. "onresize": function () { }
  2611. }, {
  2612. closecallback: function () { }
  2613. }, { "style": { "height": "36px" } }).form; //创建窗体
  2614. _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); } }
  2615. break;
  2616. case "han":
  2617. _formdiv = new U.UF.UI.form(
  2618. "汉字宫",
  2619. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2620. "id": "han",
  2621. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2622. "onresize": function () { }
  2623. }, {
  2624. closecallback: function () { }
  2625. }, { "style": { "height": "36px" } }).form; //创建窗体
  2626. _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); } }
  2627. break;
  2628. case "projectGM": //课程管理
  2629. _formdiv = new U.UF.UI.form(
  2630. "课程管理",
  2631. $$("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 }), {
  2632. "id": "projectGM",
  2633. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2634. "onresize": function () { }
  2635. }, {
  2636. closecallback: function () { }
  2637. }, { "style": { "height": "36px" } }).form; //创建窗体
  2638. _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); } }
  2639. break;
  2640. case "studyGM"://课程中心
  2641. _formdiv = new U.UF.UI.form(
  2642. "课程中心",
  2643. $$("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
  2644. "id": "study",
  2645. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2646. "onresize": function () { }
  2647. }, {
  2648. closecallback: function () { }
  2649. }, { "style": { "height": "36px" } }).form; //创建窗体
  2650. _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); } }
  2651. break;
  2652. // studentGM
  2653. case "studentGM"://学生管理
  2654. _formdiv = new U.UF.UI.form(
  2655. "学生管理",
  2656. $$("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 }), {
  2657. "id": "studentGM",
  2658. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2659. "onresize": function () { }
  2660. }, {
  2661. closecallback: function () { }
  2662. }, { "style": { "height": "36px" } }).form; //创建窗体
  2663. _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); } }
  2664. break;
  2665. case "evaluateGM"://学生评价
  2666. _formdiv = new U.UF.UI.form(
  2667. "学生评价",
  2668. $$("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 }), {
  2669. "id": "evaluateGM",
  2670. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2671. "onresize": function () { }
  2672. }, {
  2673. closecallback: function () { }
  2674. }, { "style": { "height": "36px" } }).form; //创建窗体
  2675. _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); } }
  2676. break;
  2677. // classGM
  2678. case "classGM"://班级管理
  2679. _formdiv = new U.UF.UI.form(
  2680. "班级管理",
  2681. $$("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 }), {
  2682. "id": "classGM",
  2683. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2684. "onresize": function () { }
  2685. }, {
  2686. closecallback: function () { }
  2687. }, { "style": { "height": "36px" } }).form; //创建窗体
  2688. _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); } }
  2689. break;
  2690. // dataGM
  2691. case "dataGM":
  2692. _formdiv = new U.UF.UI.form(
  2693. "我的资料",
  2694. $$("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 }), {
  2695. "id": "dataGM",
  2696. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2697. "onresize": function () { }
  2698. }, {
  2699. closecallback: function () { }
  2700. }, { "style": { "height": "36px" } }).form; //创建窗体
  2701. _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); } }
  2702. break;
  2703. // caseGM
  2704. case "caseGM"://课程进展
  2705. _formdiv = new U.UF.UI.form(
  2706. "课程进展",
  2707. $$("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 }), {
  2708. "id": "caseGM",
  2709. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2710. "onresize": function () { }
  2711. }, {
  2712. closecallback: function () { }
  2713. }, { "style": { "height": "36px" } }).form; //创建窗体
  2714. _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); } }
  2715. break;
  2716. // meterialGM
  2717. case "meterialGM"://素材库
  2718. _formdiv = new U.UF.UI.form(
  2719. "素材库",
  2720. $$("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 }), {
  2721. "id": "meterialGM",
  2722. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2723. "onresize": function () { }
  2724. }, {
  2725. closecallback: function () { }
  2726. }, { "style": { "height": "36px" } }).form; //创建窗体
  2727. _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); } }
  2728. break;
  2729. // evaluateSGM
  2730. case "evaluateSGM": //我的评价
  2731. _formdiv = new U.UF.UI.form(
  2732. "我的评价",
  2733. $$("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 }), {
  2734. "id": "evaluateSGM",
  2735. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2736. "onresize": function () { }
  2737. }, {
  2738. closecallback: function () { }
  2739. }, { "style": { "height": "36px" } }).form; //创建窗体
  2740. _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); } }
  2741. break;
  2742. case "jupyter": //jupyter
  2743. _formdiv = new U.UF.UI.form(
  2744. "jupyter",
  2745. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  2746. "id": "jupyter",
  2747. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2748. "onresize": function () { }
  2749. }, {
  2750. closecallback: function () { }
  2751. }, { "style": { "height": "36px" } }).form; //创建窗体
  2752. _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); } }
  2753. break;
  2754. case "number": //数字实验室
  2755. _formdiv = new U.UF.UI.form(
  2756. "数字实验室",
  2757. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  2758. "id": "number",
  2759. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2760. "onresize": function () { }
  2761. }, {
  2762. closecallback: function () { }
  2763. }, { "style": { "height": "36px" } }).form; //创建窗体
  2764. _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); } }
  2765. break;
  2766. case "studentCourse": //项目管理 学生
  2767. _formdiv = new U.UF.UI.form(
  2768. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2769. $$("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 }), {
  2770. "id": "studentCourse",
  2771. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2772. "onresize": function () { }
  2773. }, {
  2774. closecallback: function () { }
  2775. }, { "style": { "height": "36px" } }).form; //创建窗体
  2776. _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); } }
  2777. break;
  2778. case "studentCourseS": //项目管理 老师
  2779. _formdiv = new U.UF.UI.form(
  2780. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2781. $$("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 }), {
  2782. "id": "studentCourseS",
  2783. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2784. "onresize": function () { }
  2785. }, {
  2786. closecallback: function () { }
  2787. }, { "style": { "height": "36px" } }).form; //创建窗体
  2788. _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); } }
  2789. break;
  2790. case "studentIndex": //项目中心
  2791. _formdiv = new U.UF.UI.form(
  2792. "项目中心",
  2793. $$("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 }), {
  2794. "id": "studentIndex",
  2795. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2796. "onresize": function () { }
  2797. }, {
  2798. closecallback: function () { }
  2799. }, { "style": { "height": "36px" } }).form; //创建窗体
  2800. _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); } }
  2801. break;
  2802. case "CaseDesignS":
  2803. _formdiv = new U.UF.UI.form(
  2804. "项目进展",
  2805. $$("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 }), {
  2806. "id": "case",
  2807. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2808. "onresize": function () { }
  2809. }, {
  2810. closecallback: function () { }
  2811. }, { "style": { "height": "36px" } }).form; //创建窗体
  2812. _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); } }
  2813. break;
  2814. case "tcStudent": //腾讯学生管理
  2815. _formdiv = new U.UF.UI.form(
  2816. "学生管理",
  2817. $$("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 }), {
  2818. "id": "tcStudent",
  2819. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2820. "onresize": function () { }
  2821. }, {
  2822. closecallback: function () { }
  2823. }, { "style": { "height": "36px" } }).form; //创建窗体
  2824. _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); } }
  2825. break;
  2826. case "tcSchool": //腾讯学校管理
  2827. _formdiv = new U.UF.UI.form(
  2828. "学校管理",
  2829. $$("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 }), {
  2830. "id": "tcSchool",
  2831. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2832. "onresize": function () { }
  2833. }, {
  2834. closecallback: function () { }
  2835. }, { "style": { "height": "36px" } }).form; //创建窗体
  2836. _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); } }
  2837. break;
  2838. case "tcTeacher": //腾讯学校管理
  2839. _formdiv = new U.UF.UI.form(
  2840. "教师管理",
  2841. $$("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 }), {
  2842. "id": "tcTeacher",
  2843. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2844. "onresize": function () { }
  2845. }, {
  2846. closecallback: function () { }
  2847. }, { "style": { "height": "36px" } }).form; //创建窗体
  2848. _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); } }
  2849. break;
  2850. case "tcData": //腾讯我的资料
  2851. _formdiv = new U.UF.UI.form(
  2852. "我的资料",
  2853. $$("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 }), {
  2854. "id": "tcData",
  2855. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2856. "onresize": function () { }
  2857. }, {
  2858. closecallback: function () { }
  2859. }, { "style": { "height": "36px" } }).form; //创建窗体
  2860. _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); } }
  2861. break;
  2862. case "tcNotice": //腾讯消息通知
  2863. _formdiv = new U.UF.UI.form(
  2864. "消息通知",
  2865. $$("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 }), {
  2866. "id": "tcNotice",
  2867. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2868. "onresize": function () { }
  2869. }, {
  2870. closecallback: function () { }
  2871. }, { "style": { "height": "36px" } }).form; //创建窗体
  2872. _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); } }
  2873. break;
  2874. case "myReport": //好友打开
  2875. _formdiv = new U.UF.UI.form(
  2876. "我的评价",
  2877. $$("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 }), {
  2878. "id": "myReport",
  2879. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2880. "onresize": function () { }
  2881. }, {
  2882. closecallback: function () { }
  2883. }, { "style": { "height": "36px" } }).form; //创建窗体
  2884. _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); } }
  2885. break;
  2886. case "learnAna": //好友打开
  2887. _formdiv = new U.UF.UI.form(
  2888. "学习分析",
  2889. $$("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 }), {
  2890. "id": "learnAna",
  2891. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2892. "onresize": function () { }
  2893. }, {
  2894. closecallback: function () { }
  2895. }, { "style": { "height": "36px" } }).form; //创建窗体
  2896. _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); } }
  2897. break;
  2898. case "AIChat": //AI助手
  2899. _formdiv = new U.UF.UI.form(
  2900. "AI助手",
  2901. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  2902. "id": "AIChat",
  2903. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  2904. "onresize": function () { }
  2905. }, {
  2906. istop:true,
  2907. closecallback: function () { $("#aichat_icon").remove(); },
  2908. narrowcallback: function () {
  2909. if (!$("#aichat_icon")[0]) {
  2910. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  2911. }
  2912. },
  2913. }, { "style": { "height": "36px" } }).form; //创建窗体
  2914. _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); } }
  2915. break;
  2916. case "AIAnalyse": //AI助手
  2917. _formdiv = new U.UF.UI.form(
  2918. "AI分析",
  2919. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  2920. "id": "AIAnalyse",
  2921. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2922. "onresize": function () { }
  2923. }, {
  2924. closecallback: function () { }
  2925. }, { "style": { "height": "36px" } }).form; //创建窗体
  2926. _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); } }
  2927. break;
  2928. case "studioCourse": //AI助手
  2929. _formdiv = new U.UF.UI.form(
  2930. "工作管理",
  2931. $$("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 }), {
  2932. "id": "studioCourse",
  2933. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2934. "onresize": function () { }
  2935. }, {
  2936. closecallback: function () { }
  2937. }, { "style": { "height": "36px" } }).form; //创建窗体
  2938. _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); } }
  2939. break;
  2940. case "studioIndex": //AI助手
  2941. _formdiv = new U.UF.UI.form(
  2942. "工作中心",
  2943. $$("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 }), {
  2944. "id": "studioIndex",
  2945. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2946. "onresize": function () { }
  2947. }, {
  2948. closecallback: function () { }
  2949. }, { "style": { "height": "36px" } }).form; //创建窗体
  2950. _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); } }
  2951. break;
  2952. }
  2953. //U.MD.D.I.openClick(str);
  2954. //如果有任务栏信息
  2955. if (_taskbar) {
  2956. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2957. }
  2958. }
  2959. // U.MD.D.I.openClick = function(str){
  2960. // var click = '';
  2961. // switch(str){
  2962. // case 'friend':
  2963. // click = '我的好友';
  2964. // break;
  2965. // case 'domain':
  2966. // click = '域名管理';
  2967. // break;
  2968. // case 'disk':
  2969. // click = '我的云盘';
  2970. // break;
  2971. // case 'word':
  2972. // click = 'Word';
  2973. // break;
  2974. // case 'excel':
  2975. // click = 'Execl';
  2976. // break;
  2977. // case 'txt':
  2978. // click = '文本文件';
  2979. // break;
  2980. // case 'lookupFriend':
  2981. // click = '查找好友';
  2982. // break;
  2983. // case 'ftp':
  2984. // click = 'FTP';
  2985. // break;
  2986. // case 'group':
  2987. // click = '群组';
  2988. // break;
  2989. // case 'set':
  2990. // click = '我的设置';
  2991. // break;
  2992. // case 'systemSet':
  2993. // click = '系统设置';
  2994. // break;
  2995. // case 'boomYun':
  2996. // click = '互联办公';
  2997. // break;
  2998. // case 'xz':
  2999. // click = '云端下载';
  3000. // break;
  3001. // case 'client':
  3002. // click = '有思浏览器';
  3003. // break;
  3004. // case 'backEndProgramming':
  3005. // click = '在线后台编程';
  3006. // break;
  3007. // case 'frontEndProgramming':
  3008. // click = '在线前端编程';
  3009. // break;
  3010. // default: break;
  3011. // }
  3012. // if(U.MD.D.I.Ip && click){
  3013. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3014. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3015. // })
  3016. // }
  3017. // }
  3018. /**
  3019. *函数作用:ajax简易函数,使用post格式
  3020. *@param url {data} 后台地址
  3021. *@param data {data} 参数json
  3022. *@param fn {data} 回调函数
  3023. *
  3024. */
  3025. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3026. // var xhr = new XMLHttpRequest();
  3027. // xhr.open("GET",url,true);
  3028. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3029. // xhr.onreadystatechange = function(){
  3030. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3031. // fn.call(this,xhr.responseText);
  3032. // }
  3033. // };
  3034. // xhr.send();
  3035. // }
  3036. /*判断是否是内网IP*/
  3037. // U.MD.D.I.isInnerIPFn = function(str){
  3038. // var curPageUrl = str;
  3039. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3040. // curPageUrl =curPageUrl.replace(reg1,'');
  3041. // // console.log('curPageUrl-1 '+curPageUrl);
  3042. // var reg2 = /\:+/g;//替换冒号为一点
  3043. // curPageUrl =curPageUrl.replace(reg2,'.');
  3044. // // console.log('curPageUrl-2 '+curPageUrl);
  3045. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3046. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3047. // if(curPageUrl[2] != '16'){
  3048. // return ipAddress;
  3049. // }else{
  3050. // return false;
  3051. // }
  3052. // }
  3053. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3054. // //compatibility for firefox and chrome
  3055. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3056. // var pc = new myPeerConnection({
  3057. // iceServers: []
  3058. // }),
  3059. // noop = function() {},
  3060. // localIPs = {},
  3061. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3062. // key;
  3063. // function iterateIP(ip) {
  3064. // if (!localIPs[ip]) onNewIP(ip);
  3065. // localIPs[ip] = true;
  3066. // }
  3067. // //create a bogus data channel
  3068. // pc.createDataChannel("");
  3069. // // create offer and set local description
  3070. // pc.createOffer().then(function(sdp) {
  3071. // sdp.sdp.split('\n').forEach(function(line) {
  3072. // if (line.indexOf('candidate') < 0) return;
  3073. // line.match(ipRegex).forEach(iterateIP);
  3074. // });
  3075. // pc.setLocalDescription(sdp, noop, noop);
  3076. // }).catch(function(reason) {
  3077. // // An error occurred, so handle the failure to connect
  3078. // });
  3079. // //sten for candidate events
  3080. // pc.onicecandidate = function(ice) {
  3081. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3082. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3083. // };
  3084. // }
  3085. // U.MD.D.I.getUserIpBool = function(callback){
  3086. // U.MD.D.I.getUserIP(function(ip){
  3087. // alert("Got IP! :" + ip);
  3088. // });
  3089. //}
  3090. //#endregion
  3091. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3092. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3093. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3094. _userinfo = US.userInfo, //登录用户信息
  3095. _userid = US.userInfo.userid //登录用户id
  3096. let _iframe;
  3097. let _cid = cid,
  3098. _stage = stage,
  3099. _task = task,
  3100. _tool = tool;
  3101. var _jie = $$("div", {
  3102. "style": {
  3103. "position": "absolute",
  3104. "bottom": "50px",
  3105. "right": "50px",
  3106. "zIndex": "9999",
  3107. "backgroundColor": "#2268bc",
  3108. "color": "#fff",
  3109. "padding": "12px 20px",
  3110. "cursor": "pointer",
  3111. "borderRadius": "4px",
  3112. },
  3113. "innerHTML": "提交作业"
  3114. })
  3115. let aTool = ''
  3116. let _loading = document.createElement('div')
  3117. _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;"
  3118. // _loading.id = "";
  3119. let _lchild = document.createElement('div')
  3120. let _limg = document.createElement('img')
  3121. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  3122. _limg.style = "width: 26px;margin-right: 10px;"
  3123. _lchild.appendChild(_limg)
  3124. let _lspan = document.createElement('span')
  3125. _lspan.innerHTML = "上传中..."
  3126. _lchild.appendChild(_lspan)
  3127. _lchild.style = "color: #fff;padding: 15px;background: #00000070;font-size: 18px;display:flex;align-items:center;"
  3128. _loading.appendChild(_lchild)
  3129. var _box = $$('div', {
  3130. "style": {
  3131. "position": "relative",
  3132. "width": "100%",
  3133. "height": "100%",
  3134. },
  3135. })
  3136. _box.appendChild(_loading)
  3137. _box.id = str + '_loadLi'
  3138. switch (str) {
  3139. case "whiteboard":
  3140. aTool = 1;
  3141. _iframe = $$("iframe", {
  3142. "frameborder": "no",
  3143. "border": "0",
  3144. "scrolling ": "no",
  3145. "style": {
  3146. "cssText": "border:0;width:100%;height:100%"
  3147. },
  3148. "src": "https://iwb.cocorobo.cn/"
  3149. })
  3150. _box.appendChild(_iframe);
  3151. _box.appendChild(_jie);
  3152. _formdiv = new U.UF.UI.form(
  3153. "电子白板",
  3154. _box, {
  3155. "id": "whiteboard" + cid + stage + task + tool,
  3156. "style": {
  3157. "width": "90%",
  3158. "height": "90%",
  3159. "overflow": 'hidden'
  3160. },
  3161. "onresize": function () { }
  3162. }, {
  3163. closecallback: function () { }
  3164. }, {
  3165. "style": {
  3166. "height": "36px"
  3167. }
  3168. }).form; //创建窗体
  3169. _taskbar = {
  3170. "id": str + _formdiv.id,
  3171. "style": {
  3172. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3173. },
  3174. "name": "电子白板",
  3175. "forms": _formdiv,
  3176. "click": function () {
  3177. U.MD.D.I.openApplication(str, obj, info);
  3178. }
  3179. }
  3180. break;
  3181. case "mind":
  3182. aTool = 3;
  3183. _iframe = $$("iframe", {
  3184. "frameborder": "no",
  3185. "border": "0",
  3186. "scrolling ": "no",
  3187. "style": {
  3188. "cssText": "border:0;width:100%;height:100%"
  3189. },
  3190. "src": "/kityminder-editor/dist/index.html"
  3191. })
  3192. _box.appendChild(_iframe);
  3193. _box.appendChild(_jie);
  3194. _formdiv = new U.UF.UI.form(
  3195. "思维导图",
  3196. _box, { //"/jsmind/example/demo.html"
  3197. "id": "mind" + cid + stage + task + tool,
  3198. "style": {
  3199. "width": "90%",
  3200. "height": "90%",
  3201. "overflow": 'hidden'
  3202. },
  3203. "onresize": function () { }
  3204. }, {
  3205. closecallback: function () { }
  3206. }, {
  3207. "style": {
  3208. "height": "36px"
  3209. }
  3210. }).form; //创建窗体
  3211. _taskbar = {
  3212. "id": str + _formdiv.id,
  3213. "style": {
  3214. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3215. },
  3216. "name": "思维导图",
  3217. "forms": _formdiv,
  3218. "click": function () {
  3219. U.MD.D.I.openApplication(str, obj, info);
  3220. }
  3221. }
  3222. break;
  3223. case "MindMap":
  3224. aTool = 3;
  3225. _iframe = $$("iframe", {
  3226. "frameborder": "no",
  3227. "border": "0",
  3228. "scrolling ": "no",
  3229. "style": {
  3230. "cssText": "border:0;width:100%;height:100%"
  3231. },
  3232. "src": "//cloud.cocorobo.cn/mind/"
  3233. })
  3234. _box.appendChild(_iframe);
  3235. _box.appendChild(_jie);
  3236. _formdiv = new U.UF.UI.form(
  3237. "思维导图",
  3238. _box, { //"/jsmind/example/demo.html"
  3239. "id": "mind" + cid + stage + task + tool,
  3240. "style": {
  3241. "width": "90%",
  3242. "height": "90%",
  3243. "overflow": 'hidden'
  3244. },
  3245. "onresize": function () { }
  3246. }, {
  3247. closecallback: function () { }
  3248. }, {
  3249. "style": {
  3250. "height": "36px"
  3251. }
  3252. }).form; //创建窗体
  3253. _taskbar = {
  3254. "id": str + _formdiv.id,
  3255. "style": {
  3256. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3257. },
  3258. "name": "思维导图",
  3259. "forms": _formdiv,
  3260. "click": function () {
  3261. U.MD.D.I.openApplication(str, obj, info);
  3262. }
  3263. }
  3264. break;
  3265. case "doc":
  3266. aTool = 6;
  3267. _iframe = $$("iframe", {
  3268. "frameborder": "no",
  3269. "border": "0",
  3270. "scrolling ": "no",
  3271. "style": {
  3272. "cssText": "border:0;width:100%;height:100%"
  3273. },
  3274. "src": "/Office/Word/WordEditArea.htm"
  3275. })
  3276. _box.appendChild(_iframe);
  3277. _box.appendChild(_jie);
  3278. _formdiv = new U.UF.UI.form(
  3279. "协同文档",
  3280. _box, {
  3281. "id": "doc" + cid + stage + task + tool,
  3282. "style": {
  3283. "width": "90%",
  3284. "height": "90%",
  3285. "overflow": 'hidden'
  3286. },
  3287. "onresize": function () { }
  3288. }, {
  3289. closecallback: function () { }
  3290. }, {
  3291. "style": {
  3292. "height": "36px"
  3293. }
  3294. }).form; //创建窗体
  3295. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3296. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3297. })
  3298. _taskbar = {
  3299. "id": str + _formdiv.id,
  3300. "style": {
  3301. "backgroundImage": "url(/img/icon/doc.png)"
  3302. },
  3303. "name": "协同文档",
  3304. "forms": _formdiv,
  3305. "click": function () {
  3306. U.MD.D.I.openApplication(str, obj, info);
  3307. }
  3308. }
  3309. break;
  3310. case "mindNetwork": //好友打开
  3311. aTool = 7;
  3312. _iframe = $$("iframe", {
  3313. "webkitallowfullscreen": "",
  3314. "mozallowfullscreen": "",
  3315. "allowfullscreen": "",
  3316. "frameborder": "no",
  3317. "border": "0",
  3318. "scrolling ": "no",
  3319. "style": {
  3320. "cssText": "border:0; width:100%; height:100%;"
  3321. },
  3322. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3323. })
  3324. _box.appendChild(_iframe);
  3325. _box.appendChild(_jie);
  3326. _formdiv = new U.UF.UI.form(
  3327. "思维网格",
  3328. _box, {
  3329. "id": "mindNetwork" + cid + stage + task + tool,
  3330. "style": {
  3331. "width": "90%",
  3332. "height": "90%",
  3333. "overflow": 'hidden'
  3334. },
  3335. "onresize": function () { }
  3336. }, {
  3337. closecallback: function () { }
  3338. }, {
  3339. "style": {
  3340. "height": "36px"
  3341. }
  3342. }).form; //创建窗体
  3343. _taskbar = {
  3344. "id": str + _formdiv.id,
  3345. "style": {
  3346. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3347. },
  3348. "name": "思维网格",
  3349. "forms": _formdiv,
  3350. "click": function () {
  3351. U.MD.D.I.openApplication(str, obj, info);
  3352. }
  3353. }
  3354. break;
  3355. case "courseDesign":
  3356. _iframe = $$("iframe", {
  3357. "webkitallowfullscreen": "",
  3358. "mozallowfullscreen": "",
  3359. "allowfullscreen": "",
  3360. "frameborder": "no",
  3361. "border": "0",
  3362. "scrolling ": "no",
  3363. "style": {
  3364. "cssText": "border:0; width:100%; height:100%;"
  3365. },
  3366. "src": "/course-design-vue"
  3367. })
  3368. _box.appendChild(_iframe);
  3369. _box.appendChild(_jie);
  3370. _formdiv = new U.UF.UI.form(
  3371. "项目设计",
  3372. _box, {
  3373. "id": "courseDesign" + cid + stage + task + tool,
  3374. "style": {
  3375. "width": "90%",
  3376. "height": "90%",
  3377. "overflow": 'hidden'
  3378. },
  3379. "onresize": function () { }
  3380. }, {
  3381. closecallback: function () { }
  3382. }, {
  3383. "style": {
  3384. "height": "36px"
  3385. }
  3386. }).form; //创建窗体
  3387. _taskbar = {
  3388. "id": str + _formdiv.id,
  3389. "style": {
  3390. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3391. },
  3392. "name": "项目设计",
  3393. "forms": _formdiv,
  3394. "click": function () {
  3395. U.MD.D.I.openApplication(str, obj, info);
  3396. }
  3397. }
  3398. break;
  3399. }
  3400. const script1 = document.createElement("script");
  3401. script1.type = "text/javascript";
  3402. // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3403. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3404. const script2 = document.createElement("script");
  3405. script2.type = "text/javascript";
  3406. // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3407. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3408. const script3 = document.createElement("script");
  3409. script3.type = "text/javascript";
  3410. script3.charset = "UTF-8";
  3411. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3412. const script4 = document.createElement("script");
  3413. script4.type = "text/javascript";
  3414. // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  3415. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3416. if (_iframe) {
  3417. if (str == 'doc') {
  3418. U.UF.DL.iframeLoad(_iframe, function () {
  3419. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3420. _iframe.contentWindow.document.body.appendChild(script1);
  3421. _iframe.contentWindow.document.body.appendChild(script2);
  3422. // _iframe.contentWindow.document.body.appendChild(script3);
  3423. _iframe.contentWindow.document.body.appendChild(script4);
  3424. })
  3425. } else if (str == 'courseDesign') {
  3426. U.UF.DL.iframeLoad(_iframe, function () {
  3427. // _iframe.contentWindow.U.MD.O.W.load();
  3428. // _iframe.contentWindow.document.body.appendChild(script1);
  3429. _iframe.contentWindow.document.body.appendChild(script2);
  3430. _iframe.contentWindow.document.body.appendChild(script4);
  3431. })
  3432. } else if (str == 'mind') {
  3433. U.UF.DL.iframeLoad(_iframe, function () {
  3434. //
  3435. _iframe.contentWindow.document.body.appendChild(script1);
  3436. _iframe.contentWindow.document.body.appendChild(script2);
  3437. _iframe.contentWindow.document.body.appendChild(script4);
  3438. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3439. })
  3440. } else if (str == 'whiteboard') {
  3441. _iframe.onload = () => {
  3442. _iframe.contentWindow.document.body.appendChild(script1);
  3443. _iframe.contentWindow.document.body.appendChild(script2);
  3444. _iframe.contentWindow.document.body.appendChild(script4);
  3445. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3446. };
  3447. } else {
  3448. _iframe.onload = () => {
  3449. _iframe.contentWindow.document.body.appendChild(script1);
  3450. _iframe.contentWindow.document.body.appendChild(script2);
  3451. // _iframe.contentWindow.document.body.appendChild(script3);
  3452. _iframe.contentWindow.document.body.appendChild(script4);
  3453. };
  3454. }
  3455. _jie.onclick = async () => {
  3456. let text = ''
  3457. if (aTool == 1) {
  3458. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3459. } else if (aTool == 6) {
  3460. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3461. } else if (aTool == 3) {
  3462. text = await U.MD.D.I.getEditorContent(_iframe);
  3463. }
  3464. _loading.style.display = 'flex'
  3465. console.log(_loading);
  3466. var _ajs = _iframe.contentWindow.document.createElement("script");
  3467. _ajs.type = "text/javascript";
  3468. _ajs.innerHTML =
  3469. // 'console.log(' + _loading + ');\n' +
  3470. 'var _js = document.createElement("script");\n' +
  3471. '_js.type="text/javascript";\n' +
  3472. '_js.charset="UTF-8";\n' +
  3473. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3474. "_js.onload = function(){\n" +
  3475. ' var a = document.getElementsByTagName("img")\n' +
  3476. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3477. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3478. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3479. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3480. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3481. "beforeUpload_shishi(file," +
  3482. "'" +
  3483. _userid +
  3484. "'" +
  3485. ", " +
  3486. "'" +
  3487. _cid +
  3488. "'" +
  3489. ", " +
  3490. "'" +
  3491. _stage +
  3492. "'" +
  3493. ", " +
  3494. "'" +
  3495. _task +
  3496. "'" +
  3497. ", " +
  3498. "'" +
  3499. _tool +
  3500. "'" +
  3501. ", " +
  3502. "'" +
  3503. str + '_loadLi' +
  3504. "'" +
  3505. ", " +
  3506. "'" +
  3507. aTool +
  3508. "'" +
  3509. ", " +
  3510. "`" +
  3511. text +
  3512. "`" +
  3513. ")\n" +
  3514. " });\n" +
  3515. "}\n" +
  3516. "document.head.appendChild(_js);\n";
  3517. _iframe.contentWindow.document.head.appendChild(_ajs);
  3518. }
  3519. }
  3520. //U.MD.D.I.openClick(str);
  3521. //如果有任务栏信息
  3522. // if (_taskbar) {
  3523. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3524. // }
  3525. }
  3526. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  3527. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3528. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3529. _userid = student.userid, //登录用户id
  3530. _username = student.student //用户名字
  3531. let _iframe;
  3532. let _cid = cid,
  3533. _stage = stage,
  3534. _task = task,
  3535. _tool = tool;
  3536. var _jie = $$("div", {
  3537. "style": {
  3538. "position": "absolute",
  3539. "bottom": "50px",
  3540. "right": "50px",
  3541. "zIndex": "9999",
  3542. "backgroundColor": "#2268bc",
  3543. "color": "#fff",
  3544. "padding": "12px 20px",
  3545. "cursor": "pointer",
  3546. "borderRadius": "4px",
  3547. },
  3548. "innerHTML": "提交作业"
  3549. })
  3550. let aTool = ''
  3551. let _loading = document.createElement('div')
  3552. _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;"
  3553. // _loading.id = "";
  3554. let _lchild = document.createElement('div')
  3555. let _limg = document.createElement('img')
  3556. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  3557. _limg.style = "width: 26px;margin-right: 10px;"
  3558. _lchild.appendChild(_limg)
  3559. let _lspan = document.createElement('span')
  3560. _lspan.innerHTML = "上传中..."
  3561. _lchild.appendChild(_lspan)
  3562. _lchild.style = "color: #fff;padding: 15px;background: #00000070;font-size: 18px;display:flex;align-items:center;"
  3563. _loading.appendChild(_lchild)
  3564. var _box = $$('div', {
  3565. "style": {
  3566. "position": "relative",
  3567. "width": "100%",
  3568. "height": "100%",
  3569. },
  3570. })
  3571. _box.appendChild(_loading)
  3572. _box.id = str + '_loadLi' + _userid
  3573. switch (str) {
  3574. case "whiteboard":
  3575. aTool = 1;
  3576. _iframe = $$("iframe", {
  3577. "frameborder": "no",
  3578. "border": "0",
  3579. "scrolling ": "no",
  3580. "style": {
  3581. "cssText": "border:0;width:100%;height:100%"
  3582. },
  3583. "src": "https://iwb.cocorobo.cn/"
  3584. })
  3585. _box.appendChild(_iframe);
  3586. _box.appendChild(_jie);
  3587. _formdiv = new U.UF.UI.form(
  3588. "电子白板-" + _username,
  3589. _box, {
  3590. "id": "whiteboard" + cid + stage + task + tool + _userid,
  3591. "style": {
  3592. "width": "90%",
  3593. "height": "90%",
  3594. "overflow": 'hidden'
  3595. },
  3596. "onresize": function () { }
  3597. }, {
  3598. closecallback: function () { }
  3599. }, {
  3600. "style": {
  3601. "height": "36px"
  3602. }
  3603. }).form; //创建窗体
  3604. _taskbar = {
  3605. "id": str + _formdiv.id,
  3606. "style": {
  3607. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3608. },
  3609. "name": "电子白板",
  3610. "forms": _formdiv,
  3611. "click": function () {
  3612. U.MD.D.I.openApplication(str, obj, info);
  3613. }
  3614. }
  3615. break;
  3616. case "mind":
  3617. aTool = 3;
  3618. _iframe = $$("iframe", {
  3619. "frameborder": "no",
  3620. "border": "0",
  3621. "scrolling ": "no",
  3622. "style": {
  3623. "cssText": "border:0;width:100%;height:100%"
  3624. },
  3625. "src": "/kityminder-editor/dist/index.html"
  3626. })
  3627. _box.appendChild(_iframe);
  3628. _box.appendChild(_jie);
  3629. _formdiv = new U.UF.UI.form(
  3630. "思维导图-" + _username,
  3631. _box, { //"/jsmind/example/demo.html"
  3632. "id": "mind" + cid + stage + task + tool + _userid,
  3633. "style": {
  3634. "width": "90%",
  3635. "height": "90%",
  3636. "overflow": 'hidden'
  3637. },
  3638. "onresize": function () { }
  3639. }, {
  3640. closecallback: function () { }
  3641. }, {
  3642. "style": {
  3643. "height": "36px"
  3644. }
  3645. }).form; //创建窗体
  3646. _taskbar = {
  3647. "id": str + _formdiv.id,
  3648. "style": {
  3649. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3650. },
  3651. "name": "思维导图",
  3652. "forms": _formdiv,
  3653. "click": function () {
  3654. U.MD.D.I.openApplication(str, obj, info);
  3655. }
  3656. }
  3657. break;
  3658. case "MindMap":
  3659. aTool = 3;
  3660. _iframe = $$("iframe", {
  3661. "frameborder": "no",
  3662. "border": "0",
  3663. "scrolling ": "no",
  3664. "style": {
  3665. "cssText": "border:0;width:100%;height:100%"
  3666. },
  3667. "src": "//cloud.cocorobo.cn/mind/"
  3668. })
  3669. _box.appendChild(_iframe);
  3670. _box.appendChild(_jie);
  3671. _formdiv = new U.UF.UI.form(
  3672. "思维导图-" + _username,
  3673. _box, { //"/jsmind/example/demo.html"
  3674. "id": "mind" + cid + stage + task + tool + _userid,
  3675. "style": {
  3676. "width": "90%",
  3677. "height": "90%",
  3678. "overflow": 'hidden'
  3679. },
  3680. "onresize": function () { }
  3681. }, {
  3682. closecallback: function () { }
  3683. }, {
  3684. "style": {
  3685. "height": "36px"
  3686. }
  3687. }).form; //创建窗体
  3688. _taskbar = {
  3689. "id": str + _formdiv.id,
  3690. "style": {
  3691. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3692. },
  3693. "name": "思维导图",
  3694. "forms": _formdiv,
  3695. "click": function () {
  3696. U.MD.D.I.openApplication(str, obj, info);
  3697. }
  3698. }
  3699. break;
  3700. case "doc":
  3701. aTool = 6;
  3702. _iframe = $$("iframe", {
  3703. "frameborder": "no",
  3704. "border": "0",
  3705. "scrolling ": "no",
  3706. "style": {
  3707. "cssText": "border:0;width:100%;height:100%"
  3708. },
  3709. "src": "/Office/Word/WordEditArea.htm"
  3710. })
  3711. _box.appendChild(_iframe);
  3712. _box.appendChild(_jie);
  3713. _formdiv = new U.UF.UI.form(
  3714. "协同文档-" + _username,
  3715. _box, {
  3716. "id": "doc" + cid + stage + task + tool + _userid,
  3717. "style": {
  3718. "width": "90%",
  3719. "height": "90%",
  3720. "overflow": 'hidden'
  3721. },
  3722. "onresize": function () { }
  3723. }, {
  3724. closecallback: function () { }
  3725. }, {
  3726. "style": {
  3727. "height": "36px"
  3728. }
  3729. }).form; //创建窗体
  3730. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3731. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3732. })
  3733. _taskbar = {
  3734. "id": str + _formdiv.id,
  3735. "style": {
  3736. "backgroundImage": "url(/img/icon/doc.png)"
  3737. },
  3738. "name": "协同文档",
  3739. "forms": _formdiv,
  3740. "click": function () {
  3741. U.MD.D.I.openApplication(str, obj, info);
  3742. }
  3743. }
  3744. break;
  3745. case "mindNetwork": //好友打开
  3746. aTool = 7;
  3747. _iframe = $$("iframe", {
  3748. "webkitallowfullscreen": "",
  3749. "mozallowfullscreen": "",
  3750. "allowfullscreen": "",
  3751. "frameborder": "no",
  3752. "border": "0",
  3753. "scrolling ": "no",
  3754. "style": {
  3755. "cssText": "border:0; width:100%; height:100%;"
  3756. },
  3757. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3758. })
  3759. _box.appendChild(_iframe);
  3760. _box.appendChild(_jie);
  3761. _formdiv = new U.UF.UI.form(
  3762. "思维网格-" + _username,
  3763. _box, {
  3764. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  3765. "style": {
  3766. "width": "90%",
  3767. "height": "90%",
  3768. "overflow": 'hidden'
  3769. },
  3770. "onresize": function () { }
  3771. }, {
  3772. closecallback: function () { }
  3773. }, {
  3774. "style": {
  3775. "height": "36px"
  3776. }
  3777. }).form; //创建窗体
  3778. _taskbar = {
  3779. "id": str + _formdiv.id,
  3780. "style": {
  3781. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3782. },
  3783. "name": "思维网格",
  3784. "forms": _formdiv,
  3785. "click": function () {
  3786. U.MD.D.I.openApplication(str, obj, info);
  3787. }
  3788. }
  3789. break;
  3790. case "courseDesign":
  3791. _iframe = $$("iframe", {
  3792. "webkitallowfullscreen": "",
  3793. "mozallowfullscreen": "",
  3794. "allowfullscreen": "",
  3795. "frameborder": "no",
  3796. "border": "0",
  3797. "scrolling ": "no",
  3798. "style": {
  3799. "cssText": "border:0; width:100%; height:100%;"
  3800. },
  3801. "src": "/course-design-vue"
  3802. })
  3803. _box.appendChild(_iframe);
  3804. _box.appendChild(_jie);
  3805. _formdiv = new U.UF.UI.form(
  3806. "项目设计-" + _username,
  3807. _box, {
  3808. "id": "courseDesign" + cid + stage + task + tool + _userid,
  3809. "style": {
  3810. "width": "90%",
  3811. "height": "90%",
  3812. "overflow": 'hidden'
  3813. },
  3814. "onresize": function () { }
  3815. }, {
  3816. closecallback: function () { }
  3817. }, {
  3818. "style": {
  3819. "height": "36px"
  3820. }
  3821. }).form; //创建窗体
  3822. _taskbar = {
  3823. "id": str + _formdiv.id,
  3824. "style": {
  3825. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3826. },
  3827. "name": "项目设计",
  3828. "forms": _formdiv,
  3829. "click": function () {
  3830. U.MD.D.I.openApplication(str, obj, info);
  3831. }
  3832. }
  3833. break;
  3834. }
  3835. const script1 = document.createElement("script");
  3836. script1.type = "text/javascript";
  3837. // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3838. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3839. const script2 = document.createElement("script");
  3840. script2.type = "text/javascript";
  3841. // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3842. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3843. const script3 = document.createElement("script");
  3844. script3.type = "text/javascript";
  3845. script3.charset = "UTF-8";
  3846. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3847. const script4 = document.createElement("script");
  3848. script4.type = "text/javascript";
  3849. // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  3850. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3851. if (_iframe) {
  3852. if (str == 'doc') {
  3853. U.UF.DL.iframeLoad(_iframe, function () {
  3854. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3855. _iframe.contentWindow.document.body.appendChild(script1);
  3856. _iframe.contentWindow.document.body.appendChild(script2);
  3857. // _iframe.contentWindow.document.body.appendChild(script3);
  3858. _iframe.contentWindow.document.body.appendChild(script4);
  3859. })
  3860. } else if (str == 'courseDesign') {
  3861. U.UF.DL.iframeLoad(_iframe, function () {
  3862. // _iframe.contentWindow.U.MD.O.W.load();
  3863. // _iframe.contentWindow.document.body.appendChild(script1);
  3864. _iframe.contentWindow.document.body.appendChild(script2);
  3865. _iframe.contentWindow.document.body.appendChild(script4);
  3866. })
  3867. } else if (str == 'mind') {
  3868. U.UF.DL.iframeLoad(_iframe, function () {
  3869. //
  3870. _iframe.contentWindow.document.body.appendChild(script1);
  3871. _iframe.contentWindow.document.body.appendChild(script2);
  3872. _iframe.contentWindow.document.body.appendChild(script4);
  3873. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3874. })
  3875. } else if (str == 'whiteboard') {
  3876. _iframe.onload = () => {
  3877. _iframe.contentWindow.document.body.appendChild(script1);
  3878. _iframe.contentWindow.document.body.appendChild(script2);
  3879. _iframe.contentWindow.document.body.appendChild(script4);
  3880. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3881. };
  3882. } else {
  3883. _iframe.onload = () => {
  3884. _iframe.contentWindow.document.body.appendChild(script1);
  3885. _iframe.contentWindow.document.body.appendChild(script2);
  3886. // _iframe.contentWindow.document.body.appendChild(script3);
  3887. _iframe.contentWindow.document.body.appendChild(script4);
  3888. };
  3889. }
  3890. _jie.onclick = async () => {
  3891. let text = ''
  3892. if (aTool == 1) {
  3893. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3894. } else if (aTool == 6) {
  3895. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3896. } else if (aTool == 3) {
  3897. text = await U.MD.D.I.getEditorContent(_iframe);
  3898. }
  3899. _loading.style.display = 'flex'
  3900. console.log(_loading);
  3901. var _ajs = _iframe.contentWindow.document.createElement("script");
  3902. _ajs.type = "text/javascript";
  3903. _ajs.innerHTML =
  3904. // 'console.log(' + _loading + ');\n' +
  3905. 'var _js = document.createElement("script");\n' +
  3906. '_js.type="text/javascript";\n' +
  3907. '_js.charset="UTF-8";\n' +
  3908. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3909. "_js.onload = function(){\n" +
  3910. ' var a = document.getElementsByTagName("img")\n' +
  3911. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3912. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3913. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3914. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3915. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3916. "beforeUpload_shishi(file," +
  3917. "'" +
  3918. _userid +
  3919. "'" +
  3920. ", " +
  3921. "'" +
  3922. _cid +
  3923. "'" +
  3924. ", " +
  3925. "'" +
  3926. _stage +
  3927. "'" +
  3928. ", " +
  3929. "'" +
  3930. _task +
  3931. "'" +
  3932. ", " +
  3933. "'" +
  3934. _tool +
  3935. "'" +
  3936. ", " +
  3937. "'" +
  3938. str + '_loadLi' + _userid +
  3939. "'" +
  3940. ", " +
  3941. "'" +
  3942. aTool +
  3943. "'" +
  3944. ", " +
  3945. "`" +
  3946. text +
  3947. "`" +
  3948. ")\n" +
  3949. " });\n" +
  3950. "}\n" +
  3951. "document.head.appendChild(_js);\n";
  3952. _iframe.contentWindow.document.head.appendChild(_ajs);
  3953. }
  3954. }
  3955. }
  3956. U.MD.D.I.getEditorContent = function (iframe) {
  3957. return new Promise((resolve, reject) => {
  3958. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  3959. console.log(content);
  3960. resolve(content)
  3961. });
  3962. });
  3963. }
  3964. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  3965. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  3966. // if (res.value[0].length > 0) {
  3967. // // resolve(res.value[0][0].text);
  3968. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  3969. // $(fileInput).val('');
  3970. // });
  3971. // }
  3972. // }, [], { "type": "GET", "withCredentials": true });
  3973. var xmlhttp;
  3974. var Mac, Sn, DeviceId
  3975. if (window.XMLHttpRequest) {
  3976. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  3977. xmlhttp = new XMLHttpRequest();
  3978. }
  3979. else {
  3980. // IE6, IE5 浏览器执行代码
  3981. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  3982. }
  3983. xmlhttp.onreadystatechange = function () {
  3984. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  3985. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  3986. // resolve(res.value[0][0].text);
  3987. if (type == '2') {
  3988. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  3989. $(fileInput).val('');
  3990. });
  3991. } else if (type == '3') {
  3992. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  3993. }
  3994. } else {
  3995. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  3996. }
  3997. }
  3998. }
  3999. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  4000. xmlhttp.send();
  4001. }
  4002. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  4003. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4004. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4005. _userinfo = US.userInfo, //登录用户信息
  4006. _userid = US.userInfo.userid //登录用户id
  4007. let _iframe;
  4008. let _cid = cid,
  4009. _stage = stage,
  4010. _task = task,
  4011. _tool = tool;
  4012. var _jie = $$("div", {
  4013. "style": {
  4014. "position": "absolute",
  4015. "bottom": "50px",
  4016. "right": "50px",
  4017. "zIndex": "9999",
  4018. "backgroundColor": "#2268bc",
  4019. "color": "#fff",
  4020. "padding": "12px 20px",
  4021. "cursor": "pointer",
  4022. "borderRadius": "4px",
  4023. },
  4024. "innerHTML": "确认并提交"
  4025. })
  4026. let aTool = ''
  4027. let _loading = document.createElement('div')
  4028. _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;"
  4029. // _loading.id = "";
  4030. let _lchild = document.createElement('div')
  4031. let _limg = document.createElement('img')
  4032. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  4033. _limg.style = "width: 26px;margin-right: 10px;"
  4034. _lchild.appendChild(_limg)
  4035. let _lspan = document.createElement('span')
  4036. _lspan.innerHTML = "上传中..."
  4037. _lchild.appendChild(_lspan)
  4038. _lchild.style = "color: #fff;padding: 15px;background: #00000070;font-size: 18px;display:flex;align-items:center;"
  4039. _loading.appendChild(_lchild)
  4040. var _box = $$('div', {
  4041. "style": {
  4042. "position": "relative",
  4043. "width": "100%",
  4044. "height": "100%",
  4045. },
  4046. })
  4047. _box.appendChild(_loading)
  4048. _box.id = str + '_loadLi'
  4049. switch (str) {
  4050. case "whiteboard":
  4051. aTool = 1;
  4052. _iframe = $$("iframe", {
  4053. "frameborder": "no",
  4054. "border": "0",
  4055. "scrolling ": "no",
  4056. "style": {
  4057. "cssText": "border:0;width:100%;height:100%"
  4058. },
  4059. "src": "https://iwb.cocorobo.cn/"
  4060. })
  4061. _box.appendChild(_iframe);
  4062. _box.appendChild(_jie);
  4063. _formdiv = new U.UF.UI.form(
  4064. "电子白板",
  4065. _box, {
  4066. "id": "whiteboards" + cid + stage + task + tool,
  4067. "style": {
  4068. "width": "90%",
  4069. "height": "90%",
  4070. "overflow": 'hidden'
  4071. },
  4072. "onresize": function () { }
  4073. }, {
  4074. closecallback: function () { }
  4075. }, {
  4076. "style": {
  4077. "height": "36px"
  4078. }
  4079. }).form; //创建窗体
  4080. _taskbar = {
  4081. "id": str + _formdiv.id,
  4082. "style": {
  4083. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4084. },
  4085. "name": "电子白板",
  4086. "forms": _formdiv,
  4087. "click": function () {
  4088. U.MD.D.I.openApplication(str, obj, info);
  4089. }
  4090. }
  4091. break;
  4092. case "mind":
  4093. aTool = 3;
  4094. _iframe = $$("iframe", {
  4095. "frameborder": "no",
  4096. "border": "0",
  4097. "scrolling ": "no",
  4098. "style": {
  4099. "cssText": "border:0;width:100%;height:100%"
  4100. },
  4101. "src": "/kityminder-editor/dist/index.html"
  4102. });
  4103. _box.appendChild(_iframe);
  4104. _box.appendChild(_jie);
  4105. _formdiv = new U.UF.UI.form(
  4106. "思维导图",
  4107. _box, { //"/jsmind/example/demo.html"
  4108. "id": "minds" + cid + stage + task + tool,
  4109. "style": {
  4110. "width": "90%",
  4111. "height": "90%",
  4112. "overflow": 'hidden'
  4113. },
  4114. "onresize": function () { }
  4115. }, {
  4116. closecallback: function () { }
  4117. }, {
  4118. "style": {
  4119. "height": "36px"
  4120. }
  4121. }).form; //创建窗体
  4122. _taskbar = {
  4123. "id": str + _formdiv.id,
  4124. "style": {
  4125. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4126. },
  4127. "name": "思维导图",
  4128. "forms": _formdiv,
  4129. "click": function () {
  4130. U.MD.D.I.openApplication(str, obj, info);
  4131. }
  4132. }
  4133. break;
  4134. case "doc":
  4135. aTool = 6;
  4136. _iframe = $$("iframe", {
  4137. "frameborder": "no",
  4138. "border": "0",
  4139. "scrolling ": "no",
  4140. "style": {
  4141. "cssText": "border:0;width:100%;height:100%"
  4142. },
  4143. "src": "/Office/Word/WordEditArea.htm"
  4144. })
  4145. _box.appendChild(_iframe);
  4146. _box.appendChild(_jie);
  4147. _formdiv = new U.UF.UI.form(
  4148. "协同文档",
  4149. _box, {
  4150. "id": "docs" + cid + stage + task + tool,
  4151. "style": {
  4152. "width": "90%",
  4153. "height": "90%",
  4154. "overflow": 'hidden'
  4155. },
  4156. "onresize": function () { }
  4157. }, {
  4158. closecallback: function () { }
  4159. }, {
  4160. "style": {
  4161. "height": "36px"
  4162. }
  4163. }).form; //创建窗体
  4164. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4165. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4166. })
  4167. _taskbar = {
  4168. "id": str + _formdiv.id,
  4169. "style": {
  4170. "backgroundImage": "url(/img/icon/doc.png)"
  4171. },
  4172. "name": "协同文档",
  4173. "forms": _formdiv,
  4174. "click": function () {
  4175. U.MD.D.I.openApplication(str, obj, info);
  4176. }
  4177. }
  4178. break;
  4179. }
  4180. const script1 = document.createElement("script");
  4181. script1.type = "text/javascript";
  4182. // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4183. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4184. const script2 = document.createElement("script");
  4185. script2.type = "text/javascript";
  4186. // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4187. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4188. const script3 = document.createElement("script");
  4189. script3.type = "text/javascript";
  4190. script3.charset = "UTF-8";
  4191. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4192. const script4 = document.createElement("script");
  4193. script4.type = "text/javascript";
  4194. // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu4.js";
  4195. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  4196. if (_iframe) {
  4197. if (str == 'doc') {
  4198. U.UF.DL.iframeLoad(_iframe, function () {
  4199. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4200. _iframe.contentWindow.document.body.appendChild(script1);
  4201. _iframe.contentWindow.document.body.appendChild(script2);
  4202. // _iframe.contentWindow.document.body.appendChild(script3);
  4203. _iframe.contentWindow.document.body.appendChild(script4);
  4204. })
  4205. } else if (str == 'mind') {
  4206. U.UF.DL.iframeLoad(_iframe, function () {
  4207. _iframe.contentWindow.document.body.appendChild(script1);
  4208. _iframe.contentWindow.document.body.appendChild(script2);
  4209. _iframe.contentWindow.document.body.appendChild(script4);
  4210. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  4211. })
  4212. } else {
  4213. _iframe.onload = () => {
  4214. _iframe.contentWindow.document.body.appendChild(script1);
  4215. _iframe.contentWindow.document.body.appendChild(script2);
  4216. // _iframe.contentWindow.document.body.appendChild(script3);
  4217. _iframe.contentWindow.document.body.appendChild(script4);
  4218. };
  4219. }
  4220. _jie.onclick = async () => {
  4221. let text = ''
  4222. if (aTool == 6) {
  4223. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4224. } else if (aTool == 3) {
  4225. text = await U.MD.D.I.getEditorContent(_iframe);
  4226. }
  4227. _loading.style.display = 'flex'
  4228. console.log(_loading);
  4229. var _ajs = _iframe.contentWindow.document.createElement("script");
  4230. _ajs.type = "text/javascript";
  4231. _ajs.innerHTML =
  4232. // 'console.log(' + _loading + ');\n' +
  4233. 'var _js = document.createElement("script");\n' +
  4234. '_js.type="text/javascript";\n' +
  4235. '_js.charset="UTF-8";\n' +
  4236. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4237. "_js.onload = function(){\n" +
  4238. ' var a = document.getElementsByTagName("img")\n' +
  4239. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4240. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4241. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4242. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4243. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4244. "beforeUpload_shishi(file," +
  4245. "'" +
  4246. _userid +
  4247. "'" +
  4248. ", " +
  4249. "'" +
  4250. _cid +
  4251. "'" +
  4252. ", " +
  4253. "'" +
  4254. _stage +
  4255. "'" +
  4256. ", " +
  4257. "'" +
  4258. _task +
  4259. "'" +
  4260. ", " +
  4261. "'" +
  4262. _tool +
  4263. "'" +
  4264. ", " +
  4265. "'" +
  4266. str + '_loadLi' +
  4267. "'" +
  4268. ", " +
  4269. "'" +
  4270. aTool +
  4271. "'" +
  4272. ", " +
  4273. "`" +
  4274. text +
  4275. "`" +
  4276. ")\n" +
  4277. " });\n" +
  4278. "}\n" +
  4279. "document.head.appendChild(_js);\n";
  4280. _iframe.contentWindow.document.head.appendChild(_ajs);
  4281. }
  4282. }
  4283. //U.MD.D.I.openClick(str);
  4284. //如果有任务栏信息
  4285. // if (_taskbar) {
  4286. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4287. // }
  4288. }
  4289. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  4290. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4291. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4292. _userinfo = US.userInfo, //登录用户信息
  4293. _userid = US.userInfo.userid //登录用户id
  4294. let _iframe;
  4295. let _cid = cid,
  4296. _stage = stage,
  4297. _task = task,
  4298. _tool = tool;
  4299. var _jie = $$("div", {
  4300. "style": {
  4301. "position": "absolute",
  4302. "bottom": "50px",
  4303. "right": "50px",
  4304. "zIndex": "9999",
  4305. "backgroundColor": "#2268bc",
  4306. "color": "#fff",
  4307. "padding": "12px 20px",
  4308. "cursor": "pointer",
  4309. "borderRadius": "4px",
  4310. },
  4311. "innerHTML": "确认并提交"
  4312. })
  4313. let aTool = ''
  4314. let _loading = document.createElement('div')
  4315. _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;"
  4316. // _loading.id = "";
  4317. let _lchild = document.createElement('div')
  4318. let _limg = document.createElement('img')
  4319. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  4320. _limg.style = "width: 26px;margin-right: 10px;"
  4321. _lchild.appendChild(_limg)
  4322. let _lspan = document.createElement('span')
  4323. _lspan.innerHTML = "上传中..."
  4324. _lchild.appendChild(_lspan)
  4325. _lchild.style = "color: #fff;padding: 15px;background: #00000070;font-size: 18px;display:flex;align-items:center;"
  4326. _loading.appendChild(_lchild)
  4327. var _box = $$('div', {
  4328. "style": {
  4329. "position": "relative",
  4330. "width": "100%",
  4331. "height": "100%",
  4332. },
  4333. })
  4334. _box.appendChild(_loading)
  4335. _box.id = str + '_loadLi'
  4336. switch (str) {
  4337. case "whiteboard":
  4338. aTool = 1;
  4339. _iframe = $$("iframe", {
  4340. "frameborder": "no",
  4341. "border": "0",
  4342. "scrolling ": "no",
  4343. "style": {
  4344. "cssText": "border:0;width:100%;height:100%"
  4345. },
  4346. "src": "https://iwb.cocorobo.cn/"
  4347. })
  4348. _box.appendChild(_iframe);
  4349. _box.appendChild(_jie);
  4350. _formdiv = new U.UF.UI.form(
  4351. "电子白板",
  4352. _box, {
  4353. "id": "whiteboards" + cid + stage + task + tool,
  4354. "style": {
  4355. "width": "90%",
  4356. "height": "90%",
  4357. "overflow": 'hidden'
  4358. },
  4359. "onresize": function () { }
  4360. }, {
  4361. closecallback: function () { }
  4362. }, {
  4363. "style": {
  4364. "height": "36px"
  4365. }
  4366. }).form; //创建窗体
  4367. _taskbar = {
  4368. "id": str + _formdiv.id,
  4369. "style": {
  4370. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4371. },
  4372. "name": "电子白板",
  4373. "forms": _formdiv,
  4374. "click": function () {
  4375. U.MD.D.I.openApplication(str, obj, info);
  4376. }
  4377. }
  4378. break;
  4379. case "mind":
  4380. aTool = 3;
  4381. _iframe = $$("iframe", {
  4382. "frameborder": "no",
  4383. "border": "0",
  4384. "scrolling ": "no",
  4385. "style": {
  4386. "cssText": "border:0;width:100%;height:100%"
  4387. },
  4388. "src": "/kityminder-editor/dist/index.html"
  4389. });
  4390. _box.appendChild(_iframe);
  4391. _box.appendChild(_jie);
  4392. _formdiv = new U.UF.UI.form(
  4393. "思维导图",
  4394. _box, { //"/jsmind/example/demo.html"
  4395. "id": "minds" + cid + stage + task + tool,
  4396. "style": {
  4397. "width": "90%",
  4398. "height": "90%",
  4399. "overflow": 'hidden'
  4400. },
  4401. "onresize": function () { }
  4402. }, {
  4403. closecallback: function () { }
  4404. }, {
  4405. "style": {
  4406. "height": "36px"
  4407. }
  4408. }).form; //创建窗体
  4409. _taskbar = {
  4410. "id": str + _formdiv.id,
  4411. "style": {
  4412. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4413. },
  4414. "name": "思维导图",
  4415. "forms": _formdiv,
  4416. "click": function () {
  4417. U.MD.D.I.openApplication(str, obj, info);
  4418. }
  4419. }
  4420. break;
  4421. case "doc":
  4422. aTool = 6;
  4423. _iframe = $$("iframe", {
  4424. "frameborder": "no",
  4425. "border": "0",
  4426. "scrolling ": "no",
  4427. "style": {
  4428. "cssText": "border:0;width:100%;height:100%"
  4429. },
  4430. "src": "/Office/Word/WordEditArea.htm"
  4431. })
  4432. _box.appendChild(_iframe);
  4433. _box.appendChild(_jie);
  4434. _formdiv = new U.UF.UI.form(
  4435. "协同文档",
  4436. _box, {
  4437. "id": "docs" + cid + stage + task + tool,
  4438. "style": {
  4439. "width": "90%",
  4440. "height": "90%",
  4441. "overflow": 'hidden'
  4442. },
  4443. "onresize": function () { }
  4444. }, {
  4445. closecallback: function () { }
  4446. }, {
  4447. "style": {
  4448. "height": "36px"
  4449. }
  4450. }).form; //创建窗体
  4451. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4452. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4453. })
  4454. _taskbar = {
  4455. "id": str + _formdiv.id,
  4456. "style": {
  4457. "backgroundImage": "url(/img/icon/doc.png)"
  4458. },
  4459. "name": "协同文档",
  4460. "forms": _formdiv,
  4461. "click": function () {
  4462. U.MD.D.I.openApplication(str, obj, info);
  4463. }
  4464. }
  4465. break;
  4466. }
  4467. const script1 = document.createElement("script");
  4468. script1.type = "text/javascript";
  4469. // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4470. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4471. const script2 = document.createElement("script");
  4472. script2.type = "text/javascript";
  4473. // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4474. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4475. const script3 = document.createElement("script");
  4476. script3.type = "text/javascript";
  4477. script3.charset = "UTF-8";
  4478. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4479. const script4 = document.createElement("script");
  4480. script4.type = "text/javascript";
  4481. // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu4.js";
  4482. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  4483. if (_iframe) {
  4484. if (str == 'doc') {
  4485. U.UF.DL.iframeLoad(_iframe, function () {
  4486. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4487. _iframe.contentWindow.document.body.appendChild(script1);
  4488. _iframe.contentWindow.document.body.appendChild(script2);
  4489. // _iframe.contentWindow.document.body.appendChild(script3);
  4490. _iframe.contentWindow.document.body.appendChild(script4);
  4491. })
  4492. } else if (str == 'mind') {
  4493. U.UF.DL.iframeLoad(_iframe, function () {
  4494. _iframe.contentWindow.document.body.appendChild(script1);
  4495. _iframe.contentWindow.document.body.appendChild(script2);
  4496. _iframe.contentWindow.document.body.appendChild(script4);
  4497. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  4498. })
  4499. } else {
  4500. _iframe.onload = () => {
  4501. _iframe.contentWindow.document.body.appendChild(script1);
  4502. _iframe.contentWindow.document.body.appendChild(script2);
  4503. // _iframe.contentWindow.document.body.appendChild(script3);
  4504. _iframe.contentWindow.document.body.appendChild(script4);
  4505. };
  4506. }
  4507. _jie.onclick = async () => {
  4508. let text = ''
  4509. if (aTool == 6) {
  4510. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4511. } else if (aTool == 3) {
  4512. text = await U.MD.D.I.getEditorContent(_iframe);
  4513. }
  4514. _loading.style.display = 'flex'
  4515. console.log(_loading);
  4516. var _ajs = _iframe.contentWindow.document.createElement("script");
  4517. _ajs.type = "text/javascript";
  4518. _ajs.innerHTML =
  4519. // 'console.log(' + _loading + ');\n' +
  4520. 'var _js = document.createElement("script");\n' +
  4521. '_js.type="text/javascript";\n' +
  4522. '_js.charset="UTF-8";\n' +
  4523. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4524. "_js.onload = function(){\n" +
  4525. ' var a = document.getElementsByTagName("img")\n' +
  4526. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4527. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4528. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4529. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4530. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4531. "beforeUpload_shishi(file," +
  4532. "'" +
  4533. _userid +
  4534. "'" +
  4535. ", " +
  4536. "'" +
  4537. _cid +
  4538. "'" +
  4539. ", " +
  4540. "'" +
  4541. _stage +
  4542. "'" +
  4543. ", " +
  4544. "'" +
  4545. _task +
  4546. "'" +
  4547. ", " +
  4548. "'" +
  4549. _tool +
  4550. "'" +
  4551. ", " +
  4552. "'" +
  4553. str + '_loadLi' +
  4554. "'" +
  4555. ", " +
  4556. "'" +
  4557. aTool +
  4558. "'" +
  4559. ", " +
  4560. "`" +
  4561. text +
  4562. "`" +
  4563. ")\n" +
  4564. " });\n" +
  4565. "}\n" +
  4566. "document.head.appendChild(_js);\n";
  4567. _iframe.contentWindow.document.head.appendChild(_ajs);
  4568. }
  4569. }
  4570. //U.MD.D.I.openClick(str);
  4571. //如果有任务栏信息
  4572. // if (_taskbar) {
  4573. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4574. // }
  4575. }
  4576. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  4577. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4578. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4579. _userinfo = US.userInfo, //登录用户信息
  4580. _userid = US.userInfo.userid //登录用户id
  4581. let _iframe;
  4582. let _cid = cid,
  4583. _stage = stage,
  4584. _task = task,
  4585. _tool = tool;
  4586. var _jie = $$("div", {
  4587. "style": {
  4588. "position": "absolute",
  4589. "bottom": "50px",
  4590. "right": "50px",
  4591. "zIndex": "9999",
  4592. "backgroundColor": "#2268bc",
  4593. "color": "#fff",
  4594. "padding": "12px 20px",
  4595. "cursor": "pointer",
  4596. "borderRadius": "4px",
  4597. },
  4598. "innerHTML": "上传模板"
  4599. })
  4600. let aTool = ''
  4601. let _loading = document.createElement('div')
  4602. _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;"
  4603. // _loading.id = "";
  4604. let _lchild = document.createElement('div')
  4605. let _limg = document.createElement('img')
  4606. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  4607. _limg.style = "width: 26px;margin-right: 10px;"
  4608. _lchild.appendChild(_limg)
  4609. let _lspan = document.createElement('span')
  4610. _lspan.innerHTML = "上传中..."
  4611. _lchild.appendChild(_lspan)
  4612. _lchild.style = "color: #fff;padding: 15px;background: #00000070;font-size: 18px;display:flex;align-items:center;"
  4613. _loading.appendChild(_lchild)
  4614. var _box = $$('div', {
  4615. "style": {
  4616. "position": "relative",
  4617. "width": "100%",
  4618. "height": "100%",
  4619. },
  4620. })
  4621. _box.appendChild(_loading)
  4622. _box.id = str + '_loadLi'
  4623. switch (str) {
  4624. case "whiteboard":
  4625. aTool = 1;
  4626. _iframe = $$("iframe", {
  4627. "frameborder": "no",
  4628. "border": "0",
  4629. "scrolling ": "no",
  4630. "style": {
  4631. "cssText": "border:0;width:100%;height:100%"
  4632. },
  4633. "src": "https://iwb.cocorobo.cn/"
  4634. })
  4635. _box.appendChild(_iframe);
  4636. _box.appendChild(_jie);
  4637. _formdiv = new U.UF.UI.form(
  4638. "电子白板",
  4639. _box, {
  4640. "id": "whiteboards" + cid + stage + task + tool,
  4641. "style": {
  4642. "width": "90%",
  4643. "height": "90%",
  4644. "overflow": 'hidden'
  4645. },
  4646. "onresize": function () { }
  4647. }, {
  4648. closecallback: function () { }
  4649. }, {
  4650. "style": {
  4651. "height": "36px"
  4652. }
  4653. }).form; //创建窗体
  4654. _taskbar = {
  4655. "id": str + _formdiv.id,
  4656. "style": {
  4657. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4658. },
  4659. "name": "电子白板",
  4660. "forms": _formdiv,
  4661. "click": function () {
  4662. U.MD.D.I.openApplication(str, obj, info);
  4663. }
  4664. }
  4665. break;
  4666. case "mind":
  4667. aTool = 3;
  4668. _iframe = $$("iframe", {
  4669. "frameborder": "no",
  4670. "border": "0",
  4671. "scrolling ": "no",
  4672. "style": {
  4673. "cssText": "border:0;width:100%;height:100%"
  4674. },
  4675. "src": "/kityminder-editor/dist/index.html"
  4676. });
  4677. _box.appendChild(_iframe);
  4678. _box.appendChild(_jie);
  4679. _formdiv = new U.UF.UI.form(
  4680. "思维导图",
  4681. _box, { //"/jsmind/example/demo.html"
  4682. "id": "minds" + cid + stage + task + tool,
  4683. "style": {
  4684. "width": "90%",
  4685. "height": "90%",
  4686. "overflow": 'hidden'
  4687. },
  4688. "onresize": function () { }
  4689. }, {
  4690. closecallback: function () { }
  4691. }, {
  4692. "style": {
  4693. "height": "36px"
  4694. }
  4695. }).form; //创建窗体
  4696. _taskbar = {
  4697. "id": str + _formdiv.id,
  4698. "style": {
  4699. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4700. },
  4701. "name": "思维导图",
  4702. "forms": _formdiv,
  4703. "click": function () {
  4704. U.MD.D.I.openApplication(str, obj, info);
  4705. }
  4706. }
  4707. break;
  4708. case "doc":
  4709. aTool = 6;
  4710. _iframe = $$("iframe", {
  4711. "frameborder": "no",
  4712. "border": "0",
  4713. "scrolling ": "no",
  4714. "style": {
  4715. "cssText": "border:0;width:100%;height:100%"
  4716. },
  4717. "src": "/Office/Word/WordEditArea.htm"
  4718. })
  4719. _box.appendChild(_iframe);
  4720. _box.appendChild(_jie);
  4721. _formdiv = new U.UF.UI.form(
  4722. "协同文档",
  4723. _box, {
  4724. "id": "docs" + cid + stage + task + tool,
  4725. "style": {
  4726. "width": "90%",
  4727. "height": "90%",
  4728. "overflow": 'hidden'
  4729. },
  4730. "onresize": function () { }
  4731. }, {
  4732. closecallback: function () { }
  4733. }, {
  4734. "style": {
  4735. "height": "36px"
  4736. }
  4737. }).form; //创建窗体
  4738. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4739. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4740. })
  4741. _taskbar = {
  4742. "id": str + _formdiv.id,
  4743. "style": {
  4744. "backgroundImage": "url(/img/icon/doc.png)"
  4745. },
  4746. "name": "协同文档",
  4747. "forms": _formdiv,
  4748. "click": function () {
  4749. U.MD.D.I.openApplication(str, obj, info);
  4750. }
  4751. }
  4752. break;
  4753. }
  4754. const script1 = document.createElement("script");
  4755. script1.type = "text/javascript";
  4756. // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4757. // script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4758. // const script2 = document.createElement("script");
  4759. // script2.type = "text/javascript";
  4760. // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4761. // script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4762. // const script3 = document.createElement("script");
  4763. // script3.type = "text/javascript";
  4764. // script3.charset = "UTF-8";
  4765. // script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4766. // const script4 = document.createElement("script");
  4767. // script4.type = "text/javascript";
  4768. // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu4.js";
  4769. // script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  4770. if (_iframe) {
  4771. if (str == 'doc') {
  4772. U.UF.DL.iframeLoad(_iframe, function () {
  4773. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4774. })
  4775. } else if (str == 'mind') {
  4776. U.UF.DL.iframeLoad(_iframe, function () {
  4777. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  4778. })
  4779. } else if (str == 'whiteboard') {
  4780. U.UF.DL.iframeLoad(_iframe, function () {
  4781. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  4782. })
  4783. } else {
  4784. _iframe.onload = () => {
  4785. };
  4786. }
  4787. _jie.onclick = async () => {
  4788. let text = ''
  4789. let type = '2'
  4790. if (aTool == 1) {
  4791. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4792. type = '3'
  4793. } else if (aTool == 6) {
  4794. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4795. type = '1'
  4796. } else if (aTool == 3) {
  4797. text = await U.MD.D.I.getEditorContent(_iframe);
  4798. type = '2'
  4799. }
  4800. _loading.style.display = 'flex'
  4801. U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading, _lspan)
  4802. }
  4803. }
  4804. //U.MD.D.I.openClick(str);
  4805. //如果有任务栏信息
  4806. // if (_taskbar) {
  4807. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4808. // }
  4809. }
  4810. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  4811. var xmlhttp;
  4812. var Mac, Sn, DeviceId
  4813. if (window.XMLHttpRequest) {
  4814. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  4815. xmlhttp = new XMLHttpRequest();
  4816. }
  4817. else {
  4818. // IE6, IE5 浏览器执行代码
  4819. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  4820. }
  4821. xmlhttp.onreadystatechange = function () {
  4822. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  4823. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  4824. // resolve(res.value[0][0].text);
  4825. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  4826. $(fileInput).val('');
  4827. });
  4828. }
  4829. }
  4830. }
  4831. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  4832. xmlhttp.send();
  4833. }
  4834. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  4835. var xmlhttp;
  4836. var Mac, Sn, DeviceId
  4837. if (window.XMLHttpRequest) {
  4838. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  4839. xmlhttp = new XMLHttpRequest();
  4840. }
  4841. else {
  4842. // IE6, IE5 浏览器执行代码
  4843. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  4844. }
  4845. xmlhttp.onreadystatechange = function () {
  4846. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  4847. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  4848. // resolve(res.value[0][0].text);
  4849. if (type == '2') {
  4850. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  4851. $(fileInput).val('');
  4852. });
  4853. } else if (type == '3') {
  4854. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  4855. }
  4856. } else {
  4857. iframe.contentWindow.h.app.updateScene({ elements: [] })
  4858. }
  4859. }
  4860. }
  4861. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  4862. xmlhttp.send();
  4863. }
  4864. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  4865. var xmlhttp;
  4866. var Mac, Sn, DeviceId
  4867. if (window.XMLHttpRequest) {
  4868. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  4869. xmlhttp = new XMLHttpRequest();
  4870. }
  4871. else {
  4872. // IE6, IE5 浏览器执行代码
  4873. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  4874. }
  4875. xmlhttp.onreadystatechange = function () {
  4876. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  4877. if (xmlhttp.response) {
  4878. // resolve(res.value[0][0].text);
  4879. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  4880. // $(fileInput).val('');
  4881. // });
  4882. span.innerHTML = '上传成功'
  4883. setTimeout(() => {
  4884. loading.style.display = 'none'
  4885. }, 1000);
  4886. }
  4887. }
  4888. }
  4889. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  4890. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  4891. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  4892. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  4893. // 设置请求头,表示请求体的编码格式
  4894. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
  4895. // 设置请求体,使用url-encoded格式的数据
  4896. }