DeskTop.js 305 KB

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