DeskTop.js 302 KB

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