DeskTop.js 301 KB

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