DeskTop.js 397 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093
  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": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  17. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  18. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  19. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  20. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  21. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  22. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  23. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  24. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  25. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  26. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  27. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  28. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  29. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  30. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  31. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  32. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  33. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  34. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  35. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  36. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  37. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  38. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  39. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  40. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  41. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  42. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  43. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  44. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  45. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  46. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  47. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  48. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  49. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  50. ];
  51. //极简模式
  52. U.MD.D.I.easyDeskIcon = [
  53. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  55. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  56. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  57. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  58. ];
  59. //教师桌面图标的全局变量
  60. U.MD.D.I.teacherDeskIcon2 = [
  61. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  62. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  63. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  64. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  65. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  66. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  67. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  68. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  69. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  70. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  71. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  72. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  73. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  74. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  75. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  76. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  77. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  78. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  79. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  80. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  81. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  82. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  83. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  84. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  85. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  86. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  87. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  88. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  89. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  90. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  91. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  92. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  93. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  94. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  95. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  96. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  97. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  98. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  99. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  100. ];
  101. U.MD.D.I.studentDeskIcon = [
  102. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  103. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  104. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  105. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  106. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  107. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  108. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  109. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  110. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  111. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  112. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  113. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  114. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  115. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  116. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  117. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  118. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  119. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  120. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  121. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  122. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  123. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  124. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  125. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  126. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  127. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  128. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  129. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  130. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  131. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  132. ];
  133. U.MD.D.I.studentDeskIcon2 = [
  134. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  135. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  136. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  137. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  138. ]
  139. U.MD.D.I.studentDeskIcon3 = [
  140. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  141. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  142. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. ]
  144. U.MD.D.I.schoolDeskIcon = [
  145. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  146. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  147. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  148. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  149. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  150. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  151. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  152. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  153. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  154. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  155. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  156. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  157. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  158. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  159. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  160. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  161. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  162. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  163. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  164. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  165. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  166. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  167. ];
  168. U.MD.D.I.orgDeskIcon = [
  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": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  172. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  173. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  174. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  175. ];
  176. U.MD.D.I.orgStemDeskIcon = [
  177. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  178. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  179. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  180. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  181. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  182. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  183. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  184. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  185. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  186. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  187. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  188. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  189. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  190. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  191. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  192. ];
  193. U.MD.D.I.szulsDeskIcon = [
  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": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  197. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  198. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  199. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  200. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  201. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  202. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  203. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  204. ];
  205. U.MD.D.I.hanDeskIcon = [
  206. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  207. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  208. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  209. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  210. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  211. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  212. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  213. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  214. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  215. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  216. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  217. ];
  218. U.MD.D.I.GMteacherDeskIcon = [
  219. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  220. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  221. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  222. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  223. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  224. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  225. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  226. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  227. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  228. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  229. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  230. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  231. ];
  232. U.MD.D.I.GMstudentDeskIcon = [
  233. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  234. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  235. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  236. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  237. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  238. ];
  239. //北师大
  240. U.MD.D.I.BSDNSteacherDeskIcon = [
  241. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  242. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  243. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  244. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  245. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  246. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  247. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  248. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  249. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  250. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  251. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  252. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  253. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  254. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  255. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  256. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  257. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  258. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  259. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  260. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  261. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  262. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  263. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  264. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  265. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  266. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  267. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  268. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  269. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  270. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  271. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  272. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  273. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  274. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  275. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  276. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  277. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  278. ];
  279. //松山湖
  280. U.MD.D.I.SONGteacherDeskIcon = [
  281. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  282. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  283. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  284. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  285. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  286. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  287. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  288. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  289. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  290. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  291. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  292. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  293. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  294. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  295. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  296. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  297. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  298. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  299. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  300. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  301. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  302. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  303. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  304. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  305. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  306. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  307. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  308. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  309. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  310. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  311. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  312. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  313. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  314. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  315. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  316. ];
  317. U.MD.D.I.tcStudentDeskIcon = [
  318. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.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.tcTeacherDeskIcon = [
  323. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  324. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  325. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  326. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  327. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  328. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  329. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  330. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  331. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  332. ];
  333. U.MD.D.I.tcOrganizerDeskIcon = [
  334. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  335. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  336. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  337. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  338. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  339. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  340. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  341. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  342. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  343. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  344. ];
  345. U.MD.D.I.szscStudentDeskIcon = [
  346. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  347. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  348. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  349. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  350. ];
  351. U.MD.D.I.szscTeacherDeskIcon = [
  352. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  353. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  354. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  355. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  356. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  357. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  358. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  359. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  360. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  361. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  362. ];
  363. U.MD.D.I.szscOrganizerDeskIcon = [
  364. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  365. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  366. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  367. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  368. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  369. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  370. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  371. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  372. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  373. ];
  374. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  375. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  376. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  377. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  378. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  379. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  380. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  381. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  382. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  383. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  384. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  385. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  386. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  387. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  388. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  389. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  390. ];
  391. U.MD.D.I.wankeAdminDeskIcon = [
  392. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  393. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  394. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  395. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  396. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  397. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  398. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  399. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  400. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  401. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  402. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  403. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  404. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  405. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  406. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  407. ];
  408. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  409. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  410. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  411. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  412. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  413. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  414. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  415. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  416. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  417. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  418. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  419. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  420. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  421. ];
  422. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  423. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  424. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  425. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  426. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  427. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  428. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  429. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  430. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  431. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  432. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  433. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  434. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  435. ];
  436. //明德教师桌面图标的全局变量
  437. U.MD.D.I.MingdeTeacherDeskIcon = [
  438. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  439. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  440. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  441. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  442. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  443. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  444. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  445. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  446. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  447. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  448. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  449. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  450. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  451. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  452. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  453. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  454. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  455. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  456. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  457. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  458. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  459. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  460. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  461. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  462. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  463. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  464. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  465. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  466. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  467. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  468. ];
  469. //97c4ee8b-d010-4042-986d-e9d3c217264f
  470. //教师桌面图标的全局变量
  471. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  472. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  473. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  474. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  475. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  476. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  477. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  478. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  479. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  480. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  481. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  482. ];
  483. //福田
  484. U.MD.D.I.futianTeacherDeskIcon = [
  485. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  486. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  487. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  488. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  489. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  490. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  491. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  492. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  493. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  494. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  495. ];
  496. //福田
  497. U.MD.D.I.futianAdminDeskIcon = [
  498. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  499. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  500. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  501. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  502. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  503. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  504. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  505. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  506. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  507. ];
  508. //lotech
  509. U.MD.D.I.lotechTeacherDeskIcon = [
  510. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  511. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  512. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  513. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  514. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  515. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  516. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  517. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  518. ];
  519. //龙华中心小学教师桌面图标的全局变量
  520. U.MD.D.I.longhuateacherDeskIcon = [
  521. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  522. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  523. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  524. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  525. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  526. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  527. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  528. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  529. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  530. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  531. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  532. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  533. ];
  534. //教科院实小教师桌面图标的全局变量
  535. U.MD.D.I.siesteacherDeskIcon = [
  536. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  537. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  538. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  539. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  540. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  541. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  542. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  543. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  544. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  545. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  546. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  547. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  548. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  549. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  550. ];
  551. //福田
  552. U.MD.D.I.gdjgTeacherDeskIcon = [
  553. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  554. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  555. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  556. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  557. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  558. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  559. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  560. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  561. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  562. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  563. ];
  564. //gdjg
  565. U.MD.D.I.gdjgAdminDeskIcon = [
  566. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  567. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  568. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  569. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  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. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  573. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  574. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  575. ];
  576. //hk
  577. U.MD.D.I.hkteacherDeskIcon = [
  578. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  579. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  580. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  581. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  582. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  583. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  584. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  585. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  586. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  587. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  588. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  589. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  590. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  591. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  592. ];
  593. //hk
  594. U.MD.D.I.hkStudentDeskIcon = [
  595. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  596. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  597. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  598. ];
  599. //云海
  600. U.MD.D.I.yunhaiTeacherDeskIcon = [
  601. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  602. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  603. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  604. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  605. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  606. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  607. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  608. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  609. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  610. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  611. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  612. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  613. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  614. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  615. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  616. ];
  617. //福田
  618. U.MD.D.I.heyuanTeacherDeskIcon = [
  619. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  620. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  621. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  622. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  623. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  624. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  625. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  626. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  627. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  628. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  629. ];
  630. //福田
  631. U.MD.D.I.heyuanAdminDeskIcon = [
  632. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  633. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  634. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  635. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  636. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  637. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  638. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  639. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  640. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  641. ];
  642. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  643. U.MD.D.I.szherTeacherDeskIcon = [
  644. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  645. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  646. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  647. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  648. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  649. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  650. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  651. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  652. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  653. ];
  654. //#region 桌面初始化a
  655. /**
  656. * 初始化桌面的起始函数
  657. *
  658. */
  659. U.MD.D.I.init = function () {
  660. if ($("#U_MD_D_K")[0]) {
  661. //初始化桌面图标
  662. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  663. // var clickUrl = ':12588/requestIp.php';
  664. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  665. // U.MD.D.I.Ip = data;
  666. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  667. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  668. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  669. // })
  670. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  671. // })
  672. }
  673. }
  674. /**
  675. * 模式切换
  676. *
  677. */
  678. U.MD.D.I.ModeCheck = function (type) {
  679. if (US.Config.type == type) {
  680. return
  681. }
  682. US.Config.type = type
  683. $('.U_PBL_Check .active')[0].className = ''
  684. if (type == 1) {
  685. $('.U_PBL_Check div')[0].className = 'active'
  686. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  687. } else {
  688. $('.U_PBL_Check div')[1].className = 'active'
  689. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  690. }
  691. //初始化桌面图标
  692. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  693. if(type == 2){
  694. U.MD.D.I.openApplication("project")
  695. }
  696. }
  697. /**
  698. * 隐藏任务栏
  699. *
  700. * @param {element} 桌面元素
  701. */
  702. U.MD.D.I.hiddenTaskbar = function (el) {
  703. //任务栏位置变小
  704. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  705. //桌面的位置变大
  706. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  707. }
  708. /**
  709. * 隐藏任务栏
  710. *
  711. * @param {element} 桌面元素
  712. */
  713. U.MD.D.I.hiddenTaskbarout = function (el) {
  714. //任务栏位置变小
  715. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  716. //任务栏位置变化
  717. U.selectEl(el).css({ "bottom": "-60px" });
  718. //桌面的位置变大
  719. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  720. }
  721. }
  722. /**
  723. * 初始化打印桌面图标
  724. *
  725. * @param {element} 桌面元素
  726. */
  727. U.MD.D.I.initDesktopIcons = function (el, type) {
  728. var i, //用于循环
  729. _content, //桌面图标元素
  730. _iconcontent, //桌面图标元素
  731. _frag = $$("frag"), //定义一个碎片元素
  732. _type = US.userInfo.type,
  733. _org = US.userInfo.org,
  734. _oid = US.userInfo.organizeid,
  735. _role = US.userInfo.role,
  736. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  737. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  738. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  739. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  740. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  741. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  742. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  743. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  744. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  745. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  746. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  747. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  748. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  749. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  750. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  751. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  752. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  753. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  754. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  755. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  756. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  757. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  758. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  759. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  760. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  761. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon,//福田
  762. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon,//福田
  763. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon,//szher
  764. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//
  765. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//
  766. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  767. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
  768. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龙华中心
  769. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  770. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon,//hk
  771. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon,//hk
  772. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon,//云海
  773. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  774. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  775. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  776. 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','ea2a8c65-f38c-11ed-91d8-005056b86db5','4c686762-1d0a-11ed-8c78-005056b86db5','b1095a3c-1d06-4ac8-854f-7c0d97f4ab41'];
  777. var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d", "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b", "150e3120-9195-11ed-b13d-005056b86db5", "ee40e8e3-e36c-4872-8105-cf395481012s", '97c4ee8b-d010-4042-986d-e9d3c217264f','ec0af97a-7c10-4259-a7eb-db9cc8174cdc','4df1b570-f6ac-48fc-8d50-d0b157dae776','e632b86c-f89d-11ed-91d8-005056b86db5','b50cf65a-001c-11ee-91d8-005056b86db5','578de748-05d2-11ee-91d8-005056b86db5','54f09f1e-09f0-11ee-91d8-005056b86db5'];
  778. //清楚桌面图标
  779. el.innerHTML = "";
  780. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  781. _teacherDesktopIconInfo.push(
  782. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  783. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  784. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  785. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  786. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  787. )
  788. _easyDesktopIconInfo.push(
  789. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  790. )
  791. }
  792. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  793. _teacherDesktopIconInfo.push(
  794. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  795. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  796. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  797. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  798. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  799. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  800. )
  801. }
  802. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  803. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  804. if(el.Name == '项目管理'){
  805. el.Name = 'PBL项目'
  806. }
  807. return el
  808. })
  809. }
  810. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  811. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  812. return el.Name != '魔盒识字' && el.Name != '24点'
  813. })
  814. }
  815. 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) {
  816. _studentDesktopIconInfo.push(
  817. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  818. )
  819. }
  820. //循环创建桌面图标
  821. if (type == 1) {
  822. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  823. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  824. _content = $$("div", {
  825. className: "U_MD_D_KO",
  826. "onmousedown": U.UF.C.closure(function (obj) {
  827. //防止拖动图标即打开了桌面应用
  828. U.MD.D.click(this, obj);
  829. }, [_studentDesktopIconInfo[i]]),
  830. "onclick": U.UF.C.closure(function (obj) {
  831. //防止拖动图标即打开了桌面应用
  832. U.MD.D.click(this, obj);
  833. }, [_studentDesktopIconInfo[i]])
  834. }, _frag); //
  835. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  836. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  837. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  838. }
  839. }else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  840. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  841. _content = $$("div", {
  842. className: "U_MD_D_KO",
  843. "onmousedown": U.UF.C.closure(function (obj) {
  844. //防止拖动图标即打开了桌面应用
  845. U.MD.D.click(this, obj);
  846. }, [_hkStudentDeskIconInfo[i]]),
  847. "onclick": U.UF.C.closure(function (obj) {
  848. //防止拖动图标即打开了桌面应用
  849. U.MD.D.click(this, obj);
  850. }, [_hkStudentDeskIconInfo[i]])
  851. }, _frag); //
  852. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  853. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  854. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  855. }
  856. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  857. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  858. _content = $$("div", {
  859. className: "U_MD_D_KO",
  860. "onmousedown": U.UF.C.closure(function (obj) {
  861. //防止拖动图标即打开了桌面应用
  862. U.MD.D.click(this, obj);
  863. }, [_studentDesktopIconInfo[i]]),
  864. "onclick": U.UF.C.closure(function (obj) {
  865. //防止拖动图标即打开了桌面应用
  866. U.MD.D.click(this, obj);
  867. }, [_studentDesktopIconInfo[i]])
  868. }, _frag); //
  869. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  870. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  871. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  872. }
  873. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  874. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  875. _content = $$("div", {
  876. className: "U_MD_D_KO",
  877. "onmousedown": U.UF.C.closure(function (obj) {
  878. //防止拖动图标即打开了桌面应用
  879. U.MD.D.click(this, obj);
  880. }, [_tcStudentDeskIconInfo[i]]),
  881. "onclick": U.UF.C.closure(function (obj) {
  882. //防止拖动图标即打开了桌面应用
  883. U.MD.D.click(this, obj);
  884. }, [_tcStudentDeskIconInfo[i]])
  885. }, _frag); //
  886. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  887. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  888. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  889. }
  890. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  891. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  892. _content = $$("div", {
  893. className: "U_MD_D_KO",
  894. "onmousedown": U.UF.C.closure(function (obj) {
  895. //防止拖动图标即打开了桌面应用
  896. U.MD.D.click(this, obj);
  897. }, [_szscStudentDeskIconInfo[i]]),
  898. "onclick": U.UF.C.closure(function (obj) {
  899. //防止拖动图标即打开了桌面应用
  900. U.MD.D.click(this, obj);
  901. }, [_szscStudentDeskIconInfo[i]])
  902. }, _frag); //
  903. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  904. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  905. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  906. }
  907. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  908. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  909. _content = $$("div", {
  910. className: "U_MD_D_KO",
  911. "onmousedown": U.UF.C.closure(function (obj) {
  912. //防止拖动图标即打开了桌面应用
  913. U.MD.D.click(this, obj);
  914. }, [_studentDesktopIconInfo3[i]]),
  915. "onclick": U.UF.C.closure(function (obj) {
  916. //防止拖动图标即打开了桌面应用
  917. U.MD.D.click(this, obj);
  918. }, [_studentDesktopIconInfo3[i]])
  919. }, _frag); //
  920. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  921. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  922. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  923. }
  924. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  925. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  926. _content = $$("div", {
  927. className: "U_MD_D_KO",
  928. "onmousedown": U.UF.C.closure(function (obj) {
  929. //防止拖动图标即打开了桌面应用
  930. U.MD.D.click(this, obj);
  931. }, [_studentDesktopIconInfo2[i]]),
  932. "onclick": U.UF.C.closure(function (obj) {
  933. //防止拖动图标即打开了桌面应用
  934. U.MD.D.click(this, obj);
  935. }, [_studentDesktopIconInfo2[i]])
  936. }, _frag); //
  937. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  938. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  939. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  940. }
  941. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  942. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  943. _content = $$("div", {
  944. className: "U_MD_D_KO",
  945. "onmousedown": U.UF.C.closure(function (obj) {
  946. //防止拖动图标即打开了桌面应用
  947. U.MD.D.click(this, obj);
  948. }, [_wanketeacherDesktopIconInfo[i]]),
  949. "onclick": U.UF.C.closure(function (obj) {
  950. //防止拖动图标即打开了桌面应用
  951. U.MD.D.click(this, obj);
  952. }, [_wanketeacherDesktopIconInfo[i]])
  953. }, _frag); //
  954. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  955. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  956. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  957. }
  958. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  959. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  960. _content = $$("div", {
  961. className: "U_MD_D_KO",
  962. "onmousedown": U.UF.C.closure(function (obj) {
  963. //防止拖动图标即打开了桌面应用
  964. U.MD.D.click(this, obj);
  965. }, [_wankeAdminDesktopIconInfo[i]]),
  966. "onclick": U.UF.C.closure(function (obj) {
  967. //防止拖动图标即打开了桌面应用
  968. U.MD.D.click(this, obj);
  969. }, [_wankeAdminDesktopIconInfo[i]])
  970. }, _frag); //
  971. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  972. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  973. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  974. }
  975. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  976. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  977. _content = $$("div", {
  978. className: "U_MD_D_KO",
  979. "onmousedown": U.UF.C.closure(function (obj) {
  980. //防止拖动图标即打开了桌面应用
  981. U.MD.D.click(this, obj);
  982. }, [_teacherDesktopIconInfo2[i]]),
  983. "onclick": U.UF.C.closure(function (obj) {
  984. //防止拖动图标即打开了桌面应用
  985. U.MD.D.click(this, obj);
  986. }, [_teacherDesktopIconInfo2[i]])
  987. }, _frag); //
  988. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  989. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  990. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  991. }
  992. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  993. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  994. _content = $$("div", {
  995. className: "U_MD_D_KO",
  996. "onmousedown": U.UF.C.closure(function (obj) {
  997. //防止拖动图标即打开了桌面应用
  998. U.MD.D.click(this, obj);
  999. }, [_lotechTeacherDeskIconInfo[i]]),
  1000. "onclick": U.UF.C.closure(function (obj) {
  1001. //防止拖动图标即打开了桌面应用
  1002. U.MD.D.click(this, obj);
  1003. }, [_lotechTeacherDeskIconInfo[i]])
  1004. }, _frag); //
  1005. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1006. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1007. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1008. }
  1009. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1010. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  1011. _content = $$("div", {
  1012. className: "U_MD_D_KO",
  1013. "onmousedown": U.UF.C.closure(function (obj) {
  1014. //防止拖动图标即打开了桌面应用
  1015. U.MD.D.click(this, obj);
  1016. }, [_siesTeacherDeskIconInfo[i]]),
  1017. "onclick": U.UF.C.closure(function (obj) {
  1018. //防止拖动图标即打开了桌面应用
  1019. U.MD.D.click(this, obj);
  1020. }, [_siesTeacherDeskIconInfo[i]])
  1021. }, _frag); //
  1022. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1023. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1024. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1025. }
  1026. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1027. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1028. _content = $$("div", {
  1029. className: "U_MD_D_KO",
  1030. "onmousedown": U.UF.C.closure(function (obj) {
  1031. //防止拖动图标即打开了桌面应用
  1032. U.MD.D.click(this, obj);
  1033. }, [_longhuaTeacherDeskIconInfo[i]]),
  1034. "onclick": U.UF.C.closure(function (obj) {
  1035. //防止拖动图标即打开了桌面应用
  1036. U.MD.D.click(this, obj);
  1037. }, [_longhuaTeacherDeskIconInfo[i]])
  1038. }, _frag); //
  1039. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1040. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1041. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1042. }
  1043. }else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1044. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1045. _content = $$("div", {
  1046. className: "U_MD_D_KO",
  1047. "onmousedown": U.UF.C.closure(function (obj) {
  1048. //防止拖动图标即打开了桌面应用
  1049. U.MD.D.click(this, obj);
  1050. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1051. "onclick": U.UF.C.closure(function (obj) {
  1052. //防止拖动图标即打开了桌面应用
  1053. U.MD.D.click(this, obj);
  1054. }, [_yunhaiTeacherDeskIconInfo[i]])
  1055. }, _frag); //
  1056. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1057. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1058. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1059. }//_hkStudentDeskIconInfo
  1060. }else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1061. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1062. _content = $$("div", {
  1063. className: "U_MD_D_KO",
  1064. "onmousedown": U.UF.C.closure(function (obj) {
  1065. //防止拖动图标即打开了桌面应用
  1066. U.MD.D.click(this, obj);
  1067. }, [_hkTeacherDeskIconInfo[i]]),
  1068. "onclick": U.UF.C.closure(function (obj) {
  1069. //防止拖动图标即打开了桌面应用
  1070. U.MD.D.click(this, obj);
  1071. }, [_hkTeacherDeskIconInfo[i]])
  1072. }, _frag); //
  1073. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1074. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1075. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1076. }
  1077. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1078. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1079. _content = $$("div", {
  1080. className: "U_MD_D_KO",
  1081. "onmousedown": U.UF.C.closure(function (obj) {
  1082. //防止拖动图标即打开了桌面应用
  1083. U.MD.D.click(this, obj);
  1084. }, [_gdjgAdminDeskIconInfo[i]]),
  1085. "onclick": U.UF.C.closure(function (obj) {
  1086. //防止拖动图标即打开了桌面应用
  1087. U.MD.D.click(this, obj);
  1088. }, [_gdjgAdminDeskIconInfo[i]])
  1089. }, _frag); //
  1090. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1091. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1092. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1093. }
  1094. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1095. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1096. _content = $$("div", {
  1097. className: "U_MD_D_KO",
  1098. "onmousedown": U.UF.C.closure(function (obj) {
  1099. //防止拖动图标即打开了桌面应用
  1100. U.MD.D.click(this, obj);
  1101. }, [_gdjgTeacherDeskIconInfo[i]]),
  1102. "onclick": U.UF.C.closure(function (obj) {
  1103. //防止拖动图标即打开了桌面应用
  1104. U.MD.D.click(this, obj);
  1105. }, [_gdjgTeacherDeskIconInfo[i]])
  1106. }, _frag); //
  1107. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1108. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1109. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1110. }
  1111. }else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1112. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1113. _content = $$("div", {
  1114. className: "U_MD_D_KO",
  1115. "onmousedown": U.UF.C.closure(function (obj) {
  1116. //防止拖动图标即打开了桌面应用
  1117. U.MD.D.click(this, obj);
  1118. }, [_szherTeacherDeskIconInfo[i]]),
  1119. "onclick": U.UF.C.closure(function (obj) {
  1120. //防止拖动图标即打开了桌面应用
  1121. U.MD.D.click(this, obj);
  1122. }, [_szherTeacherDeskIconInfo[i]])
  1123. }, _frag); //
  1124. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1125. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1126. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1127. }
  1128. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1129. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1130. _content = $$("div", {
  1131. className: "U_MD_D_KO",
  1132. "onmousedown": U.UF.C.closure(function (obj) {
  1133. //防止拖动图标即打开了桌面应用
  1134. U.MD.D.click(this, obj);
  1135. }, [_heyuannAdminDeskIconInfo[i]]),
  1136. "onclick": U.UF.C.closure(function (obj) {
  1137. //防止拖动图标即打开了桌面应用
  1138. U.MD.D.click(this, obj);
  1139. }, [_heyuannAdminDeskIconInfo[i]])
  1140. }, _frag); //
  1141. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1142. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1143. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1144. }
  1145. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1146. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1147. _content = $$("div", {
  1148. className: "U_MD_D_KO",
  1149. "onmousedown": U.UF.C.closure(function (obj) {
  1150. //防止拖动图标即打开了桌面应用
  1151. U.MD.D.click(this, obj);
  1152. }, [_heyuanTeacherDeskIconInfo[i]]),
  1153. "onclick": U.UF.C.closure(function (obj) {
  1154. //防止拖动图标即打开了桌面应用
  1155. U.MD.D.click(this, obj);
  1156. }, [_heyuanTeacherDeskIconInfo[i]])
  1157. }, _frag); //
  1158. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1159. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1160. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1161. }
  1162. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1163. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1164. _content = $$("div", {
  1165. className: "U_MD_D_KO",
  1166. "onmousedown": U.UF.C.closure(function (obj) {
  1167. //防止拖动图标即打开了桌面应用
  1168. U.MD.D.click(this, obj);
  1169. }, [_futianAdminDeskIconInfo[i]]),
  1170. "onclick": U.UF.C.closure(function (obj) {
  1171. //防止拖动图标即打开了桌面应用
  1172. U.MD.D.click(this, obj);
  1173. }, [_futianAdminDeskIconInfo[i]])
  1174. }, _frag); //
  1175. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1176. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1177. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1178. }
  1179. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1180. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1181. _content = $$("div", {
  1182. className: "U_MD_D_KO",
  1183. "onmousedown": U.UF.C.closure(function (obj) {
  1184. //防止拖动图标即打开了桌面应用
  1185. U.MD.D.click(this, obj);
  1186. }, [_futianTeacherDeskIconInfo[i]]),
  1187. "onclick": U.UF.C.closure(function (obj) {
  1188. //防止拖动图标即打开了桌面应用
  1189. U.MD.D.click(this, obj);
  1190. }, [_futianTeacherDeskIconInfo[i]])
  1191. }, _frag); //
  1192. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1193. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1194. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1195. }
  1196. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1197. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1198. _content = $$("div", {
  1199. className: "U_MD_D_KO",
  1200. "onmousedown": U.UF.C.closure(function (obj) {
  1201. //防止拖动图标即打开了桌面应用
  1202. U.MD.D.click(this, obj);
  1203. }, [_MingdeTeacherDeskIcon[i]]),
  1204. "onclick": U.UF.C.closure(function (obj) {
  1205. //防止拖动图标即打开了桌面应用
  1206. U.MD.D.click(this, obj);
  1207. }, [_MingdeTeacherDeskIcon[i]])
  1208. }, _frag); //
  1209. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1210. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1211. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1212. }
  1213. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1214. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1215. _content = $$("div", {
  1216. className: "U_MD_D_KO",
  1217. "onmousedown": U.UF.C.closure(function (obj) {
  1218. //防止拖动图标即打开了桌面应用
  1219. U.MD.D.click(this, obj);
  1220. }, [_lhsAdminDesktopIconInfo[i]]),
  1221. "onclick": U.UF.C.closure(function (obj) {
  1222. //防止拖动图标即打开了桌面应用
  1223. U.MD.D.click(this, obj);
  1224. }, [_lhsAdminDesktopIconInfo[i]])
  1225. }, _frag); //
  1226. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1227. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1228. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1229. }
  1230. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1231. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1232. _content = $$("div", {
  1233. className: "U_MD_D_KO",
  1234. "onmousedown": U.UF.C.closure(function (obj) {
  1235. //防止拖动图标即打开了桌面应用
  1236. U.MD.D.click(this, obj);
  1237. }, [_lhsteacherDesktopIconInfo[i]]),
  1238. "onclick": U.UF.C.closure(function (obj) {
  1239. //防止拖动图标即打开了桌面应用
  1240. U.MD.D.click(this, obj);
  1241. }, [_lhsteacherDesktopIconInfo[i]])
  1242. }, _frag); //
  1243. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1244. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1245. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1246. }
  1247. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1248. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1249. _content = $$("div", {
  1250. className: "U_MD_D_KO",
  1251. "onmousedown": U.UF.C.closure(function (obj) {
  1252. //防止拖动图标即打开了桌面应用
  1253. U.MD.D.click(this, obj);
  1254. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1255. "onclick": U.UF.C.closure(function (obj) {
  1256. //防止拖动图标即打开了桌面应用
  1257. U.MD.D.click(this, obj);
  1258. }, [_zhoujiateacherDesktopIconInfo[i]])
  1259. }, _frag); //
  1260. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1261. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1262. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1263. }
  1264. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1265. for (i = 0; i < _hanDeskIcon.length; i++) {
  1266. _content = $$("div", {
  1267. className: "U_MD_D_KO",
  1268. "onmousedown": U.UF.C.closure(function (obj) {
  1269. //防止拖动图标即打开了桌面应用
  1270. U.MD.D.click(this, obj);
  1271. }, [_hanDeskIcon[i]]),
  1272. "onclick": U.UF.C.closure(function (obj) {
  1273. //防止拖动图标即打开了桌面应用
  1274. U.MD.D.click(this, obj);
  1275. }, [_hanDeskIcon[i]])
  1276. }, _frag); //
  1277. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1278. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1279. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1280. }
  1281. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1282. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1283. _content = $$("div", {
  1284. className: "U_MD_D_KO",
  1285. "onmousedown": U.UF.C.closure(function (obj) {
  1286. //防止拖动图标即打开了桌面应用
  1287. U.MD.D.click(this, obj);
  1288. }, [_orgStemDeskIcon[i]]),
  1289. "onclick": U.UF.C.closure(function (obj) {
  1290. //防止拖动图标即打开了桌面应用
  1291. U.MD.D.click(this, obj);
  1292. }, [_orgStemDeskIcon[i]])
  1293. }, _frag); //
  1294. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1295. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1296. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1297. }
  1298. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1299. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1300. _content = $$("div", {
  1301. className: "U_MD_D_KO",
  1302. "onmousedown": U.UF.C.closure(function (obj) {
  1303. //防止拖动图标即打开了桌面应用
  1304. U.MD.D.click(this, obj);
  1305. }, [_szulsDeskIcon[i]]),
  1306. "onclick": U.UF.C.closure(function (obj) {
  1307. //防止拖动图标即打开了桌面应用
  1308. U.MD.D.click(this, obj);
  1309. }, [_szulsDeskIcon[i]])
  1310. }, _frag); //
  1311. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1312. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1313. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1314. }
  1315. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1316. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1317. _content = $$("div", {
  1318. className: "U_MD_D_KO",
  1319. "onmousedown": U.UF.C.closure(function (obj) {
  1320. //防止拖动图标即打开了桌面应用
  1321. U.MD.D.click(this, obj);
  1322. }, [_orgDesktopIconInfo[i]]),
  1323. "onclick": U.UF.C.closure(function (obj) {
  1324. //防止拖动图标即打开了桌面应用
  1325. U.MD.D.click(this, obj);
  1326. }, [_orgDesktopIconInfo[i]])
  1327. }, _frag); //
  1328. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1329. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1330. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1331. }
  1332. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1333. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1334. _content = $$("div", {
  1335. className: "U_MD_D_KO",
  1336. "onmousedown": U.UF.C.closure(function (obj) {
  1337. //防止拖动图标即打开了桌面应用
  1338. U.MD.D.click(this, obj);
  1339. }, [_schoolDesktopIconInfo[i]]),
  1340. "onclick": U.UF.C.closure(function (obj) {
  1341. //防止拖动图标即打开了桌面应用
  1342. U.MD.D.click(this, obj);
  1343. }, [_schoolDesktopIconInfo[i]])
  1344. }, _frag); //
  1345. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1346. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1347. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1348. }
  1349. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1350. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1351. _content = $$("div", {
  1352. className: "U_MD_D_KO",
  1353. "onmousedown": U.UF.C.closure(function (obj) {
  1354. //防止拖动图标即打开了桌面应用
  1355. U.MD.D.click(this, obj);
  1356. }, [_GMteacherDesktopIconInfo[i]]),
  1357. "onclick": U.UF.C.closure(function (obj) {
  1358. //防止拖动图标即打开了桌面应用
  1359. U.MD.D.click(this, obj);
  1360. }, [_GMteacherDesktopIconInfo[i]])
  1361. }, _frag); //
  1362. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1363. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1364. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1365. }
  1366. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1367. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1368. _content = $$("div", {
  1369. className: "U_MD_D_KO",
  1370. "onmousedown": U.UF.C.closure(function (obj) {
  1371. //防止拖动图标即打开了桌面应用
  1372. U.MD.D.click(this, obj);
  1373. }, [_SONGteacherDesktopIconInfo[i]]),
  1374. "onclick": U.UF.C.closure(function (obj) {
  1375. //防止拖动图标即打开了桌面应用
  1376. U.MD.D.click(this, obj);
  1377. }, [_SONGteacherDesktopIconInfo[i]])
  1378. }, _frag); //
  1379. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1380. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1381. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1382. }
  1383. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1384. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1385. _content = $$("div", {
  1386. className: "U_MD_D_KO",
  1387. "onmousedown": U.UF.C.closure(function (obj) {
  1388. //防止拖动图标即打开了桌面应用
  1389. U.MD.D.click(this, obj);
  1390. }, [_GMstudentDesktopIconInfo[i]]),
  1391. "onclick": U.UF.C.closure(function (obj) {
  1392. //防止拖动图标即打开了桌面应用
  1393. U.MD.D.click(this, obj);
  1394. }, [_GMstudentDesktopIconInfo[i]])
  1395. }, _frag); //
  1396. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1397. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1398. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1399. }
  1400. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1401. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1402. _content = $$("div", {
  1403. className: "U_MD_D_KO",
  1404. "onmousedown": U.UF.C.closure(function (obj) {
  1405. //防止拖动图标即打开了桌面应用
  1406. U.MD.D.click(this, obj);
  1407. }, [_tcTeacherDeskIconInfo[i]]),
  1408. "onclick": U.UF.C.closure(function (obj) {
  1409. //防止拖动图标即打开了桌面应用
  1410. U.MD.D.click(this, obj);
  1411. }, [_tcTeacherDeskIconInfo[i]])
  1412. }, _frag); //
  1413. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1414. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1415. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1416. }
  1417. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1418. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1419. _content = $$("div", {
  1420. className: "U_MD_D_KO",
  1421. "onmousedown": U.UF.C.closure(function (obj) {
  1422. //防止拖动图标即打开了桌面应用
  1423. U.MD.D.click(this, obj);
  1424. }, [_tcOrganizerDeskIconInfo[i]]),
  1425. "onclick": U.UF.C.closure(function (obj) {
  1426. //防止拖动图标即打开了桌面应用
  1427. U.MD.D.click(this, obj);
  1428. }, [_tcOrganizerDeskIconInfo[i]])
  1429. }, _frag); //
  1430. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1431. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1432. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1433. }
  1434. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1435. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1436. _content = $$("div", {
  1437. className: "U_MD_D_KO",
  1438. "onmousedown": U.UF.C.closure(function (obj) {
  1439. //防止拖动图标即打开了桌面应用
  1440. U.MD.D.click(this, obj);
  1441. }, [_szscTeacherDeskIconInfo[i]]),
  1442. "onclick": U.UF.C.closure(function (obj) {
  1443. //防止拖动图标即打开了桌面应用
  1444. U.MD.D.click(this, obj);
  1445. }, [_szscTeacherDeskIconInfo[i]])
  1446. }, _frag); //
  1447. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1448. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1449. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1450. }
  1451. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1452. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1453. _content = $$("div", {
  1454. className: "U_MD_D_KO",
  1455. "onmousedown": U.UF.C.closure(function (obj) {
  1456. //防止拖动图标即打开了桌面应用
  1457. U.MD.D.click(this, obj);
  1458. }, [_szscOrganizerDeskIconInfo[i]]),
  1459. "onclick": U.UF.C.closure(function (obj) {
  1460. //防止拖动图标即打开了桌面应用
  1461. U.MD.D.click(this, obj);
  1462. }, [_szscOrganizerDeskIconInfo[i]])
  1463. }, _frag); //
  1464. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1465. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1466. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1467. }
  1468. } else {
  1469. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1470. _content = $$("div", {
  1471. className: "U_MD_D_KO",
  1472. "onmousedown": U.UF.C.closure(function (obj) {
  1473. //防止拖动图标即打开了桌面应用
  1474. U.MD.D.click(this, obj);
  1475. }, [_teacherDesktopIconInfo[i]]),
  1476. "onclick": U.UF.C.closure(function (obj) {
  1477. //防止拖动图标即打开了桌面应用
  1478. U.MD.D.click(this, obj);
  1479. }, [_teacherDesktopIconInfo[i]])
  1480. }, _frag); //
  1481. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1482. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1483. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1484. }
  1485. }
  1486. } else {
  1487. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1488. _content = $$("div", {
  1489. className: "U_MD_D_KO",
  1490. style: { 'width': '124px', 'height': '145px' },
  1491. "onmousedown": U.UF.C.closure(function (obj) {
  1492. //防止拖动图标即打开了桌面应用
  1493. U.MD.D.click(this, obj);
  1494. }, [_easyDesktopIconInfo[i]]),
  1495. "onclick": U.UF.C.closure(function (obj) {
  1496. //防止拖动图标即打开了桌面应用
  1497. U.MD.D.click(this, obj);
  1498. }, [_easyDesktopIconInfo[i]])
  1499. }, _frag); //
  1500. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1501. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1502. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1503. }
  1504. }
  1505. if (type == 1) {
  1506. //加载好后给图标定位
  1507. U.MD.D.iconPostion($(_frag).Child());
  1508. } else {
  1509. //加载好后给图标定位
  1510. U.MD.D.iconPostion2($(_frag).Child());
  1511. }
  1512. //把图标加载到页面
  1513. el.appendChild(_frag);
  1514. }
  1515. /**
  1516. * 显示任务栏
  1517. *
  1518. * @param {element} 桌面元素
  1519. */
  1520. U.MD.D.I.displayTaskbar = function (el) {
  1521. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1522. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1523. //任务栏位置变化
  1524. U.selectEl(el).css({ "bottom": "0px" });
  1525. //桌面位置变话
  1526. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1527. }
  1528. }
  1529. //#region 桌面图标拖动逻辑
  1530. /**
  1531. * 桌面排列图标
  1532. *
  1533. * @param {element} 桌面元素
  1534. * @param {object} 上下相距的距离
  1535. * @param {object} 左右相距的距离
  1536. * @return {object} 命名空间
  1537. */
  1538. U.MD.D.iconPostion = function (childs, top, left) {
  1539. var i; //用于循环处理
  1540. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1541. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1542. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1543. for (i = 0; i < childs.length; i++) {
  1544. //如果竖排top超过了范围处理
  1545. if (top + 95 > US.height - 10) {
  1546. //left超过了页面范围处理,则向上重叠打印处理
  1547. if ((left + 180) > US.width) {
  1548. top -= 110;
  1549. left -= 90;
  1550. }
  1551. //没有超过范围,那么left+90添加到下一个竖排打印
  1552. else {
  1553. left += 90;
  1554. top = 15;
  1555. };
  1556. }
  1557. //给图标的位置赋值
  1558. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1559. if (i < childs.length - 1) {
  1560. //页面图标每次向下加95
  1561. top += 95;
  1562. }
  1563. }
  1564. //返回最后调用的图标的位置
  1565. return [top, left];
  1566. }
  1567. /**
  1568. * 桌面排列图标
  1569. *
  1570. * @param {element} 桌面元素
  1571. * @param {object} 上下相距的距离
  1572. * @param {object} 左右相距的距离
  1573. * @return {object} 命名空间
  1574. */
  1575. U.MD.D.iconPostion2 = function (childs, top, left) {
  1576. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1577. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1578. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1579. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1580. for (i = 0; i < childs.length; i++) {
  1581. //如果竖排top超过了范围处理
  1582. if (left + 150 > US.width - 10) {
  1583. //left超过了页面范围处理,则向上重叠打印处理
  1584. if ((top + 180) > US.Height) {
  1585. top -= 150;
  1586. left -= 150;
  1587. }
  1588. //没有超过范围,那么left+90添加到下一个竖排打印
  1589. else {
  1590. top += 150;
  1591. left = ol;
  1592. };
  1593. }
  1594. //给图标的位置赋值
  1595. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1596. if (i < childs.length - 1) {
  1597. //页面图标每次向下加95
  1598. left += 150;
  1599. }
  1600. }
  1601. //返回最后调用的图标的位置
  1602. return [top, left];
  1603. }
  1604. /**
  1605. * 桌面点击事件逻辑
  1606. *
  1607. * @param {element} 桌面元素
  1608. * @param {object} 上下相距的距离
  1609. * @param {object} 左右相距的距离
  1610. * @return {object} 命名空间
  1611. */
  1612. U.MD.D.click = function (el, obj) {
  1613. var _buttonnumber = event.button; //点击的按钮的事件值
  1614. var _userinfo = US.userInfo;
  1615. U.UF.EV.stopBubble(); //阻止向上冒泡
  1616. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1617. if (_buttonnumber < 2) {
  1618. //如果是click事件的处理
  1619. if (event.type == "click") {
  1620. //如果元素在mousemove事件中没有移动则出发click事件
  1621. if (!U.MD.D.I.IsDrag) {
  1622. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1623. U.alert("请先登录您的账号!");
  1624. setTimeout(() => {
  1625. U.MD.U.L.login();
  1626. }, 2000);
  1627. } else {
  1628. //打开应用处理
  1629. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1630. }
  1631. }
  1632. }
  1633. //如果是mouse事件的处理
  1634. else {
  1635. if (US.Config.type == '1') {
  1636. //拖动处理,添加拖动和拖动结束事件
  1637. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1638. }
  1639. }
  1640. U.MD.D.I.IsDrag = false;
  1641. }
  1642. }
  1643. /**
  1644. * 拖动的处理
  1645. *
  1646. */
  1647. U.MD.D.iconMove = function () {
  1648. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1649. U.MD.D.I.IsDrag = true;
  1650. }
  1651. /**
  1652. * 拖动结束后,这里是定位处理,以网状的形式定位
  1653. *
  1654. * @param {element} 拖动的元素
  1655. * @return {object} 命名空间
  1656. */
  1657. U.MD.D.iconUp = function (el) {
  1658. var _top = 15,
  1659. _left = 20,
  1660. _margin,
  1661. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1662. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1663. if (_positioninfo["OT"] > 15) {
  1664. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1665. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1666. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1667. }
  1668. if (_positioninfo["OL"] > 20) {
  1669. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1670. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1671. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1672. }
  1673. //while循环判断么一个重叠的元素
  1674. do {
  1675. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1676. _top = _positioninfo[0] + 95; //得到定位后的top
  1677. _left = _positioninfo[1]; //得到定位后的left
  1678. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1679. }
  1680. /**
  1681. * 判断拖动后图标是否重叠
  1682. *
  1683. * @param {element} 拖动的元素
  1684. * @param {element} 桌面所有的元素
  1685. * @param {array} 拖动元素的位置
  1686. ----------[0] 上 top
  1687. ----------[1] 左 left
  1688. * @return {object} 命名空间
  1689. */
  1690. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1691. //循环所有的图标
  1692. for (var i = 0; i < childs.length; i++) {
  1693. //判断有没有和该图标诶子重叠的元素
  1694. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1695. return childs[i]; //如果有返回
  1696. }
  1697. }
  1698. }
  1699. //#endregion
  1700. //#endregion
  1701. //#region 桌面应用
  1702. /**
  1703. * 打开应用
  1704. *
  1705. * @param {string} 类型
  1706. -----------------Disk 网盘系统
  1707. -----------------PDisk 学习系统网盘
  1708. -----------------Poto 图片
  1709. -----------------Video 视频
  1710. -----------------Music 音乐
  1711. -----------------Word word
  1712. -----------------Excel excel
  1713. -----------------Txt 记事本
  1714. -----------------PB 学习系统
  1715. -----------------Blog 朋友圈系统
  1716. -----------------FTP ftp系统
  1717. -----------------Group 好友群
  1718. -----------------SY 首页系统
  1719. -----------------Set 个人设置
  1720. -----------------XSet 系统设置
  1721. -----------------App 我们所有的app
  1722. -----------------BC c.1473.cn 平台
  1723. -----------------CWeb d.1473.cn 变成平台
  1724. -----------------其他的外联系统 我们统一用iframe打开
  1725. * @param {array} 类型
  1726. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1727. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1728. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1729. 如果第一个参数为其他,则无第二个参数
  1730. * @returns {array}
  1731. */
  1732. window.addEventListener('message', function (e) { // 监听 message 事件
  1733. // alert(e.data.type);
  1734. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1735. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1736. //3是展示全部阶段 2学生 1老师 4专家
  1737. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1738. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1739. //3是展示全部阶段 2学生 1老师 4专家
  1740. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1741. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1742. //3是展示全部阶段 2学生 1老师 4专家
  1743. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1744. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1745. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1746. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1747. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1748. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1749. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1750. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1751. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1752. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1753. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1754. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1755. //3是展示全部阶段 2学生 1老师 4专家
  1756. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1757. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1758. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1759. U.MD.D.I.selectUser();
  1760. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1761. var _formel = document.getElementById("study");
  1762. U.UF.F.windowZooming(_formel);
  1763. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1764. var _formel = document.getElementById("studyDetail");
  1765. U.UF.F.windowZooming(_formel);
  1766. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1767. var _formel = document.getElementById("studyDetail");
  1768. U.UF.F.windowZooming(_formel);
  1769. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1770. var _formel = document.getElementById("studentStudy");
  1771. U.UF.F.windowZooming(_formel);
  1772. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1773. // var _formel = document.getElementById("study");
  1774. //如果最大化了,那么就把他缩小
  1775. // if (_formel.ismaximize) {
  1776. // return;
  1777. // }
  1778. // U.UF.F.windowZooming(_formel);
  1779. // U.UF.F.topWindow(_formel);
  1780. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1781. // var _formel = document.getElementById("studyDetail");
  1782. //如果最大化了,那么就把他缩小
  1783. // if (_formel.ismaximize) {
  1784. // return;
  1785. // }
  1786. // U.UF.F.windowZooming(_formel);
  1787. // U.UF.F.topWindow(_formel);
  1788. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1789. // var _formel = document.getElementById("studentStudy");
  1790. // if (_formel.ismaximize) {
  1791. // return;
  1792. // }
  1793. // U.UF.F.windowZooming(_formel);
  1794. // U.UF.F.topWindow(_formel);
  1795. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1796. var _formel = document.getElementById("study");
  1797. // if (_formel.ismaximize) {
  1798. // return;
  1799. // }
  1800. // U.UF.F.windowZooming(_formel);
  1801. U.UF.F.topWindow(_formel);
  1802. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1803. var _formel = document.getElementById("studentIndex");
  1804. U.UF.F.windowZooming(_formel);
  1805. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1806. var _formel = document.getElementById("studyDetailS");
  1807. U.UF.F.windowZooming(_formel);
  1808. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1809. var _formel = document.getElementById("studioIndex");
  1810. U.UF.F.windowZooming(_formel);
  1811. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1812. var _formel = document.getElementById("studyDetailStudio");
  1813. U.UF.F.windowZooming(_formel);
  1814. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1815. var _formel = document.getElementById("studyDetailStudio");
  1816. U.UF.F.windowZooming(_formel);
  1817. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1818. var _formel = document.getElementById("studyDetailNT");
  1819. U.UF.F.windowZooming(_formel);
  1820. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1821. var _formel = document.getElementById("studyDetailS");
  1822. U.UF.F.windowZooming(_formel);
  1823. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1824. var _formel = document.getElementById("studyDetailS");
  1825. U.UF.F.topWindow(_formel);
  1826. } else if (e.data.tools && e.data.tools == "1") {
  1827. // U.MD.D.I.openApplication("whiteboard")
  1828. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1829. } else if (e.data.tools && e.data.tools == "2") {
  1830. U.MD.D.I.openApplication("note")
  1831. } else if (e.data.tools && e.data.tools == "3") {
  1832. // U.MD.D.I.openApplication("mind")
  1833. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1834. } else if (e.data.tools && e.data.tools == "4") {
  1835. U.MD.D.I.openApplication("investigation")
  1836. } else if (e.data.tools && e.data.tools == "6") {
  1837. // U.MD.D.I.openApplication("doc")
  1838. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1839. } else if (e.data.tools && e.data.tools == "7") {
  1840. // U.MD.D.I.openApplication("mindNetwork")
  1841. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1842. } else if (e.data.tools && e.data.tools == "8") {
  1843. U.MD.D.I.openApplication("library")
  1844. } else if (e.data.tools && e.data.tools == "17") {
  1845. U.MD.D.I.openApplication("stuLibrary")
  1846. } else if (e.data.tools && e.data.tools == "18") {
  1847. U.MD.D.I.openApplication("train")
  1848. } else if (e.data.tools && e.data.tools == "21") {
  1849. U.MD.D.I.openApplication("program")
  1850. } else if (e.data.tools && e.data.tools == "22") {
  1851. U.MD.D.I.openApplication("AIprogram2")
  1852. } else if (e.data.tools && e.data.tools == "23") {
  1853. U.MD.D.I.openApplication("Pythonprogram")
  1854. } else if (e.data.tools && e.data.tools == "24") {
  1855. U.MD.D.I.openApplication("AIprogram")
  1856. } else if (e.data.tools && e.data.tools == "25") {
  1857. U.MD.D.I.openApplication("sys")
  1858. } else if (e.data.tools && e.data.tools == "26") {
  1859. // U.MD.D.I.openApplication("courseDesign")
  1860. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1861. } else if (e.data.tools && e.data.tools == "31") {
  1862. U.MD.D.I.openApplication("netWorkPanel")
  1863. } else if (e.data.tools && e.data.tools == "32") {
  1864. U.MD.D.I.openApplication("codeEdit")
  1865. } else if (e.data.tools && e.data.tools == "57") {
  1866. U.MD.D.I.openApplication("CocoPi")
  1867. } else if (e.data.tools && e.data.tools == "63") {
  1868. U.MD.D.I.openApplication("Wood")
  1869. } else if (e.data.tools && e.data.tools == "58") {
  1870. U.MD.D.I.openApplication("car")
  1871. } else if (e.data.tools && e.data.tools == "59") {
  1872. U.MD.D.I.openApplication("lineSearch")
  1873. } else if (e.data.tools && e.data.tools == "60") {
  1874. U.MD.D.I.openApplication("deepLearning")
  1875. } else if (e.data.tools && e.data.tools == "61") {
  1876. U.MD.D.I.openApplication("allHistory")
  1877. } else if (e.data.tools && e.data.tools == "28") {
  1878. U.MD.D.I.openApplication("translation")
  1879. } else if (e.data.tools && e.data.tools == "37") {
  1880. U.MD.D.I.openApplication("mohe")
  1881. } else if (e.data.tools && e.data.tools == "38") {
  1882. U.MD.D.I.openApplication("24game")
  1883. } else if (e.data.tools && e.data.tools == "39") {
  1884. U.MD.D.I.openApplication("GeoGebra")
  1885. } else if (e.data.tools && e.data.tools == "43") {
  1886. U.MD.D.I.openApplication("studentEvaluate")
  1887. } else if (e.data.tools && e.data.tools == "44") {
  1888. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1889. } else if (e.data.tools && e.data.tools == "46") {
  1890. U.MD.D.I.openApplication("project")
  1891. } else if (e.data.tools && e.data.tools == "1s") {
  1892. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1893. } else if (e.data.tools && e.data.tools == "3s") {
  1894. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1895. } else if (e.data.tools && e.data.tools == "6s") {
  1896. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1897. } else if (e.data.tools && e.data.tools == "1studio") {
  1898. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1899. } else if (e.data.tools && e.data.tools == "3studio") {
  1900. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1901. } else if (e.data.tools && e.data.tools == "6studio") {
  1902. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1903. } else if (e.data.tools && e.data.tools == "3y") {
  1904. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1905. } else if (e.data.tools && e.data.tools == "1y") {
  1906. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1907. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1908. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1909. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1910. U.MD.D.I.openApplication("AIAnalyse")
  1911. } else if (e.data.tools && e.data.tools == "1teacher") {
  1912. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1913. } else if (e.data.tools && e.data.tools == "3teacher") {
  1914. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1915. } else if (e.data.tools && e.data.tools == "7teacher") {
  1916. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1917. } else if (e.data.tools && e.data.tools == "1teacherE") {
  1918. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1919. } else if (e.data.tools && e.data.tools == "3teacherE") {
  1920. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1921. } else if (e.data.tools && e.data.tools == "1E") {
  1922. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1923. } else if (e.data.tools && e.data.tools == "3E") {
  1924. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1925. } else if (e.data.tools && e.data.tools == "57y") {
  1926. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1927. } else if (e.data.tools && e.data.tools == "57u") {
  1928. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1929. } else if (e.data.tools && e.data.tools == "57teacher") {
  1930. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1931. } else if (e.data.tools && e.data.tools == "64") {
  1932. U.MD.D.I.openApplication("AIChat")
  1933. }
  1934. });
  1935. U.MD.D.I.selectUser = function () {
  1936. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1937. if (res.value[0].length > 0) {
  1938. US.userInfo = res.value[0][0];
  1939. $(".userName")[0].innerHTML = US.userInfo.username;
  1940. }
  1941. }, [], { "type": "GET", "withCredentials": true });
  1942. }
  1943. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1944. var _userinfo = US.userInfo, //登录用户信息
  1945. _userid = US.userInfo.userid, //登录用户id
  1946. _oid = _userinfo.organizeid,
  1947. _type = US.userInfo.type,
  1948. _org = US.userInfo.org,
  1949. _role = US.userInfo.role,
  1950. _classId = US.userInfo.classid;
  1951. if (_type == 4) {
  1952. tType = 4
  1953. }
  1954. switch (str) {
  1955. case "studyDetailNT"://无终端模式
  1956. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1957. setTimeout(() => {
  1958. U.MD.U.L.login();
  1959. }, 2000);
  1960. } else {
  1961. _formdiv = new U.UF.UI.form(
  1962. "课程详情",
  1963. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  1964. "id": "studyDetailNT",
  1965. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1966. "onresize": function () { }
  1967. }, {
  1968. closecallback: function () { }
  1969. }, { "style": { "height": "36px" } }).form; //创建窗体
  1970. _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); } }
  1971. break;
  1972. }
  1973. case "studyDetail":
  1974. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1975. setTimeout(() => {
  1976. U.MD.U.L.login();
  1977. }, 2000);
  1978. } else {
  1979. _formdiv = new U.UF.UI.form(
  1980. "课程详情",
  1981. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  1982. "id": "studyDetail",
  1983. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1984. "onresize": function () { }
  1985. }, {
  1986. closecallback: function () { }
  1987. }, { "style": { "height": "36px" } }).form; //创建窗体
  1988. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1989. break;
  1990. }
  1991. case "studyDetailS":
  1992. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1993. setTimeout(() => {
  1994. U.MD.U.L.login();
  1995. }, 2000);
  1996. } else {
  1997. _formdiv = new U.UF.UI.form(
  1998. "项目详情",
  1999. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  2000. "id": "studyDetailS",
  2001. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2002. "onresize": function () { }
  2003. }, {
  2004. closecallback: function () { }
  2005. }, { "style": { "height": "36px" } }).form; //创建窗体
  2006. _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); } }
  2007. break;
  2008. }
  2009. case "studyDetailStudio":
  2010. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2011. setTimeout(() => {
  2012. U.MD.U.L.login();
  2013. }, 2000);
  2014. } else {
  2015. _formdiv = new U.UF.UI.form(
  2016. "工作详情",
  2017. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  2018. "id": "studyDetailStudio",
  2019. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2020. "onresize": function () { }
  2021. }, {
  2022. closecallback: function () { }
  2023. }, { "style": { "height": "36px" } }).form; //创建窗体
  2024. _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); } }
  2025. break;
  2026. }
  2027. case "studyDetailS5":
  2028. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2029. setTimeout(() => {
  2030. U.MD.U.L.login();
  2031. }, 2000);
  2032. } else {
  2033. _formdiv = new U.UF.UI.form(
  2034. "项目详情",
  2035. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  2036. "id": "studyDetailS",
  2037. "style": { "width": "95%", "height": "95%", "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/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2043. break;
  2044. }
  2045. case "studyDetailGM":
  2046. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2047. setTimeout(() => {
  2048. U.MD.U.L.login();
  2049. }, 2000);
  2050. } else {
  2051. _formdiv = new U.UF.UI.form(
  2052. "课程详情",
  2053. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  2054. "id": "studyDetail",
  2055. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2056. "onresize": function () { }
  2057. }, {
  2058. closecallback: function () { }
  2059. }, { "style": { "height": "36px" } }).form; //创建窗体
  2060. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2061. break;
  2062. }
  2063. case "hanUrl":
  2064. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2065. setTimeout(() => {
  2066. U.MD.U.L.login();
  2067. }, 2000);
  2068. } else {
  2069. _formdiv = new U.UF.UI.form(
  2070. "汉字宫",
  2071. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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" }), {
  2072. "id": "hanUrl",
  2073. "style": { "width": "90%", "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/hanClass.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2079. break;
  2080. }
  2081. }
  2082. }
  2083. U.MD.D.I.openApplication = function (str, obj, info) {
  2084. obj = obj || {};
  2085. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2086. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2087. _userinfo = US.userInfo, //登录用户信息
  2088. _userid = obj.userid || US.userInfo.userid, //登录用户id
  2089. _oid = obj.organizeid || _userinfo.organizeid,
  2090. _type = US.userInfo.type,
  2091. _org = US.userInfo.org,
  2092. _role = US.userInfo.role,
  2093. _classId = US.userInfo.classid,
  2094. _TscreenType = 1
  2095. _screenType = 2,
  2096. _SscreenType = 3;
  2097. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2098. return;
  2099. }
  2100. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2101. switch (str) {
  2102. case "studnetProject": //好友打开
  2103. _formdiv = new U.UF.UI.form(
  2104. "我的项目",
  2105. $$("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 }), {
  2106. "id": "studnetProject",
  2107. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2108. "onresize": function () { }
  2109. }, {
  2110. closecallback: function () { }
  2111. }, { "style": { "height": "36px" } }).form; //创建窗体
  2112. _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); } }
  2113. break;
  2114. case "studentEvaluate": //好友打开
  2115. _formdiv = new U.UF.UI.form(
  2116. "我的评价",
  2117. $$("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 }), {
  2118. "id": "studentEvaluate",
  2119. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2120. "onresize": function () { }
  2121. }, {
  2122. closecallback: function () { }
  2123. }, { "style": { "height": "36px" } }).form; //创建窗体
  2124. _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); } }
  2125. break;
  2126. case "my":
  2127. _formdiv = new U.UF.UI.form(
  2128. "我的资料",
  2129. $$("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 }), {
  2130. "id": "my",
  2131. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2132. "onresize": function () { }
  2133. }, {
  2134. closecallback: function () { }
  2135. }, { "style": { "height": "36px" } }).form; //创建窗体
  2136. _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); } }
  2137. break;
  2138. case "program":
  2139. _formdiv = new U.UF.UI.form(
  2140. "编程平台",
  2141. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2142. "id": "program",
  2143. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2144. "onresize": function () { }
  2145. }, {
  2146. closecallback: function () { }
  2147. }, { "style": { "height": "36px" } }).form; //创建窗体
  2148. _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); } }
  2149. break;
  2150. case "library":
  2151. _formdiv = new U.UF.UI.form(
  2152. "素材库",
  2153. $$("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 }), {
  2154. "id": "library",
  2155. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2156. "onresize": function () { }
  2157. }, {
  2158. closecallback: function () { }
  2159. }, { "style": { "height": "36px" } }).form; //创建窗体
  2160. _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); } }
  2161. break;
  2162. case "whiteboard":
  2163. _formdiv = new U.UF.UI.form(
  2164. "电子白板",
  2165. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2166. "id": "whiteboard",
  2167. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2168. "onresize": function () { }
  2169. }, {
  2170. closecallback: function () { }
  2171. }, { "style": { "height": "36px" } }).form; //创建窗体
  2172. _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); } }
  2173. break;
  2174. case "investigation":
  2175. _formdiv = new U.UF.UI.form(
  2176. "问卷调查",
  2177. $$("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 }), {
  2178. "id": "investigation",
  2179. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2180. "onresize": function () { }
  2181. }, {
  2182. closecallback: function () { }
  2183. }, { "style": { "height": "36px" } }).form; //创建窗体
  2184. _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); } }
  2185. break;
  2186. case "note":
  2187. _formdiv = new U.UF.UI.form(
  2188. "便签分类",
  2189. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  2190. "id": "note",
  2191. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2192. "onresize": function () { }
  2193. }, {
  2194. closecallback: function () { }
  2195. }, { "style": { "height": "36px" } }).form; //创建窗体
  2196. _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); } }
  2197. break;
  2198. // case "score":
  2199. // _formdiv = new U.UF.UI.form(
  2200. // "量规评分",
  2201. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2202. // "id": "score",
  2203. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2204. // "onresize": function() {}
  2205. // }, {
  2206. // closecallback: function() {}
  2207. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2208. // _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); } }
  2209. // break;
  2210. case "mind":
  2211. _formdiv = new U.UF.UI.form(
  2212. "思维导图",
  2213. $$("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"
  2214. "id": "mind",
  2215. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2216. "onresize": function () { }
  2217. }, {
  2218. closecallback: function () { }
  2219. }, { "style": { "height": "36px" } }).form; //创建窗体
  2220. _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); } }
  2221. break;
  2222. case "doc":
  2223. // U.MD.D.I.isRoom();
  2224. _formdiv = new U.UF.UI.form(
  2225. "协同文档",
  2226. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2227. "id": "doc",
  2228. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2229. "onresize": function () { }
  2230. }, {
  2231. closecallback: function () { }
  2232. }, { "style": { "height": "36px" } }).form; //创建窗体
  2233. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2234. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2235. // })
  2236. _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); } }
  2237. break;
  2238. case "studentStudy":
  2239. _formdiv = new U.UF.UI.form(
  2240. "课程中心",
  2241. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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
  2242. "id": "studentStudy",
  2243. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2244. "onresize": function () { }
  2245. }, {
  2246. closecallback: function () { }
  2247. }, { "style": { "height": "36px" } }).form; //创建窗体
  2248. _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); } }
  2249. break;
  2250. case "train": //好友打开
  2251. _formdiv = new U.UF.UI.form(
  2252. "训练平台",
  2253. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2254. "id": "train",
  2255. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2256. "onresize": function () { }
  2257. }, {
  2258. closecallback: function () { }
  2259. }, { "style": { "height": "36px" } }).form; //创建窗体
  2260. _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); } }
  2261. break;
  2262. case "mindNetwork": //好友打开
  2263. _formdiv = new U.UF.UI.form(
  2264. "思维网格",
  2265. $$("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 }), {
  2266. "id": "mindNetwork",
  2267. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2268. "onresize": function () { }
  2269. }, {
  2270. closecallback: function () { }
  2271. }, { "style": { "height": "36px" } }).form; //创建窗体
  2272. _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); } }
  2273. break;
  2274. case "studentClassRoom": //好友打开
  2275. _formdiv = new U.UF.UI.form(
  2276. "实时课堂",
  2277. $$("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 }), {
  2278. "id": "studentClassRoom",
  2279. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2280. "onresize": function () { }
  2281. }, {
  2282. closecallback: function () { }
  2283. }, { "style": { "height": "36px" } }).form; //创建窗体
  2284. _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); } }
  2285. setTimeout(() => {
  2286. U.UF.F.windowZooming(_formdiv)
  2287. }, 0);
  2288. break;
  2289. }
  2290. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2291. switch (str) {
  2292. case "studnetProject": //好友打开
  2293. _formdiv = new U.UF.UI.form(
  2294. "我的项目",
  2295. $$("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 }), {
  2296. "id": "studnetProject",
  2297. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2298. "onresize": function () { }
  2299. }, {
  2300. closecallback: function () { }
  2301. }, { "style": { "height": "36px" } }).form; //创建窗体
  2302. _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); } }
  2303. break;
  2304. case "studentEvaluate": //好友打开
  2305. _formdiv = new U.UF.UI.form(
  2306. "我的评价",
  2307. $$("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 }), {
  2308. "id": "studentEvaluate",
  2309. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2310. "onresize": function () { }
  2311. }, {
  2312. closecallback: function () { }
  2313. }, { "style": { "height": "36px" } }).form; //创建窗体
  2314. _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); } }
  2315. break;
  2316. case "my":
  2317. _formdiv = new U.UF.UI.form(
  2318. "我的资料",
  2319. $$("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 }), {
  2320. "id": "my",
  2321. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2322. "onresize": function () { }
  2323. }, {
  2324. closecallback: function () { }
  2325. }, { "style": { "height": "36px" } }).form; //创建窗体
  2326. _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); } }
  2327. break;
  2328. case "program":
  2329. _formdiv = new U.UF.UI.form(
  2330. "编程平台",
  2331. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2332. "id": "program",
  2333. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2334. "onresize": function () { }
  2335. }, {
  2336. closecallback: function () { }
  2337. }, { "style": { "height": "36px" } }).form; //创建窗体
  2338. _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); } }
  2339. break;
  2340. case "library":
  2341. _formdiv = new U.UF.UI.form(
  2342. "素材库",
  2343. $$("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 }), {
  2344. "id": "library",
  2345. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2346. "onresize": function () { }
  2347. }, {
  2348. closecallback: function () { }
  2349. }, { "style": { "height": "36px" } }).form; //创建窗体
  2350. _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); } }
  2351. break;
  2352. case "whiteboard":
  2353. _formdiv = new U.UF.UI.form(
  2354. "电子白板",
  2355. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2356. "id": "whiteboard",
  2357. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2358. "onresize": function () { }
  2359. }, {
  2360. closecallback: function () { }
  2361. }, { "style": { "height": "36px" } }).form; //创建窗体
  2362. _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); } }
  2363. break;
  2364. case "investigation":
  2365. _formdiv = new U.UF.UI.form(
  2366. "问卷调查",
  2367. $$("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 }), {
  2368. "id": "investigation",
  2369. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2370. "onresize": function () { }
  2371. }, {
  2372. closecallback: function () { }
  2373. }, { "style": { "height": "36px" } }).form; //创建窗体
  2374. _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); } }
  2375. break;
  2376. case "note":
  2377. _formdiv = new U.UF.UI.form(
  2378. "便签分类",
  2379. $$("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 }), {
  2380. "id": "note",
  2381. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2382. "onresize": function () { }
  2383. }, {
  2384. closecallback: function () { }
  2385. }, { "style": { "height": "36px" } }).form; //创建窗体
  2386. _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); } }
  2387. break;
  2388. // case "score":
  2389. // _formdiv = new U.UF.UI.form(
  2390. // "量规评分",
  2391. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2392. // "id": "score",
  2393. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2394. // "onresize": function() {}
  2395. // }, {
  2396. // closecallback: function() {}
  2397. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2398. // _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); } }
  2399. // break;
  2400. case "mind":
  2401. _formdiv = new U.UF.UI.form(
  2402. "思维导图",
  2403. $$("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"
  2404. "id": "mind",
  2405. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2406. "onresize": function () { }
  2407. }, {
  2408. closecallback: function () { }
  2409. }, { "style": { "height": "36px" } }).form; //创建窗体
  2410. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2411. break;
  2412. case "doc":
  2413. // U.MD.D.I.isRoom();
  2414. _formdiv = new U.UF.UI.form(
  2415. "协同文档",
  2416. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2417. "id": "doc",
  2418. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2419. "onresize": function () { }
  2420. }, {
  2421. closecallback: function () { }
  2422. }, { "style": { "height": "36px" } }).form; //创建窗体
  2423. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2424. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2425. })
  2426. _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); } }
  2427. break;
  2428. case "train": //好友打开
  2429. _formdiv = new U.UF.UI.form(
  2430. "训练平台",
  2431. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2432. "id": "train",
  2433. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2434. "onresize": function () { }
  2435. }, {
  2436. closecallback: function () { }
  2437. }, { "style": { "height": "36px" } }).form; //创建窗体
  2438. _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); } }
  2439. break;
  2440. case "studentStudy":
  2441. _formdiv = new U.UF.UI.form(
  2442. "课程中心",
  2443. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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
  2444. "id": "studentStudy",
  2445. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2446. "onresize": function () { }
  2447. }, {
  2448. closecallback: function () { }
  2449. }, { "style": { "height": "36px" } }).form; //创建窗体
  2450. _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); } }
  2451. break;
  2452. case "mindNetwork": //好友打开
  2453. _formdiv = new U.UF.UI.form(
  2454. "思维网格",
  2455. $$("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 }), {
  2456. "id": "mindNetwork",
  2457. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2458. "onresize": function () { }
  2459. }, {
  2460. closecallback: function () { }
  2461. }, { "style": { "height": "36px" } }).form; //创建窗体
  2462. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2463. break;
  2464. case "studentClassRoom": //好友打开
  2465. _formdiv = new U.UF.UI.form(
  2466. "实时课堂",
  2467. $$("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 }), {
  2468. "id": "studentClassRoom",
  2469. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2470. "onresize": function () { }
  2471. }, {
  2472. closecallback: function () { }
  2473. }, { "style": { "height": "36px" } }).form; //创建窗体
  2474. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2475. setTimeout(() => {
  2476. U.UF.F.windowZooming(_formdiv)
  2477. }, 0);
  2478. break;
  2479. }
  2480. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2481. //选择应用处理
  2482. switch (str) {
  2483. case "project": //好友打开
  2484. _formdiv = new U.UF.UI.form(
  2485. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2486. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;clipboard-write;clipboard-read", "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/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2487. "id": "project",
  2488. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2489. "onresize": function () { }
  2490. }, {
  2491. closecallback: function () { }
  2492. }, { "style": { "height": "36px" } }).form; //创建窗体
  2493. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2494. break;
  2495. case "student":
  2496. _formdiv = new U.UF.UI.form(
  2497. "学生管理",
  2498. $$("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 }), {
  2499. "id": "student",
  2500. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2501. "onresize": function () { }
  2502. }, {
  2503. closecallback: function () { }
  2504. }, { "style": { "height": "36px" } }).form; //创建窗体
  2505. _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); } }
  2506. break;
  2507. case "evaluate":
  2508. _formdiv = new U.UF.UI.form(
  2509. "学生评价",
  2510. $$("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 }), {
  2511. "id": "evaluate",
  2512. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2513. "onresize": function () { }
  2514. }, {
  2515. closecallback: function () { }
  2516. }, { "style": { "height": "36px" } }).form; //创建窗体
  2517. _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); } }
  2518. break;
  2519. case "sys":
  2520. _formdiv = new U.UF.UI.form(
  2521. "目标管理",
  2522. $$("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 }), {
  2523. "id": "sys",
  2524. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2525. "onresize": function () { }
  2526. }, {
  2527. closecallback: function () { }
  2528. }, { "style": { "height": "36px" } }).form; //创建窗体
  2529. _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); } }
  2530. break;
  2531. case "courseDesign":
  2532. _formdiv = new U.UF.UI.form(
  2533. "项目设计",
  2534. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2535. "id": "courseDesign",
  2536. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2537. "onresize": function () { }
  2538. }, {
  2539. closecallback: function () { }
  2540. }, { "style": { "height": "36px" } }).form; //创建窗体
  2541. _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); } }
  2542. break;
  2543. case "program":
  2544. _formdiv = new U.UF.UI.form(
  2545. "编程平台",
  2546. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2547. "id": "program",
  2548. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2549. "onresize": function () { }
  2550. }, {
  2551. closecallback: function () { }
  2552. }, { "style": { "height": "36px" } }).form; //创建窗体
  2553. _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); } }
  2554. break;
  2555. case "class":
  2556. _formdiv = new U.UF.UI.form(
  2557. "班级管理",
  2558. $$("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 }), {
  2559. "id": "class",
  2560. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2561. "onresize": function () { }
  2562. }, {
  2563. closecallback: function () { }
  2564. }, { "style": { "height": "36px" } }).form; //创建窗体
  2565. _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); } }
  2566. break;
  2567. case "Grade":
  2568. _formdiv = new U.UF.UI.form(
  2569. "年级管理",
  2570. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/grade?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2571. "id": "Grade",
  2572. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2573. "onresize": function () { }
  2574. }, {
  2575. closecallback: function () { }
  2576. }, { "style": { "height": "36px" } }).form; //创建窗体
  2577. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Grade.png)" }, "name": "年级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2578. break;
  2579. case "teacherOffice":
  2580. _formdiv = new U.UF.UI.form(
  2581. "教研室",
  2582. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/teacherOffice?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2583. "id": "teacherOffice",
  2584. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2585. "onresize": function () { }
  2586. }, {
  2587. closecallback: function () { }
  2588. }, { "style": { "height": "36px" } }).form; //创建窗体
  2589. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/teacherOffice.png)" }, "name": "教研室", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2590. break;
  2591. case "my":
  2592. _formdiv = new U.UF.UI.form(
  2593. "我的资料",
  2594. $$("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 }), {
  2595. "id": "my",
  2596. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2597. "onresize": function () { }
  2598. }, {
  2599. closecallback: function () { }
  2600. }, { "style": { "height": "36px" } }).form; //创建窗体
  2601. _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); } }
  2602. break;
  2603. case "notice":
  2604. _formdiv = new U.UF.UI.form(
  2605. "通知公告",
  2606. $$("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 }), {
  2607. "id": "notice",
  2608. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2609. "onresize": function () { }
  2610. }, {
  2611. closecallback: function () { }
  2612. }, { "style": { "height": "36px" } }).form; //创建窗体
  2613. _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); } }
  2614. break;
  2615. case "library":
  2616. _formdiv = new U.UF.UI.form(
  2617. "素材库",
  2618. $$("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 }), {
  2619. "id": "library",
  2620. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2621. "onresize": function () { }
  2622. }, {
  2623. closecallback: function () { }
  2624. }, { "style": { "height": "36px" } }).form; //创建窗体
  2625. _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); } }
  2626. break;
  2627. case "whiteboard":
  2628. _formdiv = new U.UF.UI.form(
  2629. "电子白板",
  2630. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2631. "id": "whiteboard",
  2632. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2633. "onresize": function () { }
  2634. }, {
  2635. closecallback: function () { }
  2636. }, { "style": { "height": "36px" } }).form; //创建窗体
  2637. _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); } }
  2638. break;
  2639. case "investigation":
  2640. _formdiv = new U.UF.UI.form(
  2641. "问卷调查",
  2642. $$("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 }), {
  2643. "id": "investigation",
  2644. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2645. "onresize": function () { }
  2646. }, {
  2647. closecallback: function () { }
  2648. }, { "style": { "height": "36px" } }).form; //创建窗体
  2649. _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); } }
  2650. break;
  2651. case "note":
  2652. _formdiv = new U.UF.UI.form(
  2653. "便签分类",
  2654. $$("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 }), {
  2655. "id": "note",
  2656. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2657. "onresize": function () { }
  2658. }, {
  2659. closecallback: function () { }
  2660. }, { "style": { "height": "36px" } }).form; //创建窗体
  2661. _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); } }
  2662. break;
  2663. // case "score":
  2664. // _formdiv = new U.UF.UI.form(
  2665. // "量规评分",
  2666. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2667. // "id": "score",
  2668. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2669. // "onresize": function() {}
  2670. // }, {
  2671. // closecallback: function() {}
  2672. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2673. // _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); } }
  2674. // break;
  2675. case "mind":
  2676. _formdiv = new U.UF.UI.form(
  2677. "思维导图",
  2678. $$("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"
  2679. "id": "mind",
  2680. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2681. "onresize": function () { }
  2682. }, {
  2683. closecallback: function () { }
  2684. }, { "style": { "height": "36px" } }).form; //创建窗体
  2685. _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); } }
  2686. break;
  2687. case "doc":
  2688. // U.MD.D.I.isRoom();
  2689. _formdiv = new U.UF.UI.form(
  2690. "协同文档",
  2691. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2692. "id": "doc",
  2693. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2694. "onresize": function () { }
  2695. }, {
  2696. closecallback: function () { }
  2697. }, { "style": { "height": "36px" } }).form; //创建窗体
  2698. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2699. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2700. })
  2701. _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); } }
  2702. break;
  2703. case "study":
  2704. _formdiv = new U.UF.UI.form(
  2705. "课程中心",
  2706. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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
  2707. "id": "study",
  2708. "style": { "width": "100%", "height": "100%", "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/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2714. break;
  2715. case "mindNetwork": //好友打开
  2716. _formdiv = new U.UF.UI.form(
  2717. "思维网格",
  2718. $$("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 }), {
  2719. "id": "mindNetwork",
  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/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2726. break;
  2727. case "train": //好友打开
  2728. _formdiv = new U.UF.UI.form(
  2729. "训练平台",
  2730. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2731. "id": "mindNetwork",
  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/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2738. break;
  2739. case "teacherClassRoom": //好友打开
  2740. _formdiv = new U.UF.UI.form(
  2741. "实时课堂",
  2742. $$("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 }), {
  2743. "id": "teacherClassRoom",
  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/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2750. setTimeout(() => {
  2751. U.UF.F.windowZooming(_formdiv)
  2752. }, 0);
  2753. break;
  2754. }
  2755. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2756. switch (str) {
  2757. case "project": //好友打开
  2758. _formdiv = new U.UF.UI.form(
  2759. "课程管理",
  2760. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;clipboard-write;clipboard-read", "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/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2761. "id": "project",
  2762. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2763. "onresize": function () { }
  2764. }, {
  2765. closecallback: function () { }
  2766. }, { "style": { "height": "36px" } }).form; //创建窗体
  2767. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2768. break;
  2769. case "evaluate":
  2770. _formdiv = new U.UF.UI.form(
  2771. "学生评价",
  2772. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2773. "id": "evaluate",
  2774. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2775. "onresize": function () { }
  2776. }, {
  2777. closecallback: function () { }
  2778. }, { "style": { "height": "36px" } }).form; //创建窗体
  2779. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2780. break;
  2781. case "notice":
  2782. _formdiv = new U.UF.UI.form(
  2783. "通知公告",
  2784. $$("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 }), {
  2785. "id": "notice",
  2786. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2787. "onresize": function () { }
  2788. }, {
  2789. closecallback: function () { }
  2790. }, { "style": { "height": "36px" } }).form; //创建窗体
  2791. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2792. break;
  2793. case "stuLibrary":
  2794. _formdiv = new U.UF.UI.form(
  2795. "学习资料",
  2796. $$("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 }), {
  2797. "id": "stuLibrary",
  2798. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2799. "onresize": function () { }
  2800. }, {
  2801. closecallback: function () { }
  2802. }, { "style": { "height": "36px" } }).form; //创建窗体
  2803. _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); } }
  2804. break;
  2805. case "program":
  2806. _formdiv = new U.UF.UI.form(
  2807. "编程平台",
  2808. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2809. "id": "program",
  2810. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2811. "onresize": function () { }
  2812. }, {
  2813. closecallback: function () { }
  2814. }, { "style": { "height": "36px" } }).form; //创建窗体
  2815. _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); } }
  2816. break;
  2817. case "whiteboard":
  2818. _formdiv = new U.UF.UI.form(
  2819. "电子白板",
  2820. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2821. "id": "whiteboard",
  2822. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2823. "onresize": function () { }
  2824. }, {
  2825. closecallback: function () { }
  2826. }, { "style": { "height": "36px" } }).form; //创建窗体
  2827. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2828. break;
  2829. case "investigation":
  2830. _formdiv = new U.UF.UI.form(
  2831. "问卷调查",
  2832. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  2833. "id": "investigation",
  2834. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2835. "onresize": function () { }
  2836. }, {
  2837. closecallback: function () { }
  2838. }, { "style": { "height": "36px" } }).form; //创建窗体
  2839. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2840. break;
  2841. case "mind":
  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": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  2845. "id": "mind",
  2846. "style": { "width": "90%", "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/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2852. break;
  2853. case "doc":
  2854. // U.MD.D.I.isRoom();
  2855. _formdiv = new U.UF.UI.form(
  2856. "协同文档",
  2857. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2858. "id": "doc",
  2859. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2860. "onresize": function () { }
  2861. }, {
  2862. closecallback: function () { }
  2863. }, { "style": { "height": "36px" } }).form; //创建窗体
  2864. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2865. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2866. })
  2867. _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); } }
  2868. break;
  2869. case "study":
  2870. _formdiv = new U.UF.UI.form(
  2871. "课程中心",
  2872. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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
  2873. "id": "study",
  2874. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2875. "onresize": function () { }
  2876. }, {
  2877. closecallback: function () { }
  2878. }, { "style": { "height": "36px" } }).form; //创建窗体
  2879. _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); } }
  2880. break;
  2881. case "mindNetwork": //好友打开
  2882. _formdiv = new U.UF.UI.form(
  2883. "思维网格",
  2884. $$("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 }), {
  2885. "id": "mindNetwork",
  2886. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2887. "onresize": function () { }
  2888. }, {
  2889. closecallback: function () { }
  2890. }, { "style": { "height": "36px" } }).form; //创建窗体
  2891. _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); } }
  2892. break;
  2893. case "train": //好友打开
  2894. _formdiv = new U.UF.UI.form(
  2895. "训练平台",
  2896. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2897. "id": "train",
  2898. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2899. "onresize": function () { }
  2900. }, {
  2901. closecallback: function () { }
  2902. }, { "style": { "height": "36px" } }).form; //创建窗体
  2903. _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); } }
  2904. break;
  2905. case "sys":
  2906. _formdiv = new U.UF.UI.form(
  2907. "目标管理",
  2908. $$("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 }), {
  2909. "id": "sys",
  2910. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2911. "onresize": function () { }
  2912. }, {
  2913. closecallback: function () { }
  2914. }, { "style": { "height": "36px" } }).form; //创建窗体
  2915. _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); } }
  2916. break;
  2917. case "courseDesign":
  2918. _formdiv = new U.UF.UI.form(
  2919. "项目设计",
  2920. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2921. "id": "courseDesign",
  2922. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2923. "onresize": function () { }
  2924. }, {
  2925. closecallback: function () { }
  2926. }, { "style": { "height": "36px" } }).form; //创建窗体
  2927. _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); } }
  2928. break;
  2929. }
  2930. } else if (!_type) {
  2931. switch (str) {
  2932. case "my":
  2933. _formdiv = new U.UF.UI.form(
  2934. "我的资料",
  2935. $$("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 }), {
  2936. "id": "my",
  2937. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2938. "onresize": function () { }
  2939. }, {
  2940. closecallback: function () { }
  2941. }, { "style": { "height": "36px" } }).form; //创建窗体
  2942. _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); } }
  2943. break;
  2944. }
  2945. }
  2946. switch (str) {
  2947. // AIprogram2 AI体验 aihub.cocorobo.cn
  2948. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2949. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2950. case "AIprogram2": //AI体验
  2951. _formdiv = new U.UF.UI.form(
  2952. "AI体验",
  2953. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2954. "id": "AIprogram2",
  2955. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2956. "onresize": function () { }
  2957. }, {
  2958. closecallback: function () { }
  2959. }, { "style": { "height": "36px" } }).form; //创建窗体
  2960. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram2.png)" }, "name": "AI体验", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2961. break;
  2962. case "Pythonprogram": //python编程
  2963. _formdiv = new U.UF.UI.form(
  2964. "Python编程",
  2965. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2966. "id": "Pythonprogram",
  2967. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2968. "onresize": function () { }
  2969. }, {
  2970. closecallback: function () { }
  2971. }, { "style": { "height": "36px" } }).form; //创建窗体
  2972. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Pythonprogram.png)" }, "name": "Python编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2973. break;
  2974. case "AIprogram": //ai编程
  2975. _formdiv = new U.UF.UI.form(
  2976. "AI编程平台",
  2977. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2978. "id": "AIprogram",
  2979. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2980. "onresize": function () { }
  2981. }, {
  2982. closecallback: function () { }
  2983. }, { "style": { "height": "36px" } }).form; //创建窗体
  2984. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram.png)" }, "name": "AI编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2985. break;
  2986. case "CocoPi": //CocoPi
  2987. _formdiv = new U.UF.UI.form(
  2988. "CocoPi",
  2989. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pi.cocorobo.cn" }), {
  2990. "id": "CocoPi",
  2991. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2992. "onresize": function () { }
  2993. }, {
  2994. closecallback: function () { }
  2995. }, { "style": { "height": "36px" } }).form; //创建窗体
  2996. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/cocopi.png)" }, "name": "CocoPi", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2997. break;
  2998. case "Wood": //Wood
  2999. _formdiv = new U.UF.UI.form(
  3000. "海龟编程",
  3001. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://wood.codemao.cn/" }), {
  3002. "id": "Wood",
  3003. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3004. "onresize": function () { }
  3005. }, {
  3006. closecallback: function () { }
  3007. }, { "style": { "height": "36px" } }).form; //创建窗体
  3008. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Wood.png)" }, "name": "海龟编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3009. break;
  3010. case "car": //模拟驾驶
  3011. _formdiv = new U.UF.UI.form(
  3012. "模拟驾驶",
  3013. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://slowroads.io/" }), {
  3014. "id": "car",
  3015. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3016. "onresize": function () { }
  3017. }, {
  3018. closecallback: function () { }
  3019. }, { "style": { "height": "36px" } }).form; //创建窗体
  3020. _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); } }
  3021. break;
  3022. case "lineSearch": //路径搜索
  3023. _formdiv = new U.UF.UI.form(
  3024. "路径搜索",
  3025. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;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/" }), {
  3026. "id": "lineSearch",
  3027. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3028. "onresize": function () { }
  3029. }, {
  3030. closecallback: function () { }
  3031. }, { "style": { "height": "36px" } }).form; //创建窗体
  3032. _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); } }
  3033. break;
  3034. case "deepLearning": //深度学习
  3035. _formdiv = new U.UF.UI.form(
  3036. "深度学习",
  3037. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;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/#" }), {
  3038. "id": "deepLearning",
  3039. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3040. "onresize": function () { }
  3041. }, {
  3042. closecallback: function () { }
  3043. }, { "style": { "height": "36px" } }).form; //创建窗体
  3044. _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); } }
  3045. break;
  3046. case "allHistory": //深度学习
  3047. _formdiv = new U.UF.UI.form(
  3048. "全历史",
  3049. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.allhistory.com/" }), {
  3050. "id": "allHistory",
  3051. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3052. "onresize": function () { }
  3053. }, {
  3054. closecallback: function () { }
  3055. }, { "style": { "height": "36px" } }).form; //创建窗体
  3056. _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); } }
  3057. break;
  3058. case "chatPDF": //ai编程
  3059. _formdiv = new U.UF.UI.form(
  3060. "chatPDF",
  3061. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3062. "id": "chatPDF",
  3063. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3064. "onresize": function () { }
  3065. }, {
  3066. closecallback: function () { }
  3067. }, { "style": { "height": "36px" } }).form; //创建窗体
  3068. _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); } }
  3069. break;
  3070. case "resources": //国家教育
  3071. _formdiv = new U.UF.UI.form(
  3072. "国家教育",
  3073. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3074. "id": "resources",
  3075. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3076. "onresize": function () { }
  3077. }, {
  3078. closecallback: function () { }
  3079. }, { "style": { "height": "36px" } }).form; //创建窗体
  3080. _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); } }
  3081. break;
  3082. case "codeEdit": //源码编辑
  3083. _formdiv = new U.UF.UI.form(
  3084. "源码编辑",
  3085. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3086. "id": "codeEdit",
  3087. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3088. "onresize": function () { }
  3089. }, {
  3090. closecallback: function () { }
  3091. }, { "style": { "height": "36px" } }).form; //创建窗体
  3092. _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); } }
  3093. break; //
  3094. case "MindMap": //MindMap
  3095. _formdiv = new U.UF.UI.form(
  3096. "MindMap",
  3097. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3098. "id": "MindMap",
  3099. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3100. "onresize": function () { }
  3101. }, {
  3102. closecallback: function () { }
  3103. }, { "style": { "height": "36px" } }).form; //创建窗体
  3104. _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); } }
  3105. break;
  3106. case "netWorkPanel": //netWorkPanel
  3107. _formdiv = new U.UF.UI.form(
  3108. "netWorkPanel",
  3109. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3110. "id": "netWorkPanel",
  3111. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3112. "onresize": function () { }
  3113. }, {
  3114. closecallback: function () { }
  3115. }, { "style": { "height": "36px" } }).form; //创建窗体
  3116. _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); } }
  3117. break;
  3118. case "GeoGebra": //GeoGebra
  3119. _formdiv = new U.UF.UI.form(
  3120. "GeoGebra",
  3121. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  3122. "id": "GeoGebra",
  3123. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3124. "onresize": function () { }
  3125. }, {
  3126. closecallback: function () { }
  3127. }, { "style": { "height": "36px" } }).form; //创建窗体
  3128. _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); } }
  3129. break;
  3130. case "translation": //翻译
  3131. _formdiv = new U.UF.UI.form(
  3132. "翻译",
  3133. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3134. "id": "translation",
  3135. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3136. "onresize": function () { }
  3137. }, {
  3138. closecallback: function () { }
  3139. }, { "style": { "height": "36px" } }).form; //创建窗体
  3140. _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); } }
  3141. break;
  3142. case "mohe": //魔盒
  3143. _formdiv = new U.UF.UI.form(
  3144. "魔盒识字",
  3145. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3146. "id": "mohe",
  3147. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3148. "onresize": function () { }
  3149. }, {
  3150. closecallback: function () { }
  3151. }, { "style": { "height": "36px" } }).form; //创建窗体
  3152. _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); } }
  3153. break;
  3154. case "24game": //24点
  3155. _formdiv = new U.UF.UI.form(
  3156. "24点",
  3157. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3158. "id": "24game",
  3159. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3160. "onresize": function () { }
  3161. }, {
  3162. closecallback: function () { }
  3163. }, { "style": { "height": "36px" } }).form; //创建窗体
  3164. _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); } }
  3165. break;
  3166. case "case":
  3167. _formdiv = new U.UF.UI.form(
  3168. "课程进展",
  3169. $$("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 }), {
  3170. "id": "case",
  3171. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3172. "onresize": function () { }
  3173. }, {
  3174. closecallback: function () { }
  3175. }, { "style": { "height": "36px" } }).form; //创建窗体
  3176. _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); } }
  3177. break;
  3178. case "snf":
  3179. _formdiv = new U.UF.UI.form(
  3180. "赛诺梵",
  3181. $$("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" }), {
  3182. "id": "snf",
  3183. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3184. "onresize": function () { }
  3185. }, {
  3186. closecallback: function () { }
  3187. }, { "style": { "height": "36px" } }).form; //创建窗体
  3188. _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); } }
  3189. break;
  3190. case "hanFamily":
  3191. _formdiv = new U.UF.UI.form(
  3192. "汉字家族",
  3193. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3194. "id": "hanFamily",
  3195. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3196. "onresize": function () { }
  3197. }, {
  3198. closecallback: function () { }
  3199. }, { "style": { "height": "36px" } }).form; //创建窗体
  3200. _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); } }
  3201. break;
  3202. case "hanClassics":
  3203. _formdiv = new U.UF.UI.form(
  3204. "国学经典",
  3205. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3206. "id": "hanClassics",
  3207. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3208. "onresize": function () { }
  3209. }, {
  3210. closecallback: function () { }
  3211. }, { "style": { "height": "36px" } }).form; //创建窗体
  3212. _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); } }
  3213. break;
  3214. case "hanTraining":
  3215. _formdiv = new U.UF.UI.form(
  3216. "笔画训练",
  3217. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3218. "id": "hanTraining",
  3219. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3220. "onresize": function () { }
  3221. }, {
  3222. closecallback: function () { }
  3223. }, { "style": { "height": "36px" } }).form; //创建窗体
  3224. _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); } }
  3225. break;
  3226. case "hanClass":
  3227. _formdiv = new U.UF.UI.form(
  3228. "书法课堂",
  3229. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3230. "id": "hanClass",
  3231. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3232. "onresize": function () { }
  3233. }, {
  3234. closecallback: function () { }
  3235. }, { "style": { "height": "36px" } }).form; //创建窗体
  3236. _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); } }
  3237. break;
  3238. case "han":
  3239. _formdiv = new U.UF.UI.form(
  3240. "汉字宫",
  3241. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3242. "id": "han",
  3243. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3244. "onresize": function () { }
  3245. }, {
  3246. closecallback: function () { }
  3247. }, { "style": { "height": "36px" } }).form; //创建窗体
  3248. _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); } }
  3249. break;
  3250. case "projectGM": //课程管理
  3251. _formdiv = new U.UF.UI.form(
  3252. "课程管理",
  3253. $$("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 }), {
  3254. "id": "projectGM",
  3255. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3256. "onresize": function () { }
  3257. }, {
  3258. closecallback: function () { }
  3259. }, { "style": { "height": "36px" } }).form; //创建窗体
  3260. _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); } }
  3261. break;
  3262. case "studyGM"://课程中心
  3263. _formdiv = new U.UF.UI.form(
  3264. "课程中心",
  3265. $$("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
  3266. "id": "study",
  3267. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3268. "onresize": function () { }
  3269. }, {
  3270. closecallback: function () { }
  3271. }, { "style": { "height": "36px" } }).form; //创建窗体
  3272. _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); } }
  3273. break;
  3274. // studentGM
  3275. case "studentGM"://学生管理
  3276. _formdiv = new U.UF.UI.form(
  3277. "学生管理",
  3278. $$("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 }), {
  3279. "id": "studentGM",
  3280. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3281. "onresize": function () { }
  3282. }, {
  3283. closecallback: function () { }
  3284. }, { "style": { "height": "36px" } }).form; //创建窗体
  3285. _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); } }
  3286. break;
  3287. case "evaluateGM"://学生评价
  3288. _formdiv = new U.UF.UI.form(
  3289. "学生评价",
  3290. $$("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 }), {
  3291. "id": "evaluateGM",
  3292. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3293. "onresize": function () { }
  3294. }, {
  3295. closecallback: function () { }
  3296. }, { "style": { "height": "36px" } }).form; //创建窗体
  3297. _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); } }
  3298. break;
  3299. // classGM
  3300. case "classGM"://班级管理
  3301. _formdiv = new U.UF.UI.form(
  3302. "班级管理",
  3303. $$("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 }), {
  3304. "id": "classGM",
  3305. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3306. "onresize": function () { }
  3307. }, {
  3308. closecallback: function () { }
  3309. }, { "style": { "height": "36px" } }).form; //创建窗体
  3310. _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); } }
  3311. break;
  3312. // dataGM
  3313. case "dataGM":
  3314. _formdiv = new U.UF.UI.form(
  3315. "我的资料",
  3316. $$("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 }), {
  3317. "id": "dataGM",
  3318. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3319. "onresize": function () { }
  3320. }, {
  3321. closecallback: function () { }
  3322. }, { "style": { "height": "36px" } }).form; //创建窗体
  3323. _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); } }
  3324. break;
  3325. // caseGM
  3326. case "caseGM"://课程进展
  3327. _formdiv = new U.UF.UI.form(
  3328. "课程进展",
  3329. $$("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 }), {
  3330. "id": "caseGM",
  3331. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3332. "onresize": function () { }
  3333. }, {
  3334. closecallback: function () { }
  3335. }, { "style": { "height": "36px" } }).form; //创建窗体
  3336. _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); } }
  3337. break;
  3338. // meterialGM
  3339. case "meterialGM"://素材库
  3340. _formdiv = new U.UF.UI.form(
  3341. "素材库",
  3342. $$("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 }), {
  3343. "id": "meterialGM",
  3344. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3345. "onresize": function () { }
  3346. }, {
  3347. closecallback: function () { }
  3348. }, { "style": { "height": "36px" } }).form; //创建窗体
  3349. _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); } }
  3350. break;
  3351. // evaluateSGM
  3352. case "evaluateSGM": //我的评价
  3353. _formdiv = new U.UF.UI.form(
  3354. "我的评价",
  3355. $$("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 }), {
  3356. "id": "evaluateSGM",
  3357. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3358. "onresize": function () { }
  3359. }, {
  3360. closecallback: function () { }
  3361. }, { "style": { "height": "36px" } }).form; //创建窗体
  3362. _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); } }
  3363. break;
  3364. case "jupyter": //jupyter
  3365. _formdiv = new U.UF.UI.form(
  3366. "jupyter",
  3367. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3368. "id": "jupyter",
  3369. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3370. "onresize": function () { }
  3371. }, {
  3372. closecallback: function () { }
  3373. }, { "style": { "height": "36px" } }).form; //创建窗体
  3374. _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); } }
  3375. break;
  3376. case "number": //数字实验室
  3377. _formdiv = new U.UF.UI.form(
  3378. "数字实验室",
  3379. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3380. "id": "number",
  3381. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3382. "onresize": function () { }
  3383. }, {
  3384. closecallback: function () { }
  3385. }, { "style": { "height": "36px" } }).form; //创建窗体
  3386. _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); } }
  3387. break;
  3388. case "studentCourse": //项目管理 学生
  3389. _formdiv = new U.UF.UI.form(
  3390. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3391. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  3392. "id": "studentCourse",
  3393. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3394. "onresize": function () { }
  3395. }, {
  3396. closecallback: function () { }
  3397. }, { "style": { "height": "36px" } }).form; //创建窗体
  3398. _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); } }
  3399. break;
  3400. case "studentCourseS": //项目管理 老师
  3401. _formdiv = new U.UF.UI.form(
  3402. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3403. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  3404. "id": "studentCourseS",
  3405. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3406. "onresize": function () { }
  3407. }, {
  3408. closecallback: function () { }
  3409. }, { "style": { "height": "36px" } }).form; //创建窗体
  3410. _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); } }
  3411. break;
  3412. case "studentIndex": //项目中心
  3413. _formdiv = new U.UF.UI.form(
  3414. "项目中心",
  3415. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  3416. "id": "studentIndex",
  3417. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3418. "onresize": function () { }
  3419. }, {
  3420. closecallback: function () { }
  3421. }, { "style": { "height": "36px" } }).form; //创建窗体
  3422. _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); } }
  3423. break;
  3424. case "CaseDesignS":
  3425. _formdiv = new U.UF.UI.form(
  3426. "项目进展",
  3427. $$("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 }), {
  3428. "id": "case",
  3429. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3430. "onresize": function () { }
  3431. }, {
  3432. closecallback: function () { }
  3433. }, { "style": { "height": "36px" } }).form; //创建窗体
  3434. _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); } }
  3435. break;
  3436. case "tcStudent": //腾讯学生管理
  3437. _formdiv = new U.UF.UI.form(
  3438. "学生管理",
  3439. $$("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 }), {
  3440. "id": "tcStudent",
  3441. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3442. "onresize": function () { }
  3443. }, {
  3444. closecallback: function () { }
  3445. }, { "style": { "height": "36px" } }).form; //创建窗体
  3446. _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); } }
  3447. break;
  3448. case "tcSchool": //腾讯学校管理
  3449. _formdiv = new U.UF.UI.form(
  3450. "学校管理",
  3451. $$("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 }), {
  3452. "id": "tcSchool",
  3453. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3454. "onresize": function () { }
  3455. }, {
  3456. closecallback: function () { }
  3457. }, { "style": { "height": "36px" } }).form; //创建窗体
  3458. _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); } }
  3459. break;
  3460. case "tcTeacher": //腾讯学校管理
  3461. _formdiv = new U.UF.UI.form(
  3462. "教师管理",
  3463. $$("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 }), {
  3464. "id": "tcTeacher",
  3465. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3466. "onresize": function () { }
  3467. }, {
  3468. closecallback: function () { }
  3469. }, { "style": { "height": "36px" } }).form; //创建窗体
  3470. _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); } }
  3471. break;
  3472. case "tcData": //腾讯我的资料
  3473. _formdiv = new U.UF.UI.form(
  3474. "我的资料",
  3475. $$("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 }), {
  3476. "id": "tcData",
  3477. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3478. "onresize": function () { }
  3479. }, {
  3480. closecallback: function () { }
  3481. }, { "style": { "height": "36px" } }).form; //创建窗体
  3482. _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); } }
  3483. break;
  3484. case "tcNotice": //腾讯消息通知
  3485. _formdiv = new U.UF.UI.form(
  3486. "消息通知",
  3487. $$("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 }), {
  3488. "id": "tcNotice",
  3489. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3490. "onresize": function () { }
  3491. }, {
  3492. closecallback: function () { }
  3493. }, { "style": { "height": "36px" } }).form; //创建窗体
  3494. _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); } }
  3495. break;
  3496. case "myReport": //好友打开
  3497. _formdiv = new U.UF.UI.form(
  3498. "我的评价",
  3499. $$("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 }), {
  3500. "id": "myReport",
  3501. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3502. "onresize": function () { }
  3503. }, {
  3504. closecallback: function () { }
  3505. }, { "style": { "height": "36px" } }).form; //创建窗体
  3506. _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); } }
  3507. break;
  3508. case "learnAna": //好友打开
  3509. _formdiv = new U.UF.UI.form(
  3510. "学习分析",
  3511. $$("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 }), {
  3512. "id": "learnAna",
  3513. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3514. "onresize": function () { }
  3515. }, {
  3516. closecallback: function () { }
  3517. }, { "style": { "height": "36px" } }).form; //创建窗体
  3518. _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); } }
  3519. break;
  3520. case "AIChat": //AI共创
  3521. _formdiv = new U.UF.UI.form(
  3522. "AI共创",
  3523. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3524. "id": "AIChat",
  3525. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3526. "onresize": function () { }
  3527. }, {
  3528. istop: true,
  3529. closecallback: function () { $("#aichat_icon").remove(); },
  3530. narrowcallback: function () {
  3531. if (!$("#aichat_icon")[0]) {
  3532. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3533. }
  3534. },
  3535. }, { "style": { "height": "36px" } }).form; //创建窗体
  3536. _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); } }
  3537. break;
  3538. case "ainew": //AI共创
  3539. _formdiv = new U.UF.UI.form(
  3540. "AI协同",
  3541. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ainew/" }), {
  3542. "id": "ainew",
  3543. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3544. "onresize": function () { }
  3545. }, {
  3546. closecallback: function () { }
  3547. }, { "style": { "height": "36px" } }).form; //创建窗体
  3548. _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); } }
  3549. break;
  3550. case "AIAnalyse": //AI共创
  3551. _formdiv = new U.UF.UI.form(
  3552. "AI分析",
  3553. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3554. "id": "AIAnalyse",
  3555. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3556. "onresize": function () { }
  3557. }, {
  3558. closecallback: function () { }
  3559. }, { "style": { "height": "36px" } }).form; //创建窗体
  3560. _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); } }
  3561. break;
  3562. case "studioCourse": //AI共创
  3563. _formdiv = new U.UF.UI.form(
  3564. "工作管理",
  3565. $$("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 }), {
  3566. "id": "studioCourse",
  3567. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3568. "onresize": function () { }
  3569. }, {
  3570. closecallback: function () { }
  3571. }, { "style": { "height": "36px" } }).form; //创建窗体
  3572. _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); } }
  3573. break;
  3574. case "studioIndex": //AI共创
  3575. _formdiv = new U.UF.UI.form(
  3576. "工作中心",
  3577. $$("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 }), {
  3578. "id": "studioIndex",
  3579. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3580. "onresize": function () { }
  3581. }, {
  3582. closecallback: function () { }
  3583. }, { "style": { "height": "36px" } }).form; //创建窗体
  3584. _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); } }
  3585. break;
  3586. case "source":
  3587. _formdiv = new U.UF.UI.form(
  3588. "教学资源",
  3589. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/teacherSource?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3590. "id": "source",
  3591. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3592. "onresize": function () { }
  3593. }, {
  3594. closecallback: function () { }
  3595. }, { "style": { "height": "36px" } }).form; //创建窗体
  3596. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/source.png)" }, "name": "教学资源", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3597. break;
  3598. }
  3599. //U.MD.D.I.openClick(str);
  3600. //如果有任务栏信息
  3601. if (_taskbar) {
  3602. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3603. }
  3604. }
  3605. // U.MD.D.I.openClick = function(str){
  3606. // var click = '';
  3607. // switch(str){
  3608. // case 'friend':
  3609. // click = '我的好友';
  3610. // break;
  3611. // case 'domain':
  3612. // click = '域名管理';
  3613. // break;
  3614. // case 'disk':
  3615. // click = '我的云盘';
  3616. // break;
  3617. // case 'word':
  3618. // click = 'Word';
  3619. // break;
  3620. // case 'excel':
  3621. // click = 'Execl';
  3622. // break;
  3623. // case 'txt':
  3624. // click = '文本文件';
  3625. // break;
  3626. // case 'lookupFriend':
  3627. // click = '查找好友';
  3628. // break;
  3629. // case 'ftp':
  3630. // click = 'FTP';
  3631. // break;
  3632. // case 'group':
  3633. // click = '群组';
  3634. // break;
  3635. // case 'set':
  3636. // click = '我的设置';
  3637. // break;
  3638. // case 'systemSet':
  3639. // click = '系统设置';
  3640. // break;
  3641. // case 'boomYun':
  3642. // click = '互联办公';
  3643. // break;
  3644. // case 'xz':
  3645. // click = '云端下载';
  3646. // break;
  3647. // case 'client':
  3648. // click = '有思浏览器';
  3649. // break;
  3650. // case 'backEndProgramming':
  3651. // click = '在线后台编程';
  3652. // break;
  3653. // case 'frontEndProgramming':
  3654. // click = '在线前端编程';
  3655. // break;
  3656. // default: break;
  3657. // }
  3658. // if(U.MD.D.I.Ip && click){
  3659. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3660. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3661. // })
  3662. // }
  3663. // }
  3664. /**
  3665. *函数作用:ajax简易函数,使用post格式
  3666. *@param url {data} 后台地址
  3667. *@param data {data} 参数json
  3668. *@param fn {data} 回调函数
  3669. *
  3670. */
  3671. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3672. // var xhr = new XMLHttpRequest();
  3673. // xhr.open("GET",url,true);
  3674. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3675. // xhr.onreadystatechange = function(){
  3676. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3677. // fn.call(this,xhr.responseText);
  3678. // }
  3679. // };
  3680. // xhr.send();
  3681. // }
  3682. /*判断是否是内网IP*/
  3683. // U.MD.D.I.isInnerIPFn = function(str){
  3684. // var curPageUrl = str;
  3685. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3686. // curPageUrl =curPageUrl.replace(reg1,'');
  3687. // // console.log('curPageUrl-1 '+curPageUrl);
  3688. // var reg2 = /\:+/g;//替换冒号为一点
  3689. // curPageUrl =curPageUrl.replace(reg2,'.');
  3690. // // console.log('curPageUrl-2 '+curPageUrl);
  3691. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3692. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3693. // if(curPageUrl[2] != '16'){
  3694. // return ipAddress;
  3695. // }else{
  3696. // return false;
  3697. // }
  3698. // }
  3699. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3700. // //compatibility for firefox and chrome
  3701. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3702. // var pc = new myPeerConnection({
  3703. // iceServers: []
  3704. // }),
  3705. // noop = function() {},
  3706. // localIPs = {},
  3707. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3708. // key;
  3709. // function iterateIP(ip) {
  3710. // if (!localIPs[ip]) onNewIP(ip);
  3711. // localIPs[ip] = true;
  3712. // }
  3713. // //create a bogus data channel
  3714. // pc.createDataChannel("");
  3715. // // create offer and set local description
  3716. // pc.createOffer().then(function(sdp) {
  3717. // sdp.sdp.split('\n').forEach(function(line) {
  3718. // if (line.indexOf('candidate') < 0) return;
  3719. // line.match(ipRegex).forEach(iterateIP);
  3720. // });
  3721. // pc.setLocalDescription(sdp, noop, noop);
  3722. // }).catch(function(reason) {
  3723. // // An error occurred, so handle the failure to connect
  3724. // });
  3725. // //sten for candidate events
  3726. // pc.onicecandidate = function(ice) {
  3727. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3728. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3729. // };
  3730. // }
  3731. // U.MD.D.I.getUserIpBool = function(callback){
  3732. // U.MD.D.I.getUserIP(function(ip){
  3733. // alert("Got IP! :" + ip);
  3734. // });
  3735. //}
  3736. //#endregion
  3737. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3738. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3739. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3740. _userinfo = US.userInfo, //登录用户信息
  3741. _userid = US.userInfo.userid //登录用户id
  3742. let _iframe;
  3743. let _cid = cid,
  3744. _stage = stage,
  3745. _task = task,
  3746. _tool = tool;
  3747. var _jie = $$("div", {
  3748. "style": {
  3749. "position": "absolute",
  3750. "bottom": "50px",
  3751. "right": "50px",
  3752. "zIndex": "9999",
  3753. "backgroundColor": "#2268bc",
  3754. "color": "#fff",
  3755. "padding": "12px 20px",
  3756. "cursor": "pointer",
  3757. "borderRadius": "4px",
  3758. },
  3759. "innerHTML": "提交作业"
  3760. })
  3761. let aTool = ''
  3762. let _loading = document.createElement('div')
  3763. _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;"
  3764. // _loading.id = "";
  3765. let _lchild = document.createElement('div')
  3766. let _limg = document.createElement('img')
  3767. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3768. _limg.style = "width: 26px;margin-right: 10px;"
  3769. _lchild.appendChild(_limg)
  3770. let _lspan = document.createElement('span')
  3771. _lspan.innerHTML = "上传中..."
  3772. _lchild.appendChild(_lspan)
  3773. _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%);"
  3774. _loading.appendChild(_lchild)
  3775. var _box = $$('div', {
  3776. "style": {
  3777. "position": "relative",
  3778. "width": "100%",
  3779. "height": "100%",
  3780. },
  3781. })
  3782. _box.appendChild(_loading)
  3783. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool+_userid
  3784. switch (str) {
  3785. case "whiteboard":
  3786. aTool = 1;
  3787. _iframe = $$("iframe", {
  3788. "frameborder": "no",
  3789. "border": "0",
  3790. "scrolling ": "no",
  3791. "style": {
  3792. "cssText": "border:0;width:100%;height:100%"
  3793. },
  3794. "src": "https://iwb.cocorobo.cn/"
  3795. })
  3796. _box.appendChild(_iframe);
  3797. _box.appendChild(_jie);
  3798. _formdiv = new U.UF.UI.form(
  3799. "电子白板",
  3800. _box, {
  3801. "id": "whiteboard" + cid + stage + task + tool,
  3802. "style": {
  3803. "width": "90%",
  3804. "height": "90%",
  3805. "overflow": 'hidden'
  3806. },
  3807. "onresize": function () { }
  3808. }, {
  3809. closecallback: function () { }
  3810. }, {
  3811. "style": {
  3812. "height": "36px"
  3813. }
  3814. }).form; //创建窗体
  3815. _taskbar = {
  3816. "id": str + _formdiv.id,
  3817. "style": {
  3818. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3819. },
  3820. "name": "电子白板",
  3821. "forms": _formdiv,
  3822. "click": function () {
  3823. U.MD.D.I.openApplication(str, obj, info);
  3824. }
  3825. }
  3826. break;
  3827. case "mind":
  3828. aTool = 3;
  3829. _iframe = $$("iframe", {
  3830. "frameborder": "no",
  3831. "border": "0",
  3832. "scrolling ": "no",
  3833. "style": {
  3834. "cssText": "border:0;width:100%;height:100%"
  3835. },
  3836. "src": "/kityminder-editor/dist/index.html"
  3837. })
  3838. _box.appendChild(_iframe);
  3839. _box.appendChild(_jie);
  3840. _formdiv = new U.UF.UI.form(
  3841. "思维导图",
  3842. _box, { //"/jsmind/example/demo.html"
  3843. "id": "mind" + cid + stage + task + tool,
  3844. "style": {
  3845. "width": "90%",
  3846. "height": "90%",
  3847. "overflow": 'hidden'
  3848. },
  3849. "onresize": function () { }
  3850. }, {
  3851. closecallback: function () { }
  3852. }, {
  3853. "style": {
  3854. "height": "36px"
  3855. }
  3856. }).form; //创建窗体
  3857. _taskbar = {
  3858. "id": str + _formdiv.id,
  3859. "style": {
  3860. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3861. },
  3862. "name": "思维导图",
  3863. "forms": _formdiv,
  3864. "click": function () {
  3865. U.MD.D.I.openApplication(str, obj, info);
  3866. }
  3867. }
  3868. break;
  3869. case "MindMap":
  3870. aTool = 3;
  3871. _iframe = $$("iframe", {
  3872. "frameborder": "no",
  3873. "border": "0",
  3874. "scrolling ": "no",
  3875. "style": {
  3876. "cssText": "border:0;width:100%;height:100%"
  3877. },
  3878. "src": "//cloud.cocorobo.cn/mind/"
  3879. })
  3880. _box.appendChild(_iframe);
  3881. _box.appendChild(_jie);
  3882. _formdiv = new U.UF.UI.form(
  3883. "思维导图",
  3884. _box, { //"/jsmind/example/demo.html"
  3885. "id": "mind" + cid + stage + task + tool,
  3886. "style": {
  3887. "width": "90%",
  3888. "height": "90%",
  3889. "overflow": 'hidden'
  3890. },
  3891. "onresize": function () { }
  3892. }, {
  3893. closecallback: function () { }
  3894. }, {
  3895. "style": {
  3896. "height": "36px"
  3897. }
  3898. }).form; //创建窗体
  3899. _taskbar = {
  3900. "id": str + _formdiv.id,
  3901. "style": {
  3902. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3903. },
  3904. "name": "思维导图",
  3905. "forms": _formdiv,
  3906. "click": function () {
  3907. U.MD.D.I.openApplication(str, obj, info);
  3908. }
  3909. }
  3910. break;
  3911. case "doc":
  3912. aTool = 6;
  3913. _iframe = $$("iframe", {
  3914. "frameborder": "no",
  3915. "border": "0",
  3916. "scrolling ": "no",
  3917. "style": {
  3918. "cssText": "border:0;width:100%;height:100%"
  3919. },
  3920. "src": "/Office/Word/WordEditArea.htm"
  3921. })
  3922. _box.appendChild(_iframe);
  3923. _box.appendChild(_jie);
  3924. _formdiv = new U.UF.UI.form(
  3925. "协同文档",
  3926. _box, {
  3927. "id": "doc" + cid + stage + task + tool,
  3928. "style": {
  3929. "width": "90%",
  3930. "height": "90%",
  3931. "overflow": 'hidden'
  3932. },
  3933. "onresize": function () { }
  3934. }, {
  3935. closecallback: function () { }
  3936. }, {
  3937. "style": {
  3938. "height": "36px"
  3939. }
  3940. }).form; //创建窗体
  3941. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3942. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3943. })
  3944. _taskbar = {
  3945. "id": str + _formdiv.id,
  3946. "style": {
  3947. "backgroundImage": "url(/img/icon/doc.png)"
  3948. },
  3949. "name": "协同文档",
  3950. "forms": _formdiv,
  3951. "click": function () {
  3952. U.MD.D.I.openApplication(str, obj, info);
  3953. }
  3954. }
  3955. break;
  3956. case "mindNetwork": //好友打开
  3957. aTool = 7;
  3958. _iframe = $$("iframe", {
  3959. "webkitallowfullscreen": "",
  3960. "mozallowfullscreen": "",
  3961. "allowfullscreen": "",
  3962. "frameborder": "no",
  3963. "border": "0",
  3964. "scrolling ": "no",
  3965. "style": {
  3966. "cssText": "border:0; width:100%; height:100%;"
  3967. },
  3968. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3969. })
  3970. _box.appendChild(_iframe);
  3971. _box.appendChild(_jie);
  3972. _formdiv = new U.UF.UI.form(
  3973. "思维网格",
  3974. _box, {
  3975. "id": "mindNetwork" + cid + stage + task + tool,
  3976. "style": {
  3977. "width": "90%",
  3978. "height": "90%",
  3979. "overflow": 'hidden'
  3980. },
  3981. "onresize": function () { }
  3982. }, {
  3983. closecallback: function () { }
  3984. }, {
  3985. "style": {
  3986. "height": "36px"
  3987. }
  3988. }).form; //创建窗体
  3989. _taskbar = {
  3990. "id": str + _formdiv.id,
  3991. "style": {
  3992. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3993. },
  3994. "name": "思维网格",
  3995. "forms": _formdiv,
  3996. "click": function () {
  3997. U.MD.D.I.openApplication(str, obj, info);
  3998. }
  3999. }
  4000. break;
  4001. case "courseDesign":
  4002. _iframe = $$("iframe", {
  4003. "webkitallowfullscreen": "",
  4004. "mozallowfullscreen": "",
  4005. "allowfullscreen": "",
  4006. "frameborder": "no",
  4007. "border": "0",
  4008. "scrolling ": "no",
  4009. "style": {
  4010. "cssText": "border:0; width:100%; height:100%;"
  4011. },
  4012. "src": "/course-design-vue"
  4013. })
  4014. _box.appendChild(_iframe);
  4015. _box.appendChild(_jie);
  4016. _formdiv = new U.UF.UI.form(
  4017. "项目设计",
  4018. _box, {
  4019. "id": "courseDesign" + cid + stage + task + tool,
  4020. "style": {
  4021. "width": "90%",
  4022. "height": "90%",
  4023. "overflow": 'hidden'
  4024. },
  4025. "onresize": function () { }
  4026. }, {
  4027. closecallback: function () { }
  4028. }, {
  4029. "style": {
  4030. "height": "36px"
  4031. }
  4032. }).form; //创建窗体
  4033. _taskbar = {
  4034. "id": str + _formdiv.id,
  4035. "style": {
  4036. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4037. },
  4038. "name": "项目设计",
  4039. "forms": _formdiv,
  4040. "click": function () {
  4041. U.MD.D.I.openApplication(str, obj, info);
  4042. }
  4043. }
  4044. break;
  4045. }
  4046. const script1 = document.createElement("script");
  4047. script1.type = "text/javascript";
  4048. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4049. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4050. const script2 = document.createElement("script");
  4051. script2.type = "text/javascript";
  4052. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4053. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4054. const script3 = document.createElement("script");
  4055. script3.type = "text/javascript";
  4056. script3.charset = "UTF-8";
  4057. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4058. const script4 = document.createElement("script");
  4059. script4.type = "text/javascript";
  4060. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4061. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4062. if (_iframe) {
  4063. if (str == 'doc') {
  4064. _iframe = _formdiv.querySelector('iframe')
  4065. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4066. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4067. _iframe.contentWindow.document.body.appendChild(script1);
  4068. _iframe.contentWindow.document.body.appendChild(script2);
  4069. // _iframe.contentWindow.document.body.appendChild(script3);
  4070. _iframe.contentWindow.document.body.appendChild(script4);
  4071. })
  4072. if (onloadListener) {
  4073. _iframe.contentDocument.location.reload()
  4074. } else {
  4075. _iframe.contentDocument.location.reload()
  4076. }
  4077. } else if (str == 'courseDesign') {
  4078. U.UF.DL.iframeLoad(_iframe, function () {
  4079. // _iframe.contentWindow.U.MD.O.W.load();
  4080. // _iframe.contentWindow.document.body.appendChild(script1);
  4081. _iframe.contentWindow.document.body.appendChild(script2);
  4082. _iframe.contentWindow.document.body.appendChild(script4);
  4083. })
  4084. } else if (str == 'mind') {
  4085. _iframe = _formdiv.querySelector('iframe')
  4086. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4087. //
  4088. _iframe.contentWindow.document.body.appendChild(script1);
  4089. _iframe.contentWindow.document.body.appendChild(script2);
  4090. _iframe.contentWindow.document.body.appendChild(script4);
  4091. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4092. })
  4093. if (onloadListener) {
  4094. _iframe.contentDocument.location.reload()
  4095. } else {
  4096. _iframe.contentDocument.location.reload()
  4097. }
  4098. } else if (str == 'whiteboard') {
  4099. _iframe = _formdiv.querySelector('iframe')
  4100. let onloadListener = _iframe.onload = () => {
  4101. _iframe.contentWindow.document.body.appendChild(script1);
  4102. _iframe.contentWindow.document.body.appendChild(script2);
  4103. _iframe.contentWindow.document.body.appendChild(script4);
  4104. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4105. };
  4106. if (onloadListener) {
  4107. _iframe.contentDocument.location.reload()
  4108. } else {
  4109. _iframe.contentDocument.location.reload()
  4110. }
  4111. } else {
  4112. _iframe.onload = () => {
  4113. _iframe.contentWindow.document.body.appendChild(script1);
  4114. _iframe.contentWindow.document.body.appendChild(script2);
  4115. // _iframe.contentWindow.document.body.appendChild(script3);
  4116. _iframe.contentWindow.document.body.appendChild(script4);
  4117. };
  4118. }
  4119. _jie.onclick = async () => {
  4120. let text = ''
  4121. if (aTool == 1) {
  4122. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4123. } else if (aTool == 6) {
  4124. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4125. } else if (aTool == 3) {
  4126. text = await U.MD.D.I.getEditorContent(_iframe);
  4127. }
  4128. _loading.style.display = 'flex'
  4129. console.log(_loading);
  4130. var _ajs = _iframe.contentWindow.document.createElement("script");
  4131. _ajs.type = "text/javascript";
  4132. _ajs.innerHTML =
  4133. // 'console.log(' + _loading + ');\n' +
  4134. 'var _js = document.createElement("script");\n' +
  4135. '_js.type="text/javascript";\n' +
  4136. '_js.charset="UTF-8";\n' +
  4137. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4138. "_js.onload = function(){\n" +
  4139. ' var a = document.getElementsByTagName("img")\n' +
  4140. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4141. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4142. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4143. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4144. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4145. "beforeUpload_shishi(file," +
  4146. "'" +
  4147. _userid +
  4148. "'" +
  4149. ", " +
  4150. "'" +
  4151. _cid +
  4152. "'" +
  4153. ", " +
  4154. "'" +
  4155. _stage +
  4156. "'" +
  4157. ", " +
  4158. "'" +
  4159. _task +
  4160. "'" +
  4161. ", " +
  4162. "'" +
  4163. _tool +
  4164. "'" +
  4165. ", " +
  4166. "'" +
  4167. (str + '_loadLi_Jie' + cid + stage + task + tool+_userid) +
  4168. "'" +
  4169. ", " +
  4170. "'" +
  4171. aTool +
  4172. "'" +
  4173. ", " +
  4174. "`" +
  4175. text +
  4176. "`" +
  4177. ")\n" +
  4178. " });\n" +
  4179. "}\n" +
  4180. "document.head.appendChild(_js);\n";
  4181. _iframe.contentWindow.document.head.appendChild(_ajs);
  4182. }
  4183. }
  4184. //U.MD.D.I.openClick(str);
  4185. //如果有任务栏信息
  4186. // if (_taskbar) {
  4187. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4188. // }
  4189. }
  4190. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4191. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4192. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4193. _userinfo = US.userInfo, //登录用户信息
  4194. _userid = US.userInfo.userid //登录用户id
  4195. let _iframe;
  4196. let _cid = cid,
  4197. _stage = stage,
  4198. _task = task,
  4199. _tool = tool;
  4200. var _jie = $$("div", {
  4201. "style": {
  4202. "position": "absolute",
  4203. "bottom": "50px",
  4204. "right": "50px",
  4205. "zIndex": "9999",
  4206. "backgroundColor": "#2268bc",
  4207. "color": "#fff",
  4208. "padding": "12px 20px",
  4209. "cursor": "pointer",
  4210. "borderRadius": "4px",
  4211. },
  4212. "innerHTML": "提交作业"
  4213. })
  4214. let aTool = ''
  4215. let _loading = document.createElement('div')
  4216. _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;"
  4217. // _loading.id = "";
  4218. let _lchild = document.createElement('div')
  4219. let _limg = document.createElement('img')
  4220. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4221. _limg.style = "width: 26px;margin-right: 10px;"
  4222. _lchild.appendChild(_limg)
  4223. let _lspan = document.createElement('span')
  4224. _lspan.innerHTML = "上传中..."
  4225. _lchild.appendChild(_lspan)
  4226. _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%);"
  4227. _loading.appendChild(_lchild)
  4228. var _box = $$('div', {
  4229. "style": {
  4230. "position": "relative",
  4231. "width": "100%",
  4232. "height": "100%",
  4233. },
  4234. })
  4235. _box.appendChild(_loading)
  4236. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool+_userid
  4237. switch (str) {
  4238. case "whiteboard":
  4239. aTool = 1;
  4240. _iframe = $$("iframe", {
  4241. "frameborder": "no",
  4242. "border": "0",
  4243. "scrolling ": "no",
  4244. "style": {
  4245. "cssText": "border:0;width:100%;height:100%"
  4246. },
  4247. "src": "https://iwb.cocorobo.cn/"
  4248. })
  4249. _box.appendChild(_iframe);
  4250. _box.appendChild(_jie);
  4251. _formdiv = new U.UF.UI.form(
  4252. "电子白板",
  4253. _box, {
  4254. "id": "whiteboard" + cid + stage + task + tool,
  4255. "style": {
  4256. "width": "90%",
  4257. "height": "90%",
  4258. "overflow": 'hidden'
  4259. },
  4260. "onresize": function () { }
  4261. }, {
  4262. closecallback: function () { }
  4263. }, {
  4264. "style": {
  4265. "height": "36px"
  4266. }
  4267. }).form; //创建窗体
  4268. _taskbar = {
  4269. "id": str + _formdiv.id,
  4270. "style": {
  4271. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4272. },
  4273. "name": "电子白板",
  4274. "forms": _formdiv,
  4275. "click": function () {
  4276. U.MD.D.I.openApplication(str, obj, info);
  4277. }
  4278. }
  4279. break;
  4280. case "mind":
  4281. aTool = 3;
  4282. _iframe = $$("iframe", {
  4283. "frameborder": "no",
  4284. "border": "0",
  4285. "scrolling ": "no",
  4286. "style": {
  4287. "cssText": "border:0;width:100%;height:100%"
  4288. },
  4289. "src": "/kityminder-editor/dist/index.html"
  4290. })
  4291. _box.appendChild(_iframe);
  4292. _box.appendChild(_jie);
  4293. _formdiv = new U.UF.UI.form(
  4294. "思维导图",
  4295. _box, { //"/jsmind/example/demo.html"
  4296. "id": "mind" + cid + stage + task + tool,
  4297. "style": {
  4298. "width": "90%",
  4299. "height": "90%",
  4300. "overflow": 'hidden'
  4301. },
  4302. "onresize": function () { }
  4303. }, {
  4304. closecallback: function () { }
  4305. }, {
  4306. "style": {
  4307. "height": "36px"
  4308. }
  4309. }).form; //创建窗体
  4310. _taskbar = {
  4311. "id": str + _formdiv.id,
  4312. "style": {
  4313. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4314. },
  4315. "name": "思维导图",
  4316. "forms": _formdiv,
  4317. "click": function () {
  4318. U.MD.D.I.openApplication(str, obj, info);
  4319. }
  4320. }
  4321. break;
  4322. case "MindMap":
  4323. aTool = 3;
  4324. _iframe = $$("iframe", {
  4325. "frameborder": "no",
  4326. "border": "0",
  4327. "scrolling ": "no",
  4328. "style": {
  4329. "cssText": "border:0;width:100%;height:100%"
  4330. },
  4331. "src": "//cloud.cocorobo.cn/mind/"
  4332. })
  4333. _box.appendChild(_iframe);
  4334. _box.appendChild(_jie);
  4335. _formdiv = new U.UF.UI.form(
  4336. "思维导图",
  4337. _box, { //"/jsmind/example/demo.html"
  4338. "id": "mind" + cid + stage + task + tool,
  4339. "style": {
  4340. "width": "90%",
  4341. "height": "90%",
  4342. "overflow": 'hidden'
  4343. },
  4344. "onresize": function () { }
  4345. }, {
  4346. closecallback: function () { }
  4347. }, {
  4348. "style": {
  4349. "height": "36px"
  4350. }
  4351. }).form; //创建窗体
  4352. _taskbar = {
  4353. "id": str + _formdiv.id,
  4354. "style": {
  4355. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4356. },
  4357. "name": "思维导图",
  4358. "forms": _formdiv,
  4359. "click": function () {
  4360. U.MD.D.I.openApplication(str, obj, info);
  4361. }
  4362. }
  4363. break;
  4364. case "doc":
  4365. aTool = 6;
  4366. _iframe = $$("iframe", {
  4367. "frameborder": "no",
  4368. "border": "0",
  4369. "scrolling ": "no",
  4370. "style": {
  4371. "cssText": "border:0;width:100%;height:100%"
  4372. },
  4373. "src": "/Office/Word/WordEditArea.htm"
  4374. })
  4375. _box.appendChild(_iframe);
  4376. _box.appendChild(_jie);
  4377. _formdiv = new U.UF.UI.form(
  4378. "协同文档",
  4379. _box, {
  4380. "id": "doc" + cid + stage + task + tool,
  4381. "style": {
  4382. "width": "90%",
  4383. "height": "90%",
  4384. "overflow": 'hidden'
  4385. },
  4386. "onresize": function () { }
  4387. }, {
  4388. closecallback: function () { }
  4389. }, {
  4390. "style": {
  4391. "height": "36px"
  4392. }
  4393. }).form; //创建窗体
  4394. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4395. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4396. })
  4397. _taskbar = {
  4398. "id": str + _formdiv.id,
  4399. "style": {
  4400. "backgroundImage": "url(/img/icon/doc.png)"
  4401. },
  4402. "name": "协同文档",
  4403. "forms": _formdiv,
  4404. "click": function () {
  4405. U.MD.D.I.openApplication(str, obj, info);
  4406. }
  4407. }
  4408. break;
  4409. case "mindNetwork": //好友打开
  4410. aTool = 7;
  4411. _iframe = $$("iframe", {
  4412. "webkitallowfullscreen": "",
  4413. "mozallowfullscreen": "",
  4414. "allowfullscreen": "",
  4415. "frameborder": "no",
  4416. "border": "0",
  4417. "scrolling ": "no",
  4418. "style": {
  4419. "cssText": "border:0; width:100%; height:100%;"
  4420. },
  4421. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4422. })
  4423. _box.appendChild(_iframe);
  4424. _box.appendChild(_jie);
  4425. _formdiv = new U.UF.UI.form(
  4426. "思维网格",
  4427. _box, {
  4428. "id": "mindNetwork" + cid + stage + task + tool,
  4429. "style": {
  4430. "width": "90%",
  4431. "height": "90%",
  4432. "overflow": 'hidden'
  4433. },
  4434. "onresize": function () { }
  4435. }, {
  4436. closecallback: function () { }
  4437. }, {
  4438. "style": {
  4439. "height": "36px"
  4440. }
  4441. }).form; //创建窗体
  4442. _taskbar = {
  4443. "id": str + _formdiv.id,
  4444. "style": {
  4445. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4446. },
  4447. "name": "思维网格",
  4448. "forms": _formdiv,
  4449. "click": function () {
  4450. U.MD.D.I.openApplication(str, obj, info);
  4451. }
  4452. }
  4453. break;
  4454. case "courseDesign":
  4455. _iframe = $$("iframe", {
  4456. "webkitallowfullscreen": "",
  4457. "mozallowfullscreen": "",
  4458. "allowfullscreen": "",
  4459. "frameborder": "no",
  4460. "border": "0",
  4461. "scrolling ": "no",
  4462. "style": {
  4463. "cssText": "border:0; width:100%; height:100%;"
  4464. },
  4465. "src": "/course-design-vue"
  4466. })
  4467. _box.appendChild(_iframe);
  4468. _box.appendChild(_jie);
  4469. _formdiv = new U.UF.UI.form(
  4470. "项目设计",
  4471. _box, {
  4472. "id": "courseDesign" + cid + stage + task + tool,
  4473. "style": {
  4474. "width": "90%",
  4475. "height": "90%",
  4476. "overflow": 'hidden'
  4477. },
  4478. "onresize": function () { }
  4479. }, {
  4480. closecallback: function () { }
  4481. }, {
  4482. "style": {
  4483. "height": "36px"
  4484. }
  4485. }).form; //创建窗体
  4486. _taskbar = {
  4487. "id": str + _formdiv.id,
  4488. "style": {
  4489. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4490. },
  4491. "name": "项目设计",
  4492. "forms": _formdiv,
  4493. "click": function () {
  4494. U.MD.D.I.openApplication(str, obj, info);
  4495. }
  4496. }
  4497. break;
  4498. }
  4499. const script1 = document.createElement("script");
  4500. script1.type = "text/javascript";
  4501. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4502. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4503. const script2 = document.createElement("script");
  4504. script2.type = "text/javascript";
  4505. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4506. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4507. const script3 = document.createElement("script");
  4508. script3.type = "text/javascript";
  4509. script3.charset = "UTF-8";
  4510. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4511. const script4 = document.createElement("script");
  4512. script4.type = "text/javascript";
  4513. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4514. script4.src = window.origin + "/js/Common/jietu2E.js";
  4515. if (_iframe) {
  4516. if (str == 'doc') {
  4517. _iframe = _formdiv.querySelector('iframe')
  4518. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4519. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4520. _iframe.contentWindow.document.body.appendChild(script1);
  4521. _iframe.contentWindow.document.body.appendChild(script2);
  4522. // _iframe.contentWindow.document.body.appendChild(script3);
  4523. _iframe.contentWindow.document.body.appendChild(script4);
  4524. })
  4525. if (onloadListener) {
  4526. _iframe.contentDocument.location.reload()
  4527. } else {
  4528. _iframe.contentDocument.location.reload()
  4529. }
  4530. } else if (str == 'courseDesign') {
  4531. U.UF.DL.iframeLoad(_iframe, function () {
  4532. // _iframe.contentWindow.U.MD.O.W.load();
  4533. // _iframe.contentWindow.document.body.appendChild(script1);
  4534. _iframe.contentWindow.document.body.appendChild(script2);
  4535. _iframe.contentWindow.document.body.appendChild(script4);
  4536. })
  4537. } else if (str == 'mind') {
  4538. _iframe = _formdiv.querySelector('iframe')
  4539. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4540. //
  4541. _iframe.contentWindow.document.body.appendChild(script1);
  4542. _iframe.contentWindow.document.body.appendChild(script2);
  4543. _iframe.contentWindow.document.body.appendChild(script4);
  4544. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4545. })
  4546. if (onloadListener) {
  4547. _iframe.contentDocument.location.reload()
  4548. } else {
  4549. _iframe.contentDocument.location.reload()
  4550. }
  4551. } else if (str == 'whiteboard') {
  4552. _iframe = _formdiv.querySelector('iframe')
  4553. let onloadListener = _iframe.onload = () => {
  4554. _iframe.contentWindow.document.body.appendChild(script1);
  4555. _iframe.contentWindow.document.body.appendChild(script2);
  4556. _iframe.contentWindow.document.body.appendChild(script4);
  4557. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4558. };
  4559. if (onloadListener) {
  4560. _iframe.contentDocument.location.reload()
  4561. } else {
  4562. _iframe.contentDocument.location.reload()
  4563. }
  4564. } else {
  4565. _iframe.onload = () => {
  4566. _iframe.contentWindow.document.body.appendChild(script1);
  4567. _iframe.contentWindow.document.body.appendChild(script2);
  4568. // _iframe.contentWindow.document.body.appendChild(script3);
  4569. _iframe.contentWindow.document.body.appendChild(script4);
  4570. };
  4571. }
  4572. _jie.onclick = async () => {
  4573. let text = ''
  4574. if (aTool == 1) {
  4575. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4576. } else if (aTool == 6) {
  4577. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4578. } else if (aTool == 3) {
  4579. text = await U.MD.D.I.getEditorContent(_iframe);
  4580. }
  4581. _loading.style.display = 'flex'
  4582. console.log(_loading);
  4583. var _ajs = _iframe.contentWindow.document.createElement("script");
  4584. _ajs.type = "text/javascript";
  4585. _ajs.innerHTML =
  4586. // 'console.log(' + _loading + ');\n' +
  4587. 'var _js = document.createElement("script");\n' +
  4588. '_js.type="text/javascript";\n' +
  4589. '_js.charset="UTF-8";\n' +
  4590. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4591. "_js.onload = function(){\n" +
  4592. ' var a = document.getElementsByTagName("img")\n' +
  4593. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4594. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4595. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4596. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4597. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4598. "beforeUpload_shishi(file," +
  4599. "'" +
  4600. _userid +
  4601. "'" +
  4602. ", " +
  4603. "'" +
  4604. _cid +
  4605. "'" +
  4606. ", " +
  4607. "'" +
  4608. _stage +
  4609. "'" +
  4610. ", " +
  4611. "'" +
  4612. _task +
  4613. "'" +
  4614. ", " +
  4615. "'" +
  4616. _tool +
  4617. "'" +
  4618. ", " +
  4619. "'" +
  4620. (str + '_loadLi_JieE' + cid + stage + task + tool+_userid) +
  4621. "'" +
  4622. ", " +
  4623. "'" +
  4624. aTool +
  4625. "'" +
  4626. ", " +
  4627. "`" +
  4628. text +
  4629. "`" +
  4630. ")\n" +
  4631. " });\n" +
  4632. "}\n" +
  4633. "document.head.appendChild(_js);\n";
  4634. _iframe.contentWindow.document.head.appendChild(_ajs);
  4635. }
  4636. }
  4637. //U.MD.D.I.openClick(str);
  4638. //如果有任务栏信息
  4639. // if (_taskbar) {
  4640. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4641. // }
  4642. }
  4643. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4644. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4645. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4646. _userid = student.userid, //登录用户id
  4647. _username = student.student //用户名字
  4648. let _iframe;
  4649. let _cid = cid,
  4650. _stage = stage,
  4651. _task = task,
  4652. _tool = tool;
  4653. var _jie = $$("div", {
  4654. "style": {
  4655. "position": "absolute",
  4656. "bottom": "50px",
  4657. "right": "50px",
  4658. "zIndex": "9999",
  4659. "backgroundColor": "#2268bc",
  4660. "color": "#fff",
  4661. "padding": "12px 20px",
  4662. "cursor": "pointer",
  4663. "borderRadius": "4px",
  4664. },
  4665. "innerHTML": "提交作业"
  4666. })
  4667. let aTool = ''
  4668. let _loading = document.createElement('div')
  4669. _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;"
  4670. // _loading.id = "";
  4671. let _lchild = document.createElement('div')
  4672. let _limg = document.createElement('img')
  4673. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4674. _limg.style = "width: 26px;margin-right: 10px;"
  4675. _lchild.appendChild(_limg)
  4676. let _lspan = document.createElement('span')
  4677. _lspan.innerHTML = "上传中..."
  4678. _lchild.appendChild(_lspan)
  4679. _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%);"
  4680. _loading.appendChild(_lchild)
  4681. var _box = $$('div', {
  4682. "style": {
  4683. "position": "relative",
  4684. "width": "100%",
  4685. "height": "100%",
  4686. },
  4687. })
  4688. _box.appendChild(_loading)
  4689. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid
  4690. switch (str) {
  4691. case "whiteboard":
  4692. aTool = 1;
  4693. _iframe = $$("iframe", {
  4694. "frameborder": "no",
  4695. "border": "0",
  4696. "scrolling ": "no",
  4697. "style": {
  4698. "cssText": "border:0;width:100%;height:100%"
  4699. },
  4700. "src": "https://iwb.cocorobo.cn/"
  4701. })
  4702. _box.appendChild(_iframe);
  4703. _box.appendChild(_jie);
  4704. _formdiv = new U.UF.UI.form(
  4705. "电子白板-" + _username,
  4706. _box, {
  4707. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4708. "style": {
  4709. "width": "90%",
  4710. "height": "90%",
  4711. "overflow": 'hidden'
  4712. },
  4713. "onresize": function () { }
  4714. }, {
  4715. closecallback: function () { }
  4716. }, {
  4717. "style": {
  4718. "height": "36px"
  4719. }
  4720. }).form; //创建窗体
  4721. _taskbar = {
  4722. "id": str + _formdiv.id,
  4723. "style": {
  4724. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4725. },
  4726. "name": "电子白板",
  4727. "forms": _formdiv,
  4728. "click": function () {
  4729. U.MD.D.I.openApplication(str, obj, info);
  4730. }
  4731. }
  4732. break;
  4733. case "mind":
  4734. aTool = 3;
  4735. _iframe = $$("iframe", {
  4736. "frameborder": "no",
  4737. "border": "0",
  4738. "scrolling ": "no",
  4739. "style": {
  4740. "cssText": "border:0;width:100%;height:100%"
  4741. },
  4742. "src": "/kityminder-editor/dist/index.html"
  4743. })
  4744. _box.appendChild(_iframe);
  4745. _box.appendChild(_jie);
  4746. _formdiv = new U.UF.UI.form(
  4747. "思维导图-" + _username,
  4748. _box, { //"/jsmind/example/demo.html"
  4749. "id": "mind" + cid + stage + task + tool + _userid,
  4750. "style": {
  4751. "width": "90%",
  4752. "height": "90%",
  4753. "overflow": 'hidden'
  4754. },
  4755. "onresize": function () { }
  4756. }, {
  4757. closecallback: function () { }
  4758. }, {
  4759. "style": {
  4760. "height": "36px"
  4761. }
  4762. }).form; //创建窗体
  4763. _taskbar = {
  4764. "id": str + _formdiv.id,
  4765. "style": {
  4766. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4767. },
  4768. "name": "思维导图",
  4769. "forms": _formdiv,
  4770. "click": function () {
  4771. U.MD.D.I.openApplication(str, obj, info);
  4772. }
  4773. }
  4774. break;
  4775. case "MindMap":
  4776. aTool = 3;
  4777. _iframe = $$("iframe", {
  4778. "frameborder": "no",
  4779. "border": "0",
  4780. "scrolling ": "no",
  4781. "style": {
  4782. "cssText": "border:0;width:100%;height:100%"
  4783. },
  4784. "src": "//cloud.cocorobo.cn/mind/"
  4785. })
  4786. _box.appendChild(_iframe);
  4787. _box.appendChild(_jie);
  4788. _formdiv = new U.UF.UI.form(
  4789. "思维导图-" + _username,
  4790. _box, { //"/jsmind/example/demo.html"
  4791. "id": "mind" + cid + stage + task + tool + _userid,
  4792. "style": {
  4793. "width": "90%",
  4794. "height": "90%",
  4795. "overflow": 'hidden'
  4796. },
  4797. "onresize": function () { }
  4798. }, {
  4799. closecallback: function () { }
  4800. }, {
  4801. "style": {
  4802. "height": "36px"
  4803. }
  4804. }).form; //创建窗体
  4805. _taskbar = {
  4806. "id": str + _formdiv.id,
  4807. "style": {
  4808. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4809. },
  4810. "name": "思维导图",
  4811. "forms": _formdiv,
  4812. "click": function () {
  4813. U.MD.D.I.openApplication(str, obj, info);
  4814. }
  4815. }
  4816. break;
  4817. case "doc":
  4818. aTool = 6;
  4819. _iframe = $$("iframe", {
  4820. "frameborder": "no",
  4821. "border": "0",
  4822. "scrolling ": "no",
  4823. "style": {
  4824. "cssText": "border:0;width:100%;height:100%"
  4825. },
  4826. "src": "/Office/Word/WordEditArea.htm"
  4827. })
  4828. _box.appendChild(_iframe);
  4829. _box.appendChild(_jie);
  4830. _formdiv = new U.UF.UI.form(
  4831. "协同文档-" + _username,
  4832. _box, {
  4833. "id": "doc" + cid + stage + task + tool + _userid,
  4834. "style": {
  4835. "width": "90%",
  4836. "height": "90%",
  4837. "overflow": 'hidden'
  4838. },
  4839. "onresize": function () { }
  4840. }, {
  4841. closecallback: function () { }
  4842. }, {
  4843. "style": {
  4844. "height": "36px"
  4845. }
  4846. }).form; //创建窗体
  4847. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4848. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4849. })
  4850. _taskbar = {
  4851. "id": str + _formdiv.id,
  4852. "style": {
  4853. "backgroundImage": "url(/img/icon/doc.png)"
  4854. },
  4855. "name": "协同文档",
  4856. "forms": _formdiv,
  4857. "click": function () {
  4858. U.MD.D.I.openApplication(str, obj, info);
  4859. }
  4860. }
  4861. break;
  4862. case "mindNetwork": //好友打开
  4863. aTool = 7;
  4864. _iframe = $$("iframe", {
  4865. "webkitallowfullscreen": "",
  4866. "mozallowfullscreen": "",
  4867. "allowfullscreen": "",
  4868. "frameborder": "no",
  4869. "border": "0",
  4870. "scrolling ": "no",
  4871. "style": {
  4872. "cssText": "border:0; width:100%; height:100%;"
  4873. },
  4874. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4875. })
  4876. _box.appendChild(_iframe);
  4877. _box.appendChild(_jie);
  4878. _formdiv = new U.UF.UI.form(
  4879. "思维网格-" + _username,
  4880. _box, {
  4881. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4882. "style": {
  4883. "width": "90%",
  4884. "height": "90%",
  4885. "overflow": 'hidden'
  4886. },
  4887. "onresize": function () { }
  4888. }, {
  4889. closecallback: function () { }
  4890. }, {
  4891. "style": {
  4892. "height": "36px"
  4893. }
  4894. }).form; //创建窗体
  4895. _taskbar = {
  4896. "id": str + _formdiv.id,
  4897. "style": {
  4898. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4899. },
  4900. "name": "思维网格",
  4901. "forms": _formdiv,
  4902. "click": function () {
  4903. U.MD.D.I.openApplication(str, obj, info);
  4904. }
  4905. }
  4906. break;
  4907. case "courseDesign":
  4908. _iframe = $$("iframe", {
  4909. "webkitallowfullscreen": "",
  4910. "mozallowfullscreen": "",
  4911. "allowfullscreen": "",
  4912. "frameborder": "no",
  4913. "border": "0",
  4914. "scrolling ": "no",
  4915. "style": {
  4916. "cssText": "border:0; width:100%; height:100%;"
  4917. },
  4918. "src": "/course-design-vue"
  4919. })
  4920. _box.appendChild(_iframe);
  4921. _box.appendChild(_jie);
  4922. _formdiv = new U.UF.UI.form(
  4923. "项目设计-" + _username,
  4924. _box, {
  4925. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4926. "style": {
  4927. "width": "90%",
  4928. "height": "90%",
  4929. "overflow": 'hidden'
  4930. },
  4931. "onresize": function () { }
  4932. }, {
  4933. closecallback: function () { }
  4934. }, {
  4935. "style": {
  4936. "height": "36px"
  4937. }
  4938. }).form; //创建窗体
  4939. _taskbar = {
  4940. "id": str + _formdiv.id,
  4941. "style": {
  4942. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4943. },
  4944. "name": "项目设计",
  4945. "forms": _formdiv,
  4946. "click": function () {
  4947. U.MD.D.I.openApplication(str, obj, info);
  4948. }
  4949. }
  4950. break;
  4951. }
  4952. const script1 = document.createElement("script");
  4953. script1.type = "text/javascript";
  4954. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4955. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4956. const script2 = document.createElement("script");
  4957. script2.type = "text/javascript";
  4958. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4959. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4960. const script3 = document.createElement("script");
  4961. script3.type = "text/javascript";
  4962. script3.charset = "UTF-8";
  4963. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4964. const script4 = document.createElement("script");
  4965. script4.type = "text/javascript";
  4966. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4967. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4968. if (_iframe) {
  4969. if (str == 'doc') {
  4970. _iframe = _formdiv.querySelector('iframe')
  4971. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4972. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4973. _iframe.contentWindow.document.body.appendChild(script1);
  4974. _iframe.contentWindow.document.body.appendChild(script2);
  4975. // _iframe.contentWindow.document.body.appendChild(script3);
  4976. _iframe.contentWindow.document.body.appendChild(script4);
  4977. })
  4978. if (onloadListener) {
  4979. _iframe.contentDocument.location.reload()
  4980. } else {
  4981. _iframe.contentDocument.location.reload()
  4982. }
  4983. } else if (str == 'courseDesign') {
  4984. U.UF.DL.iframeLoad(_iframe, function () {
  4985. // _iframe.contentWindow.U.MD.O.W.load();
  4986. // _iframe.contentWindow.document.body.appendChild(script1);
  4987. _iframe.contentWindow.document.body.appendChild(script2);
  4988. _iframe.contentWindow.document.body.appendChild(script4);
  4989. })
  4990. } else if (str == 'mind') {
  4991. _iframe = _formdiv.querySelector('iframe')
  4992. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4993. //
  4994. _iframe.contentWindow.document.body.appendChild(script1);
  4995. _iframe.contentWindow.document.body.appendChild(script2);
  4996. _iframe.contentWindow.document.body.appendChild(script4);
  4997. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4998. })
  4999. if (onloadListener) {
  5000. _iframe.contentDocument.location.reload()
  5001. } else {
  5002. _iframe.contentDocument.location.reload()
  5003. }
  5004. } else if (str == 'whiteboard') {
  5005. _iframe = _formdiv.querySelector('iframe')
  5006. let onloadListener = _iframe.onload = () => {
  5007. _iframe.contentWindow.document.body.appendChild(script1);
  5008. _iframe.contentWindow.document.body.appendChild(script2);
  5009. _iframe.contentWindow.document.body.appendChild(script4);
  5010. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5011. };
  5012. if (onloadListener) {
  5013. _iframe.contentDocument.location.reload()
  5014. } else {
  5015. _iframe.contentDocument.location.reload()
  5016. }
  5017. } else {
  5018. _iframe.onload = () => {
  5019. _iframe.contentWindow.document.body.appendChild(script1);
  5020. _iframe.contentWindow.document.body.appendChild(script2);
  5021. // _iframe.contentWindow.document.body.appendChild(script3);
  5022. _iframe.contentWindow.document.body.appendChild(script4);
  5023. };
  5024. }
  5025. _jie.onclick = async () => {
  5026. let text = ''
  5027. if (aTool == 1) {
  5028. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5029. } else if (aTool == 6) {
  5030. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5031. } else if (aTool == 3) {
  5032. text = await U.MD.D.I.getEditorContent(_iframe);
  5033. }
  5034. _loading.style.display = 'flex'
  5035. console.log(_loading);
  5036. var _ajs = _iframe.contentWindow.document.createElement("script");
  5037. _ajs.type = "text/javascript";
  5038. _ajs.innerHTML =
  5039. // 'console.log(' + _loading + ');\n' +
  5040. 'var _js = document.createElement("script");\n' +
  5041. '_js.type="text/javascript";\n' +
  5042. '_js.charset="UTF-8";\n' +
  5043. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5044. "_js.onload = function(){\n" +
  5045. ' var a = document.getElementsByTagName("img")\n' +
  5046. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5047. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5048. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5049. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5050. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5051. "beforeUpload_shishi(file," +
  5052. "'" +
  5053. _userid +
  5054. "'" +
  5055. ", " +
  5056. "'" +
  5057. _cid +
  5058. "'" +
  5059. ", " +
  5060. "'" +
  5061. _stage +
  5062. "'" +
  5063. ", " +
  5064. "'" +
  5065. _task +
  5066. "'" +
  5067. ", " +
  5068. "'" +
  5069. _tool +
  5070. "'" +
  5071. ", " +
  5072. "'" +
  5073. (str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid) +
  5074. "'" +
  5075. ", " +
  5076. "'" +
  5077. aTool +
  5078. "'" +
  5079. ", " +
  5080. "`" +
  5081. text +
  5082. "`" +
  5083. ")\n" +
  5084. " });\n" +
  5085. "}\n" +
  5086. "document.head.appendChild(_js);\n";
  5087. _iframe.contentWindow.document.head.appendChild(_ajs);
  5088. }
  5089. }
  5090. }
  5091. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5092. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5093. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5094. _userid = student.userid, //登录用户id
  5095. _username = student.student //用户名字
  5096. let _iframe;
  5097. let _cid = cid,
  5098. _stage = stage,
  5099. _task = task,
  5100. _tool = tool;
  5101. var _jie = $$("div", {
  5102. "style": {
  5103. "position": "absolute",
  5104. "bottom": "50px",
  5105. "right": "50px",
  5106. "zIndex": "9999",
  5107. "backgroundColor": "#2268bc",
  5108. "color": "#fff",
  5109. "padding": "12px 20px",
  5110. "cursor": "pointer",
  5111. "borderRadius": "4px",
  5112. },
  5113. "innerHTML": "提交作业"
  5114. })
  5115. let aTool = ''
  5116. let _loading = document.createElement('div')
  5117. _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;"
  5118. // _loading.id = "";
  5119. let _lchild = document.createElement('div')
  5120. let _limg = document.createElement('img')
  5121. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5122. _limg.style = "width: 26px;margin-right: 10px;"
  5123. _lchild.appendChild(_limg)
  5124. let _lspan = document.createElement('span')
  5125. _lspan.innerHTML = "上传中..."
  5126. _lchild.appendChild(_lspan)
  5127. _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%);"
  5128. _loading.appendChild(_lchild)
  5129. var _box = $$('div', {
  5130. "style": {
  5131. "position": "relative",
  5132. "width": "100%",
  5133. "height": "100%",
  5134. },
  5135. })
  5136. _box.appendChild(_loading)
  5137. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5138. switch (str) {
  5139. case "whiteboard":
  5140. aTool = 1;
  5141. _iframe = $$("iframe", {
  5142. "frameborder": "no",
  5143. "border": "0",
  5144. "scrolling ": "no",
  5145. "style": {
  5146. "cssText": "border:0;width:100%;height:100%"
  5147. },
  5148. "src": "https://iwb.cocorobo.cn/"
  5149. })
  5150. _box.appendChild(_iframe);
  5151. _box.appendChild(_jie);
  5152. _formdiv = new U.UF.UI.form(
  5153. "电子白板-" + _username,
  5154. _box, {
  5155. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5156. "style": {
  5157. "width": "90%",
  5158. "height": "90%",
  5159. "overflow": 'hidden'
  5160. },
  5161. "onresize": function () { }
  5162. }, {
  5163. closecallback: function () { }
  5164. }, {
  5165. "style": {
  5166. "height": "36px"
  5167. }
  5168. }).form; //创建窗体
  5169. _taskbar = {
  5170. "id": str + _formdiv.id,
  5171. "style": {
  5172. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5173. },
  5174. "name": "电子白板",
  5175. "forms": _formdiv,
  5176. "click": function () {
  5177. U.MD.D.I.openApplication(str, obj, info);
  5178. }
  5179. }
  5180. break;
  5181. case "mind":
  5182. aTool = 3;
  5183. _iframe = $$("iframe", {
  5184. "frameborder": "no",
  5185. "border": "0",
  5186. "scrolling ": "no",
  5187. "style": {
  5188. "cssText": "border:0;width:100%;height:100%"
  5189. },
  5190. "src": "/kityminder-editor/dist/index.html"
  5191. })
  5192. _box.appendChild(_iframe);
  5193. _box.appendChild(_jie);
  5194. _formdiv = new U.UF.UI.form(
  5195. "思维导图-" + _username,
  5196. _box, { //"/jsmind/example/demo.html"
  5197. "id": "mind" + cid + stage + task + tool + _userid,
  5198. "style": {
  5199. "width": "90%",
  5200. "height": "90%",
  5201. "overflow": 'hidden'
  5202. },
  5203. "onresize": function () { }
  5204. }, {
  5205. closecallback: function () { }
  5206. }, {
  5207. "style": {
  5208. "height": "36px"
  5209. }
  5210. }).form; //创建窗体
  5211. _taskbar = {
  5212. "id": str + _formdiv.id,
  5213. "style": {
  5214. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5215. },
  5216. "name": "思维导图",
  5217. "forms": _formdiv,
  5218. "click": function () {
  5219. U.MD.D.I.openApplication(str, obj, info);
  5220. }
  5221. }
  5222. break;
  5223. case "MindMap":
  5224. aTool = 3;
  5225. _iframe = $$("iframe", {
  5226. "frameborder": "no",
  5227. "border": "0",
  5228. "scrolling ": "no",
  5229. "style": {
  5230. "cssText": "border:0;width:100%;height:100%"
  5231. },
  5232. "src": "//cloud.cocorobo.cn/mind/"
  5233. })
  5234. _box.appendChild(_iframe);
  5235. _box.appendChild(_jie);
  5236. _formdiv = new U.UF.UI.form(
  5237. "思维导图-" + _username,
  5238. _box, { //"/jsmind/example/demo.html"
  5239. "id": "mind" + cid + stage + task + tool + _userid,
  5240. "style": {
  5241. "width": "90%",
  5242. "height": "90%",
  5243. "overflow": 'hidden'
  5244. },
  5245. "onresize": function () { }
  5246. }, {
  5247. closecallback: function () { }
  5248. }, {
  5249. "style": {
  5250. "height": "36px"
  5251. }
  5252. }).form; //创建窗体
  5253. _taskbar = {
  5254. "id": str + _formdiv.id,
  5255. "style": {
  5256. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5257. },
  5258. "name": "思维导图",
  5259. "forms": _formdiv,
  5260. "click": function () {
  5261. U.MD.D.I.openApplication(str, obj, info);
  5262. }
  5263. }
  5264. break;
  5265. case "doc":
  5266. aTool = 6;
  5267. _iframe = $$("iframe", {
  5268. "frameborder": "no",
  5269. "border": "0",
  5270. "scrolling ": "no",
  5271. "style": {
  5272. "cssText": "border:0;width:100%;height:100%"
  5273. },
  5274. "src": "/Office/Word/WordEditArea.htm"
  5275. })
  5276. _box.appendChild(_iframe);
  5277. _box.appendChild(_jie);
  5278. _formdiv = new U.UF.UI.form(
  5279. "协同文档-" + _username,
  5280. _box, {
  5281. "id": "doc" + cid + stage + task + tool + _userid,
  5282. "style": {
  5283. "width": "90%",
  5284. "height": "90%",
  5285. "overflow": 'hidden'
  5286. },
  5287. "onresize": function () { }
  5288. }, {
  5289. closecallback: function () { }
  5290. }, {
  5291. "style": {
  5292. "height": "36px"
  5293. }
  5294. }).form; //创建窗体
  5295. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5296. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5297. })
  5298. _taskbar = {
  5299. "id": str + _formdiv.id,
  5300. "style": {
  5301. "backgroundImage": "url(/img/icon/doc.png)"
  5302. },
  5303. "name": "协同文档",
  5304. "forms": _formdiv,
  5305. "click": function () {
  5306. U.MD.D.I.openApplication(str, obj, info);
  5307. }
  5308. }
  5309. break;
  5310. case "mindNetwork": //好友打开
  5311. aTool = 7;
  5312. _iframe = $$("iframe", {
  5313. "webkitallowfullscreen": "",
  5314. "mozallowfullscreen": "",
  5315. "allowfullscreen": "",
  5316. "frameborder": "no",
  5317. "border": "0",
  5318. "scrolling ": "no",
  5319. "style": {
  5320. "cssText": "border:0; width:100%; height:100%;"
  5321. },
  5322. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5323. })
  5324. _box.appendChild(_iframe);
  5325. _box.appendChild(_jie);
  5326. _formdiv = new U.UF.UI.form(
  5327. "思维网格-" + _username,
  5328. _box, {
  5329. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5330. "style": {
  5331. "width": "90%",
  5332. "height": "90%",
  5333. "overflow": 'hidden'
  5334. },
  5335. "onresize": function () { }
  5336. }, {
  5337. closecallback: function () { }
  5338. }, {
  5339. "style": {
  5340. "height": "36px"
  5341. }
  5342. }).form; //创建窗体
  5343. _taskbar = {
  5344. "id": str + _formdiv.id,
  5345. "style": {
  5346. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5347. },
  5348. "name": "思维网格",
  5349. "forms": _formdiv,
  5350. "click": function () {
  5351. U.MD.D.I.openApplication(str, obj, info);
  5352. }
  5353. }
  5354. break;
  5355. case "courseDesign":
  5356. _iframe = $$("iframe", {
  5357. "webkitallowfullscreen": "",
  5358. "mozallowfullscreen": "",
  5359. "allowfullscreen": "",
  5360. "frameborder": "no",
  5361. "border": "0",
  5362. "scrolling ": "no",
  5363. "style": {
  5364. "cssText": "border:0; width:100%; height:100%;"
  5365. },
  5366. "src": "/course-design-vue"
  5367. })
  5368. _box.appendChild(_iframe);
  5369. _box.appendChild(_jie);
  5370. _formdiv = new U.UF.UI.form(
  5371. "项目设计-" + _username,
  5372. _box, {
  5373. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5374. "style": {
  5375. "width": "90%",
  5376. "height": "90%",
  5377. "overflow": 'hidden'
  5378. },
  5379. "onresize": function () { }
  5380. }, {
  5381. closecallback: function () { }
  5382. }, {
  5383. "style": {
  5384. "height": "36px"
  5385. }
  5386. }).form; //创建窗体
  5387. _taskbar = {
  5388. "id": str + _formdiv.id,
  5389. "style": {
  5390. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5391. },
  5392. "name": "项目设计",
  5393. "forms": _formdiv,
  5394. "click": function () {
  5395. U.MD.D.I.openApplication(str, obj, info);
  5396. }
  5397. }
  5398. break;
  5399. }
  5400. const script1 = document.createElement("script");
  5401. script1.type = "text/javascript";
  5402. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5403. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5404. const script2 = document.createElement("script");
  5405. script2.type = "text/javascript";
  5406. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5407. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5408. const script3 = document.createElement("script");
  5409. script3.type = "text/javascript";
  5410. script3.charset = "UTF-8";
  5411. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5412. const script4 = document.createElement("script");
  5413. script4.type = "text/javascript";
  5414. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5415. script4.src = window.origin + "/js/Common/jietu2E.js";
  5416. if (_iframe) {
  5417. if (str == 'doc') {
  5418. _iframe = _formdiv.querySelector('iframe')
  5419. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5420. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5421. _iframe.contentWindow.document.body.appendChild(script1);
  5422. _iframe.contentWindow.document.body.appendChild(script2);
  5423. // _iframe.contentWindow.document.body.appendChild(script3);
  5424. _iframe.contentWindow.document.body.appendChild(script4);
  5425. })
  5426. if (onloadListener) {
  5427. _iframe.contentDocument.location.reload()
  5428. } else {
  5429. _iframe.contentDocument.location.reload()
  5430. }
  5431. } else if (str == 'courseDesign') {
  5432. U.UF.DL.iframeLoad(_iframe, function () {
  5433. // _iframe.contentWindow.U.MD.O.W.load();
  5434. // _iframe.contentWindow.document.body.appendChild(script1);
  5435. _iframe.contentWindow.document.body.appendChild(script2);
  5436. _iframe.contentWindow.document.body.appendChild(script4);
  5437. })
  5438. } else if (str == 'mind') {
  5439. _iframe = _formdiv.querySelector('iframe')
  5440. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5441. //
  5442. _iframe.contentWindow.document.body.appendChild(script1);
  5443. _iframe.contentWindow.document.body.appendChild(script2);
  5444. _iframe.contentWindow.document.body.appendChild(script4);
  5445. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5446. })
  5447. if (onloadListener) {
  5448. _iframe.contentDocument.location.reload()
  5449. } else {
  5450. _iframe.contentDocument.location.reload()
  5451. }
  5452. } else if (str == 'whiteboard') {
  5453. _iframe = _formdiv.querySelector('iframe')
  5454. let onloadListener = _iframe.onload = () => {
  5455. _iframe.contentWindow.document.body.appendChild(script1);
  5456. _iframe.contentWindow.document.body.appendChild(script2);
  5457. _iframe.contentWindow.document.body.appendChild(script4);
  5458. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5459. };
  5460. if (onloadListener) {
  5461. _iframe.contentDocument.location.reload()
  5462. } else {
  5463. _iframe.contentDocument.location.reload()
  5464. }
  5465. } else {
  5466. _iframe.onload = () => {
  5467. _iframe.contentWindow.document.body.appendChild(script1);
  5468. _iframe.contentWindow.document.body.appendChild(script2);
  5469. // _iframe.contentWindow.document.body.appendChild(script3);
  5470. _iframe.contentWindow.document.body.appendChild(script4);
  5471. };
  5472. }
  5473. _jie.onclick = async () => {
  5474. let text = ''
  5475. if (aTool == 1) {
  5476. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5477. } else if (aTool == 6) {
  5478. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5479. } else if (aTool == 3) {
  5480. text = await U.MD.D.I.getEditorContent(_iframe);
  5481. }
  5482. _loading.style.display = 'flex'
  5483. console.log(_loading);
  5484. var _ajs = _iframe.contentWindow.document.createElement("script");
  5485. _ajs.type = "text/javascript";
  5486. _ajs.innerHTML =
  5487. // 'console.log(' + _loading + ');\n' +
  5488. 'var _js = document.createElement("script");\n' +
  5489. '_js.type="text/javascript";\n' +
  5490. '_js.charset="UTF-8";\n' +
  5491. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5492. "_js.onload = function(){\n" +
  5493. ' var a = document.getElementsByTagName("img")\n' +
  5494. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5495. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5496. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5497. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5498. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5499. "beforeUpload_shishi(file," +
  5500. "'" +
  5501. _userid +
  5502. "'" +
  5503. ", " +
  5504. "'" +
  5505. _cid +
  5506. "'" +
  5507. ", " +
  5508. "'" +
  5509. _stage +
  5510. "'" +
  5511. ", " +
  5512. "'" +
  5513. _task +
  5514. "'" +
  5515. ", " +
  5516. "'" +
  5517. _tool +
  5518. "'" +
  5519. ", " +
  5520. "'" +
  5521. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool+_userid) +
  5522. "'" +
  5523. ", " +
  5524. "'" +
  5525. aTool +
  5526. "'" +
  5527. ", " +
  5528. "`" +
  5529. text +
  5530. "`" +
  5531. ")\n" +
  5532. " });\n" +
  5533. "}\n" +
  5534. "document.head.appendChild(_js);\n";
  5535. _iframe.contentWindow.document.head.appendChild(_ajs);
  5536. }
  5537. }
  5538. }
  5539. U.MD.D.I.getEditorContent = function (iframe) {
  5540. return new Promise((resolve, reject) => {
  5541. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5542. console.log(content);
  5543. resolve(content)
  5544. });
  5545. });
  5546. }
  5547. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5548. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5549. // if (res.value[0].length > 0) {
  5550. // // resolve(res.value[0][0].text);
  5551. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5552. // $(fileInput).val('');
  5553. // });
  5554. // }
  5555. // }, [], { "type": "GET", "withCredentials": true });
  5556. var xmlhttp;
  5557. var Mac, Sn, DeviceId
  5558. if (window.XMLHttpRequest) {
  5559. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5560. xmlhttp = new XMLHttpRequest();
  5561. }
  5562. else {
  5563. // IE6, IE5 浏览器执行代码
  5564. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5565. }
  5566. xmlhttp.onreadystatechange = function () {
  5567. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5568. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5569. // resolve(res.value[0][0].text);
  5570. if (type == '2') {
  5571. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  5572. } else if (type == '3') {
  5573. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5574. }
  5575. } else {
  5576. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5577. }
  5578. }
  5579. }
  5580. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5581. xmlhttp.send();
  5582. }
  5583. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5584. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5585. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5586. _userinfo = US.userInfo, //登录用户信息
  5587. _userid = US.userInfo.userid //登录用户id
  5588. let _iframe;
  5589. let _cid = cid,
  5590. _stage = stage,
  5591. _task = task,
  5592. _tool = tool;
  5593. var _jie = $$("div", {
  5594. "style": {
  5595. "position": "absolute",
  5596. "bottom": "50px",
  5597. "right": "50px",
  5598. "zIndex": "9999",
  5599. "backgroundColor": "#2268bc",
  5600. "color": "#fff",
  5601. "padding": "12px 20px",
  5602. "cursor": "pointer",
  5603. "borderRadius": "4px",
  5604. },
  5605. "innerHTML": "确认并提交"
  5606. })
  5607. let aTool = ''
  5608. let _loading = document.createElement('div')
  5609. _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;"
  5610. // _loading.id = "";
  5611. let _lchild = document.createElement('div')
  5612. let _limg = document.createElement('img')
  5613. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5614. _limg.style = "width: 26px;margin-right: 10px;"
  5615. _lchild.appendChild(_limg)
  5616. let _lspan = document.createElement('span')
  5617. _lspan.innerHTML = "上传中..."
  5618. _lchild.appendChild(_lspan)
  5619. _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%);"
  5620. _loading.appendChild(_lchild)
  5621. var _box = $$('div', {
  5622. "style": {
  5623. "position": "relative",
  5624. "width": "100%",
  5625. "height": "100%",
  5626. },
  5627. })
  5628. _box.appendChild(_loading)
  5629. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool+_userid
  5630. switch (str) {
  5631. case "whiteboard":
  5632. aTool = 1;
  5633. _iframe = $$("iframe", {
  5634. "frameborder": "no",
  5635. "border": "0",
  5636. "scrolling ": "no",
  5637. "style": {
  5638. "cssText": "border:0;width:100%;height:100%"
  5639. },
  5640. "src": "https://iwb.cocorobo.cn/"
  5641. })
  5642. _box.appendChild(_iframe);
  5643. _box.appendChild(_jie);
  5644. _formdiv = new U.UF.UI.form(
  5645. "电子白板",
  5646. _box, {
  5647. "id": "whiteboards" + cid + stage + task + tool,
  5648. "style": {
  5649. "width": "90%",
  5650. "height": "90%",
  5651. "overflow": 'hidden'
  5652. },
  5653. "onresize": function () { }
  5654. }, {
  5655. closecallback: function () { }
  5656. }, {
  5657. "style": {
  5658. "height": "36px"
  5659. }
  5660. }).form; //创建窗体
  5661. _taskbar = {
  5662. "id": str + _formdiv.id,
  5663. "style": {
  5664. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5665. },
  5666. "name": "电子白板",
  5667. "forms": _formdiv,
  5668. "click": function () {
  5669. U.MD.D.I.openApplication(str, obj, info);
  5670. }
  5671. }
  5672. break;
  5673. case "mind":
  5674. aTool = 3;
  5675. _iframe = $$("iframe", {
  5676. "frameborder": "no",
  5677. "border": "0",
  5678. "scrolling ": "no",
  5679. "style": {
  5680. "cssText": "border:0;width:100%;height:100%"
  5681. },
  5682. "src": "/kityminder-editor/dist/index.html"
  5683. });
  5684. _box.appendChild(_iframe);
  5685. _box.appendChild(_jie);
  5686. _formdiv = new U.UF.UI.form(
  5687. "思维导图",
  5688. _box, { //"/jsmind/example/demo.html"
  5689. "id": "minds" + cid + stage + task + tool,
  5690. "style": {
  5691. "width": "90%",
  5692. "height": "90%",
  5693. "overflow": 'hidden'
  5694. },
  5695. "onresize": function () { }
  5696. }, {
  5697. closecallback: function () { }
  5698. }, {
  5699. "style": {
  5700. "height": "36px"
  5701. }
  5702. }).form; //创建窗体
  5703. _taskbar = {
  5704. "id": str + _formdiv.id,
  5705. "style": {
  5706. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5707. },
  5708. "name": "思维导图",
  5709. "forms": _formdiv,
  5710. "click": function () {
  5711. U.MD.D.I.openApplication(str, obj, info);
  5712. }
  5713. }
  5714. break;
  5715. case "doc":
  5716. aTool = 6;
  5717. _iframe = $$("iframe", {
  5718. "frameborder": "no",
  5719. "border": "0",
  5720. "scrolling ": "no",
  5721. "style": {
  5722. "cssText": "border:0;width:100%;height:100%"
  5723. },
  5724. "src": "/Office/Word/WordEditArea.htm"
  5725. })
  5726. _box.appendChild(_iframe);
  5727. _box.appendChild(_jie);
  5728. _formdiv = new U.UF.UI.form(
  5729. "协同文档",
  5730. _box, {
  5731. "id": "docs" + cid + stage + task + tool,
  5732. "style": {
  5733. "width": "90%",
  5734. "height": "90%",
  5735. "overflow": 'hidden'
  5736. },
  5737. "onresize": function () { }
  5738. }, {
  5739. closecallback: function () { }
  5740. }, {
  5741. "style": {
  5742. "height": "36px"
  5743. }
  5744. }).form; //创建窗体
  5745. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5746. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5747. })
  5748. _taskbar = {
  5749. "id": str + _formdiv.id,
  5750. "style": {
  5751. "backgroundImage": "url(/img/icon/doc.png)"
  5752. },
  5753. "name": "协同文档",
  5754. "forms": _formdiv,
  5755. "click": function () {
  5756. U.MD.D.I.openApplication(str, obj, info);
  5757. }
  5758. }
  5759. break;
  5760. }
  5761. const script1 = document.createElement("script");
  5762. script1.type = "text/javascript";
  5763. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5764. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5765. const script2 = document.createElement("script");
  5766. script2.type = "text/javascript";
  5767. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5768. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5769. const script3 = document.createElement("script");
  5770. script3.type = "text/javascript";
  5771. script3.charset = "UTF-8";
  5772. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5773. const script4 = document.createElement("script");
  5774. script4.type = "text/javascript";
  5775. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5776. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5777. if (_iframe) {
  5778. if (str == 'doc') {
  5779. _iframe = _formdiv.querySelector('iframe')
  5780. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5781. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5782. _iframe.contentWindow.document.body.appendChild(script1);
  5783. _iframe.contentWindow.document.body.appendChild(script2);
  5784. // _iframe.contentWindow.document.body.appendChild(script3);
  5785. _iframe.contentWindow.document.body.appendChild(script4);
  5786. })
  5787. if (onloadListener) {
  5788. _iframe.contentDocument.location.reload()
  5789. } else {
  5790. _iframe.contentDocument.location.reload()
  5791. }
  5792. } else if (str == 'mind') {
  5793. _iframe = _formdiv.querySelector('iframe')
  5794. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5795. _iframe.contentWindow.document.body.appendChild(script1);
  5796. _iframe.contentWindow.document.body.appendChild(script2);
  5797. _iframe.contentWindow.document.body.appendChild(script4);
  5798. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5799. })
  5800. if (onloadListener) {
  5801. _iframe.contentDocument.location.reload()
  5802. } else {
  5803. _iframe.contentDocument.location.reload()
  5804. }
  5805. } else {
  5806. _iframe.onload = () => {
  5807. _iframe.contentWindow.document.body.appendChild(script1);
  5808. _iframe.contentWindow.document.body.appendChild(script2);
  5809. // _iframe.contentWindow.document.body.appendChild(script3);
  5810. _iframe.contentWindow.document.body.appendChild(script4);
  5811. };
  5812. }
  5813. _jie.onclick = async () => {
  5814. let text = ''
  5815. if (aTool == 6) {
  5816. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5817. } else if (aTool == 3) {
  5818. text = await U.MD.D.I.getEditorContent(_iframe);
  5819. }
  5820. _loading.style.display = 'flex'
  5821. console.log(_loading);
  5822. var _ajs = _iframe.contentWindow.document.createElement("script");
  5823. _ajs.type = "text/javascript";
  5824. _ajs.innerHTML =
  5825. // 'console.log(' + _loading + ');\n' +
  5826. 'var _js = document.createElement("script");\n' +
  5827. '_js.type="text/javascript";\n' +
  5828. '_js.charset="UTF-8";\n' +
  5829. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5830. "_js.onload = function(){\n" +
  5831. ' var a = document.getElementsByTagName("img")\n' +
  5832. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5833. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5834. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5835. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5836. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5837. "beforeUpload_shishi(file," +
  5838. "'" +
  5839. _userid +
  5840. "'" +
  5841. ", " +
  5842. "'" +
  5843. _cid +
  5844. "'" +
  5845. ", " +
  5846. "'" +
  5847. _stage +
  5848. "'" +
  5849. ", " +
  5850. "'" +
  5851. _task +
  5852. "'" +
  5853. ", " +
  5854. "'" +
  5855. _tool +
  5856. "'" +
  5857. ", " +
  5858. "'" +
  5859. (str + '_loadLi_JieS' + cid + stage + task + tool+_userid) +
  5860. "'" +
  5861. ", " +
  5862. "'" +
  5863. aTool +
  5864. "'" +
  5865. ", " +
  5866. "`" +
  5867. text +
  5868. "`" +
  5869. ")\n" +
  5870. " });\n" +
  5871. "}\n" +
  5872. "document.head.appendChild(_js);\n";
  5873. _iframe.contentWindow.document.head.appendChild(_ajs);
  5874. }
  5875. }
  5876. //U.MD.D.I.openClick(str);
  5877. //如果有任务栏信息
  5878. // if (_taskbar) {
  5879. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5880. // }
  5881. }
  5882. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  5883. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5884. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5885. _userinfo = US.userInfo, //登录用户信息
  5886. _userid = US.userInfo.userid //登录用户id
  5887. let _iframe;
  5888. let _cid = cid,
  5889. _stage = stage,
  5890. _task = task,
  5891. _tool = tool;
  5892. var _jie = $$("div", {
  5893. "style": {
  5894. "position": "absolute",
  5895. "bottom": "50px",
  5896. "right": "50px",
  5897. "zIndex": "9999",
  5898. "backgroundColor": "#2268bc",
  5899. "color": "#fff",
  5900. "padding": "12px 20px",
  5901. "cursor": "pointer",
  5902. "borderRadius": "4px",
  5903. },
  5904. "innerHTML": "确认并提交"
  5905. })
  5906. let aTool = ''
  5907. let _loading = document.createElement('div')
  5908. _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;"
  5909. // _loading.id = "";
  5910. let _lchild = document.createElement('div')
  5911. let _limg = document.createElement('img')
  5912. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5913. _limg.style = "width: 26px;margin-right: 10px;"
  5914. _lchild.appendChild(_limg)
  5915. let _lspan = document.createElement('span')
  5916. _lspan.innerHTML = "上传中..."
  5917. _lchild.appendChild(_lspan)
  5918. _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%);"
  5919. _loading.appendChild(_lchild)
  5920. var _box = $$('div', {
  5921. "style": {
  5922. "position": "relative",
  5923. "width": "100%",
  5924. "height": "100%",
  5925. },
  5926. })
  5927. _box.appendChild(_loading)
  5928. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid
  5929. switch (str) {
  5930. case "whiteboard":
  5931. aTool = 1;
  5932. _iframe = $$("iframe", {
  5933. "frameborder": "no",
  5934. "border": "0",
  5935. "scrolling ": "no",
  5936. "style": {
  5937. "cssText": "border:0;width:100%;height:100%"
  5938. },
  5939. "src": "https://iwb.cocorobo.cn/"
  5940. })
  5941. _box.appendChild(_iframe);
  5942. _box.appendChild(_jie);
  5943. _formdiv = new U.UF.UI.form(
  5944. "电子白板",
  5945. _box, {
  5946. "id": "whiteboards" + cid + stage + task + tool,
  5947. "style": {
  5948. "width": "90%",
  5949. "height": "90%",
  5950. "overflow": 'hidden'
  5951. },
  5952. "onresize": function () { }
  5953. }, {
  5954. closecallback: function () { }
  5955. }, {
  5956. "style": {
  5957. "height": "36px"
  5958. }
  5959. }).form; //创建窗体
  5960. _taskbar = {
  5961. "id": str + _formdiv.id,
  5962. "style": {
  5963. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5964. },
  5965. "name": "电子白板",
  5966. "forms": _formdiv,
  5967. "click": function () {
  5968. U.MD.D.I.openApplication(str, obj, info);
  5969. }
  5970. }
  5971. break;
  5972. case "mind":
  5973. aTool = 3;
  5974. _iframe = $$("iframe", {
  5975. "frameborder": "no",
  5976. "border": "0",
  5977. "scrolling ": "no",
  5978. "style": {
  5979. "cssText": "border:0;width:100%;height:100%"
  5980. },
  5981. "src": "/kityminder-editor/dist/index.html"
  5982. });
  5983. _box.appendChild(_iframe);
  5984. _box.appendChild(_jie);
  5985. _formdiv = new U.UF.UI.form(
  5986. "思维导图",
  5987. _box, { //"/jsmind/example/demo.html"
  5988. "id": "minds" + cid + stage + task + tool,
  5989. "style": {
  5990. "width": "90%",
  5991. "height": "90%",
  5992. "overflow": 'hidden'
  5993. },
  5994. "onresize": function () { }
  5995. }, {
  5996. closecallback: function () { }
  5997. }, {
  5998. "style": {
  5999. "height": "36px"
  6000. }
  6001. }).form; //创建窗体
  6002. _taskbar = {
  6003. "id": str + _formdiv.id,
  6004. "style": {
  6005. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6006. },
  6007. "name": "思维导图",
  6008. "forms": _formdiv,
  6009. "click": function () {
  6010. U.MD.D.I.openApplication(str, obj, info);
  6011. }
  6012. }
  6013. break;
  6014. case "doc":
  6015. aTool = 6;
  6016. _iframe = $$("iframe", {
  6017. "frameborder": "no",
  6018. "border": "0",
  6019. "scrolling ": "no",
  6020. "style": {
  6021. "cssText": "border:0;width:100%;height:100%"
  6022. },
  6023. "src": "/Office/Word/WordEditArea.htm"
  6024. })
  6025. _box.appendChild(_iframe);
  6026. _box.appendChild(_jie);
  6027. _formdiv = new U.UF.UI.form(
  6028. "协同文档",
  6029. _box, {
  6030. "id": "docs" + cid + stage + task + tool,
  6031. "style": {
  6032. "width": "90%",
  6033. "height": "90%",
  6034. "overflow": 'hidden'
  6035. },
  6036. "onresize": function () { }
  6037. }, {
  6038. closecallback: function () { }
  6039. }, {
  6040. "style": {
  6041. "height": "36px"
  6042. }
  6043. }).form; //创建窗体
  6044. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6045. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6046. })
  6047. _taskbar = {
  6048. "id": str + _formdiv.id,
  6049. "style": {
  6050. "backgroundImage": "url(/img/icon/doc.png)"
  6051. },
  6052. "name": "协同文档",
  6053. "forms": _formdiv,
  6054. "click": function () {
  6055. U.MD.D.I.openApplication(str, obj, info);
  6056. }
  6057. }
  6058. break;
  6059. }
  6060. const script1 = document.createElement("script");
  6061. script1.type = "text/javascript";
  6062. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6063. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  6064. const script2 = document.createElement("script");
  6065. script2.type = "text/javascript";
  6066. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6067. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  6068. const script3 = document.createElement("script");
  6069. script3.type = "text/javascript";
  6070. script3.charset = "UTF-8";
  6071. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  6072. const script4 = document.createElement("script");
  6073. script4.type = "text/javascript";
  6074. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6075. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  6076. if (_iframe) {
  6077. if (str == 'doc') {
  6078. _iframe = _formdiv.querySelector('iframe')
  6079. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6080. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6081. _iframe.contentWindow.document.body.appendChild(script1);
  6082. _iframe.contentWindow.document.body.appendChild(script2);
  6083. // _iframe.contentWindow.document.body.appendChild(script3);
  6084. _iframe.contentWindow.document.body.appendChild(script4);
  6085. })
  6086. if (onloadListener) {
  6087. _iframe.contentDocument.location.reload()
  6088. } else {
  6089. _iframe.contentDocument.location.reload()
  6090. }
  6091. } else if (str == 'mind') {
  6092. _iframe = _formdiv.querySelector('iframe')
  6093. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6094. _iframe.contentWindow.document.body.appendChild(script1);
  6095. _iframe.contentWindow.document.body.appendChild(script2);
  6096. _iframe.contentWindow.document.body.appendChild(script4);
  6097. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6098. })
  6099. if (onloadListener) {
  6100. _iframe.contentDocument.location.reload()
  6101. } else {
  6102. _iframe.contentDocument.location.reload()
  6103. }
  6104. } else {
  6105. _iframe.onload = () => {
  6106. _iframe.contentWindow.document.body.appendChild(script1);
  6107. _iframe.contentWindow.document.body.appendChild(script2);
  6108. // _iframe.contentWindow.document.body.appendChild(script3);
  6109. _iframe.contentWindow.document.body.appendChild(script4);
  6110. };
  6111. }
  6112. _jie.onclick = async () => {
  6113. let text = ''
  6114. if (aTool == 6) {
  6115. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6116. } else if (aTool == 3) {
  6117. text = await U.MD.D.I.getEditorContent(_iframe);
  6118. }
  6119. _loading.style.display = 'flex'
  6120. console.log(_loading);
  6121. var _ajs = _iframe.contentWindow.document.createElement("script");
  6122. _ajs.type = "text/javascript";
  6123. _ajs.innerHTML =
  6124. // 'console.log(' + _loading + ');\n' +
  6125. 'var _js = document.createElement("script");\n' +
  6126. '_js.type="text/javascript";\n' +
  6127. '_js.charset="UTF-8";\n' +
  6128. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  6129. "_js.onload = function(){\n" +
  6130. ' var a = document.getElementsByTagName("img")\n' +
  6131. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6132. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6133. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6134. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6135. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  6136. "beforeUpload_shishi(file," +
  6137. "'" +
  6138. _userid +
  6139. "'" +
  6140. ", " +
  6141. "'" +
  6142. _cid +
  6143. "'" +
  6144. ", " +
  6145. "'" +
  6146. _stage +
  6147. "'" +
  6148. ", " +
  6149. "'" +
  6150. _task +
  6151. "'" +
  6152. ", " +
  6153. "'" +
  6154. _tool +
  6155. "'" +
  6156. ", " +
  6157. "'" +
  6158. (str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid) +
  6159. "'" +
  6160. ", " +
  6161. "'" +
  6162. aTool +
  6163. "'" +
  6164. ", " +
  6165. "`" +
  6166. text +
  6167. "`" +
  6168. ")\n" +
  6169. " });\n" +
  6170. "}\n" +
  6171. "document.head.appendChild(_js);\n";
  6172. _iframe.contentWindow.document.head.appendChild(_ajs);
  6173. }
  6174. }
  6175. //U.MD.D.I.openClick(str);
  6176. //如果有任务栏信息
  6177. // if (_taskbar) {
  6178. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6179. // }
  6180. }
  6181. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6182. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6183. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6184. _userinfo = US.userInfo, //登录用户信息
  6185. _userid = US.userInfo.userid //登录用户id
  6186. let _iframe;
  6187. let _cid = cid,
  6188. _stage = stage,
  6189. _task = task,
  6190. _tool = tool;
  6191. var _jie = $$("div", {
  6192. "style": {
  6193. "position": "absolute",
  6194. "bottom": "50px",
  6195. "right": "50px",
  6196. "zIndex": "9999",
  6197. "backgroundColor": "#2268bc",
  6198. "color": "#fff",
  6199. "padding": "12px 20px",
  6200. "cursor": "pointer",
  6201. "borderRadius": "4px",
  6202. },
  6203. "innerHTML": "上传模板"
  6204. })
  6205. let aTool = ''
  6206. let _loading = document.createElement('div')
  6207. _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;"
  6208. // _loading.id = "";
  6209. let _lchild = document.createElement('div')
  6210. let _limg = document.createElement('img')
  6211. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6212. _limg.style = "width: 26px;margin-right: 10px;"
  6213. _lchild.appendChild(_limg)
  6214. let _lspan = document.createElement('span')
  6215. _lspan.innerHTML = "上传中..."
  6216. _lchild.appendChild(_lspan)
  6217. _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%);"
  6218. _loading.appendChild(_lchild)
  6219. var _box = $$('div', {
  6220. "style": {
  6221. "position": "relative",
  6222. "width": "100%",
  6223. "height": "100%",
  6224. },
  6225. })
  6226. _box.appendChild(_loading)
  6227. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool+_userid
  6228. switch (str) {
  6229. case "whiteboard":
  6230. aTool = 1;
  6231. _iframe = $$("iframe", {
  6232. "frameborder": "no",
  6233. "border": "0",
  6234. "scrolling ": "no",
  6235. "style": {
  6236. "cssText": "border:0;width:100%;height:100%"
  6237. },
  6238. "src": "https://iwb.cocorobo.cn/"
  6239. })
  6240. _box.appendChild(_iframe);
  6241. _box.appendChild(_jie);
  6242. _formdiv = new U.UF.UI.form(
  6243. "电子白板",
  6244. _box, {
  6245. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6246. "style": {
  6247. "width": "90%",
  6248. "height": "90%",
  6249. "overflow": 'hidden'
  6250. },
  6251. "onresize": function () { }
  6252. }, {
  6253. closecallback: function () { }
  6254. }, {
  6255. "style": {
  6256. "height": "36px"
  6257. }
  6258. }).form; //创建窗体
  6259. _taskbar = {
  6260. "id": str + _formdiv.id,
  6261. "style": {
  6262. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6263. },
  6264. "name": "电子白板",
  6265. "forms": _formdiv,
  6266. "click": function () {
  6267. U.MD.D.I.openApplication(str, obj, info);
  6268. }
  6269. }
  6270. break;
  6271. case "mind":
  6272. aTool = 3;
  6273. _iframe = $$("iframe", {
  6274. "frameborder": "no",
  6275. "border": "0",
  6276. "scrolling ": "no",
  6277. "style": {
  6278. "cssText": "border:0;width:100%;height:100%"
  6279. },
  6280. "src": "/kityminder-editor/dist/index.html"
  6281. });
  6282. _box.appendChild(_iframe);
  6283. _box.appendChild(_jie);
  6284. _formdiv = new U.UF.UI.form(
  6285. "思维导图",
  6286. _box, { //"/jsmind/example/demo.html"
  6287. "id": "minds_Yu" + cid + stage + task + tool,
  6288. "style": {
  6289. "width": "90%",
  6290. "height": "90%",
  6291. "overflow": 'hidden'
  6292. },
  6293. "onresize": function () { }
  6294. }, {
  6295. closecallback: function () { }
  6296. }, {
  6297. "style": {
  6298. "height": "36px"
  6299. }
  6300. }).form; //创建窗体
  6301. _taskbar = {
  6302. "id": str + _formdiv.id,
  6303. "style": {
  6304. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6305. },
  6306. "name": "思维导图",
  6307. "forms": _formdiv,
  6308. "click": function () {
  6309. U.MD.D.I.openApplication(str, obj, info);
  6310. }
  6311. }
  6312. break;
  6313. case "doc":
  6314. aTool = 6;
  6315. _iframe = $$("iframe", {
  6316. "frameborder": "no",
  6317. "border": "0",
  6318. "scrolling ": "no",
  6319. "style": {
  6320. "cssText": "border:0;width:100%;height:100%"
  6321. },
  6322. "src": "/Office/Word/WordEditArea.htm"
  6323. })
  6324. _box.appendChild(_iframe);
  6325. _box.appendChild(_jie);
  6326. _formdiv = new U.UF.UI.form(
  6327. "协同文档",
  6328. _box, {
  6329. "id": "docs_Yu" + cid + stage + task + tool,
  6330. "style": {
  6331. "width": "90%",
  6332. "height": "90%",
  6333. "overflow": 'hidden'
  6334. },
  6335. "onresize": function () { }
  6336. }, {
  6337. closecallback: function () { }
  6338. }, {
  6339. "style": {
  6340. "height": "36px"
  6341. }
  6342. }).form; //创建窗体
  6343. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6344. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6345. })
  6346. _taskbar = {
  6347. "id": str + _formdiv.id,
  6348. "style": {
  6349. "backgroundImage": "url(/img/icon/doc.png)"
  6350. },
  6351. "name": "协同文档",
  6352. "forms": _formdiv,
  6353. "click": function () {
  6354. U.MD.D.I.openApplication(str, obj, info);
  6355. }
  6356. }
  6357. break;
  6358. case "CocoPi":
  6359. aTool = 57;
  6360. _iframe = $$("iframe", {
  6361. "allowpaymentrequest":"allowpaymentrequest",
  6362. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6363. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6364. "frameborder": "no",
  6365. "border": "0",
  6366. "scrolling ": "no",
  6367. "style": {
  6368. "cssText": "border:0;width:100%;height:100%"
  6369. },
  6370. "src": "https://pi.cocorobo.cn/"
  6371. })
  6372. _box.appendChild(_iframe);
  6373. _box.appendChild(_jie);
  6374. _formdiv = new U.UF.UI.form(
  6375. "CocoPi",
  6376. _box, {
  6377. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6378. "style": {
  6379. "width": "90%",
  6380. "height": "90%",
  6381. "overflow": 'hidden'
  6382. },
  6383. "onresize": function () { }
  6384. }, {
  6385. closecallback: function () { }
  6386. }, {
  6387. "style": {
  6388. "height": "36px"
  6389. }
  6390. }).form; //创建窗体
  6391. _taskbar = {
  6392. "id": str + _formdiv.id,
  6393. "style": {
  6394. "backgroundImage": "url(/img/icon/cocopi.png)"
  6395. },
  6396. "name": "CocoPi",
  6397. "forms": _formdiv,
  6398. "click": function () {
  6399. U.MD.D.I.openApplication(str, obj, info);
  6400. }
  6401. }
  6402. break;
  6403. }
  6404. if (_iframe) {
  6405. if (str == 'doc') {
  6406. _iframe = _formdiv.querySelector('iframe')
  6407. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6408. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6409. })
  6410. if (onloadListener) {
  6411. _iframe.contentDocument.location.reload()
  6412. } else {
  6413. _iframe.contentDocument.location.reload()
  6414. }
  6415. } else if (str == 'mind') {
  6416. _iframe = _formdiv.querySelector('iframe')
  6417. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6418. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6419. })
  6420. if (onloadListener) {
  6421. _iframe.contentDocument.location.reload()
  6422. } else {
  6423. _iframe.contentDocument.location.reload()
  6424. }
  6425. } else if (str == 'whiteboard') {
  6426. _iframe = _formdiv.querySelector('iframe')
  6427. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6428. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6429. })
  6430. if (onloadListener) {
  6431. _iframe.contentDocument.location.reload()
  6432. } else {
  6433. _iframe.contentDocument.location.reload()
  6434. }
  6435. } else if (str == 'CocoPi') {
  6436. _iframe = _formdiv.querySelector('iframe')
  6437. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6438. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6439. })
  6440. if (onloadListener) {
  6441. _iframe.contentDocument.location.reload()
  6442. } else {
  6443. _iframe.contentDocument.location.reload()
  6444. }
  6445. } else {
  6446. _iframe.onload = () => {
  6447. };
  6448. }
  6449. _jie.onclick = async () => {
  6450. let text = ''
  6451. let type = '2'
  6452. if (aTool == 1) {
  6453. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6454. type = '3'
  6455. } else if (aTool == 6) {
  6456. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6457. type = '1'
  6458. } else if (aTool == 3) {
  6459. text = await U.MD.D.I.getEditorContent(_iframe);
  6460. type = '2'
  6461. } else if (aTool == 57) {
  6462. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6463. type = '4'
  6464. }
  6465. _loading.style.display = 'flex'
  6466. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6467. }
  6468. }
  6469. //U.MD.D.I.openClick(str);
  6470. //如果有任务栏信息
  6471. // if (_taskbar) {
  6472. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6473. // }
  6474. }
  6475. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6476. var xmlhttp;
  6477. var Mac, Sn, DeviceId
  6478. if (window.XMLHttpRequest) {
  6479. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6480. xmlhttp = new XMLHttpRequest();
  6481. }
  6482. else {
  6483. // IE6, IE5 浏览器执行代码
  6484. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6485. }
  6486. xmlhttp.onreadystatechange = function () {
  6487. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6488. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6489. // resolve(res.value[0][0].text);
  6490. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6491. }
  6492. }
  6493. }
  6494. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6495. xmlhttp.send();
  6496. }
  6497. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6498. var xmlhttp;
  6499. var Mac, Sn, DeviceId
  6500. if (window.XMLHttpRequest) {
  6501. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6502. xmlhttp = new XMLHttpRequest();
  6503. }
  6504. else {
  6505. // IE6, IE5 浏览器执行代码
  6506. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6507. }
  6508. xmlhttp.onreadystatechange = function () {
  6509. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6510. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6511. // resolve(res.value[0][0].text);
  6512. if (type == '2') {
  6513. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6514. } else if (type == '3') {
  6515. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6516. } else if (type == '4') {
  6517. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  6518. }
  6519. } else {
  6520. if (type == '2') {
  6521. iframe.contentWindow.editor.minder.importData('json', '')
  6522. } else if (type == '3') {
  6523. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6524. } else if (type == '4') {
  6525. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6526. }
  6527. }
  6528. }
  6529. }
  6530. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6531. xmlhttp.send();
  6532. }
  6533. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6534. var xmlhttp;
  6535. var Mac, Sn, DeviceId
  6536. if (window.XMLHttpRequest) {
  6537. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6538. xmlhttp = new XMLHttpRequest();
  6539. }
  6540. else {
  6541. // IE6, IE5 浏览器执行代码
  6542. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6543. }
  6544. xmlhttp.onreadystatechange = function () {
  6545. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6546. if (xmlhttp.response) {
  6547. // resolve(res.value[0][0].text);
  6548. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6549. // $(fileInput).val('');
  6550. // });
  6551. span.innerHTML = '上传成功'
  6552. setTimeout(() => {
  6553. loading.style.display = 'none'
  6554. }, 1000);
  6555. }
  6556. }
  6557. }
  6558. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6559. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6560. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6561. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6562. // 设置请求头,表示请求体的编码格式
  6563. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  6564. // 设置请求体,使用url-encoded格式的数据
  6565. }
  6566. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  6567. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6568. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6569. _userinfo = US.userInfo, //登录用户信息
  6570. _userid = US.userInfo.userid //登录用户id
  6571. let _iframe;
  6572. let _cid = cid,
  6573. _stage = stage,
  6574. _task = task,
  6575. _tool = tool;
  6576. var _jie = $$("div", {
  6577. "style": {
  6578. "position": "absolute",
  6579. "bottom": "50px",
  6580. "right": "50px",
  6581. "zIndex": "9999",
  6582. "backgroundColor": "#2268bc",
  6583. "color": "#fff",
  6584. "padding": "12px 20px",
  6585. "cursor": "pointer",
  6586. "borderRadius": "4px",
  6587. },
  6588. "innerHTML": "提交作业"
  6589. })
  6590. let aTool = ''
  6591. let _loading = document.createElement('div')
  6592. _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;"
  6593. // _loading.id = "";
  6594. let _lchild = document.createElement('div')
  6595. let _limg = document.createElement('img')
  6596. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6597. _limg.style = "width: 26px;margin-right: 10px;"
  6598. _lchild.appendChild(_limg)
  6599. let _lspan = document.createElement('span')
  6600. _lspan.innerHTML = "上传中..."
  6601. _lchild.appendChild(_lspan)
  6602. _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%);"
  6603. _loading.appendChild(_lchild)
  6604. var _box = $$('div', {
  6605. "style": {
  6606. "position": "relative",
  6607. "width": "100%",
  6608. "height": "100%",
  6609. },
  6610. })
  6611. _box.appendChild(_loading)
  6612. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool+_userid
  6613. switch (str) {
  6614. case "CocoPi":
  6615. aTool = 57;
  6616. _iframe = $$("iframe", {
  6617. "allowpaymentrequest":"allowpaymentrequest",
  6618. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6619. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6620. "frameborder": "no",
  6621. "border": "0",
  6622. "scrolling ": "no",
  6623. "style": {
  6624. "cssText": "border:0;width:100%;height:100%"
  6625. },
  6626. "src": "https://pi.cocorobo.cn/"
  6627. })
  6628. _box.appendChild(_iframe);
  6629. _box.appendChild(_jie);
  6630. _formdiv = new U.UF.UI.form(
  6631. "CocoPi",
  6632. _box, {
  6633. "id": "CocoPi_Upload" + cid + stage + task + tool,
  6634. "style": {
  6635. "width": "90%",
  6636. "height": "90%",
  6637. "overflow": 'hidden'
  6638. },
  6639. "onresize": function () { }
  6640. }, {
  6641. closecallback: function () { }
  6642. }, {
  6643. "style": {
  6644. "height": "36px"
  6645. }
  6646. }).form; //创建窗体
  6647. _taskbar = {
  6648. "id": str + _formdiv.id,
  6649. "style": {
  6650. "backgroundImage": "url(/img/icon/cocopi.png)"
  6651. },
  6652. "name": "CocoPi",
  6653. "forms": _formdiv,
  6654. "click": function () {
  6655. U.MD.D.I.openApplication(str, obj, info);
  6656. }
  6657. }
  6658. break;
  6659. }
  6660. if (_iframe) {
  6661. if (str == 'CocoPi') {
  6662. _iframe = _formdiv.querySelector('iframe')
  6663. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6664. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6665. })
  6666. if (onloadListener) {
  6667. _iframe.contentDocument.location.reload()
  6668. } else {
  6669. _iframe.contentDocument.location.reload()
  6670. }
  6671. }
  6672. _jie.onclick = async () => {
  6673. let text = ''
  6674. if (aTool == 57) {
  6675. text = _iframe.contentWindow.getLoadXmlStr()
  6676. }
  6677. _loading.style.display = 'flex'
  6678. console.log(_loading);
  6679. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6680. _loading.style.display = 'none'
  6681. let _div = document.createElement('div')
  6682. _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
  6683. let _inner = document.createElement('div')
  6684. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6685. _inner.innerHTML = "上传成功"
  6686. _div.appendChild(_inner)
  6687. _iframe.contentWindow.window.document.body.appendChild(_div)
  6688. _div.onclick = () => {
  6689. _iframe.contentWindow.window.document.body.removeChild(_div)
  6690. }
  6691. setTimeout(() => {
  6692. _iframe.contentWindow.window.document.body.removeChild(_div)
  6693. }, 1000);
  6694. }, [], { "type": "POST", "withCredentials": true });
  6695. }
  6696. }
  6697. }
  6698. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  6699. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6700. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6701. _userid = student.userid, //登录用户id
  6702. _username = student.student //用户名字
  6703. let _iframe;
  6704. let _cid = cid,
  6705. _stage = stage,
  6706. _task = task,
  6707. _tool = tool;
  6708. var _jie = $$("div", {
  6709. "style": {
  6710. "position": "absolute",
  6711. "bottom": "50px",
  6712. "right": "50px",
  6713. "zIndex": "9999",
  6714. "backgroundColor": "#2268bc",
  6715. "color": "#fff",
  6716. "padding": "12px 20px",
  6717. "cursor": "pointer",
  6718. "borderRadius": "4px",
  6719. },
  6720. "innerHTML": "提交作业"
  6721. })
  6722. let aTool = ''
  6723. let _loading = document.createElement('div')
  6724. _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;"
  6725. // _loading.id = "";
  6726. let _lchild = document.createElement('div')
  6727. let _limg = document.createElement('img')
  6728. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6729. _limg.style = "width: 26px;margin-right: 10px;"
  6730. _lchild.appendChild(_limg)
  6731. let _lspan = document.createElement('span')
  6732. _lspan.innerHTML = "上传中..."
  6733. _lchild.appendChild(_lspan)
  6734. _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%);"
  6735. _loading.appendChild(_lchild)
  6736. var _box = $$('div', {
  6737. "style": {
  6738. "position": "relative",
  6739. "width": "100%",
  6740. "height": "100%",
  6741. },
  6742. })
  6743. _box.appendChild(_loading)
  6744. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool+_userid
  6745. switch (str) {
  6746. case "CocoPi":
  6747. aTool = 57;
  6748. _iframe = $$("iframe", {
  6749. "allowpaymentrequest":"allowpaymentrequest",
  6750. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6751. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6752. "frameborder": "no",
  6753. "border": "0",
  6754. "scrolling ": "no",
  6755. "style": {
  6756. "cssText": "border:0;width:100%;height:100%"
  6757. },
  6758. "src": "https://pi.cocorobo.cn/"
  6759. })
  6760. _box.appendChild(_iframe);
  6761. _box.appendChild(_jie);
  6762. _formdiv = new U.UF.UI.form(
  6763. "CocoPi-" + _username,
  6764. _box, {
  6765. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  6766. "style": {
  6767. "width": "90%",
  6768. "height": "90%",
  6769. "overflow": 'hidden'
  6770. },
  6771. "onresize": function () { }
  6772. }, {
  6773. closecallback: function () { }
  6774. }, {
  6775. "style": {
  6776. "height": "36px"
  6777. }
  6778. }).form; //创建窗体
  6779. _taskbar = {
  6780. "id": str + _formdiv.id,
  6781. "style": {
  6782. "backgroundImage": "url(/img/icon/cocopi.png)"
  6783. },
  6784. "name": "CocoPi",
  6785. "forms": _formdiv,
  6786. "click": function () {
  6787. U.MD.D.I.openApplication(str, obj, info);
  6788. }
  6789. }
  6790. break;
  6791. }
  6792. if (_iframe) {
  6793. if (str == 'CocoPi') {
  6794. _iframe = _formdiv.querySelector('iframe')
  6795. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6796. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6797. })
  6798. if (onloadListener) {
  6799. _iframe.contentDocument.location.reload()
  6800. } else {
  6801. _iframe.contentDocument.location.reload()
  6802. }
  6803. }
  6804. _jie.onclick = async () => {
  6805. let text = ''
  6806. if (aTool == 57) {
  6807. text = _iframe.contentWindow.getLoadXmlStr()
  6808. }
  6809. _loading.style.display = 'flex'
  6810. console.log(_loading);
  6811. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6812. _loading.style.display = 'none'
  6813. let _div = document.createElement('div')
  6814. _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
  6815. let _inner = document.createElement('div')
  6816. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6817. _inner.innerHTML = "上传成功"
  6818. _div.appendChild(_inner)
  6819. _iframe.contentWindow.window.document.body.appendChild(_div)
  6820. _div.onclick = () => {
  6821. _iframe.contentWindow.window.document.body.removeChild(_div)
  6822. }
  6823. setTimeout(() => {
  6824. _iframe.contentWindow.window.document.body.removeChild(_div)
  6825. }, 1000);
  6826. }, [], { "type": "POST", "withCredentials": true });
  6827. }
  6828. }
  6829. }
  6830. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  6831. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  6832. if (res.value[0].length > 0) {
  6833. if (atool == 57) {
  6834. iframe.contentWindow.loadingXml(res.value[0][0].content)
  6835. }
  6836. } else {
  6837. if (atool == 57) {
  6838. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  6839. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6840. }
  6841. }
  6842. }, [], { "type": "POST", "withCredentials": true });
  6843. }