DeskTop.js 380 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888
  1. /*
  2. 此处为桌面系统启动应用区域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面应用处理
  5. //判断图片是否在拖拽,如果是拖拽图标的过程是不会打开图片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教师桌面图标的全局变量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  17. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  18. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  19. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  20. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  21. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  22. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  23. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  24. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  25. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  26. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  27. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  28. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  29. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  30. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  31. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  32. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  33. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  34. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  35. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  36. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  37. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  38. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  39. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  40. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  41. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  42. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  43. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  44. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  45. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  46. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  47. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  48. ];
  49. //极简模式
  50. U.MD.D.I.easyDeskIcon = [
  51. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  52. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  55. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  56. ];
  57. //教师桌面图标的全局变量
  58. U.MD.D.I.teacherDeskIcon2 = [
  59. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  60. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  61. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  62. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  63. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  64. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  65. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  66. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  67. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  68. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  69. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  70. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  71. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  72. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  73. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  74. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  75. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  76. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  77. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  78. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  79. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  80. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  81. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  82. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  83. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  84. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  85. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  86. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  87. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  88. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  89. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  90. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  91. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  92. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  93. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  94. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  95. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  96. ];
  97. U.MD.D.I.studentDeskIcon = [
  98. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  99. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  100. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  101. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  102. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  103. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  104. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  105. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  106. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  107. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  108. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  109. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  110. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  111. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  112. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  113. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  114. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  115. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  116. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  117. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  118. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  119. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  120. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  121. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  122. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  123. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  124. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  125. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  126. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  127. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  128. ];
  129. U.MD.D.I.studentDeskIcon2 = [
  130. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  131. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  132. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  133. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  134. ]
  135. U.MD.D.I.studentDeskIcon3 = [
  136. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  137. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  138. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  139. ]
  140. U.MD.D.I.schoolDeskIcon = [
  141. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  142. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  144. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  145. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  146. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  147. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  148. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  149. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  150. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  151. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  152. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  153. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  154. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  155. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  156. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  157. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  158. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  159. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  160. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  161. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  162. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  163. ];
  164. U.MD.D.I.orgDeskIcon = [
  165. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  166. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  167. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  168. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  169. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  170. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  171. ];
  172. U.MD.D.I.orgStemDeskIcon = [
  173. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  174. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  175. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  176. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  177. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  178. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  179. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  180. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  181. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  182. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  183. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  184. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  185. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  186. ];
  187. U.MD.D.I.szulsDeskIcon = [
  188. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  189. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  190. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  191. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  192. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  193. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  194. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  195. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  196. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  197. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  198. ];
  199. U.MD.D.I.hanDeskIcon = [
  200. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  201. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  202. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  203. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  204. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  205. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  206. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  207. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  208. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  209. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  210. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  211. ];
  212. U.MD.D.I.GMteacherDeskIcon = [
  213. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  214. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  215. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  216. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  217. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  218. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  219. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  220. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  221. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  222. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  223. ];
  224. U.MD.D.I.GMstudentDeskIcon = [
  225. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  226. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  227. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  228. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  229. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  230. ];
  231. //北师大
  232. U.MD.D.I.BSDNSteacherDeskIcon = [
  233. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  234. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  235. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  236. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  237. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  238. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  239. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  240. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  241. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  242. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  243. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  244. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  245. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  246. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  247. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  248. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  249. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  250. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  251. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  252. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  253. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  254. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  255. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  256. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  257. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  258. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  259. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  260. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  261. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  262. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  263. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  264. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  265. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  266. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  267. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  268. ];
  269. //松山湖
  270. U.MD.D.I.SONGteacherDeskIcon = [
  271. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  272. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  273. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  274. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  275. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  276. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  277. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  278. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  279. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  280. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  281. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  282. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  283. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  284. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  285. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  286. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  287. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  288. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  289. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  290. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  291. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  292. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  293. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  294. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  295. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  296. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  297. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  298. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  299. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  300. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  301. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  302. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  303. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  304. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  305. ];
  306. U.MD.D.I.tcStudentDeskIcon = [
  307. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  308. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  309. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  310. ];
  311. U.MD.D.I.tcTeacherDeskIcon = [
  312. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  313. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  314. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  315. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  316. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  317. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  318. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  319. ];
  320. U.MD.D.I.tcOrganizerDeskIcon = [
  321. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  322. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  323. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  324. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  325. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  326. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  327. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  328. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  329. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  330. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  331. ];
  332. U.MD.D.I.szscStudentDeskIcon = [
  333. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  334. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  335. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. ];
  338. U.MD.D.I.szscTeacherDeskIcon = [
  339. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  340. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  341. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  342. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  343. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  344. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  345. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  346. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  347. ];
  348. U.MD.D.I.szscOrganizerDeskIcon = [
  349. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  350. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  351. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  352. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  353. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  354. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  355. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  356. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  357. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  358. ];
  359. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  360. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  361. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  362. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  363. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  364. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  365. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  366. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  367. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  368. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  369. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  370. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  371. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  372. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  373. ];
  374. U.MD.D.I.wankeAdminDeskIcon = [
  375. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  376. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  377. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  378. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  379. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  380. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  381. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  382. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  383. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  384. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  385. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  386. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  387. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  388. ];
  389. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  390. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  391. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  392. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  393. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  394. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  395. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  396. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  397. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  398. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  399. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  400. ];
  401. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  402. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  403. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  404. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  405. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  406. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  407. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  408. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  409. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  410. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  411. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  412. ];
  413. //明德教师桌面图标的全局变量
  414. U.MD.D.I.MingdeTeacherDeskIcon = [
  415. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  416. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  417. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  418. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  419. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  420. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  421. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  422. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  423. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  424. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  425. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  426. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  427. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  428. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  429. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  430. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  431. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  432. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  433. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  434. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  435. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  436. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  437. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  438. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  439. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  440. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  441. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  442. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  443. ];
  444. //97c4ee8b-d010-4042-986d-e9d3c217264f
  445. //教师桌面图标的全局变量
  446. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  447. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  448. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  449. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  450. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  451. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  452. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  453. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  454. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  455. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  456. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  457. ];
  458. //福田
  459. U.MD.D.I.futianTeacherDeskIcon = [
  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": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  463. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  464. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  465. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  466. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  467. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  468. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  469. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  470. ];
  471. //福田
  472. U.MD.D.I.futianAdminDeskIcon = [
  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": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  481. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  482. ];
  483. //lotech
  484. U.MD.D.I.lotechTeacherDeskIcon = [
  485. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  486. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  487. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  488. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  489. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  490. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  491. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  492. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  493. ];
  494. //龙华中心小学教师桌面图标的全局变量
  495. U.MD.D.I.longhuateacherDeskIcon = [
  496. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  497. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  498. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  499. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.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": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  503. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  504. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  505. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  506. ];
  507. //教科院实小教师桌面图标的全局变量
  508. U.MD.D.I.siesteacherDeskIcon = [
  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": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  516. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  517. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  518. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  519. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  520. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  521. ];
  522. //福田
  523. U.MD.D.I.gdjgTeacherDeskIcon = [
  524. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  525. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  526. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  527. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  528. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  529. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  530. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  531. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  532. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  533. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  534. ];
  535. //gdjg
  536. U.MD.D.I.gdjgAdminDeskIcon = [
  537. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  538. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  539. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  540. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  541. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  542. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  543. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  544. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  545. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  546. ];
  547. //hk
  548. U.MD.D.I.hkteacherDeskIcon = [
  549. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  550. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  551. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  552. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  553. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  554. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  555. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  556. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  557. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  558. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  559. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  560. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  561. ];
  562. //云海
  563. U.MD.D.I.yunhaiTeacherDeskIcon = [
  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": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  571. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  572. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  573. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  574. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  575. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  576. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  577. ];
  578. //#region 桌面初始化a
  579. /**
  580. * 初始化桌面的起始函数
  581. *
  582. */
  583. U.MD.D.I.init = function () {
  584. if ($("#U_MD_D_K")[0]) {
  585. //初始化桌面图标
  586. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  587. // var clickUrl = ':12588/requestIp.php';
  588. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  589. // U.MD.D.I.Ip = data;
  590. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  591. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  592. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  593. // })
  594. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  595. // })
  596. }
  597. }
  598. /**
  599. * 模式切换
  600. *
  601. */
  602. U.MD.D.I.ModeCheck = function (type) {
  603. if (US.Config.type == type) {
  604. return
  605. }
  606. US.Config.type = type
  607. $('.U_PBL_Check .active')[0].className = ''
  608. if (type == 1) {
  609. $('.U_PBL_Check div')[0].className = 'active'
  610. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  611. } else {
  612. $('.U_PBL_Check div')[1].className = 'active'
  613. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  614. }
  615. //初始化桌面图标
  616. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  617. if(type == 2){
  618. U.MD.D.I.openApplication("project")
  619. }
  620. }
  621. /**
  622. * 隐藏任务栏
  623. *
  624. * @param {element} 桌面元素
  625. */
  626. U.MD.D.I.hiddenTaskbar = function (el) {
  627. //任务栏位置变小
  628. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  629. //桌面的位置变大
  630. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  631. }
  632. /**
  633. * 隐藏任务栏
  634. *
  635. * @param {element} 桌面元素
  636. */
  637. U.MD.D.I.hiddenTaskbarout = function (el) {
  638. //任务栏位置变小
  639. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  640. //任务栏位置变化
  641. U.selectEl(el).css({ "bottom": "-60px" });
  642. //桌面的位置变大
  643. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  644. }
  645. }
  646. /**
  647. * 初始化打印桌面图标
  648. *
  649. * @param {element} 桌面元素
  650. */
  651. U.MD.D.I.initDesktopIcons = function (el, type) {
  652. var i, //用于循环
  653. _content, //桌面图标元素
  654. _iconcontent, //桌面图标元素
  655. _frag = $$("frag"), //定义一个碎片元素
  656. _type = US.userInfo.type,
  657. _org = US.userInfo.org,
  658. _oid = US.userInfo.organizeid,
  659. _role = US.userInfo.role,
  660. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  661. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  662. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  663. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  664. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  665. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  666. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  667. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  668. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  669. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  670. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  671. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  672. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  673. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  674. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  675. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  676. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  677. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  678. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  679. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  680. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  681. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  682. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  683. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  684. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  685. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//福田
  686. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//福田
  687. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  688. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
  689. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龙华中心
  690. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  691. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon,//hk
  692. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon,//云海
  693. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  694. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  695. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  696. 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'];
  697. 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'];
  698. //清楚桌面图标
  699. el.innerHTML = "";
  700. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  701. _teacherDesktopIconInfo.push(
  702. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  703. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  704. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  705. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  706. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  707. )
  708. _easyDesktopIconInfo.push(
  709. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  710. )
  711. }
  712. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  713. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  714. if(el.Name == '项目管理'){
  715. el.Name = 'PBL项目'
  716. }
  717. return el
  718. })
  719. }
  720. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  721. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  722. return el.Name != '魔盒识字' && el.Name != '24点'
  723. })
  724. }
  725. 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) {
  726. _studentDesktopIconInfo.push(
  727. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  728. )
  729. }
  730. //循环创建桌面图标
  731. if (type == 1) {
  732. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  733. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  734. _content = $$("div", {
  735. className: "U_MD_D_KO",
  736. "onmousedown": U.UF.C.closure(function (obj) {
  737. //防止拖动图标即打开了桌面应用
  738. U.MD.D.click(this, obj);
  739. }, [_studentDesktopIconInfo[i]]),
  740. "onclick": U.UF.C.closure(function (obj) {
  741. //防止拖动图标即打开了桌面应用
  742. U.MD.D.click(this, obj);
  743. }, [_studentDesktopIconInfo[i]])
  744. }, _frag); //
  745. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  746. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  747. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  748. }
  749. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  750. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  751. _content = $$("div", {
  752. className: "U_MD_D_KO",
  753. "onmousedown": U.UF.C.closure(function (obj) {
  754. //防止拖动图标即打开了桌面应用
  755. U.MD.D.click(this, obj);
  756. }, [_studentDesktopIconInfo[i]]),
  757. "onclick": U.UF.C.closure(function (obj) {
  758. //防止拖动图标即打开了桌面应用
  759. U.MD.D.click(this, obj);
  760. }, [_studentDesktopIconInfo[i]])
  761. }, _frag); //
  762. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  763. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  764. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  765. }
  766. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  767. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  768. _content = $$("div", {
  769. className: "U_MD_D_KO",
  770. "onmousedown": U.UF.C.closure(function (obj) {
  771. //防止拖动图标即打开了桌面应用
  772. U.MD.D.click(this, obj);
  773. }, [_tcStudentDeskIconInfo[i]]),
  774. "onclick": U.UF.C.closure(function (obj) {
  775. //防止拖动图标即打开了桌面应用
  776. U.MD.D.click(this, obj);
  777. }, [_tcStudentDeskIconInfo[i]])
  778. }, _frag); //
  779. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  780. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  781. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  782. }
  783. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  784. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  785. _content = $$("div", {
  786. className: "U_MD_D_KO",
  787. "onmousedown": U.UF.C.closure(function (obj) {
  788. //防止拖动图标即打开了桌面应用
  789. U.MD.D.click(this, obj);
  790. }, [_szscStudentDeskIconInfo[i]]),
  791. "onclick": U.UF.C.closure(function (obj) {
  792. //防止拖动图标即打开了桌面应用
  793. U.MD.D.click(this, obj);
  794. }, [_szscStudentDeskIconInfo[i]])
  795. }, _frag); //
  796. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  797. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  798. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  799. }
  800. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  801. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  802. _content = $$("div", {
  803. className: "U_MD_D_KO",
  804. "onmousedown": U.UF.C.closure(function (obj) {
  805. //防止拖动图标即打开了桌面应用
  806. U.MD.D.click(this, obj);
  807. }, [_studentDesktopIconInfo3[i]]),
  808. "onclick": U.UF.C.closure(function (obj) {
  809. //防止拖动图标即打开了桌面应用
  810. U.MD.D.click(this, obj);
  811. }, [_studentDesktopIconInfo3[i]])
  812. }, _frag); //
  813. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  814. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  815. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  816. }
  817. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  818. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  819. _content = $$("div", {
  820. className: "U_MD_D_KO",
  821. "onmousedown": U.UF.C.closure(function (obj) {
  822. //防止拖动图标即打开了桌面应用
  823. U.MD.D.click(this, obj);
  824. }, [_studentDesktopIconInfo2[i]]),
  825. "onclick": U.UF.C.closure(function (obj) {
  826. //防止拖动图标即打开了桌面应用
  827. U.MD.D.click(this, obj);
  828. }, [_studentDesktopIconInfo2[i]])
  829. }, _frag); //
  830. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  831. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  832. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  833. }
  834. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  835. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  836. _content = $$("div", {
  837. className: "U_MD_D_KO",
  838. "onmousedown": U.UF.C.closure(function (obj) {
  839. //防止拖动图标即打开了桌面应用
  840. U.MD.D.click(this, obj);
  841. }, [_wanketeacherDesktopIconInfo[i]]),
  842. "onclick": U.UF.C.closure(function (obj) {
  843. //防止拖动图标即打开了桌面应用
  844. U.MD.D.click(this, obj);
  845. }, [_wanketeacherDesktopIconInfo[i]])
  846. }, _frag); //
  847. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  848. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  849. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  850. }
  851. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  852. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  853. _content = $$("div", {
  854. className: "U_MD_D_KO",
  855. "onmousedown": U.UF.C.closure(function (obj) {
  856. //防止拖动图标即打开了桌面应用
  857. U.MD.D.click(this, obj);
  858. }, [_wankeAdminDesktopIconInfo[i]]),
  859. "onclick": U.UF.C.closure(function (obj) {
  860. //防止拖动图标即打开了桌面应用
  861. U.MD.D.click(this, obj);
  862. }, [_wankeAdminDesktopIconInfo[i]])
  863. }, _frag); //
  864. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  865. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  866. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  867. }
  868. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  869. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  870. _content = $$("div", {
  871. className: "U_MD_D_KO",
  872. "onmousedown": U.UF.C.closure(function (obj) {
  873. //防止拖动图标即打开了桌面应用
  874. U.MD.D.click(this, obj);
  875. }, [_teacherDesktopIconInfo2[i]]),
  876. "onclick": U.UF.C.closure(function (obj) {
  877. //防止拖动图标即打开了桌面应用
  878. U.MD.D.click(this, obj);
  879. }, [_teacherDesktopIconInfo2[i]])
  880. }, _frag); //
  881. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  882. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  883. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  884. }
  885. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  886. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  887. _content = $$("div", {
  888. className: "U_MD_D_KO",
  889. "onmousedown": U.UF.C.closure(function (obj) {
  890. //防止拖动图标即打开了桌面应用
  891. U.MD.D.click(this, obj);
  892. }, [_lotechTeacherDeskIconInfo[i]]),
  893. "onclick": U.UF.C.closure(function (obj) {
  894. //防止拖动图标即打开了桌面应用
  895. U.MD.D.click(this, obj);
  896. }, [_lotechTeacherDeskIconInfo[i]])
  897. }, _frag); //
  898. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  899. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  900. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  901. }
  902. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  903. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  904. _content = $$("div", {
  905. className: "U_MD_D_KO",
  906. "onmousedown": U.UF.C.closure(function (obj) {
  907. //防止拖动图标即打开了桌面应用
  908. U.MD.D.click(this, obj);
  909. }, [_siesTeacherDeskIconInfo[i]]),
  910. "onclick": U.UF.C.closure(function (obj) {
  911. //防止拖动图标即打开了桌面应用
  912. U.MD.D.click(this, obj);
  913. }, [_siesTeacherDeskIconInfo[i]])
  914. }, _frag); //
  915. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  916. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  917. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  918. }
  919. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  920. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  921. _content = $$("div", {
  922. className: "U_MD_D_KO",
  923. "onmousedown": U.UF.C.closure(function (obj) {
  924. //防止拖动图标即打开了桌面应用
  925. U.MD.D.click(this, obj);
  926. }, [_longhuaTeacherDeskIconInfo[i]]),
  927. "onclick": U.UF.C.closure(function (obj) {
  928. //防止拖动图标即打开了桌面应用
  929. U.MD.D.click(this, obj);
  930. }, [_longhuaTeacherDeskIconInfo[i]])
  931. }, _frag); //
  932. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  933. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  934. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  935. }
  936. }else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  937. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  938. _content = $$("div", {
  939. className: "U_MD_D_KO",
  940. "onmousedown": U.UF.C.closure(function (obj) {
  941. //防止拖动图标即打开了桌面应用
  942. U.MD.D.click(this, obj);
  943. }, [_yunhaiTeacherDeskIconInfo[i]]),
  944. "onclick": U.UF.C.closure(function (obj) {
  945. //防止拖动图标即打开了桌面应用
  946. U.MD.D.click(this, obj);
  947. }, [_yunhaiTeacherDeskIconInfo[i]])
  948. }, _frag); //
  949. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  950. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  951. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  952. }
  953. }else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  954. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  955. _content = $$("div", {
  956. className: "U_MD_D_KO",
  957. "onmousedown": U.UF.C.closure(function (obj) {
  958. //防止拖动图标即打开了桌面应用
  959. U.MD.D.click(this, obj);
  960. }, [_hkTeacherDeskIconInfo[i]]),
  961. "onclick": U.UF.C.closure(function (obj) {
  962. //防止拖动图标即打开了桌面应用
  963. U.MD.D.click(this, obj);
  964. }, [_hkTeacherDeskIconInfo[i]])
  965. }, _frag); //
  966. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  967. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  968. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  969. }
  970. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  971. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  972. _content = $$("div", {
  973. className: "U_MD_D_KO",
  974. "onmousedown": U.UF.C.closure(function (obj) {
  975. //防止拖动图标即打开了桌面应用
  976. U.MD.D.click(this, obj);
  977. }, [_gdjgAdminDeskIconInfo[i]]),
  978. "onclick": U.UF.C.closure(function (obj) {
  979. //防止拖动图标即打开了桌面应用
  980. U.MD.D.click(this, obj);
  981. }, [_gdjgAdminDeskIconInfo[i]])
  982. }, _frag); //
  983. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  984. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  985. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  986. }
  987. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  988. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  989. _content = $$("div", {
  990. className: "U_MD_D_KO",
  991. "onmousedown": U.UF.C.closure(function (obj) {
  992. //防止拖动图标即打开了桌面应用
  993. U.MD.D.click(this, obj);
  994. }, [_gdjgTeacherDeskIconInfo[i]]),
  995. "onclick": U.UF.C.closure(function (obj) {
  996. //防止拖动图标即打开了桌面应用
  997. U.MD.D.click(this, obj);
  998. }, [_gdjgTeacherDeskIconInfo[i]])
  999. }, _frag); //
  1000. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1001. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1002. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1003. }
  1004. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1005. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1006. _content = $$("div", {
  1007. className: "U_MD_D_KO",
  1008. "onmousedown": U.UF.C.closure(function (obj) {
  1009. //防止拖动图标即打开了桌面应用
  1010. U.MD.D.click(this, obj);
  1011. }, [_futianAdminDeskIconInfo[i]]),
  1012. "onclick": U.UF.C.closure(function (obj) {
  1013. //防止拖动图标即打开了桌面应用
  1014. U.MD.D.click(this, obj);
  1015. }, [_futianAdminDeskIconInfo[i]])
  1016. }, _frag); //
  1017. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1018. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1019. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1020. }
  1021. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1022. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1023. _content = $$("div", {
  1024. className: "U_MD_D_KO",
  1025. "onmousedown": U.UF.C.closure(function (obj) {
  1026. //防止拖动图标即打开了桌面应用
  1027. U.MD.D.click(this, obj);
  1028. }, [_futianTeacherDeskIconInfo[i]]),
  1029. "onclick": U.UF.C.closure(function (obj) {
  1030. //防止拖动图标即打开了桌面应用
  1031. U.MD.D.click(this, obj);
  1032. }, [_futianTeacherDeskIconInfo[i]])
  1033. }, _frag); //
  1034. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1035. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1036. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1037. }
  1038. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1039. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1040. _content = $$("div", {
  1041. className: "U_MD_D_KO",
  1042. "onmousedown": U.UF.C.closure(function (obj) {
  1043. //防止拖动图标即打开了桌面应用
  1044. U.MD.D.click(this, obj);
  1045. }, [_MingdeTeacherDeskIcon[i]]),
  1046. "onclick": U.UF.C.closure(function (obj) {
  1047. //防止拖动图标即打开了桌面应用
  1048. U.MD.D.click(this, obj);
  1049. }, [_MingdeTeacherDeskIcon[i]])
  1050. }, _frag); //
  1051. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1052. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1053. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1054. }
  1055. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1056. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1057. _content = $$("div", {
  1058. className: "U_MD_D_KO",
  1059. "onmousedown": U.UF.C.closure(function (obj) {
  1060. //防止拖动图标即打开了桌面应用
  1061. U.MD.D.click(this, obj);
  1062. }, [_lhsAdminDesktopIconInfo[i]]),
  1063. "onclick": U.UF.C.closure(function (obj) {
  1064. //防止拖动图标即打开了桌面应用
  1065. U.MD.D.click(this, obj);
  1066. }, [_lhsAdminDesktopIconInfo[i]])
  1067. }, _frag); //
  1068. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1069. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1070. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1071. }
  1072. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1073. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1074. _content = $$("div", {
  1075. className: "U_MD_D_KO",
  1076. "onmousedown": U.UF.C.closure(function (obj) {
  1077. //防止拖动图标即打开了桌面应用
  1078. U.MD.D.click(this, obj);
  1079. }, [_lhsteacherDesktopIconInfo[i]]),
  1080. "onclick": U.UF.C.closure(function (obj) {
  1081. //防止拖动图标即打开了桌面应用
  1082. U.MD.D.click(this, obj);
  1083. }, [_lhsteacherDesktopIconInfo[i]])
  1084. }, _frag); //
  1085. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1086. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1087. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1088. }
  1089. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1090. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1091. _content = $$("div", {
  1092. className: "U_MD_D_KO",
  1093. "onmousedown": U.UF.C.closure(function (obj) {
  1094. //防止拖动图标即打开了桌面应用
  1095. U.MD.D.click(this, obj);
  1096. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1097. "onclick": U.UF.C.closure(function (obj) {
  1098. //防止拖动图标即打开了桌面应用
  1099. U.MD.D.click(this, obj);
  1100. }, [_zhoujiateacherDesktopIconInfo[i]])
  1101. }, _frag); //
  1102. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1103. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1104. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1105. }
  1106. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1107. for (i = 0; i < _hanDeskIcon.length; i++) {
  1108. _content = $$("div", {
  1109. className: "U_MD_D_KO",
  1110. "onmousedown": U.UF.C.closure(function (obj) {
  1111. //防止拖动图标即打开了桌面应用
  1112. U.MD.D.click(this, obj);
  1113. }, [_hanDeskIcon[i]]),
  1114. "onclick": U.UF.C.closure(function (obj) {
  1115. //防止拖动图标即打开了桌面应用
  1116. U.MD.D.click(this, obj);
  1117. }, [_hanDeskIcon[i]])
  1118. }, _frag); //
  1119. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1120. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1121. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1122. }
  1123. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1124. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1125. _content = $$("div", {
  1126. className: "U_MD_D_KO",
  1127. "onmousedown": U.UF.C.closure(function (obj) {
  1128. //防止拖动图标即打开了桌面应用
  1129. U.MD.D.click(this, obj);
  1130. }, [_orgStemDeskIcon[i]]),
  1131. "onclick": U.UF.C.closure(function (obj) {
  1132. //防止拖动图标即打开了桌面应用
  1133. U.MD.D.click(this, obj);
  1134. }, [_orgStemDeskIcon[i]])
  1135. }, _frag); //
  1136. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1137. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1138. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1139. }
  1140. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1141. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1142. _content = $$("div", {
  1143. className: "U_MD_D_KO",
  1144. "onmousedown": U.UF.C.closure(function (obj) {
  1145. //防止拖动图标即打开了桌面应用
  1146. U.MD.D.click(this, obj);
  1147. }, [_szulsDeskIcon[i]]),
  1148. "onclick": U.UF.C.closure(function (obj) {
  1149. //防止拖动图标即打开了桌面应用
  1150. U.MD.D.click(this, obj);
  1151. }, [_szulsDeskIcon[i]])
  1152. }, _frag); //
  1153. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1154. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1155. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1156. }
  1157. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1158. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1159. _content = $$("div", {
  1160. className: "U_MD_D_KO",
  1161. "onmousedown": U.UF.C.closure(function (obj) {
  1162. //防止拖动图标即打开了桌面应用
  1163. U.MD.D.click(this, obj);
  1164. }, [_orgDesktopIconInfo[i]]),
  1165. "onclick": U.UF.C.closure(function (obj) {
  1166. //防止拖动图标即打开了桌面应用
  1167. U.MD.D.click(this, obj);
  1168. }, [_orgDesktopIconInfo[i]])
  1169. }, _frag); //
  1170. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1171. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1172. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1173. }
  1174. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1175. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1176. _content = $$("div", {
  1177. className: "U_MD_D_KO",
  1178. "onmousedown": U.UF.C.closure(function (obj) {
  1179. //防止拖动图标即打开了桌面应用
  1180. U.MD.D.click(this, obj);
  1181. }, [_schoolDesktopIconInfo[i]]),
  1182. "onclick": U.UF.C.closure(function (obj) {
  1183. //防止拖动图标即打开了桌面应用
  1184. U.MD.D.click(this, obj);
  1185. }, [_schoolDesktopIconInfo[i]])
  1186. }, _frag); //
  1187. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1188. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1189. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1190. }
  1191. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1192. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1193. _content = $$("div", {
  1194. className: "U_MD_D_KO",
  1195. "onmousedown": U.UF.C.closure(function (obj) {
  1196. //防止拖动图标即打开了桌面应用
  1197. U.MD.D.click(this, obj);
  1198. }, [_GMteacherDesktopIconInfo[i]]),
  1199. "onclick": U.UF.C.closure(function (obj) {
  1200. //防止拖动图标即打开了桌面应用
  1201. U.MD.D.click(this, obj);
  1202. }, [_GMteacherDesktopIconInfo[i]])
  1203. }, _frag); //
  1204. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1205. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1206. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1207. }
  1208. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1209. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1210. _content = $$("div", {
  1211. className: "U_MD_D_KO",
  1212. "onmousedown": U.UF.C.closure(function (obj) {
  1213. //防止拖动图标即打开了桌面应用
  1214. U.MD.D.click(this, obj);
  1215. }, [_SONGteacherDesktopIconInfo[i]]),
  1216. "onclick": U.UF.C.closure(function (obj) {
  1217. //防止拖动图标即打开了桌面应用
  1218. U.MD.D.click(this, obj);
  1219. }, [_SONGteacherDesktopIconInfo[i]])
  1220. }, _frag); //
  1221. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1222. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1223. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1224. }
  1225. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1226. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1227. _content = $$("div", {
  1228. className: "U_MD_D_KO",
  1229. "onmousedown": U.UF.C.closure(function (obj) {
  1230. //防止拖动图标即打开了桌面应用
  1231. U.MD.D.click(this, obj);
  1232. }, [_GMstudentDesktopIconInfo[i]]),
  1233. "onclick": U.UF.C.closure(function (obj) {
  1234. //防止拖动图标即打开了桌面应用
  1235. U.MD.D.click(this, obj);
  1236. }, [_GMstudentDesktopIconInfo[i]])
  1237. }, _frag); //
  1238. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1239. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1240. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1241. }
  1242. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1243. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1244. _content = $$("div", {
  1245. className: "U_MD_D_KO",
  1246. "onmousedown": U.UF.C.closure(function (obj) {
  1247. //防止拖动图标即打开了桌面应用
  1248. U.MD.D.click(this, obj);
  1249. }, [_tcTeacherDeskIconInfo[i]]),
  1250. "onclick": U.UF.C.closure(function (obj) {
  1251. //防止拖动图标即打开了桌面应用
  1252. U.MD.D.click(this, obj);
  1253. }, [_tcTeacherDeskIconInfo[i]])
  1254. }, _frag); //
  1255. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1256. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1257. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1258. }
  1259. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1260. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1261. _content = $$("div", {
  1262. className: "U_MD_D_KO",
  1263. "onmousedown": U.UF.C.closure(function (obj) {
  1264. //防止拖动图标即打开了桌面应用
  1265. U.MD.D.click(this, obj);
  1266. }, [_tcOrganizerDeskIconInfo[i]]),
  1267. "onclick": U.UF.C.closure(function (obj) {
  1268. //防止拖动图标即打开了桌面应用
  1269. U.MD.D.click(this, obj);
  1270. }, [_tcOrganizerDeskIconInfo[i]])
  1271. }, _frag); //
  1272. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1273. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1274. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1275. }
  1276. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1277. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1278. _content = $$("div", {
  1279. className: "U_MD_D_KO",
  1280. "onmousedown": U.UF.C.closure(function (obj) {
  1281. //防止拖动图标即打开了桌面应用
  1282. U.MD.D.click(this, obj);
  1283. }, [_szscTeacherDeskIconInfo[i]]),
  1284. "onclick": U.UF.C.closure(function (obj) {
  1285. //防止拖动图标即打开了桌面应用
  1286. U.MD.D.click(this, obj);
  1287. }, [_szscTeacherDeskIconInfo[i]])
  1288. }, _frag); //
  1289. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1290. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1291. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1292. }
  1293. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1294. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1295. _content = $$("div", {
  1296. className: "U_MD_D_KO",
  1297. "onmousedown": U.UF.C.closure(function (obj) {
  1298. //防止拖动图标即打开了桌面应用
  1299. U.MD.D.click(this, obj);
  1300. }, [_szscOrganizerDeskIconInfo[i]]),
  1301. "onclick": U.UF.C.closure(function (obj) {
  1302. //防止拖动图标即打开了桌面应用
  1303. U.MD.D.click(this, obj);
  1304. }, [_szscOrganizerDeskIconInfo[i]])
  1305. }, _frag); //
  1306. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1307. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1308. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1309. }
  1310. } else {
  1311. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1312. _content = $$("div", {
  1313. className: "U_MD_D_KO",
  1314. "onmousedown": U.UF.C.closure(function (obj) {
  1315. //防止拖动图标即打开了桌面应用
  1316. U.MD.D.click(this, obj);
  1317. }, [_teacherDesktopIconInfo[i]]),
  1318. "onclick": U.UF.C.closure(function (obj) {
  1319. //防止拖动图标即打开了桌面应用
  1320. U.MD.D.click(this, obj);
  1321. }, [_teacherDesktopIconInfo[i]])
  1322. }, _frag); //
  1323. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1324. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1325. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1326. }
  1327. }
  1328. } else {
  1329. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1330. _content = $$("div", {
  1331. className: "U_MD_D_KO",
  1332. style: { 'width': '124px', 'height': '145px' },
  1333. "onmousedown": U.UF.C.closure(function (obj) {
  1334. //防止拖动图标即打开了桌面应用
  1335. U.MD.D.click(this, obj);
  1336. }, [_easyDesktopIconInfo[i]]),
  1337. "onclick": U.UF.C.closure(function (obj) {
  1338. //防止拖动图标即打开了桌面应用
  1339. U.MD.D.click(this, obj);
  1340. }, [_easyDesktopIconInfo[i]])
  1341. }, _frag); //
  1342. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1343. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1344. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1345. }
  1346. }
  1347. if (type == 1) {
  1348. //加载好后给图标定位
  1349. U.MD.D.iconPostion($(_frag).Child());
  1350. } else {
  1351. //加载好后给图标定位
  1352. U.MD.D.iconPostion2($(_frag).Child());
  1353. }
  1354. //把图标加载到页面
  1355. el.appendChild(_frag);
  1356. }
  1357. /**
  1358. * 显示任务栏
  1359. *
  1360. * @param {element} 桌面元素
  1361. */
  1362. U.MD.D.I.displayTaskbar = function (el) {
  1363. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1364. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1365. //任务栏位置变化
  1366. U.selectEl(el).css({ "bottom": "0px" });
  1367. //桌面位置变话
  1368. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1369. }
  1370. }
  1371. //#region 桌面图标拖动逻辑
  1372. /**
  1373. * 桌面排列图标
  1374. *
  1375. * @param {element} 桌面元素
  1376. * @param {object} 上下相距的距离
  1377. * @param {object} 左右相距的距离
  1378. * @return {object} 命名空间
  1379. */
  1380. U.MD.D.iconPostion = function (childs, top, left) {
  1381. var i; //用于循环处理
  1382. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1383. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1384. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1385. for (i = 0; i < childs.length; i++) {
  1386. //如果竖排top超过了范围处理
  1387. if (top + 95 > US.height - 10) {
  1388. //left超过了页面范围处理,则向上重叠打印处理
  1389. if ((left + 180) > US.width) {
  1390. top -= 110;
  1391. left -= 90;
  1392. }
  1393. //没有超过范围,那么left+90添加到下一个竖排打印
  1394. else {
  1395. left += 90;
  1396. top = 15;
  1397. };
  1398. }
  1399. //给图标的位置赋值
  1400. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1401. if (i < childs.length - 1) {
  1402. //页面图标每次向下加95
  1403. top += 95;
  1404. }
  1405. }
  1406. //返回最后调用的图标的位置
  1407. return [top, left];
  1408. }
  1409. /**
  1410. * 桌面排列图标
  1411. *
  1412. * @param {element} 桌面元素
  1413. * @param {object} 上下相距的距离
  1414. * @param {object} 左右相距的距离
  1415. * @return {object} 命名空间
  1416. */
  1417. U.MD.D.iconPostion2 = function (childs, top, left) {
  1418. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1419. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1420. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1421. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1422. for (i = 0; i < childs.length; i++) {
  1423. //如果竖排top超过了范围处理
  1424. if (left + 150 > US.width - 10) {
  1425. //left超过了页面范围处理,则向上重叠打印处理
  1426. if ((top + 180) > US.Height) {
  1427. top -= 150;
  1428. left -= 150;
  1429. }
  1430. //没有超过范围,那么left+90添加到下一个竖排打印
  1431. else {
  1432. top += 150;
  1433. left = ol;
  1434. };
  1435. }
  1436. //给图标的位置赋值
  1437. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1438. if (i < childs.length - 1) {
  1439. //页面图标每次向下加95
  1440. left += 150;
  1441. }
  1442. }
  1443. //返回最后调用的图标的位置
  1444. return [top, left];
  1445. }
  1446. /**
  1447. * 桌面点击事件逻辑
  1448. *
  1449. * @param {element} 桌面元素
  1450. * @param {object} 上下相距的距离
  1451. * @param {object} 左右相距的距离
  1452. * @return {object} 命名空间
  1453. */
  1454. U.MD.D.click = function (el, obj) {
  1455. var _buttonnumber = event.button; //点击的按钮的事件值
  1456. var _userinfo = US.userInfo;
  1457. U.UF.EV.stopBubble(); //阻止向上冒泡
  1458. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1459. if (_buttonnumber < 2) {
  1460. //如果是click事件的处理
  1461. if (event.type == "click") {
  1462. //如果元素在mousemove事件中没有移动则出发click事件
  1463. if (!U.MD.D.I.IsDrag) {
  1464. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1465. U.alert("请先登录您的账号!");
  1466. setTimeout(() => {
  1467. U.MD.U.L.login();
  1468. }, 2000);
  1469. } else {
  1470. //打开应用处理
  1471. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1472. }
  1473. }
  1474. }
  1475. //如果是mouse事件的处理
  1476. else {
  1477. if (US.Config.type == '1') {
  1478. //拖动处理,添加拖动和拖动结束事件
  1479. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1480. }
  1481. }
  1482. U.MD.D.I.IsDrag = false;
  1483. }
  1484. }
  1485. /**
  1486. * 拖动的处理
  1487. *
  1488. */
  1489. U.MD.D.iconMove = function () {
  1490. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1491. U.MD.D.I.IsDrag = true;
  1492. }
  1493. /**
  1494. * 拖动结束后,这里是定位处理,以网状的形式定位
  1495. *
  1496. * @param {element} 拖动的元素
  1497. * @return {object} 命名空间
  1498. */
  1499. U.MD.D.iconUp = function (el) {
  1500. var _top = 15,
  1501. _left = 20,
  1502. _margin,
  1503. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1504. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1505. if (_positioninfo["OT"] > 15) {
  1506. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1507. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1508. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1509. }
  1510. if (_positioninfo["OL"] > 20) {
  1511. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1512. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1513. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1514. }
  1515. //while循环判断么一个重叠的元素
  1516. do {
  1517. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1518. _top = _positioninfo[0] + 95; //得到定位后的top
  1519. _left = _positioninfo[1]; //得到定位后的left
  1520. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1521. }
  1522. /**
  1523. * 判断拖动后图标是否重叠
  1524. *
  1525. * @param {element} 拖动的元素
  1526. * @param {element} 桌面所有的元素
  1527. * @param {array} 拖动元素的位置
  1528. ----------[0] 上 top
  1529. ----------[1] 左 left
  1530. * @return {object} 命名空间
  1531. */
  1532. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1533. //循环所有的图标
  1534. for (var i = 0; i < childs.length; i++) {
  1535. //判断有没有和该图标诶子重叠的元素
  1536. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1537. return childs[i]; //如果有返回
  1538. }
  1539. }
  1540. }
  1541. //#endregion
  1542. //#endregion
  1543. //#region 桌面应用
  1544. /**
  1545. * 打开应用
  1546. *
  1547. * @param {string} 类型
  1548. -----------------Disk 网盘系统
  1549. -----------------PDisk 学习系统网盘
  1550. -----------------Poto 图片
  1551. -----------------Video 视频
  1552. -----------------Music 音乐
  1553. -----------------Word word
  1554. -----------------Excel excel
  1555. -----------------Txt 记事本
  1556. -----------------PB 学习系统
  1557. -----------------Blog 朋友圈系统
  1558. -----------------FTP ftp系统
  1559. -----------------Group 好友群
  1560. -----------------SY 首页系统
  1561. -----------------Set 个人设置
  1562. -----------------XSet 系统设置
  1563. -----------------App 我们所有的app
  1564. -----------------BC c.1473.cn 平台
  1565. -----------------CWeb d.1473.cn 变成平台
  1566. -----------------其他的外联系统 我们统一用iframe打开
  1567. * @param {array} 类型
  1568. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1569. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1570. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1571. 如果第一个参数为其他,则无第二个参数
  1572. * @returns {array}
  1573. */
  1574. window.addEventListener('message', function (e) { // 监听 message 事件
  1575. // alert(e.data.type);
  1576. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1577. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1578. //3是展示全部阶段 2学生 1老师 4专家
  1579. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1580. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1581. //3是展示全部阶段 2学生 1老师 4专家
  1582. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1583. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1584. //3是展示全部阶段 2学生 1老师 4专家
  1585. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1586. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1587. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1588. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1589. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1590. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1591. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1592. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1593. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1594. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1595. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1596. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1597. //3是展示全部阶段 2学生 1老师 4专家
  1598. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1599. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1600. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1601. U.MD.D.I.selectUser();
  1602. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1603. var _formel = document.getElementById("study");
  1604. U.UF.F.windowZooming(_formel);
  1605. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1606. var _formel = document.getElementById("studyDetail");
  1607. U.UF.F.windowZooming(_formel);
  1608. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1609. var _formel = document.getElementById("studyDetail");
  1610. U.UF.F.windowZooming(_formel);
  1611. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1612. var _formel = document.getElementById("studentStudy");
  1613. U.UF.F.windowZooming(_formel);
  1614. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1615. // var _formel = document.getElementById("study");
  1616. //如果最大化了,那么就把他缩小
  1617. // if (_formel.ismaximize) {
  1618. // return;
  1619. // }
  1620. // U.UF.F.windowZooming(_formel);
  1621. // U.UF.F.topWindow(_formel);
  1622. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1623. // var _formel = document.getElementById("studyDetail");
  1624. //如果最大化了,那么就把他缩小
  1625. // if (_formel.ismaximize) {
  1626. // return;
  1627. // }
  1628. // U.UF.F.windowZooming(_formel);
  1629. // U.UF.F.topWindow(_formel);
  1630. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1631. // var _formel = document.getElementById("studentStudy");
  1632. // if (_formel.ismaximize) {
  1633. // return;
  1634. // }
  1635. // U.UF.F.windowZooming(_formel);
  1636. // U.UF.F.topWindow(_formel);
  1637. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1638. var _formel = document.getElementById("study");
  1639. // if (_formel.ismaximize) {
  1640. // return;
  1641. // }
  1642. // U.UF.F.windowZooming(_formel);
  1643. U.UF.F.topWindow(_formel);
  1644. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1645. var _formel = document.getElementById("studentIndex");
  1646. U.UF.F.windowZooming(_formel);
  1647. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1648. var _formel = document.getElementById("studyDetailS");
  1649. U.UF.F.windowZooming(_formel);
  1650. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1651. var _formel = document.getElementById("studioIndex");
  1652. U.UF.F.windowZooming(_formel);
  1653. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1654. var _formel = document.getElementById("studyDetailStudio");
  1655. U.UF.F.windowZooming(_formel);
  1656. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1657. var _formel = document.getElementById("studyDetailStudio");
  1658. U.UF.F.windowZooming(_formel);
  1659. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1660. var _formel = document.getElementById("studyDetailNT");
  1661. U.UF.F.windowZooming(_formel);
  1662. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1663. var _formel = document.getElementById("studyDetailS");
  1664. U.UF.F.windowZooming(_formel);
  1665. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1666. var _formel = document.getElementById("studyDetailS");
  1667. U.UF.F.topWindow(_formel);
  1668. } else if (e.data.tools && e.data.tools == "1") {
  1669. // U.MD.D.I.openApplication("whiteboard")
  1670. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1671. } else if (e.data.tools && e.data.tools == "2") {
  1672. U.MD.D.I.openApplication("note")
  1673. } else if (e.data.tools && e.data.tools == "3") {
  1674. // U.MD.D.I.openApplication("mind")
  1675. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1676. } else if (e.data.tools && e.data.tools == "4") {
  1677. U.MD.D.I.openApplication("investigation")
  1678. } else if (e.data.tools && e.data.tools == "6") {
  1679. // U.MD.D.I.openApplication("doc")
  1680. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1681. } else if (e.data.tools && e.data.tools == "7") {
  1682. // U.MD.D.I.openApplication("mindNetwork")
  1683. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1684. } else if (e.data.tools && e.data.tools == "8") {
  1685. U.MD.D.I.openApplication("library")
  1686. } else if (e.data.tools && e.data.tools == "17") {
  1687. U.MD.D.I.openApplication("stuLibrary")
  1688. } else if (e.data.tools && e.data.tools == "18") {
  1689. U.MD.D.I.openApplication("train")
  1690. } else if (e.data.tools && e.data.tools == "21") {
  1691. U.MD.D.I.openApplication("program")
  1692. } else if (e.data.tools && e.data.tools == "22") {
  1693. U.MD.D.I.openApplication("AIprogram2")
  1694. } else if (e.data.tools && e.data.tools == "23") {
  1695. U.MD.D.I.openApplication("Pythonprogram")
  1696. } else if (e.data.tools && e.data.tools == "24") {
  1697. U.MD.D.I.openApplication("AIprogram")
  1698. } else if (e.data.tools && e.data.tools == "25") {
  1699. U.MD.D.I.openApplication("sys")
  1700. } else if (e.data.tools && e.data.tools == "26") {
  1701. // U.MD.D.I.openApplication("courseDesign")
  1702. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1703. } else if (e.data.tools && e.data.tools == "31") {
  1704. U.MD.D.I.openApplication("netWorkPanel")
  1705. } else if (e.data.tools && e.data.tools == "32") {
  1706. U.MD.D.I.openApplication("codeEdit")
  1707. } else if (e.data.tools && e.data.tools == "57") {
  1708. U.MD.D.I.openApplication("CocoPi")
  1709. } else if (e.data.tools && e.data.tools == "63") {
  1710. U.MD.D.I.openApplication("Wood")
  1711. } else if (e.data.tools && e.data.tools == "58") {
  1712. U.MD.D.I.openApplication("car")
  1713. } else if (e.data.tools && e.data.tools == "59") {
  1714. U.MD.D.I.openApplication("lineSearch")
  1715. } else if (e.data.tools && e.data.tools == "60") {
  1716. U.MD.D.I.openApplication("deepLearning")
  1717. } else if (e.data.tools && e.data.tools == "61") {
  1718. U.MD.D.I.openApplication("allHistory")
  1719. } else if (e.data.tools && e.data.tools == "28") {
  1720. U.MD.D.I.openApplication("translation")
  1721. } else if (e.data.tools && e.data.tools == "37") {
  1722. U.MD.D.I.openApplication("mohe")
  1723. } else if (e.data.tools && e.data.tools == "38") {
  1724. U.MD.D.I.openApplication("24game")
  1725. } else if (e.data.tools && e.data.tools == "39") {
  1726. U.MD.D.I.openApplication("GeoGebra")
  1727. } else if (e.data.tools && e.data.tools == "43") {
  1728. U.MD.D.I.openApplication("studentEvaluate")
  1729. } else if (e.data.tools && e.data.tools == "44") {
  1730. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1731. } else if (e.data.tools && e.data.tools == "46") {
  1732. U.MD.D.I.openApplication("project")
  1733. } else if (e.data.tools && e.data.tools == "1s") {
  1734. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1735. } else if (e.data.tools && e.data.tools == "3s") {
  1736. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1737. } else if (e.data.tools && e.data.tools == "6s") {
  1738. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1739. } else if (e.data.tools && e.data.tools == "1studio") {
  1740. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1741. } else if (e.data.tools && e.data.tools == "3studio") {
  1742. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1743. } else if (e.data.tools && e.data.tools == "6studio") {
  1744. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1745. } else if (e.data.tools && e.data.tools == "3y") {
  1746. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1747. } else if (e.data.tools && e.data.tools == "1y") {
  1748. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1749. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1750. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1751. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1752. U.MD.D.I.openApplication("AIAnalyse")
  1753. } else if (e.data.tools && e.data.tools == "1teacher") {
  1754. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1755. } else if (e.data.tools && e.data.tools == "3teacher") {
  1756. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1757. } else if (e.data.tools && e.data.tools == "7teacher") {
  1758. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1759. } else if (e.data.tools && e.data.tools == "1teacherE") {
  1760. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1761. } else if (e.data.tools && e.data.tools == "3teacherE") {
  1762. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1763. } else if (e.data.tools && e.data.tools == "1E") {
  1764. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1765. } else if (e.data.tools && e.data.tools == "3E") {
  1766. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1767. } else if (e.data.tools && e.data.tools == "57y") {
  1768. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1769. } else if (e.data.tools && e.data.tools == "57u") {
  1770. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1771. } else if (e.data.tools && e.data.tools == "57teacher") {
  1772. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1773. }
  1774. });
  1775. U.MD.D.I.selectUser = function () {
  1776. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1777. if (res.value[0].length > 0) {
  1778. US.userInfo = res.value[0][0];
  1779. $(".userName")[0].innerHTML = US.userInfo.username;
  1780. }
  1781. }, [], { "type": "GET", "withCredentials": true });
  1782. }
  1783. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1784. var _userinfo = US.userInfo, //登录用户信息
  1785. _userid = US.userInfo.userid, //登录用户id
  1786. _oid = _userinfo.organizeid,
  1787. _type = US.userInfo.type,
  1788. _org = US.userInfo.org,
  1789. _role = US.userInfo.role,
  1790. _classId = US.userInfo.classid;
  1791. if (_type == 4) {
  1792. tType = 4
  1793. }
  1794. switch (str) {
  1795. case "studyDetailNT"://无终端模式
  1796. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1797. setTimeout(() => {
  1798. U.MD.U.L.login();
  1799. }, 2000);
  1800. } else {
  1801. _formdiv = new U.UF.UI.form(
  1802. "课程详情",
  1803. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailNT?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1804. "id": "studyDetailNT",
  1805. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1806. "onresize": function () { }
  1807. }, {
  1808. closecallback: function () { }
  1809. }, { "style": { "height": "36px" } }).form; //创建窗体
  1810. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1811. break;
  1812. }
  1813. case "studyDetail":
  1814. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1815. setTimeout(() => {
  1816. U.MD.U.L.login();
  1817. }, 2000);
  1818. } else {
  1819. _formdiv = new U.UF.UI.form(
  1820. "课程详情",
  1821. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1822. "id": "studyDetail",
  1823. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1824. "onresize": function () { }
  1825. }, {
  1826. closecallback: function () { }
  1827. }, { "style": { "height": "36px" } }).form; //创建窗体
  1828. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1829. break;
  1830. }
  1831. case "studyDetailS":
  1832. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1833. setTimeout(() => {
  1834. U.MD.U.L.login();
  1835. }, 2000);
  1836. } else {
  1837. _formdiv = new U.UF.UI.form(
  1838. "项目详情",
  1839. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1840. "id": "studyDetailS",
  1841. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1842. "onresize": function () { }
  1843. }, {
  1844. closecallback: function () { }
  1845. }, { "style": { "height": "36px" } }).form; //创建窗体
  1846. _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); } }
  1847. break;
  1848. }
  1849. case "studyDetailStudio":
  1850. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1851. setTimeout(() => {
  1852. U.MD.U.L.login();
  1853. }, 2000);
  1854. } else {
  1855. _formdiv = new U.UF.UI.form(
  1856. "工作详情",
  1857. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailStudio?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1858. "id": "studyDetailStudio",
  1859. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1860. "onresize": function () { }
  1861. }, {
  1862. closecallback: function () { }
  1863. }, { "style": { "height": "36px" } }).form; //创建窗体
  1864. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioCourse.png)" }, "name": "工作详情", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1865. break;
  1866. }
  1867. case "studyDetailS5":
  1868. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1869. setTimeout(() => {
  1870. U.MD.U.L.login();
  1871. }, 2000);
  1872. } else {
  1873. _formdiv = new U.UF.UI.form(
  1874. "项目详情",
  1875. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studyStudentS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1876. "id": "studyDetailS",
  1877. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1878. "onresize": function () { }
  1879. }, {
  1880. closecallback: function () { }
  1881. }, { "style": { "height": "36px" } }).form; //创建窗体
  1882. _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); } }
  1883. break;
  1884. }
  1885. case "studyDetailGM":
  1886. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1887. setTimeout(() => {
  1888. U.MD.U.L.login();
  1889. }, 2000);
  1890. } else {
  1891. _formdiv = new U.UF.UI.form(
  1892. "课程详情",
  1893. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1894. "id": "studyDetail",
  1895. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1896. "onresize": function () { }
  1897. }, {
  1898. closecallback: function () { }
  1899. }, { "style": { "height": "36px" } }).form; //创建窗体
  1900. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1901. break;
  1902. }
  1903. case "hanUrl":
  1904. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1905. setTimeout(() => {
  1906. U.MD.U.L.login();
  1907. }, 2000);
  1908. } else {
  1909. _formdiv = new U.UF.UI.form(
  1910. "汉字宫",
  1911. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//school.hanzigon.cn/?appid=734714090237947#/material/video?grade_id=62&lesson_code=621&id=2432" }), {
  1912. "id": "hanUrl",
  1913. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1914. "onresize": function () { }
  1915. }, {
  1916. closecallback: function () { }
  1917. }, { "style": { "height": "36px" } }).form; //创建窗体
  1918. _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); } }
  1919. break;
  1920. }
  1921. }
  1922. }
  1923. U.MD.D.I.openApplication = function (str, obj, info) {
  1924. obj = obj || {};
  1925. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1926. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1927. _userinfo = US.userInfo, //登录用户信息
  1928. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1929. _oid = obj.organizeid || _userinfo.organizeid,
  1930. _type = US.userInfo.type,
  1931. _org = US.userInfo.org,
  1932. _role = US.userInfo.role,
  1933. _classId = US.userInfo.classid,
  1934. _TscreenType = 1
  1935. _screenType = 2,
  1936. _SscreenType = 3;
  1937. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1938. return;
  1939. }
  1940. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1941. switch (str) {
  1942. case "studnetProject": //好友打开
  1943. _formdiv = new U.UF.UI.form(
  1944. "我的项目",
  1945. $$("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 }), {
  1946. "id": "studnetProject",
  1947. "style": { "width": "70%", "height": "90%", "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/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1953. break;
  1954. case "studentEvaluate": //好友打开
  1955. _formdiv = new U.UF.UI.form(
  1956. "我的评价",
  1957. $$("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 }), {
  1958. "id": "studentEvaluate",
  1959. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1960. "onresize": function () { }
  1961. }, {
  1962. closecallback: function () { }
  1963. }, { "style": { "height": "36px" } }).form; //创建窗体
  1964. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1965. break;
  1966. case "my":
  1967. _formdiv = new U.UF.UI.form(
  1968. "我的资料",
  1969. $$("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 }), {
  1970. "id": "my",
  1971. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1972. "onresize": function () { }
  1973. }, {
  1974. closecallback: function () { }
  1975. }, { "style": { "height": "36px" } }).form; //创建窗体
  1976. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1977. break;
  1978. case "program":
  1979. _formdiv = new U.UF.UI.form(
  1980. "编程平台",
  1981. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1982. "id": "program",
  1983. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1984. "onresize": function () { }
  1985. }, {
  1986. closecallback: function () { }
  1987. }, { "style": { "height": "36px" } }).form; //创建窗体
  1988. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1989. break;
  1990. case "library":
  1991. _formdiv = new U.UF.UI.form(
  1992. "素材库",
  1993. $$("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 }), {
  1994. "id": "library",
  1995. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1996. "onresize": function () { }
  1997. }, {
  1998. closecallback: function () { }
  1999. }, { "style": { "height": "36px" } }).form; //创建窗体
  2000. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2001. break;
  2002. case "whiteboard":
  2003. _formdiv = new U.UF.UI.form(
  2004. "电子白板",
  2005. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2006. "id": "whiteboard",
  2007. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2008. "onresize": function () { }
  2009. }, {
  2010. closecallback: function () { }
  2011. }, { "style": { "height": "36px" } }).form; //创建窗体
  2012. _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); } }
  2013. break;
  2014. case "investigation":
  2015. _formdiv = new U.UF.UI.form(
  2016. "问卷调查",
  2017. $$("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 }), {
  2018. "id": "investigation",
  2019. "style": { "width": "90%", "height": "90%", "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/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2025. break;
  2026. case "note":
  2027. _formdiv = new U.UF.UI.form(
  2028. "便签分类",
  2029. $$("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 }), {
  2030. "id": "note",
  2031. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2032. "onresize": function () { }
  2033. }, {
  2034. closecallback: function () { }
  2035. }, { "style": { "height": "36px" } }).form; //创建窗体
  2036. _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); } }
  2037. break;
  2038. // case "score":
  2039. // _formdiv = new U.UF.UI.form(
  2040. // "量规评分",
  2041. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2042. // "id": "score",
  2043. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2044. // "onresize": function() {}
  2045. // }, {
  2046. // closecallback: function() {}
  2047. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2048. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2049. // break;
  2050. case "mind":
  2051. _formdiv = new U.UF.UI.form(
  2052. "思维导图",
  2053. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  2054. "id": "mind",
  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/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2061. break;
  2062. case "doc":
  2063. // U.MD.D.I.isRoom();
  2064. _formdiv = new U.UF.UI.form(
  2065. "协同文档",
  2066. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2067. "id": "doc",
  2068. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2069. "onresize": function () { }
  2070. }, {
  2071. closecallback: function () { }
  2072. }, { "style": { "height": "36px" } }).form; //创建窗体
  2073. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2074. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2075. // })
  2076. _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); } }
  2077. break;
  2078. case "studentStudy":
  2079. _formdiv = new U.UF.UI.form(
  2080. "课程中心",
  2081. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2082. "id": "studentStudy",
  2083. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2084. "onresize": function () { }
  2085. }, {
  2086. closecallback: function () { }
  2087. }, { "style": { "height": "36px" } }).form; //创建窗体
  2088. _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); } }
  2089. break;
  2090. case "train": //好友打开
  2091. _formdiv = new U.UF.UI.form(
  2092. "训练平台",
  2093. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2094. "id": "train",
  2095. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2096. "onresize": function () { }
  2097. }, {
  2098. closecallback: function () { }
  2099. }, { "style": { "height": "36px" } }).form; //创建窗体
  2100. _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); } }
  2101. break;
  2102. case "mindNetwork": //好友打开
  2103. _formdiv = new U.UF.UI.form(
  2104. "思维网格",
  2105. $$("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 }), {
  2106. "id": "mindNetwork",
  2107. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2108. "onresize": function () { }
  2109. }, {
  2110. closecallback: function () { }
  2111. }, { "style": { "height": "36px" } }).form; //创建窗体
  2112. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2113. break;
  2114. case "studentClassRoom": //好友打开
  2115. _formdiv = new U.UF.UI.form(
  2116. "实时课堂",
  2117. $$("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 }), {
  2118. "id": "studentClassRoom",
  2119. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2120. "onresize": function () { }
  2121. }, {
  2122. closecallback: function () { }
  2123. }, { "style": { "height": "36px" } }).form; //创建窗体
  2124. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2125. setTimeout(() => {
  2126. U.UF.F.windowZooming(_formdiv)
  2127. }, 0);
  2128. break;
  2129. }
  2130. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2131. switch (str) {
  2132. case "studnetProject": //好友打开
  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-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  2136. "id": "studnetProject",
  2137. "style": { "width": "70%", "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/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2143. break;
  2144. case "studentEvaluate": //好友打开
  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": US.Config.bpbl + "/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2148. "id": "studentEvaluate",
  2149. "style": { "width": "70%", "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/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2155. break;
  2156. case "my":
  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/#/data?userid=" + _userid + "&org=" + _org }), {
  2160. "id": "my",
  2161. "style": { "width": "42%", "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/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2167. break;
  2168. case "program":
  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": "https://x.cocorobo.cn" }), {
  2172. "id": "program",
  2173. "style": { "width": "70%", "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/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2179. break;
  2180. case "library":
  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 + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  2184. "id": "library",
  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/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2191. break;
  2192. case "whiteboard":
  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": "https://iwb.cocorobo.cn/" }), {
  2196. "id": "whiteboard",
  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/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2203. break;
  2204. case "investigation":
  2205. _formdiv = new U.UF.UI.form(
  2206. "问卷调查",
  2207. $$("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 }), {
  2208. "id": "investigation",
  2209. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2210. "onresize": function () { }
  2211. }, {
  2212. closecallback: function () { }
  2213. }, { "style": { "height": "36px" } }).form; //创建窗体
  2214. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2215. break;
  2216. case "note":
  2217. _formdiv = new U.UF.UI.form(
  2218. "便签分类",
  2219. $$("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 }), {
  2220. "id": "note",
  2221. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2222. "onresize": function () { }
  2223. }, {
  2224. closecallback: function () { }
  2225. }, { "style": { "height": "36px" } }).form; //创建窗体
  2226. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2227. break;
  2228. // case "score":
  2229. // _formdiv = new U.UF.UI.form(
  2230. // "量规评分",
  2231. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2232. // "id": "score",
  2233. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2234. // "onresize": function() {}
  2235. // }, {
  2236. // closecallback: function() {}
  2237. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2238. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2239. // break;
  2240. case "mind":
  2241. _formdiv = new U.UF.UI.form(
  2242. "思维导图",
  2243. $$("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"
  2244. "id": "mind",
  2245. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2246. "onresize": function () { }
  2247. }, {
  2248. closecallback: function () { }
  2249. }, { "style": { "height": "36px" } }).form; //创建窗体
  2250. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2251. break;
  2252. case "doc":
  2253. // U.MD.D.I.isRoom();
  2254. _formdiv = new U.UF.UI.form(
  2255. "协同文档",
  2256. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2257. "id": "doc",
  2258. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2259. "onresize": function () { }
  2260. }, {
  2261. closecallback: function () { }
  2262. }, { "style": { "height": "36px" } }).form; //创建窗体
  2263. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2264. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2265. })
  2266. _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); } }
  2267. break;
  2268. case "train": //好友打开
  2269. _formdiv = new U.UF.UI.form(
  2270. "训练平台",
  2271. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2272. "id": "train",
  2273. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2274. "onresize": function () { }
  2275. }, {
  2276. closecallback: function () { }
  2277. }, { "style": { "height": "36px" } }).form; //创建窗体
  2278. _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); } }
  2279. break;
  2280. case "studentStudy":
  2281. _formdiv = new U.UF.UI.form(
  2282. "课程中心",
  2283. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2284. "id": "studentStudy",
  2285. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2286. "onresize": function () { }
  2287. }, {
  2288. closecallback: function () { }
  2289. }, { "style": { "height": "36px" } }).form; //创建窗体
  2290. _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); } }
  2291. break;
  2292. case "mindNetwork": //好友打开
  2293. _formdiv = new U.UF.UI.form(
  2294. "思维网格",
  2295. $$("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 }), {
  2296. "id": "mindNetwork",
  2297. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2298. "onresize": function () { }
  2299. }, {
  2300. closecallback: function () { }
  2301. }, { "style": { "height": "36px" } }).form; //创建窗体
  2302. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2303. break;
  2304. case "studentClassRoom": //好友打开
  2305. _formdiv = new U.UF.UI.form(
  2306. "实时课堂",
  2307. $$("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 }), {
  2308. "id": "studentClassRoom",
  2309. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2310. "onresize": function () { }
  2311. }, {
  2312. closecallback: function () { }
  2313. }, { "style": { "height": "36px" } }).form; //创建窗体
  2314. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2315. setTimeout(() => {
  2316. U.UF.F.windowZooming(_formdiv)
  2317. }, 0);
  2318. break;
  2319. }
  2320. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2321. //选择应用处理
  2322. switch (str) {
  2323. case "project": //好友打开
  2324. _formdiv = new U.UF.UI.form(
  2325. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2326. $$("iframe", { "allow": "camera *; microphone *;display-capture;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 }), {
  2327. "id": "project",
  2328. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2329. "onresize": function () { }
  2330. }, {
  2331. closecallback: function () { }
  2332. }, { "style": { "height": "36px" } }).form; //创建窗体
  2333. _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); } }
  2334. break;
  2335. case "student":
  2336. _formdiv = new U.UF.UI.form(
  2337. "学生管理",
  2338. $$("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 }), {
  2339. "id": "student",
  2340. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2341. "onresize": function () { }
  2342. }, {
  2343. closecallback: function () { }
  2344. }, { "style": { "height": "36px" } }).form; //创建窗体
  2345. _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); } }
  2346. break;
  2347. case "evaluate":
  2348. _formdiv = new U.UF.UI.form(
  2349. "学生评价",
  2350. $$("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 }), {
  2351. "id": "evaluate",
  2352. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2353. "onresize": function () { }
  2354. }, {
  2355. closecallback: function () { }
  2356. }, { "style": { "height": "36px" } }).form; //创建窗体
  2357. _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); } }
  2358. break;
  2359. case "sys":
  2360. _formdiv = new U.UF.UI.form(
  2361. "目标管理",
  2362. $$("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 }), {
  2363. "id": "sys",
  2364. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2365. "onresize": function () { }
  2366. }, {
  2367. closecallback: function () { }
  2368. }, { "style": { "height": "36px" } }).form; //创建窗体
  2369. _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); } }
  2370. break;
  2371. case "courseDesign":
  2372. _formdiv = new U.UF.UI.form(
  2373. "项目设计",
  2374. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2375. "id": "courseDesign",
  2376. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2377. "onresize": function () { }
  2378. }, {
  2379. closecallback: function () { }
  2380. }, { "style": { "height": "36px" } }).form; //创建窗体
  2381. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "项目设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2382. break;
  2383. case "program":
  2384. _formdiv = new U.UF.UI.form(
  2385. "编程平台",
  2386. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2387. "id": "program",
  2388. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2389. "onresize": function () { }
  2390. }, {
  2391. closecallback: function () { }
  2392. }, { "style": { "height": "36px" } }).form; //创建窗体
  2393. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2394. break;
  2395. case "class":
  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": US.Config.bpbl + "/pbl-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2399. "id": "class",
  2400. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2401. "onresize": function () { }
  2402. }, {
  2403. closecallback: function () { }
  2404. }, { "style": { "height": "36px" } }).form; //创建窗体
  2405. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2406. break;
  2407. case "my":
  2408. _formdiv = new U.UF.UI.form(
  2409. "我的资料",
  2410. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  2411. "id": "my",
  2412. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2413. "onresize": function () { }
  2414. }, {
  2415. closecallback: function () { }
  2416. }, { "style": { "height": "36px" } }).form; //创建窗体
  2417. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2418. break;
  2419. case "notice":
  2420. _formdiv = new U.UF.UI.form(
  2421. "通知公告",
  2422. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  2423. "id": "notice",
  2424. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2425. "onresize": function () { }
  2426. }, {
  2427. closecallback: function () { }
  2428. }, { "style": { "height": "36px" } }).form; //创建窗体
  2429. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2430. break;
  2431. case "library":
  2432. _formdiv = new U.UF.UI.form(
  2433. "素材库",
  2434. $$("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 }), {
  2435. "id": "library",
  2436. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2437. "onresize": function () { }
  2438. }, {
  2439. closecallback: function () { }
  2440. }, { "style": { "height": "36px" } }).form; //创建窗体
  2441. _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); } }
  2442. break;
  2443. case "whiteboard":
  2444. _formdiv = new U.UF.UI.form(
  2445. "电子白板",
  2446. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2447. "id": "whiteboard",
  2448. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2449. "onresize": function () { }
  2450. }, {
  2451. closecallback: function () { }
  2452. }, { "style": { "height": "36px" } }).form; //创建窗体
  2453. _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); } }
  2454. break;
  2455. case "investigation":
  2456. _formdiv = new U.UF.UI.form(
  2457. "问卷调查",
  2458. $$("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 }), {
  2459. "id": "investigation",
  2460. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2461. "onresize": function () { }
  2462. }, {
  2463. closecallback: function () { }
  2464. }, { "style": { "height": "36px" } }).form; //创建窗体
  2465. _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); } }
  2466. break;
  2467. case "note":
  2468. _formdiv = new U.UF.UI.form(
  2469. "便签分类",
  2470. $$("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 }), {
  2471. "id": "note",
  2472. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2473. "onresize": function () { }
  2474. }, {
  2475. closecallback: function () { }
  2476. }, { "style": { "height": "36px" } }).form; //创建窗体
  2477. _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); } }
  2478. break;
  2479. // case "score":
  2480. // _formdiv = new U.UF.UI.form(
  2481. // "量规评分",
  2482. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2483. // "id": "score",
  2484. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2485. // "onresize": function() {}
  2486. // }, {
  2487. // closecallback: function() {}
  2488. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2489. // _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); } }
  2490. // break;
  2491. case "mind":
  2492. _formdiv = new U.UF.UI.form(
  2493. "思维导图",
  2494. $$("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"
  2495. "id": "mind",
  2496. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2497. "onresize": function () { }
  2498. }, {
  2499. closecallback: function () { }
  2500. }, { "style": { "height": "36px" } }).form; //创建窗体
  2501. _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); } }
  2502. break;
  2503. case "doc":
  2504. // U.MD.D.I.isRoom();
  2505. _formdiv = new U.UF.UI.form(
  2506. "协同文档",
  2507. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2508. "id": "doc",
  2509. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2510. "onresize": function () { }
  2511. }, {
  2512. closecallback: function () { }
  2513. }, { "style": { "height": "36px" } }).form; //创建窗体
  2514. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2515. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2516. })
  2517. _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); } }
  2518. break;
  2519. case "study":
  2520. _formdiv = new U.UF.UI.form(
  2521. "课程中心",
  2522. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2523. "id": "study",
  2524. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2525. "onresize": function () { }
  2526. }, {
  2527. closecallback: function () { }
  2528. }, { "style": { "height": "36px" } }).form; //创建窗体
  2529. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2530. break;
  2531. case "mindNetwork": //好友打开
  2532. _formdiv = new U.UF.UI.form(
  2533. "思维网格",
  2534. $$("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 }), {
  2535. "id": "mindNetwork",
  2536. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2537. "onresize": function () { }
  2538. }, {
  2539. closecallback: function () { }
  2540. }, { "style": { "height": "36px" } }).form; //创建窗体
  2541. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2542. break;
  2543. case "train": //好友打开
  2544. _formdiv = new U.UF.UI.form(
  2545. "训练平台",
  2546. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2547. "id": "mindNetwork",
  2548. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2549. "onresize": function () { }
  2550. }, {
  2551. closecallback: function () { }
  2552. }, { "style": { "height": "36px" } }).form; //创建窗体
  2553. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2554. break;
  2555. case "teacherClassRoom": //好友打开
  2556. _formdiv = new U.UF.UI.form(
  2557. "实时课堂",
  2558. $$("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 }), {
  2559. "id": "teacherClassRoom",
  2560. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2561. "onresize": function () { }
  2562. }, {
  2563. closecallback: function () { }
  2564. }, { "style": { "height": "36px" } }).form; //创建窗体
  2565. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2566. setTimeout(() => {
  2567. U.UF.F.windowZooming(_formdiv)
  2568. }, 0);
  2569. break;
  2570. }
  2571. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2572. switch (str) {
  2573. case "project": //好友打开
  2574. _formdiv = new U.UF.UI.form(
  2575. "课程管理",
  2576. $$("iframe", { "allow": "camera *; microphone *;display-capture;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 }), {
  2577. "id": "project",
  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/project.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2584. break;
  2585. case "evaluate":
  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/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2589. "id": "evaluate",
  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/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2596. break;
  2597. case "notice":
  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": US.Config.bpbl + "/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  2601. "id": "notice",
  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/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2608. break;
  2609. case "stuLibrary":
  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/#/studyLibrary?userid=" + _userid + "&org=" + _org }), {
  2613. "id": "stuLibrary",
  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/stuLibrary.png)" }, "name": "学习资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2620. break;
  2621. case "program":
  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": "https://x.cocorobo.cn" }), {
  2625. "id": "program",
  2626. "style": { "width": "70%", "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/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2632. break;
  2633. case "whiteboard":
  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": "https://iwb.cocorobo.cn/" }), {
  2637. "id": "whiteboard",
  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/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2644. break;
  2645. case "investigation":
  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": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  2649. "id": "investigation",
  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/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2656. break;
  2657. case "mind":
  2658. _formdiv = new U.UF.UI.form(
  2659. "思维导图",
  2660. $$("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"
  2661. "id": "mind",
  2662. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2663. "onresize": function () { }
  2664. }, {
  2665. closecallback: function () { }
  2666. }, { "style": { "height": "36px" } }).form; //创建窗体
  2667. _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); } }
  2668. break;
  2669. case "doc":
  2670. // U.MD.D.I.isRoom();
  2671. _formdiv = new U.UF.UI.form(
  2672. "协同文档",
  2673. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2674. "id": "doc",
  2675. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2676. "onresize": function () { }
  2677. }, {
  2678. closecallback: function () { }
  2679. }, { "style": { "height": "36px" } }).form; //创建窗体
  2680. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2681. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2682. })
  2683. _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); } }
  2684. break;
  2685. case "study":
  2686. _formdiv = new U.UF.UI.form(
  2687. "课程中心",
  2688. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2689. "id": "study",
  2690. "style": { "width": "100%", "height": "100%", "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/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2696. break;
  2697. case "mindNetwork": //好友打开
  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": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid + "&org=" + _org }), {
  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/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2708. break;
  2709. case "train": //好友打开
  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": "https://xunlian.cocorobo.cn/" }), {
  2713. "id": "train",
  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/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2720. break;
  2721. case "sys":
  2722. _formdiv = new U.UF.UI.form(
  2723. "目标管理",
  2724. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2725. "id": "sys",
  2726. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2727. "onresize": function () { }
  2728. }, {
  2729. closecallback: function () { }
  2730. }, { "style": { "height": "36px" } }).form; //创建窗体
  2731. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2732. break;
  2733. case "courseDesign":
  2734. _formdiv = new U.UF.UI.form(
  2735. "项目设计",
  2736. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2737. "id": "courseDesign",
  2738. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2739. "onresize": function () { }
  2740. }, {
  2741. closecallback: function () { }
  2742. }, { "style": { "height": "36px" } }).form; //创建窗体
  2743. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "项目设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2744. break;
  2745. }
  2746. } else if (!_type) {
  2747. switch (str) {
  2748. case "my":
  2749. _formdiv = new U.UF.UI.form(
  2750. "我的资料",
  2751. $$("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 }), {
  2752. "id": "my",
  2753. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2754. "onresize": function () { }
  2755. }, {
  2756. closecallback: function () { }
  2757. }, { "style": { "height": "36px" } }).form; //创建窗体
  2758. _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); } }
  2759. break;
  2760. }
  2761. }
  2762. switch (str) {
  2763. // AIprogram2 AI体验 aihub.cocorobo.cn
  2764. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2765. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2766. case "AIprogram2": //AI体验
  2767. _formdiv = new U.UF.UI.form(
  2768. "AI体验",
  2769. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2770. "id": "AIprogram2",
  2771. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2772. "onresize": function () { }
  2773. }, {
  2774. closecallback: function () { }
  2775. }, { "style": { "height": "36px" } }).form; //创建窗体
  2776. _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); } }
  2777. break;
  2778. case "Pythonprogram": //python编程
  2779. _formdiv = new U.UF.UI.form(
  2780. "Python编程",
  2781. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2782. "id": "Pythonprogram",
  2783. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2784. "onresize": function () { }
  2785. }, {
  2786. closecallback: function () { }
  2787. }, { "style": { "height": "36px" } }).form; //创建窗体
  2788. _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); } }
  2789. break;
  2790. case "AIprogram": //ai编程
  2791. _formdiv = new U.UF.UI.form(
  2792. "AI编程平台",
  2793. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2794. "id": "AIprogram",
  2795. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2796. "onresize": function () { }
  2797. }, {
  2798. closecallback: function () { }
  2799. }, { "style": { "height": "36px" } }).form; //创建窗体
  2800. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram.png)" }, "name": "AI编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2801. break;
  2802. case "CocoPi": //CocoPi
  2803. _formdiv = new U.UF.UI.form(
  2804. "CocoPi",
  2805. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://v.cocorobo.cn" }), {
  2806. "id": "CocoPi",
  2807. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2808. "onresize": function () { }
  2809. }, {
  2810. closecallback: function () { }
  2811. }, { "style": { "height": "36px" } }).form; //创建窗体
  2812. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/cocopi.png)" }, "name": "CocoPi", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2813. break;
  2814. case "Wood": //Wood
  2815. _formdiv = new U.UF.UI.form(
  2816. "海龟编程",
  2817. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://wood.codemao.cn/" }), {
  2818. "id": "Wood",
  2819. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2820. "onresize": function () { }
  2821. }, {
  2822. closecallback: function () { }
  2823. }, { "style": { "height": "36px" } }).form; //创建窗体
  2824. _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); } }
  2825. break;
  2826. case "car": //模拟驾驶
  2827. _formdiv = new U.UF.UI.form(
  2828. "模拟驾驶",
  2829. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://slowroads.io/" }), {
  2830. "id": "car",
  2831. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2832. "onresize": function () { }
  2833. }, {
  2834. closecallback: function () { }
  2835. }, { "style": { "height": "36px" } }).form; //创建窗体
  2836. _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); } }
  2837. break;
  2838. case "lineSearch": //路径搜索
  2839. _formdiv = new U.UF.UI.form(
  2840. "路径搜索",
  2841. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://qiao.github.io/PathFinding.js/visual/" }), {
  2842. "id": "lineSearch",
  2843. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2844. "onresize": function () { }
  2845. }, {
  2846. closecallback: function () { }
  2847. }, { "style": { "height": "36px" } }).form; //创建窗体
  2848. _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); } }
  2849. break;
  2850. case "deepLearning": //深度学习
  2851. _formdiv = new U.UF.UI.form(
  2852. "深度学习",
  2853. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-demos.cocorobo.cn/teachable-machine/public/#" }), {
  2854. "id": "deepLearning",
  2855. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2856. "onresize": function () { }
  2857. }, {
  2858. closecallback: function () { }
  2859. }, { "style": { "height": "36px" } }).form; //创建窗体
  2860. _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); } }
  2861. break;
  2862. case "allHistory": //深度学习
  2863. _formdiv = new U.UF.UI.form(
  2864. "全历史",
  2865. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.allhistory.com/" }), {
  2866. "id": "allHistory",
  2867. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2868. "onresize": function () { }
  2869. }, {
  2870. closecallback: function () { }
  2871. }, { "style": { "height": "36px" } }).form; //创建窗体
  2872. _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); } }
  2873. break;
  2874. case "chatPDF": //ai编程
  2875. _formdiv = new U.UF.UI.form(
  2876. "chatPDF",
  2877. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2878. "id": "chatPDF",
  2879. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2880. "onresize": function () { }
  2881. }, {
  2882. closecallback: function () { }
  2883. }, { "style": { "height": "36px" } }).form; //创建窗体
  2884. _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); } }
  2885. break;
  2886. case "resources": //国家教育
  2887. _formdiv = new U.UF.UI.form(
  2888. "国家教育",
  2889. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2890. "id": "resources",
  2891. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2892. "onresize": function () { }
  2893. }, {
  2894. closecallback: function () { }
  2895. }, { "style": { "height": "36px" } }).form; //创建窗体
  2896. _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); } }
  2897. break;
  2898. case "codeEdit": //源码编辑
  2899. _formdiv = new U.UF.UI.form(
  2900. "源码编辑",
  2901. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2902. "id": "codeEdit",
  2903. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2904. "onresize": function () { }
  2905. }, {
  2906. closecallback: function () { }
  2907. }, { "style": { "height": "36px" } }).form; //创建窗体
  2908. _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); } }
  2909. break; //
  2910. case "MindMap": //MindMap
  2911. _formdiv = new U.UF.UI.form(
  2912. "MindMap",
  2913. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2914. "id": "MindMap",
  2915. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2916. "onresize": function () { }
  2917. }, {
  2918. closecallback: function () { }
  2919. }, { "style": { "height": "36px" } }).form; //创建窗体
  2920. _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); } }
  2921. break;
  2922. case "netWorkPanel": //netWorkPanel
  2923. _formdiv = new U.UF.UI.form(
  2924. "netWorkPanel",
  2925. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2926. "id": "netWorkPanel",
  2927. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2928. "onresize": function () { }
  2929. }, {
  2930. closecallback: function () { }
  2931. }, { "style": { "height": "36px" } }).form; //创建窗体
  2932. _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); } }
  2933. break;
  2934. case "GeoGebra": //GeoGebra
  2935. _formdiv = new U.UF.UI.form(
  2936. "GeoGebra",
  2937. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  2938. "id": "GeoGebra",
  2939. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2940. "onresize": function () { }
  2941. }, {
  2942. closecallback: function () { }
  2943. }, { "style": { "height": "36px" } }).form; //创建窗体
  2944. _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); } }
  2945. break;
  2946. case "translation": //翻译
  2947. _formdiv = new U.UF.UI.form(
  2948. "翻译",
  2949. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2950. "id": "translation",
  2951. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2952. "onresize": function () { }
  2953. }, {
  2954. closecallback: function () { }
  2955. }, { "style": { "height": "36px" } }).form; //创建窗体
  2956. _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); } }
  2957. break;
  2958. case "mohe": //魔盒
  2959. _formdiv = new U.UF.UI.form(
  2960. "魔盒识字",
  2961. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2962. "id": "mohe",
  2963. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2964. "onresize": function () { }
  2965. }, {
  2966. closecallback: function () { }
  2967. }, { "style": { "height": "36px" } }).form; //创建窗体
  2968. _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); } }
  2969. break;
  2970. case "24game": //24点
  2971. _formdiv = new U.UF.UI.form(
  2972. "24点",
  2973. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2974. "id": "24game",
  2975. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2976. "onresize": function () { }
  2977. }, {
  2978. closecallback: function () { }
  2979. }, { "style": { "height": "36px" } }).form; //创建窗体
  2980. _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); } }
  2981. break;
  2982. case "case":
  2983. _formdiv = new U.UF.UI.form(
  2984. "课程进展",
  2985. $$("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 }), {
  2986. "id": "case",
  2987. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2988. "onresize": function () { }
  2989. }, {
  2990. closecallback: function () { }
  2991. }, { "style": { "height": "36px" } }).form; //创建窗体
  2992. _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); } }
  2993. break;
  2994. case "snf":
  2995. _formdiv = new U.UF.UI.form(
  2996. "赛诺梵",
  2997. $$("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" }), {
  2998. "id": "snf",
  2999. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3000. "onresize": function () { }
  3001. }, {
  3002. closecallback: function () { }
  3003. }, { "style": { "height": "36px" } }).form; //创建窗体
  3004. _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); } }
  3005. break;
  3006. case "hanFamily":
  3007. _formdiv = new U.UF.UI.form(
  3008. "汉字家族",
  3009. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3010. "id": "hanFamily",
  3011. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3012. "onresize": function () { }
  3013. }, {
  3014. closecallback: function () { }
  3015. }, { "style": { "height": "36px" } }).form; //创建窗体
  3016. _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); } }
  3017. break;
  3018. case "hanClassics":
  3019. _formdiv = new U.UF.UI.form(
  3020. "国学经典",
  3021. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3022. "id": "hanClassics",
  3023. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3024. "onresize": function () { }
  3025. }, {
  3026. closecallback: function () { }
  3027. }, { "style": { "height": "36px" } }).form; //创建窗体
  3028. _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); } }
  3029. break;
  3030. case "hanTraining":
  3031. _formdiv = new U.UF.UI.form(
  3032. "笔画训练",
  3033. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3034. "id": "hanTraining",
  3035. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3036. "onresize": function () { }
  3037. }, {
  3038. closecallback: function () { }
  3039. }, { "style": { "height": "36px" } }).form; //创建窗体
  3040. _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); } }
  3041. break;
  3042. case "hanClass":
  3043. _formdiv = new U.UF.UI.form(
  3044. "书法课堂",
  3045. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3046. "id": "hanClass",
  3047. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3048. "onresize": function () { }
  3049. }, {
  3050. closecallback: function () { }
  3051. }, { "style": { "height": "36px" } }).form; //创建窗体
  3052. _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); } }
  3053. break;
  3054. case "han":
  3055. _formdiv = new U.UF.UI.form(
  3056. "汉字宫",
  3057. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3058. "id": "han",
  3059. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3060. "onresize": function () { }
  3061. }, {
  3062. closecallback: function () { }
  3063. }, { "style": { "height": "36px" } }).form; //创建窗体
  3064. _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); } }
  3065. break;
  3066. case "projectGM": //课程管理
  3067. _formdiv = new U.UF.UI.form(
  3068. "课程管理",
  3069. $$("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 }), {
  3070. "id": "projectGM",
  3071. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3072. "onresize": function () { }
  3073. }, {
  3074. closecallback: function () { }
  3075. }, { "style": { "height": "36px" } }).form; //创建窗体
  3076. _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); } }
  3077. break;
  3078. case "studyGM"://课程中心
  3079. _formdiv = new U.UF.UI.form(
  3080. "课程中心",
  3081. $$("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
  3082. "id": "study",
  3083. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3084. "onresize": function () { }
  3085. }, {
  3086. closecallback: function () { }
  3087. }, { "style": { "height": "36px" } }).form; //创建窗体
  3088. _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); } }
  3089. break;
  3090. // studentGM
  3091. case "studentGM"://学生管理
  3092. _formdiv = new U.UF.UI.form(
  3093. "学生管理",
  3094. $$("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 }), {
  3095. "id": "studentGM",
  3096. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3097. "onresize": function () { }
  3098. }, {
  3099. closecallback: function () { }
  3100. }, { "style": { "height": "36px" } }).form; //创建窗体
  3101. _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); } }
  3102. break;
  3103. case "evaluateGM"://学生评价
  3104. _formdiv = new U.UF.UI.form(
  3105. "学生评价",
  3106. $$("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 }), {
  3107. "id": "evaluateGM",
  3108. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3109. "onresize": function () { }
  3110. }, {
  3111. closecallback: function () { }
  3112. }, { "style": { "height": "36px" } }).form; //创建窗体
  3113. _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); } }
  3114. break;
  3115. // classGM
  3116. case "classGM"://班级管理
  3117. _formdiv = new U.UF.UI.form(
  3118. "班级管理",
  3119. $$("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 }), {
  3120. "id": "classGM",
  3121. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3122. "onresize": function () { }
  3123. }, {
  3124. closecallback: function () { }
  3125. }, { "style": { "height": "36px" } }).form; //创建窗体
  3126. _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); } }
  3127. break;
  3128. // dataGM
  3129. case "dataGM":
  3130. _formdiv = new U.UF.UI.form(
  3131. "我的资料",
  3132. $$("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 }), {
  3133. "id": "dataGM",
  3134. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3135. "onresize": function () { }
  3136. }, {
  3137. closecallback: function () { }
  3138. }, { "style": { "height": "36px" } }).form; //创建窗体
  3139. _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); } }
  3140. break;
  3141. // caseGM
  3142. case "caseGM"://课程进展
  3143. _formdiv = new U.UF.UI.form(
  3144. "课程进展",
  3145. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesignGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3146. "id": "caseGM",
  3147. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3148. "onresize": function () { }
  3149. }, {
  3150. closecallback: function () { }
  3151. }, { "style": { "height": "36px" } }).form; //创建窗体
  3152. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/case.png)" }, "name": "课程进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3153. break;
  3154. // meterialGM
  3155. case "meterialGM"://素材库
  3156. _formdiv = new U.UF.UI.form(
  3157. "素材库",
  3158. $$("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 }), {
  3159. "id": "meterialGM",
  3160. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3161. "onresize": function () { }
  3162. }, {
  3163. closecallback: function () { }
  3164. }, { "style": { "height": "36px" } }).form; //创建窗体
  3165. _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); } }
  3166. break;
  3167. // evaluateSGM
  3168. case "evaluateSGM": //我的评价
  3169. _formdiv = new U.UF.UI.form(
  3170. "我的评价",
  3171. $$("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 }), {
  3172. "id": "evaluateSGM",
  3173. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3174. "onresize": function () { }
  3175. }, {
  3176. closecallback: function () { }
  3177. }, { "style": { "height": "36px" } }).form; //创建窗体
  3178. _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); } }
  3179. break;
  3180. case "jupyter": //jupyter
  3181. _formdiv = new U.UF.UI.form(
  3182. "jupyter",
  3183. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3184. "id": "jupyter",
  3185. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3186. "onresize": function () { }
  3187. }, {
  3188. closecallback: function () { }
  3189. }, { "style": { "height": "36px" } }).form; //创建窗体
  3190. _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); } }
  3191. break;
  3192. case "number": //数字实验室
  3193. _formdiv = new U.UF.UI.form(
  3194. "数字实验室",
  3195. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3196. "id": "number",
  3197. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3198. "onresize": function () { }
  3199. }, {
  3200. closecallback: function () { }
  3201. }, { "style": { "height": "36px" } }).form; //创建窗体
  3202. _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); } }
  3203. break;
  3204. case "studentCourse": //项目管理 学生
  3205. _formdiv = new U.UF.UI.form(
  3206. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3207. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studentCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3208. "id": "studentCourse",
  3209. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3210. "onresize": function () { }
  3211. }, {
  3212. closecallback: function () { }
  3213. }, { "style": { "height": "36px" } }).form; //创建窗体
  3214. _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); } }
  3215. break;
  3216. case "studentCourseS": //项目管理 老师
  3217. _formdiv = new U.UF.UI.form(
  3218. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3219. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/scourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3220. "id": "studentCourseS",
  3221. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3222. "onresize": function () { }
  3223. }, {
  3224. closecallback: function () { }
  3225. }, { "style": { "height": "36px" } }).form; //创建窗体
  3226. _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); } }
  3227. break;
  3228. case "studentIndex": //项目中心
  3229. _formdiv = new U.UF.UI.form(
  3230. "项目中心",
  3231. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studentIndex?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType + "&role=" + _role }), {
  3232. "id": "studentIndex",
  3233. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3234. "onresize": function () { }
  3235. }, {
  3236. closecallback: function () { }
  3237. }, { "style": { "height": "36px" } }).form; //创建窗体
  3238. _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); } }
  3239. break;
  3240. case "CaseDesignS":
  3241. _formdiv = new U.UF.UI.form(
  3242. "项目进展",
  3243. $$("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 }), {
  3244. "id": "case",
  3245. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3246. "onresize": function () { }
  3247. }, {
  3248. closecallback: function () { }
  3249. }, { "style": { "height": "36px" } }).form; //创建窗体
  3250. _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); } }
  3251. break;
  3252. case "tcStudent": //腾讯学生管理
  3253. _formdiv = new U.UF.UI.form(
  3254. "学生管理",
  3255. $$("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 }), {
  3256. "id": "tcStudent",
  3257. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3258. "onresize": function () { }
  3259. }, {
  3260. closecallback: function () { }
  3261. }, { "style": { "height": "36px" } }).form; //创建窗体
  3262. _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); } }
  3263. break;
  3264. case "tcSchool": //腾讯学校管理
  3265. _formdiv = new U.UF.UI.form(
  3266. "学校管理",
  3267. $$("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 }), {
  3268. "id": "tcSchool",
  3269. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3270. "onresize": function () { }
  3271. }, {
  3272. closecallback: function () { }
  3273. }, { "style": { "height": "36px" } }).form; //创建窗体
  3274. _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); } }
  3275. break;
  3276. case "tcTeacher": //腾讯学校管理
  3277. _formdiv = new U.UF.UI.form(
  3278. "教师管理",
  3279. $$("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 }), {
  3280. "id": "tcTeacher",
  3281. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3282. "onresize": function () { }
  3283. }, {
  3284. closecallback: function () { }
  3285. }, { "style": { "height": "36px" } }).form; //创建窗体
  3286. _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); } }
  3287. break;
  3288. case "tcData": //腾讯我的资料
  3289. _formdiv = new U.UF.UI.form(
  3290. "我的资料",
  3291. $$("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 }), {
  3292. "id": "tcData",
  3293. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3294. "onresize": function () { }
  3295. }, {
  3296. closecallback: function () { }
  3297. }, { "style": { "height": "36px" } }).form; //创建窗体
  3298. _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); } }
  3299. break;
  3300. case "tcNotice": //腾讯消息通知
  3301. _formdiv = new U.UF.UI.form(
  3302. "消息通知",
  3303. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcNotice?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3304. "id": "tcNotice",
  3305. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3306. "onresize": function () { }
  3307. }, {
  3308. closecallback: function () { }
  3309. }, { "style": { "height": "36px" } }).form; //创建窗体
  3310. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "消息通知", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3311. break;
  3312. case "myReport": //好友打开
  3313. _formdiv = new U.UF.UI.form(
  3314. "我的评价",
  3315. $$("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 }), {
  3316. "id": "myReport",
  3317. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3318. "onresize": function () { }
  3319. }, {
  3320. closecallback: function () { }
  3321. }, { "style": { "height": "36px" } }).form; //创建窗体
  3322. _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); } }
  3323. break;
  3324. case "learnAna": //好友打开
  3325. _formdiv = new U.UF.UI.form(
  3326. "学习分析",
  3327. $$("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 }), {
  3328. "id": "learnAna",
  3329. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3330. "onresize": function () { }
  3331. }, {
  3332. closecallback: function () { }
  3333. }, { "style": { "height": "36px" } }).form; //创建窗体
  3334. _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); } }
  3335. break;
  3336. case "AIChat": //AI共创
  3337. _formdiv = new U.UF.UI.form(
  3338. "AI共创",
  3339. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3340. "id": "AIChat",
  3341. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3342. "onresize": function () { }
  3343. }, {
  3344. istop: true,
  3345. closecallback: function () { $("#aichat_icon").remove(); },
  3346. narrowcallback: function () {
  3347. if (!$("#aichat_icon")[0]) {
  3348. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3349. }
  3350. },
  3351. }, { "style": { "height": "36px" } }).form; //创建窗体
  3352. _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); } }
  3353. break;
  3354. case "AIAnalyse": //AI共创
  3355. _formdiv = new U.UF.UI.form(
  3356. "AI分析",
  3357. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3358. "id": "AIAnalyse",
  3359. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3360. "onresize": function () { }
  3361. }, {
  3362. closecallback: function () { }
  3363. }, { "style": { "height": "36px" } }).form; //创建窗体
  3364. _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); } }
  3365. break;
  3366. case "studioCourse": //AI共创
  3367. _formdiv = new U.UF.UI.form(
  3368. "工作管理",
  3369. $$("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 }), {
  3370. "id": "studioCourse",
  3371. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3372. "onresize": function () { }
  3373. }, {
  3374. closecallback: function () { }
  3375. }, { "style": { "height": "36px" } }).form; //创建窗体
  3376. _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); } }
  3377. break;
  3378. case "studioIndex": //AI共创
  3379. _formdiv = new U.UF.UI.form(
  3380. "工作中心",
  3381. $$("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 }), {
  3382. "id": "studioIndex",
  3383. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3384. "onresize": function () { }
  3385. }, {
  3386. closecallback: function () { }
  3387. }, { "style": { "height": "36px" } }).form; //创建窗体
  3388. _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); } }
  3389. break;
  3390. case "source":
  3391. _formdiv = new U.UF.UI.form(
  3392. "教学资源",
  3393. $$("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 }), {
  3394. "id": "source",
  3395. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3396. "onresize": function () { }
  3397. }, {
  3398. closecallback: function () { }
  3399. }, { "style": { "height": "36px" } }).form; //创建窗体
  3400. _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); } }
  3401. break;
  3402. }
  3403. //U.MD.D.I.openClick(str);
  3404. //如果有任务栏信息
  3405. if (_taskbar) {
  3406. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3407. }
  3408. }
  3409. // U.MD.D.I.openClick = function(str){
  3410. // var click = '';
  3411. // switch(str){
  3412. // case 'friend':
  3413. // click = '我的好友';
  3414. // break;
  3415. // case 'domain':
  3416. // click = '域名管理';
  3417. // break;
  3418. // case 'disk':
  3419. // click = '我的云盘';
  3420. // break;
  3421. // case 'word':
  3422. // click = 'Word';
  3423. // break;
  3424. // case 'excel':
  3425. // click = 'Execl';
  3426. // break;
  3427. // case 'txt':
  3428. // click = '文本文件';
  3429. // break;
  3430. // case 'lookupFriend':
  3431. // click = '查找好友';
  3432. // break;
  3433. // case 'ftp':
  3434. // click = 'FTP';
  3435. // break;
  3436. // case 'group':
  3437. // click = '群组';
  3438. // break;
  3439. // case 'set':
  3440. // click = '我的设置';
  3441. // break;
  3442. // case 'systemSet':
  3443. // click = '系统设置';
  3444. // break;
  3445. // case 'boomYun':
  3446. // click = '互联办公';
  3447. // break;
  3448. // case 'xz':
  3449. // click = '云端下载';
  3450. // break;
  3451. // case 'client':
  3452. // click = '有思浏览器';
  3453. // break;
  3454. // case 'backEndProgramming':
  3455. // click = '在线后台编程';
  3456. // break;
  3457. // case 'frontEndProgramming':
  3458. // click = '在线前端编程';
  3459. // break;
  3460. // default: break;
  3461. // }
  3462. // if(U.MD.D.I.Ip && click){
  3463. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3464. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3465. // })
  3466. // }
  3467. // }
  3468. /**
  3469. *函数作用:ajax简易函数,使用post格式
  3470. *@param url {data} 后台地址
  3471. *@param data {data} 参数json
  3472. *@param fn {data} 回调函数
  3473. *
  3474. */
  3475. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3476. // var xhr = new XMLHttpRequest();
  3477. // xhr.open("GET",url,true);
  3478. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3479. // xhr.onreadystatechange = function(){
  3480. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3481. // fn.call(this,xhr.responseText);
  3482. // }
  3483. // };
  3484. // xhr.send();
  3485. // }
  3486. /*判断是否是内网IP*/
  3487. // U.MD.D.I.isInnerIPFn = function(str){
  3488. // var curPageUrl = str;
  3489. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3490. // curPageUrl =curPageUrl.replace(reg1,'');
  3491. // // console.log('curPageUrl-1 '+curPageUrl);
  3492. // var reg2 = /\:+/g;//替换冒号为一点
  3493. // curPageUrl =curPageUrl.replace(reg2,'.');
  3494. // // console.log('curPageUrl-2 '+curPageUrl);
  3495. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3496. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3497. // if(curPageUrl[2] != '16'){
  3498. // return ipAddress;
  3499. // }else{
  3500. // return false;
  3501. // }
  3502. // }
  3503. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3504. // //compatibility for firefox and chrome
  3505. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3506. // var pc = new myPeerConnection({
  3507. // iceServers: []
  3508. // }),
  3509. // noop = function() {},
  3510. // localIPs = {},
  3511. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3512. // key;
  3513. // function iterateIP(ip) {
  3514. // if (!localIPs[ip]) onNewIP(ip);
  3515. // localIPs[ip] = true;
  3516. // }
  3517. // //create a bogus data channel
  3518. // pc.createDataChannel("");
  3519. // // create offer and set local description
  3520. // pc.createOffer().then(function(sdp) {
  3521. // sdp.sdp.split('\n').forEach(function(line) {
  3522. // if (line.indexOf('candidate') < 0) return;
  3523. // line.match(ipRegex).forEach(iterateIP);
  3524. // });
  3525. // pc.setLocalDescription(sdp, noop, noop);
  3526. // }).catch(function(reason) {
  3527. // // An error occurred, so handle the failure to connect
  3528. // });
  3529. // //sten for candidate events
  3530. // pc.onicecandidate = function(ice) {
  3531. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3532. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3533. // };
  3534. // }
  3535. // U.MD.D.I.getUserIpBool = function(callback){
  3536. // U.MD.D.I.getUserIP(function(ip){
  3537. // alert("Got IP! :" + ip);
  3538. // });
  3539. //}
  3540. //#endregion
  3541. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3542. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3543. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3544. _userinfo = US.userInfo, //登录用户信息
  3545. _userid = US.userInfo.userid //登录用户id
  3546. let _iframe;
  3547. let _cid = cid,
  3548. _stage = stage,
  3549. _task = task,
  3550. _tool = tool;
  3551. var _jie = $$("div", {
  3552. "style": {
  3553. "position": "absolute",
  3554. "bottom": "50px",
  3555. "right": "50px",
  3556. "zIndex": "9999",
  3557. "backgroundColor": "#2268bc",
  3558. "color": "#fff",
  3559. "padding": "12px 20px",
  3560. "cursor": "pointer",
  3561. "borderRadius": "4px",
  3562. },
  3563. "innerHTML": "提交作业"
  3564. })
  3565. let aTool = ''
  3566. let _loading = document.createElement('div')
  3567. _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;"
  3568. // _loading.id = "";
  3569. let _lchild = document.createElement('div')
  3570. let _limg = document.createElement('img')
  3571. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3572. _limg.style = "width: 26px;margin-right: 10px;"
  3573. _lchild.appendChild(_limg)
  3574. let _lspan = document.createElement('span')
  3575. _lspan.innerHTML = "上传中..."
  3576. _lchild.appendChild(_lspan)
  3577. _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%);"
  3578. _loading.appendChild(_lchild)
  3579. var _box = $$('div', {
  3580. "style": {
  3581. "position": "relative",
  3582. "width": "100%",
  3583. "height": "100%",
  3584. },
  3585. })
  3586. _box.appendChild(_loading)
  3587. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool+_userid
  3588. switch (str) {
  3589. case "whiteboard":
  3590. aTool = 1;
  3591. _iframe = $$("iframe", {
  3592. "frameborder": "no",
  3593. "border": "0",
  3594. "scrolling ": "no",
  3595. "style": {
  3596. "cssText": "border:0;width:100%;height:100%"
  3597. },
  3598. "src": "https://iwb.cocorobo.cn/"
  3599. })
  3600. _box.appendChild(_iframe);
  3601. _box.appendChild(_jie);
  3602. _formdiv = new U.UF.UI.form(
  3603. "电子白板",
  3604. _box, {
  3605. "id": "whiteboard" + cid + stage + task + tool,
  3606. "style": {
  3607. "width": "90%",
  3608. "height": "90%",
  3609. "overflow": 'hidden'
  3610. },
  3611. "onresize": function () { }
  3612. }, {
  3613. closecallback: function () { }
  3614. }, {
  3615. "style": {
  3616. "height": "36px"
  3617. }
  3618. }).form; //创建窗体
  3619. _taskbar = {
  3620. "id": str + _formdiv.id,
  3621. "style": {
  3622. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3623. },
  3624. "name": "电子白板",
  3625. "forms": _formdiv,
  3626. "click": function () {
  3627. U.MD.D.I.openApplication(str, obj, info);
  3628. }
  3629. }
  3630. break;
  3631. case "mind":
  3632. aTool = 3;
  3633. _iframe = $$("iframe", {
  3634. "frameborder": "no",
  3635. "border": "0",
  3636. "scrolling ": "no",
  3637. "style": {
  3638. "cssText": "border:0;width:100%;height:100%"
  3639. },
  3640. "src": "/kityminder-editor/dist/index.html"
  3641. })
  3642. _box.appendChild(_iframe);
  3643. _box.appendChild(_jie);
  3644. _formdiv = new U.UF.UI.form(
  3645. "思维导图",
  3646. _box, { //"/jsmind/example/demo.html"
  3647. "id": "mind" + cid + stage + task + tool,
  3648. "style": {
  3649. "width": "90%",
  3650. "height": "90%",
  3651. "overflow": 'hidden'
  3652. },
  3653. "onresize": function () { }
  3654. }, {
  3655. closecallback: function () { }
  3656. }, {
  3657. "style": {
  3658. "height": "36px"
  3659. }
  3660. }).form; //创建窗体
  3661. _taskbar = {
  3662. "id": str + _formdiv.id,
  3663. "style": {
  3664. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3665. },
  3666. "name": "思维导图",
  3667. "forms": _formdiv,
  3668. "click": function () {
  3669. U.MD.D.I.openApplication(str, obj, info);
  3670. }
  3671. }
  3672. break;
  3673. case "MindMap":
  3674. aTool = 3;
  3675. _iframe = $$("iframe", {
  3676. "frameborder": "no",
  3677. "border": "0",
  3678. "scrolling ": "no",
  3679. "style": {
  3680. "cssText": "border:0;width:100%;height:100%"
  3681. },
  3682. "src": "//cloud.cocorobo.cn/mind/"
  3683. })
  3684. _box.appendChild(_iframe);
  3685. _box.appendChild(_jie);
  3686. _formdiv = new U.UF.UI.form(
  3687. "思维导图",
  3688. _box, { //"/jsmind/example/demo.html"
  3689. "id": "mind" + cid + stage + task + tool,
  3690. "style": {
  3691. "width": "90%",
  3692. "height": "90%",
  3693. "overflow": 'hidden'
  3694. },
  3695. "onresize": function () { }
  3696. }, {
  3697. closecallback: function () { }
  3698. }, {
  3699. "style": {
  3700. "height": "36px"
  3701. }
  3702. }).form; //创建窗体
  3703. _taskbar = {
  3704. "id": str + _formdiv.id,
  3705. "style": {
  3706. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3707. },
  3708. "name": "思维导图",
  3709. "forms": _formdiv,
  3710. "click": function () {
  3711. U.MD.D.I.openApplication(str, obj, info);
  3712. }
  3713. }
  3714. break;
  3715. case "doc":
  3716. aTool = 6;
  3717. _iframe = $$("iframe", {
  3718. "frameborder": "no",
  3719. "border": "0",
  3720. "scrolling ": "no",
  3721. "style": {
  3722. "cssText": "border:0;width:100%;height:100%"
  3723. },
  3724. "src": "/Office/Word/WordEditArea.htm"
  3725. })
  3726. _box.appendChild(_iframe);
  3727. _box.appendChild(_jie);
  3728. _formdiv = new U.UF.UI.form(
  3729. "协同文档",
  3730. _box, {
  3731. "id": "doc" + cid + stage + task + tool,
  3732. "style": {
  3733. "width": "90%",
  3734. "height": "90%",
  3735. "overflow": 'hidden'
  3736. },
  3737. "onresize": function () { }
  3738. }, {
  3739. closecallback: function () { }
  3740. }, {
  3741. "style": {
  3742. "height": "36px"
  3743. }
  3744. }).form; //创建窗体
  3745. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3746. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3747. })
  3748. _taskbar = {
  3749. "id": str + _formdiv.id,
  3750. "style": {
  3751. "backgroundImage": "url(/img/icon/doc.png)"
  3752. },
  3753. "name": "协同文档",
  3754. "forms": _formdiv,
  3755. "click": function () {
  3756. U.MD.D.I.openApplication(str, obj, info);
  3757. }
  3758. }
  3759. break;
  3760. case "mindNetwork": //好友打开
  3761. aTool = 7;
  3762. _iframe = $$("iframe", {
  3763. "webkitallowfullscreen": "",
  3764. "mozallowfullscreen": "",
  3765. "allowfullscreen": "",
  3766. "frameborder": "no",
  3767. "border": "0",
  3768. "scrolling ": "no",
  3769. "style": {
  3770. "cssText": "border:0; width:100%; height:100%;"
  3771. },
  3772. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3773. })
  3774. _box.appendChild(_iframe);
  3775. _box.appendChild(_jie);
  3776. _formdiv = new U.UF.UI.form(
  3777. "思维网格",
  3778. _box, {
  3779. "id": "mindNetwork" + cid + stage + task + tool,
  3780. "style": {
  3781. "width": "90%",
  3782. "height": "90%",
  3783. "overflow": 'hidden'
  3784. },
  3785. "onresize": function () { }
  3786. }, {
  3787. closecallback: function () { }
  3788. }, {
  3789. "style": {
  3790. "height": "36px"
  3791. }
  3792. }).form; //创建窗体
  3793. _taskbar = {
  3794. "id": str + _formdiv.id,
  3795. "style": {
  3796. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3797. },
  3798. "name": "思维网格",
  3799. "forms": _formdiv,
  3800. "click": function () {
  3801. U.MD.D.I.openApplication(str, obj, info);
  3802. }
  3803. }
  3804. break;
  3805. case "courseDesign":
  3806. _iframe = $$("iframe", {
  3807. "webkitallowfullscreen": "",
  3808. "mozallowfullscreen": "",
  3809. "allowfullscreen": "",
  3810. "frameborder": "no",
  3811. "border": "0",
  3812. "scrolling ": "no",
  3813. "style": {
  3814. "cssText": "border:0; width:100%; height:100%;"
  3815. },
  3816. "src": "/course-design-vue"
  3817. })
  3818. _box.appendChild(_iframe);
  3819. _box.appendChild(_jie);
  3820. _formdiv = new U.UF.UI.form(
  3821. "项目设计",
  3822. _box, {
  3823. "id": "courseDesign" + cid + stage + task + tool,
  3824. "style": {
  3825. "width": "90%",
  3826. "height": "90%",
  3827. "overflow": 'hidden'
  3828. },
  3829. "onresize": function () { }
  3830. }, {
  3831. closecallback: function () { }
  3832. }, {
  3833. "style": {
  3834. "height": "36px"
  3835. }
  3836. }).form; //创建窗体
  3837. _taskbar = {
  3838. "id": str + _formdiv.id,
  3839. "style": {
  3840. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3841. },
  3842. "name": "项目设计",
  3843. "forms": _formdiv,
  3844. "click": function () {
  3845. U.MD.D.I.openApplication(str, obj, info);
  3846. }
  3847. }
  3848. break;
  3849. }
  3850. const script1 = document.createElement("script");
  3851. script1.type = "text/javascript";
  3852. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3853. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3854. const script2 = document.createElement("script");
  3855. script2.type = "text/javascript";
  3856. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3857. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3858. const script3 = document.createElement("script");
  3859. script3.type = "text/javascript";
  3860. script3.charset = "UTF-8";
  3861. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3862. const script4 = document.createElement("script");
  3863. script4.type = "text/javascript";
  3864. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3865. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3866. if (_iframe) {
  3867. if (str == 'doc') {
  3868. _iframe = _formdiv.querySelector('iframe')
  3869. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3870. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3871. _iframe.contentWindow.document.body.appendChild(script1);
  3872. _iframe.contentWindow.document.body.appendChild(script2);
  3873. // _iframe.contentWindow.document.body.appendChild(script3);
  3874. _iframe.contentWindow.document.body.appendChild(script4);
  3875. })
  3876. if (onloadListener) {
  3877. _iframe.contentDocument.location.reload()
  3878. } else {
  3879. _iframe.contentDocument.location.reload()
  3880. }
  3881. } else if (str == 'courseDesign') {
  3882. U.UF.DL.iframeLoad(_iframe, function () {
  3883. // _iframe.contentWindow.U.MD.O.W.load();
  3884. // _iframe.contentWindow.document.body.appendChild(script1);
  3885. _iframe.contentWindow.document.body.appendChild(script2);
  3886. _iframe.contentWindow.document.body.appendChild(script4);
  3887. })
  3888. } else if (str == 'mind') {
  3889. _iframe = _formdiv.querySelector('iframe')
  3890. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3891. //
  3892. _iframe.contentWindow.document.body.appendChild(script1);
  3893. _iframe.contentWindow.document.body.appendChild(script2);
  3894. _iframe.contentWindow.document.body.appendChild(script4);
  3895. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3896. })
  3897. if (onloadListener) {
  3898. _iframe.contentDocument.location.reload()
  3899. } else {
  3900. _iframe.contentDocument.location.reload()
  3901. }
  3902. } else if (str == 'whiteboard') {
  3903. _iframe = _formdiv.querySelector('iframe')
  3904. let onloadListener = _iframe.onload = () => {
  3905. _iframe.contentWindow.document.body.appendChild(script1);
  3906. _iframe.contentWindow.document.body.appendChild(script2);
  3907. _iframe.contentWindow.document.body.appendChild(script4);
  3908. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3909. };
  3910. if (onloadListener) {
  3911. _iframe.contentDocument.location.reload()
  3912. } else {
  3913. _iframe.contentDocument.location.reload()
  3914. }
  3915. } else {
  3916. _iframe.onload = () => {
  3917. _iframe.contentWindow.document.body.appendChild(script1);
  3918. _iframe.contentWindow.document.body.appendChild(script2);
  3919. // _iframe.contentWindow.document.body.appendChild(script3);
  3920. _iframe.contentWindow.document.body.appendChild(script4);
  3921. };
  3922. }
  3923. _jie.onclick = async () => {
  3924. let text = ''
  3925. if (aTool == 1) {
  3926. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3927. } else if (aTool == 6) {
  3928. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3929. } else if (aTool == 3) {
  3930. text = await U.MD.D.I.getEditorContent(_iframe);
  3931. }
  3932. _loading.style.display = 'flex'
  3933. console.log(_loading);
  3934. var _ajs = _iframe.contentWindow.document.createElement("script");
  3935. _ajs.type = "text/javascript";
  3936. _ajs.innerHTML =
  3937. // 'console.log(' + _loading + ');\n' +
  3938. 'var _js = document.createElement("script");\n' +
  3939. '_js.type="text/javascript";\n' +
  3940. '_js.charset="UTF-8";\n' +
  3941. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3942. "_js.onload = function(){\n" +
  3943. ' var a = document.getElementsByTagName("img")\n' +
  3944. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3945. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3946. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3947. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3948. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3949. "beforeUpload_shishi(file," +
  3950. "'" +
  3951. _userid +
  3952. "'" +
  3953. ", " +
  3954. "'" +
  3955. _cid +
  3956. "'" +
  3957. ", " +
  3958. "'" +
  3959. _stage +
  3960. "'" +
  3961. ", " +
  3962. "'" +
  3963. _task +
  3964. "'" +
  3965. ", " +
  3966. "'" +
  3967. _tool +
  3968. "'" +
  3969. ", " +
  3970. "'" +
  3971. (str + '_loadLi_Jie' + cid + stage + task + tool+_userid) +
  3972. "'" +
  3973. ", " +
  3974. "'" +
  3975. aTool +
  3976. "'" +
  3977. ", " +
  3978. "`" +
  3979. text +
  3980. "`" +
  3981. ")\n" +
  3982. " });\n" +
  3983. "}\n" +
  3984. "document.head.appendChild(_js);\n";
  3985. _iframe.contentWindow.document.head.appendChild(_ajs);
  3986. }
  3987. }
  3988. //U.MD.D.I.openClick(str);
  3989. //如果有任务栏信息
  3990. // if (_taskbar) {
  3991. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3992. // }
  3993. }
  3994. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  3995. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3996. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3997. _userinfo = US.userInfo, //登录用户信息
  3998. _userid = US.userInfo.userid //登录用户id
  3999. let _iframe;
  4000. let _cid = cid,
  4001. _stage = stage,
  4002. _task = task,
  4003. _tool = tool;
  4004. var _jie = $$("div", {
  4005. "style": {
  4006. "position": "absolute",
  4007. "bottom": "50px",
  4008. "right": "50px",
  4009. "zIndex": "9999",
  4010. "backgroundColor": "#2268bc",
  4011. "color": "#fff",
  4012. "padding": "12px 20px",
  4013. "cursor": "pointer",
  4014. "borderRadius": "4px",
  4015. },
  4016. "innerHTML": "提交作业"
  4017. })
  4018. let aTool = ''
  4019. let _loading = document.createElement('div')
  4020. _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;"
  4021. // _loading.id = "";
  4022. let _lchild = document.createElement('div')
  4023. let _limg = document.createElement('img')
  4024. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4025. _limg.style = "width: 26px;margin-right: 10px;"
  4026. _lchild.appendChild(_limg)
  4027. let _lspan = document.createElement('span')
  4028. _lspan.innerHTML = "上传中..."
  4029. _lchild.appendChild(_lspan)
  4030. _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%);"
  4031. _loading.appendChild(_lchild)
  4032. var _box = $$('div', {
  4033. "style": {
  4034. "position": "relative",
  4035. "width": "100%",
  4036. "height": "100%",
  4037. },
  4038. })
  4039. _box.appendChild(_loading)
  4040. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool+_userid
  4041. switch (str) {
  4042. case "whiteboard":
  4043. aTool = 1;
  4044. _iframe = $$("iframe", {
  4045. "frameborder": "no",
  4046. "border": "0",
  4047. "scrolling ": "no",
  4048. "style": {
  4049. "cssText": "border:0;width:100%;height:100%"
  4050. },
  4051. "src": "https://iwb.cocorobo.cn/"
  4052. })
  4053. _box.appendChild(_iframe);
  4054. _box.appendChild(_jie);
  4055. _formdiv = new U.UF.UI.form(
  4056. "电子白板",
  4057. _box, {
  4058. "id": "whiteboard" + cid + stage + task + tool,
  4059. "style": {
  4060. "width": "90%",
  4061. "height": "90%",
  4062. "overflow": 'hidden'
  4063. },
  4064. "onresize": function () { }
  4065. }, {
  4066. closecallback: function () { }
  4067. }, {
  4068. "style": {
  4069. "height": "36px"
  4070. }
  4071. }).form; //创建窗体
  4072. _taskbar = {
  4073. "id": str + _formdiv.id,
  4074. "style": {
  4075. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4076. },
  4077. "name": "电子白板",
  4078. "forms": _formdiv,
  4079. "click": function () {
  4080. U.MD.D.I.openApplication(str, obj, info);
  4081. }
  4082. }
  4083. break;
  4084. case "mind":
  4085. aTool = 3;
  4086. _iframe = $$("iframe", {
  4087. "frameborder": "no",
  4088. "border": "0",
  4089. "scrolling ": "no",
  4090. "style": {
  4091. "cssText": "border:0;width:100%;height:100%"
  4092. },
  4093. "src": "/kityminder-editor/dist/index.html"
  4094. })
  4095. _box.appendChild(_iframe);
  4096. _box.appendChild(_jie);
  4097. _formdiv = new U.UF.UI.form(
  4098. "思维导图",
  4099. _box, { //"/jsmind/example/demo.html"
  4100. "id": "mind" + cid + stage + task + tool,
  4101. "style": {
  4102. "width": "90%",
  4103. "height": "90%",
  4104. "overflow": 'hidden'
  4105. },
  4106. "onresize": function () { }
  4107. }, {
  4108. closecallback: function () { }
  4109. }, {
  4110. "style": {
  4111. "height": "36px"
  4112. }
  4113. }).form; //创建窗体
  4114. _taskbar = {
  4115. "id": str + _formdiv.id,
  4116. "style": {
  4117. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4118. },
  4119. "name": "思维导图",
  4120. "forms": _formdiv,
  4121. "click": function () {
  4122. U.MD.D.I.openApplication(str, obj, info);
  4123. }
  4124. }
  4125. break;
  4126. case "MindMap":
  4127. aTool = 3;
  4128. _iframe = $$("iframe", {
  4129. "frameborder": "no",
  4130. "border": "0",
  4131. "scrolling ": "no",
  4132. "style": {
  4133. "cssText": "border:0;width:100%;height:100%"
  4134. },
  4135. "src": "//cloud.cocorobo.cn/mind/"
  4136. })
  4137. _box.appendChild(_iframe);
  4138. _box.appendChild(_jie);
  4139. _formdiv = new U.UF.UI.form(
  4140. "思维导图",
  4141. _box, { //"/jsmind/example/demo.html"
  4142. "id": "mind" + cid + stage + task + tool,
  4143. "style": {
  4144. "width": "90%",
  4145. "height": "90%",
  4146. "overflow": 'hidden'
  4147. },
  4148. "onresize": function () { }
  4149. }, {
  4150. closecallback: function () { }
  4151. }, {
  4152. "style": {
  4153. "height": "36px"
  4154. }
  4155. }).form; //创建窗体
  4156. _taskbar = {
  4157. "id": str + _formdiv.id,
  4158. "style": {
  4159. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4160. },
  4161. "name": "思维导图",
  4162. "forms": _formdiv,
  4163. "click": function () {
  4164. U.MD.D.I.openApplication(str, obj, info);
  4165. }
  4166. }
  4167. break;
  4168. case "doc":
  4169. aTool = 6;
  4170. _iframe = $$("iframe", {
  4171. "frameborder": "no",
  4172. "border": "0",
  4173. "scrolling ": "no",
  4174. "style": {
  4175. "cssText": "border:0;width:100%;height:100%"
  4176. },
  4177. "src": "/Office/Word/WordEditArea.htm"
  4178. })
  4179. _box.appendChild(_iframe);
  4180. _box.appendChild(_jie);
  4181. _formdiv = new U.UF.UI.form(
  4182. "协同文档",
  4183. _box, {
  4184. "id": "doc" + cid + stage + task + tool,
  4185. "style": {
  4186. "width": "90%",
  4187. "height": "90%",
  4188. "overflow": 'hidden'
  4189. },
  4190. "onresize": function () { }
  4191. }, {
  4192. closecallback: function () { }
  4193. }, {
  4194. "style": {
  4195. "height": "36px"
  4196. }
  4197. }).form; //创建窗体
  4198. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4199. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4200. })
  4201. _taskbar = {
  4202. "id": str + _formdiv.id,
  4203. "style": {
  4204. "backgroundImage": "url(/img/icon/doc.png)"
  4205. },
  4206. "name": "协同文档",
  4207. "forms": _formdiv,
  4208. "click": function () {
  4209. U.MD.D.I.openApplication(str, obj, info);
  4210. }
  4211. }
  4212. break;
  4213. case "mindNetwork": //好友打开
  4214. aTool = 7;
  4215. _iframe = $$("iframe", {
  4216. "webkitallowfullscreen": "",
  4217. "mozallowfullscreen": "",
  4218. "allowfullscreen": "",
  4219. "frameborder": "no",
  4220. "border": "0",
  4221. "scrolling ": "no",
  4222. "style": {
  4223. "cssText": "border:0; width:100%; height:100%;"
  4224. },
  4225. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4226. })
  4227. _box.appendChild(_iframe);
  4228. _box.appendChild(_jie);
  4229. _formdiv = new U.UF.UI.form(
  4230. "思维网格",
  4231. _box, {
  4232. "id": "mindNetwork" + cid + stage + task + tool,
  4233. "style": {
  4234. "width": "90%",
  4235. "height": "90%",
  4236. "overflow": 'hidden'
  4237. },
  4238. "onresize": function () { }
  4239. }, {
  4240. closecallback: function () { }
  4241. }, {
  4242. "style": {
  4243. "height": "36px"
  4244. }
  4245. }).form; //创建窗体
  4246. _taskbar = {
  4247. "id": str + _formdiv.id,
  4248. "style": {
  4249. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4250. },
  4251. "name": "思维网格",
  4252. "forms": _formdiv,
  4253. "click": function () {
  4254. U.MD.D.I.openApplication(str, obj, info);
  4255. }
  4256. }
  4257. break;
  4258. case "courseDesign":
  4259. _iframe = $$("iframe", {
  4260. "webkitallowfullscreen": "",
  4261. "mozallowfullscreen": "",
  4262. "allowfullscreen": "",
  4263. "frameborder": "no",
  4264. "border": "0",
  4265. "scrolling ": "no",
  4266. "style": {
  4267. "cssText": "border:0; width:100%; height:100%;"
  4268. },
  4269. "src": "/course-design-vue"
  4270. })
  4271. _box.appendChild(_iframe);
  4272. _box.appendChild(_jie);
  4273. _formdiv = new U.UF.UI.form(
  4274. "项目设计",
  4275. _box, {
  4276. "id": "courseDesign" + cid + stage + task + tool,
  4277. "style": {
  4278. "width": "90%",
  4279. "height": "90%",
  4280. "overflow": 'hidden'
  4281. },
  4282. "onresize": function () { }
  4283. }, {
  4284. closecallback: function () { }
  4285. }, {
  4286. "style": {
  4287. "height": "36px"
  4288. }
  4289. }).form; //创建窗体
  4290. _taskbar = {
  4291. "id": str + _formdiv.id,
  4292. "style": {
  4293. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4294. },
  4295. "name": "项目设计",
  4296. "forms": _formdiv,
  4297. "click": function () {
  4298. U.MD.D.I.openApplication(str, obj, info);
  4299. }
  4300. }
  4301. break;
  4302. }
  4303. const script1 = document.createElement("script");
  4304. script1.type = "text/javascript";
  4305. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4306. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4307. const script2 = document.createElement("script");
  4308. script2.type = "text/javascript";
  4309. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4310. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4311. const script3 = document.createElement("script");
  4312. script3.type = "text/javascript";
  4313. script3.charset = "UTF-8";
  4314. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4315. const script4 = document.createElement("script");
  4316. script4.type = "text/javascript";
  4317. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4318. script4.src = window.origin + "/js/Common/jietu2E.js";
  4319. if (_iframe) {
  4320. if (str == 'doc') {
  4321. _iframe = _formdiv.querySelector('iframe')
  4322. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4323. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4324. _iframe.contentWindow.document.body.appendChild(script1);
  4325. _iframe.contentWindow.document.body.appendChild(script2);
  4326. // _iframe.contentWindow.document.body.appendChild(script3);
  4327. _iframe.contentWindow.document.body.appendChild(script4);
  4328. })
  4329. if (onloadListener) {
  4330. _iframe.contentDocument.location.reload()
  4331. } else {
  4332. _iframe.contentDocument.location.reload()
  4333. }
  4334. } else if (str == 'courseDesign') {
  4335. U.UF.DL.iframeLoad(_iframe, function () {
  4336. // _iframe.contentWindow.U.MD.O.W.load();
  4337. // _iframe.contentWindow.document.body.appendChild(script1);
  4338. _iframe.contentWindow.document.body.appendChild(script2);
  4339. _iframe.contentWindow.document.body.appendChild(script4);
  4340. })
  4341. } else if (str == 'mind') {
  4342. _iframe = _formdiv.querySelector('iframe')
  4343. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4344. //
  4345. _iframe.contentWindow.document.body.appendChild(script1);
  4346. _iframe.contentWindow.document.body.appendChild(script2);
  4347. _iframe.contentWindow.document.body.appendChild(script4);
  4348. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4349. })
  4350. if (onloadListener) {
  4351. _iframe.contentDocument.location.reload()
  4352. } else {
  4353. _iframe.contentDocument.location.reload()
  4354. }
  4355. } else if (str == 'whiteboard') {
  4356. _iframe = _formdiv.querySelector('iframe')
  4357. let onloadListener = _iframe.onload = () => {
  4358. _iframe.contentWindow.document.body.appendChild(script1);
  4359. _iframe.contentWindow.document.body.appendChild(script2);
  4360. _iframe.contentWindow.document.body.appendChild(script4);
  4361. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4362. };
  4363. if (onloadListener) {
  4364. _iframe.contentDocument.location.reload()
  4365. } else {
  4366. _iframe.contentDocument.location.reload()
  4367. }
  4368. } else {
  4369. _iframe.onload = () => {
  4370. _iframe.contentWindow.document.body.appendChild(script1);
  4371. _iframe.contentWindow.document.body.appendChild(script2);
  4372. // _iframe.contentWindow.document.body.appendChild(script3);
  4373. _iframe.contentWindow.document.body.appendChild(script4);
  4374. };
  4375. }
  4376. _jie.onclick = async () => {
  4377. let text = ''
  4378. if (aTool == 1) {
  4379. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4380. } else if (aTool == 6) {
  4381. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4382. } else if (aTool == 3) {
  4383. text = await U.MD.D.I.getEditorContent(_iframe);
  4384. }
  4385. _loading.style.display = 'flex'
  4386. console.log(_loading);
  4387. var _ajs = _iframe.contentWindow.document.createElement("script");
  4388. _ajs.type = "text/javascript";
  4389. _ajs.innerHTML =
  4390. // 'console.log(' + _loading + ');\n' +
  4391. 'var _js = document.createElement("script");\n' +
  4392. '_js.type="text/javascript";\n' +
  4393. '_js.charset="UTF-8";\n' +
  4394. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4395. "_js.onload = function(){\n" +
  4396. ' var a = document.getElementsByTagName("img")\n' +
  4397. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4398. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4399. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4400. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4401. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4402. "beforeUpload_shishi(file," +
  4403. "'" +
  4404. _userid +
  4405. "'" +
  4406. ", " +
  4407. "'" +
  4408. _cid +
  4409. "'" +
  4410. ", " +
  4411. "'" +
  4412. _stage +
  4413. "'" +
  4414. ", " +
  4415. "'" +
  4416. _task +
  4417. "'" +
  4418. ", " +
  4419. "'" +
  4420. _tool +
  4421. "'" +
  4422. ", " +
  4423. "'" +
  4424. (str + '_loadLi_JieE' + cid + stage + task + tool+_userid) +
  4425. "'" +
  4426. ", " +
  4427. "'" +
  4428. aTool +
  4429. "'" +
  4430. ", " +
  4431. "`" +
  4432. text +
  4433. "`" +
  4434. ")\n" +
  4435. " });\n" +
  4436. "}\n" +
  4437. "document.head.appendChild(_js);\n";
  4438. _iframe.contentWindow.document.head.appendChild(_ajs);
  4439. }
  4440. }
  4441. //U.MD.D.I.openClick(str);
  4442. //如果有任务栏信息
  4443. // if (_taskbar) {
  4444. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4445. // }
  4446. }
  4447. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4448. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4449. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4450. _userid = student.userid, //登录用户id
  4451. _username = student.student //用户名字
  4452. let _iframe;
  4453. let _cid = cid,
  4454. _stage = stage,
  4455. _task = task,
  4456. _tool = tool;
  4457. var _jie = $$("div", {
  4458. "style": {
  4459. "position": "absolute",
  4460. "bottom": "50px",
  4461. "right": "50px",
  4462. "zIndex": "9999",
  4463. "backgroundColor": "#2268bc",
  4464. "color": "#fff",
  4465. "padding": "12px 20px",
  4466. "cursor": "pointer",
  4467. "borderRadius": "4px",
  4468. },
  4469. "innerHTML": "提交作业"
  4470. })
  4471. let aTool = ''
  4472. let _loading = document.createElement('div')
  4473. _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;"
  4474. // _loading.id = "";
  4475. let _lchild = document.createElement('div')
  4476. let _limg = document.createElement('img')
  4477. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4478. _limg.style = "width: 26px;margin-right: 10px;"
  4479. _lchild.appendChild(_limg)
  4480. let _lspan = document.createElement('span')
  4481. _lspan.innerHTML = "上传中..."
  4482. _lchild.appendChild(_lspan)
  4483. _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%);"
  4484. _loading.appendChild(_lchild)
  4485. var _box = $$('div', {
  4486. "style": {
  4487. "position": "relative",
  4488. "width": "100%",
  4489. "height": "100%",
  4490. },
  4491. })
  4492. _box.appendChild(_loading)
  4493. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid
  4494. switch (str) {
  4495. case "whiteboard":
  4496. aTool = 1;
  4497. _iframe = $$("iframe", {
  4498. "frameborder": "no",
  4499. "border": "0",
  4500. "scrolling ": "no",
  4501. "style": {
  4502. "cssText": "border:0;width:100%;height:100%"
  4503. },
  4504. "src": "https://iwb.cocorobo.cn/"
  4505. })
  4506. _box.appendChild(_iframe);
  4507. _box.appendChild(_jie);
  4508. _formdiv = new U.UF.UI.form(
  4509. "电子白板-" + _username,
  4510. _box, {
  4511. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4512. "style": {
  4513. "width": "90%",
  4514. "height": "90%",
  4515. "overflow": 'hidden'
  4516. },
  4517. "onresize": function () { }
  4518. }, {
  4519. closecallback: function () { }
  4520. }, {
  4521. "style": {
  4522. "height": "36px"
  4523. }
  4524. }).form; //创建窗体
  4525. _taskbar = {
  4526. "id": str + _formdiv.id,
  4527. "style": {
  4528. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4529. },
  4530. "name": "电子白板",
  4531. "forms": _formdiv,
  4532. "click": function () {
  4533. U.MD.D.I.openApplication(str, obj, info);
  4534. }
  4535. }
  4536. break;
  4537. case "mind":
  4538. aTool = 3;
  4539. _iframe = $$("iframe", {
  4540. "frameborder": "no",
  4541. "border": "0",
  4542. "scrolling ": "no",
  4543. "style": {
  4544. "cssText": "border:0;width:100%;height:100%"
  4545. },
  4546. "src": "/kityminder-editor/dist/index.html"
  4547. })
  4548. _box.appendChild(_iframe);
  4549. _box.appendChild(_jie);
  4550. _formdiv = new U.UF.UI.form(
  4551. "思维导图-" + _username,
  4552. _box, { //"/jsmind/example/demo.html"
  4553. "id": "mind" + cid + stage + task + tool + _userid,
  4554. "style": {
  4555. "width": "90%",
  4556. "height": "90%",
  4557. "overflow": 'hidden'
  4558. },
  4559. "onresize": function () { }
  4560. }, {
  4561. closecallback: function () { }
  4562. }, {
  4563. "style": {
  4564. "height": "36px"
  4565. }
  4566. }).form; //创建窗体
  4567. _taskbar = {
  4568. "id": str + _formdiv.id,
  4569. "style": {
  4570. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4571. },
  4572. "name": "思维导图",
  4573. "forms": _formdiv,
  4574. "click": function () {
  4575. U.MD.D.I.openApplication(str, obj, info);
  4576. }
  4577. }
  4578. break;
  4579. case "MindMap":
  4580. aTool = 3;
  4581. _iframe = $$("iframe", {
  4582. "frameborder": "no",
  4583. "border": "0",
  4584. "scrolling ": "no",
  4585. "style": {
  4586. "cssText": "border:0;width:100%;height:100%"
  4587. },
  4588. "src": "//cloud.cocorobo.cn/mind/"
  4589. })
  4590. _box.appendChild(_iframe);
  4591. _box.appendChild(_jie);
  4592. _formdiv = new U.UF.UI.form(
  4593. "思维导图-" + _username,
  4594. _box, { //"/jsmind/example/demo.html"
  4595. "id": "mind" + cid + stage + task + tool + _userid,
  4596. "style": {
  4597. "width": "90%",
  4598. "height": "90%",
  4599. "overflow": 'hidden'
  4600. },
  4601. "onresize": function () { }
  4602. }, {
  4603. closecallback: function () { }
  4604. }, {
  4605. "style": {
  4606. "height": "36px"
  4607. }
  4608. }).form; //创建窗体
  4609. _taskbar = {
  4610. "id": str + _formdiv.id,
  4611. "style": {
  4612. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4613. },
  4614. "name": "思维导图",
  4615. "forms": _formdiv,
  4616. "click": function () {
  4617. U.MD.D.I.openApplication(str, obj, info);
  4618. }
  4619. }
  4620. break;
  4621. case "doc":
  4622. aTool = 6;
  4623. _iframe = $$("iframe", {
  4624. "frameborder": "no",
  4625. "border": "0",
  4626. "scrolling ": "no",
  4627. "style": {
  4628. "cssText": "border:0;width:100%;height:100%"
  4629. },
  4630. "src": "/Office/Word/WordEditArea.htm"
  4631. })
  4632. _box.appendChild(_iframe);
  4633. _box.appendChild(_jie);
  4634. _formdiv = new U.UF.UI.form(
  4635. "协同文档-" + _username,
  4636. _box, {
  4637. "id": "doc" + cid + stage + task + tool + _userid,
  4638. "style": {
  4639. "width": "90%",
  4640. "height": "90%",
  4641. "overflow": 'hidden'
  4642. },
  4643. "onresize": function () { }
  4644. }, {
  4645. closecallback: function () { }
  4646. }, {
  4647. "style": {
  4648. "height": "36px"
  4649. }
  4650. }).form; //创建窗体
  4651. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4652. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4653. })
  4654. _taskbar = {
  4655. "id": str + _formdiv.id,
  4656. "style": {
  4657. "backgroundImage": "url(/img/icon/doc.png)"
  4658. },
  4659. "name": "协同文档",
  4660. "forms": _formdiv,
  4661. "click": function () {
  4662. U.MD.D.I.openApplication(str, obj, info);
  4663. }
  4664. }
  4665. break;
  4666. case "mindNetwork": //好友打开
  4667. aTool = 7;
  4668. _iframe = $$("iframe", {
  4669. "webkitallowfullscreen": "",
  4670. "mozallowfullscreen": "",
  4671. "allowfullscreen": "",
  4672. "frameborder": "no",
  4673. "border": "0",
  4674. "scrolling ": "no",
  4675. "style": {
  4676. "cssText": "border:0; width:100%; height:100%;"
  4677. },
  4678. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4679. })
  4680. _box.appendChild(_iframe);
  4681. _box.appendChild(_jie);
  4682. _formdiv = new U.UF.UI.form(
  4683. "思维网格-" + _username,
  4684. _box, {
  4685. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4686. "style": {
  4687. "width": "90%",
  4688. "height": "90%",
  4689. "overflow": 'hidden'
  4690. },
  4691. "onresize": function () { }
  4692. }, {
  4693. closecallback: function () { }
  4694. }, {
  4695. "style": {
  4696. "height": "36px"
  4697. }
  4698. }).form; //创建窗体
  4699. _taskbar = {
  4700. "id": str + _formdiv.id,
  4701. "style": {
  4702. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4703. },
  4704. "name": "思维网格",
  4705. "forms": _formdiv,
  4706. "click": function () {
  4707. U.MD.D.I.openApplication(str, obj, info);
  4708. }
  4709. }
  4710. break;
  4711. case "courseDesign":
  4712. _iframe = $$("iframe", {
  4713. "webkitallowfullscreen": "",
  4714. "mozallowfullscreen": "",
  4715. "allowfullscreen": "",
  4716. "frameborder": "no",
  4717. "border": "0",
  4718. "scrolling ": "no",
  4719. "style": {
  4720. "cssText": "border:0; width:100%; height:100%;"
  4721. },
  4722. "src": "/course-design-vue"
  4723. })
  4724. _box.appendChild(_iframe);
  4725. _box.appendChild(_jie);
  4726. _formdiv = new U.UF.UI.form(
  4727. "项目设计-" + _username,
  4728. _box, {
  4729. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4730. "style": {
  4731. "width": "90%",
  4732. "height": "90%",
  4733. "overflow": 'hidden'
  4734. },
  4735. "onresize": function () { }
  4736. }, {
  4737. closecallback: function () { }
  4738. }, {
  4739. "style": {
  4740. "height": "36px"
  4741. }
  4742. }).form; //创建窗体
  4743. _taskbar = {
  4744. "id": str + _formdiv.id,
  4745. "style": {
  4746. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4747. },
  4748. "name": "项目设计",
  4749. "forms": _formdiv,
  4750. "click": function () {
  4751. U.MD.D.I.openApplication(str, obj, info);
  4752. }
  4753. }
  4754. break;
  4755. }
  4756. const script1 = document.createElement("script");
  4757. script1.type = "text/javascript";
  4758. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4759. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4760. const script2 = document.createElement("script");
  4761. script2.type = "text/javascript";
  4762. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4763. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4764. const script3 = document.createElement("script");
  4765. script3.type = "text/javascript";
  4766. script3.charset = "UTF-8";
  4767. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4768. const script4 = document.createElement("script");
  4769. script4.type = "text/javascript";
  4770. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4771. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4772. if (_iframe) {
  4773. if (str == 'doc') {
  4774. _iframe = _formdiv.querySelector('iframe')
  4775. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4776. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4777. _iframe.contentWindow.document.body.appendChild(script1);
  4778. _iframe.contentWindow.document.body.appendChild(script2);
  4779. // _iframe.contentWindow.document.body.appendChild(script3);
  4780. _iframe.contentWindow.document.body.appendChild(script4);
  4781. })
  4782. if (onloadListener) {
  4783. _iframe.contentDocument.location.reload()
  4784. } else {
  4785. _iframe.contentDocument.location.reload()
  4786. }
  4787. } else if (str == 'courseDesign') {
  4788. U.UF.DL.iframeLoad(_iframe, function () {
  4789. // _iframe.contentWindow.U.MD.O.W.load();
  4790. // _iframe.contentWindow.document.body.appendChild(script1);
  4791. _iframe.contentWindow.document.body.appendChild(script2);
  4792. _iframe.contentWindow.document.body.appendChild(script4);
  4793. })
  4794. } else if (str == 'mind') {
  4795. _iframe = _formdiv.querySelector('iframe')
  4796. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4797. //
  4798. _iframe.contentWindow.document.body.appendChild(script1);
  4799. _iframe.contentWindow.document.body.appendChild(script2);
  4800. _iframe.contentWindow.document.body.appendChild(script4);
  4801. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4802. })
  4803. if (onloadListener) {
  4804. _iframe.contentDocument.location.reload()
  4805. } else {
  4806. _iframe.contentDocument.location.reload()
  4807. }
  4808. } else if (str == 'whiteboard') {
  4809. _iframe = _formdiv.querySelector('iframe')
  4810. let onloadListener = _iframe.onload = () => {
  4811. _iframe.contentWindow.document.body.appendChild(script1);
  4812. _iframe.contentWindow.document.body.appendChild(script2);
  4813. _iframe.contentWindow.document.body.appendChild(script4);
  4814. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4815. };
  4816. if (onloadListener) {
  4817. _iframe.contentDocument.location.reload()
  4818. } else {
  4819. _iframe.contentDocument.location.reload()
  4820. }
  4821. } else {
  4822. _iframe.onload = () => {
  4823. _iframe.contentWindow.document.body.appendChild(script1);
  4824. _iframe.contentWindow.document.body.appendChild(script2);
  4825. // _iframe.contentWindow.document.body.appendChild(script3);
  4826. _iframe.contentWindow.document.body.appendChild(script4);
  4827. };
  4828. }
  4829. _jie.onclick = async () => {
  4830. let text = ''
  4831. if (aTool == 1) {
  4832. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4833. } else if (aTool == 6) {
  4834. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4835. } else if (aTool == 3) {
  4836. text = await U.MD.D.I.getEditorContent(_iframe);
  4837. }
  4838. _loading.style.display = 'flex'
  4839. console.log(_loading);
  4840. var _ajs = _iframe.contentWindow.document.createElement("script");
  4841. _ajs.type = "text/javascript";
  4842. _ajs.innerHTML =
  4843. // 'console.log(' + _loading + ');\n' +
  4844. 'var _js = document.createElement("script");\n' +
  4845. '_js.type="text/javascript";\n' +
  4846. '_js.charset="UTF-8";\n' +
  4847. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4848. "_js.onload = function(){\n" +
  4849. ' var a = document.getElementsByTagName("img")\n' +
  4850. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4851. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4852. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4853. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4854. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4855. "beforeUpload_shishi(file," +
  4856. "'" +
  4857. _userid +
  4858. "'" +
  4859. ", " +
  4860. "'" +
  4861. _cid +
  4862. "'" +
  4863. ", " +
  4864. "'" +
  4865. _stage +
  4866. "'" +
  4867. ", " +
  4868. "'" +
  4869. _task +
  4870. "'" +
  4871. ", " +
  4872. "'" +
  4873. _tool +
  4874. "'" +
  4875. ", " +
  4876. "'" +
  4877. (str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid) +
  4878. "'" +
  4879. ", " +
  4880. "'" +
  4881. aTool +
  4882. "'" +
  4883. ", " +
  4884. "`" +
  4885. text +
  4886. "`" +
  4887. ")\n" +
  4888. " });\n" +
  4889. "}\n" +
  4890. "document.head.appendChild(_js);\n";
  4891. _iframe.contentWindow.document.head.appendChild(_ajs);
  4892. }
  4893. }
  4894. }
  4895. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  4896. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4897. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4898. _userid = student.userid, //登录用户id
  4899. _username = student.student //用户名字
  4900. let _iframe;
  4901. let _cid = cid,
  4902. _stage = stage,
  4903. _task = task,
  4904. _tool = tool;
  4905. var _jie = $$("div", {
  4906. "style": {
  4907. "position": "absolute",
  4908. "bottom": "50px",
  4909. "right": "50px",
  4910. "zIndex": "9999",
  4911. "backgroundColor": "#2268bc",
  4912. "color": "#fff",
  4913. "padding": "12px 20px",
  4914. "cursor": "pointer",
  4915. "borderRadius": "4px",
  4916. },
  4917. "innerHTML": "提交作业"
  4918. })
  4919. let aTool = ''
  4920. let _loading = document.createElement('div')
  4921. _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;"
  4922. // _loading.id = "";
  4923. let _lchild = document.createElement('div')
  4924. let _limg = document.createElement('img')
  4925. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4926. _limg.style = "width: 26px;margin-right: 10px;"
  4927. _lchild.appendChild(_limg)
  4928. let _lspan = document.createElement('span')
  4929. _lspan.innerHTML = "上传中..."
  4930. _lchild.appendChild(_lspan)
  4931. _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%);"
  4932. _loading.appendChild(_lchild)
  4933. var _box = $$('div', {
  4934. "style": {
  4935. "position": "relative",
  4936. "width": "100%",
  4937. "height": "100%",
  4938. },
  4939. })
  4940. _box.appendChild(_loading)
  4941. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  4942. switch (str) {
  4943. case "whiteboard":
  4944. aTool = 1;
  4945. _iframe = $$("iframe", {
  4946. "frameborder": "no",
  4947. "border": "0",
  4948. "scrolling ": "no",
  4949. "style": {
  4950. "cssText": "border:0;width:100%;height:100%"
  4951. },
  4952. "src": "https://iwb.cocorobo.cn/"
  4953. })
  4954. _box.appendChild(_iframe);
  4955. _box.appendChild(_jie);
  4956. _formdiv = new U.UF.UI.form(
  4957. "电子白板-" + _username,
  4958. _box, {
  4959. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4960. "style": {
  4961. "width": "90%",
  4962. "height": "90%",
  4963. "overflow": 'hidden'
  4964. },
  4965. "onresize": function () { }
  4966. }, {
  4967. closecallback: function () { }
  4968. }, {
  4969. "style": {
  4970. "height": "36px"
  4971. }
  4972. }).form; //创建窗体
  4973. _taskbar = {
  4974. "id": str + _formdiv.id,
  4975. "style": {
  4976. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4977. },
  4978. "name": "电子白板",
  4979. "forms": _formdiv,
  4980. "click": function () {
  4981. U.MD.D.I.openApplication(str, obj, info);
  4982. }
  4983. }
  4984. break;
  4985. case "mind":
  4986. aTool = 3;
  4987. _iframe = $$("iframe", {
  4988. "frameborder": "no",
  4989. "border": "0",
  4990. "scrolling ": "no",
  4991. "style": {
  4992. "cssText": "border:0;width:100%;height:100%"
  4993. },
  4994. "src": "/kityminder-editor/dist/index.html"
  4995. })
  4996. _box.appendChild(_iframe);
  4997. _box.appendChild(_jie);
  4998. _formdiv = new U.UF.UI.form(
  4999. "思维导图-" + _username,
  5000. _box, { //"/jsmind/example/demo.html"
  5001. "id": "mind" + cid + stage + task + tool + _userid,
  5002. "style": {
  5003. "width": "90%",
  5004. "height": "90%",
  5005. "overflow": 'hidden'
  5006. },
  5007. "onresize": function () { }
  5008. }, {
  5009. closecallback: function () { }
  5010. }, {
  5011. "style": {
  5012. "height": "36px"
  5013. }
  5014. }).form; //创建窗体
  5015. _taskbar = {
  5016. "id": str + _formdiv.id,
  5017. "style": {
  5018. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5019. },
  5020. "name": "思维导图",
  5021. "forms": _formdiv,
  5022. "click": function () {
  5023. U.MD.D.I.openApplication(str, obj, info);
  5024. }
  5025. }
  5026. break;
  5027. case "MindMap":
  5028. aTool = 3;
  5029. _iframe = $$("iframe", {
  5030. "frameborder": "no",
  5031. "border": "0",
  5032. "scrolling ": "no",
  5033. "style": {
  5034. "cssText": "border:0;width:100%;height:100%"
  5035. },
  5036. "src": "//cloud.cocorobo.cn/mind/"
  5037. })
  5038. _box.appendChild(_iframe);
  5039. _box.appendChild(_jie);
  5040. _formdiv = new U.UF.UI.form(
  5041. "思维导图-" + _username,
  5042. _box, { //"/jsmind/example/demo.html"
  5043. "id": "mind" + cid + stage + task + tool + _userid,
  5044. "style": {
  5045. "width": "90%",
  5046. "height": "90%",
  5047. "overflow": 'hidden'
  5048. },
  5049. "onresize": function () { }
  5050. }, {
  5051. closecallback: function () { }
  5052. }, {
  5053. "style": {
  5054. "height": "36px"
  5055. }
  5056. }).form; //创建窗体
  5057. _taskbar = {
  5058. "id": str + _formdiv.id,
  5059. "style": {
  5060. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5061. },
  5062. "name": "思维导图",
  5063. "forms": _formdiv,
  5064. "click": function () {
  5065. U.MD.D.I.openApplication(str, obj, info);
  5066. }
  5067. }
  5068. break;
  5069. case "doc":
  5070. aTool = 6;
  5071. _iframe = $$("iframe", {
  5072. "frameborder": "no",
  5073. "border": "0",
  5074. "scrolling ": "no",
  5075. "style": {
  5076. "cssText": "border:0;width:100%;height:100%"
  5077. },
  5078. "src": "/Office/Word/WordEditArea.htm"
  5079. })
  5080. _box.appendChild(_iframe);
  5081. _box.appendChild(_jie);
  5082. _formdiv = new U.UF.UI.form(
  5083. "协同文档-" + _username,
  5084. _box, {
  5085. "id": "doc" + cid + stage + task + tool + _userid,
  5086. "style": {
  5087. "width": "90%",
  5088. "height": "90%",
  5089. "overflow": 'hidden'
  5090. },
  5091. "onresize": function () { }
  5092. }, {
  5093. closecallback: function () { }
  5094. }, {
  5095. "style": {
  5096. "height": "36px"
  5097. }
  5098. }).form; //创建窗体
  5099. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5100. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5101. })
  5102. _taskbar = {
  5103. "id": str + _formdiv.id,
  5104. "style": {
  5105. "backgroundImage": "url(/img/icon/doc.png)"
  5106. },
  5107. "name": "协同文档",
  5108. "forms": _formdiv,
  5109. "click": function () {
  5110. U.MD.D.I.openApplication(str, obj, info);
  5111. }
  5112. }
  5113. break;
  5114. case "mindNetwork": //好友打开
  5115. aTool = 7;
  5116. _iframe = $$("iframe", {
  5117. "webkitallowfullscreen": "",
  5118. "mozallowfullscreen": "",
  5119. "allowfullscreen": "",
  5120. "frameborder": "no",
  5121. "border": "0",
  5122. "scrolling ": "no",
  5123. "style": {
  5124. "cssText": "border:0; width:100%; height:100%;"
  5125. },
  5126. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5127. })
  5128. _box.appendChild(_iframe);
  5129. _box.appendChild(_jie);
  5130. _formdiv = new U.UF.UI.form(
  5131. "思维网格-" + _username,
  5132. _box, {
  5133. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5134. "style": {
  5135. "width": "90%",
  5136. "height": "90%",
  5137. "overflow": 'hidden'
  5138. },
  5139. "onresize": function () { }
  5140. }, {
  5141. closecallback: function () { }
  5142. }, {
  5143. "style": {
  5144. "height": "36px"
  5145. }
  5146. }).form; //创建窗体
  5147. _taskbar = {
  5148. "id": str + _formdiv.id,
  5149. "style": {
  5150. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5151. },
  5152. "name": "思维网格",
  5153. "forms": _formdiv,
  5154. "click": function () {
  5155. U.MD.D.I.openApplication(str, obj, info);
  5156. }
  5157. }
  5158. break;
  5159. case "courseDesign":
  5160. _iframe = $$("iframe", {
  5161. "webkitallowfullscreen": "",
  5162. "mozallowfullscreen": "",
  5163. "allowfullscreen": "",
  5164. "frameborder": "no",
  5165. "border": "0",
  5166. "scrolling ": "no",
  5167. "style": {
  5168. "cssText": "border:0; width:100%; height:100%;"
  5169. },
  5170. "src": "/course-design-vue"
  5171. })
  5172. _box.appendChild(_iframe);
  5173. _box.appendChild(_jie);
  5174. _formdiv = new U.UF.UI.form(
  5175. "项目设计-" + _username,
  5176. _box, {
  5177. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5178. "style": {
  5179. "width": "90%",
  5180. "height": "90%",
  5181. "overflow": 'hidden'
  5182. },
  5183. "onresize": function () { }
  5184. }, {
  5185. closecallback: function () { }
  5186. }, {
  5187. "style": {
  5188. "height": "36px"
  5189. }
  5190. }).form; //创建窗体
  5191. _taskbar = {
  5192. "id": str + _formdiv.id,
  5193. "style": {
  5194. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5195. },
  5196. "name": "项目设计",
  5197. "forms": _formdiv,
  5198. "click": function () {
  5199. U.MD.D.I.openApplication(str, obj, info);
  5200. }
  5201. }
  5202. break;
  5203. }
  5204. const script1 = document.createElement("script");
  5205. script1.type = "text/javascript";
  5206. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5207. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5208. const script2 = document.createElement("script");
  5209. script2.type = "text/javascript";
  5210. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5211. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5212. const script3 = document.createElement("script");
  5213. script3.type = "text/javascript";
  5214. script3.charset = "UTF-8";
  5215. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5216. const script4 = document.createElement("script");
  5217. script4.type = "text/javascript";
  5218. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5219. script4.src = window.origin + "/js/Common/jietu2E.js";
  5220. if (_iframe) {
  5221. if (str == 'doc') {
  5222. _iframe = _formdiv.querySelector('iframe')
  5223. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5224. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5225. _iframe.contentWindow.document.body.appendChild(script1);
  5226. _iframe.contentWindow.document.body.appendChild(script2);
  5227. // _iframe.contentWindow.document.body.appendChild(script3);
  5228. _iframe.contentWindow.document.body.appendChild(script4);
  5229. })
  5230. if (onloadListener) {
  5231. _iframe.contentDocument.location.reload()
  5232. } else {
  5233. _iframe.contentDocument.location.reload()
  5234. }
  5235. } else if (str == 'courseDesign') {
  5236. U.UF.DL.iframeLoad(_iframe, function () {
  5237. // _iframe.contentWindow.U.MD.O.W.load();
  5238. // _iframe.contentWindow.document.body.appendChild(script1);
  5239. _iframe.contentWindow.document.body.appendChild(script2);
  5240. _iframe.contentWindow.document.body.appendChild(script4);
  5241. })
  5242. } else if (str == 'mind') {
  5243. _iframe = _formdiv.querySelector('iframe')
  5244. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5245. //
  5246. _iframe.contentWindow.document.body.appendChild(script1);
  5247. _iframe.contentWindow.document.body.appendChild(script2);
  5248. _iframe.contentWindow.document.body.appendChild(script4);
  5249. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5250. })
  5251. if (onloadListener) {
  5252. _iframe.contentDocument.location.reload()
  5253. } else {
  5254. _iframe.contentDocument.location.reload()
  5255. }
  5256. } else if (str == 'whiteboard') {
  5257. _iframe = _formdiv.querySelector('iframe')
  5258. let onloadListener = _iframe.onload = () => {
  5259. _iframe.contentWindow.document.body.appendChild(script1);
  5260. _iframe.contentWindow.document.body.appendChild(script2);
  5261. _iframe.contentWindow.document.body.appendChild(script4);
  5262. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5263. };
  5264. if (onloadListener) {
  5265. _iframe.contentDocument.location.reload()
  5266. } else {
  5267. _iframe.contentDocument.location.reload()
  5268. }
  5269. } else {
  5270. _iframe.onload = () => {
  5271. _iframe.contentWindow.document.body.appendChild(script1);
  5272. _iframe.contentWindow.document.body.appendChild(script2);
  5273. // _iframe.contentWindow.document.body.appendChild(script3);
  5274. _iframe.contentWindow.document.body.appendChild(script4);
  5275. };
  5276. }
  5277. _jie.onclick = async () => {
  5278. let text = ''
  5279. if (aTool == 1) {
  5280. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5281. } else if (aTool == 6) {
  5282. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5283. } else if (aTool == 3) {
  5284. text = await U.MD.D.I.getEditorContent(_iframe);
  5285. }
  5286. _loading.style.display = 'flex'
  5287. console.log(_loading);
  5288. var _ajs = _iframe.contentWindow.document.createElement("script");
  5289. _ajs.type = "text/javascript";
  5290. _ajs.innerHTML =
  5291. // 'console.log(' + _loading + ');\n' +
  5292. 'var _js = document.createElement("script");\n' +
  5293. '_js.type="text/javascript";\n' +
  5294. '_js.charset="UTF-8";\n' +
  5295. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5296. "_js.onload = function(){\n" +
  5297. ' var a = document.getElementsByTagName("img")\n' +
  5298. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5299. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5300. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5301. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5302. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5303. "beforeUpload_shishi(file," +
  5304. "'" +
  5305. _userid +
  5306. "'" +
  5307. ", " +
  5308. "'" +
  5309. _cid +
  5310. "'" +
  5311. ", " +
  5312. "'" +
  5313. _stage +
  5314. "'" +
  5315. ", " +
  5316. "'" +
  5317. _task +
  5318. "'" +
  5319. ", " +
  5320. "'" +
  5321. _tool +
  5322. "'" +
  5323. ", " +
  5324. "'" +
  5325. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool+_userid) +
  5326. "'" +
  5327. ", " +
  5328. "'" +
  5329. aTool +
  5330. "'" +
  5331. ", " +
  5332. "`" +
  5333. text +
  5334. "`" +
  5335. ")\n" +
  5336. " });\n" +
  5337. "}\n" +
  5338. "document.head.appendChild(_js);\n";
  5339. _iframe.contentWindow.document.head.appendChild(_ajs);
  5340. }
  5341. }
  5342. }
  5343. U.MD.D.I.getEditorContent = function (iframe) {
  5344. return new Promise((resolve, reject) => {
  5345. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5346. console.log(content);
  5347. resolve(content)
  5348. });
  5349. });
  5350. }
  5351. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5352. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5353. // if (res.value[0].length > 0) {
  5354. // // resolve(res.value[0][0].text);
  5355. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5356. // $(fileInput).val('');
  5357. // });
  5358. // }
  5359. // }, [], { "type": "GET", "withCredentials": true });
  5360. var xmlhttp;
  5361. var Mac, Sn, DeviceId
  5362. if (window.XMLHttpRequest) {
  5363. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5364. xmlhttp = new XMLHttpRequest();
  5365. }
  5366. else {
  5367. // IE6, IE5 浏览器执行代码
  5368. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5369. }
  5370. xmlhttp.onreadystatechange = function () {
  5371. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5372. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5373. // resolve(res.value[0][0].text);
  5374. if (type == '2') {
  5375. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  5376. } else if (type == '3') {
  5377. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5378. }
  5379. } else {
  5380. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5381. }
  5382. }
  5383. }
  5384. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5385. xmlhttp.send();
  5386. }
  5387. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5388. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5389. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5390. _userinfo = US.userInfo, //登录用户信息
  5391. _userid = US.userInfo.userid //登录用户id
  5392. let _iframe;
  5393. let _cid = cid,
  5394. _stage = stage,
  5395. _task = task,
  5396. _tool = tool;
  5397. var _jie = $$("div", {
  5398. "style": {
  5399. "position": "absolute",
  5400. "bottom": "50px",
  5401. "right": "50px",
  5402. "zIndex": "9999",
  5403. "backgroundColor": "#2268bc",
  5404. "color": "#fff",
  5405. "padding": "12px 20px",
  5406. "cursor": "pointer",
  5407. "borderRadius": "4px",
  5408. },
  5409. "innerHTML": "确认并提交"
  5410. })
  5411. let aTool = ''
  5412. let _loading = document.createElement('div')
  5413. _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;"
  5414. // _loading.id = "";
  5415. let _lchild = document.createElement('div')
  5416. let _limg = document.createElement('img')
  5417. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5418. _limg.style = "width: 26px;margin-right: 10px;"
  5419. _lchild.appendChild(_limg)
  5420. let _lspan = document.createElement('span')
  5421. _lspan.innerHTML = "上传中..."
  5422. _lchild.appendChild(_lspan)
  5423. _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%);"
  5424. _loading.appendChild(_lchild)
  5425. var _box = $$('div', {
  5426. "style": {
  5427. "position": "relative",
  5428. "width": "100%",
  5429. "height": "100%",
  5430. },
  5431. })
  5432. _box.appendChild(_loading)
  5433. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool+_userid
  5434. switch (str) {
  5435. case "whiteboard":
  5436. aTool = 1;
  5437. _iframe = $$("iframe", {
  5438. "frameborder": "no",
  5439. "border": "0",
  5440. "scrolling ": "no",
  5441. "style": {
  5442. "cssText": "border:0;width:100%;height:100%"
  5443. },
  5444. "src": "https://iwb.cocorobo.cn/"
  5445. })
  5446. _box.appendChild(_iframe);
  5447. _box.appendChild(_jie);
  5448. _formdiv = new U.UF.UI.form(
  5449. "电子白板",
  5450. _box, {
  5451. "id": "whiteboards" + cid + stage + task + tool,
  5452. "style": {
  5453. "width": "90%",
  5454. "height": "90%",
  5455. "overflow": 'hidden'
  5456. },
  5457. "onresize": function () { }
  5458. }, {
  5459. closecallback: function () { }
  5460. }, {
  5461. "style": {
  5462. "height": "36px"
  5463. }
  5464. }).form; //创建窗体
  5465. _taskbar = {
  5466. "id": str + _formdiv.id,
  5467. "style": {
  5468. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5469. },
  5470. "name": "电子白板",
  5471. "forms": _formdiv,
  5472. "click": function () {
  5473. U.MD.D.I.openApplication(str, obj, info);
  5474. }
  5475. }
  5476. break;
  5477. case "mind":
  5478. aTool = 3;
  5479. _iframe = $$("iframe", {
  5480. "frameborder": "no",
  5481. "border": "0",
  5482. "scrolling ": "no",
  5483. "style": {
  5484. "cssText": "border:0;width:100%;height:100%"
  5485. },
  5486. "src": "/kityminder-editor/dist/index.html"
  5487. });
  5488. _box.appendChild(_iframe);
  5489. _box.appendChild(_jie);
  5490. _formdiv = new U.UF.UI.form(
  5491. "思维导图",
  5492. _box, { //"/jsmind/example/demo.html"
  5493. "id": "minds" + cid + stage + task + tool,
  5494. "style": {
  5495. "width": "90%",
  5496. "height": "90%",
  5497. "overflow": 'hidden'
  5498. },
  5499. "onresize": function () { }
  5500. }, {
  5501. closecallback: function () { }
  5502. }, {
  5503. "style": {
  5504. "height": "36px"
  5505. }
  5506. }).form; //创建窗体
  5507. _taskbar = {
  5508. "id": str + _formdiv.id,
  5509. "style": {
  5510. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5511. },
  5512. "name": "思维导图",
  5513. "forms": _formdiv,
  5514. "click": function () {
  5515. U.MD.D.I.openApplication(str, obj, info);
  5516. }
  5517. }
  5518. break;
  5519. case "doc":
  5520. aTool = 6;
  5521. _iframe = $$("iframe", {
  5522. "frameborder": "no",
  5523. "border": "0",
  5524. "scrolling ": "no",
  5525. "style": {
  5526. "cssText": "border:0;width:100%;height:100%"
  5527. },
  5528. "src": "/Office/Word/WordEditArea.htm"
  5529. })
  5530. _box.appendChild(_iframe);
  5531. _box.appendChild(_jie);
  5532. _formdiv = new U.UF.UI.form(
  5533. "协同文档",
  5534. _box, {
  5535. "id": "docs" + cid + stage + task + tool,
  5536. "style": {
  5537. "width": "90%",
  5538. "height": "90%",
  5539. "overflow": 'hidden'
  5540. },
  5541. "onresize": function () { }
  5542. }, {
  5543. closecallback: function () { }
  5544. }, {
  5545. "style": {
  5546. "height": "36px"
  5547. }
  5548. }).form; //创建窗体
  5549. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5550. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5551. })
  5552. _taskbar = {
  5553. "id": str + _formdiv.id,
  5554. "style": {
  5555. "backgroundImage": "url(/img/icon/doc.png)"
  5556. },
  5557. "name": "协同文档",
  5558. "forms": _formdiv,
  5559. "click": function () {
  5560. U.MD.D.I.openApplication(str, obj, info);
  5561. }
  5562. }
  5563. break;
  5564. }
  5565. const script1 = document.createElement("script");
  5566. script1.type = "text/javascript";
  5567. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5568. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5569. const script2 = document.createElement("script");
  5570. script2.type = "text/javascript";
  5571. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5572. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5573. const script3 = document.createElement("script");
  5574. script3.type = "text/javascript";
  5575. script3.charset = "UTF-8";
  5576. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5577. const script4 = document.createElement("script");
  5578. script4.type = "text/javascript";
  5579. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5580. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5581. if (_iframe) {
  5582. if (str == 'doc') {
  5583. _iframe = _formdiv.querySelector('iframe')
  5584. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5585. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5586. _iframe.contentWindow.document.body.appendChild(script1);
  5587. _iframe.contentWindow.document.body.appendChild(script2);
  5588. // _iframe.contentWindow.document.body.appendChild(script3);
  5589. _iframe.contentWindow.document.body.appendChild(script4);
  5590. })
  5591. if (onloadListener) {
  5592. _iframe.contentDocument.location.reload()
  5593. } else {
  5594. _iframe.contentDocument.location.reload()
  5595. }
  5596. } else if (str == 'mind') {
  5597. _iframe = _formdiv.querySelector('iframe')
  5598. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5599. _iframe.contentWindow.document.body.appendChild(script1);
  5600. _iframe.contentWindow.document.body.appendChild(script2);
  5601. _iframe.contentWindow.document.body.appendChild(script4);
  5602. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5603. })
  5604. if (onloadListener) {
  5605. _iframe.contentDocument.location.reload()
  5606. } else {
  5607. _iframe.contentDocument.location.reload()
  5608. }
  5609. } else {
  5610. _iframe.onload = () => {
  5611. _iframe.contentWindow.document.body.appendChild(script1);
  5612. _iframe.contentWindow.document.body.appendChild(script2);
  5613. // _iframe.contentWindow.document.body.appendChild(script3);
  5614. _iframe.contentWindow.document.body.appendChild(script4);
  5615. };
  5616. }
  5617. _jie.onclick = async () => {
  5618. let text = ''
  5619. if (aTool == 6) {
  5620. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5621. } else if (aTool == 3) {
  5622. text = await U.MD.D.I.getEditorContent(_iframe);
  5623. }
  5624. _loading.style.display = 'flex'
  5625. console.log(_loading);
  5626. var _ajs = _iframe.contentWindow.document.createElement("script");
  5627. _ajs.type = "text/javascript";
  5628. _ajs.innerHTML =
  5629. // 'console.log(' + _loading + ');\n' +
  5630. 'var _js = document.createElement("script");\n' +
  5631. '_js.type="text/javascript";\n' +
  5632. '_js.charset="UTF-8";\n' +
  5633. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5634. "_js.onload = function(){\n" +
  5635. ' var a = document.getElementsByTagName("img")\n' +
  5636. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5637. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5638. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5639. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5640. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5641. "beforeUpload_shishi(file," +
  5642. "'" +
  5643. _userid +
  5644. "'" +
  5645. ", " +
  5646. "'" +
  5647. _cid +
  5648. "'" +
  5649. ", " +
  5650. "'" +
  5651. _stage +
  5652. "'" +
  5653. ", " +
  5654. "'" +
  5655. _task +
  5656. "'" +
  5657. ", " +
  5658. "'" +
  5659. _tool +
  5660. "'" +
  5661. ", " +
  5662. "'" +
  5663. (str + '_loadLi_JieS' + cid + stage + task + tool+_userid) +
  5664. "'" +
  5665. ", " +
  5666. "'" +
  5667. aTool +
  5668. "'" +
  5669. ", " +
  5670. "`" +
  5671. text +
  5672. "`" +
  5673. ")\n" +
  5674. " });\n" +
  5675. "}\n" +
  5676. "document.head.appendChild(_js);\n";
  5677. _iframe.contentWindow.document.head.appendChild(_ajs);
  5678. }
  5679. }
  5680. //U.MD.D.I.openClick(str);
  5681. //如果有任务栏信息
  5682. // if (_taskbar) {
  5683. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5684. // }
  5685. }
  5686. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  5687. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5688. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5689. _userinfo = US.userInfo, //登录用户信息
  5690. _userid = US.userInfo.userid //登录用户id
  5691. let _iframe;
  5692. let _cid = cid,
  5693. _stage = stage,
  5694. _task = task,
  5695. _tool = tool;
  5696. var _jie = $$("div", {
  5697. "style": {
  5698. "position": "absolute",
  5699. "bottom": "50px",
  5700. "right": "50px",
  5701. "zIndex": "9999",
  5702. "backgroundColor": "#2268bc",
  5703. "color": "#fff",
  5704. "padding": "12px 20px",
  5705. "cursor": "pointer",
  5706. "borderRadius": "4px",
  5707. },
  5708. "innerHTML": "确认并提交"
  5709. })
  5710. let aTool = ''
  5711. let _loading = document.createElement('div')
  5712. _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;"
  5713. // _loading.id = "";
  5714. let _lchild = document.createElement('div')
  5715. let _limg = document.createElement('img')
  5716. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5717. _limg.style = "width: 26px;margin-right: 10px;"
  5718. _lchild.appendChild(_limg)
  5719. let _lspan = document.createElement('span')
  5720. _lspan.innerHTML = "上传中..."
  5721. _lchild.appendChild(_lspan)
  5722. _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%);"
  5723. _loading.appendChild(_lchild)
  5724. var _box = $$('div', {
  5725. "style": {
  5726. "position": "relative",
  5727. "width": "100%",
  5728. "height": "100%",
  5729. },
  5730. })
  5731. _box.appendChild(_loading)
  5732. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid
  5733. switch (str) {
  5734. case "whiteboard":
  5735. aTool = 1;
  5736. _iframe = $$("iframe", {
  5737. "frameborder": "no",
  5738. "border": "0",
  5739. "scrolling ": "no",
  5740. "style": {
  5741. "cssText": "border:0;width:100%;height:100%"
  5742. },
  5743. "src": "https://iwb.cocorobo.cn/"
  5744. })
  5745. _box.appendChild(_iframe);
  5746. _box.appendChild(_jie);
  5747. _formdiv = new U.UF.UI.form(
  5748. "电子白板",
  5749. _box, {
  5750. "id": "whiteboards" + cid + stage + task + tool,
  5751. "style": {
  5752. "width": "90%",
  5753. "height": "90%",
  5754. "overflow": 'hidden'
  5755. },
  5756. "onresize": function () { }
  5757. }, {
  5758. closecallback: function () { }
  5759. }, {
  5760. "style": {
  5761. "height": "36px"
  5762. }
  5763. }).form; //创建窗体
  5764. _taskbar = {
  5765. "id": str + _formdiv.id,
  5766. "style": {
  5767. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5768. },
  5769. "name": "电子白板",
  5770. "forms": _formdiv,
  5771. "click": function () {
  5772. U.MD.D.I.openApplication(str, obj, info);
  5773. }
  5774. }
  5775. break;
  5776. case "mind":
  5777. aTool = 3;
  5778. _iframe = $$("iframe", {
  5779. "frameborder": "no",
  5780. "border": "0",
  5781. "scrolling ": "no",
  5782. "style": {
  5783. "cssText": "border:0;width:100%;height:100%"
  5784. },
  5785. "src": "/kityminder-editor/dist/index.html"
  5786. });
  5787. _box.appendChild(_iframe);
  5788. _box.appendChild(_jie);
  5789. _formdiv = new U.UF.UI.form(
  5790. "思维导图",
  5791. _box, { //"/jsmind/example/demo.html"
  5792. "id": "minds" + cid + stage + task + tool,
  5793. "style": {
  5794. "width": "90%",
  5795. "height": "90%",
  5796. "overflow": 'hidden'
  5797. },
  5798. "onresize": function () { }
  5799. }, {
  5800. closecallback: function () { }
  5801. }, {
  5802. "style": {
  5803. "height": "36px"
  5804. }
  5805. }).form; //创建窗体
  5806. _taskbar = {
  5807. "id": str + _formdiv.id,
  5808. "style": {
  5809. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5810. },
  5811. "name": "思维导图",
  5812. "forms": _formdiv,
  5813. "click": function () {
  5814. U.MD.D.I.openApplication(str, obj, info);
  5815. }
  5816. }
  5817. break;
  5818. case "doc":
  5819. aTool = 6;
  5820. _iframe = $$("iframe", {
  5821. "frameborder": "no",
  5822. "border": "0",
  5823. "scrolling ": "no",
  5824. "style": {
  5825. "cssText": "border:0;width:100%;height:100%"
  5826. },
  5827. "src": "/Office/Word/WordEditArea.htm"
  5828. })
  5829. _box.appendChild(_iframe);
  5830. _box.appendChild(_jie);
  5831. _formdiv = new U.UF.UI.form(
  5832. "协同文档",
  5833. _box, {
  5834. "id": "docs" + cid + stage + task + tool,
  5835. "style": {
  5836. "width": "90%",
  5837. "height": "90%",
  5838. "overflow": 'hidden'
  5839. },
  5840. "onresize": function () { }
  5841. }, {
  5842. closecallback: function () { }
  5843. }, {
  5844. "style": {
  5845. "height": "36px"
  5846. }
  5847. }).form; //创建窗体
  5848. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5849. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5850. })
  5851. _taskbar = {
  5852. "id": str + _formdiv.id,
  5853. "style": {
  5854. "backgroundImage": "url(/img/icon/doc.png)"
  5855. },
  5856. "name": "协同文档",
  5857. "forms": _formdiv,
  5858. "click": function () {
  5859. U.MD.D.I.openApplication(str, obj, info);
  5860. }
  5861. }
  5862. break;
  5863. }
  5864. const script1 = document.createElement("script");
  5865. script1.type = "text/javascript";
  5866. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5867. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5868. const script2 = document.createElement("script");
  5869. script2.type = "text/javascript";
  5870. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5871. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5872. const script3 = document.createElement("script");
  5873. script3.type = "text/javascript";
  5874. script3.charset = "UTF-8";
  5875. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5876. const script4 = document.createElement("script");
  5877. script4.type = "text/javascript";
  5878. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5879. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  5880. if (_iframe) {
  5881. if (str == 'doc') {
  5882. _iframe = _formdiv.querySelector('iframe')
  5883. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5884. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5885. _iframe.contentWindow.document.body.appendChild(script1);
  5886. _iframe.contentWindow.document.body.appendChild(script2);
  5887. // _iframe.contentWindow.document.body.appendChild(script3);
  5888. _iframe.contentWindow.document.body.appendChild(script4);
  5889. })
  5890. if (onloadListener) {
  5891. _iframe.contentDocument.location.reload()
  5892. } else {
  5893. _iframe.contentDocument.location.reload()
  5894. }
  5895. } else if (str == 'mind') {
  5896. _iframe = _formdiv.querySelector('iframe')
  5897. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5898. _iframe.contentWindow.document.body.appendChild(script1);
  5899. _iframe.contentWindow.document.body.appendChild(script2);
  5900. _iframe.contentWindow.document.body.appendChild(script4);
  5901. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5902. })
  5903. if (onloadListener) {
  5904. _iframe.contentDocument.location.reload()
  5905. } else {
  5906. _iframe.contentDocument.location.reload()
  5907. }
  5908. } else {
  5909. _iframe.onload = () => {
  5910. _iframe.contentWindow.document.body.appendChild(script1);
  5911. _iframe.contentWindow.document.body.appendChild(script2);
  5912. // _iframe.contentWindow.document.body.appendChild(script3);
  5913. _iframe.contentWindow.document.body.appendChild(script4);
  5914. };
  5915. }
  5916. _jie.onclick = async () => {
  5917. let text = ''
  5918. if (aTool == 6) {
  5919. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5920. } else if (aTool == 3) {
  5921. text = await U.MD.D.I.getEditorContent(_iframe);
  5922. }
  5923. _loading.style.display = 'flex'
  5924. console.log(_loading);
  5925. var _ajs = _iframe.contentWindow.document.createElement("script");
  5926. _ajs.type = "text/javascript";
  5927. _ajs.innerHTML =
  5928. // 'console.log(' + _loading + ');\n' +
  5929. 'var _js = document.createElement("script");\n' +
  5930. '_js.type="text/javascript";\n' +
  5931. '_js.charset="UTF-8";\n' +
  5932. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5933. "_js.onload = function(){\n" +
  5934. ' var a = document.getElementsByTagName("img")\n' +
  5935. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5936. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5937. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5938. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5939. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5940. "beforeUpload_shishi(file," +
  5941. "'" +
  5942. _userid +
  5943. "'" +
  5944. ", " +
  5945. "'" +
  5946. _cid +
  5947. "'" +
  5948. ", " +
  5949. "'" +
  5950. _stage +
  5951. "'" +
  5952. ", " +
  5953. "'" +
  5954. _task +
  5955. "'" +
  5956. ", " +
  5957. "'" +
  5958. _tool +
  5959. "'" +
  5960. ", " +
  5961. "'" +
  5962. (str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid) +
  5963. "'" +
  5964. ", " +
  5965. "'" +
  5966. aTool +
  5967. "'" +
  5968. ", " +
  5969. "`" +
  5970. text +
  5971. "`" +
  5972. ")\n" +
  5973. " });\n" +
  5974. "}\n" +
  5975. "document.head.appendChild(_js);\n";
  5976. _iframe.contentWindow.document.head.appendChild(_ajs);
  5977. }
  5978. }
  5979. //U.MD.D.I.openClick(str);
  5980. //如果有任务栏信息
  5981. // if (_taskbar) {
  5982. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5983. // }
  5984. }
  5985. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  5986. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5987. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5988. _userinfo = US.userInfo, //登录用户信息
  5989. _userid = US.userInfo.userid //登录用户id
  5990. let _iframe;
  5991. let _cid = cid,
  5992. _stage = stage,
  5993. _task = task,
  5994. _tool = tool;
  5995. var _jie = $$("div", {
  5996. "style": {
  5997. "position": "absolute",
  5998. "bottom": "50px",
  5999. "right": "50px",
  6000. "zIndex": "9999",
  6001. "backgroundColor": "#2268bc",
  6002. "color": "#fff",
  6003. "padding": "12px 20px",
  6004. "cursor": "pointer",
  6005. "borderRadius": "4px",
  6006. },
  6007. "innerHTML": "上传模板"
  6008. })
  6009. let aTool = ''
  6010. let _loading = document.createElement('div')
  6011. _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;"
  6012. // _loading.id = "";
  6013. let _lchild = document.createElement('div')
  6014. let _limg = document.createElement('img')
  6015. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6016. _limg.style = "width: 26px;margin-right: 10px;"
  6017. _lchild.appendChild(_limg)
  6018. let _lspan = document.createElement('span')
  6019. _lspan.innerHTML = "上传中..."
  6020. _lchild.appendChild(_lspan)
  6021. _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%);"
  6022. _loading.appendChild(_lchild)
  6023. var _box = $$('div', {
  6024. "style": {
  6025. "position": "relative",
  6026. "width": "100%",
  6027. "height": "100%",
  6028. },
  6029. })
  6030. _box.appendChild(_loading)
  6031. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool+_userid
  6032. switch (str) {
  6033. case "whiteboard":
  6034. aTool = 1;
  6035. _iframe = $$("iframe", {
  6036. "frameborder": "no",
  6037. "border": "0",
  6038. "scrolling ": "no",
  6039. "style": {
  6040. "cssText": "border:0;width:100%;height:100%"
  6041. },
  6042. "src": "https://iwb.cocorobo.cn/"
  6043. })
  6044. _box.appendChild(_iframe);
  6045. _box.appendChild(_jie);
  6046. _formdiv = new U.UF.UI.form(
  6047. "电子白板",
  6048. _box, {
  6049. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6050. "style": {
  6051. "width": "90%",
  6052. "height": "90%",
  6053. "overflow": 'hidden'
  6054. },
  6055. "onresize": function () { }
  6056. }, {
  6057. closecallback: function () { }
  6058. }, {
  6059. "style": {
  6060. "height": "36px"
  6061. }
  6062. }).form; //创建窗体
  6063. _taskbar = {
  6064. "id": str + _formdiv.id,
  6065. "style": {
  6066. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6067. },
  6068. "name": "电子白板",
  6069. "forms": _formdiv,
  6070. "click": function () {
  6071. U.MD.D.I.openApplication(str, obj, info);
  6072. }
  6073. }
  6074. break;
  6075. case "mind":
  6076. aTool = 3;
  6077. _iframe = $$("iframe", {
  6078. "frameborder": "no",
  6079. "border": "0",
  6080. "scrolling ": "no",
  6081. "style": {
  6082. "cssText": "border:0;width:100%;height:100%"
  6083. },
  6084. "src": "/kityminder-editor/dist/index.html"
  6085. });
  6086. _box.appendChild(_iframe);
  6087. _box.appendChild(_jie);
  6088. _formdiv = new U.UF.UI.form(
  6089. "思维导图",
  6090. _box, { //"/jsmind/example/demo.html"
  6091. "id": "minds_Yu" + cid + stage + task + tool,
  6092. "style": {
  6093. "width": "90%",
  6094. "height": "90%",
  6095. "overflow": 'hidden'
  6096. },
  6097. "onresize": function () { }
  6098. }, {
  6099. closecallback: function () { }
  6100. }, {
  6101. "style": {
  6102. "height": "36px"
  6103. }
  6104. }).form; //创建窗体
  6105. _taskbar = {
  6106. "id": str + _formdiv.id,
  6107. "style": {
  6108. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6109. },
  6110. "name": "思维导图",
  6111. "forms": _formdiv,
  6112. "click": function () {
  6113. U.MD.D.I.openApplication(str, obj, info);
  6114. }
  6115. }
  6116. break;
  6117. case "doc":
  6118. aTool = 6;
  6119. _iframe = $$("iframe", {
  6120. "frameborder": "no",
  6121. "border": "0",
  6122. "scrolling ": "no",
  6123. "style": {
  6124. "cssText": "border:0;width:100%;height:100%"
  6125. },
  6126. "src": "/Office/Word/WordEditArea.htm"
  6127. })
  6128. _box.appendChild(_iframe);
  6129. _box.appendChild(_jie);
  6130. _formdiv = new U.UF.UI.form(
  6131. "协同文档",
  6132. _box, {
  6133. "id": "docs_Yu" + cid + stage + task + tool,
  6134. "style": {
  6135. "width": "90%",
  6136. "height": "90%",
  6137. "overflow": 'hidden'
  6138. },
  6139. "onresize": function () { }
  6140. }, {
  6141. closecallback: function () { }
  6142. }, {
  6143. "style": {
  6144. "height": "36px"
  6145. }
  6146. }).form; //创建窗体
  6147. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6148. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6149. })
  6150. _taskbar = {
  6151. "id": str + _formdiv.id,
  6152. "style": {
  6153. "backgroundImage": "url(/img/icon/doc.png)"
  6154. },
  6155. "name": "协同文档",
  6156. "forms": _formdiv,
  6157. "click": function () {
  6158. U.MD.D.I.openApplication(str, obj, info);
  6159. }
  6160. }
  6161. break;
  6162. case "CocoPi":
  6163. aTool = 57;
  6164. _iframe = $$("iframe", {
  6165. "allowpaymentrequest":"allowpaymentrequest",
  6166. "allow": "camera *; microphone *;display-capture;usb",
  6167. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6168. "frameborder": "no",
  6169. "border": "0",
  6170. "scrolling ": "no",
  6171. "style": {
  6172. "cssText": "border:0;width:100%;height:100%"
  6173. },
  6174. "src": "https://beta.v.cocorobo.cn/"
  6175. })
  6176. _box.appendChild(_iframe);
  6177. _box.appendChild(_jie);
  6178. _formdiv = new U.UF.UI.form(
  6179. "CocoPi",
  6180. _box, {
  6181. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6182. "style": {
  6183. "width": "90%",
  6184. "height": "90%",
  6185. "overflow": 'hidden'
  6186. },
  6187. "onresize": function () { }
  6188. }, {
  6189. closecallback: function () { }
  6190. }, {
  6191. "style": {
  6192. "height": "36px"
  6193. }
  6194. }).form; //创建窗体
  6195. _taskbar = {
  6196. "id": str + _formdiv.id,
  6197. "style": {
  6198. "backgroundImage": "url(/img/icon/cocopi.png)"
  6199. },
  6200. "name": "CocoPi",
  6201. "forms": _formdiv,
  6202. "click": function () {
  6203. U.MD.D.I.openApplication(str, obj, info);
  6204. }
  6205. }
  6206. break;
  6207. }
  6208. if (_iframe) {
  6209. if (str == 'doc') {
  6210. _iframe = _formdiv.querySelector('iframe')
  6211. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6212. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6213. })
  6214. if (onloadListener) {
  6215. _iframe.contentDocument.location.reload()
  6216. } else {
  6217. _iframe.contentDocument.location.reload()
  6218. }
  6219. } else if (str == 'mind') {
  6220. _iframe = _formdiv.querySelector('iframe')
  6221. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6222. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6223. })
  6224. if (onloadListener) {
  6225. _iframe.contentDocument.location.reload()
  6226. } else {
  6227. _iframe.contentDocument.location.reload()
  6228. }
  6229. } else if (str == 'whiteboard') {
  6230. _iframe = _formdiv.querySelector('iframe')
  6231. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6232. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6233. })
  6234. if (onloadListener) {
  6235. _iframe.contentDocument.location.reload()
  6236. } else {
  6237. _iframe.contentDocument.location.reload()
  6238. }
  6239. } else if (str == 'CocoPi') {
  6240. _iframe = _formdiv.querySelector('iframe')
  6241. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6242. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6243. })
  6244. if (onloadListener) {
  6245. _iframe.contentDocument.location.reload()
  6246. } else {
  6247. _iframe.contentDocument.location.reload()
  6248. }
  6249. } else {
  6250. _iframe.onload = () => {
  6251. };
  6252. }
  6253. _jie.onclick = async () => {
  6254. let text = ''
  6255. let type = '2'
  6256. if (aTool == 1) {
  6257. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6258. type = '3'
  6259. } else if (aTool == 6) {
  6260. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6261. type = '1'
  6262. } else if (aTool == 3) {
  6263. text = await U.MD.D.I.getEditorContent(_iframe);
  6264. type = '2'
  6265. } else if (aTool == 57) {
  6266. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6267. type = '4'
  6268. }
  6269. _loading.style.display = 'flex'
  6270. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6271. }
  6272. }
  6273. //U.MD.D.I.openClick(str);
  6274. //如果有任务栏信息
  6275. // if (_taskbar) {
  6276. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6277. // }
  6278. }
  6279. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6280. var xmlhttp;
  6281. var Mac, Sn, DeviceId
  6282. if (window.XMLHttpRequest) {
  6283. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6284. xmlhttp = new XMLHttpRequest();
  6285. }
  6286. else {
  6287. // IE6, IE5 浏览器执行代码
  6288. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6289. }
  6290. xmlhttp.onreadystatechange = function () {
  6291. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6292. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6293. // resolve(res.value[0][0].text);
  6294. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6295. }
  6296. }
  6297. }
  6298. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6299. xmlhttp.send();
  6300. }
  6301. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6302. var xmlhttp;
  6303. var Mac, Sn, DeviceId
  6304. if (window.XMLHttpRequest) {
  6305. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6306. xmlhttp = new XMLHttpRequest();
  6307. }
  6308. else {
  6309. // IE6, IE5 浏览器执行代码
  6310. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6311. }
  6312. xmlhttp.onreadystatechange = function () {
  6313. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6314. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6315. // resolve(res.value[0][0].text);
  6316. if (type == '2') {
  6317. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6318. } else if (type == '3') {
  6319. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6320. } else if (type == '4') {
  6321. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  6322. }
  6323. } else {
  6324. if (type == '2') {
  6325. iframe.contentWindow.editor.minder.importData('json', '')
  6326. } else if (type == '3') {
  6327. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6328. } else if (type == '4') {
  6329. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6330. }
  6331. }
  6332. }
  6333. }
  6334. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6335. xmlhttp.send();
  6336. }
  6337. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6338. var xmlhttp;
  6339. var Mac, Sn, DeviceId
  6340. if (window.XMLHttpRequest) {
  6341. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6342. xmlhttp = new XMLHttpRequest();
  6343. }
  6344. else {
  6345. // IE6, IE5 浏览器执行代码
  6346. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6347. }
  6348. xmlhttp.onreadystatechange = function () {
  6349. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6350. if (xmlhttp.response) {
  6351. // resolve(res.value[0][0].text);
  6352. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6353. // $(fileInput).val('');
  6354. // });
  6355. span.innerHTML = '上传成功'
  6356. setTimeout(() => {
  6357. loading.style.display = 'none'
  6358. }, 1000);
  6359. }
  6360. }
  6361. }
  6362. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6363. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6364. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6365. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6366. // 设置请求头,表示请求体的编码格式
  6367. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  6368. // 设置请求体,使用url-encoded格式的数据
  6369. }
  6370. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  6371. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6372. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6373. _userinfo = US.userInfo, //登录用户信息
  6374. _userid = US.userInfo.userid //登录用户id
  6375. let _iframe;
  6376. let _cid = cid,
  6377. _stage = stage,
  6378. _task = task,
  6379. _tool = tool;
  6380. var _jie = $$("div", {
  6381. "style": {
  6382. "position": "absolute",
  6383. "bottom": "50px",
  6384. "right": "50px",
  6385. "zIndex": "9999",
  6386. "backgroundColor": "#2268bc",
  6387. "color": "#fff",
  6388. "padding": "12px 20px",
  6389. "cursor": "pointer",
  6390. "borderRadius": "4px",
  6391. },
  6392. "innerHTML": "提交作业"
  6393. })
  6394. let aTool = ''
  6395. let _loading = document.createElement('div')
  6396. _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;"
  6397. // _loading.id = "";
  6398. let _lchild = document.createElement('div')
  6399. let _limg = document.createElement('img')
  6400. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6401. _limg.style = "width: 26px;margin-right: 10px;"
  6402. _lchild.appendChild(_limg)
  6403. let _lspan = document.createElement('span')
  6404. _lspan.innerHTML = "上传中..."
  6405. _lchild.appendChild(_lspan)
  6406. _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%);"
  6407. _loading.appendChild(_lchild)
  6408. var _box = $$('div', {
  6409. "style": {
  6410. "position": "relative",
  6411. "width": "100%",
  6412. "height": "100%",
  6413. },
  6414. })
  6415. _box.appendChild(_loading)
  6416. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool+_userid
  6417. switch (str) {
  6418. case "CocoPi":
  6419. aTool = 57;
  6420. _iframe = $$("iframe", {
  6421. "allowpaymentrequest":"allowpaymentrequest",
  6422. "allow": "camera *; microphone *;display-capture;usb",
  6423. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6424. "frameborder": "no",
  6425. "border": "0",
  6426. "scrolling ": "no",
  6427. "style": {
  6428. "cssText": "border:0;width:100%;height:100%"
  6429. },
  6430. "src": "https://beta.v.cocorobo.cn/"
  6431. })
  6432. _box.appendChild(_iframe);
  6433. _box.appendChild(_jie);
  6434. _formdiv = new U.UF.UI.form(
  6435. "CocoPi",
  6436. _box, {
  6437. "id": "CocoPi_Upload" + cid + stage + task + tool,
  6438. "style": {
  6439. "width": "90%",
  6440. "height": "90%",
  6441. "overflow": 'hidden'
  6442. },
  6443. "onresize": function () { }
  6444. }, {
  6445. closecallback: function () { }
  6446. }, {
  6447. "style": {
  6448. "height": "36px"
  6449. }
  6450. }).form; //创建窗体
  6451. _taskbar = {
  6452. "id": str + _formdiv.id,
  6453. "style": {
  6454. "backgroundImage": "url(/img/icon/cocopi.png)"
  6455. },
  6456. "name": "CocoPi",
  6457. "forms": _formdiv,
  6458. "click": function () {
  6459. U.MD.D.I.openApplication(str, obj, info);
  6460. }
  6461. }
  6462. break;
  6463. }
  6464. if (_iframe) {
  6465. if (str == 'CocoPi') {
  6466. _iframe = _formdiv.querySelector('iframe')
  6467. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6468. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6469. })
  6470. if (onloadListener) {
  6471. _iframe.contentDocument.location.reload()
  6472. } else {
  6473. _iframe.contentDocument.location.reload()
  6474. }
  6475. }
  6476. _jie.onclick = async () => {
  6477. let text = ''
  6478. if (aTool == 57) {
  6479. text = _iframe.contentWindow.getLoadXmlStr()
  6480. }
  6481. _loading.style.display = 'flex'
  6482. console.log(_loading);
  6483. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6484. _loading.style.display = 'none'
  6485. let _div = document.createElement('div')
  6486. _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;"
  6487. let _inner = document.createElement('div')
  6488. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6489. _inner.innerHTML = "上传成功"
  6490. _div.appendChild(_inner)
  6491. _iframe.contentWindow.window.document.body.appendChild(_div)
  6492. _div.onclick = () => {
  6493. _iframe.contentWindow.window.document.body.removeChild(_div)
  6494. }
  6495. setTimeout(() => {
  6496. _iframe.contentWindow.window.document.body.removeChild(_div)
  6497. }, 1000);
  6498. }, [], { "type": "POST", "withCredentials": true });
  6499. }
  6500. }
  6501. }
  6502. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  6503. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6504. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6505. _userid = student.userid, //登录用户id
  6506. _username = student.student //用户名字
  6507. let _iframe;
  6508. let _cid = cid,
  6509. _stage = stage,
  6510. _task = task,
  6511. _tool = tool;
  6512. var _jie = $$("div", {
  6513. "style": {
  6514. "position": "absolute",
  6515. "bottom": "50px",
  6516. "right": "50px",
  6517. "zIndex": "9999",
  6518. "backgroundColor": "#2268bc",
  6519. "color": "#fff",
  6520. "padding": "12px 20px",
  6521. "cursor": "pointer",
  6522. "borderRadius": "4px",
  6523. },
  6524. "innerHTML": "提交作业"
  6525. })
  6526. let aTool = ''
  6527. let _loading = document.createElement('div')
  6528. _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;"
  6529. // _loading.id = "";
  6530. let _lchild = document.createElement('div')
  6531. let _limg = document.createElement('img')
  6532. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6533. _limg.style = "width: 26px;margin-right: 10px;"
  6534. _lchild.appendChild(_limg)
  6535. let _lspan = document.createElement('span')
  6536. _lspan.innerHTML = "上传中..."
  6537. _lchild.appendChild(_lspan)
  6538. _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%);"
  6539. _loading.appendChild(_lchild)
  6540. var _box = $$('div', {
  6541. "style": {
  6542. "position": "relative",
  6543. "width": "100%",
  6544. "height": "100%",
  6545. },
  6546. })
  6547. _box.appendChild(_loading)
  6548. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool+_userid
  6549. switch (str) {
  6550. case "CocoPi":
  6551. aTool = 57;
  6552. _iframe = $$("iframe", {
  6553. "allowpaymentrequest":"allowpaymentrequest",
  6554. "allow": "camera *; microphone *;display-capture;usb",
  6555. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6556. "frameborder": "no",
  6557. "border": "0",
  6558. "scrolling ": "no",
  6559. "style": {
  6560. "cssText": "border:0;width:100%;height:100%"
  6561. },
  6562. "src": "https://beta.v.cocorobo.cn/"
  6563. })
  6564. _box.appendChild(_iframe);
  6565. _box.appendChild(_jie);
  6566. _formdiv = new U.UF.UI.form(
  6567. "CocoPi-" + _username,
  6568. _box, {
  6569. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  6570. "style": {
  6571. "width": "90%",
  6572. "height": "90%",
  6573. "overflow": 'hidden'
  6574. },
  6575. "onresize": function () { }
  6576. }, {
  6577. closecallback: function () { }
  6578. }, {
  6579. "style": {
  6580. "height": "36px"
  6581. }
  6582. }).form; //创建窗体
  6583. _taskbar = {
  6584. "id": str + _formdiv.id,
  6585. "style": {
  6586. "backgroundImage": "url(/img/icon/cocopi.png)"
  6587. },
  6588. "name": "CocoPi",
  6589. "forms": _formdiv,
  6590. "click": function () {
  6591. U.MD.D.I.openApplication(str, obj, info);
  6592. }
  6593. }
  6594. break;
  6595. }
  6596. if (_iframe) {
  6597. if (str == 'CocoPi') {
  6598. _iframe = _formdiv.querySelector('iframe')
  6599. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6600. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6601. })
  6602. if (onloadListener) {
  6603. _iframe.contentDocument.location.reload()
  6604. } else {
  6605. _iframe.contentDocument.location.reload()
  6606. }
  6607. }
  6608. _jie.onclick = async () => {
  6609. let text = ''
  6610. if (aTool == 57) {
  6611. text = _iframe.contentWindow.getLoadXmlStr()
  6612. }
  6613. _loading.style.display = 'flex'
  6614. console.log(_loading);
  6615. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6616. _loading.style.display = 'none'
  6617. let _div = document.createElement('div')
  6618. _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;"
  6619. let _inner = document.createElement('div')
  6620. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6621. _inner.innerHTML = "上传成功"
  6622. _div.appendChild(_inner)
  6623. _iframe.contentWindow.window.document.body.appendChild(_div)
  6624. _div.onclick = () => {
  6625. _iframe.contentWindow.window.document.body.removeChild(_div)
  6626. }
  6627. setTimeout(() => {
  6628. _iframe.contentWindow.window.document.body.removeChild(_div)
  6629. }, 1000);
  6630. }, [], { "type": "POST", "withCredentials": true });
  6631. }
  6632. }
  6633. }
  6634. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  6635. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  6636. if (res.value[0].length > 0) {
  6637. if (atool == 57) {
  6638. iframe.contentWindow.loadingXml(res.value[0][0].content)
  6639. }
  6640. } else {
  6641. if (atool == 57) {
  6642. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  6643. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6644. }
  6645. }
  6646. }, [], { "type": "POST", "withCredentials": true });
  6647. }