DeskTop.js 301 KB

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