DeskTop.js 296 KB

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