DeskTop.js 275 KB

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