DeskTop.js 394 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062
  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": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  17. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  18. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  19. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  20. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  21. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  22. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  23. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  24. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  25. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  26. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  27. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  28. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  29. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  30. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  31. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  32. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  33. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  34. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  35. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  36. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  37. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  38. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  39. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  40. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  41. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  42. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  43. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  44. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  45. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  46. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  47. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  48. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  49. ];
  50. //极简模式
  51. U.MD.D.I.easyDeskIcon = [
  52. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  55. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  56. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  57. ];
  58. //教师桌面图标的全局变量
  59. U.MD.D.I.teacherDeskIcon2 = [
  60. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  61. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  62. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  63. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  64. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  65. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  66. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  67. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  68. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  69. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  70. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  71. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  72. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  73. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  74. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  75. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  76. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  77. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  78. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  79. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  80. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  81. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  82. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  83. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  84. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  85. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  86. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  87. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  88. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  89. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  90. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  91. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  92. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  93. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  94. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  95. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  96. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  97. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  98. ];
  99. U.MD.D.I.studentDeskIcon = [
  100. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  101. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  102. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  103. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  104. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  105. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  106. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  107. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  108. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  109. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  110. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  111. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  112. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  113. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  114. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  115. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  116. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  117. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  118. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  119. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  120. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  121. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  122. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  123. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  124. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  125. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  126. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  127. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  128. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  129. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  130. ];
  131. U.MD.D.I.studentDeskIcon2 = [
  132. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  133. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  134. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  135. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  136. ]
  137. U.MD.D.I.studentDeskIcon3 = [
  138. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  139. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  140. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  141. ]
  142. U.MD.D.I.schoolDeskIcon = [
  143. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  144. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  145. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  146. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  147. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  148. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  149. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  150. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  151. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  152. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  153. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  154. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  155. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  156. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  157. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  158. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  159. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  160. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  161. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  162. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  163. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  164. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  165. ];
  166. U.MD.D.I.orgDeskIcon = [
  167. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  168. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  169. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  170. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  171. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  172. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  173. ];
  174. U.MD.D.I.orgStemDeskIcon = [
  175. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  176. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  177. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  178. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  179. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  180. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  181. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  182. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  183. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  184. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  185. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  186. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  187. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  188. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  189. ];
  190. U.MD.D.I.szulsDeskIcon = [
  191. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  192. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  193. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  194. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  195. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  196. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  197. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  198. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  199. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  200. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  201. ];
  202. U.MD.D.I.hanDeskIcon = [
  203. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  204. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  205. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  206. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  207. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  208. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  209. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  210. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  211. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  212. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  213. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  214. ];
  215. U.MD.D.I.GMteacherDeskIcon = [
  216. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  217. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  218. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  219. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  220. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  221. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  222. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  223. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  224. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  225. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  226. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  227. ];
  228. U.MD.D.I.GMstudentDeskIcon = [
  229. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  230. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  231. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  232. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  233. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  234. ];
  235. //北师大
  236. U.MD.D.I.BSDNSteacherDeskIcon = [
  237. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  238. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  239. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  240. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  241. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  242. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  243. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  244. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  245. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  246. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  247. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  248. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  249. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  250. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  251. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  252. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  253. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  254. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  255. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  256. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  257. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  258. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  259. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  260. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  261. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  262. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  263. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  264. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  265. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  266. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  267. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  268. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  269. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  270. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  271. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  272. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  273. ];
  274. //松山湖
  275. U.MD.D.I.SONGteacherDeskIcon = [
  276. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  277. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  278. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  279. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  280. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  281. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  282. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  283. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  284. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  285. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  286. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  287. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  288. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  289. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  290. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  291. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  292. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  293. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  294. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  295. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  296. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  297. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  298. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  299. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  300. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  301. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  302. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  303. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  304. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  305. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  306. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  307. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  308. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  309. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  310. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  311. ];
  312. U.MD.D.I.tcStudentDeskIcon = [
  313. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  314. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  315. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  316. ];
  317. U.MD.D.I.tcTeacherDeskIcon = [
  318. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  319. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  320. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  321. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  322. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  323. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  324. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  325. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  326. ];
  327. U.MD.D.I.tcOrganizerDeskIcon = [
  328. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  329. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  330. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  331. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  332. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  333. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  334. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  335. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  336. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  337. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  338. ];
  339. U.MD.D.I.szscStudentDeskIcon = [
  340. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  341. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  342. { "Name": "我的资料", "Url": "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.szscTeacherDeskIcon = [
  346. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  347. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  348. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  349. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  350. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  351. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  352. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  353. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  354. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  355. ];
  356. U.MD.D.I.szscOrganizerDeskIcon = [
  357. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  358. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  359. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  360. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  361. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  362. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  363. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  364. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  365. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  366. ];
  367. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  368. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  369. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  370. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  371. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  372. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  373. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  374. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  375. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  376. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  377. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  378. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  379. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  380. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  381. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  382. ];
  383. U.MD.D.I.wankeAdminDeskIcon = [
  384. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  385. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  386. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  387. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  388. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  389. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  390. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  391. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  392. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  393. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  394. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  395. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  396. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  397. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  398. ];
  399. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  400. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  401. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  402. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  403. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  404. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  405. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  406. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  407. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  408. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  409. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  410. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  411. ];
  412. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  413. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  414. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  415. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  416. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  417. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  418. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  419. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  420. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  421. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  422. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  423. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  424. ];
  425. //明德教师桌面图标的全局变量
  426. U.MD.D.I.MingdeTeacherDeskIcon = [
  427. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  428. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  429. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  430. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  431. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  432. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  433. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  434. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  435. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  436. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  437. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  438. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  439. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  440. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  441. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  442. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  443. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  444. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  445. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  446. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  447. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  448. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  449. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  450. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  451. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  452. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  453. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  454. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  455. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  456. ];
  457. //97c4ee8b-d010-4042-986d-e9d3c217264f
  458. //教师桌面图标的全局变量
  459. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  460. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  461. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  462. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  463. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  464. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  465. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  466. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  467. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  468. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  469. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  470. ];
  471. //福田
  472. U.MD.D.I.futianTeacherDeskIcon = [
  473. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  474. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  475. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  476. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  477. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  478. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  479. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  480. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  481. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  482. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  483. ];
  484. //福田
  485. U.MD.D.I.futianAdminDeskIcon = [
  486. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  487. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  488. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  489. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  490. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  491. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  492. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  493. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  494. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  495. ];
  496. //lotech
  497. U.MD.D.I.lotechTeacherDeskIcon = [
  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": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  506. ];
  507. //龙华中心小学教师桌面图标的全局变量
  508. U.MD.D.I.longhuateacherDeskIcon = [
  509. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  510. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  511. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  512. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  513. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  514. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  515. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  516. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  517. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  518. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  519. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  520. ];
  521. //教科院实小教师桌面图标的全局变量
  522. U.MD.D.I.siesteacherDeskIcon = [
  523. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  524. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  525. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  526. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  527. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  528. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  529. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  530. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  531. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  532. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  533. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  534. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  535. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  536. ];
  537. //福田
  538. U.MD.D.I.gdjgTeacherDeskIcon = [
  539. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  540. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  541. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  542. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  543. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  544. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  545. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  546. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  547. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  548. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  549. ];
  550. //gdjg
  551. U.MD.D.I.gdjgAdminDeskIcon = [
  552. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  553. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  554. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  555. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  556. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  557. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  558. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  559. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  560. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  561. ];
  562. //hk
  563. U.MD.D.I.hkteacherDeskIcon = [
  564. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  565. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  566. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  567. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.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": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  573. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  574. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  575. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  576. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  577. ];
  578. //hk
  579. U.MD.D.I.hkStudentDeskIcon = [
  580. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  581. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  582. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  583. ];
  584. //云海
  585. U.MD.D.I.yunhaiTeacherDeskIcon = [
  586. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  587. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  588. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  589. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  590. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  591. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  592. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  593. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  594. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  595. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  596. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  597. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  598. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  599. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  600. ];
  601. //福田
  602. U.MD.D.I.heyuanTeacherDeskIcon = [
  603. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  604. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.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": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  608. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  609. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  610. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  611. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  612. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  613. ];
  614. //福田
  615. U.MD.D.I.heyuanAdminDeskIcon = [
  616. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  617. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  618. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  619. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  620. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  621. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  622. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  623. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  624. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  625. ];
  626. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  627. U.MD.D.I.szherTeacherDeskIcon = [
  628. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  629. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  630. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  631. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  632. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  633. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  634. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  635. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  636. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  637. ];
  638. //#region 桌面初始化a
  639. /**
  640. * 初始化桌面的起始函数
  641. *
  642. */
  643. U.MD.D.I.init = function () {
  644. if ($("#U_MD_D_K")[0]) {
  645. //初始化桌面图标
  646. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  647. // var clickUrl = ':12588/requestIp.php';
  648. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  649. // U.MD.D.I.Ip = data;
  650. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  651. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  652. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  653. // })
  654. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  655. // })
  656. }
  657. }
  658. /**
  659. * 模式切换
  660. *
  661. */
  662. U.MD.D.I.ModeCheck = function (type) {
  663. if (US.Config.type == type) {
  664. return
  665. }
  666. US.Config.type = type
  667. $('.U_PBL_Check .active')[0].className = ''
  668. if (type == 1) {
  669. $('.U_PBL_Check div')[0].className = 'active'
  670. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  671. } else {
  672. $('.U_PBL_Check div')[1].className = 'active'
  673. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  674. }
  675. //初始化桌面图标
  676. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  677. if(type == 2){
  678. U.MD.D.I.openApplication("project")
  679. }
  680. }
  681. /**
  682. * 隐藏任务栏
  683. *
  684. * @param {element} 桌面元素
  685. */
  686. U.MD.D.I.hiddenTaskbar = function (el) {
  687. //任务栏位置变小
  688. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  689. //桌面的位置变大
  690. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  691. }
  692. /**
  693. * 隐藏任务栏
  694. *
  695. * @param {element} 桌面元素
  696. */
  697. U.MD.D.I.hiddenTaskbarout = function (el) {
  698. //任务栏位置变小
  699. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  700. //任务栏位置变化
  701. U.selectEl(el).css({ "bottom": "-60px" });
  702. //桌面的位置变大
  703. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  704. }
  705. }
  706. /**
  707. * 初始化打印桌面图标
  708. *
  709. * @param {element} 桌面元素
  710. */
  711. U.MD.D.I.initDesktopIcons = function (el, type) {
  712. var i, //用于循环
  713. _content, //桌面图标元素
  714. _iconcontent, //桌面图标元素
  715. _frag = $$("frag"), //定义一个碎片元素
  716. _type = US.userInfo.type,
  717. _org = US.userInfo.org,
  718. _oid = US.userInfo.organizeid,
  719. _role = US.userInfo.role,
  720. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  721. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  722. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  723. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  724. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  725. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  726. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  727. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  728. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  729. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  730. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  731. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  732. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  733. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  734. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  735. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  736. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  737. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  738. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  739. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  740. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  741. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  742. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  743. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  744. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  745. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon,//福田
  746. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon,//福田
  747. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon,//szher
  748. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//
  749. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//
  750. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  751. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
  752. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龙华中心
  753. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  754. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon,//hk
  755. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon,//hk
  756. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon,//云海
  757. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  758. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  759. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  760. 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'];
  761. 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'];
  762. //清楚桌面图标
  763. el.innerHTML = "";
  764. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  765. _teacherDesktopIconInfo.push(
  766. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  767. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  768. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  769. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  770. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  771. )
  772. _easyDesktopIconInfo.push(
  773. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  774. )
  775. }
  776. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  777. _teacherDesktopIconInfo.push(
  778. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  779. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  780. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  781. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  782. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  783. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  784. )
  785. }
  786. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  787. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  788. if(el.Name == '项目管理'){
  789. el.Name = 'PBL项目'
  790. }
  791. return el
  792. })
  793. }
  794. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  795. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  796. return el.Name != '魔盒识字' && el.Name != '24点'
  797. })
  798. }
  799. 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) {
  800. _studentDesktopIconInfo.push(
  801. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  802. )
  803. }
  804. //循环创建桌面图标
  805. if (type == 1) {
  806. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  807. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  808. _content = $$("div", {
  809. className: "U_MD_D_KO",
  810. "onmousedown": U.UF.C.closure(function (obj) {
  811. //防止拖动图标即打开了桌面应用
  812. U.MD.D.click(this, obj);
  813. }, [_studentDesktopIconInfo[i]]),
  814. "onclick": U.UF.C.closure(function (obj) {
  815. //防止拖动图标即打开了桌面应用
  816. U.MD.D.click(this, obj);
  817. }, [_studentDesktopIconInfo[i]])
  818. }, _frag); //
  819. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  820. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  821. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  822. }
  823. }else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  824. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  825. _content = $$("div", {
  826. className: "U_MD_D_KO",
  827. "onmousedown": U.UF.C.closure(function (obj) {
  828. //防止拖动图标即打开了桌面应用
  829. U.MD.D.click(this, obj);
  830. }, [_hkStudentDeskIconInfo[i]]),
  831. "onclick": U.UF.C.closure(function (obj) {
  832. //防止拖动图标即打开了桌面应用
  833. U.MD.D.click(this, obj);
  834. }, [_hkStudentDeskIconInfo[i]])
  835. }, _frag); //
  836. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  837. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  838. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  839. }
  840. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  841. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  842. _content = $$("div", {
  843. className: "U_MD_D_KO",
  844. "onmousedown": U.UF.C.closure(function (obj) {
  845. //防止拖动图标即打开了桌面应用
  846. U.MD.D.click(this, obj);
  847. }, [_studentDesktopIconInfo[i]]),
  848. "onclick": U.UF.C.closure(function (obj) {
  849. //防止拖动图标即打开了桌面应用
  850. U.MD.D.click(this, obj);
  851. }, [_studentDesktopIconInfo[i]])
  852. }, _frag); //
  853. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  854. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  855. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  856. }
  857. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  858. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  859. _content = $$("div", {
  860. className: "U_MD_D_KO",
  861. "onmousedown": U.UF.C.closure(function (obj) {
  862. //防止拖动图标即打开了桌面应用
  863. U.MD.D.click(this, obj);
  864. }, [_tcStudentDeskIconInfo[i]]),
  865. "onclick": U.UF.C.closure(function (obj) {
  866. //防止拖动图标即打开了桌面应用
  867. U.MD.D.click(this, obj);
  868. }, [_tcStudentDeskIconInfo[i]])
  869. }, _frag); //
  870. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  871. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  872. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  873. }
  874. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  875. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  876. _content = $$("div", {
  877. className: "U_MD_D_KO",
  878. "onmousedown": U.UF.C.closure(function (obj) {
  879. //防止拖动图标即打开了桌面应用
  880. U.MD.D.click(this, obj);
  881. }, [_szscStudentDeskIconInfo[i]]),
  882. "onclick": U.UF.C.closure(function (obj) {
  883. //防止拖动图标即打开了桌面应用
  884. U.MD.D.click(this, obj);
  885. }, [_szscStudentDeskIconInfo[i]])
  886. }, _frag); //
  887. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  888. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  889. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  890. }
  891. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  892. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  893. _content = $$("div", {
  894. className: "U_MD_D_KO",
  895. "onmousedown": U.UF.C.closure(function (obj) {
  896. //防止拖动图标即打开了桌面应用
  897. U.MD.D.click(this, obj);
  898. }, [_studentDesktopIconInfo3[i]]),
  899. "onclick": U.UF.C.closure(function (obj) {
  900. //防止拖动图标即打开了桌面应用
  901. U.MD.D.click(this, obj);
  902. }, [_studentDesktopIconInfo3[i]])
  903. }, _frag); //
  904. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  905. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  906. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  907. }
  908. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  909. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  910. _content = $$("div", {
  911. className: "U_MD_D_KO",
  912. "onmousedown": U.UF.C.closure(function (obj) {
  913. //防止拖动图标即打开了桌面应用
  914. U.MD.D.click(this, obj);
  915. }, [_studentDesktopIconInfo2[i]]),
  916. "onclick": U.UF.C.closure(function (obj) {
  917. //防止拖动图标即打开了桌面应用
  918. U.MD.D.click(this, obj);
  919. }, [_studentDesktopIconInfo2[i]])
  920. }, _frag); //
  921. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  922. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  923. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  924. }
  925. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  926. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  927. _content = $$("div", {
  928. className: "U_MD_D_KO",
  929. "onmousedown": U.UF.C.closure(function (obj) {
  930. //防止拖动图标即打开了桌面应用
  931. U.MD.D.click(this, obj);
  932. }, [_wanketeacherDesktopIconInfo[i]]),
  933. "onclick": U.UF.C.closure(function (obj) {
  934. //防止拖动图标即打开了桌面应用
  935. U.MD.D.click(this, obj);
  936. }, [_wanketeacherDesktopIconInfo[i]])
  937. }, _frag); //
  938. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  939. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  940. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  941. }
  942. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  943. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  944. _content = $$("div", {
  945. className: "U_MD_D_KO",
  946. "onmousedown": U.UF.C.closure(function (obj) {
  947. //防止拖动图标即打开了桌面应用
  948. U.MD.D.click(this, obj);
  949. }, [_wankeAdminDesktopIconInfo[i]]),
  950. "onclick": U.UF.C.closure(function (obj) {
  951. //防止拖动图标即打开了桌面应用
  952. U.MD.D.click(this, obj);
  953. }, [_wankeAdminDesktopIconInfo[i]])
  954. }, _frag); //
  955. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  956. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  957. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  958. }
  959. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  960. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  961. _content = $$("div", {
  962. className: "U_MD_D_KO",
  963. "onmousedown": U.UF.C.closure(function (obj) {
  964. //防止拖动图标即打开了桌面应用
  965. U.MD.D.click(this, obj);
  966. }, [_teacherDesktopIconInfo2[i]]),
  967. "onclick": U.UF.C.closure(function (obj) {
  968. //防止拖动图标即打开了桌面应用
  969. U.MD.D.click(this, obj);
  970. }, [_teacherDesktopIconInfo2[i]])
  971. }, _frag); //
  972. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  973. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  974. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  975. }
  976. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  977. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  978. _content = $$("div", {
  979. className: "U_MD_D_KO",
  980. "onmousedown": U.UF.C.closure(function (obj) {
  981. //防止拖动图标即打开了桌面应用
  982. U.MD.D.click(this, obj);
  983. }, [_lotechTeacherDeskIconInfo[i]]),
  984. "onclick": U.UF.C.closure(function (obj) {
  985. //防止拖动图标即打开了桌面应用
  986. U.MD.D.click(this, obj);
  987. }, [_lotechTeacherDeskIconInfo[i]])
  988. }, _frag); //
  989. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  990. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  991. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  992. }
  993. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  994. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  995. _content = $$("div", {
  996. className: "U_MD_D_KO",
  997. "onmousedown": U.UF.C.closure(function (obj) {
  998. //防止拖动图标即打开了桌面应用
  999. U.MD.D.click(this, obj);
  1000. }, [_siesTeacherDeskIconInfo[i]]),
  1001. "onclick": U.UF.C.closure(function (obj) {
  1002. //防止拖动图标即打开了桌面应用
  1003. U.MD.D.click(this, obj);
  1004. }, [_siesTeacherDeskIconInfo[i]])
  1005. }, _frag); //
  1006. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1007. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1008. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1009. }
  1010. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1011. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1012. _content = $$("div", {
  1013. className: "U_MD_D_KO",
  1014. "onmousedown": U.UF.C.closure(function (obj) {
  1015. //防止拖动图标即打开了桌面应用
  1016. U.MD.D.click(this, obj);
  1017. }, [_longhuaTeacherDeskIconInfo[i]]),
  1018. "onclick": U.UF.C.closure(function (obj) {
  1019. //防止拖动图标即打开了桌面应用
  1020. U.MD.D.click(this, obj);
  1021. }, [_longhuaTeacherDeskIconInfo[i]])
  1022. }, _frag); //
  1023. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1024. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1025. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1026. }
  1027. }else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1028. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1029. _content = $$("div", {
  1030. className: "U_MD_D_KO",
  1031. "onmousedown": U.UF.C.closure(function (obj) {
  1032. //防止拖动图标即打开了桌面应用
  1033. U.MD.D.click(this, obj);
  1034. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1035. "onclick": U.UF.C.closure(function (obj) {
  1036. //防止拖动图标即打开了桌面应用
  1037. U.MD.D.click(this, obj);
  1038. }, [_yunhaiTeacherDeskIconInfo[i]])
  1039. }, _frag); //
  1040. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1041. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1042. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1043. }//_hkStudentDeskIconInfo
  1044. }else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1045. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1046. _content = $$("div", {
  1047. className: "U_MD_D_KO",
  1048. "onmousedown": U.UF.C.closure(function (obj) {
  1049. //防止拖动图标即打开了桌面应用
  1050. U.MD.D.click(this, obj);
  1051. }, [_hkTeacherDeskIconInfo[i]]),
  1052. "onclick": U.UF.C.closure(function (obj) {
  1053. //防止拖动图标即打开了桌面应用
  1054. U.MD.D.click(this, obj);
  1055. }, [_hkTeacherDeskIconInfo[i]])
  1056. }, _frag); //
  1057. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1058. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1059. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1060. }
  1061. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1062. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1063. _content = $$("div", {
  1064. className: "U_MD_D_KO",
  1065. "onmousedown": U.UF.C.closure(function (obj) {
  1066. //防止拖动图标即打开了桌面应用
  1067. U.MD.D.click(this, obj);
  1068. }, [_gdjgAdminDeskIconInfo[i]]),
  1069. "onclick": U.UF.C.closure(function (obj) {
  1070. //防止拖动图标即打开了桌面应用
  1071. U.MD.D.click(this, obj);
  1072. }, [_gdjgAdminDeskIconInfo[i]])
  1073. }, _frag); //
  1074. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1075. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1076. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1077. }
  1078. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1079. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1080. _content = $$("div", {
  1081. className: "U_MD_D_KO",
  1082. "onmousedown": U.UF.C.closure(function (obj) {
  1083. //防止拖动图标即打开了桌面应用
  1084. U.MD.D.click(this, obj);
  1085. }, [_gdjgTeacherDeskIconInfo[i]]),
  1086. "onclick": U.UF.C.closure(function (obj) {
  1087. //防止拖动图标即打开了桌面应用
  1088. U.MD.D.click(this, obj);
  1089. }, [_gdjgTeacherDeskIconInfo[i]])
  1090. }, _frag); //
  1091. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1092. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1093. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1094. }
  1095. }else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1096. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1097. _content = $$("div", {
  1098. className: "U_MD_D_KO",
  1099. "onmousedown": U.UF.C.closure(function (obj) {
  1100. //防止拖动图标即打开了桌面应用
  1101. U.MD.D.click(this, obj);
  1102. }, [_szherTeacherDeskIconInfo[i]]),
  1103. "onclick": U.UF.C.closure(function (obj) {
  1104. //防止拖动图标即打开了桌面应用
  1105. U.MD.D.click(this, obj);
  1106. }, [_szherTeacherDeskIconInfo[i]])
  1107. }, _frag); //
  1108. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1109. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1110. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1111. }
  1112. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1113. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1114. _content = $$("div", {
  1115. className: "U_MD_D_KO",
  1116. "onmousedown": U.UF.C.closure(function (obj) {
  1117. //防止拖动图标即打开了桌面应用
  1118. U.MD.D.click(this, obj);
  1119. }, [_heyuannAdminDeskIconInfo[i]]),
  1120. "onclick": U.UF.C.closure(function (obj) {
  1121. //防止拖动图标即打开了桌面应用
  1122. U.MD.D.click(this, obj);
  1123. }, [_heyuannAdminDeskIconInfo[i]])
  1124. }, _frag); //
  1125. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1126. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1127. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1128. }
  1129. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1130. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1131. _content = $$("div", {
  1132. className: "U_MD_D_KO",
  1133. "onmousedown": U.UF.C.closure(function (obj) {
  1134. //防止拖动图标即打开了桌面应用
  1135. U.MD.D.click(this, obj);
  1136. }, [_heyuanTeacherDeskIconInfo[i]]),
  1137. "onclick": U.UF.C.closure(function (obj) {
  1138. //防止拖动图标即打开了桌面应用
  1139. U.MD.D.click(this, obj);
  1140. }, [_heyuanTeacherDeskIconInfo[i]])
  1141. }, _frag); //
  1142. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1143. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1144. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1145. }
  1146. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1147. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1148. _content = $$("div", {
  1149. className: "U_MD_D_KO",
  1150. "onmousedown": U.UF.C.closure(function (obj) {
  1151. //防止拖动图标即打开了桌面应用
  1152. U.MD.D.click(this, obj);
  1153. }, [_futianAdminDeskIconInfo[i]]),
  1154. "onclick": U.UF.C.closure(function (obj) {
  1155. //防止拖动图标即打开了桌面应用
  1156. U.MD.D.click(this, obj);
  1157. }, [_futianAdminDeskIconInfo[i]])
  1158. }, _frag); //
  1159. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1160. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1161. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1162. }
  1163. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1164. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1165. _content = $$("div", {
  1166. className: "U_MD_D_KO",
  1167. "onmousedown": U.UF.C.closure(function (obj) {
  1168. //防止拖动图标即打开了桌面应用
  1169. U.MD.D.click(this, obj);
  1170. }, [_futianTeacherDeskIconInfo[i]]),
  1171. "onclick": U.UF.C.closure(function (obj) {
  1172. //防止拖动图标即打开了桌面应用
  1173. U.MD.D.click(this, obj);
  1174. }, [_futianTeacherDeskIconInfo[i]])
  1175. }, _frag); //
  1176. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1177. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1178. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1179. }
  1180. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1181. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1182. _content = $$("div", {
  1183. className: "U_MD_D_KO",
  1184. "onmousedown": U.UF.C.closure(function (obj) {
  1185. //防止拖动图标即打开了桌面应用
  1186. U.MD.D.click(this, obj);
  1187. }, [_MingdeTeacherDeskIcon[i]]),
  1188. "onclick": U.UF.C.closure(function (obj) {
  1189. //防止拖动图标即打开了桌面应用
  1190. U.MD.D.click(this, obj);
  1191. }, [_MingdeTeacherDeskIcon[i]])
  1192. }, _frag); //
  1193. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1194. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1195. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1196. }
  1197. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1198. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1199. _content = $$("div", {
  1200. className: "U_MD_D_KO",
  1201. "onmousedown": U.UF.C.closure(function (obj) {
  1202. //防止拖动图标即打开了桌面应用
  1203. U.MD.D.click(this, obj);
  1204. }, [_lhsAdminDesktopIconInfo[i]]),
  1205. "onclick": U.UF.C.closure(function (obj) {
  1206. //防止拖动图标即打开了桌面应用
  1207. U.MD.D.click(this, obj);
  1208. }, [_lhsAdminDesktopIconInfo[i]])
  1209. }, _frag); //
  1210. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1211. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1212. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1213. }
  1214. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1215. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1216. _content = $$("div", {
  1217. className: "U_MD_D_KO",
  1218. "onmousedown": U.UF.C.closure(function (obj) {
  1219. //防止拖动图标即打开了桌面应用
  1220. U.MD.D.click(this, obj);
  1221. }, [_lhsteacherDesktopIconInfo[i]]),
  1222. "onclick": U.UF.C.closure(function (obj) {
  1223. //防止拖动图标即打开了桌面应用
  1224. U.MD.D.click(this, obj);
  1225. }, [_lhsteacherDesktopIconInfo[i]])
  1226. }, _frag); //
  1227. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1228. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1229. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1230. }
  1231. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1232. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1233. _content = $$("div", {
  1234. className: "U_MD_D_KO",
  1235. "onmousedown": U.UF.C.closure(function (obj) {
  1236. //防止拖动图标即打开了桌面应用
  1237. U.MD.D.click(this, obj);
  1238. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1239. "onclick": U.UF.C.closure(function (obj) {
  1240. //防止拖动图标即打开了桌面应用
  1241. U.MD.D.click(this, obj);
  1242. }, [_zhoujiateacherDesktopIconInfo[i]])
  1243. }, _frag); //
  1244. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1245. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1246. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1247. }
  1248. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1249. for (i = 0; i < _hanDeskIcon.length; i++) {
  1250. _content = $$("div", {
  1251. className: "U_MD_D_KO",
  1252. "onmousedown": U.UF.C.closure(function (obj) {
  1253. //防止拖动图标即打开了桌面应用
  1254. U.MD.D.click(this, obj);
  1255. }, [_hanDeskIcon[i]]),
  1256. "onclick": U.UF.C.closure(function (obj) {
  1257. //防止拖动图标即打开了桌面应用
  1258. U.MD.D.click(this, obj);
  1259. }, [_hanDeskIcon[i]])
  1260. }, _frag); //
  1261. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1262. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1263. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1264. }
  1265. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1266. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1267. _content = $$("div", {
  1268. className: "U_MD_D_KO",
  1269. "onmousedown": U.UF.C.closure(function (obj) {
  1270. //防止拖动图标即打开了桌面应用
  1271. U.MD.D.click(this, obj);
  1272. }, [_orgStemDeskIcon[i]]),
  1273. "onclick": U.UF.C.closure(function (obj) {
  1274. //防止拖动图标即打开了桌面应用
  1275. U.MD.D.click(this, obj);
  1276. }, [_orgStemDeskIcon[i]])
  1277. }, _frag); //
  1278. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1279. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1280. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1281. }
  1282. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1283. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1284. _content = $$("div", {
  1285. className: "U_MD_D_KO",
  1286. "onmousedown": U.UF.C.closure(function (obj) {
  1287. //防止拖动图标即打开了桌面应用
  1288. U.MD.D.click(this, obj);
  1289. }, [_szulsDeskIcon[i]]),
  1290. "onclick": U.UF.C.closure(function (obj) {
  1291. //防止拖动图标即打开了桌面应用
  1292. U.MD.D.click(this, obj);
  1293. }, [_szulsDeskIcon[i]])
  1294. }, _frag); //
  1295. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1296. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1297. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1298. }
  1299. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1300. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1301. _content = $$("div", {
  1302. className: "U_MD_D_KO",
  1303. "onmousedown": U.UF.C.closure(function (obj) {
  1304. //防止拖动图标即打开了桌面应用
  1305. U.MD.D.click(this, obj);
  1306. }, [_orgDesktopIconInfo[i]]),
  1307. "onclick": U.UF.C.closure(function (obj) {
  1308. //防止拖动图标即打开了桌面应用
  1309. U.MD.D.click(this, obj);
  1310. }, [_orgDesktopIconInfo[i]])
  1311. }, _frag); //
  1312. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1313. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1314. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1315. }
  1316. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1317. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1318. _content = $$("div", {
  1319. className: "U_MD_D_KO",
  1320. "onmousedown": U.UF.C.closure(function (obj) {
  1321. //防止拖动图标即打开了桌面应用
  1322. U.MD.D.click(this, obj);
  1323. }, [_schoolDesktopIconInfo[i]]),
  1324. "onclick": U.UF.C.closure(function (obj) {
  1325. //防止拖动图标即打开了桌面应用
  1326. U.MD.D.click(this, obj);
  1327. }, [_schoolDesktopIconInfo[i]])
  1328. }, _frag); //
  1329. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1330. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1331. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1332. }
  1333. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1334. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1335. _content = $$("div", {
  1336. className: "U_MD_D_KO",
  1337. "onmousedown": U.UF.C.closure(function (obj) {
  1338. //防止拖动图标即打开了桌面应用
  1339. U.MD.D.click(this, obj);
  1340. }, [_GMteacherDesktopIconInfo[i]]),
  1341. "onclick": U.UF.C.closure(function (obj) {
  1342. //防止拖动图标即打开了桌面应用
  1343. U.MD.D.click(this, obj);
  1344. }, [_GMteacherDesktopIconInfo[i]])
  1345. }, _frag); //
  1346. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1347. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1348. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1349. }
  1350. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1351. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1352. _content = $$("div", {
  1353. className: "U_MD_D_KO",
  1354. "onmousedown": U.UF.C.closure(function (obj) {
  1355. //防止拖动图标即打开了桌面应用
  1356. U.MD.D.click(this, obj);
  1357. }, [_SONGteacherDesktopIconInfo[i]]),
  1358. "onclick": U.UF.C.closure(function (obj) {
  1359. //防止拖动图标即打开了桌面应用
  1360. U.MD.D.click(this, obj);
  1361. }, [_SONGteacherDesktopIconInfo[i]])
  1362. }, _frag); //
  1363. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1364. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1365. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1366. }
  1367. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1368. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1369. _content = $$("div", {
  1370. className: "U_MD_D_KO",
  1371. "onmousedown": U.UF.C.closure(function (obj) {
  1372. //防止拖动图标即打开了桌面应用
  1373. U.MD.D.click(this, obj);
  1374. }, [_GMstudentDesktopIconInfo[i]]),
  1375. "onclick": U.UF.C.closure(function (obj) {
  1376. //防止拖动图标即打开了桌面应用
  1377. U.MD.D.click(this, obj);
  1378. }, [_GMstudentDesktopIconInfo[i]])
  1379. }, _frag); //
  1380. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1381. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1382. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1383. }
  1384. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1385. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1386. _content = $$("div", {
  1387. className: "U_MD_D_KO",
  1388. "onmousedown": U.UF.C.closure(function (obj) {
  1389. //防止拖动图标即打开了桌面应用
  1390. U.MD.D.click(this, obj);
  1391. }, [_tcTeacherDeskIconInfo[i]]),
  1392. "onclick": U.UF.C.closure(function (obj) {
  1393. //防止拖动图标即打开了桌面应用
  1394. U.MD.D.click(this, obj);
  1395. }, [_tcTeacherDeskIconInfo[i]])
  1396. }, _frag); //
  1397. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1398. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1399. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1400. }
  1401. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1402. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1403. _content = $$("div", {
  1404. className: "U_MD_D_KO",
  1405. "onmousedown": U.UF.C.closure(function (obj) {
  1406. //防止拖动图标即打开了桌面应用
  1407. U.MD.D.click(this, obj);
  1408. }, [_tcOrganizerDeskIconInfo[i]]),
  1409. "onclick": U.UF.C.closure(function (obj) {
  1410. //防止拖动图标即打开了桌面应用
  1411. U.MD.D.click(this, obj);
  1412. }, [_tcOrganizerDeskIconInfo[i]])
  1413. }, _frag); //
  1414. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1415. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1416. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1417. }
  1418. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1419. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1420. _content = $$("div", {
  1421. className: "U_MD_D_KO",
  1422. "onmousedown": U.UF.C.closure(function (obj) {
  1423. //防止拖动图标即打开了桌面应用
  1424. U.MD.D.click(this, obj);
  1425. }, [_szscTeacherDeskIconInfo[i]]),
  1426. "onclick": U.UF.C.closure(function (obj) {
  1427. //防止拖动图标即打开了桌面应用
  1428. U.MD.D.click(this, obj);
  1429. }, [_szscTeacherDeskIconInfo[i]])
  1430. }, _frag); //
  1431. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1432. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1433. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1434. }
  1435. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1436. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1437. _content = $$("div", {
  1438. className: "U_MD_D_KO",
  1439. "onmousedown": U.UF.C.closure(function (obj) {
  1440. //防止拖动图标即打开了桌面应用
  1441. U.MD.D.click(this, obj);
  1442. }, [_szscOrganizerDeskIconInfo[i]]),
  1443. "onclick": U.UF.C.closure(function (obj) {
  1444. //防止拖动图标即打开了桌面应用
  1445. U.MD.D.click(this, obj);
  1446. }, [_szscOrganizerDeskIconInfo[i]])
  1447. }, _frag); //
  1448. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1449. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1450. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1451. }
  1452. } else {
  1453. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1454. _content = $$("div", {
  1455. className: "U_MD_D_KO",
  1456. "onmousedown": U.UF.C.closure(function (obj) {
  1457. //防止拖动图标即打开了桌面应用
  1458. U.MD.D.click(this, obj);
  1459. }, [_teacherDesktopIconInfo[i]]),
  1460. "onclick": U.UF.C.closure(function (obj) {
  1461. //防止拖动图标即打开了桌面应用
  1462. U.MD.D.click(this, obj);
  1463. }, [_teacherDesktopIconInfo[i]])
  1464. }, _frag); //
  1465. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1466. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1467. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1468. }
  1469. }
  1470. } else {
  1471. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1472. _content = $$("div", {
  1473. className: "U_MD_D_KO",
  1474. style: { 'width': '124px', 'height': '145px' },
  1475. "onmousedown": U.UF.C.closure(function (obj) {
  1476. //防止拖动图标即打开了桌面应用
  1477. U.MD.D.click(this, obj);
  1478. }, [_easyDesktopIconInfo[i]]),
  1479. "onclick": U.UF.C.closure(function (obj) {
  1480. //防止拖动图标即打开了桌面应用
  1481. U.MD.D.click(this, obj);
  1482. }, [_easyDesktopIconInfo[i]])
  1483. }, _frag); //
  1484. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1485. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1486. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1487. }
  1488. }
  1489. if (type == 1) {
  1490. //加载好后给图标定位
  1491. U.MD.D.iconPostion($(_frag).Child());
  1492. } else {
  1493. //加载好后给图标定位
  1494. U.MD.D.iconPostion2($(_frag).Child());
  1495. }
  1496. //把图标加载到页面
  1497. el.appendChild(_frag);
  1498. }
  1499. /**
  1500. * 显示任务栏
  1501. *
  1502. * @param {element} 桌面元素
  1503. */
  1504. U.MD.D.I.displayTaskbar = function (el) {
  1505. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1506. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1507. //任务栏位置变化
  1508. U.selectEl(el).css({ "bottom": "0px" });
  1509. //桌面位置变话
  1510. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1511. }
  1512. }
  1513. //#region 桌面图标拖动逻辑
  1514. /**
  1515. * 桌面排列图标
  1516. *
  1517. * @param {element} 桌面元素
  1518. * @param {object} 上下相距的距离
  1519. * @param {object} 左右相距的距离
  1520. * @return {object} 命名空间
  1521. */
  1522. U.MD.D.iconPostion = function (childs, top, left) {
  1523. var i; //用于循环处理
  1524. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1525. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1526. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1527. for (i = 0; i < childs.length; i++) {
  1528. //如果竖排top超过了范围处理
  1529. if (top + 95 > US.height - 10) {
  1530. //left超过了页面范围处理,则向上重叠打印处理
  1531. if ((left + 180) > US.width) {
  1532. top -= 110;
  1533. left -= 90;
  1534. }
  1535. //没有超过范围,那么left+90添加到下一个竖排打印
  1536. else {
  1537. left += 90;
  1538. top = 15;
  1539. };
  1540. }
  1541. //给图标的位置赋值
  1542. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1543. if (i < childs.length - 1) {
  1544. //页面图标每次向下加95
  1545. top += 95;
  1546. }
  1547. }
  1548. //返回最后调用的图标的位置
  1549. return [top, left];
  1550. }
  1551. /**
  1552. * 桌面排列图标
  1553. *
  1554. * @param {element} 桌面元素
  1555. * @param {object} 上下相距的距离
  1556. * @param {object} 左右相距的距离
  1557. * @return {object} 命名空间
  1558. */
  1559. U.MD.D.iconPostion2 = function (childs, top, left) {
  1560. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1561. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1562. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1563. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1564. for (i = 0; i < childs.length; i++) {
  1565. //如果竖排top超过了范围处理
  1566. if (left + 150 > US.width - 10) {
  1567. //left超过了页面范围处理,则向上重叠打印处理
  1568. if ((top + 180) > US.Height) {
  1569. top -= 150;
  1570. left -= 150;
  1571. }
  1572. //没有超过范围,那么left+90添加到下一个竖排打印
  1573. else {
  1574. top += 150;
  1575. left = ol;
  1576. };
  1577. }
  1578. //给图标的位置赋值
  1579. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1580. if (i < childs.length - 1) {
  1581. //页面图标每次向下加95
  1582. left += 150;
  1583. }
  1584. }
  1585. //返回最后调用的图标的位置
  1586. return [top, left];
  1587. }
  1588. /**
  1589. * 桌面点击事件逻辑
  1590. *
  1591. * @param {element} 桌面元素
  1592. * @param {object} 上下相距的距离
  1593. * @param {object} 左右相距的距离
  1594. * @return {object} 命名空间
  1595. */
  1596. U.MD.D.click = function (el, obj) {
  1597. var _buttonnumber = event.button; //点击的按钮的事件值
  1598. var _userinfo = US.userInfo;
  1599. U.UF.EV.stopBubble(); //阻止向上冒泡
  1600. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1601. if (_buttonnumber < 2) {
  1602. //如果是click事件的处理
  1603. if (event.type == "click") {
  1604. //如果元素在mousemove事件中没有移动则出发click事件
  1605. if (!U.MD.D.I.IsDrag) {
  1606. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1607. U.alert("请先登录您的账号!");
  1608. setTimeout(() => {
  1609. U.MD.U.L.login();
  1610. }, 2000);
  1611. } else {
  1612. //打开应用处理
  1613. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1614. }
  1615. }
  1616. }
  1617. //如果是mouse事件的处理
  1618. else {
  1619. if (US.Config.type == '1') {
  1620. //拖动处理,添加拖动和拖动结束事件
  1621. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1622. }
  1623. }
  1624. U.MD.D.I.IsDrag = false;
  1625. }
  1626. }
  1627. /**
  1628. * 拖动的处理
  1629. *
  1630. */
  1631. U.MD.D.iconMove = function () {
  1632. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1633. U.MD.D.I.IsDrag = true;
  1634. }
  1635. /**
  1636. * 拖动结束后,这里是定位处理,以网状的形式定位
  1637. *
  1638. * @param {element} 拖动的元素
  1639. * @return {object} 命名空间
  1640. */
  1641. U.MD.D.iconUp = function (el) {
  1642. var _top = 15,
  1643. _left = 20,
  1644. _margin,
  1645. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1646. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1647. if (_positioninfo["OT"] > 15) {
  1648. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1649. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1650. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1651. }
  1652. if (_positioninfo["OL"] > 20) {
  1653. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1654. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1655. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1656. }
  1657. //while循环判断么一个重叠的元素
  1658. do {
  1659. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1660. _top = _positioninfo[0] + 95; //得到定位后的top
  1661. _left = _positioninfo[1]; //得到定位后的left
  1662. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1663. }
  1664. /**
  1665. * 判断拖动后图标是否重叠
  1666. *
  1667. * @param {element} 拖动的元素
  1668. * @param {element} 桌面所有的元素
  1669. * @param {array} 拖动元素的位置
  1670. ----------[0] 上 top
  1671. ----------[1] 左 left
  1672. * @return {object} 命名空间
  1673. */
  1674. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1675. //循环所有的图标
  1676. for (var i = 0; i < childs.length; i++) {
  1677. //判断有没有和该图标诶子重叠的元素
  1678. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1679. return childs[i]; //如果有返回
  1680. }
  1681. }
  1682. }
  1683. //#endregion
  1684. //#endregion
  1685. //#region 桌面应用
  1686. /**
  1687. * 打开应用
  1688. *
  1689. * @param {string} 类型
  1690. -----------------Disk 网盘系统
  1691. -----------------PDisk 学习系统网盘
  1692. -----------------Poto 图片
  1693. -----------------Video 视频
  1694. -----------------Music 音乐
  1695. -----------------Word word
  1696. -----------------Excel excel
  1697. -----------------Txt 记事本
  1698. -----------------PB 学习系统
  1699. -----------------Blog 朋友圈系统
  1700. -----------------FTP ftp系统
  1701. -----------------Group 好友群
  1702. -----------------SY 首页系统
  1703. -----------------Set 个人设置
  1704. -----------------XSet 系统设置
  1705. -----------------App 我们所有的app
  1706. -----------------BC c.1473.cn 平台
  1707. -----------------CWeb d.1473.cn 变成平台
  1708. -----------------其他的外联系统 我们统一用iframe打开
  1709. * @param {array} 类型
  1710. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1711. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1712. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1713. 如果第一个参数为其他,则无第二个参数
  1714. * @returns {array}
  1715. */
  1716. window.addEventListener('message', function (e) { // 监听 message 事件
  1717. // alert(e.data.type);
  1718. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1719. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1720. //3是展示全部阶段 2学生 1老师 4专家
  1721. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1722. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1723. //3是展示全部阶段 2学生 1老师 4专家
  1724. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1725. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1726. //3是展示全部阶段 2学生 1老师 4专家
  1727. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1728. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1729. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1730. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1731. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1732. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1733. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1734. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1735. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1736. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1737. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1738. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1739. //3是展示全部阶段 2学生 1老师 4专家
  1740. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1741. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1742. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1743. U.MD.D.I.selectUser();
  1744. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1745. var _formel = document.getElementById("study");
  1746. U.UF.F.windowZooming(_formel);
  1747. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1748. var _formel = document.getElementById("studyDetail");
  1749. U.UF.F.windowZooming(_formel);
  1750. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1751. var _formel = document.getElementById("studyDetail");
  1752. U.UF.F.windowZooming(_formel);
  1753. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1754. var _formel = document.getElementById("studentStudy");
  1755. U.UF.F.windowZooming(_formel);
  1756. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1757. // var _formel = document.getElementById("study");
  1758. //如果最大化了,那么就把他缩小
  1759. // if (_formel.ismaximize) {
  1760. // return;
  1761. // }
  1762. // U.UF.F.windowZooming(_formel);
  1763. // U.UF.F.topWindow(_formel);
  1764. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1765. // var _formel = document.getElementById("studyDetail");
  1766. //如果最大化了,那么就把他缩小
  1767. // if (_formel.ismaximize) {
  1768. // return;
  1769. // }
  1770. // U.UF.F.windowZooming(_formel);
  1771. // U.UF.F.topWindow(_formel);
  1772. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1773. // var _formel = document.getElementById("studentStudy");
  1774. // if (_formel.ismaximize) {
  1775. // return;
  1776. // }
  1777. // U.UF.F.windowZooming(_formel);
  1778. // U.UF.F.topWindow(_formel);
  1779. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1780. var _formel = document.getElementById("study");
  1781. // if (_formel.ismaximize) {
  1782. // return;
  1783. // }
  1784. // U.UF.F.windowZooming(_formel);
  1785. U.UF.F.topWindow(_formel);
  1786. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1787. var _formel = document.getElementById("studentIndex");
  1788. U.UF.F.windowZooming(_formel);
  1789. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1790. var _formel = document.getElementById("studyDetailS");
  1791. U.UF.F.windowZooming(_formel);
  1792. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1793. var _formel = document.getElementById("studioIndex");
  1794. U.UF.F.windowZooming(_formel);
  1795. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1796. var _formel = document.getElementById("studyDetailStudio");
  1797. U.UF.F.windowZooming(_formel);
  1798. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1799. var _formel = document.getElementById("studyDetailStudio");
  1800. U.UF.F.windowZooming(_formel);
  1801. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1802. var _formel = document.getElementById("studyDetailNT");
  1803. U.UF.F.windowZooming(_formel);
  1804. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1805. var _formel = document.getElementById("studyDetailS");
  1806. U.UF.F.windowZooming(_formel);
  1807. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1808. var _formel = document.getElementById("studyDetailS");
  1809. U.UF.F.topWindow(_formel);
  1810. } else if (e.data.tools && e.data.tools == "1") {
  1811. // U.MD.D.I.openApplication("whiteboard")
  1812. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1813. } else if (e.data.tools && e.data.tools == "2") {
  1814. U.MD.D.I.openApplication("note")
  1815. } else if (e.data.tools && e.data.tools == "3") {
  1816. // U.MD.D.I.openApplication("mind")
  1817. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1818. } else if (e.data.tools && e.data.tools == "4") {
  1819. U.MD.D.I.openApplication("investigation")
  1820. } else if (e.data.tools && e.data.tools == "6") {
  1821. // U.MD.D.I.openApplication("doc")
  1822. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1823. } else if (e.data.tools && e.data.tools == "7") {
  1824. // U.MD.D.I.openApplication("mindNetwork")
  1825. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1826. } else if (e.data.tools && e.data.tools == "8") {
  1827. U.MD.D.I.openApplication("library")
  1828. } else if (e.data.tools && e.data.tools == "17") {
  1829. U.MD.D.I.openApplication("stuLibrary")
  1830. } else if (e.data.tools && e.data.tools == "18") {
  1831. U.MD.D.I.openApplication("train")
  1832. } else if (e.data.tools && e.data.tools == "21") {
  1833. U.MD.D.I.openApplication("program")
  1834. } else if (e.data.tools && e.data.tools == "22") {
  1835. U.MD.D.I.openApplication("AIprogram2")
  1836. } else if (e.data.tools && e.data.tools == "23") {
  1837. U.MD.D.I.openApplication("Pythonprogram")
  1838. } else if (e.data.tools && e.data.tools == "24") {
  1839. U.MD.D.I.openApplication("AIprogram")
  1840. } else if (e.data.tools && e.data.tools == "25") {
  1841. U.MD.D.I.openApplication("sys")
  1842. } else if (e.data.tools && e.data.tools == "26") {
  1843. // U.MD.D.I.openApplication("courseDesign")
  1844. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1845. } else if (e.data.tools && e.data.tools == "31") {
  1846. U.MD.D.I.openApplication("netWorkPanel")
  1847. } else if (e.data.tools && e.data.tools == "32") {
  1848. U.MD.D.I.openApplication("codeEdit")
  1849. } else if (e.data.tools && e.data.tools == "57") {
  1850. U.MD.D.I.openApplication("CocoPi")
  1851. } else if (e.data.tools && e.data.tools == "63") {
  1852. U.MD.D.I.openApplication("Wood")
  1853. } else if (e.data.tools && e.data.tools == "58") {
  1854. U.MD.D.I.openApplication("car")
  1855. } else if (e.data.tools && e.data.tools == "59") {
  1856. U.MD.D.I.openApplication("lineSearch")
  1857. } else if (e.data.tools && e.data.tools == "60") {
  1858. U.MD.D.I.openApplication("deepLearning")
  1859. } else if (e.data.tools && e.data.tools == "61") {
  1860. U.MD.D.I.openApplication("allHistory")
  1861. } else if (e.data.tools && e.data.tools == "28") {
  1862. U.MD.D.I.openApplication("translation")
  1863. } else if (e.data.tools && e.data.tools == "37") {
  1864. U.MD.D.I.openApplication("mohe")
  1865. } else if (e.data.tools && e.data.tools == "38") {
  1866. U.MD.D.I.openApplication("24game")
  1867. } else if (e.data.tools && e.data.tools == "39") {
  1868. U.MD.D.I.openApplication("GeoGebra")
  1869. } else if (e.data.tools && e.data.tools == "43") {
  1870. U.MD.D.I.openApplication("studentEvaluate")
  1871. } else if (e.data.tools && e.data.tools == "44") {
  1872. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1873. } else if (e.data.tools && e.data.tools == "46") {
  1874. U.MD.D.I.openApplication("project")
  1875. } else if (e.data.tools && e.data.tools == "1s") {
  1876. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1877. } else if (e.data.tools && e.data.tools == "3s") {
  1878. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1879. } else if (e.data.tools && e.data.tools == "6s") {
  1880. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1881. } else if (e.data.tools && e.data.tools == "1studio") {
  1882. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1883. } else if (e.data.tools && e.data.tools == "3studio") {
  1884. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1885. } else if (e.data.tools && e.data.tools == "6studio") {
  1886. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1887. } else if (e.data.tools && e.data.tools == "3y") {
  1888. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1889. } else if (e.data.tools && e.data.tools == "1y") {
  1890. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1891. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1892. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1893. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1894. U.MD.D.I.openApplication("AIAnalyse")
  1895. } else if (e.data.tools && e.data.tools == "1teacher") {
  1896. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1897. } else if (e.data.tools && e.data.tools == "3teacher") {
  1898. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1899. } else if (e.data.tools && e.data.tools == "7teacher") {
  1900. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1901. } else if (e.data.tools && e.data.tools == "1teacherE") {
  1902. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1903. } else if (e.data.tools && e.data.tools == "3teacherE") {
  1904. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1905. } else if (e.data.tools && e.data.tools == "1E") {
  1906. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1907. } else if (e.data.tools && e.data.tools == "3E") {
  1908. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1909. } else if (e.data.tools && e.data.tools == "57y") {
  1910. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1911. } else if (e.data.tools && e.data.tools == "57u") {
  1912. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1913. } else if (e.data.tools && e.data.tools == "57teacher") {
  1914. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1915. }
  1916. });
  1917. U.MD.D.I.selectUser = function () {
  1918. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1919. if (res.value[0].length > 0) {
  1920. US.userInfo = res.value[0][0];
  1921. $(".userName")[0].innerHTML = US.userInfo.username;
  1922. }
  1923. }, [], { "type": "GET", "withCredentials": true });
  1924. }
  1925. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1926. var _userinfo = US.userInfo, //登录用户信息
  1927. _userid = US.userInfo.userid, //登录用户id
  1928. _oid = _userinfo.organizeid,
  1929. _type = US.userInfo.type,
  1930. _org = US.userInfo.org,
  1931. _role = US.userInfo.role,
  1932. _classId = US.userInfo.classid;
  1933. if (_type == 4) {
  1934. tType = 4
  1935. }
  1936. switch (str) {
  1937. case "studyDetailNT"://无终端模式
  1938. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1939. setTimeout(() => {
  1940. U.MD.U.L.login();
  1941. }, 2000);
  1942. } else {
  1943. _formdiv = new U.UF.UI.form(
  1944. "课程详情",
  1945. $$("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 }), {
  1946. "id": "studyDetailNT",
  1947. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1948. "onresize": function () { }
  1949. }, {
  1950. closecallback: function () { }
  1951. }, { "style": { "height": "36px" } }).form; //创建窗体
  1952. _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); } }
  1953. break;
  1954. }
  1955. case "studyDetail":
  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/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1964. "id": "studyDetail",
  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 "studyDetailS":
  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/#/courseDetailS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1982. "id": "studyDetailS",
  1983. "style": { "width": "95%", "height": "95%", "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/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1989. break;
  1990. }
  1991. case "studyDetailStudio":
  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/#/courseDetailStudio?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  2000. "id": "studyDetailStudio",
  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/studioCourse.png)" }, "name": "工作详情", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2007. break;
  2008. }
  2009. case "studyDetailS5":
  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/#/studyStudentS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  2018. "id": "studyDetailS",
  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/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2025. break;
  2026. }
  2027. case "studyDetailGM":
  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/#/courseDetailGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  2036. "id": "studyDetail",
  2037. "style": { "width": "100%", "height": "100%", "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/gm/learning.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2043. break;
  2044. }
  2045. case "hanUrl":
  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": "//school.hanzigon.cn/?appid=734714090237947#/material/video?grade_id=62&lesson_code=621&id=2432" }), {
  2054. "id": "hanUrl",
  2055. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2056. "onresize": function () { }
  2057. }, {
  2058. closecallback: function () { }
  2059. }, { "style": { "height": "36px" } }).form; //创建窗体
  2060. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2061. break;
  2062. }
  2063. }
  2064. }
  2065. U.MD.D.I.openApplication = function (str, obj, info) {
  2066. obj = obj || {};
  2067. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2068. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2069. _userinfo = US.userInfo, //登录用户信息
  2070. _userid = obj.userid || US.userInfo.userid, //登录用户id
  2071. _oid = obj.organizeid || _userinfo.organizeid,
  2072. _type = US.userInfo.type,
  2073. _org = US.userInfo.org,
  2074. _role = US.userInfo.role,
  2075. _classId = US.userInfo.classid,
  2076. _TscreenType = 1
  2077. _screenType = 2,
  2078. _SscreenType = 3;
  2079. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2080. return;
  2081. }
  2082. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2083. switch (str) {
  2084. case "studnetProject": //好友打开
  2085. _formdiv = new U.UF.UI.form(
  2086. "我的项目",
  2087. $$("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 }), {
  2088. "id": "studnetProject",
  2089. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2090. "onresize": function () { }
  2091. }, {
  2092. closecallback: function () { }
  2093. }, { "style": { "height": "36px" } }).form; //创建窗体
  2094. _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); } }
  2095. break;
  2096. case "studentEvaluate": //好友打开
  2097. _formdiv = new U.UF.UI.form(
  2098. "我的评价",
  2099. $$("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 }), {
  2100. "id": "studentEvaluate",
  2101. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2102. "onresize": function () { }
  2103. }, {
  2104. closecallback: function () { }
  2105. }, { "style": { "height": "36px" } }).form; //创建窗体
  2106. _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); } }
  2107. break;
  2108. case "my":
  2109. _formdiv = new U.UF.UI.form(
  2110. "我的资料",
  2111. $$("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 }), {
  2112. "id": "my",
  2113. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2114. "onresize": function () { }
  2115. }, {
  2116. closecallback: function () { }
  2117. }, { "style": { "height": "36px" } }).form; //创建窗体
  2118. _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); } }
  2119. break;
  2120. case "program":
  2121. _formdiv = new U.UF.UI.form(
  2122. "编程平台",
  2123. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2124. "id": "program",
  2125. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2126. "onresize": function () { }
  2127. }, {
  2128. closecallback: function () { }
  2129. }, { "style": { "height": "36px" } }).form; //创建窗体
  2130. _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); } }
  2131. break;
  2132. case "library":
  2133. _formdiv = new U.UF.UI.form(
  2134. "素材库",
  2135. $$("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 }), {
  2136. "id": "library",
  2137. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2138. "onresize": function () { }
  2139. }, {
  2140. closecallback: function () { }
  2141. }, { "style": { "height": "36px" } }).form; //创建窗体
  2142. _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); } }
  2143. break;
  2144. case "whiteboard":
  2145. _formdiv = new U.UF.UI.form(
  2146. "电子白板",
  2147. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2148. "id": "whiteboard",
  2149. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2150. "onresize": function () { }
  2151. }, {
  2152. closecallback: function () { }
  2153. }, { "style": { "height": "36px" } }).form; //创建窗体
  2154. _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); } }
  2155. break;
  2156. case "investigation":
  2157. _formdiv = new U.UF.UI.form(
  2158. "问卷调查",
  2159. $$("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 }), {
  2160. "id": "investigation",
  2161. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2162. "onresize": function () { }
  2163. }, {
  2164. closecallback: function () { }
  2165. }, { "style": { "height": "36px" } }).form; //创建窗体
  2166. _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); } }
  2167. break;
  2168. case "note":
  2169. _formdiv = new U.UF.UI.form(
  2170. "便签分类",
  2171. $$("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 }), {
  2172. "id": "note",
  2173. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2174. "onresize": function () { }
  2175. }, {
  2176. closecallback: function () { }
  2177. }, { "style": { "height": "36px" } }).form; //创建窗体
  2178. _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); } }
  2179. break;
  2180. // case "score":
  2181. // _formdiv = new U.UF.UI.form(
  2182. // "量规评分",
  2183. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2184. // "id": "score",
  2185. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2186. // "onresize": function() {}
  2187. // }, {
  2188. // closecallback: function() {}
  2189. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2190. // _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); } }
  2191. // break;
  2192. case "mind":
  2193. _formdiv = new U.UF.UI.form(
  2194. "思维导图",
  2195. $$("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"
  2196. "id": "mind",
  2197. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2198. "onresize": function () { }
  2199. }, {
  2200. closecallback: function () { }
  2201. }, { "style": { "height": "36px" } }).form; //创建窗体
  2202. _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); } }
  2203. break;
  2204. case "doc":
  2205. // U.MD.D.I.isRoom();
  2206. _formdiv = new U.UF.UI.form(
  2207. "协同文档",
  2208. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2209. "id": "doc",
  2210. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2211. "onresize": function () { }
  2212. }, {
  2213. closecallback: function () { }
  2214. }, { "style": { "height": "36px" } }).form; //创建窗体
  2215. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2216. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2217. // })
  2218. _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); } }
  2219. break;
  2220. case "studentStudy":
  2221. _formdiv = new U.UF.UI.form(
  2222. "课程中心",
  2223. $$("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
  2224. "id": "studentStudy",
  2225. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2226. "onresize": function () { }
  2227. }, {
  2228. closecallback: function () { }
  2229. }, { "style": { "height": "36px" } }).form; //创建窗体
  2230. _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); } }
  2231. break;
  2232. case "train": //好友打开
  2233. _formdiv = new U.UF.UI.form(
  2234. "训练平台",
  2235. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2236. "id": "train",
  2237. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2238. "onresize": function () { }
  2239. }, {
  2240. closecallback: function () { }
  2241. }, { "style": { "height": "36px" } }).form; //创建窗体
  2242. _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); } }
  2243. break;
  2244. case "mindNetwork": //好友打开
  2245. _formdiv = new U.UF.UI.form(
  2246. "思维网格",
  2247. $$("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 }), {
  2248. "id": "mindNetwork",
  2249. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2250. "onresize": function () { }
  2251. }, {
  2252. closecallback: function () { }
  2253. }, { "style": { "height": "36px" } }).form; //创建窗体
  2254. _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); } }
  2255. break;
  2256. case "studentClassRoom": //好友打开
  2257. _formdiv = new U.UF.UI.form(
  2258. "实时课堂",
  2259. $$("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 }), {
  2260. "id": "studentClassRoom",
  2261. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2262. "onresize": function () { }
  2263. }, {
  2264. closecallback: function () { }
  2265. }, { "style": { "height": "36px" } }).form; //创建窗体
  2266. _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); } }
  2267. setTimeout(() => {
  2268. U.UF.F.windowZooming(_formdiv)
  2269. }, 0);
  2270. break;
  2271. }
  2272. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2273. switch (str) {
  2274. case "studnetProject": //好友打开
  2275. _formdiv = new U.UF.UI.form(
  2276. "我的项目",
  2277. $$("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 }), {
  2278. "id": "studnetProject",
  2279. "style": { "width": "70%", "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/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2285. break;
  2286. case "studentEvaluate": //好友打开
  2287. _formdiv = new U.UF.UI.form(
  2288. "我的评价",
  2289. $$("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 }), {
  2290. "id": "studentEvaluate",
  2291. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2292. "onresize": function () { }
  2293. }, {
  2294. closecallback: function () { }
  2295. }, { "style": { "height": "36px" } }).form; //创建窗体
  2296. _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); } }
  2297. break;
  2298. case "my":
  2299. _formdiv = new U.UF.UI.form(
  2300. "我的资料",
  2301. $$("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 }), {
  2302. "id": "my",
  2303. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2304. "onresize": function () { }
  2305. }, {
  2306. closecallback: function () { }
  2307. }, { "style": { "height": "36px" } }).form; //创建窗体
  2308. _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); } }
  2309. break;
  2310. case "program":
  2311. _formdiv = new U.UF.UI.form(
  2312. "编程平台",
  2313. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2314. "id": "program",
  2315. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2316. "onresize": function () { }
  2317. }, {
  2318. closecallback: function () { }
  2319. }, { "style": { "height": "36px" } }).form; //创建窗体
  2320. _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); } }
  2321. break;
  2322. case "library":
  2323. _formdiv = new U.UF.UI.form(
  2324. "素材库",
  2325. $$("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 }), {
  2326. "id": "library",
  2327. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2328. "onresize": function () { }
  2329. }, {
  2330. closecallback: function () { }
  2331. }, { "style": { "height": "36px" } }).form; //创建窗体
  2332. _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); } }
  2333. break;
  2334. case "whiteboard":
  2335. _formdiv = new U.UF.UI.form(
  2336. "电子白板",
  2337. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2338. "id": "whiteboard",
  2339. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2340. "onresize": function () { }
  2341. }, {
  2342. closecallback: function () { }
  2343. }, { "style": { "height": "36px" } }).form; //创建窗体
  2344. _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); } }
  2345. break;
  2346. case "investigation":
  2347. _formdiv = new U.UF.UI.form(
  2348. "问卷调查",
  2349. $$("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 }), {
  2350. "id": "investigation",
  2351. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2352. "onresize": function () { }
  2353. }, {
  2354. closecallback: function () { }
  2355. }, { "style": { "height": "36px" } }).form; //创建窗体
  2356. _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); } }
  2357. break;
  2358. case "note":
  2359. _formdiv = new U.UF.UI.form(
  2360. "便签分类",
  2361. $$("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 }), {
  2362. "id": "note",
  2363. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2364. "onresize": function () { }
  2365. }, {
  2366. closecallback: function () { }
  2367. }, { "style": { "height": "36px" } }).form; //创建窗体
  2368. _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); } }
  2369. break;
  2370. // case "score":
  2371. // _formdiv = new U.UF.UI.form(
  2372. // "量规评分",
  2373. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2374. // "id": "score",
  2375. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2376. // "onresize": function() {}
  2377. // }, {
  2378. // closecallback: function() {}
  2379. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2380. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2381. // break;
  2382. case "mind":
  2383. _formdiv = new U.UF.UI.form(
  2384. "思维导图",
  2385. $$("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"
  2386. "id": "mind",
  2387. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2388. "onresize": function () { }
  2389. }, {
  2390. closecallback: function () { }
  2391. }, { "style": { "height": "36px" } }).form; //创建窗体
  2392. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2393. break;
  2394. case "doc":
  2395. // U.MD.D.I.isRoom();
  2396. _formdiv = new U.UF.UI.form(
  2397. "协同文档",
  2398. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2399. "id": "doc",
  2400. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2401. "onresize": function () { }
  2402. }, {
  2403. closecallback: function () { }
  2404. }, { "style": { "height": "36px" } }).form; //创建窗体
  2405. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2406. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2407. })
  2408. _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); } }
  2409. break;
  2410. case "train": //好友打开
  2411. _formdiv = new U.UF.UI.form(
  2412. "训练平台",
  2413. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2414. "id": "train",
  2415. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2416. "onresize": function () { }
  2417. }, {
  2418. closecallback: function () { }
  2419. }, { "style": { "height": "36px" } }).form; //创建窗体
  2420. _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); } }
  2421. break;
  2422. case "studentStudy":
  2423. _formdiv = new U.UF.UI.form(
  2424. "课程中心",
  2425. $$("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
  2426. "id": "studentStudy",
  2427. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2428. "onresize": function () { }
  2429. }, {
  2430. closecallback: function () { }
  2431. }, { "style": { "height": "36px" } }).form; //创建窗体
  2432. _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); } }
  2433. break;
  2434. case "mindNetwork": //好友打开
  2435. _formdiv = new U.UF.UI.form(
  2436. "思维网格",
  2437. $$("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 }), {
  2438. "id": "mindNetwork",
  2439. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2440. "onresize": function () { }
  2441. }, {
  2442. closecallback: function () { }
  2443. }, { "style": { "height": "36px" } }).form; //创建窗体
  2444. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2445. break;
  2446. case "studentClassRoom": //好友打开
  2447. _formdiv = new U.UF.UI.form(
  2448. "实时课堂",
  2449. $$("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 }), {
  2450. "id": "studentClassRoom",
  2451. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2452. "onresize": function () { }
  2453. }, {
  2454. closecallback: function () { }
  2455. }, { "style": { "height": "36px" } }).form; //创建窗体
  2456. _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); } }
  2457. setTimeout(() => {
  2458. U.UF.F.windowZooming(_formdiv)
  2459. }, 0);
  2460. break;
  2461. }
  2462. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2463. //选择应用处理
  2464. switch (str) {
  2465. case "project": //好友打开
  2466. _formdiv = new U.UF.UI.form(
  2467. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2468. $$("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 }), {
  2469. "id": "project",
  2470. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2471. "onresize": function () { }
  2472. }, {
  2473. closecallback: function () { }
  2474. }, { "style": { "height": "36px" } }).form; //创建窗体
  2475. _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); } }
  2476. break;
  2477. case "student":
  2478. _formdiv = new U.UF.UI.form(
  2479. "学生管理",
  2480. $$("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 }), {
  2481. "id": "student",
  2482. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2483. "onresize": function () { }
  2484. }, {
  2485. closecallback: function () { }
  2486. }, { "style": { "height": "36px" } }).form; //创建窗体
  2487. _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); } }
  2488. break;
  2489. case "evaluate":
  2490. _formdiv = new U.UF.UI.form(
  2491. "学生评价",
  2492. $$("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 }), {
  2493. "id": "evaluate",
  2494. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2495. "onresize": function () { }
  2496. }, {
  2497. closecallback: function () { }
  2498. }, { "style": { "height": "36px" } }).form; //创建窗体
  2499. _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); } }
  2500. break;
  2501. case "sys":
  2502. _formdiv = new U.UF.UI.form(
  2503. "目标管理",
  2504. $$("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 }), {
  2505. "id": "sys",
  2506. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2507. "onresize": function () { }
  2508. }, {
  2509. closecallback: function () { }
  2510. }, { "style": { "height": "36px" } }).form; //创建窗体
  2511. _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); } }
  2512. break;
  2513. case "courseDesign":
  2514. _formdiv = new U.UF.UI.form(
  2515. "项目设计",
  2516. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2517. "id": "courseDesign",
  2518. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2519. "onresize": function () { }
  2520. }, {
  2521. closecallback: function () { }
  2522. }, { "style": { "height": "36px" } }).form; //创建窗体
  2523. _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); } }
  2524. break;
  2525. case "program":
  2526. _formdiv = new U.UF.UI.form(
  2527. "编程平台",
  2528. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2529. "id": "program",
  2530. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2531. "onresize": function () { }
  2532. }, {
  2533. closecallback: function () { }
  2534. }, { "style": { "height": "36px" } }).form; //创建窗体
  2535. _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); } }
  2536. break;
  2537. case "class":
  2538. _formdiv = new U.UF.UI.form(
  2539. "班级管理",
  2540. $$("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 }), {
  2541. "id": "class",
  2542. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2543. "onresize": function () { }
  2544. }, {
  2545. closecallback: function () { }
  2546. }, { "style": { "height": "36px" } }).form; //创建窗体
  2547. _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); } }
  2548. break;
  2549. case "Grade":
  2550. _formdiv = new U.UF.UI.form(
  2551. "年级管理",
  2552. $$("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 }), {
  2553. "id": "class",
  2554. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2555. "onresize": function () { }
  2556. }, {
  2557. closecallback: function () { }
  2558. }, { "style": { "height": "36px" } }).form; //创建窗体
  2559. _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); } }
  2560. break;
  2561. case "my":
  2562. _formdiv = new U.UF.UI.form(
  2563. "我的资料",
  2564. $$("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 }), {
  2565. "id": "my",
  2566. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2567. "onresize": function () { }
  2568. }, {
  2569. closecallback: function () { }
  2570. }, { "style": { "height": "36px" } }).form; //创建窗体
  2571. _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); } }
  2572. break;
  2573. case "notice":
  2574. _formdiv = new U.UF.UI.form(
  2575. "通知公告",
  2576. $$("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 }), {
  2577. "id": "notice",
  2578. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2579. "onresize": function () { }
  2580. }, {
  2581. closecallback: function () { }
  2582. }, { "style": { "height": "36px" } }).form; //创建窗体
  2583. _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); } }
  2584. break;
  2585. case "library":
  2586. _formdiv = new U.UF.UI.form(
  2587. "素材库",
  2588. $$("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 }), {
  2589. "id": "library",
  2590. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2591. "onresize": function () { }
  2592. }, {
  2593. closecallback: function () { }
  2594. }, { "style": { "height": "36px" } }).form; //创建窗体
  2595. _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); } }
  2596. break;
  2597. case "whiteboard":
  2598. _formdiv = new U.UF.UI.form(
  2599. "电子白板",
  2600. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2601. "id": "whiteboard",
  2602. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2603. "onresize": function () { }
  2604. }, {
  2605. closecallback: function () { }
  2606. }, { "style": { "height": "36px" } }).form; //创建窗体
  2607. _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); } }
  2608. break;
  2609. case "investigation":
  2610. _formdiv = new U.UF.UI.form(
  2611. "问卷调查",
  2612. $$("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 }), {
  2613. "id": "investigation",
  2614. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2615. "onresize": function () { }
  2616. }, {
  2617. closecallback: function () { }
  2618. }, { "style": { "height": "36px" } }).form; //创建窗体
  2619. _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); } }
  2620. break;
  2621. case "note":
  2622. _formdiv = new U.UF.UI.form(
  2623. "便签分类",
  2624. $$("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 }), {
  2625. "id": "note",
  2626. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2627. "onresize": function () { }
  2628. }, {
  2629. closecallback: function () { }
  2630. }, { "style": { "height": "36px" } }).form; //创建窗体
  2631. _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); } }
  2632. break;
  2633. // case "score":
  2634. // _formdiv = new U.UF.UI.form(
  2635. // "量规评分",
  2636. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2637. // "id": "score",
  2638. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2639. // "onresize": function() {}
  2640. // }, {
  2641. // closecallback: function() {}
  2642. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2643. // _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); } }
  2644. // break;
  2645. case "mind":
  2646. _formdiv = new U.UF.UI.form(
  2647. "思维导图",
  2648. $$("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"
  2649. "id": "mind",
  2650. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2651. "onresize": function () { }
  2652. }, {
  2653. closecallback: function () { }
  2654. }, { "style": { "height": "36px" } }).form; //创建窗体
  2655. _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); } }
  2656. break;
  2657. case "doc":
  2658. // U.MD.D.I.isRoom();
  2659. _formdiv = new U.UF.UI.form(
  2660. "协同文档",
  2661. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2662. "id": "doc",
  2663. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2664. "onresize": function () { }
  2665. }, {
  2666. closecallback: function () { }
  2667. }, { "style": { "height": "36px" } }).form; //创建窗体
  2668. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2669. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2670. })
  2671. _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); } }
  2672. break;
  2673. case "study":
  2674. _formdiv = new U.UF.UI.form(
  2675. "课程中心",
  2676. $$("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
  2677. "id": "study",
  2678. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2679. "onresize": function () { }
  2680. }, {
  2681. closecallback: function () { }
  2682. }, { "style": { "height": "36px" } }).form; //创建窗体
  2683. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2684. break;
  2685. case "mindNetwork": //好友打开
  2686. _formdiv = new U.UF.UI.form(
  2687. "思维网格",
  2688. $$("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 }), {
  2689. "id": "mindNetwork",
  2690. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2691. "onresize": function () { }
  2692. }, {
  2693. closecallback: function () { }
  2694. }, { "style": { "height": "36px" } }).form; //创建窗体
  2695. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2696. break;
  2697. case "train": //好友打开
  2698. _formdiv = new U.UF.UI.form(
  2699. "训练平台",
  2700. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2701. "id": "mindNetwork",
  2702. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2703. "onresize": function () { }
  2704. }, {
  2705. closecallback: function () { }
  2706. }, { "style": { "height": "36px" } }).form; //创建窗体
  2707. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2708. break;
  2709. case "teacherClassRoom": //好友打开
  2710. _formdiv = new U.UF.UI.form(
  2711. "实时课堂",
  2712. $$("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 }), {
  2713. "id": "teacherClassRoom",
  2714. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2715. "onresize": function () { }
  2716. }, {
  2717. closecallback: function () { }
  2718. }, { "style": { "height": "36px" } }).form; //创建窗体
  2719. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2720. setTimeout(() => {
  2721. U.UF.F.windowZooming(_formdiv)
  2722. }, 0);
  2723. break;
  2724. }
  2725. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2726. switch (str) {
  2727. case "project": //好友打开
  2728. _formdiv = new U.UF.UI.form(
  2729. "课程管理",
  2730. $$("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 }), {
  2731. "id": "project",
  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/project.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2738. break;
  2739. case "evaluate":
  2740. _formdiv = new U.UF.UI.form(
  2741. "学生评价",
  2742. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2743. "id": "evaluate",
  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/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2750. break;
  2751. case "notice":
  2752. _formdiv = new U.UF.UI.form(
  2753. "通知公告",
  2754. $$("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 }), {
  2755. "id": "notice",
  2756. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2757. "onresize": function () { }
  2758. }, {
  2759. closecallback: function () { }
  2760. }, { "style": { "height": "36px" } }).form; //创建窗体
  2761. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2762. break;
  2763. case "stuLibrary":
  2764. _formdiv = new U.UF.UI.form(
  2765. "学习资料",
  2766. $$("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 }), {
  2767. "id": "stuLibrary",
  2768. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2769. "onresize": function () { }
  2770. }, {
  2771. closecallback: function () { }
  2772. }, { "style": { "height": "36px" } }).form; //创建窗体
  2773. _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); } }
  2774. break;
  2775. case "program":
  2776. _formdiv = new U.UF.UI.form(
  2777. "编程平台",
  2778. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2779. "id": "program",
  2780. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2781. "onresize": function () { }
  2782. }, {
  2783. closecallback: function () { }
  2784. }, { "style": { "height": "36px" } }).form; //创建窗体
  2785. _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); } }
  2786. break;
  2787. case "whiteboard":
  2788. _formdiv = new U.UF.UI.form(
  2789. "电子白板",
  2790. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2791. "id": "whiteboard",
  2792. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2793. "onresize": function () { }
  2794. }, {
  2795. closecallback: function () { }
  2796. }, { "style": { "height": "36px" } }).form; //创建窗体
  2797. _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); } }
  2798. break;
  2799. case "investigation":
  2800. _formdiv = new U.UF.UI.form(
  2801. "问卷调查",
  2802. $$("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 }), {
  2803. "id": "investigation",
  2804. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2805. "onresize": function () { }
  2806. }, {
  2807. closecallback: function () { }
  2808. }, { "style": { "height": "36px" } }).form; //创建窗体
  2809. _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); } }
  2810. break;
  2811. case "mind":
  2812. _formdiv = new U.UF.UI.form(
  2813. "思维导图",
  2814. $$("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"
  2815. "id": "mind",
  2816. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2817. "onresize": function () { }
  2818. }, {
  2819. closecallback: function () { }
  2820. }, { "style": { "height": "36px" } }).form; //创建窗体
  2821. _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); } }
  2822. break;
  2823. case "doc":
  2824. // U.MD.D.I.isRoom();
  2825. _formdiv = new U.UF.UI.form(
  2826. "协同文档",
  2827. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2828. "id": "doc",
  2829. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2830. "onresize": function () { }
  2831. }, {
  2832. closecallback: function () { }
  2833. }, { "style": { "height": "36px" } }).form; //创建窗体
  2834. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2835. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2836. })
  2837. _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); } }
  2838. break;
  2839. case "study":
  2840. _formdiv = new U.UF.UI.form(
  2841. "课程中心",
  2842. $$("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
  2843. "id": "study",
  2844. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2845. "onresize": function () { }
  2846. }, {
  2847. closecallback: function () { }
  2848. }, { "style": { "height": "36px" } }).form; //创建窗体
  2849. _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); } }
  2850. break;
  2851. case "mindNetwork": //好友打开
  2852. _formdiv = new U.UF.UI.form(
  2853. "思维网格",
  2854. $$("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 }), {
  2855. "id": "mindNetwork",
  2856. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2857. "onresize": function () { }
  2858. }, {
  2859. closecallback: function () { }
  2860. }, { "style": { "height": "36px" } }).form; //创建窗体
  2861. _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); } }
  2862. break;
  2863. case "train": //好友打开
  2864. _formdiv = new U.UF.UI.form(
  2865. "训练平台",
  2866. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2867. "id": "train",
  2868. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2869. "onresize": function () { }
  2870. }, {
  2871. closecallback: function () { }
  2872. }, { "style": { "height": "36px" } }).form; //创建窗体
  2873. _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); } }
  2874. break;
  2875. case "sys":
  2876. _formdiv = new U.UF.UI.form(
  2877. "目标管理",
  2878. $$("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 }), {
  2879. "id": "sys",
  2880. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2881. "onresize": function () { }
  2882. }, {
  2883. closecallback: function () { }
  2884. }, { "style": { "height": "36px" } }).form; //创建窗体
  2885. _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); } }
  2886. break;
  2887. case "courseDesign":
  2888. _formdiv = new U.UF.UI.form(
  2889. "项目设计",
  2890. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2891. "id": "courseDesign",
  2892. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2893. "onresize": function () { }
  2894. }, {
  2895. closecallback: function () { }
  2896. }, { "style": { "height": "36px" } }).form; //创建窗体
  2897. _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); } }
  2898. break;
  2899. }
  2900. } else if (!_type) {
  2901. switch (str) {
  2902. case "my":
  2903. _formdiv = new U.UF.UI.form(
  2904. "我的资料",
  2905. $$("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 }), {
  2906. "id": "my",
  2907. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2908. "onresize": function () { }
  2909. }, {
  2910. closecallback: function () { }
  2911. }, { "style": { "height": "36px" } }).form; //创建窗体
  2912. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2913. break;
  2914. }
  2915. }
  2916. switch (str) {
  2917. // AIprogram2 AI体验 aihub.cocorobo.cn
  2918. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2919. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2920. case "AIprogram2": //AI体验
  2921. _formdiv = new U.UF.UI.form(
  2922. "AI体验",
  2923. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2924. "id": "AIprogram2",
  2925. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2926. "onresize": function () { }
  2927. }, {
  2928. closecallback: function () { }
  2929. }, { "style": { "height": "36px" } }).form; //创建窗体
  2930. _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); } }
  2931. break;
  2932. case "Pythonprogram": //python编程
  2933. _formdiv = new U.UF.UI.form(
  2934. "Python编程",
  2935. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2936. "id": "Pythonprogram",
  2937. "style": { "width": "70%", "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/Pythonprogram.png)" }, "name": "Python编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2943. break;
  2944. case "AIprogram": //ai编程
  2945. _formdiv = new U.UF.UI.form(
  2946. "AI编程平台",
  2947. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2948. "id": "AIprogram",
  2949. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2950. "onresize": function () { }
  2951. }, {
  2952. closecallback: function () { }
  2953. }, { "style": { "height": "36px" } }).form; //创建窗体
  2954. _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); } }
  2955. break;
  2956. case "CocoPi": //CocoPi
  2957. _formdiv = new U.UF.UI.form(
  2958. "CocoPi",
  2959. $$("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" }), {
  2960. "id": "CocoPi",
  2961. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2962. "onresize": function () { }
  2963. }, {
  2964. closecallback: function () { }
  2965. }, { "style": { "height": "36px" } }).form; //创建窗体
  2966. _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); } }
  2967. break;
  2968. case "Wood": //Wood
  2969. _formdiv = new U.UF.UI.form(
  2970. "海龟编程",
  2971. $$("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/" }), {
  2972. "id": "Wood",
  2973. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2974. "onresize": function () { }
  2975. }, {
  2976. closecallback: function () { }
  2977. }, { "style": { "height": "36px" } }).form; //创建窗体
  2978. _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); } }
  2979. break;
  2980. case "car": //模拟驾驶
  2981. _formdiv = new U.UF.UI.form(
  2982. "模拟驾驶",
  2983. $$("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/" }), {
  2984. "id": "car",
  2985. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2986. "onresize": function () { }
  2987. }, {
  2988. closecallback: function () { }
  2989. }, { "style": { "height": "36px" } }).form; //创建窗体
  2990. _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); } }
  2991. break;
  2992. case "lineSearch": //路径搜索
  2993. _formdiv = new U.UF.UI.form(
  2994. "路径搜索",
  2995. $$("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/" }), {
  2996. "id": "lineSearch",
  2997. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2998. "onresize": function () { }
  2999. }, {
  3000. closecallback: function () { }
  3001. }, { "style": { "height": "36px" } }).form; //创建窗体
  3002. _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); } }
  3003. break;
  3004. case "deepLearning": //深度学习
  3005. _formdiv = new U.UF.UI.form(
  3006. "深度学习",
  3007. $$("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/#" }), {
  3008. "id": "deepLearning",
  3009. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3010. "onresize": function () { }
  3011. }, {
  3012. closecallback: function () { }
  3013. }, { "style": { "height": "36px" } }).form; //创建窗体
  3014. _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); } }
  3015. break;
  3016. case "allHistory": //深度学习
  3017. _formdiv = new U.UF.UI.form(
  3018. "全历史",
  3019. $$("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/" }), {
  3020. "id": "allHistory",
  3021. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3022. "onresize": function () { }
  3023. }, {
  3024. closecallback: function () { }
  3025. }, { "style": { "height": "36px" } }).form; //创建窗体
  3026. _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); } }
  3027. break;
  3028. case "chatPDF": //ai编程
  3029. _formdiv = new U.UF.UI.form(
  3030. "chatPDF",
  3031. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3032. "id": "chatPDF",
  3033. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3034. "onresize": function () { }
  3035. }, {
  3036. closecallback: function () { }
  3037. }, { "style": { "height": "36px" } }).form; //创建窗体
  3038. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/chatPDF.png)" }, "name": "chatPDF", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3039. break;
  3040. case "resources": //国家教育
  3041. _formdiv = new U.UF.UI.form(
  3042. "国家教育",
  3043. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3044. "id": "resources",
  3045. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3046. "onresize": function () { }
  3047. }, {
  3048. closecallback: function () { }
  3049. }, { "style": { "height": "36px" } }).form; //创建窗体
  3050. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/resources.png)" }, "name": "国家教育", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3051. break;
  3052. case "codeEdit": //源码编辑
  3053. _formdiv = new U.UF.UI.form(
  3054. "源码编辑",
  3055. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3056. "id": "codeEdit",
  3057. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3058. "onresize": function () { }
  3059. }, {
  3060. closecallback: function () { }
  3061. }, { "style": { "height": "36px" } }).form; //创建窗体
  3062. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/code.png)" }, "name": "源码编辑", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3063. break; //
  3064. case "MindMap": //MindMap
  3065. _formdiv = new U.UF.UI.form(
  3066. "MindMap",
  3067. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3068. "id": "MindMap",
  3069. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3070. "onresize": function () { }
  3071. }, {
  3072. closecallback: function () { }
  3073. }, { "style": { "height": "36px" } }).form; //创建窗体
  3074. _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); } }
  3075. break;
  3076. case "netWorkPanel": //netWorkPanel
  3077. _formdiv = new U.UF.UI.form(
  3078. "netWorkPanel",
  3079. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3080. "id": "netWorkPanel",
  3081. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3082. "onresize": function () { }
  3083. }, {
  3084. closecallback: function () { }
  3085. }, { "style": { "height": "36px" } }).form; //创建窗体
  3086. _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); } }
  3087. break;
  3088. case "GeoGebra": //GeoGebra
  3089. _formdiv = new U.UF.UI.form(
  3090. "GeoGebra",
  3091. $$("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" }), {
  3092. "id": "GeoGebra",
  3093. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3094. "onresize": function () { }
  3095. }, {
  3096. closecallback: function () { }
  3097. }, { "style": { "height": "36px" } }).form; //创建窗体
  3098. _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); } }
  3099. break;
  3100. case "translation": //翻译
  3101. _formdiv = new U.UF.UI.form(
  3102. "翻译",
  3103. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3104. "id": "translation",
  3105. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3106. "onresize": function () { }
  3107. }, {
  3108. closecallback: function () { }
  3109. }, { "style": { "height": "36px" } }).form; //创建窗体
  3110. _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); } }
  3111. break;
  3112. case "mohe": //魔盒
  3113. _formdiv = new U.UF.UI.form(
  3114. "魔盒识字",
  3115. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3116. "id": "mohe",
  3117. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3118. "onresize": function () { }
  3119. }, {
  3120. closecallback: function () { }
  3121. }, { "style": { "height": "36px" } }).form; //创建窗体
  3122. _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); } }
  3123. break;
  3124. case "24game": //24点
  3125. _formdiv = new U.UF.UI.form(
  3126. "24点",
  3127. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3128. "id": "24game",
  3129. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3130. "onresize": function () { }
  3131. }, {
  3132. closecallback: function () { }
  3133. }, { "style": { "height": "36px" } }).form; //创建窗体
  3134. _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); } }
  3135. break;
  3136. case "case":
  3137. _formdiv = new U.UF.UI.form(
  3138. "课程进展",
  3139. $$("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 }), {
  3140. "id": "case",
  3141. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3142. "onresize": function () { }
  3143. }, {
  3144. closecallback: function () { }
  3145. }, { "style": { "height": "36px" } }).form; //创建窗体
  3146. _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); } }
  3147. break;
  3148. case "snf":
  3149. _formdiv = new U.UF.UI.form(
  3150. "赛诺梵",
  3151. $$("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" }), {
  3152. "id": "snf",
  3153. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3154. "onresize": function () { }
  3155. }, {
  3156. closecallback: function () { }
  3157. }, { "style": { "height": "36px" } }).form; //创建窗体
  3158. _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); } }
  3159. break;
  3160. case "hanFamily":
  3161. _formdiv = new U.UF.UI.form(
  3162. "汉字家族",
  3163. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3164. "id": "hanFamily",
  3165. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3166. "onresize": function () { }
  3167. }, {
  3168. closecallback: function () { }
  3169. }, { "style": { "height": "36px" } }).form; //创建窗体
  3170. _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); } }
  3171. break;
  3172. case "hanClassics":
  3173. _formdiv = new U.UF.UI.form(
  3174. "国学经典",
  3175. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3176. "id": "hanClassics",
  3177. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3178. "onresize": function () { }
  3179. }, {
  3180. closecallback: function () { }
  3181. }, { "style": { "height": "36px" } }).form; //创建窗体
  3182. _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); } }
  3183. break;
  3184. case "hanTraining":
  3185. _formdiv = new U.UF.UI.form(
  3186. "笔画训练",
  3187. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3188. "id": "hanTraining",
  3189. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3190. "onresize": function () { }
  3191. }, {
  3192. closecallback: function () { }
  3193. }, { "style": { "height": "36px" } }).form; //创建窗体
  3194. _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); } }
  3195. break;
  3196. case "hanClass":
  3197. _formdiv = new U.UF.UI.form(
  3198. "书法课堂",
  3199. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3200. "id": "hanClass",
  3201. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3202. "onresize": function () { }
  3203. }, {
  3204. closecallback: function () { }
  3205. }, { "style": { "height": "36px" } }).form; //创建窗体
  3206. _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); } }
  3207. break;
  3208. case "han":
  3209. _formdiv = new U.UF.UI.form(
  3210. "汉字宫",
  3211. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3212. "id": "han",
  3213. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3214. "onresize": function () { }
  3215. }, {
  3216. closecallback: function () { }
  3217. }, { "style": { "height": "36px" } }).form; //创建窗体
  3218. _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); } }
  3219. break;
  3220. case "projectGM": //课程管理
  3221. _formdiv = new U.UF.UI.form(
  3222. "课程管理",
  3223. $$("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 }), {
  3224. "id": "projectGM",
  3225. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3226. "onresize": function () { }
  3227. }, {
  3228. closecallback: function () { }
  3229. }, { "style": { "height": "36px" } }).form; //创建窗体
  3230. _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); } }
  3231. break;
  3232. case "studyGM"://课程中心
  3233. _formdiv = new U.UF.UI.form(
  3234. "课程中心",
  3235. $$("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
  3236. "id": "study",
  3237. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3238. "onresize": function () { }
  3239. }, {
  3240. closecallback: function () { }
  3241. }, { "style": { "height": "36px" } }).form; //创建窗体
  3242. _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); } }
  3243. break;
  3244. // studentGM
  3245. case "studentGM"://学生管理
  3246. _formdiv = new U.UF.UI.form(
  3247. "学生管理",
  3248. $$("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 }), {
  3249. "id": "studentGM",
  3250. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3251. "onresize": function () { }
  3252. }, {
  3253. closecallback: function () { }
  3254. }, { "style": { "height": "36px" } }).form; //创建窗体
  3255. _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); } }
  3256. break;
  3257. case "evaluateGM"://学生评价
  3258. _formdiv = new U.UF.UI.form(
  3259. "学生评价",
  3260. $$("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 }), {
  3261. "id": "evaluateGM",
  3262. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3263. "onresize": function () { }
  3264. }, {
  3265. closecallback: function () { }
  3266. }, { "style": { "height": "36px" } }).form; //创建窗体
  3267. _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); } }
  3268. break;
  3269. // classGM
  3270. case "classGM"://班级管理
  3271. _formdiv = new U.UF.UI.form(
  3272. "班级管理",
  3273. $$("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 }), {
  3274. "id": "classGM",
  3275. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3276. "onresize": function () { }
  3277. }, {
  3278. closecallback: function () { }
  3279. }, { "style": { "height": "36px" } }).form; //创建窗体
  3280. _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); } }
  3281. break;
  3282. // dataGM
  3283. case "dataGM":
  3284. _formdiv = new U.UF.UI.form(
  3285. "我的资料",
  3286. $$("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 }), {
  3287. "id": "dataGM",
  3288. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3289. "onresize": function () { }
  3290. }, {
  3291. closecallback: function () { }
  3292. }, { "style": { "height": "36px" } }).form; //创建窗体
  3293. _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); } }
  3294. break;
  3295. // caseGM
  3296. case "caseGM"://课程进展
  3297. _formdiv = new U.UF.UI.form(
  3298. "课程进展",
  3299. $$("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 }), {
  3300. "id": "caseGM",
  3301. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3302. "onresize": function () { }
  3303. }, {
  3304. closecallback: function () { }
  3305. }, { "style": { "height": "36px" } }).form; //创建窗体
  3306. _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); } }
  3307. break;
  3308. // meterialGM
  3309. case "meterialGM"://素材库
  3310. _formdiv = new U.UF.UI.form(
  3311. "素材库",
  3312. $$("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 }), {
  3313. "id": "meterialGM",
  3314. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3315. "onresize": function () { }
  3316. }, {
  3317. closecallback: function () { }
  3318. }, { "style": { "height": "36px" } }).form; //创建窗体
  3319. _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); } }
  3320. break;
  3321. // evaluateSGM
  3322. case "evaluateSGM": //我的评价
  3323. _formdiv = new U.UF.UI.form(
  3324. "我的评价",
  3325. $$("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 }), {
  3326. "id": "evaluateSGM",
  3327. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3328. "onresize": function () { }
  3329. }, {
  3330. closecallback: function () { }
  3331. }, { "style": { "height": "36px" } }).form; //创建窗体
  3332. _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); } }
  3333. break;
  3334. case "jupyter": //jupyter
  3335. _formdiv = new U.UF.UI.form(
  3336. "jupyter",
  3337. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3338. "id": "jupyter",
  3339. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3340. "onresize": function () { }
  3341. }, {
  3342. closecallback: function () { }
  3343. }, { "style": { "height": "36px" } }).form; //创建窗体
  3344. _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); } }
  3345. break;
  3346. case "number": //数字实验室
  3347. _formdiv = new U.UF.UI.form(
  3348. "数字实验室",
  3349. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3350. "id": "number",
  3351. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3352. "onresize": function () { }
  3353. }, {
  3354. closecallback: function () { }
  3355. }, { "style": { "height": "36px" } }).form; //创建窗体
  3356. _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); } }
  3357. break;
  3358. case "studentCourse": //项目管理 学生
  3359. _formdiv = new U.UF.UI.form(
  3360. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3361. $$("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 }), {
  3362. "id": "studentCourse",
  3363. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3364. "onresize": function () { }
  3365. }, {
  3366. closecallback: function () { }
  3367. }, { "style": { "height": "36px" } }).form; //创建窗体
  3368. _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); } }
  3369. break;
  3370. case "studentCourseS": //项目管理 老师
  3371. _formdiv = new U.UF.UI.form(
  3372. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3373. $$("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 }), {
  3374. "id": "studentCourseS",
  3375. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3376. "onresize": function () { }
  3377. }, {
  3378. closecallback: function () { }
  3379. }, { "style": { "height": "36px" } }).form; //创建窗体
  3380. _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); } }
  3381. break;
  3382. case "studentIndex": //项目中心
  3383. _formdiv = new U.UF.UI.form(
  3384. "项目中心",
  3385. $$("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 }), {
  3386. "id": "studentIndex",
  3387. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3388. "onresize": function () { }
  3389. }, {
  3390. closecallback: function () { }
  3391. }, { "style": { "height": "36px" } }).form; //创建窗体
  3392. _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); } }
  3393. break;
  3394. case "CaseDesignS":
  3395. _formdiv = new U.UF.UI.form(
  3396. "项目进展",
  3397. $$("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 }), {
  3398. "id": "case",
  3399. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3400. "onresize": function () { }
  3401. }, {
  3402. closecallback: function () { }
  3403. }, { "style": { "height": "36px" } }).form; //创建窗体
  3404. _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); } }
  3405. break;
  3406. case "tcStudent": //腾讯学生管理
  3407. _formdiv = new U.UF.UI.form(
  3408. "学生管理",
  3409. $$("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 }), {
  3410. "id": "tcStudent",
  3411. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3412. "onresize": function () { }
  3413. }, {
  3414. closecallback: function () { }
  3415. }, { "style": { "height": "36px" } }).form; //创建窗体
  3416. _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); } }
  3417. break;
  3418. case "tcSchool": //腾讯学校管理
  3419. _formdiv = new U.UF.UI.form(
  3420. "学校管理",
  3421. $$("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 }), {
  3422. "id": "tcSchool",
  3423. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3424. "onresize": function () { }
  3425. }, {
  3426. closecallback: function () { }
  3427. }, { "style": { "height": "36px" } }).form; //创建窗体
  3428. _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); } }
  3429. break;
  3430. case "tcTeacher": //腾讯学校管理
  3431. _formdiv = new U.UF.UI.form(
  3432. "教师管理",
  3433. $$("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 }), {
  3434. "id": "tcTeacher",
  3435. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3436. "onresize": function () { }
  3437. }, {
  3438. closecallback: function () { }
  3439. }, { "style": { "height": "36px" } }).form; //创建窗体
  3440. _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); } }
  3441. break;
  3442. case "tcData": //腾讯我的资料
  3443. _formdiv = new U.UF.UI.form(
  3444. "我的资料",
  3445. $$("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 }), {
  3446. "id": "tcData",
  3447. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3448. "onresize": function () { }
  3449. }, {
  3450. closecallback: function () { }
  3451. }, { "style": { "height": "36px" } }).form; //创建窗体
  3452. _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); } }
  3453. break;
  3454. case "tcNotice": //腾讯消息通知
  3455. _formdiv = new U.UF.UI.form(
  3456. "消息通知",
  3457. $$("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 }), {
  3458. "id": "tcNotice",
  3459. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3460. "onresize": function () { }
  3461. }, {
  3462. closecallback: function () { }
  3463. }, { "style": { "height": "36px" } }).form; //创建窗体
  3464. _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); } }
  3465. break;
  3466. case "myReport": //好友打开
  3467. _formdiv = new U.UF.UI.form(
  3468. "我的评价",
  3469. $$("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 }), {
  3470. "id": "myReport",
  3471. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3472. "onresize": function () { }
  3473. }, {
  3474. closecallback: function () { }
  3475. }, { "style": { "height": "36px" } }).form; //创建窗体
  3476. _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); } }
  3477. break;
  3478. case "learnAna": //好友打开
  3479. _formdiv = new U.UF.UI.form(
  3480. "学习分析",
  3481. $$("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 }), {
  3482. "id": "learnAna",
  3483. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3484. "onresize": function () { }
  3485. }, {
  3486. closecallback: function () { }
  3487. }, { "style": { "height": "36px" } }).form; //创建窗体
  3488. _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); } }
  3489. break;
  3490. case "AIChat": //AI共创
  3491. _formdiv = new U.UF.UI.form(
  3492. "AI共创",
  3493. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3494. "id": "AIChat",
  3495. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3496. "onresize": function () { }
  3497. }, {
  3498. istop: true,
  3499. closecallback: function () { $("#aichat_icon").remove(); },
  3500. narrowcallback: function () {
  3501. if (!$("#aichat_icon")[0]) {
  3502. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3503. }
  3504. },
  3505. }, { "style": { "height": "36px" } }).form; //创建窗体
  3506. _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); } }
  3507. break;
  3508. case "ainew": //AI共创
  3509. _formdiv = new U.UF.UI.form(
  3510. "AI协同",
  3511. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ainew/" }), {
  3512. "id": "ainew",
  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/AIChat.png)" }, "name": "AI协同", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3519. break;
  3520. case "AIAnalyse": //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/ai/" }), {
  3524. "id": "AIAnalyse",
  3525. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3526. "onresize": function () { }
  3527. }, {
  3528. closecallback: function () { }
  3529. }, { "style": { "height": "36px" } }).form; //创建窗体
  3530. _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); } }
  3531. break;
  3532. case "studioCourse": //AI共创
  3533. _formdiv = new U.UF.UI.form(
  3534. "工作管理",
  3535. $$("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 }), {
  3536. "id": "studioCourse",
  3537. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3538. "onresize": function () { }
  3539. }, {
  3540. closecallback: function () { }
  3541. }, { "style": { "height": "36px" } }).form; //创建窗体
  3542. _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); } }
  3543. break;
  3544. case "studioIndex": //AI共创
  3545. _formdiv = new U.UF.UI.form(
  3546. "工作中心",
  3547. $$("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 }), {
  3548. "id": "studioIndex",
  3549. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3550. "onresize": function () { }
  3551. }, {
  3552. closecallback: function () { }
  3553. }, { "style": { "height": "36px" } }).form; //创建窗体
  3554. _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); } }
  3555. break;
  3556. case "source":
  3557. _formdiv = new U.UF.UI.form(
  3558. "教学资源",
  3559. $$("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 }), {
  3560. "id": "source",
  3561. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3562. "onresize": function () { }
  3563. }, {
  3564. closecallback: function () { }
  3565. }, { "style": { "height": "36px" } }).form; //创建窗体
  3566. _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); } }
  3567. break;
  3568. }
  3569. //U.MD.D.I.openClick(str);
  3570. //如果有任务栏信息
  3571. if (_taskbar) {
  3572. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3573. }
  3574. }
  3575. // U.MD.D.I.openClick = function(str){
  3576. // var click = '';
  3577. // switch(str){
  3578. // case 'friend':
  3579. // click = '我的好友';
  3580. // break;
  3581. // case 'domain':
  3582. // click = '域名管理';
  3583. // break;
  3584. // case 'disk':
  3585. // click = '我的云盘';
  3586. // break;
  3587. // case 'word':
  3588. // click = 'Word';
  3589. // break;
  3590. // case 'excel':
  3591. // click = 'Execl';
  3592. // break;
  3593. // case 'txt':
  3594. // click = '文本文件';
  3595. // break;
  3596. // case 'lookupFriend':
  3597. // click = '查找好友';
  3598. // break;
  3599. // case 'ftp':
  3600. // click = 'FTP';
  3601. // break;
  3602. // case 'group':
  3603. // click = '群组';
  3604. // break;
  3605. // case 'set':
  3606. // click = '我的设置';
  3607. // break;
  3608. // case 'systemSet':
  3609. // click = '系统设置';
  3610. // break;
  3611. // case 'boomYun':
  3612. // click = '互联办公';
  3613. // break;
  3614. // case 'xz':
  3615. // click = '云端下载';
  3616. // break;
  3617. // case 'client':
  3618. // click = '有思浏览器';
  3619. // break;
  3620. // case 'backEndProgramming':
  3621. // click = '在线后台编程';
  3622. // break;
  3623. // case 'frontEndProgramming':
  3624. // click = '在线前端编程';
  3625. // break;
  3626. // default: break;
  3627. // }
  3628. // if(U.MD.D.I.Ip && click){
  3629. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3630. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3631. // })
  3632. // }
  3633. // }
  3634. /**
  3635. *函数作用:ajax简易函数,使用post格式
  3636. *@param url {data} 后台地址
  3637. *@param data {data} 参数json
  3638. *@param fn {data} 回调函数
  3639. *
  3640. */
  3641. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3642. // var xhr = new XMLHttpRequest();
  3643. // xhr.open("GET",url,true);
  3644. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3645. // xhr.onreadystatechange = function(){
  3646. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3647. // fn.call(this,xhr.responseText);
  3648. // }
  3649. // };
  3650. // xhr.send();
  3651. // }
  3652. /*判断是否是内网IP*/
  3653. // U.MD.D.I.isInnerIPFn = function(str){
  3654. // var curPageUrl = str;
  3655. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3656. // curPageUrl =curPageUrl.replace(reg1,'');
  3657. // // console.log('curPageUrl-1 '+curPageUrl);
  3658. // var reg2 = /\:+/g;//替换冒号为一点
  3659. // curPageUrl =curPageUrl.replace(reg2,'.');
  3660. // // console.log('curPageUrl-2 '+curPageUrl);
  3661. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3662. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3663. // if(curPageUrl[2] != '16'){
  3664. // return ipAddress;
  3665. // }else{
  3666. // return false;
  3667. // }
  3668. // }
  3669. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3670. // //compatibility for firefox and chrome
  3671. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3672. // var pc = new myPeerConnection({
  3673. // iceServers: []
  3674. // }),
  3675. // noop = function() {},
  3676. // localIPs = {},
  3677. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3678. // key;
  3679. // function iterateIP(ip) {
  3680. // if (!localIPs[ip]) onNewIP(ip);
  3681. // localIPs[ip] = true;
  3682. // }
  3683. // //create a bogus data channel
  3684. // pc.createDataChannel("");
  3685. // // create offer and set local description
  3686. // pc.createOffer().then(function(sdp) {
  3687. // sdp.sdp.split('\n').forEach(function(line) {
  3688. // if (line.indexOf('candidate') < 0) return;
  3689. // line.match(ipRegex).forEach(iterateIP);
  3690. // });
  3691. // pc.setLocalDescription(sdp, noop, noop);
  3692. // }).catch(function(reason) {
  3693. // // An error occurred, so handle the failure to connect
  3694. // });
  3695. // //sten for candidate events
  3696. // pc.onicecandidate = function(ice) {
  3697. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3698. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3699. // };
  3700. // }
  3701. // U.MD.D.I.getUserIpBool = function(callback){
  3702. // U.MD.D.I.getUserIP(function(ip){
  3703. // alert("Got IP! :" + ip);
  3704. // });
  3705. //}
  3706. //#endregion
  3707. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3708. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3709. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3710. _userinfo = US.userInfo, //登录用户信息
  3711. _userid = US.userInfo.userid //登录用户id
  3712. let _iframe;
  3713. let _cid = cid,
  3714. _stage = stage,
  3715. _task = task,
  3716. _tool = tool;
  3717. var _jie = $$("div", {
  3718. "style": {
  3719. "position": "absolute",
  3720. "bottom": "50px",
  3721. "right": "50px",
  3722. "zIndex": "9999",
  3723. "backgroundColor": "#2268bc",
  3724. "color": "#fff",
  3725. "padding": "12px 20px",
  3726. "cursor": "pointer",
  3727. "borderRadius": "4px",
  3728. },
  3729. "innerHTML": "提交作业"
  3730. })
  3731. let aTool = ''
  3732. let _loading = document.createElement('div')
  3733. _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;"
  3734. // _loading.id = "";
  3735. let _lchild = document.createElement('div')
  3736. let _limg = document.createElement('img')
  3737. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3738. _limg.style = "width: 26px;margin-right: 10px;"
  3739. _lchild.appendChild(_limg)
  3740. let _lspan = document.createElement('span')
  3741. _lspan.innerHTML = "上传中..."
  3742. _lchild.appendChild(_lspan)
  3743. _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%);"
  3744. _loading.appendChild(_lchild)
  3745. var _box = $$('div', {
  3746. "style": {
  3747. "position": "relative",
  3748. "width": "100%",
  3749. "height": "100%",
  3750. },
  3751. })
  3752. _box.appendChild(_loading)
  3753. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool+_userid
  3754. switch (str) {
  3755. case "whiteboard":
  3756. aTool = 1;
  3757. _iframe = $$("iframe", {
  3758. "frameborder": "no",
  3759. "border": "0",
  3760. "scrolling ": "no",
  3761. "style": {
  3762. "cssText": "border:0;width:100%;height:100%"
  3763. },
  3764. "src": "https://iwb.cocorobo.cn/"
  3765. })
  3766. _box.appendChild(_iframe);
  3767. _box.appendChild(_jie);
  3768. _formdiv = new U.UF.UI.form(
  3769. "电子白板",
  3770. _box, {
  3771. "id": "whiteboard" + cid + stage + task + tool,
  3772. "style": {
  3773. "width": "90%",
  3774. "height": "90%",
  3775. "overflow": 'hidden'
  3776. },
  3777. "onresize": function () { }
  3778. }, {
  3779. closecallback: function () { }
  3780. }, {
  3781. "style": {
  3782. "height": "36px"
  3783. }
  3784. }).form; //创建窗体
  3785. _taskbar = {
  3786. "id": str + _formdiv.id,
  3787. "style": {
  3788. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3789. },
  3790. "name": "电子白板",
  3791. "forms": _formdiv,
  3792. "click": function () {
  3793. U.MD.D.I.openApplication(str, obj, info);
  3794. }
  3795. }
  3796. break;
  3797. case "mind":
  3798. aTool = 3;
  3799. _iframe = $$("iframe", {
  3800. "frameborder": "no",
  3801. "border": "0",
  3802. "scrolling ": "no",
  3803. "style": {
  3804. "cssText": "border:0;width:100%;height:100%"
  3805. },
  3806. "src": "/kityminder-editor/dist/index.html"
  3807. })
  3808. _box.appendChild(_iframe);
  3809. _box.appendChild(_jie);
  3810. _formdiv = new U.UF.UI.form(
  3811. "思维导图",
  3812. _box, { //"/jsmind/example/demo.html"
  3813. "id": "mind" + cid + stage + task + tool,
  3814. "style": {
  3815. "width": "90%",
  3816. "height": "90%",
  3817. "overflow": 'hidden'
  3818. },
  3819. "onresize": function () { }
  3820. }, {
  3821. closecallback: function () { }
  3822. }, {
  3823. "style": {
  3824. "height": "36px"
  3825. }
  3826. }).form; //创建窗体
  3827. _taskbar = {
  3828. "id": str + _formdiv.id,
  3829. "style": {
  3830. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3831. },
  3832. "name": "思维导图",
  3833. "forms": _formdiv,
  3834. "click": function () {
  3835. U.MD.D.I.openApplication(str, obj, info);
  3836. }
  3837. }
  3838. break;
  3839. case "MindMap":
  3840. aTool = 3;
  3841. _iframe = $$("iframe", {
  3842. "frameborder": "no",
  3843. "border": "0",
  3844. "scrolling ": "no",
  3845. "style": {
  3846. "cssText": "border:0;width:100%;height:100%"
  3847. },
  3848. "src": "//cloud.cocorobo.cn/mind/"
  3849. })
  3850. _box.appendChild(_iframe);
  3851. _box.appendChild(_jie);
  3852. _formdiv = new U.UF.UI.form(
  3853. "思维导图",
  3854. _box, { //"/jsmind/example/demo.html"
  3855. "id": "mind" + cid + stage + task + tool,
  3856. "style": {
  3857. "width": "90%",
  3858. "height": "90%",
  3859. "overflow": 'hidden'
  3860. },
  3861. "onresize": function () { }
  3862. }, {
  3863. closecallback: function () { }
  3864. }, {
  3865. "style": {
  3866. "height": "36px"
  3867. }
  3868. }).form; //创建窗体
  3869. _taskbar = {
  3870. "id": str + _formdiv.id,
  3871. "style": {
  3872. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3873. },
  3874. "name": "思维导图",
  3875. "forms": _formdiv,
  3876. "click": function () {
  3877. U.MD.D.I.openApplication(str, obj, info);
  3878. }
  3879. }
  3880. break;
  3881. case "doc":
  3882. aTool = 6;
  3883. _iframe = $$("iframe", {
  3884. "frameborder": "no",
  3885. "border": "0",
  3886. "scrolling ": "no",
  3887. "style": {
  3888. "cssText": "border:0;width:100%;height:100%"
  3889. },
  3890. "src": "/Office/Word/WordEditArea.htm"
  3891. })
  3892. _box.appendChild(_iframe);
  3893. _box.appendChild(_jie);
  3894. _formdiv = new U.UF.UI.form(
  3895. "协同文档",
  3896. _box, {
  3897. "id": "doc" + cid + stage + task + tool,
  3898. "style": {
  3899. "width": "90%",
  3900. "height": "90%",
  3901. "overflow": 'hidden'
  3902. },
  3903. "onresize": function () { }
  3904. }, {
  3905. closecallback: function () { }
  3906. }, {
  3907. "style": {
  3908. "height": "36px"
  3909. }
  3910. }).form; //创建窗体
  3911. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3912. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3913. })
  3914. _taskbar = {
  3915. "id": str + _formdiv.id,
  3916. "style": {
  3917. "backgroundImage": "url(/img/icon/doc.png)"
  3918. },
  3919. "name": "协同文档",
  3920. "forms": _formdiv,
  3921. "click": function () {
  3922. U.MD.D.I.openApplication(str, obj, info);
  3923. }
  3924. }
  3925. break;
  3926. case "mindNetwork": //好友打开
  3927. aTool = 7;
  3928. _iframe = $$("iframe", {
  3929. "webkitallowfullscreen": "",
  3930. "mozallowfullscreen": "",
  3931. "allowfullscreen": "",
  3932. "frameborder": "no",
  3933. "border": "0",
  3934. "scrolling ": "no",
  3935. "style": {
  3936. "cssText": "border:0; width:100%; height:100%;"
  3937. },
  3938. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3939. })
  3940. _box.appendChild(_iframe);
  3941. _box.appendChild(_jie);
  3942. _formdiv = new U.UF.UI.form(
  3943. "思维网格",
  3944. _box, {
  3945. "id": "mindNetwork" + cid + stage + task + tool,
  3946. "style": {
  3947. "width": "90%",
  3948. "height": "90%",
  3949. "overflow": 'hidden'
  3950. },
  3951. "onresize": function () { }
  3952. }, {
  3953. closecallback: function () { }
  3954. }, {
  3955. "style": {
  3956. "height": "36px"
  3957. }
  3958. }).form; //创建窗体
  3959. _taskbar = {
  3960. "id": str + _formdiv.id,
  3961. "style": {
  3962. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3963. },
  3964. "name": "思维网格",
  3965. "forms": _formdiv,
  3966. "click": function () {
  3967. U.MD.D.I.openApplication(str, obj, info);
  3968. }
  3969. }
  3970. break;
  3971. case "courseDesign":
  3972. _iframe = $$("iframe", {
  3973. "webkitallowfullscreen": "",
  3974. "mozallowfullscreen": "",
  3975. "allowfullscreen": "",
  3976. "frameborder": "no",
  3977. "border": "0",
  3978. "scrolling ": "no",
  3979. "style": {
  3980. "cssText": "border:0; width:100%; height:100%;"
  3981. },
  3982. "src": "/course-design-vue"
  3983. })
  3984. _box.appendChild(_iframe);
  3985. _box.appendChild(_jie);
  3986. _formdiv = new U.UF.UI.form(
  3987. "项目设计",
  3988. _box, {
  3989. "id": "courseDesign" + cid + stage + task + tool,
  3990. "style": {
  3991. "width": "90%",
  3992. "height": "90%",
  3993. "overflow": 'hidden'
  3994. },
  3995. "onresize": function () { }
  3996. }, {
  3997. closecallback: function () { }
  3998. }, {
  3999. "style": {
  4000. "height": "36px"
  4001. }
  4002. }).form; //创建窗体
  4003. _taskbar = {
  4004. "id": str + _formdiv.id,
  4005. "style": {
  4006. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4007. },
  4008. "name": "项目设计",
  4009. "forms": _formdiv,
  4010. "click": function () {
  4011. U.MD.D.I.openApplication(str, obj, info);
  4012. }
  4013. }
  4014. break;
  4015. }
  4016. const script1 = document.createElement("script");
  4017. script1.type = "text/javascript";
  4018. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4019. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4020. const script2 = document.createElement("script");
  4021. script2.type = "text/javascript";
  4022. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4023. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4024. const script3 = document.createElement("script");
  4025. script3.type = "text/javascript";
  4026. script3.charset = "UTF-8";
  4027. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4028. const script4 = document.createElement("script");
  4029. script4.type = "text/javascript";
  4030. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4031. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4032. if (_iframe) {
  4033. if (str == 'doc') {
  4034. _iframe = _formdiv.querySelector('iframe')
  4035. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4036. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4037. _iframe.contentWindow.document.body.appendChild(script1);
  4038. _iframe.contentWindow.document.body.appendChild(script2);
  4039. // _iframe.contentWindow.document.body.appendChild(script3);
  4040. _iframe.contentWindow.document.body.appendChild(script4);
  4041. })
  4042. if (onloadListener) {
  4043. _iframe.contentDocument.location.reload()
  4044. } else {
  4045. _iframe.contentDocument.location.reload()
  4046. }
  4047. } else if (str == 'courseDesign') {
  4048. U.UF.DL.iframeLoad(_iframe, function () {
  4049. // _iframe.contentWindow.U.MD.O.W.load();
  4050. // _iframe.contentWindow.document.body.appendChild(script1);
  4051. _iframe.contentWindow.document.body.appendChild(script2);
  4052. _iframe.contentWindow.document.body.appendChild(script4);
  4053. })
  4054. } else if (str == 'mind') {
  4055. _iframe = _formdiv.querySelector('iframe')
  4056. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4057. //
  4058. _iframe.contentWindow.document.body.appendChild(script1);
  4059. _iframe.contentWindow.document.body.appendChild(script2);
  4060. _iframe.contentWindow.document.body.appendChild(script4);
  4061. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4062. })
  4063. if (onloadListener) {
  4064. _iframe.contentDocument.location.reload()
  4065. } else {
  4066. _iframe.contentDocument.location.reload()
  4067. }
  4068. } else if (str == 'whiteboard') {
  4069. _iframe = _formdiv.querySelector('iframe')
  4070. let onloadListener = _iframe.onload = () => {
  4071. _iframe.contentWindow.document.body.appendChild(script1);
  4072. _iframe.contentWindow.document.body.appendChild(script2);
  4073. _iframe.contentWindow.document.body.appendChild(script4);
  4074. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4075. };
  4076. if (onloadListener) {
  4077. _iframe.contentDocument.location.reload()
  4078. } else {
  4079. _iframe.contentDocument.location.reload()
  4080. }
  4081. } else {
  4082. _iframe.onload = () => {
  4083. _iframe.contentWindow.document.body.appendChild(script1);
  4084. _iframe.contentWindow.document.body.appendChild(script2);
  4085. // _iframe.contentWindow.document.body.appendChild(script3);
  4086. _iframe.contentWindow.document.body.appendChild(script4);
  4087. };
  4088. }
  4089. _jie.onclick = async () => {
  4090. let text = ''
  4091. if (aTool == 1) {
  4092. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4093. } else if (aTool == 6) {
  4094. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4095. } else if (aTool == 3) {
  4096. text = await U.MD.D.I.getEditorContent(_iframe);
  4097. }
  4098. _loading.style.display = 'flex'
  4099. console.log(_loading);
  4100. var _ajs = _iframe.contentWindow.document.createElement("script");
  4101. _ajs.type = "text/javascript";
  4102. _ajs.innerHTML =
  4103. // 'console.log(' + _loading + ');\n' +
  4104. 'var _js = document.createElement("script");\n' +
  4105. '_js.type="text/javascript";\n' +
  4106. '_js.charset="UTF-8";\n' +
  4107. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4108. "_js.onload = function(){\n" +
  4109. ' var a = document.getElementsByTagName("img")\n' +
  4110. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4111. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4112. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4113. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4114. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4115. "beforeUpload_shishi(file," +
  4116. "'" +
  4117. _userid +
  4118. "'" +
  4119. ", " +
  4120. "'" +
  4121. _cid +
  4122. "'" +
  4123. ", " +
  4124. "'" +
  4125. _stage +
  4126. "'" +
  4127. ", " +
  4128. "'" +
  4129. _task +
  4130. "'" +
  4131. ", " +
  4132. "'" +
  4133. _tool +
  4134. "'" +
  4135. ", " +
  4136. "'" +
  4137. (str + '_loadLi_Jie' + cid + stage + task + tool+_userid) +
  4138. "'" +
  4139. ", " +
  4140. "'" +
  4141. aTool +
  4142. "'" +
  4143. ", " +
  4144. "`" +
  4145. text +
  4146. "`" +
  4147. ")\n" +
  4148. " });\n" +
  4149. "}\n" +
  4150. "document.head.appendChild(_js);\n";
  4151. _iframe.contentWindow.document.head.appendChild(_ajs);
  4152. }
  4153. }
  4154. //U.MD.D.I.openClick(str);
  4155. //如果有任务栏信息
  4156. // if (_taskbar) {
  4157. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4158. // }
  4159. }
  4160. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4161. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4162. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4163. _userinfo = US.userInfo, //登录用户信息
  4164. _userid = US.userInfo.userid //登录用户id
  4165. let _iframe;
  4166. let _cid = cid,
  4167. _stage = stage,
  4168. _task = task,
  4169. _tool = tool;
  4170. var _jie = $$("div", {
  4171. "style": {
  4172. "position": "absolute",
  4173. "bottom": "50px",
  4174. "right": "50px",
  4175. "zIndex": "9999",
  4176. "backgroundColor": "#2268bc",
  4177. "color": "#fff",
  4178. "padding": "12px 20px",
  4179. "cursor": "pointer",
  4180. "borderRadius": "4px",
  4181. },
  4182. "innerHTML": "提交作业"
  4183. })
  4184. let aTool = ''
  4185. let _loading = document.createElement('div')
  4186. _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;"
  4187. // _loading.id = "";
  4188. let _lchild = document.createElement('div')
  4189. let _limg = document.createElement('img')
  4190. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4191. _limg.style = "width: 26px;margin-right: 10px;"
  4192. _lchild.appendChild(_limg)
  4193. let _lspan = document.createElement('span')
  4194. _lspan.innerHTML = "上传中..."
  4195. _lchild.appendChild(_lspan)
  4196. _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%);"
  4197. _loading.appendChild(_lchild)
  4198. var _box = $$('div', {
  4199. "style": {
  4200. "position": "relative",
  4201. "width": "100%",
  4202. "height": "100%",
  4203. },
  4204. })
  4205. _box.appendChild(_loading)
  4206. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool+_userid
  4207. switch (str) {
  4208. case "whiteboard":
  4209. aTool = 1;
  4210. _iframe = $$("iframe", {
  4211. "frameborder": "no",
  4212. "border": "0",
  4213. "scrolling ": "no",
  4214. "style": {
  4215. "cssText": "border:0;width:100%;height:100%"
  4216. },
  4217. "src": "https://iwb.cocorobo.cn/"
  4218. })
  4219. _box.appendChild(_iframe);
  4220. _box.appendChild(_jie);
  4221. _formdiv = new U.UF.UI.form(
  4222. "电子白板",
  4223. _box, {
  4224. "id": "whiteboard" + cid + stage + task + tool,
  4225. "style": {
  4226. "width": "90%",
  4227. "height": "90%",
  4228. "overflow": 'hidden'
  4229. },
  4230. "onresize": function () { }
  4231. }, {
  4232. closecallback: function () { }
  4233. }, {
  4234. "style": {
  4235. "height": "36px"
  4236. }
  4237. }).form; //创建窗体
  4238. _taskbar = {
  4239. "id": str + _formdiv.id,
  4240. "style": {
  4241. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4242. },
  4243. "name": "电子白板",
  4244. "forms": _formdiv,
  4245. "click": function () {
  4246. U.MD.D.I.openApplication(str, obj, info);
  4247. }
  4248. }
  4249. break;
  4250. case "mind":
  4251. aTool = 3;
  4252. _iframe = $$("iframe", {
  4253. "frameborder": "no",
  4254. "border": "0",
  4255. "scrolling ": "no",
  4256. "style": {
  4257. "cssText": "border:0;width:100%;height:100%"
  4258. },
  4259. "src": "/kityminder-editor/dist/index.html"
  4260. })
  4261. _box.appendChild(_iframe);
  4262. _box.appendChild(_jie);
  4263. _formdiv = new U.UF.UI.form(
  4264. "思维导图",
  4265. _box, { //"/jsmind/example/demo.html"
  4266. "id": "mind" + cid + stage + task + tool,
  4267. "style": {
  4268. "width": "90%",
  4269. "height": "90%",
  4270. "overflow": 'hidden'
  4271. },
  4272. "onresize": function () { }
  4273. }, {
  4274. closecallback: function () { }
  4275. }, {
  4276. "style": {
  4277. "height": "36px"
  4278. }
  4279. }).form; //创建窗体
  4280. _taskbar = {
  4281. "id": str + _formdiv.id,
  4282. "style": {
  4283. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4284. },
  4285. "name": "思维导图",
  4286. "forms": _formdiv,
  4287. "click": function () {
  4288. U.MD.D.I.openApplication(str, obj, info);
  4289. }
  4290. }
  4291. break;
  4292. case "MindMap":
  4293. aTool = 3;
  4294. _iframe = $$("iframe", {
  4295. "frameborder": "no",
  4296. "border": "0",
  4297. "scrolling ": "no",
  4298. "style": {
  4299. "cssText": "border:0;width:100%;height:100%"
  4300. },
  4301. "src": "//cloud.cocorobo.cn/mind/"
  4302. })
  4303. _box.appendChild(_iframe);
  4304. _box.appendChild(_jie);
  4305. _formdiv = new U.UF.UI.form(
  4306. "思维导图",
  4307. _box, { //"/jsmind/example/demo.html"
  4308. "id": "mind" + cid + stage + task + tool,
  4309. "style": {
  4310. "width": "90%",
  4311. "height": "90%",
  4312. "overflow": 'hidden'
  4313. },
  4314. "onresize": function () { }
  4315. }, {
  4316. closecallback: function () { }
  4317. }, {
  4318. "style": {
  4319. "height": "36px"
  4320. }
  4321. }).form; //创建窗体
  4322. _taskbar = {
  4323. "id": str + _formdiv.id,
  4324. "style": {
  4325. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4326. },
  4327. "name": "思维导图",
  4328. "forms": _formdiv,
  4329. "click": function () {
  4330. U.MD.D.I.openApplication(str, obj, info);
  4331. }
  4332. }
  4333. break;
  4334. case "doc":
  4335. aTool = 6;
  4336. _iframe = $$("iframe", {
  4337. "frameborder": "no",
  4338. "border": "0",
  4339. "scrolling ": "no",
  4340. "style": {
  4341. "cssText": "border:0;width:100%;height:100%"
  4342. },
  4343. "src": "/Office/Word/WordEditArea.htm"
  4344. })
  4345. _box.appendChild(_iframe);
  4346. _box.appendChild(_jie);
  4347. _formdiv = new U.UF.UI.form(
  4348. "协同文档",
  4349. _box, {
  4350. "id": "doc" + cid + stage + task + tool,
  4351. "style": {
  4352. "width": "90%",
  4353. "height": "90%",
  4354. "overflow": 'hidden'
  4355. },
  4356. "onresize": function () { }
  4357. }, {
  4358. closecallback: function () { }
  4359. }, {
  4360. "style": {
  4361. "height": "36px"
  4362. }
  4363. }).form; //创建窗体
  4364. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4365. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4366. })
  4367. _taskbar = {
  4368. "id": str + _formdiv.id,
  4369. "style": {
  4370. "backgroundImage": "url(/img/icon/doc.png)"
  4371. },
  4372. "name": "协同文档",
  4373. "forms": _formdiv,
  4374. "click": function () {
  4375. U.MD.D.I.openApplication(str, obj, info);
  4376. }
  4377. }
  4378. break;
  4379. case "mindNetwork": //好友打开
  4380. aTool = 7;
  4381. _iframe = $$("iframe", {
  4382. "webkitallowfullscreen": "",
  4383. "mozallowfullscreen": "",
  4384. "allowfullscreen": "",
  4385. "frameborder": "no",
  4386. "border": "0",
  4387. "scrolling ": "no",
  4388. "style": {
  4389. "cssText": "border:0; width:100%; height:100%;"
  4390. },
  4391. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4392. })
  4393. _box.appendChild(_iframe);
  4394. _box.appendChild(_jie);
  4395. _formdiv = new U.UF.UI.form(
  4396. "思维网格",
  4397. _box, {
  4398. "id": "mindNetwork" + cid + stage + task + tool,
  4399. "style": {
  4400. "width": "90%",
  4401. "height": "90%",
  4402. "overflow": 'hidden'
  4403. },
  4404. "onresize": function () { }
  4405. }, {
  4406. closecallback: function () { }
  4407. }, {
  4408. "style": {
  4409. "height": "36px"
  4410. }
  4411. }).form; //创建窗体
  4412. _taskbar = {
  4413. "id": str + _formdiv.id,
  4414. "style": {
  4415. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4416. },
  4417. "name": "思维网格",
  4418. "forms": _formdiv,
  4419. "click": function () {
  4420. U.MD.D.I.openApplication(str, obj, info);
  4421. }
  4422. }
  4423. break;
  4424. case "courseDesign":
  4425. _iframe = $$("iframe", {
  4426. "webkitallowfullscreen": "",
  4427. "mozallowfullscreen": "",
  4428. "allowfullscreen": "",
  4429. "frameborder": "no",
  4430. "border": "0",
  4431. "scrolling ": "no",
  4432. "style": {
  4433. "cssText": "border:0; width:100%; height:100%;"
  4434. },
  4435. "src": "/course-design-vue"
  4436. })
  4437. _box.appendChild(_iframe);
  4438. _box.appendChild(_jie);
  4439. _formdiv = new U.UF.UI.form(
  4440. "项目设计",
  4441. _box, {
  4442. "id": "courseDesign" + cid + stage + task + tool,
  4443. "style": {
  4444. "width": "90%",
  4445. "height": "90%",
  4446. "overflow": 'hidden'
  4447. },
  4448. "onresize": function () { }
  4449. }, {
  4450. closecallback: function () { }
  4451. }, {
  4452. "style": {
  4453. "height": "36px"
  4454. }
  4455. }).form; //创建窗体
  4456. _taskbar = {
  4457. "id": str + _formdiv.id,
  4458. "style": {
  4459. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4460. },
  4461. "name": "项目设计",
  4462. "forms": _formdiv,
  4463. "click": function () {
  4464. U.MD.D.I.openApplication(str, obj, info);
  4465. }
  4466. }
  4467. break;
  4468. }
  4469. const script1 = document.createElement("script");
  4470. script1.type = "text/javascript";
  4471. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4472. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4473. const script2 = document.createElement("script");
  4474. script2.type = "text/javascript";
  4475. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4476. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4477. const script3 = document.createElement("script");
  4478. script3.type = "text/javascript";
  4479. script3.charset = "UTF-8";
  4480. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4481. const script4 = document.createElement("script");
  4482. script4.type = "text/javascript";
  4483. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4484. script4.src = window.origin + "/js/Common/jietu2E.js";
  4485. if (_iframe) {
  4486. if (str == 'doc') {
  4487. _iframe = _formdiv.querySelector('iframe')
  4488. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4489. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4490. _iframe.contentWindow.document.body.appendChild(script1);
  4491. _iframe.contentWindow.document.body.appendChild(script2);
  4492. // _iframe.contentWindow.document.body.appendChild(script3);
  4493. _iframe.contentWindow.document.body.appendChild(script4);
  4494. })
  4495. if (onloadListener) {
  4496. _iframe.contentDocument.location.reload()
  4497. } else {
  4498. _iframe.contentDocument.location.reload()
  4499. }
  4500. } else if (str == 'courseDesign') {
  4501. U.UF.DL.iframeLoad(_iframe, function () {
  4502. // _iframe.contentWindow.U.MD.O.W.load();
  4503. // _iframe.contentWindow.document.body.appendChild(script1);
  4504. _iframe.contentWindow.document.body.appendChild(script2);
  4505. _iframe.contentWindow.document.body.appendChild(script4);
  4506. })
  4507. } else if (str == 'mind') {
  4508. _iframe = _formdiv.querySelector('iframe')
  4509. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4510. //
  4511. _iframe.contentWindow.document.body.appendChild(script1);
  4512. _iframe.contentWindow.document.body.appendChild(script2);
  4513. _iframe.contentWindow.document.body.appendChild(script4);
  4514. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4515. })
  4516. if (onloadListener) {
  4517. _iframe.contentDocument.location.reload()
  4518. } else {
  4519. _iframe.contentDocument.location.reload()
  4520. }
  4521. } else if (str == 'whiteboard') {
  4522. _iframe = _formdiv.querySelector('iframe')
  4523. let onloadListener = _iframe.onload = () => {
  4524. _iframe.contentWindow.document.body.appendChild(script1);
  4525. _iframe.contentWindow.document.body.appendChild(script2);
  4526. _iframe.contentWindow.document.body.appendChild(script4);
  4527. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4528. };
  4529. if (onloadListener) {
  4530. _iframe.contentDocument.location.reload()
  4531. } else {
  4532. _iframe.contentDocument.location.reload()
  4533. }
  4534. } else {
  4535. _iframe.onload = () => {
  4536. _iframe.contentWindow.document.body.appendChild(script1);
  4537. _iframe.contentWindow.document.body.appendChild(script2);
  4538. // _iframe.contentWindow.document.body.appendChild(script3);
  4539. _iframe.contentWindow.document.body.appendChild(script4);
  4540. };
  4541. }
  4542. _jie.onclick = async () => {
  4543. let text = ''
  4544. if (aTool == 1) {
  4545. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4546. } else if (aTool == 6) {
  4547. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4548. } else if (aTool == 3) {
  4549. text = await U.MD.D.I.getEditorContent(_iframe);
  4550. }
  4551. _loading.style.display = 'flex'
  4552. console.log(_loading);
  4553. var _ajs = _iframe.contentWindow.document.createElement("script");
  4554. _ajs.type = "text/javascript";
  4555. _ajs.innerHTML =
  4556. // 'console.log(' + _loading + ');\n' +
  4557. 'var _js = document.createElement("script");\n' +
  4558. '_js.type="text/javascript";\n' +
  4559. '_js.charset="UTF-8";\n' +
  4560. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4561. "_js.onload = function(){\n" +
  4562. ' var a = document.getElementsByTagName("img")\n' +
  4563. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4564. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4565. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4566. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4567. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4568. "beforeUpload_shishi(file," +
  4569. "'" +
  4570. _userid +
  4571. "'" +
  4572. ", " +
  4573. "'" +
  4574. _cid +
  4575. "'" +
  4576. ", " +
  4577. "'" +
  4578. _stage +
  4579. "'" +
  4580. ", " +
  4581. "'" +
  4582. _task +
  4583. "'" +
  4584. ", " +
  4585. "'" +
  4586. _tool +
  4587. "'" +
  4588. ", " +
  4589. "'" +
  4590. (str + '_loadLi_JieE' + cid + stage + task + tool+_userid) +
  4591. "'" +
  4592. ", " +
  4593. "'" +
  4594. aTool +
  4595. "'" +
  4596. ", " +
  4597. "`" +
  4598. text +
  4599. "`" +
  4600. ")\n" +
  4601. " });\n" +
  4602. "}\n" +
  4603. "document.head.appendChild(_js);\n";
  4604. _iframe.contentWindow.document.head.appendChild(_ajs);
  4605. }
  4606. }
  4607. //U.MD.D.I.openClick(str);
  4608. //如果有任务栏信息
  4609. // if (_taskbar) {
  4610. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4611. // }
  4612. }
  4613. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4614. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4615. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4616. _userid = student.userid, //登录用户id
  4617. _username = student.student //用户名字
  4618. let _iframe;
  4619. let _cid = cid,
  4620. _stage = stage,
  4621. _task = task,
  4622. _tool = tool;
  4623. var _jie = $$("div", {
  4624. "style": {
  4625. "position": "absolute",
  4626. "bottom": "50px",
  4627. "right": "50px",
  4628. "zIndex": "9999",
  4629. "backgroundColor": "#2268bc",
  4630. "color": "#fff",
  4631. "padding": "12px 20px",
  4632. "cursor": "pointer",
  4633. "borderRadius": "4px",
  4634. },
  4635. "innerHTML": "提交作业"
  4636. })
  4637. let aTool = ''
  4638. let _loading = document.createElement('div')
  4639. _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;"
  4640. // _loading.id = "";
  4641. let _lchild = document.createElement('div')
  4642. let _limg = document.createElement('img')
  4643. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4644. _limg.style = "width: 26px;margin-right: 10px;"
  4645. _lchild.appendChild(_limg)
  4646. let _lspan = document.createElement('span')
  4647. _lspan.innerHTML = "上传中..."
  4648. _lchild.appendChild(_lspan)
  4649. _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%);"
  4650. _loading.appendChild(_lchild)
  4651. var _box = $$('div', {
  4652. "style": {
  4653. "position": "relative",
  4654. "width": "100%",
  4655. "height": "100%",
  4656. },
  4657. })
  4658. _box.appendChild(_loading)
  4659. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid
  4660. switch (str) {
  4661. case "whiteboard":
  4662. aTool = 1;
  4663. _iframe = $$("iframe", {
  4664. "frameborder": "no",
  4665. "border": "0",
  4666. "scrolling ": "no",
  4667. "style": {
  4668. "cssText": "border:0;width:100%;height:100%"
  4669. },
  4670. "src": "https://iwb.cocorobo.cn/"
  4671. })
  4672. _box.appendChild(_iframe);
  4673. _box.appendChild(_jie);
  4674. _formdiv = new U.UF.UI.form(
  4675. "电子白板-" + _username,
  4676. _box, {
  4677. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4678. "style": {
  4679. "width": "90%",
  4680. "height": "90%",
  4681. "overflow": 'hidden'
  4682. },
  4683. "onresize": function () { }
  4684. }, {
  4685. closecallback: function () { }
  4686. }, {
  4687. "style": {
  4688. "height": "36px"
  4689. }
  4690. }).form; //创建窗体
  4691. _taskbar = {
  4692. "id": str + _formdiv.id,
  4693. "style": {
  4694. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4695. },
  4696. "name": "电子白板",
  4697. "forms": _formdiv,
  4698. "click": function () {
  4699. U.MD.D.I.openApplication(str, obj, info);
  4700. }
  4701. }
  4702. break;
  4703. case "mind":
  4704. aTool = 3;
  4705. _iframe = $$("iframe", {
  4706. "frameborder": "no",
  4707. "border": "0",
  4708. "scrolling ": "no",
  4709. "style": {
  4710. "cssText": "border:0;width:100%;height:100%"
  4711. },
  4712. "src": "/kityminder-editor/dist/index.html"
  4713. })
  4714. _box.appendChild(_iframe);
  4715. _box.appendChild(_jie);
  4716. _formdiv = new U.UF.UI.form(
  4717. "思维导图-" + _username,
  4718. _box, { //"/jsmind/example/demo.html"
  4719. "id": "mind" + cid + stage + task + tool + _userid,
  4720. "style": {
  4721. "width": "90%",
  4722. "height": "90%",
  4723. "overflow": 'hidden'
  4724. },
  4725. "onresize": function () { }
  4726. }, {
  4727. closecallback: function () { }
  4728. }, {
  4729. "style": {
  4730. "height": "36px"
  4731. }
  4732. }).form; //创建窗体
  4733. _taskbar = {
  4734. "id": str + _formdiv.id,
  4735. "style": {
  4736. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4737. },
  4738. "name": "思维导图",
  4739. "forms": _formdiv,
  4740. "click": function () {
  4741. U.MD.D.I.openApplication(str, obj, info);
  4742. }
  4743. }
  4744. break;
  4745. case "MindMap":
  4746. aTool = 3;
  4747. _iframe = $$("iframe", {
  4748. "frameborder": "no",
  4749. "border": "0",
  4750. "scrolling ": "no",
  4751. "style": {
  4752. "cssText": "border:0;width:100%;height:100%"
  4753. },
  4754. "src": "//cloud.cocorobo.cn/mind/"
  4755. })
  4756. _box.appendChild(_iframe);
  4757. _box.appendChild(_jie);
  4758. _formdiv = new U.UF.UI.form(
  4759. "思维导图-" + _username,
  4760. _box, { //"/jsmind/example/demo.html"
  4761. "id": "mind" + cid + stage + task + tool + _userid,
  4762. "style": {
  4763. "width": "90%",
  4764. "height": "90%",
  4765. "overflow": 'hidden'
  4766. },
  4767. "onresize": function () { }
  4768. }, {
  4769. closecallback: function () { }
  4770. }, {
  4771. "style": {
  4772. "height": "36px"
  4773. }
  4774. }).form; //创建窗体
  4775. _taskbar = {
  4776. "id": str + _formdiv.id,
  4777. "style": {
  4778. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4779. },
  4780. "name": "思维导图",
  4781. "forms": _formdiv,
  4782. "click": function () {
  4783. U.MD.D.I.openApplication(str, obj, info);
  4784. }
  4785. }
  4786. break;
  4787. case "doc":
  4788. aTool = 6;
  4789. _iframe = $$("iframe", {
  4790. "frameborder": "no",
  4791. "border": "0",
  4792. "scrolling ": "no",
  4793. "style": {
  4794. "cssText": "border:0;width:100%;height:100%"
  4795. },
  4796. "src": "/Office/Word/WordEditArea.htm"
  4797. })
  4798. _box.appendChild(_iframe);
  4799. _box.appendChild(_jie);
  4800. _formdiv = new U.UF.UI.form(
  4801. "协同文档-" + _username,
  4802. _box, {
  4803. "id": "doc" + cid + stage + task + tool + _userid,
  4804. "style": {
  4805. "width": "90%",
  4806. "height": "90%",
  4807. "overflow": 'hidden'
  4808. },
  4809. "onresize": function () { }
  4810. }, {
  4811. closecallback: function () { }
  4812. }, {
  4813. "style": {
  4814. "height": "36px"
  4815. }
  4816. }).form; //创建窗体
  4817. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4818. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4819. })
  4820. _taskbar = {
  4821. "id": str + _formdiv.id,
  4822. "style": {
  4823. "backgroundImage": "url(/img/icon/doc.png)"
  4824. },
  4825. "name": "协同文档",
  4826. "forms": _formdiv,
  4827. "click": function () {
  4828. U.MD.D.I.openApplication(str, obj, info);
  4829. }
  4830. }
  4831. break;
  4832. case "mindNetwork": //好友打开
  4833. aTool = 7;
  4834. _iframe = $$("iframe", {
  4835. "webkitallowfullscreen": "",
  4836. "mozallowfullscreen": "",
  4837. "allowfullscreen": "",
  4838. "frameborder": "no",
  4839. "border": "0",
  4840. "scrolling ": "no",
  4841. "style": {
  4842. "cssText": "border:0; width:100%; height:100%;"
  4843. },
  4844. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4845. })
  4846. _box.appendChild(_iframe);
  4847. _box.appendChild(_jie);
  4848. _formdiv = new U.UF.UI.form(
  4849. "思维网格-" + _username,
  4850. _box, {
  4851. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4852. "style": {
  4853. "width": "90%",
  4854. "height": "90%",
  4855. "overflow": 'hidden'
  4856. },
  4857. "onresize": function () { }
  4858. }, {
  4859. closecallback: function () { }
  4860. }, {
  4861. "style": {
  4862. "height": "36px"
  4863. }
  4864. }).form; //创建窗体
  4865. _taskbar = {
  4866. "id": str + _formdiv.id,
  4867. "style": {
  4868. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4869. },
  4870. "name": "思维网格",
  4871. "forms": _formdiv,
  4872. "click": function () {
  4873. U.MD.D.I.openApplication(str, obj, info);
  4874. }
  4875. }
  4876. break;
  4877. case "courseDesign":
  4878. _iframe = $$("iframe", {
  4879. "webkitallowfullscreen": "",
  4880. "mozallowfullscreen": "",
  4881. "allowfullscreen": "",
  4882. "frameborder": "no",
  4883. "border": "0",
  4884. "scrolling ": "no",
  4885. "style": {
  4886. "cssText": "border:0; width:100%; height:100%;"
  4887. },
  4888. "src": "/course-design-vue"
  4889. })
  4890. _box.appendChild(_iframe);
  4891. _box.appendChild(_jie);
  4892. _formdiv = new U.UF.UI.form(
  4893. "项目设计-" + _username,
  4894. _box, {
  4895. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4896. "style": {
  4897. "width": "90%",
  4898. "height": "90%",
  4899. "overflow": 'hidden'
  4900. },
  4901. "onresize": function () { }
  4902. }, {
  4903. closecallback: function () { }
  4904. }, {
  4905. "style": {
  4906. "height": "36px"
  4907. }
  4908. }).form; //创建窗体
  4909. _taskbar = {
  4910. "id": str + _formdiv.id,
  4911. "style": {
  4912. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4913. },
  4914. "name": "项目设计",
  4915. "forms": _formdiv,
  4916. "click": function () {
  4917. U.MD.D.I.openApplication(str, obj, info);
  4918. }
  4919. }
  4920. break;
  4921. }
  4922. const script1 = document.createElement("script");
  4923. script1.type = "text/javascript";
  4924. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4925. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4926. const script2 = document.createElement("script");
  4927. script2.type = "text/javascript";
  4928. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4929. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4930. const script3 = document.createElement("script");
  4931. script3.type = "text/javascript";
  4932. script3.charset = "UTF-8";
  4933. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4934. const script4 = document.createElement("script");
  4935. script4.type = "text/javascript";
  4936. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4937. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4938. if (_iframe) {
  4939. if (str == 'doc') {
  4940. _iframe = _formdiv.querySelector('iframe')
  4941. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4942. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4943. _iframe.contentWindow.document.body.appendChild(script1);
  4944. _iframe.contentWindow.document.body.appendChild(script2);
  4945. // _iframe.contentWindow.document.body.appendChild(script3);
  4946. _iframe.contentWindow.document.body.appendChild(script4);
  4947. })
  4948. if (onloadListener) {
  4949. _iframe.contentDocument.location.reload()
  4950. } else {
  4951. _iframe.contentDocument.location.reload()
  4952. }
  4953. } else if (str == 'courseDesign') {
  4954. U.UF.DL.iframeLoad(_iframe, function () {
  4955. // _iframe.contentWindow.U.MD.O.W.load();
  4956. // _iframe.contentWindow.document.body.appendChild(script1);
  4957. _iframe.contentWindow.document.body.appendChild(script2);
  4958. _iframe.contentWindow.document.body.appendChild(script4);
  4959. })
  4960. } else if (str == 'mind') {
  4961. _iframe = _formdiv.querySelector('iframe')
  4962. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4963. //
  4964. _iframe.contentWindow.document.body.appendChild(script1);
  4965. _iframe.contentWindow.document.body.appendChild(script2);
  4966. _iframe.contentWindow.document.body.appendChild(script4);
  4967. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4968. })
  4969. if (onloadListener) {
  4970. _iframe.contentDocument.location.reload()
  4971. } else {
  4972. _iframe.contentDocument.location.reload()
  4973. }
  4974. } else if (str == 'whiteboard') {
  4975. _iframe = _formdiv.querySelector('iframe')
  4976. let onloadListener = _iframe.onload = () => {
  4977. _iframe.contentWindow.document.body.appendChild(script1);
  4978. _iframe.contentWindow.document.body.appendChild(script2);
  4979. _iframe.contentWindow.document.body.appendChild(script4);
  4980. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4981. };
  4982. if (onloadListener) {
  4983. _iframe.contentDocument.location.reload()
  4984. } else {
  4985. _iframe.contentDocument.location.reload()
  4986. }
  4987. } else {
  4988. _iframe.onload = () => {
  4989. _iframe.contentWindow.document.body.appendChild(script1);
  4990. _iframe.contentWindow.document.body.appendChild(script2);
  4991. // _iframe.contentWindow.document.body.appendChild(script3);
  4992. _iframe.contentWindow.document.body.appendChild(script4);
  4993. };
  4994. }
  4995. _jie.onclick = async () => {
  4996. let text = ''
  4997. if (aTool == 1) {
  4998. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4999. } else if (aTool == 6) {
  5000. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5001. } else if (aTool == 3) {
  5002. text = await U.MD.D.I.getEditorContent(_iframe);
  5003. }
  5004. _loading.style.display = 'flex'
  5005. console.log(_loading);
  5006. var _ajs = _iframe.contentWindow.document.createElement("script");
  5007. _ajs.type = "text/javascript";
  5008. _ajs.innerHTML =
  5009. // 'console.log(' + _loading + ');\n' +
  5010. 'var _js = document.createElement("script");\n' +
  5011. '_js.type="text/javascript";\n' +
  5012. '_js.charset="UTF-8";\n' +
  5013. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5014. "_js.onload = function(){\n" +
  5015. ' var a = document.getElementsByTagName("img")\n' +
  5016. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5017. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5018. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5019. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5020. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5021. "beforeUpload_shishi(file," +
  5022. "'" +
  5023. _userid +
  5024. "'" +
  5025. ", " +
  5026. "'" +
  5027. _cid +
  5028. "'" +
  5029. ", " +
  5030. "'" +
  5031. _stage +
  5032. "'" +
  5033. ", " +
  5034. "'" +
  5035. _task +
  5036. "'" +
  5037. ", " +
  5038. "'" +
  5039. _tool +
  5040. "'" +
  5041. ", " +
  5042. "'" +
  5043. (str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid) +
  5044. "'" +
  5045. ", " +
  5046. "'" +
  5047. aTool +
  5048. "'" +
  5049. ", " +
  5050. "`" +
  5051. text +
  5052. "`" +
  5053. ")\n" +
  5054. " });\n" +
  5055. "}\n" +
  5056. "document.head.appendChild(_js);\n";
  5057. _iframe.contentWindow.document.head.appendChild(_ajs);
  5058. }
  5059. }
  5060. }
  5061. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5062. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5063. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5064. _userid = student.userid, //登录用户id
  5065. _username = student.student //用户名字
  5066. let _iframe;
  5067. let _cid = cid,
  5068. _stage = stage,
  5069. _task = task,
  5070. _tool = tool;
  5071. var _jie = $$("div", {
  5072. "style": {
  5073. "position": "absolute",
  5074. "bottom": "50px",
  5075. "right": "50px",
  5076. "zIndex": "9999",
  5077. "backgroundColor": "#2268bc",
  5078. "color": "#fff",
  5079. "padding": "12px 20px",
  5080. "cursor": "pointer",
  5081. "borderRadius": "4px",
  5082. },
  5083. "innerHTML": "提交作业"
  5084. })
  5085. let aTool = ''
  5086. let _loading = document.createElement('div')
  5087. _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;"
  5088. // _loading.id = "";
  5089. let _lchild = document.createElement('div')
  5090. let _limg = document.createElement('img')
  5091. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5092. _limg.style = "width: 26px;margin-right: 10px;"
  5093. _lchild.appendChild(_limg)
  5094. let _lspan = document.createElement('span')
  5095. _lspan.innerHTML = "上传中..."
  5096. _lchild.appendChild(_lspan)
  5097. _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%);"
  5098. _loading.appendChild(_lchild)
  5099. var _box = $$('div', {
  5100. "style": {
  5101. "position": "relative",
  5102. "width": "100%",
  5103. "height": "100%",
  5104. },
  5105. })
  5106. _box.appendChild(_loading)
  5107. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5108. switch (str) {
  5109. case "whiteboard":
  5110. aTool = 1;
  5111. _iframe = $$("iframe", {
  5112. "frameborder": "no",
  5113. "border": "0",
  5114. "scrolling ": "no",
  5115. "style": {
  5116. "cssText": "border:0;width:100%;height:100%"
  5117. },
  5118. "src": "https://iwb.cocorobo.cn/"
  5119. })
  5120. _box.appendChild(_iframe);
  5121. _box.appendChild(_jie);
  5122. _formdiv = new U.UF.UI.form(
  5123. "电子白板-" + _username,
  5124. _box, {
  5125. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5126. "style": {
  5127. "width": "90%",
  5128. "height": "90%",
  5129. "overflow": 'hidden'
  5130. },
  5131. "onresize": function () { }
  5132. }, {
  5133. closecallback: function () { }
  5134. }, {
  5135. "style": {
  5136. "height": "36px"
  5137. }
  5138. }).form; //创建窗体
  5139. _taskbar = {
  5140. "id": str + _formdiv.id,
  5141. "style": {
  5142. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5143. },
  5144. "name": "电子白板",
  5145. "forms": _formdiv,
  5146. "click": function () {
  5147. U.MD.D.I.openApplication(str, obj, info);
  5148. }
  5149. }
  5150. break;
  5151. case "mind":
  5152. aTool = 3;
  5153. _iframe = $$("iframe", {
  5154. "frameborder": "no",
  5155. "border": "0",
  5156. "scrolling ": "no",
  5157. "style": {
  5158. "cssText": "border:0;width:100%;height:100%"
  5159. },
  5160. "src": "/kityminder-editor/dist/index.html"
  5161. })
  5162. _box.appendChild(_iframe);
  5163. _box.appendChild(_jie);
  5164. _formdiv = new U.UF.UI.form(
  5165. "思维导图-" + _username,
  5166. _box, { //"/jsmind/example/demo.html"
  5167. "id": "mind" + cid + stage + task + tool + _userid,
  5168. "style": {
  5169. "width": "90%",
  5170. "height": "90%",
  5171. "overflow": 'hidden'
  5172. },
  5173. "onresize": function () { }
  5174. }, {
  5175. closecallback: function () { }
  5176. }, {
  5177. "style": {
  5178. "height": "36px"
  5179. }
  5180. }).form; //创建窗体
  5181. _taskbar = {
  5182. "id": str + _formdiv.id,
  5183. "style": {
  5184. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5185. },
  5186. "name": "思维导图",
  5187. "forms": _formdiv,
  5188. "click": function () {
  5189. U.MD.D.I.openApplication(str, obj, info);
  5190. }
  5191. }
  5192. break;
  5193. case "MindMap":
  5194. aTool = 3;
  5195. _iframe = $$("iframe", {
  5196. "frameborder": "no",
  5197. "border": "0",
  5198. "scrolling ": "no",
  5199. "style": {
  5200. "cssText": "border:0;width:100%;height:100%"
  5201. },
  5202. "src": "//cloud.cocorobo.cn/mind/"
  5203. })
  5204. _box.appendChild(_iframe);
  5205. _box.appendChild(_jie);
  5206. _formdiv = new U.UF.UI.form(
  5207. "思维导图-" + _username,
  5208. _box, { //"/jsmind/example/demo.html"
  5209. "id": "mind" + cid + stage + task + tool + _userid,
  5210. "style": {
  5211. "width": "90%",
  5212. "height": "90%",
  5213. "overflow": 'hidden'
  5214. },
  5215. "onresize": function () { }
  5216. }, {
  5217. closecallback: function () { }
  5218. }, {
  5219. "style": {
  5220. "height": "36px"
  5221. }
  5222. }).form; //创建窗体
  5223. _taskbar = {
  5224. "id": str + _formdiv.id,
  5225. "style": {
  5226. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5227. },
  5228. "name": "思维导图",
  5229. "forms": _formdiv,
  5230. "click": function () {
  5231. U.MD.D.I.openApplication(str, obj, info);
  5232. }
  5233. }
  5234. break;
  5235. case "doc":
  5236. aTool = 6;
  5237. _iframe = $$("iframe", {
  5238. "frameborder": "no",
  5239. "border": "0",
  5240. "scrolling ": "no",
  5241. "style": {
  5242. "cssText": "border:0;width:100%;height:100%"
  5243. },
  5244. "src": "/Office/Word/WordEditArea.htm"
  5245. })
  5246. _box.appendChild(_iframe);
  5247. _box.appendChild(_jie);
  5248. _formdiv = new U.UF.UI.form(
  5249. "协同文档-" + _username,
  5250. _box, {
  5251. "id": "doc" + cid + stage + task + tool + _userid,
  5252. "style": {
  5253. "width": "90%",
  5254. "height": "90%",
  5255. "overflow": 'hidden'
  5256. },
  5257. "onresize": function () { }
  5258. }, {
  5259. closecallback: function () { }
  5260. }, {
  5261. "style": {
  5262. "height": "36px"
  5263. }
  5264. }).form; //创建窗体
  5265. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5266. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5267. })
  5268. _taskbar = {
  5269. "id": str + _formdiv.id,
  5270. "style": {
  5271. "backgroundImage": "url(/img/icon/doc.png)"
  5272. },
  5273. "name": "协同文档",
  5274. "forms": _formdiv,
  5275. "click": function () {
  5276. U.MD.D.I.openApplication(str, obj, info);
  5277. }
  5278. }
  5279. break;
  5280. case "mindNetwork": //好友打开
  5281. aTool = 7;
  5282. _iframe = $$("iframe", {
  5283. "webkitallowfullscreen": "",
  5284. "mozallowfullscreen": "",
  5285. "allowfullscreen": "",
  5286. "frameborder": "no",
  5287. "border": "0",
  5288. "scrolling ": "no",
  5289. "style": {
  5290. "cssText": "border:0; width:100%; height:100%;"
  5291. },
  5292. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5293. })
  5294. _box.appendChild(_iframe);
  5295. _box.appendChild(_jie);
  5296. _formdiv = new U.UF.UI.form(
  5297. "思维网格-" + _username,
  5298. _box, {
  5299. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5300. "style": {
  5301. "width": "90%",
  5302. "height": "90%",
  5303. "overflow": 'hidden'
  5304. },
  5305. "onresize": function () { }
  5306. }, {
  5307. closecallback: function () { }
  5308. }, {
  5309. "style": {
  5310. "height": "36px"
  5311. }
  5312. }).form; //创建窗体
  5313. _taskbar = {
  5314. "id": str + _formdiv.id,
  5315. "style": {
  5316. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5317. },
  5318. "name": "思维网格",
  5319. "forms": _formdiv,
  5320. "click": function () {
  5321. U.MD.D.I.openApplication(str, obj, info);
  5322. }
  5323. }
  5324. break;
  5325. case "courseDesign":
  5326. _iframe = $$("iframe", {
  5327. "webkitallowfullscreen": "",
  5328. "mozallowfullscreen": "",
  5329. "allowfullscreen": "",
  5330. "frameborder": "no",
  5331. "border": "0",
  5332. "scrolling ": "no",
  5333. "style": {
  5334. "cssText": "border:0; width:100%; height:100%;"
  5335. },
  5336. "src": "/course-design-vue"
  5337. })
  5338. _box.appendChild(_iframe);
  5339. _box.appendChild(_jie);
  5340. _formdiv = new U.UF.UI.form(
  5341. "项目设计-" + _username,
  5342. _box, {
  5343. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5344. "style": {
  5345. "width": "90%",
  5346. "height": "90%",
  5347. "overflow": 'hidden'
  5348. },
  5349. "onresize": function () { }
  5350. }, {
  5351. closecallback: function () { }
  5352. }, {
  5353. "style": {
  5354. "height": "36px"
  5355. }
  5356. }).form; //创建窗体
  5357. _taskbar = {
  5358. "id": str + _formdiv.id,
  5359. "style": {
  5360. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5361. },
  5362. "name": "项目设计",
  5363. "forms": _formdiv,
  5364. "click": function () {
  5365. U.MD.D.I.openApplication(str, obj, info);
  5366. }
  5367. }
  5368. break;
  5369. }
  5370. const script1 = document.createElement("script");
  5371. script1.type = "text/javascript";
  5372. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5373. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5374. const script2 = document.createElement("script");
  5375. script2.type = "text/javascript";
  5376. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5377. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5378. const script3 = document.createElement("script");
  5379. script3.type = "text/javascript";
  5380. script3.charset = "UTF-8";
  5381. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5382. const script4 = document.createElement("script");
  5383. script4.type = "text/javascript";
  5384. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5385. script4.src = window.origin + "/js/Common/jietu2E.js";
  5386. if (_iframe) {
  5387. if (str == 'doc') {
  5388. _iframe = _formdiv.querySelector('iframe')
  5389. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5390. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5391. _iframe.contentWindow.document.body.appendChild(script1);
  5392. _iframe.contentWindow.document.body.appendChild(script2);
  5393. // _iframe.contentWindow.document.body.appendChild(script3);
  5394. _iframe.contentWindow.document.body.appendChild(script4);
  5395. })
  5396. if (onloadListener) {
  5397. _iframe.contentDocument.location.reload()
  5398. } else {
  5399. _iframe.contentDocument.location.reload()
  5400. }
  5401. } else if (str == 'courseDesign') {
  5402. U.UF.DL.iframeLoad(_iframe, function () {
  5403. // _iframe.contentWindow.U.MD.O.W.load();
  5404. // _iframe.contentWindow.document.body.appendChild(script1);
  5405. _iframe.contentWindow.document.body.appendChild(script2);
  5406. _iframe.contentWindow.document.body.appendChild(script4);
  5407. })
  5408. } else if (str == 'mind') {
  5409. _iframe = _formdiv.querySelector('iframe')
  5410. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5411. //
  5412. _iframe.contentWindow.document.body.appendChild(script1);
  5413. _iframe.contentWindow.document.body.appendChild(script2);
  5414. _iframe.contentWindow.document.body.appendChild(script4);
  5415. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5416. })
  5417. if (onloadListener) {
  5418. _iframe.contentDocument.location.reload()
  5419. } else {
  5420. _iframe.contentDocument.location.reload()
  5421. }
  5422. } else if (str == 'whiteboard') {
  5423. _iframe = _formdiv.querySelector('iframe')
  5424. let onloadListener = _iframe.onload = () => {
  5425. _iframe.contentWindow.document.body.appendChild(script1);
  5426. _iframe.contentWindow.document.body.appendChild(script2);
  5427. _iframe.contentWindow.document.body.appendChild(script4);
  5428. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5429. };
  5430. if (onloadListener) {
  5431. _iframe.contentDocument.location.reload()
  5432. } else {
  5433. _iframe.contentDocument.location.reload()
  5434. }
  5435. } else {
  5436. _iframe.onload = () => {
  5437. _iframe.contentWindow.document.body.appendChild(script1);
  5438. _iframe.contentWindow.document.body.appendChild(script2);
  5439. // _iframe.contentWindow.document.body.appendChild(script3);
  5440. _iframe.contentWindow.document.body.appendChild(script4);
  5441. };
  5442. }
  5443. _jie.onclick = async () => {
  5444. let text = ''
  5445. if (aTool == 1) {
  5446. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5447. } else if (aTool == 6) {
  5448. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5449. } else if (aTool == 3) {
  5450. text = await U.MD.D.I.getEditorContent(_iframe);
  5451. }
  5452. _loading.style.display = 'flex'
  5453. console.log(_loading);
  5454. var _ajs = _iframe.contentWindow.document.createElement("script");
  5455. _ajs.type = "text/javascript";
  5456. _ajs.innerHTML =
  5457. // 'console.log(' + _loading + ');\n' +
  5458. 'var _js = document.createElement("script");\n' +
  5459. '_js.type="text/javascript";\n' +
  5460. '_js.charset="UTF-8";\n' +
  5461. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5462. "_js.onload = function(){\n" +
  5463. ' var a = document.getElementsByTagName("img")\n' +
  5464. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5465. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5466. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5467. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5468. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5469. "beforeUpload_shishi(file," +
  5470. "'" +
  5471. _userid +
  5472. "'" +
  5473. ", " +
  5474. "'" +
  5475. _cid +
  5476. "'" +
  5477. ", " +
  5478. "'" +
  5479. _stage +
  5480. "'" +
  5481. ", " +
  5482. "'" +
  5483. _task +
  5484. "'" +
  5485. ", " +
  5486. "'" +
  5487. _tool +
  5488. "'" +
  5489. ", " +
  5490. "'" +
  5491. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool+_userid) +
  5492. "'" +
  5493. ", " +
  5494. "'" +
  5495. aTool +
  5496. "'" +
  5497. ", " +
  5498. "`" +
  5499. text +
  5500. "`" +
  5501. ")\n" +
  5502. " });\n" +
  5503. "}\n" +
  5504. "document.head.appendChild(_js);\n";
  5505. _iframe.contentWindow.document.head.appendChild(_ajs);
  5506. }
  5507. }
  5508. }
  5509. U.MD.D.I.getEditorContent = function (iframe) {
  5510. return new Promise((resolve, reject) => {
  5511. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5512. console.log(content);
  5513. resolve(content)
  5514. });
  5515. });
  5516. }
  5517. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5518. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5519. // if (res.value[0].length > 0) {
  5520. // // resolve(res.value[0][0].text);
  5521. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5522. // $(fileInput).val('');
  5523. // });
  5524. // }
  5525. // }, [], { "type": "GET", "withCredentials": true });
  5526. var xmlhttp;
  5527. var Mac, Sn, DeviceId
  5528. if (window.XMLHttpRequest) {
  5529. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5530. xmlhttp = new XMLHttpRequest();
  5531. }
  5532. else {
  5533. // IE6, IE5 浏览器执行代码
  5534. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5535. }
  5536. xmlhttp.onreadystatechange = function () {
  5537. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5538. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5539. // resolve(res.value[0][0].text);
  5540. if (type == '2') {
  5541. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  5542. } else if (type == '3') {
  5543. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5544. }
  5545. } else {
  5546. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5547. }
  5548. }
  5549. }
  5550. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5551. xmlhttp.send();
  5552. }
  5553. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5554. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5555. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5556. _userinfo = US.userInfo, //登录用户信息
  5557. _userid = US.userInfo.userid //登录用户id
  5558. let _iframe;
  5559. let _cid = cid,
  5560. _stage = stage,
  5561. _task = task,
  5562. _tool = tool;
  5563. var _jie = $$("div", {
  5564. "style": {
  5565. "position": "absolute",
  5566. "bottom": "50px",
  5567. "right": "50px",
  5568. "zIndex": "9999",
  5569. "backgroundColor": "#2268bc",
  5570. "color": "#fff",
  5571. "padding": "12px 20px",
  5572. "cursor": "pointer",
  5573. "borderRadius": "4px",
  5574. },
  5575. "innerHTML": "确认并提交"
  5576. })
  5577. let aTool = ''
  5578. let _loading = document.createElement('div')
  5579. _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;"
  5580. // _loading.id = "";
  5581. let _lchild = document.createElement('div')
  5582. let _limg = document.createElement('img')
  5583. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5584. _limg.style = "width: 26px;margin-right: 10px;"
  5585. _lchild.appendChild(_limg)
  5586. let _lspan = document.createElement('span')
  5587. _lspan.innerHTML = "上传中..."
  5588. _lchild.appendChild(_lspan)
  5589. _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%);"
  5590. _loading.appendChild(_lchild)
  5591. var _box = $$('div', {
  5592. "style": {
  5593. "position": "relative",
  5594. "width": "100%",
  5595. "height": "100%",
  5596. },
  5597. })
  5598. _box.appendChild(_loading)
  5599. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool+_userid
  5600. switch (str) {
  5601. case "whiteboard":
  5602. aTool = 1;
  5603. _iframe = $$("iframe", {
  5604. "frameborder": "no",
  5605. "border": "0",
  5606. "scrolling ": "no",
  5607. "style": {
  5608. "cssText": "border:0;width:100%;height:100%"
  5609. },
  5610. "src": "https://iwb.cocorobo.cn/"
  5611. })
  5612. _box.appendChild(_iframe);
  5613. _box.appendChild(_jie);
  5614. _formdiv = new U.UF.UI.form(
  5615. "电子白板",
  5616. _box, {
  5617. "id": "whiteboards" + cid + stage + task + tool,
  5618. "style": {
  5619. "width": "90%",
  5620. "height": "90%",
  5621. "overflow": 'hidden'
  5622. },
  5623. "onresize": function () { }
  5624. }, {
  5625. closecallback: function () { }
  5626. }, {
  5627. "style": {
  5628. "height": "36px"
  5629. }
  5630. }).form; //创建窗体
  5631. _taskbar = {
  5632. "id": str + _formdiv.id,
  5633. "style": {
  5634. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5635. },
  5636. "name": "电子白板",
  5637. "forms": _formdiv,
  5638. "click": function () {
  5639. U.MD.D.I.openApplication(str, obj, info);
  5640. }
  5641. }
  5642. break;
  5643. case "mind":
  5644. aTool = 3;
  5645. _iframe = $$("iframe", {
  5646. "frameborder": "no",
  5647. "border": "0",
  5648. "scrolling ": "no",
  5649. "style": {
  5650. "cssText": "border:0;width:100%;height:100%"
  5651. },
  5652. "src": "/kityminder-editor/dist/index.html"
  5653. });
  5654. _box.appendChild(_iframe);
  5655. _box.appendChild(_jie);
  5656. _formdiv = new U.UF.UI.form(
  5657. "思维导图",
  5658. _box, { //"/jsmind/example/demo.html"
  5659. "id": "minds" + cid + stage + task + tool,
  5660. "style": {
  5661. "width": "90%",
  5662. "height": "90%",
  5663. "overflow": 'hidden'
  5664. },
  5665. "onresize": function () { }
  5666. }, {
  5667. closecallback: function () { }
  5668. }, {
  5669. "style": {
  5670. "height": "36px"
  5671. }
  5672. }).form; //创建窗体
  5673. _taskbar = {
  5674. "id": str + _formdiv.id,
  5675. "style": {
  5676. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5677. },
  5678. "name": "思维导图",
  5679. "forms": _formdiv,
  5680. "click": function () {
  5681. U.MD.D.I.openApplication(str, obj, info);
  5682. }
  5683. }
  5684. break;
  5685. case "doc":
  5686. aTool = 6;
  5687. _iframe = $$("iframe", {
  5688. "frameborder": "no",
  5689. "border": "0",
  5690. "scrolling ": "no",
  5691. "style": {
  5692. "cssText": "border:0;width:100%;height:100%"
  5693. },
  5694. "src": "/Office/Word/WordEditArea.htm"
  5695. })
  5696. _box.appendChild(_iframe);
  5697. _box.appendChild(_jie);
  5698. _formdiv = new U.UF.UI.form(
  5699. "协同文档",
  5700. _box, {
  5701. "id": "docs" + cid + stage + task + tool,
  5702. "style": {
  5703. "width": "90%",
  5704. "height": "90%",
  5705. "overflow": 'hidden'
  5706. },
  5707. "onresize": function () { }
  5708. }, {
  5709. closecallback: function () { }
  5710. }, {
  5711. "style": {
  5712. "height": "36px"
  5713. }
  5714. }).form; //创建窗体
  5715. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5716. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5717. })
  5718. _taskbar = {
  5719. "id": str + _formdiv.id,
  5720. "style": {
  5721. "backgroundImage": "url(/img/icon/doc.png)"
  5722. },
  5723. "name": "协同文档",
  5724. "forms": _formdiv,
  5725. "click": function () {
  5726. U.MD.D.I.openApplication(str, obj, info);
  5727. }
  5728. }
  5729. break;
  5730. }
  5731. const script1 = document.createElement("script");
  5732. script1.type = "text/javascript";
  5733. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5734. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5735. const script2 = document.createElement("script");
  5736. script2.type = "text/javascript";
  5737. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5738. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5739. const script3 = document.createElement("script");
  5740. script3.type = "text/javascript";
  5741. script3.charset = "UTF-8";
  5742. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5743. const script4 = document.createElement("script");
  5744. script4.type = "text/javascript";
  5745. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5746. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5747. if (_iframe) {
  5748. if (str == 'doc') {
  5749. _iframe = _formdiv.querySelector('iframe')
  5750. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5751. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5752. _iframe.contentWindow.document.body.appendChild(script1);
  5753. _iframe.contentWindow.document.body.appendChild(script2);
  5754. // _iframe.contentWindow.document.body.appendChild(script3);
  5755. _iframe.contentWindow.document.body.appendChild(script4);
  5756. })
  5757. if (onloadListener) {
  5758. _iframe.contentDocument.location.reload()
  5759. } else {
  5760. _iframe.contentDocument.location.reload()
  5761. }
  5762. } else if (str == 'mind') {
  5763. _iframe = _formdiv.querySelector('iframe')
  5764. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5765. _iframe.contentWindow.document.body.appendChild(script1);
  5766. _iframe.contentWindow.document.body.appendChild(script2);
  5767. _iframe.contentWindow.document.body.appendChild(script4);
  5768. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5769. })
  5770. if (onloadListener) {
  5771. _iframe.contentDocument.location.reload()
  5772. } else {
  5773. _iframe.contentDocument.location.reload()
  5774. }
  5775. } else {
  5776. _iframe.onload = () => {
  5777. _iframe.contentWindow.document.body.appendChild(script1);
  5778. _iframe.contentWindow.document.body.appendChild(script2);
  5779. // _iframe.contentWindow.document.body.appendChild(script3);
  5780. _iframe.contentWindow.document.body.appendChild(script4);
  5781. };
  5782. }
  5783. _jie.onclick = async () => {
  5784. let text = ''
  5785. if (aTool == 6) {
  5786. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5787. } else if (aTool == 3) {
  5788. text = await U.MD.D.I.getEditorContent(_iframe);
  5789. }
  5790. _loading.style.display = 'flex'
  5791. console.log(_loading);
  5792. var _ajs = _iframe.contentWindow.document.createElement("script");
  5793. _ajs.type = "text/javascript";
  5794. _ajs.innerHTML =
  5795. // 'console.log(' + _loading + ');\n' +
  5796. 'var _js = document.createElement("script");\n' +
  5797. '_js.type="text/javascript";\n' +
  5798. '_js.charset="UTF-8";\n' +
  5799. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5800. "_js.onload = function(){\n" +
  5801. ' var a = document.getElementsByTagName("img")\n' +
  5802. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5803. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5804. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5805. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5806. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5807. "beforeUpload_shishi(file," +
  5808. "'" +
  5809. _userid +
  5810. "'" +
  5811. ", " +
  5812. "'" +
  5813. _cid +
  5814. "'" +
  5815. ", " +
  5816. "'" +
  5817. _stage +
  5818. "'" +
  5819. ", " +
  5820. "'" +
  5821. _task +
  5822. "'" +
  5823. ", " +
  5824. "'" +
  5825. _tool +
  5826. "'" +
  5827. ", " +
  5828. "'" +
  5829. (str + '_loadLi_JieS' + cid + stage + task + tool+_userid) +
  5830. "'" +
  5831. ", " +
  5832. "'" +
  5833. aTool +
  5834. "'" +
  5835. ", " +
  5836. "`" +
  5837. text +
  5838. "`" +
  5839. ")\n" +
  5840. " });\n" +
  5841. "}\n" +
  5842. "document.head.appendChild(_js);\n";
  5843. _iframe.contentWindow.document.head.appendChild(_ajs);
  5844. }
  5845. }
  5846. //U.MD.D.I.openClick(str);
  5847. //如果有任务栏信息
  5848. // if (_taskbar) {
  5849. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5850. // }
  5851. }
  5852. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  5853. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5854. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5855. _userinfo = US.userInfo, //登录用户信息
  5856. _userid = US.userInfo.userid //登录用户id
  5857. let _iframe;
  5858. let _cid = cid,
  5859. _stage = stage,
  5860. _task = task,
  5861. _tool = tool;
  5862. var _jie = $$("div", {
  5863. "style": {
  5864. "position": "absolute",
  5865. "bottom": "50px",
  5866. "right": "50px",
  5867. "zIndex": "9999",
  5868. "backgroundColor": "#2268bc",
  5869. "color": "#fff",
  5870. "padding": "12px 20px",
  5871. "cursor": "pointer",
  5872. "borderRadius": "4px",
  5873. },
  5874. "innerHTML": "确认并提交"
  5875. })
  5876. let aTool = ''
  5877. let _loading = document.createElement('div')
  5878. _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;"
  5879. // _loading.id = "";
  5880. let _lchild = document.createElement('div')
  5881. let _limg = document.createElement('img')
  5882. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5883. _limg.style = "width: 26px;margin-right: 10px;"
  5884. _lchild.appendChild(_limg)
  5885. let _lspan = document.createElement('span')
  5886. _lspan.innerHTML = "上传中..."
  5887. _lchild.appendChild(_lspan)
  5888. _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%);"
  5889. _loading.appendChild(_lchild)
  5890. var _box = $$('div', {
  5891. "style": {
  5892. "position": "relative",
  5893. "width": "100%",
  5894. "height": "100%",
  5895. },
  5896. })
  5897. _box.appendChild(_loading)
  5898. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid
  5899. switch (str) {
  5900. case "whiteboard":
  5901. aTool = 1;
  5902. _iframe = $$("iframe", {
  5903. "frameborder": "no",
  5904. "border": "0",
  5905. "scrolling ": "no",
  5906. "style": {
  5907. "cssText": "border:0;width:100%;height:100%"
  5908. },
  5909. "src": "https://iwb.cocorobo.cn/"
  5910. })
  5911. _box.appendChild(_iframe);
  5912. _box.appendChild(_jie);
  5913. _formdiv = new U.UF.UI.form(
  5914. "电子白板",
  5915. _box, {
  5916. "id": "whiteboards" + cid + stage + task + tool,
  5917. "style": {
  5918. "width": "90%",
  5919. "height": "90%",
  5920. "overflow": 'hidden'
  5921. },
  5922. "onresize": function () { }
  5923. }, {
  5924. closecallback: function () { }
  5925. }, {
  5926. "style": {
  5927. "height": "36px"
  5928. }
  5929. }).form; //创建窗体
  5930. _taskbar = {
  5931. "id": str + _formdiv.id,
  5932. "style": {
  5933. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5934. },
  5935. "name": "电子白板",
  5936. "forms": _formdiv,
  5937. "click": function () {
  5938. U.MD.D.I.openApplication(str, obj, info);
  5939. }
  5940. }
  5941. break;
  5942. case "mind":
  5943. aTool = 3;
  5944. _iframe = $$("iframe", {
  5945. "frameborder": "no",
  5946. "border": "0",
  5947. "scrolling ": "no",
  5948. "style": {
  5949. "cssText": "border:0;width:100%;height:100%"
  5950. },
  5951. "src": "/kityminder-editor/dist/index.html"
  5952. });
  5953. _box.appendChild(_iframe);
  5954. _box.appendChild(_jie);
  5955. _formdiv = new U.UF.UI.form(
  5956. "思维导图",
  5957. _box, { //"/jsmind/example/demo.html"
  5958. "id": "minds" + cid + stage + task + tool,
  5959. "style": {
  5960. "width": "90%",
  5961. "height": "90%",
  5962. "overflow": 'hidden'
  5963. },
  5964. "onresize": function () { }
  5965. }, {
  5966. closecallback: function () { }
  5967. }, {
  5968. "style": {
  5969. "height": "36px"
  5970. }
  5971. }).form; //创建窗体
  5972. _taskbar = {
  5973. "id": str + _formdiv.id,
  5974. "style": {
  5975. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5976. },
  5977. "name": "思维导图",
  5978. "forms": _formdiv,
  5979. "click": function () {
  5980. U.MD.D.I.openApplication(str, obj, info);
  5981. }
  5982. }
  5983. break;
  5984. case "doc":
  5985. aTool = 6;
  5986. _iframe = $$("iframe", {
  5987. "frameborder": "no",
  5988. "border": "0",
  5989. "scrolling ": "no",
  5990. "style": {
  5991. "cssText": "border:0;width:100%;height:100%"
  5992. },
  5993. "src": "/Office/Word/WordEditArea.htm"
  5994. })
  5995. _box.appendChild(_iframe);
  5996. _box.appendChild(_jie);
  5997. _formdiv = new U.UF.UI.form(
  5998. "协同文档",
  5999. _box, {
  6000. "id": "docs" + cid + stage + task + tool,
  6001. "style": {
  6002. "width": "90%",
  6003. "height": "90%",
  6004. "overflow": 'hidden'
  6005. },
  6006. "onresize": function () { }
  6007. }, {
  6008. closecallback: function () { }
  6009. }, {
  6010. "style": {
  6011. "height": "36px"
  6012. }
  6013. }).form; //创建窗体
  6014. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6015. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6016. })
  6017. _taskbar = {
  6018. "id": str + _formdiv.id,
  6019. "style": {
  6020. "backgroundImage": "url(/img/icon/doc.png)"
  6021. },
  6022. "name": "协同文档",
  6023. "forms": _formdiv,
  6024. "click": function () {
  6025. U.MD.D.I.openApplication(str, obj, info);
  6026. }
  6027. }
  6028. break;
  6029. }
  6030. const script1 = document.createElement("script");
  6031. script1.type = "text/javascript";
  6032. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6033. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  6034. const script2 = document.createElement("script");
  6035. script2.type = "text/javascript";
  6036. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6037. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  6038. const script3 = document.createElement("script");
  6039. script3.type = "text/javascript";
  6040. script3.charset = "UTF-8";
  6041. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  6042. const script4 = document.createElement("script");
  6043. script4.type = "text/javascript";
  6044. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6045. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  6046. if (_iframe) {
  6047. if (str == 'doc') {
  6048. _iframe = _formdiv.querySelector('iframe')
  6049. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6050. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6051. _iframe.contentWindow.document.body.appendChild(script1);
  6052. _iframe.contentWindow.document.body.appendChild(script2);
  6053. // _iframe.contentWindow.document.body.appendChild(script3);
  6054. _iframe.contentWindow.document.body.appendChild(script4);
  6055. })
  6056. if (onloadListener) {
  6057. _iframe.contentDocument.location.reload()
  6058. } else {
  6059. _iframe.contentDocument.location.reload()
  6060. }
  6061. } else if (str == 'mind') {
  6062. _iframe = _formdiv.querySelector('iframe')
  6063. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6064. _iframe.contentWindow.document.body.appendChild(script1);
  6065. _iframe.contentWindow.document.body.appendChild(script2);
  6066. _iframe.contentWindow.document.body.appendChild(script4);
  6067. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6068. })
  6069. if (onloadListener) {
  6070. _iframe.contentDocument.location.reload()
  6071. } else {
  6072. _iframe.contentDocument.location.reload()
  6073. }
  6074. } else {
  6075. _iframe.onload = () => {
  6076. _iframe.contentWindow.document.body.appendChild(script1);
  6077. _iframe.contentWindow.document.body.appendChild(script2);
  6078. // _iframe.contentWindow.document.body.appendChild(script3);
  6079. _iframe.contentWindow.document.body.appendChild(script4);
  6080. };
  6081. }
  6082. _jie.onclick = async () => {
  6083. let text = ''
  6084. if (aTool == 6) {
  6085. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6086. } else if (aTool == 3) {
  6087. text = await U.MD.D.I.getEditorContent(_iframe);
  6088. }
  6089. _loading.style.display = 'flex'
  6090. console.log(_loading);
  6091. var _ajs = _iframe.contentWindow.document.createElement("script");
  6092. _ajs.type = "text/javascript";
  6093. _ajs.innerHTML =
  6094. // 'console.log(' + _loading + ');\n' +
  6095. 'var _js = document.createElement("script");\n' +
  6096. '_js.type="text/javascript";\n' +
  6097. '_js.charset="UTF-8";\n' +
  6098. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  6099. "_js.onload = function(){\n" +
  6100. ' var a = document.getElementsByTagName("img")\n' +
  6101. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6102. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6103. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6104. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6105. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  6106. "beforeUpload_shishi(file," +
  6107. "'" +
  6108. _userid +
  6109. "'" +
  6110. ", " +
  6111. "'" +
  6112. _cid +
  6113. "'" +
  6114. ", " +
  6115. "'" +
  6116. _stage +
  6117. "'" +
  6118. ", " +
  6119. "'" +
  6120. _task +
  6121. "'" +
  6122. ", " +
  6123. "'" +
  6124. _tool +
  6125. "'" +
  6126. ", " +
  6127. "'" +
  6128. (str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid) +
  6129. "'" +
  6130. ", " +
  6131. "'" +
  6132. aTool +
  6133. "'" +
  6134. ", " +
  6135. "`" +
  6136. text +
  6137. "`" +
  6138. ")\n" +
  6139. " });\n" +
  6140. "}\n" +
  6141. "document.head.appendChild(_js);\n";
  6142. _iframe.contentWindow.document.head.appendChild(_ajs);
  6143. }
  6144. }
  6145. //U.MD.D.I.openClick(str);
  6146. //如果有任务栏信息
  6147. // if (_taskbar) {
  6148. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6149. // }
  6150. }
  6151. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6152. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6153. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6154. _userinfo = US.userInfo, //登录用户信息
  6155. _userid = US.userInfo.userid //登录用户id
  6156. let _iframe;
  6157. let _cid = cid,
  6158. _stage = stage,
  6159. _task = task,
  6160. _tool = tool;
  6161. var _jie = $$("div", {
  6162. "style": {
  6163. "position": "absolute",
  6164. "bottom": "50px",
  6165. "right": "50px",
  6166. "zIndex": "9999",
  6167. "backgroundColor": "#2268bc",
  6168. "color": "#fff",
  6169. "padding": "12px 20px",
  6170. "cursor": "pointer",
  6171. "borderRadius": "4px",
  6172. },
  6173. "innerHTML": "上传模板"
  6174. })
  6175. let aTool = ''
  6176. let _loading = document.createElement('div')
  6177. _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;"
  6178. // _loading.id = "";
  6179. let _lchild = document.createElement('div')
  6180. let _limg = document.createElement('img')
  6181. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6182. _limg.style = "width: 26px;margin-right: 10px;"
  6183. _lchild.appendChild(_limg)
  6184. let _lspan = document.createElement('span')
  6185. _lspan.innerHTML = "上传中..."
  6186. _lchild.appendChild(_lspan)
  6187. _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%);"
  6188. _loading.appendChild(_lchild)
  6189. var _box = $$('div', {
  6190. "style": {
  6191. "position": "relative",
  6192. "width": "100%",
  6193. "height": "100%",
  6194. },
  6195. })
  6196. _box.appendChild(_loading)
  6197. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool+_userid
  6198. switch (str) {
  6199. case "whiteboard":
  6200. aTool = 1;
  6201. _iframe = $$("iframe", {
  6202. "frameborder": "no",
  6203. "border": "0",
  6204. "scrolling ": "no",
  6205. "style": {
  6206. "cssText": "border:0;width:100%;height:100%"
  6207. },
  6208. "src": "https://iwb.cocorobo.cn/"
  6209. })
  6210. _box.appendChild(_iframe);
  6211. _box.appendChild(_jie);
  6212. _formdiv = new U.UF.UI.form(
  6213. "电子白板",
  6214. _box, {
  6215. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6216. "style": {
  6217. "width": "90%",
  6218. "height": "90%",
  6219. "overflow": 'hidden'
  6220. },
  6221. "onresize": function () { }
  6222. }, {
  6223. closecallback: function () { }
  6224. }, {
  6225. "style": {
  6226. "height": "36px"
  6227. }
  6228. }).form; //创建窗体
  6229. _taskbar = {
  6230. "id": str + _formdiv.id,
  6231. "style": {
  6232. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6233. },
  6234. "name": "电子白板",
  6235. "forms": _formdiv,
  6236. "click": function () {
  6237. U.MD.D.I.openApplication(str, obj, info);
  6238. }
  6239. }
  6240. break;
  6241. case "mind":
  6242. aTool = 3;
  6243. _iframe = $$("iframe", {
  6244. "frameborder": "no",
  6245. "border": "0",
  6246. "scrolling ": "no",
  6247. "style": {
  6248. "cssText": "border:0;width:100%;height:100%"
  6249. },
  6250. "src": "/kityminder-editor/dist/index.html"
  6251. });
  6252. _box.appendChild(_iframe);
  6253. _box.appendChild(_jie);
  6254. _formdiv = new U.UF.UI.form(
  6255. "思维导图",
  6256. _box, { //"/jsmind/example/demo.html"
  6257. "id": "minds_Yu" + cid + stage + task + tool,
  6258. "style": {
  6259. "width": "90%",
  6260. "height": "90%",
  6261. "overflow": 'hidden'
  6262. },
  6263. "onresize": function () { }
  6264. }, {
  6265. closecallback: function () { }
  6266. }, {
  6267. "style": {
  6268. "height": "36px"
  6269. }
  6270. }).form; //创建窗体
  6271. _taskbar = {
  6272. "id": str + _formdiv.id,
  6273. "style": {
  6274. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6275. },
  6276. "name": "思维导图",
  6277. "forms": _formdiv,
  6278. "click": function () {
  6279. U.MD.D.I.openApplication(str, obj, info);
  6280. }
  6281. }
  6282. break;
  6283. case "doc":
  6284. aTool = 6;
  6285. _iframe = $$("iframe", {
  6286. "frameborder": "no",
  6287. "border": "0",
  6288. "scrolling ": "no",
  6289. "style": {
  6290. "cssText": "border:0;width:100%;height:100%"
  6291. },
  6292. "src": "/Office/Word/WordEditArea.htm"
  6293. })
  6294. _box.appendChild(_iframe);
  6295. _box.appendChild(_jie);
  6296. _formdiv = new U.UF.UI.form(
  6297. "协同文档",
  6298. _box, {
  6299. "id": "docs_Yu" + cid + stage + task + tool,
  6300. "style": {
  6301. "width": "90%",
  6302. "height": "90%",
  6303. "overflow": 'hidden'
  6304. },
  6305. "onresize": function () { }
  6306. }, {
  6307. closecallback: function () { }
  6308. }, {
  6309. "style": {
  6310. "height": "36px"
  6311. }
  6312. }).form; //创建窗体
  6313. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6314. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6315. })
  6316. _taskbar = {
  6317. "id": str + _formdiv.id,
  6318. "style": {
  6319. "backgroundImage": "url(/img/icon/doc.png)"
  6320. },
  6321. "name": "协同文档",
  6322. "forms": _formdiv,
  6323. "click": function () {
  6324. U.MD.D.I.openApplication(str, obj, info);
  6325. }
  6326. }
  6327. break;
  6328. case "CocoPi":
  6329. aTool = 57;
  6330. _iframe = $$("iframe", {
  6331. "allowpaymentrequest":"allowpaymentrequest",
  6332. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6333. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6334. "frameborder": "no",
  6335. "border": "0",
  6336. "scrolling ": "no",
  6337. "style": {
  6338. "cssText": "border:0;width:100%;height:100%"
  6339. },
  6340. "src": "https://pi.cocorobo.cn/"
  6341. })
  6342. _box.appendChild(_iframe);
  6343. _box.appendChild(_jie);
  6344. _formdiv = new U.UF.UI.form(
  6345. "CocoPi",
  6346. _box, {
  6347. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6348. "style": {
  6349. "width": "90%",
  6350. "height": "90%",
  6351. "overflow": 'hidden'
  6352. },
  6353. "onresize": function () { }
  6354. }, {
  6355. closecallback: function () { }
  6356. }, {
  6357. "style": {
  6358. "height": "36px"
  6359. }
  6360. }).form; //创建窗体
  6361. _taskbar = {
  6362. "id": str + _formdiv.id,
  6363. "style": {
  6364. "backgroundImage": "url(/img/icon/cocopi.png)"
  6365. },
  6366. "name": "CocoPi",
  6367. "forms": _formdiv,
  6368. "click": function () {
  6369. U.MD.D.I.openApplication(str, obj, info);
  6370. }
  6371. }
  6372. break;
  6373. }
  6374. if (_iframe) {
  6375. if (str == 'doc') {
  6376. _iframe = _formdiv.querySelector('iframe')
  6377. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6378. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6379. })
  6380. if (onloadListener) {
  6381. _iframe.contentDocument.location.reload()
  6382. } else {
  6383. _iframe.contentDocument.location.reload()
  6384. }
  6385. } else if (str == 'mind') {
  6386. _iframe = _formdiv.querySelector('iframe')
  6387. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6388. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6389. })
  6390. if (onloadListener) {
  6391. _iframe.contentDocument.location.reload()
  6392. } else {
  6393. _iframe.contentDocument.location.reload()
  6394. }
  6395. } else if (str == 'whiteboard') {
  6396. _iframe = _formdiv.querySelector('iframe')
  6397. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6398. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6399. })
  6400. if (onloadListener) {
  6401. _iframe.contentDocument.location.reload()
  6402. } else {
  6403. _iframe.contentDocument.location.reload()
  6404. }
  6405. } else if (str == 'CocoPi') {
  6406. _iframe = _formdiv.querySelector('iframe')
  6407. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6408. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6409. })
  6410. if (onloadListener) {
  6411. _iframe.contentDocument.location.reload()
  6412. } else {
  6413. _iframe.contentDocument.location.reload()
  6414. }
  6415. } else {
  6416. _iframe.onload = () => {
  6417. };
  6418. }
  6419. _jie.onclick = async () => {
  6420. let text = ''
  6421. let type = '2'
  6422. if (aTool == 1) {
  6423. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6424. type = '3'
  6425. } else if (aTool == 6) {
  6426. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6427. type = '1'
  6428. } else if (aTool == 3) {
  6429. text = await U.MD.D.I.getEditorContent(_iframe);
  6430. type = '2'
  6431. } else if (aTool == 57) {
  6432. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6433. type = '4'
  6434. }
  6435. _loading.style.display = 'flex'
  6436. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6437. }
  6438. }
  6439. //U.MD.D.I.openClick(str);
  6440. //如果有任务栏信息
  6441. // if (_taskbar) {
  6442. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6443. // }
  6444. }
  6445. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6446. var xmlhttp;
  6447. var Mac, Sn, DeviceId
  6448. if (window.XMLHttpRequest) {
  6449. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6450. xmlhttp = new XMLHttpRequest();
  6451. }
  6452. else {
  6453. // IE6, IE5 浏览器执行代码
  6454. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6455. }
  6456. xmlhttp.onreadystatechange = function () {
  6457. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6458. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6459. // resolve(res.value[0][0].text);
  6460. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6461. }
  6462. }
  6463. }
  6464. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6465. xmlhttp.send();
  6466. }
  6467. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6468. var xmlhttp;
  6469. var Mac, Sn, DeviceId
  6470. if (window.XMLHttpRequest) {
  6471. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6472. xmlhttp = new XMLHttpRequest();
  6473. }
  6474. else {
  6475. // IE6, IE5 浏览器执行代码
  6476. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6477. }
  6478. xmlhttp.onreadystatechange = function () {
  6479. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6480. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6481. // resolve(res.value[0][0].text);
  6482. if (type == '2') {
  6483. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6484. } else if (type == '3') {
  6485. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6486. } else if (type == '4') {
  6487. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  6488. }
  6489. } else {
  6490. if (type == '2') {
  6491. iframe.contentWindow.editor.minder.importData('json', '')
  6492. } else if (type == '3') {
  6493. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6494. } else if (type == '4') {
  6495. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6496. }
  6497. }
  6498. }
  6499. }
  6500. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6501. xmlhttp.send();
  6502. }
  6503. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6504. var xmlhttp;
  6505. var Mac, Sn, DeviceId
  6506. if (window.XMLHttpRequest) {
  6507. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6508. xmlhttp = new XMLHttpRequest();
  6509. }
  6510. else {
  6511. // IE6, IE5 浏览器执行代码
  6512. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6513. }
  6514. xmlhttp.onreadystatechange = function () {
  6515. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6516. if (xmlhttp.response) {
  6517. // resolve(res.value[0][0].text);
  6518. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6519. // $(fileInput).val('');
  6520. // });
  6521. span.innerHTML = '上传成功'
  6522. setTimeout(() => {
  6523. loading.style.display = 'none'
  6524. }, 1000);
  6525. }
  6526. }
  6527. }
  6528. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6529. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6530. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6531. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6532. // 设置请求头,表示请求体的编码格式
  6533. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  6534. // 设置请求体,使用url-encoded格式的数据
  6535. }
  6536. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  6537. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6538. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6539. _userinfo = US.userInfo, //登录用户信息
  6540. _userid = US.userInfo.userid //登录用户id
  6541. let _iframe;
  6542. let _cid = cid,
  6543. _stage = stage,
  6544. _task = task,
  6545. _tool = tool;
  6546. var _jie = $$("div", {
  6547. "style": {
  6548. "position": "absolute",
  6549. "bottom": "50px",
  6550. "right": "50px",
  6551. "zIndex": "9999",
  6552. "backgroundColor": "#2268bc",
  6553. "color": "#fff",
  6554. "padding": "12px 20px",
  6555. "cursor": "pointer",
  6556. "borderRadius": "4px",
  6557. },
  6558. "innerHTML": "提交作业"
  6559. })
  6560. let aTool = ''
  6561. let _loading = document.createElement('div')
  6562. _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;"
  6563. // _loading.id = "";
  6564. let _lchild = document.createElement('div')
  6565. let _limg = document.createElement('img')
  6566. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6567. _limg.style = "width: 26px;margin-right: 10px;"
  6568. _lchild.appendChild(_limg)
  6569. let _lspan = document.createElement('span')
  6570. _lspan.innerHTML = "上传中..."
  6571. _lchild.appendChild(_lspan)
  6572. _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%);"
  6573. _loading.appendChild(_lchild)
  6574. var _box = $$('div', {
  6575. "style": {
  6576. "position": "relative",
  6577. "width": "100%",
  6578. "height": "100%",
  6579. },
  6580. })
  6581. _box.appendChild(_loading)
  6582. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool+_userid
  6583. switch (str) {
  6584. case "CocoPi":
  6585. aTool = 57;
  6586. _iframe = $$("iframe", {
  6587. "allowpaymentrequest":"allowpaymentrequest",
  6588. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6589. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6590. "frameborder": "no",
  6591. "border": "0",
  6592. "scrolling ": "no",
  6593. "style": {
  6594. "cssText": "border:0;width:100%;height:100%"
  6595. },
  6596. "src": "https://pi.cocorobo.cn/"
  6597. })
  6598. _box.appendChild(_iframe);
  6599. _box.appendChild(_jie);
  6600. _formdiv = new U.UF.UI.form(
  6601. "CocoPi",
  6602. _box, {
  6603. "id": "CocoPi_Upload" + cid + stage + task + tool,
  6604. "style": {
  6605. "width": "90%",
  6606. "height": "90%",
  6607. "overflow": 'hidden'
  6608. },
  6609. "onresize": function () { }
  6610. }, {
  6611. closecallback: function () { }
  6612. }, {
  6613. "style": {
  6614. "height": "36px"
  6615. }
  6616. }).form; //创建窗体
  6617. _taskbar = {
  6618. "id": str + _formdiv.id,
  6619. "style": {
  6620. "backgroundImage": "url(/img/icon/cocopi.png)"
  6621. },
  6622. "name": "CocoPi",
  6623. "forms": _formdiv,
  6624. "click": function () {
  6625. U.MD.D.I.openApplication(str, obj, info);
  6626. }
  6627. }
  6628. break;
  6629. }
  6630. if (_iframe) {
  6631. if (str == 'CocoPi') {
  6632. _iframe = _formdiv.querySelector('iframe')
  6633. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6634. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6635. })
  6636. if (onloadListener) {
  6637. _iframe.contentDocument.location.reload()
  6638. } else {
  6639. _iframe.contentDocument.location.reload()
  6640. }
  6641. }
  6642. _jie.onclick = async () => {
  6643. let text = ''
  6644. if (aTool == 57) {
  6645. text = _iframe.contentWindow.getLoadXmlStr()
  6646. }
  6647. _loading.style.display = 'flex'
  6648. console.log(_loading);
  6649. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6650. _loading.style.display = 'none'
  6651. let _div = document.createElement('div')
  6652. _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;"
  6653. let _inner = document.createElement('div')
  6654. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6655. _inner.innerHTML = "上传成功"
  6656. _div.appendChild(_inner)
  6657. _iframe.contentWindow.window.document.body.appendChild(_div)
  6658. _div.onclick = () => {
  6659. _iframe.contentWindow.window.document.body.removeChild(_div)
  6660. }
  6661. setTimeout(() => {
  6662. _iframe.contentWindow.window.document.body.removeChild(_div)
  6663. }, 1000);
  6664. }, [], { "type": "POST", "withCredentials": true });
  6665. }
  6666. }
  6667. }
  6668. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  6669. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6670. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6671. _userid = student.userid, //登录用户id
  6672. _username = student.student //用户名字
  6673. let _iframe;
  6674. let _cid = cid,
  6675. _stage = stage,
  6676. _task = task,
  6677. _tool = tool;
  6678. var _jie = $$("div", {
  6679. "style": {
  6680. "position": "absolute",
  6681. "bottom": "50px",
  6682. "right": "50px",
  6683. "zIndex": "9999",
  6684. "backgroundColor": "#2268bc",
  6685. "color": "#fff",
  6686. "padding": "12px 20px",
  6687. "cursor": "pointer",
  6688. "borderRadius": "4px",
  6689. },
  6690. "innerHTML": "提交作业"
  6691. })
  6692. let aTool = ''
  6693. let _loading = document.createElement('div')
  6694. _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;"
  6695. // _loading.id = "";
  6696. let _lchild = document.createElement('div')
  6697. let _limg = document.createElement('img')
  6698. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6699. _limg.style = "width: 26px;margin-right: 10px;"
  6700. _lchild.appendChild(_limg)
  6701. let _lspan = document.createElement('span')
  6702. _lspan.innerHTML = "上传中..."
  6703. _lchild.appendChild(_lspan)
  6704. _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%);"
  6705. _loading.appendChild(_lchild)
  6706. var _box = $$('div', {
  6707. "style": {
  6708. "position": "relative",
  6709. "width": "100%",
  6710. "height": "100%",
  6711. },
  6712. })
  6713. _box.appendChild(_loading)
  6714. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool+_userid
  6715. switch (str) {
  6716. case "CocoPi":
  6717. aTool = 57;
  6718. _iframe = $$("iframe", {
  6719. "allowpaymentrequest":"allowpaymentrequest",
  6720. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6721. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6722. "frameborder": "no",
  6723. "border": "0",
  6724. "scrolling ": "no",
  6725. "style": {
  6726. "cssText": "border:0;width:100%;height:100%"
  6727. },
  6728. "src": "https://pi.cocorobo.cn/"
  6729. })
  6730. _box.appendChild(_iframe);
  6731. _box.appendChild(_jie);
  6732. _formdiv = new U.UF.UI.form(
  6733. "CocoPi-" + _username,
  6734. _box, {
  6735. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  6736. "style": {
  6737. "width": "90%",
  6738. "height": "90%",
  6739. "overflow": 'hidden'
  6740. },
  6741. "onresize": function () { }
  6742. }, {
  6743. closecallback: function () { }
  6744. }, {
  6745. "style": {
  6746. "height": "36px"
  6747. }
  6748. }).form; //创建窗体
  6749. _taskbar = {
  6750. "id": str + _formdiv.id,
  6751. "style": {
  6752. "backgroundImage": "url(/img/icon/cocopi.png)"
  6753. },
  6754. "name": "CocoPi",
  6755. "forms": _formdiv,
  6756. "click": function () {
  6757. U.MD.D.I.openApplication(str, obj, info);
  6758. }
  6759. }
  6760. break;
  6761. }
  6762. if (_iframe) {
  6763. if (str == 'CocoPi') {
  6764. _iframe = _formdiv.querySelector('iframe')
  6765. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6766. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6767. })
  6768. if (onloadListener) {
  6769. _iframe.contentDocument.location.reload()
  6770. } else {
  6771. _iframe.contentDocument.location.reload()
  6772. }
  6773. }
  6774. _jie.onclick = async () => {
  6775. let text = ''
  6776. if (aTool == 57) {
  6777. text = _iframe.contentWindow.getLoadXmlStr()
  6778. }
  6779. _loading.style.display = 'flex'
  6780. console.log(_loading);
  6781. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6782. _loading.style.display = 'none'
  6783. let _div = document.createElement('div')
  6784. _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;"
  6785. let _inner = document.createElement('div')
  6786. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6787. _inner.innerHTML = "上传成功"
  6788. _div.appendChild(_inner)
  6789. _iframe.contentWindow.window.document.body.appendChild(_div)
  6790. _div.onclick = () => {
  6791. _iframe.contentWindow.window.document.body.removeChild(_div)
  6792. }
  6793. setTimeout(() => {
  6794. _iframe.contentWindow.window.document.body.removeChild(_div)
  6795. }, 1000);
  6796. }, [], { "type": "POST", "withCredentials": true });
  6797. }
  6798. }
  6799. }
  6800. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  6801. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  6802. if (res.value[0].length > 0) {
  6803. if (atool == 57) {
  6804. iframe.contentWindow.loadingXml(res.value[0][0].content)
  6805. }
  6806. } else {
  6807. if (atool == 57) {
  6808. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  6809. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6810. }
  6811. }
  6812. }, [], { "type": "POST", "withCredentials": true });
  6813. }