DeskTop.js 304 KB

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