DeskTop.js 277 KB

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