DeskTop.js 377 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852
  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. ];
  443. //97c4ee8b-d010-4042-986d-e9d3c217264f
  444. //教师桌面图标的全局变量
  445. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  446. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  447. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  448. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  449. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  450. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  451. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  452. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  453. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  454. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  455. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  456. ];
  457. //福田
  458. U.MD.D.I.futianTeacherDeskIcon = [
  459. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  460. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  461. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  462. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  463. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  464. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  465. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  466. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  467. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  468. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  469. ];
  470. //福田
  471. U.MD.D.I.futianAdminDeskIcon = [
  472. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  473. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  474. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  475. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  476. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  477. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  478. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  479. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  480. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  481. ];
  482. //lotech
  483. U.MD.D.I.lotechTeacherDeskIcon = [
  484. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  485. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  486. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  487. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  488. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  489. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  490. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  491. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  492. ];
  493. //龙华中心小学教师桌面图标的全局变量
  494. U.MD.D.I.longhuateacherDeskIcon = [
  495. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  496. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  497. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  498. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  499. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  500. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  501. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  502. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  503. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  504. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  505. ];
  506. //教科院实小教师桌面图标的全局变量
  507. U.MD.D.I.siesteacherDeskIcon = [
  508. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  509. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  510. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  511. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  512. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  513. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  514. // { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  515. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  516. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  517. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  518. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  519. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  520. ];
  521. //福田
  522. U.MD.D.I.gdjgTeacherDeskIcon = [
  523. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  524. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  525. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  526. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  527. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  528. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  529. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  530. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  531. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  532. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  533. ];
  534. //gdjg
  535. U.MD.D.I.gdjgAdminDeskIcon = [
  536. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  537. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  538. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  539. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  540. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  541. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  542. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  543. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  544. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  545. ];
  546. //hk
  547. U.MD.D.I.hkteacherDeskIcon = [
  548. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  549. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  550. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  551. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  552. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  553. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  554. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  555. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  556. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  557. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  558. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  559. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  560. ];
  561. //#region 桌面初始化a
  562. /**
  563. * 初始化桌面的起始函数
  564. *
  565. */
  566. U.MD.D.I.init = function () {
  567. if ($("#U_MD_D_K")[0]) {
  568. //初始化桌面图标
  569. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  570. // var clickUrl = ':12588/requestIp.php';
  571. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  572. // U.MD.D.I.Ip = data;
  573. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  574. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  575. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  576. // })
  577. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  578. // })
  579. }
  580. }
  581. /**
  582. * 模式切换
  583. *
  584. */
  585. U.MD.D.I.ModeCheck = function (type) {
  586. if (US.Config.type == type) {
  587. return
  588. }
  589. US.Config.type = type
  590. $('.U_PBL_Check .active')[0].className = ''
  591. if (type == 1) {
  592. $('.U_PBL_Check div')[0].className = 'active'
  593. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  594. } else {
  595. $('.U_PBL_Check div')[1].className = 'active'
  596. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  597. }
  598. //初始化桌面图标
  599. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  600. if(type == 2){
  601. U.MD.D.I.openApplication("project")
  602. }
  603. }
  604. /**
  605. * 隐藏任务栏
  606. *
  607. * @param {element} 桌面元素
  608. */
  609. U.MD.D.I.hiddenTaskbar = function (el) {
  610. //任务栏位置变小
  611. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  612. //桌面的位置变大
  613. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  614. }
  615. /**
  616. * 隐藏任务栏
  617. *
  618. * @param {element} 桌面元素
  619. */
  620. U.MD.D.I.hiddenTaskbarout = function (el) {
  621. //任务栏位置变小
  622. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  623. //任务栏位置变化
  624. U.selectEl(el).css({ "bottom": "-60px" });
  625. //桌面的位置变大
  626. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  627. }
  628. }
  629. /**
  630. * 初始化打印桌面图标
  631. *
  632. * @param {element} 桌面元素
  633. */
  634. U.MD.D.I.initDesktopIcons = function (el, type) {
  635. var i, //用于循环
  636. _content, //桌面图标元素
  637. _iconcontent, //桌面图标元素
  638. _frag = $$("frag"), //定义一个碎片元素
  639. _type = US.userInfo.type,
  640. _org = US.userInfo.org,
  641. _oid = US.userInfo.organizeid,
  642. _role = US.userInfo.role,
  643. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  644. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  645. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  646. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  647. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  648. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  649. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  650. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  651. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  652. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  653. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  654. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  655. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  656. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  657. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  658. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  659. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  660. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  661. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  662. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  663. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  664. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  665. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  666. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  667. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  668. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//福田
  669. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//福田
  670. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  671. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
  672. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龙华中心
  673. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  674. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon,//hk
  675. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  676. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  677. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  678. 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'];
  679. 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'];
  680. //清楚桌面图标
  681. el.innerHTML = "";
  682. 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") {
  683. _teacherDesktopIconInfo.push(
  684. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  685. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  686. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  687. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  688. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  689. )
  690. _easyDesktopIconInfo.push(
  691. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  692. )
  693. }
  694. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  695. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  696. if(el.Name == '项目管理'){
  697. el.Name = 'PBL项目'
  698. }
  699. return el
  700. })
  701. }
  702. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  703. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  704. return el.Name != '魔盒识字' && el.Name != '24点'
  705. })
  706. }
  707. 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) {
  708. _studentDesktopIconInfo.push(
  709. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  710. )
  711. }
  712. //循环创建桌面图标
  713. if (type == 1) {
  714. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  715. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  716. _content = $$("div", {
  717. className: "U_MD_D_KO",
  718. "onmousedown": U.UF.C.closure(function (obj) {
  719. //防止拖动图标即打开了桌面应用
  720. U.MD.D.click(this, obj);
  721. }, [_studentDesktopIconInfo[i]]),
  722. "onclick": U.UF.C.closure(function (obj) {
  723. //防止拖动图标即打开了桌面应用
  724. U.MD.D.click(this, obj);
  725. }, [_studentDesktopIconInfo[i]])
  726. }, _frag); //
  727. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  728. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  729. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  730. }
  731. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  732. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  733. _content = $$("div", {
  734. className: "U_MD_D_KO",
  735. "onmousedown": U.UF.C.closure(function (obj) {
  736. //防止拖动图标即打开了桌面应用
  737. U.MD.D.click(this, obj);
  738. }, [_studentDesktopIconInfo[i]]),
  739. "onclick": U.UF.C.closure(function (obj) {
  740. //防止拖动图标即打开了桌面应用
  741. U.MD.D.click(this, obj);
  742. }, [_studentDesktopIconInfo[i]])
  743. }, _frag); //
  744. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  745. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  746. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  747. }
  748. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  749. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  750. _content = $$("div", {
  751. className: "U_MD_D_KO",
  752. "onmousedown": U.UF.C.closure(function (obj) {
  753. //防止拖动图标即打开了桌面应用
  754. U.MD.D.click(this, obj);
  755. }, [_tcStudentDeskIconInfo[i]]),
  756. "onclick": U.UF.C.closure(function (obj) {
  757. //防止拖动图标即打开了桌面应用
  758. U.MD.D.click(this, obj);
  759. }, [_tcStudentDeskIconInfo[i]])
  760. }, _frag); //
  761. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  762. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  763. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  764. }
  765. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  766. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  767. _content = $$("div", {
  768. className: "U_MD_D_KO",
  769. "onmousedown": U.UF.C.closure(function (obj) {
  770. //防止拖动图标即打开了桌面应用
  771. U.MD.D.click(this, obj);
  772. }, [_szscStudentDeskIconInfo[i]]),
  773. "onclick": U.UF.C.closure(function (obj) {
  774. //防止拖动图标即打开了桌面应用
  775. U.MD.D.click(this, obj);
  776. }, [_szscStudentDeskIconInfo[i]])
  777. }, _frag); //
  778. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  779. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  780. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  781. }
  782. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  783. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  784. _content = $$("div", {
  785. className: "U_MD_D_KO",
  786. "onmousedown": U.UF.C.closure(function (obj) {
  787. //防止拖动图标即打开了桌面应用
  788. U.MD.D.click(this, obj);
  789. }, [_studentDesktopIconInfo3[i]]),
  790. "onclick": U.UF.C.closure(function (obj) {
  791. //防止拖动图标即打开了桌面应用
  792. U.MD.D.click(this, obj);
  793. }, [_studentDesktopIconInfo3[i]])
  794. }, _frag); //
  795. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  796. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  797. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  798. }
  799. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  800. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  801. _content = $$("div", {
  802. className: "U_MD_D_KO",
  803. "onmousedown": U.UF.C.closure(function (obj) {
  804. //防止拖动图标即打开了桌面应用
  805. U.MD.D.click(this, obj);
  806. }, [_studentDesktopIconInfo2[i]]),
  807. "onclick": U.UF.C.closure(function (obj) {
  808. //防止拖动图标即打开了桌面应用
  809. U.MD.D.click(this, obj);
  810. }, [_studentDesktopIconInfo2[i]])
  811. }, _frag); //
  812. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  813. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  814. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  815. }
  816. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  817. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  818. _content = $$("div", {
  819. className: "U_MD_D_KO",
  820. "onmousedown": U.UF.C.closure(function (obj) {
  821. //防止拖动图标即打开了桌面应用
  822. U.MD.D.click(this, obj);
  823. }, [_wanketeacherDesktopIconInfo[i]]),
  824. "onclick": U.UF.C.closure(function (obj) {
  825. //防止拖动图标即打开了桌面应用
  826. U.MD.D.click(this, obj);
  827. }, [_wanketeacherDesktopIconInfo[i]])
  828. }, _frag); //
  829. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  830. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  831. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  832. }
  833. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  834. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  835. _content = $$("div", {
  836. className: "U_MD_D_KO",
  837. "onmousedown": U.UF.C.closure(function (obj) {
  838. //防止拖动图标即打开了桌面应用
  839. U.MD.D.click(this, obj);
  840. }, [_wankeAdminDesktopIconInfo[i]]),
  841. "onclick": U.UF.C.closure(function (obj) {
  842. //防止拖动图标即打开了桌面应用
  843. U.MD.D.click(this, obj);
  844. }, [_wankeAdminDesktopIconInfo[i]])
  845. }, _frag); //
  846. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  847. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  848. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  849. }
  850. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  851. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  852. _content = $$("div", {
  853. className: "U_MD_D_KO",
  854. "onmousedown": U.UF.C.closure(function (obj) {
  855. //防止拖动图标即打开了桌面应用
  856. U.MD.D.click(this, obj);
  857. }, [_teacherDesktopIconInfo2[i]]),
  858. "onclick": U.UF.C.closure(function (obj) {
  859. //防止拖动图标即打开了桌面应用
  860. U.MD.D.click(this, obj);
  861. }, [_teacherDesktopIconInfo2[i]])
  862. }, _frag); //
  863. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  864. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  865. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  866. }
  867. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  868. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  869. _content = $$("div", {
  870. className: "U_MD_D_KO",
  871. "onmousedown": U.UF.C.closure(function (obj) {
  872. //防止拖动图标即打开了桌面应用
  873. U.MD.D.click(this, obj);
  874. }, [_lotechTeacherDeskIconInfo[i]]),
  875. "onclick": U.UF.C.closure(function (obj) {
  876. //防止拖动图标即打开了桌面应用
  877. U.MD.D.click(this, obj);
  878. }, [_lotechTeacherDeskIconInfo[i]])
  879. }, _frag); //
  880. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  881. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  882. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  883. }
  884. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  885. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  886. _content = $$("div", {
  887. className: "U_MD_D_KO",
  888. "onmousedown": U.UF.C.closure(function (obj) {
  889. //防止拖动图标即打开了桌面应用
  890. U.MD.D.click(this, obj);
  891. }, [_siesTeacherDeskIconInfo[i]]),
  892. "onclick": U.UF.C.closure(function (obj) {
  893. //防止拖动图标即打开了桌面应用
  894. U.MD.D.click(this, obj);
  895. }, [_siesTeacherDeskIconInfo[i]])
  896. }, _frag); //
  897. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  898. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  899. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  900. }
  901. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  902. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  903. _content = $$("div", {
  904. className: "U_MD_D_KO",
  905. "onmousedown": U.UF.C.closure(function (obj) {
  906. //防止拖动图标即打开了桌面应用
  907. U.MD.D.click(this, obj);
  908. }, [_longhuaTeacherDeskIconInfo[i]]),
  909. "onclick": U.UF.C.closure(function (obj) {
  910. //防止拖动图标即打开了桌面应用
  911. U.MD.D.click(this, obj);
  912. }, [_longhuaTeacherDeskIconInfo[i]])
  913. }, _frag); //
  914. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  915. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  916. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  917. }
  918. }else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  919. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  920. _content = $$("div", {
  921. className: "U_MD_D_KO",
  922. "onmousedown": U.UF.C.closure(function (obj) {
  923. //防止拖动图标即打开了桌面应用
  924. U.MD.D.click(this, obj);
  925. }, [_hkTeacherDeskIconInfo[i]]),
  926. "onclick": U.UF.C.closure(function (obj) {
  927. //防止拖动图标即打开了桌面应用
  928. U.MD.D.click(this, obj);
  929. }, [_hkTeacherDeskIconInfo[i]])
  930. }, _frag); //
  931. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  932. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  933. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  934. }
  935. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  936. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  937. _content = $$("div", {
  938. className: "U_MD_D_KO",
  939. "onmousedown": U.UF.C.closure(function (obj) {
  940. //防止拖动图标即打开了桌面应用
  941. U.MD.D.click(this, obj);
  942. }, [_gdjgAdminDeskIconInfo[i]]),
  943. "onclick": U.UF.C.closure(function (obj) {
  944. //防止拖动图标即打开了桌面应用
  945. U.MD.D.click(this, obj);
  946. }, [_gdjgAdminDeskIconInfo[i]])
  947. }, _frag); //
  948. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  949. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  950. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  951. }
  952. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  953. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  954. _content = $$("div", {
  955. className: "U_MD_D_KO",
  956. "onmousedown": U.UF.C.closure(function (obj) {
  957. //防止拖动图标即打开了桌面应用
  958. U.MD.D.click(this, obj);
  959. }, [_gdjgTeacherDeskIconInfo[i]]),
  960. "onclick": U.UF.C.closure(function (obj) {
  961. //防止拖动图标即打开了桌面应用
  962. U.MD.D.click(this, obj);
  963. }, [_gdjgTeacherDeskIconInfo[i]])
  964. }, _frag); //
  965. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  966. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  967. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  968. }
  969. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  970. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  971. _content = $$("div", {
  972. className: "U_MD_D_KO",
  973. "onmousedown": U.UF.C.closure(function (obj) {
  974. //防止拖动图标即打开了桌面应用
  975. U.MD.D.click(this, obj);
  976. }, [_futianAdminDeskIconInfo[i]]),
  977. "onclick": U.UF.C.closure(function (obj) {
  978. //防止拖动图标即打开了桌面应用
  979. U.MD.D.click(this, obj);
  980. }, [_futianAdminDeskIconInfo[i]])
  981. }, _frag); //
  982. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  983. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  984. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  985. }
  986. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  987. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  988. _content = $$("div", {
  989. className: "U_MD_D_KO",
  990. "onmousedown": U.UF.C.closure(function (obj) {
  991. //防止拖动图标即打开了桌面应用
  992. U.MD.D.click(this, obj);
  993. }, [_futianTeacherDeskIconInfo[i]]),
  994. "onclick": U.UF.C.closure(function (obj) {
  995. //防止拖动图标即打开了桌面应用
  996. U.MD.D.click(this, obj);
  997. }, [_futianTeacherDeskIconInfo[i]])
  998. }, _frag); //
  999. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1000. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1001. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1002. }
  1003. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1004. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1005. _content = $$("div", {
  1006. className: "U_MD_D_KO",
  1007. "onmousedown": U.UF.C.closure(function (obj) {
  1008. //防止拖动图标即打开了桌面应用
  1009. U.MD.D.click(this, obj);
  1010. }, [_MingdeTeacherDeskIcon[i]]),
  1011. "onclick": U.UF.C.closure(function (obj) {
  1012. //防止拖动图标即打开了桌面应用
  1013. U.MD.D.click(this, obj);
  1014. }, [_MingdeTeacherDeskIcon[i]])
  1015. }, _frag); //
  1016. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1017. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1018. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1019. }
  1020. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1021. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1022. _content = $$("div", {
  1023. className: "U_MD_D_KO",
  1024. "onmousedown": U.UF.C.closure(function (obj) {
  1025. //防止拖动图标即打开了桌面应用
  1026. U.MD.D.click(this, obj);
  1027. }, [_lhsAdminDesktopIconInfo[i]]),
  1028. "onclick": U.UF.C.closure(function (obj) {
  1029. //防止拖动图标即打开了桌面应用
  1030. U.MD.D.click(this, obj);
  1031. }, [_lhsAdminDesktopIconInfo[i]])
  1032. }, _frag); //
  1033. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1034. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1035. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1036. }
  1037. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1038. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1039. _content = $$("div", {
  1040. className: "U_MD_D_KO",
  1041. "onmousedown": U.UF.C.closure(function (obj) {
  1042. //防止拖动图标即打开了桌面应用
  1043. U.MD.D.click(this, obj);
  1044. }, [_lhsteacherDesktopIconInfo[i]]),
  1045. "onclick": U.UF.C.closure(function (obj) {
  1046. //防止拖动图标即打开了桌面应用
  1047. U.MD.D.click(this, obj);
  1048. }, [_lhsteacherDesktopIconInfo[i]])
  1049. }, _frag); //
  1050. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1051. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1052. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1053. }
  1054. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1055. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1056. _content = $$("div", {
  1057. className: "U_MD_D_KO",
  1058. "onmousedown": U.UF.C.closure(function (obj) {
  1059. //防止拖动图标即打开了桌面应用
  1060. U.MD.D.click(this, obj);
  1061. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1062. "onclick": U.UF.C.closure(function (obj) {
  1063. //防止拖动图标即打开了桌面应用
  1064. U.MD.D.click(this, obj);
  1065. }, [_zhoujiateacherDesktopIconInfo[i]])
  1066. }, _frag); //
  1067. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1068. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1069. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1070. }
  1071. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1072. for (i = 0; i < _hanDeskIcon.length; i++) {
  1073. _content = $$("div", {
  1074. className: "U_MD_D_KO",
  1075. "onmousedown": U.UF.C.closure(function (obj) {
  1076. //防止拖动图标即打开了桌面应用
  1077. U.MD.D.click(this, obj);
  1078. }, [_hanDeskIcon[i]]),
  1079. "onclick": U.UF.C.closure(function (obj) {
  1080. //防止拖动图标即打开了桌面应用
  1081. U.MD.D.click(this, obj);
  1082. }, [_hanDeskIcon[i]])
  1083. }, _frag); //
  1084. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1085. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1086. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1087. }
  1088. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1089. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1090. _content = $$("div", {
  1091. className: "U_MD_D_KO",
  1092. "onmousedown": U.UF.C.closure(function (obj) {
  1093. //防止拖动图标即打开了桌面应用
  1094. U.MD.D.click(this, obj);
  1095. }, [_orgStemDeskIcon[i]]),
  1096. "onclick": U.UF.C.closure(function (obj) {
  1097. //防止拖动图标即打开了桌面应用
  1098. U.MD.D.click(this, obj);
  1099. }, [_orgStemDeskIcon[i]])
  1100. }, _frag); //
  1101. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1102. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1103. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1104. }
  1105. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1106. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1107. _content = $$("div", {
  1108. className: "U_MD_D_KO",
  1109. "onmousedown": U.UF.C.closure(function (obj) {
  1110. //防止拖动图标即打开了桌面应用
  1111. U.MD.D.click(this, obj);
  1112. }, [_szulsDeskIcon[i]]),
  1113. "onclick": U.UF.C.closure(function (obj) {
  1114. //防止拖动图标即打开了桌面应用
  1115. U.MD.D.click(this, obj);
  1116. }, [_szulsDeskIcon[i]])
  1117. }, _frag); //
  1118. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1119. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1120. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1121. }
  1122. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1123. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1124. _content = $$("div", {
  1125. className: "U_MD_D_KO",
  1126. "onmousedown": U.UF.C.closure(function (obj) {
  1127. //防止拖动图标即打开了桌面应用
  1128. U.MD.D.click(this, obj);
  1129. }, [_orgDesktopIconInfo[i]]),
  1130. "onclick": U.UF.C.closure(function (obj) {
  1131. //防止拖动图标即打开了桌面应用
  1132. U.MD.D.click(this, obj);
  1133. }, [_orgDesktopIconInfo[i]])
  1134. }, _frag); //
  1135. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1136. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1137. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1138. }
  1139. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1140. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1141. _content = $$("div", {
  1142. className: "U_MD_D_KO",
  1143. "onmousedown": U.UF.C.closure(function (obj) {
  1144. //防止拖动图标即打开了桌面应用
  1145. U.MD.D.click(this, obj);
  1146. }, [_schoolDesktopIconInfo[i]]),
  1147. "onclick": U.UF.C.closure(function (obj) {
  1148. //防止拖动图标即打开了桌面应用
  1149. U.MD.D.click(this, obj);
  1150. }, [_schoolDesktopIconInfo[i]])
  1151. }, _frag); //
  1152. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1153. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1154. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1155. }
  1156. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1157. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1158. _content = $$("div", {
  1159. className: "U_MD_D_KO",
  1160. "onmousedown": U.UF.C.closure(function (obj) {
  1161. //防止拖动图标即打开了桌面应用
  1162. U.MD.D.click(this, obj);
  1163. }, [_GMteacherDesktopIconInfo[i]]),
  1164. "onclick": U.UF.C.closure(function (obj) {
  1165. //防止拖动图标即打开了桌面应用
  1166. U.MD.D.click(this, obj);
  1167. }, [_GMteacherDesktopIconInfo[i]])
  1168. }, _frag); //
  1169. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1170. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1171. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1172. }
  1173. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1174. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1175. _content = $$("div", {
  1176. className: "U_MD_D_KO",
  1177. "onmousedown": U.UF.C.closure(function (obj) {
  1178. //防止拖动图标即打开了桌面应用
  1179. U.MD.D.click(this, obj);
  1180. }, [_SONGteacherDesktopIconInfo[i]]),
  1181. "onclick": U.UF.C.closure(function (obj) {
  1182. //防止拖动图标即打开了桌面应用
  1183. U.MD.D.click(this, obj);
  1184. }, [_SONGteacherDesktopIconInfo[i]])
  1185. }, _frag); //
  1186. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1187. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1188. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1189. }
  1190. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1191. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1192. _content = $$("div", {
  1193. className: "U_MD_D_KO",
  1194. "onmousedown": U.UF.C.closure(function (obj) {
  1195. //防止拖动图标即打开了桌面应用
  1196. U.MD.D.click(this, obj);
  1197. }, [_GMstudentDesktopIconInfo[i]]),
  1198. "onclick": U.UF.C.closure(function (obj) {
  1199. //防止拖动图标即打开了桌面应用
  1200. U.MD.D.click(this, obj);
  1201. }, [_GMstudentDesktopIconInfo[i]])
  1202. }, _frag); //
  1203. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1204. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1205. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1206. }
  1207. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1208. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1209. _content = $$("div", {
  1210. className: "U_MD_D_KO",
  1211. "onmousedown": U.UF.C.closure(function (obj) {
  1212. //防止拖动图标即打开了桌面应用
  1213. U.MD.D.click(this, obj);
  1214. }, [_tcTeacherDeskIconInfo[i]]),
  1215. "onclick": U.UF.C.closure(function (obj) {
  1216. //防止拖动图标即打开了桌面应用
  1217. U.MD.D.click(this, obj);
  1218. }, [_tcTeacherDeskIconInfo[i]])
  1219. }, _frag); //
  1220. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1221. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1222. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1223. }
  1224. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1225. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1226. _content = $$("div", {
  1227. className: "U_MD_D_KO",
  1228. "onmousedown": U.UF.C.closure(function (obj) {
  1229. //防止拖动图标即打开了桌面应用
  1230. U.MD.D.click(this, obj);
  1231. }, [_tcOrganizerDeskIconInfo[i]]),
  1232. "onclick": U.UF.C.closure(function (obj) {
  1233. //防止拖动图标即打开了桌面应用
  1234. U.MD.D.click(this, obj);
  1235. }, [_tcOrganizerDeskIconInfo[i]])
  1236. }, _frag); //
  1237. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1238. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1239. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1240. }
  1241. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1242. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1243. _content = $$("div", {
  1244. className: "U_MD_D_KO",
  1245. "onmousedown": U.UF.C.closure(function (obj) {
  1246. //防止拖动图标即打开了桌面应用
  1247. U.MD.D.click(this, obj);
  1248. }, [_szscTeacherDeskIconInfo[i]]),
  1249. "onclick": U.UF.C.closure(function (obj) {
  1250. //防止拖动图标即打开了桌面应用
  1251. U.MD.D.click(this, obj);
  1252. }, [_szscTeacherDeskIconInfo[i]])
  1253. }, _frag); //
  1254. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1255. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1256. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1257. }
  1258. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1259. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1260. _content = $$("div", {
  1261. className: "U_MD_D_KO",
  1262. "onmousedown": U.UF.C.closure(function (obj) {
  1263. //防止拖动图标即打开了桌面应用
  1264. U.MD.D.click(this, obj);
  1265. }, [_szscOrganizerDeskIconInfo[i]]),
  1266. "onclick": U.UF.C.closure(function (obj) {
  1267. //防止拖动图标即打开了桌面应用
  1268. U.MD.D.click(this, obj);
  1269. }, [_szscOrganizerDeskIconInfo[i]])
  1270. }, _frag); //
  1271. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1272. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1273. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1274. }
  1275. } else {
  1276. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1277. _content = $$("div", {
  1278. className: "U_MD_D_KO",
  1279. "onmousedown": U.UF.C.closure(function (obj) {
  1280. //防止拖动图标即打开了桌面应用
  1281. U.MD.D.click(this, obj);
  1282. }, [_teacherDesktopIconInfo[i]]),
  1283. "onclick": U.UF.C.closure(function (obj) {
  1284. //防止拖动图标即打开了桌面应用
  1285. U.MD.D.click(this, obj);
  1286. }, [_teacherDesktopIconInfo[i]])
  1287. }, _frag); //
  1288. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1289. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1290. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1291. }
  1292. }
  1293. } else {
  1294. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1295. _content = $$("div", {
  1296. className: "U_MD_D_KO",
  1297. style: { 'width': '124px', 'height': '145px' },
  1298. "onmousedown": U.UF.C.closure(function (obj) {
  1299. //防止拖动图标即打开了桌面应用
  1300. U.MD.D.click(this, obj);
  1301. }, [_easyDesktopIconInfo[i]]),
  1302. "onclick": U.UF.C.closure(function (obj) {
  1303. //防止拖动图标即打开了桌面应用
  1304. U.MD.D.click(this, obj);
  1305. }, [_easyDesktopIconInfo[i]])
  1306. }, _frag); //
  1307. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1308. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1309. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1310. }
  1311. }
  1312. if (type == 1) {
  1313. //加载好后给图标定位
  1314. U.MD.D.iconPostion($(_frag).Child());
  1315. } else {
  1316. //加载好后给图标定位
  1317. U.MD.D.iconPostion2($(_frag).Child());
  1318. }
  1319. //把图标加载到页面
  1320. el.appendChild(_frag);
  1321. }
  1322. /**
  1323. * 显示任务栏
  1324. *
  1325. * @param {element} 桌面元素
  1326. */
  1327. U.MD.D.I.displayTaskbar = function (el) {
  1328. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1329. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1330. //任务栏位置变化
  1331. U.selectEl(el).css({ "bottom": "0px" });
  1332. //桌面位置变话
  1333. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1334. }
  1335. }
  1336. //#region 桌面图标拖动逻辑
  1337. /**
  1338. * 桌面排列图标
  1339. *
  1340. * @param {element} 桌面元素
  1341. * @param {object} 上下相距的距离
  1342. * @param {object} 左右相距的距离
  1343. * @return {object} 命名空间
  1344. */
  1345. U.MD.D.iconPostion = function (childs, top, left) {
  1346. var i; //用于循环处理
  1347. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1348. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1349. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1350. for (i = 0; i < childs.length; i++) {
  1351. //如果竖排top超过了范围处理
  1352. if (top + 95 > US.height - 10) {
  1353. //left超过了页面范围处理,则向上重叠打印处理
  1354. if ((left + 180) > US.width) {
  1355. top -= 110;
  1356. left -= 90;
  1357. }
  1358. //没有超过范围,那么left+90添加到下一个竖排打印
  1359. else {
  1360. left += 90;
  1361. top = 15;
  1362. };
  1363. }
  1364. //给图标的位置赋值
  1365. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1366. if (i < childs.length - 1) {
  1367. //页面图标每次向下加95
  1368. top += 95;
  1369. }
  1370. }
  1371. //返回最后调用的图标的位置
  1372. return [top, left];
  1373. }
  1374. /**
  1375. * 桌面排列图标
  1376. *
  1377. * @param {element} 桌面元素
  1378. * @param {object} 上下相距的距离
  1379. * @param {object} 左右相距的距离
  1380. * @return {object} 命名空间
  1381. */
  1382. U.MD.D.iconPostion2 = function (childs, top, left) {
  1383. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1384. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1385. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1386. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1387. for (i = 0; i < childs.length; i++) {
  1388. //如果竖排top超过了范围处理
  1389. if (left + 150 > US.width - 10) {
  1390. //left超过了页面范围处理,则向上重叠打印处理
  1391. if ((top + 180) > US.Height) {
  1392. top -= 150;
  1393. left -= 150;
  1394. }
  1395. //没有超过范围,那么left+90添加到下一个竖排打印
  1396. else {
  1397. top += 150;
  1398. left = ol;
  1399. };
  1400. }
  1401. //给图标的位置赋值
  1402. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1403. if (i < childs.length - 1) {
  1404. //页面图标每次向下加95
  1405. left += 150;
  1406. }
  1407. }
  1408. //返回最后调用的图标的位置
  1409. return [top, left];
  1410. }
  1411. /**
  1412. * 桌面点击事件逻辑
  1413. *
  1414. * @param {element} 桌面元素
  1415. * @param {object} 上下相距的距离
  1416. * @param {object} 左右相距的距离
  1417. * @return {object} 命名空间
  1418. */
  1419. U.MD.D.click = function (el, obj) {
  1420. var _buttonnumber = event.button; //点击的按钮的事件值
  1421. var _userinfo = US.userInfo;
  1422. U.UF.EV.stopBubble(); //阻止向上冒泡
  1423. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1424. if (_buttonnumber < 2) {
  1425. //如果是click事件的处理
  1426. if (event.type == "click") {
  1427. //如果元素在mousemove事件中没有移动则出发click事件
  1428. if (!U.MD.D.I.IsDrag) {
  1429. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1430. U.alert("请先登录您的账号!");
  1431. setTimeout(() => {
  1432. U.MD.U.L.login();
  1433. }, 2000);
  1434. } else {
  1435. //打开应用处理
  1436. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1437. }
  1438. }
  1439. }
  1440. //如果是mouse事件的处理
  1441. else {
  1442. if (US.Config.type == '1') {
  1443. //拖动处理,添加拖动和拖动结束事件
  1444. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1445. }
  1446. }
  1447. U.MD.D.I.IsDrag = false;
  1448. }
  1449. }
  1450. /**
  1451. * 拖动的处理
  1452. *
  1453. */
  1454. U.MD.D.iconMove = function () {
  1455. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1456. U.MD.D.I.IsDrag = true;
  1457. }
  1458. /**
  1459. * 拖动结束后,这里是定位处理,以网状的形式定位
  1460. *
  1461. * @param {element} 拖动的元素
  1462. * @return {object} 命名空间
  1463. */
  1464. U.MD.D.iconUp = function (el) {
  1465. var _top = 15,
  1466. _left = 20,
  1467. _margin,
  1468. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1469. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1470. if (_positioninfo["OT"] > 15) {
  1471. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1472. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1473. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1474. }
  1475. if (_positioninfo["OL"] > 20) {
  1476. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1477. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1478. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1479. }
  1480. //while循环判断么一个重叠的元素
  1481. do {
  1482. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1483. _top = _positioninfo[0] + 95; //得到定位后的top
  1484. _left = _positioninfo[1]; //得到定位后的left
  1485. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1486. }
  1487. /**
  1488. * 判断拖动后图标是否重叠
  1489. *
  1490. * @param {element} 拖动的元素
  1491. * @param {element} 桌面所有的元素
  1492. * @param {array} 拖动元素的位置
  1493. ----------[0] 上 top
  1494. ----------[1] 左 left
  1495. * @return {object} 命名空间
  1496. */
  1497. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1498. //循环所有的图标
  1499. for (var i = 0; i < childs.length; i++) {
  1500. //判断有没有和该图标诶子重叠的元素
  1501. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1502. return childs[i]; //如果有返回
  1503. }
  1504. }
  1505. }
  1506. //#endregion
  1507. //#endregion
  1508. //#region 桌面应用
  1509. /**
  1510. * 打开应用
  1511. *
  1512. * @param {string} 类型
  1513. -----------------Disk 网盘系统
  1514. -----------------PDisk 学习系统网盘
  1515. -----------------Poto 图片
  1516. -----------------Video 视频
  1517. -----------------Music 音乐
  1518. -----------------Word word
  1519. -----------------Excel excel
  1520. -----------------Txt 记事本
  1521. -----------------PB 学习系统
  1522. -----------------Blog 朋友圈系统
  1523. -----------------FTP ftp系统
  1524. -----------------Group 好友群
  1525. -----------------SY 首页系统
  1526. -----------------Set 个人设置
  1527. -----------------XSet 系统设置
  1528. -----------------App 我们所有的app
  1529. -----------------BC c.1473.cn 平台
  1530. -----------------CWeb d.1473.cn 变成平台
  1531. -----------------其他的外联系统 我们统一用iframe打开
  1532. * @param {array} 类型
  1533. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1534. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1535. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1536. 如果第一个参数为其他,则无第二个参数
  1537. * @returns {array}
  1538. */
  1539. window.addEventListener('message', function (e) { // 监听 message 事件
  1540. // alert(e.data.type);
  1541. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1542. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1543. //3是展示全部阶段 2学生 1老师 4专家
  1544. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1545. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1546. //3是展示全部阶段 2学生 1老师 4专家
  1547. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1548. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1549. //3是展示全部阶段 2学生 1老师 4专家
  1550. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1551. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1552. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1553. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1554. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1555. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1556. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1557. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1558. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1559. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1560. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1561. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1562. //3是展示全部阶段 2学生 1老师 4专家
  1563. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1564. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1565. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1566. U.MD.D.I.selectUser();
  1567. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1568. var _formel = document.getElementById("study");
  1569. U.UF.F.windowZooming(_formel);
  1570. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1571. var _formel = document.getElementById("studyDetail");
  1572. U.UF.F.windowZooming(_formel);
  1573. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1574. var _formel = document.getElementById("studyDetail");
  1575. U.UF.F.windowZooming(_formel);
  1576. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1577. var _formel = document.getElementById("studentStudy");
  1578. U.UF.F.windowZooming(_formel);
  1579. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1580. // var _formel = document.getElementById("study");
  1581. //如果最大化了,那么就把他缩小
  1582. // if (_formel.ismaximize) {
  1583. // return;
  1584. // }
  1585. // U.UF.F.windowZooming(_formel);
  1586. // U.UF.F.topWindow(_formel);
  1587. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1588. // var _formel = document.getElementById("studyDetail");
  1589. //如果最大化了,那么就把他缩小
  1590. // if (_formel.ismaximize) {
  1591. // return;
  1592. // }
  1593. // U.UF.F.windowZooming(_formel);
  1594. // U.UF.F.topWindow(_formel);
  1595. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1596. // var _formel = document.getElementById("studentStudy");
  1597. // if (_formel.ismaximize) {
  1598. // return;
  1599. // }
  1600. // U.UF.F.windowZooming(_formel);
  1601. // U.UF.F.topWindow(_formel);
  1602. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1603. var _formel = document.getElementById("study");
  1604. // if (_formel.ismaximize) {
  1605. // return;
  1606. // }
  1607. // U.UF.F.windowZooming(_formel);
  1608. U.UF.F.topWindow(_formel);
  1609. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1610. var _formel = document.getElementById("studentIndex");
  1611. U.UF.F.windowZooming(_formel);
  1612. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1613. var _formel = document.getElementById("studyDetailS");
  1614. U.UF.F.windowZooming(_formel);
  1615. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1616. var _formel = document.getElementById("studioIndex");
  1617. U.UF.F.windowZooming(_formel);
  1618. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1619. var _formel = document.getElementById("studyDetailStudio");
  1620. U.UF.F.windowZooming(_formel);
  1621. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1622. var _formel = document.getElementById("studyDetailStudio");
  1623. U.UF.F.windowZooming(_formel);
  1624. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1625. var _formel = document.getElementById("studyDetailNT");
  1626. U.UF.F.windowZooming(_formel);
  1627. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1628. var _formel = document.getElementById("studyDetailS");
  1629. U.UF.F.windowZooming(_formel);
  1630. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1631. var _formel = document.getElementById("studyDetailS");
  1632. U.UF.F.topWindow(_formel);
  1633. } else if (e.data.tools && e.data.tools == "1") {
  1634. // U.MD.D.I.openApplication("whiteboard")
  1635. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1636. } else if (e.data.tools && e.data.tools == "2") {
  1637. U.MD.D.I.openApplication("note")
  1638. } else if (e.data.tools && e.data.tools == "3") {
  1639. // U.MD.D.I.openApplication("mind")
  1640. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1641. } else if (e.data.tools && e.data.tools == "4") {
  1642. U.MD.D.I.openApplication("investigation")
  1643. } else if (e.data.tools && e.data.tools == "6") {
  1644. // U.MD.D.I.openApplication("doc")
  1645. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1646. } else if (e.data.tools && e.data.tools == "7") {
  1647. // U.MD.D.I.openApplication("mindNetwork")
  1648. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1649. } else if (e.data.tools && e.data.tools == "8") {
  1650. U.MD.D.I.openApplication("library")
  1651. } else if (e.data.tools && e.data.tools == "17") {
  1652. U.MD.D.I.openApplication("stuLibrary")
  1653. } else if (e.data.tools && e.data.tools == "18") {
  1654. U.MD.D.I.openApplication("train")
  1655. } else if (e.data.tools && e.data.tools == "21") {
  1656. U.MD.D.I.openApplication("program")
  1657. } else if (e.data.tools && e.data.tools == "22") {
  1658. U.MD.D.I.openApplication("AIprogram2")
  1659. } else if (e.data.tools && e.data.tools == "23") {
  1660. U.MD.D.I.openApplication("Pythonprogram")
  1661. } else if (e.data.tools && e.data.tools == "24") {
  1662. U.MD.D.I.openApplication("AIprogram")
  1663. } else if (e.data.tools && e.data.tools == "25") {
  1664. U.MD.D.I.openApplication("sys")
  1665. } else if (e.data.tools && e.data.tools == "26") {
  1666. // U.MD.D.I.openApplication("courseDesign")
  1667. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1668. } else if (e.data.tools && e.data.tools == "31") {
  1669. U.MD.D.I.openApplication("netWorkPanel")
  1670. } else if (e.data.tools && e.data.tools == "32") {
  1671. U.MD.D.I.openApplication("codeEdit")
  1672. } else if (e.data.tools && e.data.tools == "57") {
  1673. U.MD.D.I.openApplication("CocoPi")
  1674. } else if (e.data.tools && e.data.tools == "63") {
  1675. U.MD.D.I.openApplication("Wood")
  1676. } else if (e.data.tools && e.data.tools == "58") {
  1677. U.MD.D.I.openApplication("car")
  1678. } else if (e.data.tools && e.data.tools == "59") {
  1679. U.MD.D.I.openApplication("lineSearch")
  1680. } else if (e.data.tools && e.data.tools == "60") {
  1681. U.MD.D.I.openApplication("deepLearning")
  1682. } else if (e.data.tools && e.data.tools == "61") {
  1683. U.MD.D.I.openApplication("allHistory")
  1684. } else if (e.data.tools && e.data.tools == "28") {
  1685. U.MD.D.I.openApplication("translation")
  1686. } else if (e.data.tools && e.data.tools == "37") {
  1687. U.MD.D.I.openApplication("mohe")
  1688. } else if (e.data.tools && e.data.tools == "38") {
  1689. U.MD.D.I.openApplication("24game")
  1690. } else if (e.data.tools && e.data.tools == "39") {
  1691. U.MD.D.I.openApplication("GeoGebra")
  1692. } else if (e.data.tools && e.data.tools == "43") {
  1693. U.MD.D.I.openApplication("studentEvaluate")
  1694. } else if (e.data.tools && e.data.tools == "44") {
  1695. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1696. } else if (e.data.tools && e.data.tools == "46") {
  1697. U.MD.D.I.openApplication("project")
  1698. } else if (e.data.tools && e.data.tools == "1s") {
  1699. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1700. } else if (e.data.tools && e.data.tools == "3s") {
  1701. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1702. } else if (e.data.tools && e.data.tools == "6s") {
  1703. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1704. } else if (e.data.tools && e.data.tools == "1studio") {
  1705. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1706. } else if (e.data.tools && e.data.tools == "3studio") {
  1707. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1708. } else if (e.data.tools && e.data.tools == "6studio") {
  1709. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1710. } else if (e.data.tools && e.data.tools == "3y") {
  1711. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1712. } else if (e.data.tools && e.data.tools == "1y") {
  1713. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1714. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1715. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1716. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1717. U.MD.D.I.openApplication("AIAnalyse")
  1718. } else if (e.data.tools && e.data.tools == "1teacher") {
  1719. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1720. } else if (e.data.tools && e.data.tools == "3teacher") {
  1721. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1722. } else if (e.data.tools && e.data.tools == "7teacher") {
  1723. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1724. } else if (e.data.tools && e.data.tools == "1teacherE") {
  1725. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1726. } else if (e.data.tools && e.data.tools == "3teacherE") {
  1727. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1728. } else if (e.data.tools && e.data.tools == "1E") {
  1729. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1730. } else if (e.data.tools && e.data.tools == "3E") {
  1731. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1732. } else if (e.data.tools && e.data.tools == "57y") {
  1733. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1734. } else if (e.data.tools && e.data.tools == "57u") {
  1735. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1736. } else if (e.data.tools && e.data.tools == "57teacher") {
  1737. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1738. }
  1739. });
  1740. U.MD.D.I.selectUser = function () {
  1741. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1742. if (res.value[0].length > 0) {
  1743. US.userInfo = res.value[0][0];
  1744. $(".userName")[0].innerHTML = US.userInfo.username;
  1745. }
  1746. }, [], { "type": "GET", "withCredentials": true });
  1747. }
  1748. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1749. var _userinfo = US.userInfo, //登录用户信息
  1750. _userid = US.userInfo.userid, //登录用户id
  1751. _oid = _userinfo.organizeid,
  1752. _type = US.userInfo.type,
  1753. _org = US.userInfo.org,
  1754. _role = US.userInfo.role,
  1755. _classId = US.userInfo.classid;
  1756. if (_type == 4) {
  1757. tType = 4
  1758. }
  1759. switch (str) {
  1760. case "studyDetailNT"://无终端模式
  1761. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1762. setTimeout(() => {
  1763. U.MD.U.L.login();
  1764. }, 2000);
  1765. } else {
  1766. _formdiv = new U.UF.UI.form(
  1767. "课程详情",
  1768. $$("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 }), {
  1769. "id": "studyDetailNT",
  1770. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1771. "onresize": function () { }
  1772. }, {
  1773. closecallback: function () { }
  1774. }, { "style": { "height": "36px" } }).form; //创建窗体
  1775. _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); } }
  1776. break;
  1777. }
  1778. case "studyDetail":
  1779. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1780. setTimeout(() => {
  1781. U.MD.U.L.login();
  1782. }, 2000);
  1783. } else {
  1784. _formdiv = new U.UF.UI.form(
  1785. "课程详情",
  1786. $$("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 }), {
  1787. "id": "studyDetail",
  1788. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1789. "onresize": function () { }
  1790. }, {
  1791. closecallback: function () { }
  1792. }, { "style": { "height": "36px" } }).form; //创建窗体
  1793. _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); } }
  1794. break;
  1795. }
  1796. case "studyDetailS":
  1797. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1798. setTimeout(() => {
  1799. U.MD.U.L.login();
  1800. }, 2000);
  1801. } else {
  1802. _formdiv = new U.UF.UI.form(
  1803. "项目详情",
  1804. $$("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 }), {
  1805. "id": "studyDetailS",
  1806. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1807. "onresize": function () { }
  1808. }, {
  1809. closecallback: function () { }
  1810. }, { "style": { "height": "36px" } }).form; //创建窗体
  1811. _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); } }
  1812. break;
  1813. }
  1814. case "studyDetailStudio":
  1815. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1816. setTimeout(() => {
  1817. U.MD.U.L.login();
  1818. }, 2000);
  1819. } else {
  1820. _formdiv = new U.UF.UI.form(
  1821. "工作详情",
  1822. $$("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 }), {
  1823. "id": "studyDetailStudio",
  1824. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1825. "onresize": function () { }
  1826. }, {
  1827. closecallback: function () { }
  1828. }, { "style": { "height": "36px" } }).form; //创建窗体
  1829. _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); } }
  1830. break;
  1831. }
  1832. case "studyDetailS5":
  1833. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1834. setTimeout(() => {
  1835. U.MD.U.L.login();
  1836. }, 2000);
  1837. } else {
  1838. _formdiv = new U.UF.UI.form(
  1839. "项目详情",
  1840. $$("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 }), {
  1841. "id": "studyDetailS",
  1842. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1843. "onresize": function () { }
  1844. }, {
  1845. closecallback: function () { }
  1846. }, { "style": { "height": "36px" } }).form; //创建窗体
  1847. _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); } }
  1848. break;
  1849. }
  1850. case "studyDetailGM":
  1851. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1852. setTimeout(() => {
  1853. U.MD.U.L.login();
  1854. }, 2000);
  1855. } else {
  1856. _formdiv = new U.UF.UI.form(
  1857. "课程详情",
  1858. $$("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 }), {
  1859. "id": "studyDetail",
  1860. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1861. "onresize": function () { }
  1862. }, {
  1863. closecallback: function () { }
  1864. }, { "style": { "height": "36px" } }).form; //创建窗体
  1865. _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); } }
  1866. break;
  1867. }
  1868. case "hanUrl":
  1869. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1870. setTimeout(() => {
  1871. U.MD.U.L.login();
  1872. }, 2000);
  1873. } else {
  1874. _formdiv = new U.UF.UI.form(
  1875. "汉字宫",
  1876. $$("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" }), {
  1877. "id": "hanUrl",
  1878. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1879. "onresize": function () { }
  1880. }, {
  1881. closecallback: function () { }
  1882. }, { "style": { "height": "36px" } }).form; //创建窗体
  1883. _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); } }
  1884. break;
  1885. }
  1886. }
  1887. }
  1888. U.MD.D.I.openApplication = function (str, obj, info) {
  1889. obj = obj || {};
  1890. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1891. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1892. _userinfo = US.userInfo, //登录用户信息
  1893. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1894. _oid = obj.organizeid || _userinfo.organizeid,
  1895. _type = US.userInfo.type,
  1896. _org = US.userInfo.org,
  1897. _role = US.userInfo.role,
  1898. _classId = US.userInfo.classid,
  1899. _TscreenType = 1
  1900. _screenType = 2,
  1901. _SscreenType = 3;
  1902. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1903. return;
  1904. }
  1905. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1906. switch (str) {
  1907. case "studnetProject": //好友打开
  1908. _formdiv = new U.UF.UI.form(
  1909. "我的项目",
  1910. $$("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 }), {
  1911. "id": "studnetProject",
  1912. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1913. "onresize": function () { }
  1914. }, {
  1915. closecallback: function () { }
  1916. }, { "style": { "height": "36px" } }).form; //创建窗体
  1917. _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); } }
  1918. break;
  1919. case "studentEvaluate": //好友打开
  1920. _formdiv = new U.UF.UI.form(
  1921. "我的评价",
  1922. $$("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 }), {
  1923. "id": "studentEvaluate",
  1924. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1925. "onresize": function () { }
  1926. }, {
  1927. closecallback: function () { }
  1928. }, { "style": { "height": "36px" } }).form; //创建窗体
  1929. _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); } }
  1930. break;
  1931. case "my":
  1932. _formdiv = new U.UF.UI.form(
  1933. "我的资料",
  1934. $$("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 }), {
  1935. "id": "my",
  1936. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1937. "onresize": function () { }
  1938. }, {
  1939. closecallback: function () { }
  1940. }, { "style": { "height": "36px" } }).form; //创建窗体
  1941. _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); } }
  1942. break;
  1943. case "program":
  1944. _formdiv = new U.UF.UI.form(
  1945. "编程平台",
  1946. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1947. "id": "program",
  1948. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1949. "onresize": function () { }
  1950. }, {
  1951. closecallback: function () { }
  1952. }, { "style": { "height": "36px" } }).form; //创建窗体
  1953. _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); } }
  1954. break;
  1955. case "library":
  1956. _formdiv = new U.UF.UI.form(
  1957. "素材库",
  1958. $$("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 }), {
  1959. "id": "library",
  1960. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1961. "onresize": function () { }
  1962. }, {
  1963. closecallback: function () { }
  1964. }, { "style": { "height": "36px" } }).form; //创建窗体
  1965. _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); } }
  1966. break;
  1967. case "whiteboard":
  1968. _formdiv = new U.UF.UI.form(
  1969. "电子白板",
  1970. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1971. "id": "whiteboard",
  1972. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1973. "onresize": function () { }
  1974. }, {
  1975. closecallback: function () { }
  1976. }, { "style": { "height": "36px" } }).form; //创建窗体
  1977. _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); } }
  1978. break;
  1979. case "investigation":
  1980. _formdiv = new U.UF.UI.form(
  1981. "问卷调查",
  1982. $$("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 }), {
  1983. "id": "investigation",
  1984. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1985. "onresize": function () { }
  1986. }, {
  1987. closecallback: function () { }
  1988. }, { "style": { "height": "36px" } }).form; //创建窗体
  1989. _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); } }
  1990. break;
  1991. case "note":
  1992. _formdiv = new U.UF.UI.form(
  1993. "便签分类",
  1994. $$("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 }), {
  1995. "id": "note",
  1996. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1997. "onresize": function () { }
  1998. }, {
  1999. closecallback: function () { }
  2000. }, { "style": { "height": "36px" } }).form; //创建窗体
  2001. _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); } }
  2002. break;
  2003. // case "score":
  2004. // _formdiv = new U.UF.UI.form(
  2005. // "量规评分",
  2006. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2007. // "id": "score",
  2008. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2009. // "onresize": function() {}
  2010. // }, {
  2011. // closecallback: function() {}
  2012. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2013. // _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); } }
  2014. // break;
  2015. case "mind":
  2016. _formdiv = new U.UF.UI.form(
  2017. "思维导图",
  2018. $$("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"
  2019. "id": "mind",
  2020. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2021. "onresize": function () { }
  2022. }, {
  2023. closecallback: function () { }
  2024. }, { "style": { "height": "36px" } }).form; //创建窗体
  2025. _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); } }
  2026. break;
  2027. case "doc":
  2028. // U.MD.D.I.isRoom();
  2029. _formdiv = new U.UF.UI.form(
  2030. "协同文档",
  2031. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2032. "id": "doc",
  2033. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2034. "onresize": function () { }
  2035. }, {
  2036. closecallback: function () { }
  2037. }, { "style": { "height": "36px" } }).form; //创建窗体
  2038. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2039. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2040. // })
  2041. _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); } }
  2042. break;
  2043. case "studentStudy":
  2044. _formdiv = new U.UF.UI.form(
  2045. "课程中心",
  2046. $$("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
  2047. "id": "studentStudy",
  2048. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2049. "onresize": function () { }
  2050. }, {
  2051. closecallback: function () { }
  2052. }, { "style": { "height": "36px" } }).form; //创建窗体
  2053. _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); } }
  2054. break;
  2055. case "train": //好友打开
  2056. _formdiv = new U.UF.UI.form(
  2057. "训练平台",
  2058. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2059. "id": "train",
  2060. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2061. "onresize": function () { }
  2062. }, {
  2063. closecallback: function () { }
  2064. }, { "style": { "height": "36px" } }).form; //创建窗体
  2065. _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); } }
  2066. break;
  2067. case "mindNetwork": //好友打开
  2068. _formdiv = new U.UF.UI.form(
  2069. "思维网格",
  2070. $$("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 }), {
  2071. "id": "mindNetwork",
  2072. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2073. "onresize": function () { }
  2074. }, {
  2075. closecallback: function () { }
  2076. }, { "style": { "height": "36px" } }).form; //创建窗体
  2077. _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); } }
  2078. break;
  2079. case "studentClassRoom": //好友打开
  2080. _formdiv = new U.UF.UI.form(
  2081. "实时课堂",
  2082. $$("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 }), {
  2083. "id": "studentClassRoom",
  2084. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2085. "onresize": function () { }
  2086. }, {
  2087. closecallback: function () { }
  2088. }, { "style": { "height": "36px" } }).form; //创建窗体
  2089. _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); } }
  2090. setTimeout(() => {
  2091. U.UF.F.windowZooming(_formdiv)
  2092. }, 0);
  2093. break;
  2094. }
  2095. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2096. switch (str) {
  2097. case "studnetProject": //好友打开
  2098. _formdiv = new U.UF.UI.form(
  2099. "我的项目",
  2100. $$("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 }), {
  2101. "id": "studnetProject",
  2102. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2103. "onresize": function () { }
  2104. }, {
  2105. closecallback: function () { }
  2106. }, { "style": { "height": "36px" } }).form; //创建窗体
  2107. _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); } }
  2108. break;
  2109. case "studentEvaluate": //好友打开
  2110. _formdiv = new U.UF.UI.form(
  2111. "我的评价",
  2112. $$("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 }), {
  2113. "id": "studentEvaluate",
  2114. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2115. "onresize": function () { }
  2116. }, {
  2117. closecallback: function () { }
  2118. }, { "style": { "height": "36px" } }).form; //创建窗体
  2119. _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); } }
  2120. break;
  2121. case "my":
  2122. _formdiv = new U.UF.UI.form(
  2123. "我的资料",
  2124. $$("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 }), {
  2125. "id": "my",
  2126. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2127. "onresize": function () { }
  2128. }, {
  2129. closecallback: function () { }
  2130. }, { "style": { "height": "36px" } }).form; //创建窗体
  2131. _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); } }
  2132. break;
  2133. case "program":
  2134. _formdiv = new U.UF.UI.form(
  2135. "编程平台",
  2136. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2137. "id": "program",
  2138. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2139. "onresize": function () { }
  2140. }, {
  2141. closecallback: function () { }
  2142. }, { "style": { "height": "36px" } }).form; //创建窗体
  2143. _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); } }
  2144. break;
  2145. case "library":
  2146. _formdiv = new U.UF.UI.form(
  2147. "素材库",
  2148. $$("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 }), {
  2149. "id": "library",
  2150. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2151. "onresize": function () { }
  2152. }, {
  2153. closecallback: function () { }
  2154. }, { "style": { "height": "36px" } }).form; //创建窗体
  2155. _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); } }
  2156. break;
  2157. case "whiteboard":
  2158. _formdiv = new U.UF.UI.form(
  2159. "电子白板",
  2160. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2161. "id": "whiteboard",
  2162. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2163. "onresize": function () { }
  2164. }, {
  2165. closecallback: function () { }
  2166. }, { "style": { "height": "36px" } }).form; //创建窗体
  2167. _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); } }
  2168. break;
  2169. case "investigation":
  2170. _formdiv = new U.UF.UI.form(
  2171. "问卷调查",
  2172. $$("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 }), {
  2173. "id": "investigation",
  2174. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2175. "onresize": function () { }
  2176. }, {
  2177. closecallback: function () { }
  2178. }, { "style": { "height": "36px" } }).form; //创建窗体
  2179. _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); } }
  2180. break;
  2181. case "note":
  2182. _formdiv = new U.UF.UI.form(
  2183. "便签分类",
  2184. $$("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 }), {
  2185. "id": "note",
  2186. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2187. "onresize": function () { }
  2188. }, {
  2189. closecallback: function () { }
  2190. }, { "style": { "height": "36px" } }).form; //创建窗体
  2191. _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); } }
  2192. break;
  2193. // case "score":
  2194. // _formdiv = new U.UF.UI.form(
  2195. // "量规评分",
  2196. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2197. // "id": "score",
  2198. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2199. // "onresize": function() {}
  2200. // }, {
  2201. // closecallback: function() {}
  2202. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2203. // _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); } }
  2204. // break;
  2205. case "mind":
  2206. _formdiv = new U.UF.UI.form(
  2207. "思维导图",
  2208. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  2209. "id": "mind",
  2210. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2211. "onresize": function () { }
  2212. }, {
  2213. closecallback: function () { }
  2214. }, { "style": { "height": "36px" } }).form; //创建窗体
  2215. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2216. break;
  2217. case "doc":
  2218. // U.MD.D.I.isRoom();
  2219. _formdiv = new U.UF.UI.form(
  2220. "协同文档",
  2221. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2222. "id": "doc",
  2223. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2224. "onresize": function () { }
  2225. }, {
  2226. closecallback: function () { }
  2227. }, { "style": { "height": "36px" } }).form; //创建窗体
  2228. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2229. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2230. })
  2231. _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); } }
  2232. break;
  2233. case "train": //好友打开
  2234. _formdiv = new U.UF.UI.form(
  2235. "训练平台",
  2236. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2237. "id": "train",
  2238. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2239. "onresize": function () { }
  2240. }, {
  2241. closecallback: function () { }
  2242. }, { "style": { "height": "36px" } }).form; //创建窗体
  2243. _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); } }
  2244. break;
  2245. case "studentStudy":
  2246. _formdiv = new U.UF.UI.form(
  2247. "课程中心",
  2248. $$("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
  2249. "id": "studentStudy",
  2250. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2251. "onresize": function () { }
  2252. }, {
  2253. closecallback: function () { }
  2254. }, { "style": { "height": "36px" } }).form; //创建窗体
  2255. _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); } }
  2256. break;
  2257. case "mindNetwork": //好友打开
  2258. _formdiv = new U.UF.UI.form(
  2259. "思维网格",
  2260. $$("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 }), {
  2261. "id": "mindNetwork",
  2262. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2263. "onresize": function () { }
  2264. }, {
  2265. closecallback: function () { }
  2266. }, { "style": { "height": "36px" } }).form; //创建窗体
  2267. _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); } }
  2268. break;
  2269. case "studentClassRoom": //好友打开
  2270. _formdiv = new U.UF.UI.form(
  2271. "实时课堂",
  2272. $$("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 }), {
  2273. "id": "studentClassRoom",
  2274. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2275. "onresize": function () { }
  2276. }, {
  2277. closecallback: function () { }
  2278. }, { "style": { "height": "36px" } }).form; //创建窗体
  2279. _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); } }
  2280. setTimeout(() => {
  2281. U.UF.F.windowZooming(_formdiv)
  2282. }, 0);
  2283. break;
  2284. }
  2285. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2286. //选择应用处理
  2287. switch (str) {
  2288. case "project": //好友打开
  2289. _formdiv = new U.UF.UI.form(
  2290. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2291. $$("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 }), {
  2292. "id": "project",
  2293. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2294. "onresize": function () { }
  2295. }, {
  2296. closecallback: function () { }
  2297. }, { "style": { "height": "36px" } }).form; //创建窗体
  2298. _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); } }
  2299. break;
  2300. case "student":
  2301. _formdiv = new U.UF.UI.form(
  2302. "学生管理",
  2303. $$("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 }), {
  2304. "id": "student",
  2305. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2306. "onresize": function () { }
  2307. }, {
  2308. closecallback: function () { }
  2309. }, { "style": { "height": "36px" } }).form; //创建窗体
  2310. _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); } }
  2311. break;
  2312. case "evaluate":
  2313. _formdiv = new U.UF.UI.form(
  2314. "学生评价",
  2315. $$("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 }), {
  2316. "id": "evaluate",
  2317. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2318. "onresize": function () { }
  2319. }, {
  2320. closecallback: function () { }
  2321. }, { "style": { "height": "36px" } }).form; //创建窗体
  2322. _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); } }
  2323. break;
  2324. case "sys":
  2325. _formdiv = new U.UF.UI.form(
  2326. "目标管理",
  2327. $$("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 }), {
  2328. "id": "sys",
  2329. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2330. "onresize": function () { }
  2331. }, {
  2332. closecallback: function () { }
  2333. }, { "style": { "height": "36px" } }).form; //创建窗体
  2334. _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); } }
  2335. break;
  2336. case "courseDesign":
  2337. _formdiv = new U.UF.UI.form(
  2338. "项目设计",
  2339. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2340. "id": "courseDesign",
  2341. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2342. "onresize": function () { }
  2343. }, {
  2344. closecallback: function () { }
  2345. }, { "style": { "height": "36px" } }).form; //创建窗体
  2346. _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); } }
  2347. break;
  2348. case "program":
  2349. _formdiv = new U.UF.UI.form(
  2350. "编程平台",
  2351. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2352. "id": "program",
  2353. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2354. "onresize": function () { }
  2355. }, {
  2356. closecallback: function () { }
  2357. }, { "style": { "height": "36px" } }).form; //创建窗体
  2358. _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); } }
  2359. break;
  2360. case "class":
  2361. _formdiv = new U.UF.UI.form(
  2362. "班级管理",
  2363. $$("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 }), {
  2364. "id": "class",
  2365. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2366. "onresize": function () { }
  2367. }, {
  2368. closecallback: function () { }
  2369. }, { "style": { "height": "36px" } }).form; //创建窗体
  2370. _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); } }
  2371. break;
  2372. case "my":
  2373. _formdiv = new U.UF.UI.form(
  2374. "我的资料",
  2375. $$("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 }), {
  2376. "id": "my",
  2377. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2378. "onresize": function () { }
  2379. }, {
  2380. closecallback: function () { }
  2381. }, { "style": { "height": "36px" } }).form; //创建窗体
  2382. _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); } }
  2383. break;
  2384. case "notice":
  2385. _formdiv = new U.UF.UI.form(
  2386. "通知公告",
  2387. $$("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 }), {
  2388. "id": "notice",
  2389. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2390. "onresize": function () { }
  2391. }, {
  2392. closecallback: function () { }
  2393. }, { "style": { "height": "36px" } }).form; //创建窗体
  2394. _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); } }
  2395. break;
  2396. case "library":
  2397. _formdiv = new U.UF.UI.form(
  2398. "素材库",
  2399. $$("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 }), {
  2400. "id": "library",
  2401. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2402. "onresize": function () { }
  2403. }, {
  2404. closecallback: function () { }
  2405. }, { "style": { "height": "36px" } }).form; //创建窗体
  2406. _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); } }
  2407. break;
  2408. case "whiteboard":
  2409. _formdiv = new U.UF.UI.form(
  2410. "电子白板",
  2411. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2412. "id": "whiteboard",
  2413. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2414. "onresize": function () { }
  2415. }, {
  2416. closecallback: function () { }
  2417. }, { "style": { "height": "36px" } }).form; //创建窗体
  2418. _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); } }
  2419. break;
  2420. case "investigation":
  2421. _formdiv = new U.UF.UI.form(
  2422. "问卷调查",
  2423. $$("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 }), {
  2424. "id": "investigation",
  2425. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2426. "onresize": function () { }
  2427. }, {
  2428. closecallback: function () { }
  2429. }, { "style": { "height": "36px" } }).form; //创建窗体
  2430. _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); } }
  2431. break;
  2432. case "note":
  2433. _formdiv = new U.UF.UI.form(
  2434. "便签分类",
  2435. $$("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 }), {
  2436. "id": "note",
  2437. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2438. "onresize": function () { }
  2439. }, {
  2440. closecallback: function () { }
  2441. }, { "style": { "height": "36px" } }).form; //创建窗体
  2442. _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); } }
  2443. break;
  2444. // case "score":
  2445. // _formdiv = new U.UF.UI.form(
  2446. // "量规评分",
  2447. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2448. // "id": "score",
  2449. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2450. // "onresize": function() {}
  2451. // }, {
  2452. // closecallback: function() {}
  2453. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2454. // _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); } }
  2455. // break;
  2456. case "mind":
  2457. _formdiv = new U.UF.UI.form(
  2458. "思维导图",
  2459. $$("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"
  2460. "id": "mind",
  2461. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2462. "onresize": function () { }
  2463. }, {
  2464. closecallback: function () { }
  2465. }, { "style": { "height": "36px" } }).form; //创建窗体
  2466. _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); } }
  2467. break;
  2468. case "doc":
  2469. // U.MD.D.I.isRoom();
  2470. _formdiv = new U.UF.UI.form(
  2471. "协同文档",
  2472. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2473. "id": "doc",
  2474. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2475. "onresize": function () { }
  2476. }, {
  2477. closecallback: function () { }
  2478. }, { "style": { "height": "36px" } }).form; //创建窗体
  2479. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2480. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2481. })
  2482. _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); } }
  2483. break;
  2484. case "study":
  2485. _formdiv = new U.UF.UI.form(
  2486. "课程中心",
  2487. $$("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
  2488. "id": "study",
  2489. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2490. "onresize": function () { }
  2491. }, {
  2492. closecallback: function () { }
  2493. }, { "style": { "height": "36px" } }).form; //创建窗体
  2494. _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); } }
  2495. break;
  2496. case "mindNetwork": //好友打开
  2497. _formdiv = new U.UF.UI.form(
  2498. "思维网格",
  2499. $$("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 }), {
  2500. "id": "mindNetwork",
  2501. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2502. "onresize": function () { }
  2503. }, {
  2504. closecallback: function () { }
  2505. }, { "style": { "height": "36px" } }).form; //创建窗体
  2506. _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); } }
  2507. break;
  2508. case "train": //好友打开
  2509. _formdiv = new U.UF.UI.form(
  2510. "训练平台",
  2511. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2512. "id": "mindNetwork",
  2513. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2514. "onresize": function () { }
  2515. }, {
  2516. closecallback: function () { }
  2517. }, { "style": { "height": "36px" } }).form; //创建窗体
  2518. _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); } }
  2519. break;
  2520. case "teacherClassRoom": //好友打开
  2521. _formdiv = new U.UF.UI.form(
  2522. "实时课堂",
  2523. $$("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 }), {
  2524. "id": "teacherClassRoom",
  2525. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2526. "onresize": function () { }
  2527. }, {
  2528. closecallback: function () { }
  2529. }, { "style": { "height": "36px" } }).form; //创建窗体
  2530. _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); } }
  2531. setTimeout(() => {
  2532. U.UF.F.windowZooming(_formdiv)
  2533. }, 0);
  2534. break;
  2535. }
  2536. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2537. switch (str) {
  2538. case "project": //好友打开
  2539. _formdiv = new U.UF.UI.form(
  2540. "课程管理",
  2541. $$("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 }), {
  2542. "id": "project",
  2543. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2544. "onresize": function () { }
  2545. }, {
  2546. closecallback: function () { }
  2547. }, { "style": { "height": "36px" } }).form; //创建窗体
  2548. _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); } }
  2549. break;
  2550. case "evaluate":
  2551. _formdiv = new U.UF.UI.form(
  2552. "学生评价",
  2553. $$("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 }), {
  2554. "id": "evaluate",
  2555. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2556. "onresize": function () { }
  2557. }, {
  2558. closecallback: function () { }
  2559. }, { "style": { "height": "36px" } }).form; //创建窗体
  2560. _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); } }
  2561. break;
  2562. case "notice":
  2563. _formdiv = new U.UF.UI.form(
  2564. "通知公告",
  2565. $$("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 }), {
  2566. "id": "notice",
  2567. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2568. "onresize": function () { }
  2569. }, {
  2570. closecallback: function () { }
  2571. }, { "style": { "height": "36px" } }).form; //创建窗体
  2572. _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); } }
  2573. break;
  2574. case "stuLibrary":
  2575. _formdiv = new U.UF.UI.form(
  2576. "学习资料",
  2577. $$("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 }), {
  2578. "id": "stuLibrary",
  2579. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2580. "onresize": function () { }
  2581. }, {
  2582. closecallback: function () { }
  2583. }, { "style": { "height": "36px" } }).form; //创建窗体
  2584. _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); } }
  2585. break;
  2586. case "program":
  2587. _formdiv = new U.UF.UI.form(
  2588. "编程平台",
  2589. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2590. "id": "program",
  2591. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2592. "onresize": function () { }
  2593. }, {
  2594. closecallback: function () { }
  2595. }, { "style": { "height": "36px" } }).form; //创建窗体
  2596. _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); } }
  2597. break;
  2598. case "whiteboard":
  2599. _formdiv = new U.UF.UI.form(
  2600. "电子白板",
  2601. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2602. "id": "whiteboard",
  2603. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2604. "onresize": function () { }
  2605. }, {
  2606. closecallback: function () { }
  2607. }, { "style": { "height": "36px" } }).form; //创建窗体
  2608. _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); } }
  2609. break;
  2610. case "investigation":
  2611. _formdiv = new U.UF.UI.form(
  2612. "问卷调查",
  2613. $$("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 }), {
  2614. "id": "investigation",
  2615. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2616. "onresize": function () { }
  2617. }, {
  2618. closecallback: function () { }
  2619. }, { "style": { "height": "36px" } }).form; //创建窗体
  2620. _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); } }
  2621. break;
  2622. case "mind":
  2623. _formdiv = new U.UF.UI.form(
  2624. "思维导图",
  2625. $$("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"
  2626. "id": "mind",
  2627. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2628. "onresize": function () { }
  2629. }, {
  2630. closecallback: function () { }
  2631. }, { "style": { "height": "36px" } }).form; //创建窗体
  2632. _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); } }
  2633. break;
  2634. case "doc":
  2635. // U.MD.D.I.isRoom();
  2636. _formdiv = new U.UF.UI.form(
  2637. "协同文档",
  2638. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2639. "id": "doc",
  2640. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2641. "onresize": function () { }
  2642. }, {
  2643. closecallback: function () { }
  2644. }, { "style": { "height": "36px" } }).form; //创建窗体
  2645. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2646. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2647. })
  2648. _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); } }
  2649. break;
  2650. case "study":
  2651. _formdiv = new U.UF.UI.form(
  2652. "课程中心",
  2653. $$("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
  2654. "id": "study",
  2655. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2656. "onresize": function () { }
  2657. }, {
  2658. closecallback: function () { }
  2659. }, { "style": { "height": "36px" } }).form; //创建窗体
  2660. _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); } }
  2661. break;
  2662. case "mindNetwork": //好友打开
  2663. _formdiv = new U.UF.UI.form(
  2664. "思维网格",
  2665. $$("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 }), {
  2666. "id": "mindNetwork",
  2667. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2668. "onresize": function () { }
  2669. }, {
  2670. closecallback: function () { }
  2671. }, { "style": { "height": "36px" } }).form; //创建窗体
  2672. _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); } }
  2673. break;
  2674. case "train": //好友打开
  2675. _formdiv = new U.UF.UI.form(
  2676. "训练平台",
  2677. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2678. "id": "train",
  2679. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2680. "onresize": function () { }
  2681. }, {
  2682. closecallback: function () { }
  2683. }, { "style": { "height": "36px" } }).form; //创建窗体
  2684. _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); } }
  2685. break;
  2686. case "sys":
  2687. _formdiv = new U.UF.UI.form(
  2688. "目标管理",
  2689. $$("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 }), {
  2690. "id": "sys",
  2691. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2692. "onresize": function () { }
  2693. }, {
  2694. closecallback: function () { }
  2695. }, { "style": { "height": "36px" } }).form; //创建窗体
  2696. _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); } }
  2697. break;
  2698. case "courseDesign":
  2699. _formdiv = new U.UF.UI.form(
  2700. "项目设计",
  2701. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2702. "id": "courseDesign",
  2703. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2704. "onresize": function () { }
  2705. }, {
  2706. closecallback: function () { }
  2707. }, { "style": { "height": "36px" } }).form; //创建窗体
  2708. _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); } }
  2709. break;
  2710. }
  2711. } else if (!_type) {
  2712. switch (str) {
  2713. case "my":
  2714. _formdiv = new U.UF.UI.form(
  2715. "我的资料",
  2716. $$("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 }), {
  2717. "id": "my",
  2718. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2719. "onresize": function () { }
  2720. }, {
  2721. closecallback: function () { }
  2722. }, { "style": { "height": "36px" } }).form; //创建窗体
  2723. _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); } }
  2724. break;
  2725. }
  2726. }
  2727. switch (str) {
  2728. // AIprogram2 AI体验 aihub.cocorobo.cn
  2729. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2730. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2731. case "AIprogram2": //AI体验
  2732. _formdiv = new U.UF.UI.form(
  2733. "AI体验",
  2734. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2735. "id": "AIprogram2",
  2736. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2737. "onresize": function () { }
  2738. }, {
  2739. closecallback: function () { }
  2740. }, { "style": { "height": "36px" } }).form; //创建窗体
  2741. _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); } }
  2742. break;
  2743. case "Pythonprogram": //python编程
  2744. _formdiv = new U.UF.UI.form(
  2745. "Python编程",
  2746. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2747. "id": "Pythonprogram",
  2748. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2749. "onresize": function () { }
  2750. }, {
  2751. closecallback: function () { }
  2752. }, { "style": { "height": "36px" } }).form; //创建窗体
  2753. _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); } }
  2754. break;
  2755. case "AIprogram": //ai编程
  2756. _formdiv = new U.UF.UI.form(
  2757. "AI编程平台",
  2758. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2759. "id": "AIprogram",
  2760. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2761. "onresize": function () { }
  2762. }, {
  2763. closecallback: function () { }
  2764. }, { "style": { "height": "36px" } }).form; //创建窗体
  2765. _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); } }
  2766. break;
  2767. case "CocoPi": //CocoPi
  2768. _formdiv = new U.UF.UI.form(
  2769. "CocoPi",
  2770. $$("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" }), {
  2771. "id": "CocoPi",
  2772. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2773. "onresize": function () { }
  2774. }, {
  2775. closecallback: function () { }
  2776. }, { "style": { "height": "36px" } }).form; //创建窗体
  2777. _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); } }
  2778. break;
  2779. case "Wood": //Wood
  2780. _formdiv = new U.UF.UI.form(
  2781. "海龟编程",
  2782. $$("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/" }), {
  2783. "id": "Wood",
  2784. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2785. "onresize": function () { }
  2786. }, {
  2787. closecallback: function () { }
  2788. }, { "style": { "height": "36px" } }).form; //创建窗体
  2789. _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); } }
  2790. break;
  2791. case "car": //模拟驾驶
  2792. _formdiv = new U.UF.UI.form(
  2793. "模拟驾驶",
  2794. $$("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/" }), {
  2795. "id": "car",
  2796. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2797. "onresize": function () { }
  2798. }, {
  2799. closecallback: function () { }
  2800. }, { "style": { "height": "36px" } }).form; //创建窗体
  2801. _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); } }
  2802. break;
  2803. case "lineSearch": //路径搜索
  2804. _formdiv = new U.UF.UI.form(
  2805. "路径搜索",
  2806. $$("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/" }), {
  2807. "id": "lineSearch",
  2808. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2809. "onresize": function () { }
  2810. }, {
  2811. closecallback: function () { }
  2812. }, { "style": { "height": "36px" } }).form; //创建窗体
  2813. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/lineSearch.png)" }, "name": "路径搜索", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2814. break;
  2815. case "deepLearning": //深度学习
  2816. _formdiv = new U.UF.UI.form(
  2817. "深度学习",
  2818. $$("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/#" }), {
  2819. "id": "deepLearning",
  2820. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2821. "onresize": function () { }
  2822. }, {
  2823. closecallback: function () { }
  2824. }, { "style": { "height": "36px" } }).form; //创建窗体
  2825. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/deepLearning.png)" }, "name": "深度学习", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2826. break;
  2827. case "allHistory": //深度学习
  2828. _formdiv = new U.UF.UI.form(
  2829. "全历史",
  2830. $$("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/" }), {
  2831. "id": "allHistory",
  2832. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2833. "onresize": function () { }
  2834. }, {
  2835. closecallback: function () { }
  2836. }, { "style": { "height": "36px" } }).form; //创建窗体
  2837. _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); } }
  2838. break;
  2839. case "chatPDF": //ai编程
  2840. _formdiv = new U.UF.UI.form(
  2841. "chatPDF",
  2842. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2843. "id": "chatPDF",
  2844. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2845. "onresize": function () { }
  2846. }, {
  2847. closecallback: function () { }
  2848. }, { "style": { "height": "36px" } }).form; //创建窗体
  2849. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/chatPDF.png)" }, "name": "chatPDF", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2850. break;
  2851. case "resources": //国家教育
  2852. _formdiv = new U.UF.UI.form(
  2853. "国家教育",
  2854. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2855. "id": "resources",
  2856. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2857. "onresize": function () { }
  2858. }, {
  2859. closecallback: function () { }
  2860. }, { "style": { "height": "36px" } }).form; //创建窗体
  2861. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/resources.png)" }, "name": "国家教育", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2862. break;
  2863. case "codeEdit": //源码编辑
  2864. _formdiv = new U.UF.UI.form(
  2865. "源码编辑",
  2866. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2867. "id": "codeEdit",
  2868. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2869. "onresize": function () { }
  2870. }, {
  2871. closecallback: function () { }
  2872. }, { "style": { "height": "36px" } }).form; //创建窗体
  2873. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/code.png)" }, "name": "源码编辑", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2874. break; //
  2875. case "MindMap": //MindMap
  2876. _formdiv = new U.UF.UI.form(
  2877. "MindMap",
  2878. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2879. "id": "MindMap",
  2880. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2881. "onresize": function () { }
  2882. }, {
  2883. closecallback: function () { }
  2884. }, { "style": { "height": "36px" } }).form; //创建窗体
  2885. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/MIndMap.png)" }, "name": "MindMap", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2886. break;
  2887. case "netWorkPanel": //netWorkPanel
  2888. _formdiv = new U.UF.UI.form(
  2889. "netWorkPanel",
  2890. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2891. "id": "netWorkPanel",
  2892. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2893. "onresize": function () { }
  2894. }, {
  2895. closecallback: function () { }
  2896. }, { "style": { "height": "36px" } }).form; //创建窗体
  2897. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/netWorkPanel.png)" }, "name": "netWorkPanel", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2898. break;
  2899. case "GeoGebra": //GeoGebra
  2900. _formdiv = new U.UF.UI.form(
  2901. "GeoGebra",
  2902. $$("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" }), {
  2903. "id": "GeoGebra",
  2904. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2905. "onresize": function () { }
  2906. }, {
  2907. closecallback: function () { }
  2908. }, { "style": { "height": "36px" } }).form; //创建窗体
  2909. _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); } }
  2910. break;
  2911. case "translation": //翻译
  2912. _formdiv = new U.UF.UI.form(
  2913. "翻译",
  2914. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2915. "id": "translation",
  2916. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2917. "onresize": function () { }
  2918. }, {
  2919. closecallback: function () { }
  2920. }, { "style": { "height": "36px" } }).form; //创建窗体
  2921. _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); } }
  2922. break;
  2923. case "mohe": //魔盒
  2924. _formdiv = new U.UF.UI.form(
  2925. "魔盒识字",
  2926. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2927. "id": "mohe",
  2928. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2929. "onresize": function () { }
  2930. }, {
  2931. closecallback: function () { }
  2932. }, { "style": { "height": "36px" } }).form; //创建窗体
  2933. _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); } }
  2934. break;
  2935. case "24game": //24点
  2936. _formdiv = new U.UF.UI.form(
  2937. "24点",
  2938. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2939. "id": "24game",
  2940. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2941. "onresize": function () { }
  2942. }, {
  2943. closecallback: function () { }
  2944. }, { "style": { "height": "36px" } }).form; //创建窗体
  2945. _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); } }
  2946. break;
  2947. case "case":
  2948. _formdiv = new U.UF.UI.form(
  2949. "课程进展",
  2950. $$("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 }), {
  2951. "id": "case",
  2952. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2953. "onresize": function () { }
  2954. }, {
  2955. closecallback: function () { }
  2956. }, { "style": { "height": "36px" } }).form; //创建窗体
  2957. _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); } }
  2958. break;
  2959. case "snf":
  2960. _formdiv = new U.UF.UI.form(
  2961. "赛诺梵",
  2962. $$("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" }), {
  2963. "id": "snf",
  2964. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2965. "onresize": function () { }
  2966. }, {
  2967. closecallback: function () { }
  2968. }, { "style": { "height": "36px" } }).form; //创建窗体
  2969. _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); } }
  2970. break;
  2971. case "hanFamily":
  2972. _formdiv = new U.UF.UI.form(
  2973. "汉字家族",
  2974. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2975. "id": "hanFamily",
  2976. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2977. "onresize": function () { }
  2978. }, {
  2979. closecallback: function () { }
  2980. }, { "style": { "height": "36px" } }).form; //创建窗体
  2981. _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); } }
  2982. break;
  2983. case "hanClassics":
  2984. _formdiv = new U.UF.UI.form(
  2985. "国学经典",
  2986. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2987. "id": "hanClassics",
  2988. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2989. "onresize": function () { }
  2990. }, {
  2991. closecallback: function () { }
  2992. }, { "style": { "height": "36px" } }).form; //创建窗体
  2993. _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); } }
  2994. break;
  2995. case "hanTraining":
  2996. _formdiv = new U.UF.UI.form(
  2997. "笔画训练",
  2998. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2999. "id": "hanTraining",
  3000. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3001. "onresize": function () { }
  3002. }, {
  3003. closecallback: function () { }
  3004. }, { "style": { "height": "36px" } }).form; //创建窗体
  3005. _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); } }
  3006. break;
  3007. case "hanClass":
  3008. _formdiv = new U.UF.UI.form(
  3009. "书法课堂",
  3010. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3011. "id": "hanClass",
  3012. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3013. "onresize": function () { }
  3014. }, {
  3015. closecallback: function () { }
  3016. }, { "style": { "height": "36px" } }).form; //创建窗体
  3017. _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); } }
  3018. break;
  3019. case "han":
  3020. _formdiv = new U.UF.UI.form(
  3021. "汉字宫",
  3022. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3023. "id": "han",
  3024. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3025. "onresize": function () { }
  3026. }, {
  3027. closecallback: function () { }
  3028. }, { "style": { "height": "36px" } }).form; //创建窗体
  3029. _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); } }
  3030. break;
  3031. case "projectGM": //课程管理
  3032. _formdiv = new U.UF.UI.form(
  3033. "课程管理",
  3034. $$("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 }), {
  3035. "id": "projectGM",
  3036. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3037. "onresize": function () { }
  3038. }, {
  3039. closecallback: function () { }
  3040. }, { "style": { "height": "36px" } }).form; //创建窗体
  3041. _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); } }
  3042. break;
  3043. case "studyGM"://课程中心
  3044. _formdiv = new U.UF.UI.form(
  3045. "课程中心",
  3046. $$("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
  3047. "id": "study",
  3048. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3049. "onresize": function () { }
  3050. }, {
  3051. closecallback: function () { }
  3052. }, { "style": { "height": "36px" } }).form; //创建窗体
  3053. _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); } }
  3054. break;
  3055. // studentGM
  3056. case "studentGM"://学生管理
  3057. _formdiv = new U.UF.UI.form(
  3058. "学生管理",
  3059. $$("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 }), {
  3060. "id": "studentGM",
  3061. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3062. "onresize": function () { }
  3063. }, {
  3064. closecallback: function () { }
  3065. }, { "style": { "height": "36px" } }).form; //创建窗体
  3066. _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); } }
  3067. break;
  3068. case "evaluateGM"://学生评价
  3069. _formdiv = new U.UF.UI.form(
  3070. "学生评价",
  3071. $$("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 }), {
  3072. "id": "evaluateGM",
  3073. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3074. "onresize": function () { }
  3075. }, {
  3076. closecallback: function () { }
  3077. }, { "style": { "height": "36px" } }).form; //创建窗体
  3078. _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); } }
  3079. break;
  3080. // classGM
  3081. case "classGM"://班级管理
  3082. _formdiv = new U.UF.UI.form(
  3083. "班级管理",
  3084. $$("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 }), {
  3085. "id": "classGM",
  3086. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3087. "onresize": function () { }
  3088. }, {
  3089. closecallback: function () { }
  3090. }, { "style": { "height": "36px" } }).form; //创建窗体
  3091. _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); } }
  3092. break;
  3093. // dataGM
  3094. case "dataGM":
  3095. _formdiv = new U.UF.UI.form(
  3096. "我的资料",
  3097. $$("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 }), {
  3098. "id": "dataGM",
  3099. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3100. "onresize": function () { }
  3101. }, {
  3102. closecallback: function () { }
  3103. }, { "style": { "height": "36px" } }).form; //创建窗体
  3104. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/data.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3105. break;
  3106. // caseGM
  3107. case "caseGM"://课程进展
  3108. _formdiv = new U.UF.UI.form(
  3109. "课程进展",
  3110. $$("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 }), {
  3111. "id": "caseGM",
  3112. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3113. "onresize": function () { }
  3114. }, {
  3115. closecallback: function () { }
  3116. }, { "style": { "height": "36px" } }).form; //创建窗体
  3117. _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); } }
  3118. break;
  3119. // meterialGM
  3120. case "meterialGM"://素材库
  3121. _formdiv = new U.UF.UI.form(
  3122. "素材库",
  3123. $$("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 }), {
  3124. "id": "meterialGM",
  3125. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3126. "onresize": function () { }
  3127. }, {
  3128. closecallback: function () { }
  3129. }, { "style": { "height": "36px" } }).form; //创建窗体
  3130. _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); } }
  3131. break;
  3132. // evaluateSGM
  3133. case "evaluateSGM": //我的评价
  3134. _formdiv = new U.UF.UI.form(
  3135. "我的评价",
  3136. $$("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 }), {
  3137. "id": "evaluateSGM",
  3138. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3139. "onresize": function () { }
  3140. }, {
  3141. closecallback: function () { }
  3142. }, { "style": { "height": "36px" } }).form; //创建窗体
  3143. _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); } }
  3144. break;
  3145. case "jupyter": //jupyter
  3146. _formdiv = new U.UF.UI.form(
  3147. "jupyter",
  3148. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3149. "id": "jupyter",
  3150. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3151. "onresize": function () { }
  3152. }, {
  3153. closecallback: function () { }
  3154. }, { "style": { "height": "36px" } }).form; //创建窗体
  3155. _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); } }
  3156. break;
  3157. case "number": //数字实验室
  3158. _formdiv = new U.UF.UI.form(
  3159. "数字实验室",
  3160. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3161. "id": "number",
  3162. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3163. "onresize": function () { }
  3164. }, {
  3165. closecallback: function () { }
  3166. }, { "style": { "height": "36px" } }).form; //创建窗体
  3167. _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); } }
  3168. break;
  3169. case "studentCourse": //项目管理 学生
  3170. _formdiv = new U.UF.UI.form(
  3171. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3172. $$("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 }), {
  3173. "id": "studentCourse",
  3174. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3175. "onresize": function () { }
  3176. }, {
  3177. closecallback: function () { }
  3178. }, { "style": { "height": "36px" } }).form; //创建窗体
  3179. _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); } }
  3180. break;
  3181. case "studentCourseS": //项目管理 老师
  3182. _formdiv = new U.UF.UI.form(
  3183. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3184. $$("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 }), {
  3185. "id": "studentCourseS",
  3186. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3187. "onresize": function () { }
  3188. }, {
  3189. closecallback: function () { }
  3190. }, { "style": { "height": "36px" } }).form; //创建窗体
  3191. _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); } }
  3192. break;
  3193. case "studentIndex": //项目中心
  3194. _formdiv = new U.UF.UI.form(
  3195. "项目中心",
  3196. $$("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 }), {
  3197. "id": "studentIndex",
  3198. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3199. "onresize": function () { }
  3200. }, {
  3201. closecallback: function () { }
  3202. }, { "style": { "height": "36px" } }).form; //创建窗体
  3203. _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); } }
  3204. break;
  3205. case "CaseDesignS":
  3206. _formdiv = new U.UF.UI.form(
  3207. "项目进展",
  3208. $$("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 }), {
  3209. "id": "case",
  3210. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3211. "onresize": function () { }
  3212. }, {
  3213. closecallback: function () { }
  3214. }, { "style": { "height": "36px" } }).form; //创建窗体
  3215. _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); } }
  3216. break;
  3217. case "tcStudent": //腾讯学生管理
  3218. _formdiv = new U.UF.UI.form(
  3219. "学生管理",
  3220. $$("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 }), {
  3221. "id": "tcStudent",
  3222. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3223. "onresize": function () { }
  3224. }, {
  3225. closecallback: function () { }
  3226. }, { "style": { "height": "36px" } }).form; //创建窗体
  3227. _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); } }
  3228. break;
  3229. case "tcSchool": //腾讯学校管理
  3230. _formdiv = new U.UF.UI.form(
  3231. "学校管理",
  3232. $$("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 }), {
  3233. "id": "tcSchool",
  3234. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3235. "onresize": function () { }
  3236. }, {
  3237. closecallback: function () { }
  3238. }, { "style": { "height": "36px" } }).form; //创建窗体
  3239. _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); } }
  3240. break;
  3241. case "tcTeacher": //腾讯学校管理
  3242. _formdiv = new U.UF.UI.form(
  3243. "教师管理",
  3244. $$("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 }), {
  3245. "id": "tcTeacher",
  3246. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3247. "onresize": function () { }
  3248. }, {
  3249. closecallback: function () { }
  3250. }, { "style": { "height": "36px" } }).form; //创建窗体
  3251. _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); } }
  3252. break;
  3253. case "tcData": //腾讯我的资料
  3254. _formdiv = new U.UF.UI.form(
  3255. "我的资料",
  3256. $$("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 }), {
  3257. "id": "tcData",
  3258. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3259. "onresize": function () { }
  3260. }, {
  3261. closecallback: function () { }
  3262. }, { "style": { "height": "36px" } }).form; //创建窗体
  3263. _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); } }
  3264. break;
  3265. case "tcNotice": //腾讯消息通知
  3266. _formdiv = new U.UF.UI.form(
  3267. "消息通知",
  3268. $$("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 }), {
  3269. "id": "tcNotice",
  3270. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3271. "onresize": function () { }
  3272. }, {
  3273. closecallback: function () { }
  3274. }, { "style": { "height": "36px" } }).form; //创建窗体
  3275. _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); } }
  3276. break;
  3277. case "myReport": //好友打开
  3278. _formdiv = new U.UF.UI.form(
  3279. "我的评价",
  3280. $$("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 }), {
  3281. "id": "myReport",
  3282. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3283. "onresize": function () { }
  3284. }, {
  3285. closecallback: function () { }
  3286. }, { "style": { "height": "36px" } }).form; //创建窗体
  3287. _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); } }
  3288. break;
  3289. case "learnAna": //好友打开
  3290. _formdiv = new U.UF.UI.form(
  3291. "学习分析",
  3292. $$("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 }), {
  3293. "id": "learnAna",
  3294. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3295. "onresize": function () { }
  3296. }, {
  3297. closecallback: function () { }
  3298. }, { "style": { "height": "36px" } }).form; //创建窗体
  3299. _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); } }
  3300. break;
  3301. case "AIChat": //AI共创
  3302. _formdiv = new U.UF.UI.form(
  3303. "AI共创",
  3304. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3305. "id": "AIChat",
  3306. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3307. "onresize": function () { }
  3308. }, {
  3309. istop: true,
  3310. closecallback: function () { $("#aichat_icon").remove(); },
  3311. narrowcallback: function () {
  3312. if (!$("#aichat_icon")[0]) {
  3313. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3314. }
  3315. },
  3316. }, { "style": { "height": "36px" } }).form; //创建窗体
  3317. _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); } }
  3318. break;
  3319. case "AIAnalyse": //AI共创
  3320. _formdiv = new U.UF.UI.form(
  3321. "AI分析",
  3322. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3323. "id": "AIAnalyse",
  3324. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3325. "onresize": function () { }
  3326. }, {
  3327. closecallback: function () { }
  3328. }, { "style": { "height": "36px" } }).form; //创建窗体
  3329. _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); } }
  3330. break;
  3331. case "studioCourse": //AI共创
  3332. _formdiv = new U.UF.UI.form(
  3333. "工作管理",
  3334. $$("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 }), {
  3335. "id": "studioCourse",
  3336. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3337. "onresize": function () { }
  3338. }, {
  3339. closecallback: function () { }
  3340. }, { "style": { "height": "36px" } }).form; //创建窗体
  3341. _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); } }
  3342. break;
  3343. case "studioIndex": //AI共创
  3344. _formdiv = new U.UF.UI.form(
  3345. "工作中心",
  3346. $$("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 }), {
  3347. "id": "studioIndex",
  3348. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3349. "onresize": function () { }
  3350. }, {
  3351. closecallback: function () { }
  3352. }, { "style": { "height": "36px" } }).form; //创建窗体
  3353. _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); } }
  3354. break;
  3355. case "source":
  3356. _formdiv = new U.UF.UI.form(
  3357. "教学资源",
  3358. $$("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 }), {
  3359. "id": "source",
  3360. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3361. "onresize": function () { }
  3362. }, {
  3363. closecallback: function () { }
  3364. }, { "style": { "height": "36px" } }).form; //创建窗体
  3365. _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); } }
  3366. break;
  3367. }
  3368. //U.MD.D.I.openClick(str);
  3369. //如果有任务栏信息
  3370. if (_taskbar) {
  3371. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3372. }
  3373. }
  3374. // U.MD.D.I.openClick = function(str){
  3375. // var click = '';
  3376. // switch(str){
  3377. // case 'friend':
  3378. // click = '我的好友';
  3379. // break;
  3380. // case 'domain':
  3381. // click = '域名管理';
  3382. // break;
  3383. // case 'disk':
  3384. // click = '我的云盘';
  3385. // break;
  3386. // case 'word':
  3387. // click = 'Word';
  3388. // break;
  3389. // case 'excel':
  3390. // click = 'Execl';
  3391. // break;
  3392. // case 'txt':
  3393. // click = '文本文件';
  3394. // break;
  3395. // case 'lookupFriend':
  3396. // click = '查找好友';
  3397. // break;
  3398. // case 'ftp':
  3399. // click = 'FTP';
  3400. // break;
  3401. // case 'group':
  3402. // click = '群组';
  3403. // break;
  3404. // case 'set':
  3405. // click = '我的设置';
  3406. // break;
  3407. // case 'systemSet':
  3408. // click = '系统设置';
  3409. // break;
  3410. // case 'boomYun':
  3411. // click = '互联办公';
  3412. // break;
  3413. // case 'xz':
  3414. // click = '云端下载';
  3415. // break;
  3416. // case 'client':
  3417. // click = '有思浏览器';
  3418. // break;
  3419. // case 'backEndProgramming':
  3420. // click = '在线后台编程';
  3421. // break;
  3422. // case 'frontEndProgramming':
  3423. // click = '在线前端编程';
  3424. // break;
  3425. // default: break;
  3426. // }
  3427. // if(U.MD.D.I.Ip && click){
  3428. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3429. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3430. // })
  3431. // }
  3432. // }
  3433. /**
  3434. *函数作用:ajax简易函数,使用post格式
  3435. *@param url {data} 后台地址
  3436. *@param data {data} 参数json
  3437. *@param fn {data} 回调函数
  3438. *
  3439. */
  3440. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3441. // var xhr = new XMLHttpRequest();
  3442. // xhr.open("GET",url,true);
  3443. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3444. // xhr.onreadystatechange = function(){
  3445. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3446. // fn.call(this,xhr.responseText);
  3447. // }
  3448. // };
  3449. // xhr.send();
  3450. // }
  3451. /*判断是否是内网IP*/
  3452. // U.MD.D.I.isInnerIPFn = function(str){
  3453. // var curPageUrl = str;
  3454. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3455. // curPageUrl =curPageUrl.replace(reg1,'');
  3456. // // console.log('curPageUrl-1 '+curPageUrl);
  3457. // var reg2 = /\:+/g;//替换冒号为一点
  3458. // curPageUrl =curPageUrl.replace(reg2,'.');
  3459. // // console.log('curPageUrl-2 '+curPageUrl);
  3460. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3461. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3462. // if(curPageUrl[2] != '16'){
  3463. // return ipAddress;
  3464. // }else{
  3465. // return false;
  3466. // }
  3467. // }
  3468. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3469. // //compatibility for firefox and chrome
  3470. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3471. // var pc = new myPeerConnection({
  3472. // iceServers: []
  3473. // }),
  3474. // noop = function() {},
  3475. // localIPs = {},
  3476. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3477. // key;
  3478. // function iterateIP(ip) {
  3479. // if (!localIPs[ip]) onNewIP(ip);
  3480. // localIPs[ip] = true;
  3481. // }
  3482. // //create a bogus data channel
  3483. // pc.createDataChannel("");
  3484. // // create offer and set local description
  3485. // pc.createOffer().then(function(sdp) {
  3486. // sdp.sdp.split('\n').forEach(function(line) {
  3487. // if (line.indexOf('candidate') < 0) return;
  3488. // line.match(ipRegex).forEach(iterateIP);
  3489. // });
  3490. // pc.setLocalDescription(sdp, noop, noop);
  3491. // }).catch(function(reason) {
  3492. // // An error occurred, so handle the failure to connect
  3493. // });
  3494. // //sten for candidate events
  3495. // pc.onicecandidate = function(ice) {
  3496. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3497. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3498. // };
  3499. // }
  3500. // U.MD.D.I.getUserIpBool = function(callback){
  3501. // U.MD.D.I.getUserIP(function(ip){
  3502. // alert("Got IP! :" + ip);
  3503. // });
  3504. //}
  3505. //#endregion
  3506. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3507. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3508. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3509. _userinfo = US.userInfo, //登录用户信息
  3510. _userid = US.userInfo.userid //登录用户id
  3511. let _iframe;
  3512. let _cid = cid,
  3513. _stage = stage,
  3514. _task = task,
  3515. _tool = tool;
  3516. var _jie = $$("div", {
  3517. "style": {
  3518. "position": "absolute",
  3519. "bottom": "50px",
  3520. "right": "50px",
  3521. "zIndex": "9999",
  3522. "backgroundColor": "#2268bc",
  3523. "color": "#fff",
  3524. "padding": "12px 20px",
  3525. "cursor": "pointer",
  3526. "borderRadius": "4px",
  3527. },
  3528. "innerHTML": "提交作业"
  3529. })
  3530. let aTool = ''
  3531. let _loading = document.createElement('div')
  3532. _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;"
  3533. // _loading.id = "";
  3534. let _lchild = document.createElement('div')
  3535. let _limg = document.createElement('img')
  3536. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3537. _limg.style = "width: 26px;margin-right: 10px;"
  3538. _lchild.appendChild(_limg)
  3539. let _lspan = document.createElement('span')
  3540. _lspan.innerHTML = "上传中..."
  3541. _lchild.appendChild(_lspan)
  3542. _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%);"
  3543. _loading.appendChild(_lchild)
  3544. var _box = $$('div', {
  3545. "style": {
  3546. "position": "relative",
  3547. "width": "100%",
  3548. "height": "100%",
  3549. },
  3550. })
  3551. _box.appendChild(_loading)
  3552. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool+_userid
  3553. switch (str) {
  3554. case "whiteboard":
  3555. aTool = 1;
  3556. _iframe = $$("iframe", {
  3557. "frameborder": "no",
  3558. "border": "0",
  3559. "scrolling ": "no",
  3560. "style": {
  3561. "cssText": "border:0;width:100%;height:100%"
  3562. },
  3563. "src": "https://iwb.cocorobo.cn/"
  3564. })
  3565. _box.appendChild(_iframe);
  3566. _box.appendChild(_jie);
  3567. _formdiv = new U.UF.UI.form(
  3568. "电子白板",
  3569. _box, {
  3570. "id": "whiteboard" + cid + stage + task + tool,
  3571. "style": {
  3572. "width": "90%",
  3573. "height": "90%",
  3574. "overflow": 'hidden'
  3575. },
  3576. "onresize": function () { }
  3577. }, {
  3578. closecallback: function () { }
  3579. }, {
  3580. "style": {
  3581. "height": "36px"
  3582. }
  3583. }).form; //创建窗体
  3584. _taskbar = {
  3585. "id": str + _formdiv.id,
  3586. "style": {
  3587. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3588. },
  3589. "name": "电子白板",
  3590. "forms": _formdiv,
  3591. "click": function () {
  3592. U.MD.D.I.openApplication(str, obj, info);
  3593. }
  3594. }
  3595. break;
  3596. case "mind":
  3597. aTool = 3;
  3598. _iframe = $$("iframe", {
  3599. "frameborder": "no",
  3600. "border": "0",
  3601. "scrolling ": "no",
  3602. "style": {
  3603. "cssText": "border:0;width:100%;height:100%"
  3604. },
  3605. "src": "/kityminder-editor/dist/index.html"
  3606. })
  3607. _box.appendChild(_iframe);
  3608. _box.appendChild(_jie);
  3609. _formdiv = new U.UF.UI.form(
  3610. "思维导图",
  3611. _box, { //"/jsmind/example/demo.html"
  3612. "id": "mind" + cid + stage + task + tool,
  3613. "style": {
  3614. "width": "90%",
  3615. "height": "90%",
  3616. "overflow": 'hidden'
  3617. },
  3618. "onresize": function () { }
  3619. }, {
  3620. closecallback: function () { }
  3621. }, {
  3622. "style": {
  3623. "height": "36px"
  3624. }
  3625. }).form; //创建窗体
  3626. _taskbar = {
  3627. "id": str + _formdiv.id,
  3628. "style": {
  3629. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3630. },
  3631. "name": "思维导图",
  3632. "forms": _formdiv,
  3633. "click": function () {
  3634. U.MD.D.I.openApplication(str, obj, info);
  3635. }
  3636. }
  3637. break;
  3638. case "MindMap":
  3639. aTool = 3;
  3640. _iframe = $$("iframe", {
  3641. "frameborder": "no",
  3642. "border": "0",
  3643. "scrolling ": "no",
  3644. "style": {
  3645. "cssText": "border:0;width:100%;height:100%"
  3646. },
  3647. "src": "//cloud.cocorobo.cn/mind/"
  3648. })
  3649. _box.appendChild(_iframe);
  3650. _box.appendChild(_jie);
  3651. _formdiv = new U.UF.UI.form(
  3652. "思维导图",
  3653. _box, { //"/jsmind/example/demo.html"
  3654. "id": "mind" + cid + stage + task + tool,
  3655. "style": {
  3656. "width": "90%",
  3657. "height": "90%",
  3658. "overflow": 'hidden'
  3659. },
  3660. "onresize": function () { }
  3661. }, {
  3662. closecallback: function () { }
  3663. }, {
  3664. "style": {
  3665. "height": "36px"
  3666. }
  3667. }).form; //创建窗体
  3668. _taskbar = {
  3669. "id": str + _formdiv.id,
  3670. "style": {
  3671. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3672. },
  3673. "name": "思维导图",
  3674. "forms": _formdiv,
  3675. "click": function () {
  3676. U.MD.D.I.openApplication(str, obj, info);
  3677. }
  3678. }
  3679. break;
  3680. case "doc":
  3681. aTool = 6;
  3682. _iframe = $$("iframe", {
  3683. "frameborder": "no",
  3684. "border": "0",
  3685. "scrolling ": "no",
  3686. "style": {
  3687. "cssText": "border:0;width:100%;height:100%"
  3688. },
  3689. "src": "/Office/Word/WordEditArea.htm"
  3690. })
  3691. _box.appendChild(_iframe);
  3692. _box.appendChild(_jie);
  3693. _formdiv = new U.UF.UI.form(
  3694. "协同文档",
  3695. _box, {
  3696. "id": "doc" + cid + stage + task + tool,
  3697. "style": {
  3698. "width": "90%",
  3699. "height": "90%",
  3700. "overflow": 'hidden'
  3701. },
  3702. "onresize": function () { }
  3703. }, {
  3704. closecallback: function () { }
  3705. }, {
  3706. "style": {
  3707. "height": "36px"
  3708. }
  3709. }).form; //创建窗体
  3710. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3711. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3712. })
  3713. _taskbar = {
  3714. "id": str + _formdiv.id,
  3715. "style": {
  3716. "backgroundImage": "url(/img/icon/doc.png)"
  3717. },
  3718. "name": "协同文档",
  3719. "forms": _formdiv,
  3720. "click": function () {
  3721. U.MD.D.I.openApplication(str, obj, info);
  3722. }
  3723. }
  3724. break;
  3725. case "mindNetwork": //好友打开
  3726. aTool = 7;
  3727. _iframe = $$("iframe", {
  3728. "webkitallowfullscreen": "",
  3729. "mozallowfullscreen": "",
  3730. "allowfullscreen": "",
  3731. "frameborder": "no",
  3732. "border": "0",
  3733. "scrolling ": "no",
  3734. "style": {
  3735. "cssText": "border:0; width:100%; height:100%;"
  3736. },
  3737. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3738. })
  3739. _box.appendChild(_iframe);
  3740. _box.appendChild(_jie);
  3741. _formdiv = new U.UF.UI.form(
  3742. "思维网格",
  3743. _box, {
  3744. "id": "mindNetwork" + cid + stage + task + tool,
  3745. "style": {
  3746. "width": "90%",
  3747. "height": "90%",
  3748. "overflow": 'hidden'
  3749. },
  3750. "onresize": function () { }
  3751. }, {
  3752. closecallback: function () { }
  3753. }, {
  3754. "style": {
  3755. "height": "36px"
  3756. }
  3757. }).form; //创建窗体
  3758. _taskbar = {
  3759. "id": str + _formdiv.id,
  3760. "style": {
  3761. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3762. },
  3763. "name": "思维网格",
  3764. "forms": _formdiv,
  3765. "click": function () {
  3766. U.MD.D.I.openApplication(str, obj, info);
  3767. }
  3768. }
  3769. break;
  3770. case "courseDesign":
  3771. _iframe = $$("iframe", {
  3772. "webkitallowfullscreen": "",
  3773. "mozallowfullscreen": "",
  3774. "allowfullscreen": "",
  3775. "frameborder": "no",
  3776. "border": "0",
  3777. "scrolling ": "no",
  3778. "style": {
  3779. "cssText": "border:0; width:100%; height:100%;"
  3780. },
  3781. "src": "/course-design-vue"
  3782. })
  3783. _box.appendChild(_iframe);
  3784. _box.appendChild(_jie);
  3785. _formdiv = new U.UF.UI.form(
  3786. "项目设计",
  3787. _box, {
  3788. "id": "courseDesign" + cid + stage + task + tool,
  3789. "style": {
  3790. "width": "90%",
  3791. "height": "90%",
  3792. "overflow": 'hidden'
  3793. },
  3794. "onresize": function () { }
  3795. }, {
  3796. closecallback: function () { }
  3797. }, {
  3798. "style": {
  3799. "height": "36px"
  3800. }
  3801. }).form; //创建窗体
  3802. _taskbar = {
  3803. "id": str + _formdiv.id,
  3804. "style": {
  3805. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3806. },
  3807. "name": "项目设计",
  3808. "forms": _formdiv,
  3809. "click": function () {
  3810. U.MD.D.I.openApplication(str, obj, info);
  3811. }
  3812. }
  3813. break;
  3814. }
  3815. const script1 = document.createElement("script");
  3816. script1.type = "text/javascript";
  3817. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3818. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3819. const script2 = document.createElement("script");
  3820. script2.type = "text/javascript";
  3821. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3822. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3823. const script3 = document.createElement("script");
  3824. script3.type = "text/javascript";
  3825. script3.charset = "UTF-8";
  3826. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3827. const script4 = document.createElement("script");
  3828. script4.type = "text/javascript";
  3829. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3830. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3831. if (_iframe) {
  3832. if (str == 'doc') {
  3833. _iframe = _formdiv.querySelector('iframe')
  3834. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3835. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3836. _iframe.contentWindow.document.body.appendChild(script1);
  3837. _iframe.contentWindow.document.body.appendChild(script2);
  3838. // _iframe.contentWindow.document.body.appendChild(script3);
  3839. _iframe.contentWindow.document.body.appendChild(script4);
  3840. })
  3841. if (onloadListener) {
  3842. _iframe.contentDocument.location.reload()
  3843. } else {
  3844. _iframe.contentDocument.location.reload()
  3845. }
  3846. } else if (str == 'courseDesign') {
  3847. U.UF.DL.iframeLoad(_iframe, function () {
  3848. // _iframe.contentWindow.U.MD.O.W.load();
  3849. // _iframe.contentWindow.document.body.appendChild(script1);
  3850. _iframe.contentWindow.document.body.appendChild(script2);
  3851. _iframe.contentWindow.document.body.appendChild(script4);
  3852. })
  3853. } else if (str == 'mind') {
  3854. _iframe = _formdiv.querySelector('iframe')
  3855. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3856. //
  3857. _iframe.contentWindow.document.body.appendChild(script1);
  3858. _iframe.contentWindow.document.body.appendChild(script2);
  3859. _iframe.contentWindow.document.body.appendChild(script4);
  3860. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3861. })
  3862. if (onloadListener) {
  3863. _iframe.contentDocument.location.reload()
  3864. } else {
  3865. _iframe.contentDocument.location.reload()
  3866. }
  3867. } else if (str == 'whiteboard') {
  3868. _iframe = _formdiv.querySelector('iframe')
  3869. let onloadListener = _iframe.onload = () => {
  3870. _iframe.contentWindow.document.body.appendChild(script1);
  3871. _iframe.contentWindow.document.body.appendChild(script2);
  3872. _iframe.contentWindow.document.body.appendChild(script4);
  3873. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3874. };
  3875. if (onloadListener) {
  3876. _iframe.contentDocument.location.reload()
  3877. } else {
  3878. _iframe.contentDocument.location.reload()
  3879. }
  3880. } else {
  3881. _iframe.onload = () => {
  3882. _iframe.contentWindow.document.body.appendChild(script1);
  3883. _iframe.contentWindow.document.body.appendChild(script2);
  3884. // _iframe.contentWindow.document.body.appendChild(script3);
  3885. _iframe.contentWindow.document.body.appendChild(script4);
  3886. };
  3887. }
  3888. _jie.onclick = async () => {
  3889. let text = ''
  3890. if (aTool == 1) {
  3891. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3892. } else if (aTool == 6) {
  3893. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3894. } else if (aTool == 3) {
  3895. text = await U.MD.D.I.getEditorContent(_iframe);
  3896. }
  3897. _loading.style.display = 'flex'
  3898. console.log(_loading);
  3899. var _ajs = _iframe.contentWindow.document.createElement("script");
  3900. _ajs.type = "text/javascript";
  3901. _ajs.innerHTML =
  3902. // 'console.log(' + _loading + ');\n' +
  3903. 'var _js = document.createElement("script");\n' +
  3904. '_js.type="text/javascript";\n' +
  3905. '_js.charset="UTF-8";\n' +
  3906. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3907. "_js.onload = function(){\n" +
  3908. ' var a = document.getElementsByTagName("img")\n' +
  3909. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3910. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3911. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3912. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3913. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3914. "beforeUpload_shishi(file," +
  3915. "'" +
  3916. _userid +
  3917. "'" +
  3918. ", " +
  3919. "'" +
  3920. _cid +
  3921. "'" +
  3922. ", " +
  3923. "'" +
  3924. _stage +
  3925. "'" +
  3926. ", " +
  3927. "'" +
  3928. _task +
  3929. "'" +
  3930. ", " +
  3931. "'" +
  3932. _tool +
  3933. "'" +
  3934. ", " +
  3935. "'" +
  3936. (str + '_loadLi_Jie' + cid + stage + task + tool+_userid) +
  3937. "'" +
  3938. ", " +
  3939. "'" +
  3940. aTool +
  3941. "'" +
  3942. ", " +
  3943. "`" +
  3944. text +
  3945. "`" +
  3946. ")\n" +
  3947. " });\n" +
  3948. "}\n" +
  3949. "document.head.appendChild(_js);\n";
  3950. _iframe.contentWindow.document.head.appendChild(_ajs);
  3951. }
  3952. }
  3953. //U.MD.D.I.openClick(str);
  3954. //如果有任务栏信息
  3955. // if (_taskbar) {
  3956. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3957. // }
  3958. }
  3959. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  3960. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3961. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3962. _userinfo = US.userInfo, //登录用户信息
  3963. _userid = US.userInfo.userid //登录用户id
  3964. let _iframe;
  3965. let _cid = cid,
  3966. _stage = stage,
  3967. _task = task,
  3968. _tool = tool;
  3969. var _jie = $$("div", {
  3970. "style": {
  3971. "position": "absolute",
  3972. "bottom": "50px",
  3973. "right": "50px",
  3974. "zIndex": "9999",
  3975. "backgroundColor": "#2268bc",
  3976. "color": "#fff",
  3977. "padding": "12px 20px",
  3978. "cursor": "pointer",
  3979. "borderRadius": "4px",
  3980. },
  3981. "innerHTML": "提交作业"
  3982. })
  3983. let aTool = ''
  3984. let _loading = document.createElement('div')
  3985. _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;"
  3986. // _loading.id = "";
  3987. let _lchild = document.createElement('div')
  3988. let _limg = document.createElement('img')
  3989. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3990. _limg.style = "width: 26px;margin-right: 10px;"
  3991. _lchild.appendChild(_limg)
  3992. let _lspan = document.createElement('span')
  3993. _lspan.innerHTML = "上传中..."
  3994. _lchild.appendChild(_lspan)
  3995. _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%);"
  3996. _loading.appendChild(_lchild)
  3997. var _box = $$('div', {
  3998. "style": {
  3999. "position": "relative",
  4000. "width": "100%",
  4001. "height": "100%",
  4002. },
  4003. })
  4004. _box.appendChild(_loading)
  4005. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool+_userid
  4006. switch (str) {
  4007. case "whiteboard":
  4008. aTool = 1;
  4009. _iframe = $$("iframe", {
  4010. "frameborder": "no",
  4011. "border": "0",
  4012. "scrolling ": "no",
  4013. "style": {
  4014. "cssText": "border:0;width:100%;height:100%"
  4015. },
  4016. "src": "https://iwb.cocorobo.cn/"
  4017. })
  4018. _box.appendChild(_iframe);
  4019. _box.appendChild(_jie);
  4020. _formdiv = new U.UF.UI.form(
  4021. "电子白板",
  4022. _box, {
  4023. "id": "whiteboard" + cid + stage + task + tool,
  4024. "style": {
  4025. "width": "90%",
  4026. "height": "90%",
  4027. "overflow": 'hidden'
  4028. },
  4029. "onresize": function () { }
  4030. }, {
  4031. closecallback: function () { }
  4032. }, {
  4033. "style": {
  4034. "height": "36px"
  4035. }
  4036. }).form; //创建窗体
  4037. _taskbar = {
  4038. "id": str + _formdiv.id,
  4039. "style": {
  4040. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4041. },
  4042. "name": "电子白板",
  4043. "forms": _formdiv,
  4044. "click": function () {
  4045. U.MD.D.I.openApplication(str, obj, info);
  4046. }
  4047. }
  4048. break;
  4049. case "mind":
  4050. aTool = 3;
  4051. _iframe = $$("iframe", {
  4052. "frameborder": "no",
  4053. "border": "0",
  4054. "scrolling ": "no",
  4055. "style": {
  4056. "cssText": "border:0;width:100%;height:100%"
  4057. },
  4058. "src": "/kityminder-editor/dist/index.html"
  4059. })
  4060. _box.appendChild(_iframe);
  4061. _box.appendChild(_jie);
  4062. _formdiv = new U.UF.UI.form(
  4063. "思维导图",
  4064. _box, { //"/jsmind/example/demo.html"
  4065. "id": "mind" + cid + stage + task + tool,
  4066. "style": {
  4067. "width": "90%",
  4068. "height": "90%",
  4069. "overflow": 'hidden'
  4070. },
  4071. "onresize": function () { }
  4072. }, {
  4073. closecallback: function () { }
  4074. }, {
  4075. "style": {
  4076. "height": "36px"
  4077. }
  4078. }).form; //创建窗体
  4079. _taskbar = {
  4080. "id": str + _formdiv.id,
  4081. "style": {
  4082. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4083. },
  4084. "name": "思维导图",
  4085. "forms": _formdiv,
  4086. "click": function () {
  4087. U.MD.D.I.openApplication(str, obj, info);
  4088. }
  4089. }
  4090. break;
  4091. case "MindMap":
  4092. aTool = 3;
  4093. _iframe = $$("iframe", {
  4094. "frameborder": "no",
  4095. "border": "0",
  4096. "scrolling ": "no",
  4097. "style": {
  4098. "cssText": "border:0;width:100%;height:100%"
  4099. },
  4100. "src": "//cloud.cocorobo.cn/mind/"
  4101. })
  4102. _box.appendChild(_iframe);
  4103. _box.appendChild(_jie);
  4104. _formdiv = new U.UF.UI.form(
  4105. "思维导图",
  4106. _box, { //"/jsmind/example/demo.html"
  4107. "id": "mind" + cid + stage + task + tool,
  4108. "style": {
  4109. "width": "90%",
  4110. "height": "90%",
  4111. "overflow": 'hidden'
  4112. },
  4113. "onresize": function () { }
  4114. }, {
  4115. closecallback: function () { }
  4116. }, {
  4117. "style": {
  4118. "height": "36px"
  4119. }
  4120. }).form; //创建窗体
  4121. _taskbar = {
  4122. "id": str + _formdiv.id,
  4123. "style": {
  4124. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4125. },
  4126. "name": "思维导图",
  4127. "forms": _formdiv,
  4128. "click": function () {
  4129. U.MD.D.I.openApplication(str, obj, info);
  4130. }
  4131. }
  4132. break;
  4133. case "doc":
  4134. aTool = 6;
  4135. _iframe = $$("iframe", {
  4136. "frameborder": "no",
  4137. "border": "0",
  4138. "scrolling ": "no",
  4139. "style": {
  4140. "cssText": "border:0;width:100%;height:100%"
  4141. },
  4142. "src": "/Office/Word/WordEditArea.htm"
  4143. })
  4144. _box.appendChild(_iframe);
  4145. _box.appendChild(_jie);
  4146. _formdiv = new U.UF.UI.form(
  4147. "协同文档",
  4148. _box, {
  4149. "id": "doc" + cid + stage + task + tool,
  4150. "style": {
  4151. "width": "90%",
  4152. "height": "90%",
  4153. "overflow": 'hidden'
  4154. },
  4155. "onresize": function () { }
  4156. }, {
  4157. closecallback: function () { }
  4158. }, {
  4159. "style": {
  4160. "height": "36px"
  4161. }
  4162. }).form; //创建窗体
  4163. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4164. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4165. })
  4166. _taskbar = {
  4167. "id": str + _formdiv.id,
  4168. "style": {
  4169. "backgroundImage": "url(/img/icon/doc.png)"
  4170. },
  4171. "name": "协同文档",
  4172. "forms": _formdiv,
  4173. "click": function () {
  4174. U.MD.D.I.openApplication(str, obj, info);
  4175. }
  4176. }
  4177. break;
  4178. case "mindNetwork": //好友打开
  4179. aTool = 7;
  4180. _iframe = $$("iframe", {
  4181. "webkitallowfullscreen": "",
  4182. "mozallowfullscreen": "",
  4183. "allowfullscreen": "",
  4184. "frameborder": "no",
  4185. "border": "0",
  4186. "scrolling ": "no",
  4187. "style": {
  4188. "cssText": "border:0; width:100%; height:100%;"
  4189. },
  4190. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4191. })
  4192. _box.appendChild(_iframe);
  4193. _box.appendChild(_jie);
  4194. _formdiv = new U.UF.UI.form(
  4195. "思维网格",
  4196. _box, {
  4197. "id": "mindNetwork" + cid + stage + task + tool,
  4198. "style": {
  4199. "width": "90%",
  4200. "height": "90%",
  4201. "overflow": 'hidden'
  4202. },
  4203. "onresize": function () { }
  4204. }, {
  4205. closecallback: function () { }
  4206. }, {
  4207. "style": {
  4208. "height": "36px"
  4209. }
  4210. }).form; //创建窗体
  4211. _taskbar = {
  4212. "id": str + _formdiv.id,
  4213. "style": {
  4214. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4215. },
  4216. "name": "思维网格",
  4217. "forms": _formdiv,
  4218. "click": function () {
  4219. U.MD.D.I.openApplication(str, obj, info);
  4220. }
  4221. }
  4222. break;
  4223. case "courseDesign":
  4224. _iframe = $$("iframe", {
  4225. "webkitallowfullscreen": "",
  4226. "mozallowfullscreen": "",
  4227. "allowfullscreen": "",
  4228. "frameborder": "no",
  4229. "border": "0",
  4230. "scrolling ": "no",
  4231. "style": {
  4232. "cssText": "border:0; width:100%; height:100%;"
  4233. },
  4234. "src": "/course-design-vue"
  4235. })
  4236. _box.appendChild(_iframe);
  4237. _box.appendChild(_jie);
  4238. _formdiv = new U.UF.UI.form(
  4239. "项目设计",
  4240. _box, {
  4241. "id": "courseDesign" + cid + stage + task + tool,
  4242. "style": {
  4243. "width": "90%",
  4244. "height": "90%",
  4245. "overflow": 'hidden'
  4246. },
  4247. "onresize": function () { }
  4248. }, {
  4249. closecallback: function () { }
  4250. }, {
  4251. "style": {
  4252. "height": "36px"
  4253. }
  4254. }).form; //创建窗体
  4255. _taskbar = {
  4256. "id": str + _formdiv.id,
  4257. "style": {
  4258. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4259. },
  4260. "name": "项目设计",
  4261. "forms": _formdiv,
  4262. "click": function () {
  4263. U.MD.D.I.openApplication(str, obj, info);
  4264. }
  4265. }
  4266. break;
  4267. }
  4268. const script1 = document.createElement("script");
  4269. script1.type = "text/javascript";
  4270. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4271. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4272. const script2 = document.createElement("script");
  4273. script2.type = "text/javascript";
  4274. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4275. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4276. const script3 = document.createElement("script");
  4277. script3.type = "text/javascript";
  4278. script3.charset = "UTF-8";
  4279. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4280. const script4 = document.createElement("script");
  4281. script4.type = "text/javascript";
  4282. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4283. script4.src = window.origin + "/js/Common/jietu2E.js";
  4284. if (_iframe) {
  4285. if (str == 'doc') {
  4286. _iframe = _formdiv.querySelector('iframe')
  4287. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4288. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4289. _iframe.contentWindow.document.body.appendChild(script1);
  4290. _iframe.contentWindow.document.body.appendChild(script2);
  4291. // _iframe.contentWindow.document.body.appendChild(script3);
  4292. _iframe.contentWindow.document.body.appendChild(script4);
  4293. })
  4294. if (onloadListener) {
  4295. _iframe.contentDocument.location.reload()
  4296. } else {
  4297. _iframe.contentDocument.location.reload()
  4298. }
  4299. } else if (str == 'courseDesign') {
  4300. U.UF.DL.iframeLoad(_iframe, function () {
  4301. // _iframe.contentWindow.U.MD.O.W.load();
  4302. // _iframe.contentWindow.document.body.appendChild(script1);
  4303. _iframe.contentWindow.document.body.appendChild(script2);
  4304. _iframe.contentWindow.document.body.appendChild(script4);
  4305. })
  4306. } else if (str == 'mind') {
  4307. _iframe = _formdiv.querySelector('iframe')
  4308. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4309. //
  4310. _iframe.contentWindow.document.body.appendChild(script1);
  4311. _iframe.contentWindow.document.body.appendChild(script2);
  4312. _iframe.contentWindow.document.body.appendChild(script4);
  4313. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4314. })
  4315. if (onloadListener) {
  4316. _iframe.contentDocument.location.reload()
  4317. } else {
  4318. _iframe.contentDocument.location.reload()
  4319. }
  4320. } else if (str == 'whiteboard') {
  4321. _iframe = _formdiv.querySelector('iframe')
  4322. let onloadListener = _iframe.onload = () => {
  4323. _iframe.contentWindow.document.body.appendChild(script1);
  4324. _iframe.contentWindow.document.body.appendChild(script2);
  4325. _iframe.contentWindow.document.body.appendChild(script4);
  4326. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4327. };
  4328. if (onloadListener) {
  4329. _iframe.contentDocument.location.reload()
  4330. } else {
  4331. _iframe.contentDocument.location.reload()
  4332. }
  4333. } else {
  4334. _iframe.onload = () => {
  4335. _iframe.contentWindow.document.body.appendChild(script1);
  4336. _iframe.contentWindow.document.body.appendChild(script2);
  4337. // _iframe.contentWindow.document.body.appendChild(script3);
  4338. _iframe.contentWindow.document.body.appendChild(script4);
  4339. };
  4340. }
  4341. _jie.onclick = async () => {
  4342. let text = ''
  4343. if (aTool == 1) {
  4344. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4345. } else if (aTool == 6) {
  4346. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4347. } else if (aTool == 3) {
  4348. text = await U.MD.D.I.getEditorContent(_iframe);
  4349. }
  4350. _loading.style.display = 'flex'
  4351. console.log(_loading);
  4352. var _ajs = _iframe.contentWindow.document.createElement("script");
  4353. _ajs.type = "text/javascript";
  4354. _ajs.innerHTML =
  4355. // 'console.log(' + _loading + ');\n' +
  4356. 'var _js = document.createElement("script");\n' +
  4357. '_js.type="text/javascript";\n' +
  4358. '_js.charset="UTF-8";\n' +
  4359. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4360. "_js.onload = function(){\n" +
  4361. ' var a = document.getElementsByTagName("img")\n' +
  4362. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4363. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4364. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4365. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4366. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4367. "beforeUpload_shishi(file," +
  4368. "'" +
  4369. _userid +
  4370. "'" +
  4371. ", " +
  4372. "'" +
  4373. _cid +
  4374. "'" +
  4375. ", " +
  4376. "'" +
  4377. _stage +
  4378. "'" +
  4379. ", " +
  4380. "'" +
  4381. _task +
  4382. "'" +
  4383. ", " +
  4384. "'" +
  4385. _tool +
  4386. "'" +
  4387. ", " +
  4388. "'" +
  4389. (str + '_loadLi_JieE' + cid + stage + task + tool+_userid) +
  4390. "'" +
  4391. ", " +
  4392. "'" +
  4393. aTool +
  4394. "'" +
  4395. ", " +
  4396. "`" +
  4397. text +
  4398. "`" +
  4399. ")\n" +
  4400. " });\n" +
  4401. "}\n" +
  4402. "document.head.appendChild(_js);\n";
  4403. _iframe.contentWindow.document.head.appendChild(_ajs);
  4404. }
  4405. }
  4406. //U.MD.D.I.openClick(str);
  4407. //如果有任务栏信息
  4408. // if (_taskbar) {
  4409. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4410. // }
  4411. }
  4412. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4413. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4414. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4415. _userid = student.userid, //登录用户id
  4416. _username = student.student //用户名字
  4417. let _iframe;
  4418. let _cid = cid,
  4419. _stage = stage,
  4420. _task = task,
  4421. _tool = tool;
  4422. var _jie = $$("div", {
  4423. "style": {
  4424. "position": "absolute",
  4425. "bottom": "50px",
  4426. "right": "50px",
  4427. "zIndex": "9999",
  4428. "backgroundColor": "#2268bc",
  4429. "color": "#fff",
  4430. "padding": "12px 20px",
  4431. "cursor": "pointer",
  4432. "borderRadius": "4px",
  4433. },
  4434. "innerHTML": "提交作业"
  4435. })
  4436. let aTool = ''
  4437. let _loading = document.createElement('div')
  4438. _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;"
  4439. // _loading.id = "";
  4440. let _lchild = document.createElement('div')
  4441. let _limg = document.createElement('img')
  4442. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4443. _limg.style = "width: 26px;margin-right: 10px;"
  4444. _lchild.appendChild(_limg)
  4445. let _lspan = document.createElement('span')
  4446. _lspan.innerHTML = "上传中..."
  4447. _lchild.appendChild(_lspan)
  4448. _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%);"
  4449. _loading.appendChild(_lchild)
  4450. var _box = $$('div', {
  4451. "style": {
  4452. "position": "relative",
  4453. "width": "100%",
  4454. "height": "100%",
  4455. },
  4456. })
  4457. _box.appendChild(_loading)
  4458. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid
  4459. switch (str) {
  4460. case "whiteboard":
  4461. aTool = 1;
  4462. _iframe = $$("iframe", {
  4463. "frameborder": "no",
  4464. "border": "0",
  4465. "scrolling ": "no",
  4466. "style": {
  4467. "cssText": "border:0;width:100%;height:100%"
  4468. },
  4469. "src": "https://iwb.cocorobo.cn/"
  4470. })
  4471. _box.appendChild(_iframe);
  4472. _box.appendChild(_jie);
  4473. _formdiv = new U.UF.UI.form(
  4474. "电子白板-" + _username,
  4475. _box, {
  4476. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4477. "style": {
  4478. "width": "90%",
  4479. "height": "90%",
  4480. "overflow": 'hidden'
  4481. },
  4482. "onresize": function () { }
  4483. }, {
  4484. closecallback: function () { }
  4485. }, {
  4486. "style": {
  4487. "height": "36px"
  4488. }
  4489. }).form; //创建窗体
  4490. _taskbar = {
  4491. "id": str + _formdiv.id,
  4492. "style": {
  4493. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4494. },
  4495. "name": "电子白板",
  4496. "forms": _formdiv,
  4497. "click": function () {
  4498. U.MD.D.I.openApplication(str, obj, info);
  4499. }
  4500. }
  4501. break;
  4502. case "mind":
  4503. aTool = 3;
  4504. _iframe = $$("iframe", {
  4505. "frameborder": "no",
  4506. "border": "0",
  4507. "scrolling ": "no",
  4508. "style": {
  4509. "cssText": "border:0;width:100%;height:100%"
  4510. },
  4511. "src": "/kityminder-editor/dist/index.html"
  4512. })
  4513. _box.appendChild(_iframe);
  4514. _box.appendChild(_jie);
  4515. _formdiv = new U.UF.UI.form(
  4516. "思维导图-" + _username,
  4517. _box, { //"/jsmind/example/demo.html"
  4518. "id": "mind" + cid + stage + task + tool + _userid,
  4519. "style": {
  4520. "width": "90%",
  4521. "height": "90%",
  4522. "overflow": 'hidden'
  4523. },
  4524. "onresize": function () { }
  4525. }, {
  4526. closecallback: function () { }
  4527. }, {
  4528. "style": {
  4529. "height": "36px"
  4530. }
  4531. }).form; //创建窗体
  4532. _taskbar = {
  4533. "id": str + _formdiv.id,
  4534. "style": {
  4535. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4536. },
  4537. "name": "思维导图",
  4538. "forms": _formdiv,
  4539. "click": function () {
  4540. U.MD.D.I.openApplication(str, obj, info);
  4541. }
  4542. }
  4543. break;
  4544. case "MindMap":
  4545. aTool = 3;
  4546. _iframe = $$("iframe", {
  4547. "frameborder": "no",
  4548. "border": "0",
  4549. "scrolling ": "no",
  4550. "style": {
  4551. "cssText": "border:0;width:100%;height:100%"
  4552. },
  4553. "src": "//cloud.cocorobo.cn/mind/"
  4554. })
  4555. _box.appendChild(_iframe);
  4556. _box.appendChild(_jie);
  4557. _formdiv = new U.UF.UI.form(
  4558. "思维导图-" + _username,
  4559. _box, { //"/jsmind/example/demo.html"
  4560. "id": "mind" + cid + stage + task + tool + _userid,
  4561. "style": {
  4562. "width": "90%",
  4563. "height": "90%",
  4564. "overflow": 'hidden'
  4565. },
  4566. "onresize": function () { }
  4567. }, {
  4568. closecallback: function () { }
  4569. }, {
  4570. "style": {
  4571. "height": "36px"
  4572. }
  4573. }).form; //创建窗体
  4574. _taskbar = {
  4575. "id": str + _formdiv.id,
  4576. "style": {
  4577. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4578. },
  4579. "name": "思维导图",
  4580. "forms": _formdiv,
  4581. "click": function () {
  4582. U.MD.D.I.openApplication(str, obj, info);
  4583. }
  4584. }
  4585. break;
  4586. case "doc":
  4587. aTool = 6;
  4588. _iframe = $$("iframe", {
  4589. "frameborder": "no",
  4590. "border": "0",
  4591. "scrolling ": "no",
  4592. "style": {
  4593. "cssText": "border:0;width:100%;height:100%"
  4594. },
  4595. "src": "/Office/Word/WordEditArea.htm"
  4596. })
  4597. _box.appendChild(_iframe);
  4598. _box.appendChild(_jie);
  4599. _formdiv = new U.UF.UI.form(
  4600. "协同文档-" + _username,
  4601. _box, {
  4602. "id": "doc" + cid + stage + task + tool + _userid,
  4603. "style": {
  4604. "width": "90%",
  4605. "height": "90%",
  4606. "overflow": 'hidden'
  4607. },
  4608. "onresize": function () { }
  4609. }, {
  4610. closecallback: function () { }
  4611. }, {
  4612. "style": {
  4613. "height": "36px"
  4614. }
  4615. }).form; //创建窗体
  4616. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4617. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4618. })
  4619. _taskbar = {
  4620. "id": str + _formdiv.id,
  4621. "style": {
  4622. "backgroundImage": "url(/img/icon/doc.png)"
  4623. },
  4624. "name": "协同文档",
  4625. "forms": _formdiv,
  4626. "click": function () {
  4627. U.MD.D.I.openApplication(str, obj, info);
  4628. }
  4629. }
  4630. break;
  4631. case "mindNetwork": //好友打开
  4632. aTool = 7;
  4633. _iframe = $$("iframe", {
  4634. "webkitallowfullscreen": "",
  4635. "mozallowfullscreen": "",
  4636. "allowfullscreen": "",
  4637. "frameborder": "no",
  4638. "border": "0",
  4639. "scrolling ": "no",
  4640. "style": {
  4641. "cssText": "border:0; width:100%; height:100%;"
  4642. },
  4643. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4644. })
  4645. _box.appendChild(_iframe);
  4646. _box.appendChild(_jie);
  4647. _formdiv = new U.UF.UI.form(
  4648. "思维网格-" + _username,
  4649. _box, {
  4650. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4651. "style": {
  4652. "width": "90%",
  4653. "height": "90%",
  4654. "overflow": 'hidden'
  4655. },
  4656. "onresize": function () { }
  4657. }, {
  4658. closecallback: function () { }
  4659. }, {
  4660. "style": {
  4661. "height": "36px"
  4662. }
  4663. }).form; //创建窗体
  4664. _taskbar = {
  4665. "id": str + _formdiv.id,
  4666. "style": {
  4667. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4668. },
  4669. "name": "思维网格",
  4670. "forms": _formdiv,
  4671. "click": function () {
  4672. U.MD.D.I.openApplication(str, obj, info);
  4673. }
  4674. }
  4675. break;
  4676. case "courseDesign":
  4677. _iframe = $$("iframe", {
  4678. "webkitallowfullscreen": "",
  4679. "mozallowfullscreen": "",
  4680. "allowfullscreen": "",
  4681. "frameborder": "no",
  4682. "border": "0",
  4683. "scrolling ": "no",
  4684. "style": {
  4685. "cssText": "border:0; width:100%; height:100%;"
  4686. },
  4687. "src": "/course-design-vue"
  4688. })
  4689. _box.appendChild(_iframe);
  4690. _box.appendChild(_jie);
  4691. _formdiv = new U.UF.UI.form(
  4692. "项目设计-" + _username,
  4693. _box, {
  4694. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4695. "style": {
  4696. "width": "90%",
  4697. "height": "90%",
  4698. "overflow": 'hidden'
  4699. },
  4700. "onresize": function () { }
  4701. }, {
  4702. closecallback: function () { }
  4703. }, {
  4704. "style": {
  4705. "height": "36px"
  4706. }
  4707. }).form; //创建窗体
  4708. _taskbar = {
  4709. "id": str + _formdiv.id,
  4710. "style": {
  4711. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4712. },
  4713. "name": "项目设计",
  4714. "forms": _formdiv,
  4715. "click": function () {
  4716. U.MD.D.I.openApplication(str, obj, info);
  4717. }
  4718. }
  4719. break;
  4720. }
  4721. const script1 = document.createElement("script");
  4722. script1.type = "text/javascript";
  4723. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4724. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4725. const script2 = document.createElement("script");
  4726. script2.type = "text/javascript";
  4727. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4728. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4729. const script3 = document.createElement("script");
  4730. script3.type = "text/javascript";
  4731. script3.charset = "UTF-8";
  4732. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4733. const script4 = document.createElement("script");
  4734. script4.type = "text/javascript";
  4735. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4736. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4737. if (_iframe) {
  4738. if (str == 'doc') {
  4739. _iframe = _formdiv.querySelector('iframe')
  4740. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4741. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4742. _iframe.contentWindow.document.body.appendChild(script1);
  4743. _iframe.contentWindow.document.body.appendChild(script2);
  4744. // _iframe.contentWindow.document.body.appendChild(script3);
  4745. _iframe.contentWindow.document.body.appendChild(script4);
  4746. })
  4747. if (onloadListener) {
  4748. _iframe.contentDocument.location.reload()
  4749. } else {
  4750. _iframe.contentDocument.location.reload()
  4751. }
  4752. } else if (str == 'courseDesign') {
  4753. U.UF.DL.iframeLoad(_iframe, function () {
  4754. // _iframe.contentWindow.U.MD.O.W.load();
  4755. // _iframe.contentWindow.document.body.appendChild(script1);
  4756. _iframe.contentWindow.document.body.appendChild(script2);
  4757. _iframe.contentWindow.document.body.appendChild(script4);
  4758. })
  4759. } else if (str == 'mind') {
  4760. _iframe = _formdiv.querySelector('iframe')
  4761. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4762. //
  4763. _iframe.contentWindow.document.body.appendChild(script1);
  4764. _iframe.contentWindow.document.body.appendChild(script2);
  4765. _iframe.contentWindow.document.body.appendChild(script4);
  4766. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4767. })
  4768. if (onloadListener) {
  4769. _iframe.contentDocument.location.reload()
  4770. } else {
  4771. _iframe.contentDocument.location.reload()
  4772. }
  4773. } else if (str == 'whiteboard') {
  4774. _iframe = _formdiv.querySelector('iframe')
  4775. let onloadListener = _iframe.onload = () => {
  4776. _iframe.contentWindow.document.body.appendChild(script1);
  4777. _iframe.contentWindow.document.body.appendChild(script2);
  4778. _iframe.contentWindow.document.body.appendChild(script4);
  4779. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4780. };
  4781. if (onloadListener) {
  4782. _iframe.contentDocument.location.reload()
  4783. } else {
  4784. _iframe.contentDocument.location.reload()
  4785. }
  4786. } else {
  4787. _iframe.onload = () => {
  4788. _iframe.contentWindow.document.body.appendChild(script1);
  4789. _iframe.contentWindow.document.body.appendChild(script2);
  4790. // _iframe.contentWindow.document.body.appendChild(script3);
  4791. _iframe.contentWindow.document.body.appendChild(script4);
  4792. };
  4793. }
  4794. _jie.onclick = async () => {
  4795. let text = ''
  4796. if (aTool == 1) {
  4797. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4798. } else if (aTool == 6) {
  4799. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4800. } else if (aTool == 3) {
  4801. text = await U.MD.D.I.getEditorContent(_iframe);
  4802. }
  4803. _loading.style.display = 'flex'
  4804. console.log(_loading);
  4805. var _ajs = _iframe.contentWindow.document.createElement("script");
  4806. _ajs.type = "text/javascript";
  4807. _ajs.innerHTML =
  4808. // 'console.log(' + _loading + ');\n' +
  4809. 'var _js = document.createElement("script");\n' +
  4810. '_js.type="text/javascript";\n' +
  4811. '_js.charset="UTF-8";\n' +
  4812. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4813. "_js.onload = function(){\n" +
  4814. ' var a = document.getElementsByTagName("img")\n' +
  4815. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4816. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4817. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4818. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4819. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4820. "beforeUpload_shishi(file," +
  4821. "'" +
  4822. _userid +
  4823. "'" +
  4824. ", " +
  4825. "'" +
  4826. _cid +
  4827. "'" +
  4828. ", " +
  4829. "'" +
  4830. _stage +
  4831. "'" +
  4832. ", " +
  4833. "'" +
  4834. _task +
  4835. "'" +
  4836. ", " +
  4837. "'" +
  4838. _tool +
  4839. "'" +
  4840. ", " +
  4841. "'" +
  4842. (str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid) +
  4843. "'" +
  4844. ", " +
  4845. "'" +
  4846. aTool +
  4847. "'" +
  4848. ", " +
  4849. "`" +
  4850. text +
  4851. "`" +
  4852. ")\n" +
  4853. " });\n" +
  4854. "}\n" +
  4855. "document.head.appendChild(_js);\n";
  4856. _iframe.contentWindow.document.head.appendChild(_ajs);
  4857. }
  4858. }
  4859. }
  4860. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  4861. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4862. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4863. _userid = student.userid, //登录用户id
  4864. _username = student.student //用户名字
  4865. let _iframe;
  4866. let _cid = cid,
  4867. _stage = stage,
  4868. _task = task,
  4869. _tool = tool;
  4870. var _jie = $$("div", {
  4871. "style": {
  4872. "position": "absolute",
  4873. "bottom": "50px",
  4874. "right": "50px",
  4875. "zIndex": "9999",
  4876. "backgroundColor": "#2268bc",
  4877. "color": "#fff",
  4878. "padding": "12px 20px",
  4879. "cursor": "pointer",
  4880. "borderRadius": "4px",
  4881. },
  4882. "innerHTML": "提交作业"
  4883. })
  4884. let aTool = ''
  4885. let _loading = document.createElement('div')
  4886. _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;"
  4887. // _loading.id = "";
  4888. let _lchild = document.createElement('div')
  4889. let _limg = document.createElement('img')
  4890. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4891. _limg.style = "width: 26px;margin-right: 10px;"
  4892. _lchild.appendChild(_limg)
  4893. let _lspan = document.createElement('span')
  4894. _lspan.innerHTML = "上传中..."
  4895. _lchild.appendChild(_lspan)
  4896. _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%);"
  4897. _loading.appendChild(_lchild)
  4898. var _box = $$('div', {
  4899. "style": {
  4900. "position": "relative",
  4901. "width": "100%",
  4902. "height": "100%",
  4903. },
  4904. })
  4905. _box.appendChild(_loading)
  4906. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  4907. switch (str) {
  4908. case "whiteboard":
  4909. aTool = 1;
  4910. _iframe = $$("iframe", {
  4911. "frameborder": "no",
  4912. "border": "0",
  4913. "scrolling ": "no",
  4914. "style": {
  4915. "cssText": "border:0;width:100%;height:100%"
  4916. },
  4917. "src": "https://iwb.cocorobo.cn/"
  4918. })
  4919. _box.appendChild(_iframe);
  4920. _box.appendChild(_jie);
  4921. _formdiv = new U.UF.UI.form(
  4922. "电子白板-" + _username,
  4923. _box, {
  4924. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4925. "style": {
  4926. "width": "90%",
  4927. "height": "90%",
  4928. "overflow": 'hidden'
  4929. },
  4930. "onresize": function () { }
  4931. }, {
  4932. closecallback: function () { }
  4933. }, {
  4934. "style": {
  4935. "height": "36px"
  4936. }
  4937. }).form; //创建窗体
  4938. _taskbar = {
  4939. "id": str + _formdiv.id,
  4940. "style": {
  4941. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4942. },
  4943. "name": "电子白板",
  4944. "forms": _formdiv,
  4945. "click": function () {
  4946. U.MD.D.I.openApplication(str, obj, info);
  4947. }
  4948. }
  4949. break;
  4950. case "mind":
  4951. aTool = 3;
  4952. _iframe = $$("iframe", {
  4953. "frameborder": "no",
  4954. "border": "0",
  4955. "scrolling ": "no",
  4956. "style": {
  4957. "cssText": "border:0;width:100%;height:100%"
  4958. },
  4959. "src": "/kityminder-editor/dist/index.html"
  4960. })
  4961. _box.appendChild(_iframe);
  4962. _box.appendChild(_jie);
  4963. _formdiv = new U.UF.UI.form(
  4964. "思维导图-" + _username,
  4965. _box, { //"/jsmind/example/demo.html"
  4966. "id": "mind" + cid + stage + task + tool + _userid,
  4967. "style": {
  4968. "width": "90%",
  4969. "height": "90%",
  4970. "overflow": 'hidden'
  4971. },
  4972. "onresize": function () { }
  4973. }, {
  4974. closecallback: function () { }
  4975. }, {
  4976. "style": {
  4977. "height": "36px"
  4978. }
  4979. }).form; //创建窗体
  4980. _taskbar = {
  4981. "id": str + _formdiv.id,
  4982. "style": {
  4983. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4984. },
  4985. "name": "思维导图",
  4986. "forms": _formdiv,
  4987. "click": function () {
  4988. U.MD.D.I.openApplication(str, obj, info);
  4989. }
  4990. }
  4991. break;
  4992. case "MindMap":
  4993. aTool = 3;
  4994. _iframe = $$("iframe", {
  4995. "frameborder": "no",
  4996. "border": "0",
  4997. "scrolling ": "no",
  4998. "style": {
  4999. "cssText": "border:0;width:100%;height:100%"
  5000. },
  5001. "src": "//cloud.cocorobo.cn/mind/"
  5002. })
  5003. _box.appendChild(_iframe);
  5004. _box.appendChild(_jie);
  5005. _formdiv = new U.UF.UI.form(
  5006. "思维导图-" + _username,
  5007. _box, { //"/jsmind/example/demo.html"
  5008. "id": "mind" + cid + stage + task + tool + _userid,
  5009. "style": {
  5010. "width": "90%",
  5011. "height": "90%",
  5012. "overflow": 'hidden'
  5013. },
  5014. "onresize": function () { }
  5015. }, {
  5016. closecallback: function () { }
  5017. }, {
  5018. "style": {
  5019. "height": "36px"
  5020. }
  5021. }).form; //创建窗体
  5022. _taskbar = {
  5023. "id": str + _formdiv.id,
  5024. "style": {
  5025. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5026. },
  5027. "name": "思维导图",
  5028. "forms": _formdiv,
  5029. "click": function () {
  5030. U.MD.D.I.openApplication(str, obj, info);
  5031. }
  5032. }
  5033. break;
  5034. case "doc":
  5035. aTool = 6;
  5036. _iframe = $$("iframe", {
  5037. "frameborder": "no",
  5038. "border": "0",
  5039. "scrolling ": "no",
  5040. "style": {
  5041. "cssText": "border:0;width:100%;height:100%"
  5042. },
  5043. "src": "/Office/Word/WordEditArea.htm"
  5044. })
  5045. _box.appendChild(_iframe);
  5046. _box.appendChild(_jie);
  5047. _formdiv = new U.UF.UI.form(
  5048. "协同文档-" + _username,
  5049. _box, {
  5050. "id": "doc" + cid + stage + task + tool + _userid,
  5051. "style": {
  5052. "width": "90%",
  5053. "height": "90%",
  5054. "overflow": 'hidden'
  5055. },
  5056. "onresize": function () { }
  5057. }, {
  5058. closecallback: function () { }
  5059. }, {
  5060. "style": {
  5061. "height": "36px"
  5062. }
  5063. }).form; //创建窗体
  5064. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5065. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5066. })
  5067. _taskbar = {
  5068. "id": str + _formdiv.id,
  5069. "style": {
  5070. "backgroundImage": "url(/img/icon/doc.png)"
  5071. },
  5072. "name": "协同文档",
  5073. "forms": _formdiv,
  5074. "click": function () {
  5075. U.MD.D.I.openApplication(str, obj, info);
  5076. }
  5077. }
  5078. break;
  5079. case "mindNetwork": //好友打开
  5080. aTool = 7;
  5081. _iframe = $$("iframe", {
  5082. "webkitallowfullscreen": "",
  5083. "mozallowfullscreen": "",
  5084. "allowfullscreen": "",
  5085. "frameborder": "no",
  5086. "border": "0",
  5087. "scrolling ": "no",
  5088. "style": {
  5089. "cssText": "border:0; width:100%; height:100%;"
  5090. },
  5091. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5092. })
  5093. _box.appendChild(_iframe);
  5094. _box.appendChild(_jie);
  5095. _formdiv = new U.UF.UI.form(
  5096. "思维网格-" + _username,
  5097. _box, {
  5098. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5099. "style": {
  5100. "width": "90%",
  5101. "height": "90%",
  5102. "overflow": 'hidden'
  5103. },
  5104. "onresize": function () { }
  5105. }, {
  5106. closecallback: function () { }
  5107. }, {
  5108. "style": {
  5109. "height": "36px"
  5110. }
  5111. }).form; //创建窗体
  5112. _taskbar = {
  5113. "id": str + _formdiv.id,
  5114. "style": {
  5115. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5116. },
  5117. "name": "思维网格",
  5118. "forms": _formdiv,
  5119. "click": function () {
  5120. U.MD.D.I.openApplication(str, obj, info);
  5121. }
  5122. }
  5123. break;
  5124. case "courseDesign":
  5125. _iframe = $$("iframe", {
  5126. "webkitallowfullscreen": "",
  5127. "mozallowfullscreen": "",
  5128. "allowfullscreen": "",
  5129. "frameborder": "no",
  5130. "border": "0",
  5131. "scrolling ": "no",
  5132. "style": {
  5133. "cssText": "border:0; width:100%; height:100%;"
  5134. },
  5135. "src": "/course-design-vue"
  5136. })
  5137. _box.appendChild(_iframe);
  5138. _box.appendChild(_jie);
  5139. _formdiv = new U.UF.UI.form(
  5140. "项目设计-" + _username,
  5141. _box, {
  5142. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5143. "style": {
  5144. "width": "90%",
  5145. "height": "90%",
  5146. "overflow": 'hidden'
  5147. },
  5148. "onresize": function () { }
  5149. }, {
  5150. closecallback: function () { }
  5151. }, {
  5152. "style": {
  5153. "height": "36px"
  5154. }
  5155. }).form; //创建窗体
  5156. _taskbar = {
  5157. "id": str + _formdiv.id,
  5158. "style": {
  5159. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5160. },
  5161. "name": "项目设计",
  5162. "forms": _formdiv,
  5163. "click": function () {
  5164. U.MD.D.I.openApplication(str, obj, info);
  5165. }
  5166. }
  5167. break;
  5168. }
  5169. const script1 = document.createElement("script");
  5170. script1.type = "text/javascript";
  5171. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5172. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5173. const script2 = document.createElement("script");
  5174. script2.type = "text/javascript";
  5175. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5176. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5177. const script3 = document.createElement("script");
  5178. script3.type = "text/javascript";
  5179. script3.charset = "UTF-8";
  5180. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5181. const script4 = document.createElement("script");
  5182. script4.type = "text/javascript";
  5183. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5184. script4.src = window.origin + "/js/Common/jietu2E.js";
  5185. if (_iframe) {
  5186. if (str == 'doc') {
  5187. _iframe = _formdiv.querySelector('iframe')
  5188. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5189. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5190. _iframe.contentWindow.document.body.appendChild(script1);
  5191. _iframe.contentWindow.document.body.appendChild(script2);
  5192. // _iframe.contentWindow.document.body.appendChild(script3);
  5193. _iframe.contentWindow.document.body.appendChild(script4);
  5194. })
  5195. if (onloadListener) {
  5196. _iframe.contentDocument.location.reload()
  5197. } else {
  5198. _iframe.contentDocument.location.reload()
  5199. }
  5200. } else if (str == 'courseDesign') {
  5201. U.UF.DL.iframeLoad(_iframe, function () {
  5202. // _iframe.contentWindow.U.MD.O.W.load();
  5203. // _iframe.contentWindow.document.body.appendChild(script1);
  5204. _iframe.contentWindow.document.body.appendChild(script2);
  5205. _iframe.contentWindow.document.body.appendChild(script4);
  5206. })
  5207. } else if (str == 'mind') {
  5208. _iframe = _formdiv.querySelector('iframe')
  5209. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5210. //
  5211. _iframe.contentWindow.document.body.appendChild(script1);
  5212. _iframe.contentWindow.document.body.appendChild(script2);
  5213. _iframe.contentWindow.document.body.appendChild(script4);
  5214. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5215. })
  5216. if (onloadListener) {
  5217. _iframe.contentDocument.location.reload()
  5218. } else {
  5219. _iframe.contentDocument.location.reload()
  5220. }
  5221. } else if (str == 'whiteboard') {
  5222. _iframe = _formdiv.querySelector('iframe')
  5223. let onloadListener = _iframe.onload = () => {
  5224. _iframe.contentWindow.document.body.appendChild(script1);
  5225. _iframe.contentWindow.document.body.appendChild(script2);
  5226. _iframe.contentWindow.document.body.appendChild(script4);
  5227. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5228. };
  5229. if (onloadListener) {
  5230. _iframe.contentDocument.location.reload()
  5231. } else {
  5232. _iframe.contentDocument.location.reload()
  5233. }
  5234. } else {
  5235. _iframe.onload = () => {
  5236. _iframe.contentWindow.document.body.appendChild(script1);
  5237. _iframe.contentWindow.document.body.appendChild(script2);
  5238. // _iframe.contentWindow.document.body.appendChild(script3);
  5239. _iframe.contentWindow.document.body.appendChild(script4);
  5240. };
  5241. }
  5242. _jie.onclick = async () => {
  5243. let text = ''
  5244. if (aTool == 1) {
  5245. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5246. } else if (aTool == 6) {
  5247. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5248. } else if (aTool == 3) {
  5249. text = await U.MD.D.I.getEditorContent(_iframe);
  5250. }
  5251. _loading.style.display = 'flex'
  5252. console.log(_loading);
  5253. var _ajs = _iframe.contentWindow.document.createElement("script");
  5254. _ajs.type = "text/javascript";
  5255. _ajs.innerHTML =
  5256. // 'console.log(' + _loading + ');\n' +
  5257. 'var _js = document.createElement("script");\n' +
  5258. '_js.type="text/javascript";\n' +
  5259. '_js.charset="UTF-8";\n' +
  5260. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5261. "_js.onload = function(){\n" +
  5262. ' var a = document.getElementsByTagName("img")\n' +
  5263. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5264. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5265. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5266. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5267. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5268. "beforeUpload_shishi(file," +
  5269. "'" +
  5270. _userid +
  5271. "'" +
  5272. ", " +
  5273. "'" +
  5274. _cid +
  5275. "'" +
  5276. ", " +
  5277. "'" +
  5278. _stage +
  5279. "'" +
  5280. ", " +
  5281. "'" +
  5282. _task +
  5283. "'" +
  5284. ", " +
  5285. "'" +
  5286. _tool +
  5287. "'" +
  5288. ", " +
  5289. "'" +
  5290. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool+_userid) +
  5291. "'" +
  5292. ", " +
  5293. "'" +
  5294. aTool +
  5295. "'" +
  5296. ", " +
  5297. "`" +
  5298. text +
  5299. "`" +
  5300. ")\n" +
  5301. " });\n" +
  5302. "}\n" +
  5303. "document.head.appendChild(_js);\n";
  5304. _iframe.contentWindow.document.head.appendChild(_ajs);
  5305. }
  5306. }
  5307. }
  5308. U.MD.D.I.getEditorContent = function (iframe) {
  5309. return new Promise((resolve, reject) => {
  5310. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5311. console.log(content);
  5312. resolve(content)
  5313. });
  5314. });
  5315. }
  5316. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5317. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5318. // if (res.value[0].length > 0) {
  5319. // // resolve(res.value[0][0].text);
  5320. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5321. // $(fileInput).val('');
  5322. // });
  5323. // }
  5324. // }, [], { "type": "GET", "withCredentials": true });
  5325. var xmlhttp;
  5326. var Mac, Sn, DeviceId
  5327. if (window.XMLHttpRequest) {
  5328. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5329. xmlhttp = new XMLHttpRequest();
  5330. }
  5331. else {
  5332. // IE6, IE5 浏览器执行代码
  5333. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5334. }
  5335. xmlhttp.onreadystatechange = function () {
  5336. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5337. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5338. // resolve(res.value[0][0].text);
  5339. if (type == '2') {
  5340. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  5341. } else if (type == '3') {
  5342. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5343. }
  5344. } else {
  5345. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5346. }
  5347. }
  5348. }
  5349. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5350. xmlhttp.send();
  5351. }
  5352. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5353. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5354. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5355. _userinfo = US.userInfo, //登录用户信息
  5356. _userid = US.userInfo.userid //登录用户id
  5357. let _iframe;
  5358. let _cid = cid,
  5359. _stage = stage,
  5360. _task = task,
  5361. _tool = tool;
  5362. var _jie = $$("div", {
  5363. "style": {
  5364. "position": "absolute",
  5365. "bottom": "50px",
  5366. "right": "50px",
  5367. "zIndex": "9999",
  5368. "backgroundColor": "#2268bc",
  5369. "color": "#fff",
  5370. "padding": "12px 20px",
  5371. "cursor": "pointer",
  5372. "borderRadius": "4px",
  5373. },
  5374. "innerHTML": "确认并提交"
  5375. })
  5376. let aTool = ''
  5377. let _loading = document.createElement('div')
  5378. _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;"
  5379. // _loading.id = "";
  5380. let _lchild = document.createElement('div')
  5381. let _limg = document.createElement('img')
  5382. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5383. _limg.style = "width: 26px;margin-right: 10px;"
  5384. _lchild.appendChild(_limg)
  5385. let _lspan = document.createElement('span')
  5386. _lspan.innerHTML = "上传中..."
  5387. _lchild.appendChild(_lspan)
  5388. _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%);"
  5389. _loading.appendChild(_lchild)
  5390. var _box = $$('div', {
  5391. "style": {
  5392. "position": "relative",
  5393. "width": "100%",
  5394. "height": "100%",
  5395. },
  5396. })
  5397. _box.appendChild(_loading)
  5398. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool+_userid
  5399. switch (str) {
  5400. case "whiteboard":
  5401. aTool = 1;
  5402. _iframe = $$("iframe", {
  5403. "frameborder": "no",
  5404. "border": "0",
  5405. "scrolling ": "no",
  5406. "style": {
  5407. "cssText": "border:0;width:100%;height:100%"
  5408. },
  5409. "src": "https://iwb.cocorobo.cn/"
  5410. })
  5411. _box.appendChild(_iframe);
  5412. _box.appendChild(_jie);
  5413. _formdiv = new U.UF.UI.form(
  5414. "电子白板",
  5415. _box, {
  5416. "id": "whiteboards" + cid + stage + task + tool,
  5417. "style": {
  5418. "width": "90%",
  5419. "height": "90%",
  5420. "overflow": 'hidden'
  5421. },
  5422. "onresize": function () { }
  5423. }, {
  5424. closecallback: function () { }
  5425. }, {
  5426. "style": {
  5427. "height": "36px"
  5428. }
  5429. }).form; //创建窗体
  5430. _taskbar = {
  5431. "id": str + _formdiv.id,
  5432. "style": {
  5433. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5434. },
  5435. "name": "电子白板",
  5436. "forms": _formdiv,
  5437. "click": function () {
  5438. U.MD.D.I.openApplication(str, obj, info);
  5439. }
  5440. }
  5441. break;
  5442. case "mind":
  5443. aTool = 3;
  5444. _iframe = $$("iframe", {
  5445. "frameborder": "no",
  5446. "border": "0",
  5447. "scrolling ": "no",
  5448. "style": {
  5449. "cssText": "border:0;width:100%;height:100%"
  5450. },
  5451. "src": "/kityminder-editor/dist/index.html"
  5452. });
  5453. _box.appendChild(_iframe);
  5454. _box.appendChild(_jie);
  5455. _formdiv = new U.UF.UI.form(
  5456. "思维导图",
  5457. _box, { //"/jsmind/example/demo.html"
  5458. "id": "minds" + cid + stage + task + tool,
  5459. "style": {
  5460. "width": "90%",
  5461. "height": "90%",
  5462. "overflow": 'hidden'
  5463. },
  5464. "onresize": function () { }
  5465. }, {
  5466. closecallback: function () { }
  5467. }, {
  5468. "style": {
  5469. "height": "36px"
  5470. }
  5471. }).form; //创建窗体
  5472. _taskbar = {
  5473. "id": str + _formdiv.id,
  5474. "style": {
  5475. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5476. },
  5477. "name": "思维导图",
  5478. "forms": _formdiv,
  5479. "click": function () {
  5480. U.MD.D.I.openApplication(str, obj, info);
  5481. }
  5482. }
  5483. break;
  5484. case "doc":
  5485. aTool = 6;
  5486. _iframe = $$("iframe", {
  5487. "frameborder": "no",
  5488. "border": "0",
  5489. "scrolling ": "no",
  5490. "style": {
  5491. "cssText": "border:0;width:100%;height:100%"
  5492. },
  5493. "src": "/Office/Word/WordEditArea.htm"
  5494. })
  5495. _box.appendChild(_iframe);
  5496. _box.appendChild(_jie);
  5497. _formdiv = new U.UF.UI.form(
  5498. "协同文档",
  5499. _box, {
  5500. "id": "docs" + cid + stage + task + tool,
  5501. "style": {
  5502. "width": "90%",
  5503. "height": "90%",
  5504. "overflow": 'hidden'
  5505. },
  5506. "onresize": function () { }
  5507. }, {
  5508. closecallback: function () { }
  5509. }, {
  5510. "style": {
  5511. "height": "36px"
  5512. }
  5513. }).form; //创建窗体
  5514. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5515. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5516. })
  5517. _taskbar = {
  5518. "id": str + _formdiv.id,
  5519. "style": {
  5520. "backgroundImage": "url(/img/icon/doc.png)"
  5521. },
  5522. "name": "协同文档",
  5523. "forms": _formdiv,
  5524. "click": function () {
  5525. U.MD.D.I.openApplication(str, obj, info);
  5526. }
  5527. }
  5528. break;
  5529. }
  5530. const script1 = document.createElement("script");
  5531. script1.type = "text/javascript";
  5532. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5533. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5534. const script2 = document.createElement("script");
  5535. script2.type = "text/javascript";
  5536. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5537. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5538. const script3 = document.createElement("script");
  5539. script3.type = "text/javascript";
  5540. script3.charset = "UTF-8";
  5541. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5542. const script4 = document.createElement("script");
  5543. script4.type = "text/javascript";
  5544. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5545. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5546. if (_iframe) {
  5547. if (str == 'doc') {
  5548. _iframe = _formdiv.querySelector('iframe')
  5549. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5550. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5551. _iframe.contentWindow.document.body.appendChild(script1);
  5552. _iframe.contentWindow.document.body.appendChild(script2);
  5553. // _iframe.contentWindow.document.body.appendChild(script3);
  5554. _iframe.contentWindow.document.body.appendChild(script4);
  5555. })
  5556. if (onloadListener) {
  5557. _iframe.contentDocument.location.reload()
  5558. } else {
  5559. _iframe.contentDocument.location.reload()
  5560. }
  5561. } else if (str == 'mind') {
  5562. _iframe = _formdiv.querySelector('iframe')
  5563. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5564. _iframe.contentWindow.document.body.appendChild(script1);
  5565. _iframe.contentWindow.document.body.appendChild(script2);
  5566. _iframe.contentWindow.document.body.appendChild(script4);
  5567. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5568. })
  5569. if (onloadListener) {
  5570. _iframe.contentDocument.location.reload()
  5571. } else {
  5572. _iframe.contentDocument.location.reload()
  5573. }
  5574. } else {
  5575. _iframe.onload = () => {
  5576. _iframe.contentWindow.document.body.appendChild(script1);
  5577. _iframe.contentWindow.document.body.appendChild(script2);
  5578. // _iframe.contentWindow.document.body.appendChild(script3);
  5579. _iframe.contentWindow.document.body.appendChild(script4);
  5580. };
  5581. }
  5582. _jie.onclick = async () => {
  5583. let text = ''
  5584. if (aTool == 6) {
  5585. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5586. } else if (aTool == 3) {
  5587. text = await U.MD.D.I.getEditorContent(_iframe);
  5588. }
  5589. _loading.style.display = 'flex'
  5590. console.log(_loading);
  5591. var _ajs = _iframe.contentWindow.document.createElement("script");
  5592. _ajs.type = "text/javascript";
  5593. _ajs.innerHTML =
  5594. // 'console.log(' + _loading + ');\n' +
  5595. 'var _js = document.createElement("script");\n' +
  5596. '_js.type="text/javascript";\n' +
  5597. '_js.charset="UTF-8";\n' +
  5598. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5599. "_js.onload = function(){\n" +
  5600. ' var a = document.getElementsByTagName("img")\n' +
  5601. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5602. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5603. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5604. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5605. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5606. "beforeUpload_shishi(file," +
  5607. "'" +
  5608. _userid +
  5609. "'" +
  5610. ", " +
  5611. "'" +
  5612. _cid +
  5613. "'" +
  5614. ", " +
  5615. "'" +
  5616. _stage +
  5617. "'" +
  5618. ", " +
  5619. "'" +
  5620. _task +
  5621. "'" +
  5622. ", " +
  5623. "'" +
  5624. _tool +
  5625. "'" +
  5626. ", " +
  5627. "'" +
  5628. (str + '_loadLi_JieS' + cid + stage + task + tool+_userid) +
  5629. "'" +
  5630. ", " +
  5631. "'" +
  5632. aTool +
  5633. "'" +
  5634. ", " +
  5635. "`" +
  5636. text +
  5637. "`" +
  5638. ")\n" +
  5639. " });\n" +
  5640. "}\n" +
  5641. "document.head.appendChild(_js);\n";
  5642. _iframe.contentWindow.document.head.appendChild(_ajs);
  5643. }
  5644. }
  5645. //U.MD.D.I.openClick(str);
  5646. //如果有任务栏信息
  5647. // if (_taskbar) {
  5648. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5649. // }
  5650. }
  5651. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  5652. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5653. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5654. _userinfo = US.userInfo, //登录用户信息
  5655. _userid = US.userInfo.userid //登录用户id
  5656. let _iframe;
  5657. let _cid = cid,
  5658. _stage = stage,
  5659. _task = task,
  5660. _tool = tool;
  5661. var _jie = $$("div", {
  5662. "style": {
  5663. "position": "absolute",
  5664. "bottom": "50px",
  5665. "right": "50px",
  5666. "zIndex": "9999",
  5667. "backgroundColor": "#2268bc",
  5668. "color": "#fff",
  5669. "padding": "12px 20px",
  5670. "cursor": "pointer",
  5671. "borderRadius": "4px",
  5672. },
  5673. "innerHTML": "确认并提交"
  5674. })
  5675. let aTool = ''
  5676. let _loading = document.createElement('div')
  5677. _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;"
  5678. // _loading.id = "";
  5679. let _lchild = document.createElement('div')
  5680. let _limg = document.createElement('img')
  5681. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5682. _limg.style = "width: 26px;margin-right: 10px;"
  5683. _lchild.appendChild(_limg)
  5684. let _lspan = document.createElement('span')
  5685. _lspan.innerHTML = "上传中..."
  5686. _lchild.appendChild(_lspan)
  5687. _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%);"
  5688. _loading.appendChild(_lchild)
  5689. var _box = $$('div', {
  5690. "style": {
  5691. "position": "relative",
  5692. "width": "100%",
  5693. "height": "100%",
  5694. },
  5695. })
  5696. _box.appendChild(_loading)
  5697. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid
  5698. switch (str) {
  5699. case "whiteboard":
  5700. aTool = 1;
  5701. _iframe = $$("iframe", {
  5702. "frameborder": "no",
  5703. "border": "0",
  5704. "scrolling ": "no",
  5705. "style": {
  5706. "cssText": "border:0;width:100%;height:100%"
  5707. },
  5708. "src": "https://iwb.cocorobo.cn/"
  5709. })
  5710. _box.appendChild(_iframe);
  5711. _box.appendChild(_jie);
  5712. _formdiv = new U.UF.UI.form(
  5713. "电子白板",
  5714. _box, {
  5715. "id": "whiteboards" + cid + stage + task + tool,
  5716. "style": {
  5717. "width": "90%",
  5718. "height": "90%",
  5719. "overflow": 'hidden'
  5720. },
  5721. "onresize": function () { }
  5722. }, {
  5723. closecallback: function () { }
  5724. }, {
  5725. "style": {
  5726. "height": "36px"
  5727. }
  5728. }).form; //创建窗体
  5729. _taskbar = {
  5730. "id": str + _formdiv.id,
  5731. "style": {
  5732. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5733. },
  5734. "name": "电子白板",
  5735. "forms": _formdiv,
  5736. "click": function () {
  5737. U.MD.D.I.openApplication(str, obj, info);
  5738. }
  5739. }
  5740. break;
  5741. case "mind":
  5742. aTool = 3;
  5743. _iframe = $$("iframe", {
  5744. "frameborder": "no",
  5745. "border": "0",
  5746. "scrolling ": "no",
  5747. "style": {
  5748. "cssText": "border:0;width:100%;height:100%"
  5749. },
  5750. "src": "/kityminder-editor/dist/index.html"
  5751. });
  5752. _box.appendChild(_iframe);
  5753. _box.appendChild(_jie);
  5754. _formdiv = new U.UF.UI.form(
  5755. "思维导图",
  5756. _box, { //"/jsmind/example/demo.html"
  5757. "id": "minds" + cid + stage + task + tool,
  5758. "style": {
  5759. "width": "90%",
  5760. "height": "90%",
  5761. "overflow": 'hidden'
  5762. },
  5763. "onresize": function () { }
  5764. }, {
  5765. closecallback: function () { }
  5766. }, {
  5767. "style": {
  5768. "height": "36px"
  5769. }
  5770. }).form; //创建窗体
  5771. _taskbar = {
  5772. "id": str + _formdiv.id,
  5773. "style": {
  5774. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5775. },
  5776. "name": "思维导图",
  5777. "forms": _formdiv,
  5778. "click": function () {
  5779. U.MD.D.I.openApplication(str, obj, info);
  5780. }
  5781. }
  5782. break;
  5783. case "doc":
  5784. aTool = 6;
  5785. _iframe = $$("iframe", {
  5786. "frameborder": "no",
  5787. "border": "0",
  5788. "scrolling ": "no",
  5789. "style": {
  5790. "cssText": "border:0;width:100%;height:100%"
  5791. },
  5792. "src": "/Office/Word/WordEditArea.htm"
  5793. })
  5794. _box.appendChild(_iframe);
  5795. _box.appendChild(_jie);
  5796. _formdiv = new U.UF.UI.form(
  5797. "协同文档",
  5798. _box, {
  5799. "id": "docs" + cid + stage + task + tool,
  5800. "style": {
  5801. "width": "90%",
  5802. "height": "90%",
  5803. "overflow": 'hidden'
  5804. },
  5805. "onresize": function () { }
  5806. }, {
  5807. closecallback: function () { }
  5808. }, {
  5809. "style": {
  5810. "height": "36px"
  5811. }
  5812. }).form; //创建窗体
  5813. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5814. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5815. })
  5816. _taskbar = {
  5817. "id": str + _formdiv.id,
  5818. "style": {
  5819. "backgroundImage": "url(/img/icon/doc.png)"
  5820. },
  5821. "name": "协同文档",
  5822. "forms": _formdiv,
  5823. "click": function () {
  5824. U.MD.D.I.openApplication(str, obj, info);
  5825. }
  5826. }
  5827. break;
  5828. }
  5829. const script1 = document.createElement("script");
  5830. script1.type = "text/javascript";
  5831. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5832. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5833. const script2 = document.createElement("script");
  5834. script2.type = "text/javascript";
  5835. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5836. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5837. const script3 = document.createElement("script");
  5838. script3.type = "text/javascript";
  5839. script3.charset = "UTF-8";
  5840. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5841. const script4 = document.createElement("script");
  5842. script4.type = "text/javascript";
  5843. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5844. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  5845. if (_iframe) {
  5846. if (str == 'doc') {
  5847. _iframe = _formdiv.querySelector('iframe')
  5848. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5849. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5850. _iframe.contentWindow.document.body.appendChild(script1);
  5851. _iframe.contentWindow.document.body.appendChild(script2);
  5852. // _iframe.contentWindow.document.body.appendChild(script3);
  5853. _iframe.contentWindow.document.body.appendChild(script4);
  5854. })
  5855. if (onloadListener) {
  5856. _iframe.contentDocument.location.reload()
  5857. } else {
  5858. _iframe.contentDocument.location.reload()
  5859. }
  5860. } else if (str == 'mind') {
  5861. _iframe = _formdiv.querySelector('iframe')
  5862. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5863. _iframe.contentWindow.document.body.appendChild(script1);
  5864. _iframe.contentWindow.document.body.appendChild(script2);
  5865. _iframe.contentWindow.document.body.appendChild(script4);
  5866. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5867. })
  5868. if (onloadListener) {
  5869. _iframe.contentDocument.location.reload()
  5870. } else {
  5871. _iframe.contentDocument.location.reload()
  5872. }
  5873. } else {
  5874. _iframe.onload = () => {
  5875. _iframe.contentWindow.document.body.appendChild(script1);
  5876. _iframe.contentWindow.document.body.appendChild(script2);
  5877. // _iframe.contentWindow.document.body.appendChild(script3);
  5878. _iframe.contentWindow.document.body.appendChild(script4);
  5879. };
  5880. }
  5881. _jie.onclick = async () => {
  5882. let text = ''
  5883. if (aTool == 6) {
  5884. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5885. } else if (aTool == 3) {
  5886. text = await U.MD.D.I.getEditorContent(_iframe);
  5887. }
  5888. _loading.style.display = 'flex'
  5889. console.log(_loading);
  5890. var _ajs = _iframe.contentWindow.document.createElement("script");
  5891. _ajs.type = "text/javascript";
  5892. _ajs.innerHTML =
  5893. // 'console.log(' + _loading + ');\n' +
  5894. 'var _js = document.createElement("script");\n' +
  5895. '_js.type="text/javascript";\n' +
  5896. '_js.charset="UTF-8";\n' +
  5897. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5898. "_js.onload = function(){\n" +
  5899. ' var a = document.getElementsByTagName("img")\n' +
  5900. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5901. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5902. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5903. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5904. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5905. "beforeUpload_shishi(file," +
  5906. "'" +
  5907. _userid +
  5908. "'" +
  5909. ", " +
  5910. "'" +
  5911. _cid +
  5912. "'" +
  5913. ", " +
  5914. "'" +
  5915. _stage +
  5916. "'" +
  5917. ", " +
  5918. "'" +
  5919. _task +
  5920. "'" +
  5921. ", " +
  5922. "'" +
  5923. _tool +
  5924. "'" +
  5925. ", " +
  5926. "'" +
  5927. (str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid) +
  5928. "'" +
  5929. ", " +
  5930. "'" +
  5931. aTool +
  5932. "'" +
  5933. ", " +
  5934. "`" +
  5935. text +
  5936. "`" +
  5937. ")\n" +
  5938. " });\n" +
  5939. "}\n" +
  5940. "document.head.appendChild(_js);\n";
  5941. _iframe.contentWindow.document.head.appendChild(_ajs);
  5942. }
  5943. }
  5944. //U.MD.D.I.openClick(str);
  5945. //如果有任务栏信息
  5946. // if (_taskbar) {
  5947. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5948. // }
  5949. }
  5950. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  5951. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5952. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5953. _userinfo = US.userInfo, //登录用户信息
  5954. _userid = US.userInfo.userid //登录用户id
  5955. let _iframe;
  5956. let _cid = cid,
  5957. _stage = stage,
  5958. _task = task,
  5959. _tool = tool;
  5960. var _jie = $$("div", {
  5961. "style": {
  5962. "position": "absolute",
  5963. "bottom": "50px",
  5964. "right": "50px",
  5965. "zIndex": "9999",
  5966. "backgroundColor": "#2268bc",
  5967. "color": "#fff",
  5968. "padding": "12px 20px",
  5969. "cursor": "pointer",
  5970. "borderRadius": "4px",
  5971. },
  5972. "innerHTML": "上传模板"
  5973. })
  5974. let aTool = ''
  5975. let _loading = document.createElement('div')
  5976. _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;"
  5977. // _loading.id = "";
  5978. let _lchild = document.createElement('div')
  5979. let _limg = document.createElement('img')
  5980. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5981. _limg.style = "width: 26px;margin-right: 10px;"
  5982. _lchild.appendChild(_limg)
  5983. let _lspan = document.createElement('span')
  5984. _lspan.innerHTML = "上传中..."
  5985. _lchild.appendChild(_lspan)
  5986. _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%);"
  5987. _loading.appendChild(_lchild)
  5988. var _box = $$('div', {
  5989. "style": {
  5990. "position": "relative",
  5991. "width": "100%",
  5992. "height": "100%",
  5993. },
  5994. })
  5995. _box.appendChild(_loading)
  5996. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool+_userid
  5997. switch (str) {
  5998. case "whiteboard":
  5999. aTool = 1;
  6000. _iframe = $$("iframe", {
  6001. "frameborder": "no",
  6002. "border": "0",
  6003. "scrolling ": "no",
  6004. "style": {
  6005. "cssText": "border:0;width:100%;height:100%"
  6006. },
  6007. "src": "https://iwb.cocorobo.cn/"
  6008. })
  6009. _box.appendChild(_iframe);
  6010. _box.appendChild(_jie);
  6011. _formdiv = new U.UF.UI.form(
  6012. "电子白板",
  6013. _box, {
  6014. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6015. "style": {
  6016. "width": "90%",
  6017. "height": "90%",
  6018. "overflow": 'hidden'
  6019. },
  6020. "onresize": function () { }
  6021. }, {
  6022. closecallback: function () { }
  6023. }, {
  6024. "style": {
  6025. "height": "36px"
  6026. }
  6027. }).form; //创建窗体
  6028. _taskbar = {
  6029. "id": str + _formdiv.id,
  6030. "style": {
  6031. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6032. },
  6033. "name": "电子白板",
  6034. "forms": _formdiv,
  6035. "click": function () {
  6036. U.MD.D.I.openApplication(str, obj, info);
  6037. }
  6038. }
  6039. break;
  6040. case "mind":
  6041. aTool = 3;
  6042. _iframe = $$("iframe", {
  6043. "frameborder": "no",
  6044. "border": "0",
  6045. "scrolling ": "no",
  6046. "style": {
  6047. "cssText": "border:0;width:100%;height:100%"
  6048. },
  6049. "src": "/kityminder-editor/dist/index.html"
  6050. });
  6051. _box.appendChild(_iframe);
  6052. _box.appendChild(_jie);
  6053. _formdiv = new U.UF.UI.form(
  6054. "思维导图",
  6055. _box, { //"/jsmind/example/demo.html"
  6056. "id": "minds_Yu" + cid + stage + task + tool,
  6057. "style": {
  6058. "width": "90%",
  6059. "height": "90%",
  6060. "overflow": 'hidden'
  6061. },
  6062. "onresize": function () { }
  6063. }, {
  6064. closecallback: function () { }
  6065. }, {
  6066. "style": {
  6067. "height": "36px"
  6068. }
  6069. }).form; //创建窗体
  6070. _taskbar = {
  6071. "id": str + _formdiv.id,
  6072. "style": {
  6073. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6074. },
  6075. "name": "思维导图",
  6076. "forms": _formdiv,
  6077. "click": function () {
  6078. U.MD.D.I.openApplication(str, obj, info);
  6079. }
  6080. }
  6081. break;
  6082. case "doc":
  6083. aTool = 6;
  6084. _iframe = $$("iframe", {
  6085. "frameborder": "no",
  6086. "border": "0",
  6087. "scrolling ": "no",
  6088. "style": {
  6089. "cssText": "border:0;width:100%;height:100%"
  6090. },
  6091. "src": "/Office/Word/WordEditArea.htm"
  6092. })
  6093. _box.appendChild(_iframe);
  6094. _box.appendChild(_jie);
  6095. _formdiv = new U.UF.UI.form(
  6096. "协同文档",
  6097. _box, {
  6098. "id": "docs_Yu" + cid + stage + task + tool,
  6099. "style": {
  6100. "width": "90%",
  6101. "height": "90%",
  6102. "overflow": 'hidden'
  6103. },
  6104. "onresize": function () { }
  6105. }, {
  6106. closecallback: function () { }
  6107. }, {
  6108. "style": {
  6109. "height": "36px"
  6110. }
  6111. }).form; //创建窗体
  6112. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6113. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6114. })
  6115. _taskbar = {
  6116. "id": str + _formdiv.id,
  6117. "style": {
  6118. "backgroundImage": "url(/img/icon/doc.png)"
  6119. },
  6120. "name": "协同文档",
  6121. "forms": _formdiv,
  6122. "click": function () {
  6123. U.MD.D.I.openApplication(str, obj, info);
  6124. }
  6125. }
  6126. break;
  6127. case "CocoPi":
  6128. aTool = 57;
  6129. _iframe = $$("iframe", {
  6130. "allowpaymentrequest":"allowpaymentrequest",
  6131. "allow": "camera *; microphone *;display-capture;usb",
  6132. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6133. "frameborder": "no",
  6134. "border": "0",
  6135. "scrolling ": "no",
  6136. "style": {
  6137. "cssText": "border:0;width:100%;height:100%"
  6138. },
  6139. "src": "https://beta.v.cocorobo.cn/"
  6140. })
  6141. _box.appendChild(_iframe);
  6142. _box.appendChild(_jie);
  6143. _formdiv = new U.UF.UI.form(
  6144. "CocoPi",
  6145. _box, {
  6146. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6147. "style": {
  6148. "width": "90%",
  6149. "height": "90%",
  6150. "overflow": 'hidden'
  6151. },
  6152. "onresize": function () { }
  6153. }, {
  6154. closecallback: function () { }
  6155. }, {
  6156. "style": {
  6157. "height": "36px"
  6158. }
  6159. }).form; //创建窗体
  6160. _taskbar = {
  6161. "id": str + _formdiv.id,
  6162. "style": {
  6163. "backgroundImage": "url(/img/icon/cocopi.png)"
  6164. },
  6165. "name": "CocoPi",
  6166. "forms": _formdiv,
  6167. "click": function () {
  6168. U.MD.D.I.openApplication(str, obj, info);
  6169. }
  6170. }
  6171. break;
  6172. }
  6173. if (_iframe) {
  6174. if (str == 'doc') {
  6175. _iframe = _formdiv.querySelector('iframe')
  6176. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6177. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6178. })
  6179. if (onloadListener) {
  6180. _iframe.contentDocument.location.reload()
  6181. } else {
  6182. _iframe.contentDocument.location.reload()
  6183. }
  6184. } else if (str == 'mind') {
  6185. _iframe = _formdiv.querySelector('iframe')
  6186. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6187. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6188. })
  6189. if (onloadListener) {
  6190. _iframe.contentDocument.location.reload()
  6191. } else {
  6192. _iframe.contentDocument.location.reload()
  6193. }
  6194. } else if (str == 'whiteboard') {
  6195. _iframe = _formdiv.querySelector('iframe')
  6196. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6197. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6198. })
  6199. if (onloadListener) {
  6200. _iframe.contentDocument.location.reload()
  6201. } else {
  6202. _iframe.contentDocument.location.reload()
  6203. }
  6204. } else if (str == 'CocoPi') {
  6205. _iframe = _formdiv.querySelector('iframe')
  6206. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6207. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6208. })
  6209. if (onloadListener) {
  6210. _iframe.contentDocument.location.reload()
  6211. } else {
  6212. _iframe.contentDocument.location.reload()
  6213. }
  6214. } else {
  6215. _iframe.onload = () => {
  6216. };
  6217. }
  6218. _jie.onclick = async () => {
  6219. let text = ''
  6220. let type = '2'
  6221. if (aTool == 1) {
  6222. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6223. type = '3'
  6224. } else if (aTool == 6) {
  6225. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6226. type = '1'
  6227. } else if (aTool == 3) {
  6228. text = await U.MD.D.I.getEditorContent(_iframe);
  6229. type = '2'
  6230. } else if (aTool == 57) {
  6231. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6232. type = '4'
  6233. }
  6234. _loading.style.display = 'flex'
  6235. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6236. }
  6237. }
  6238. //U.MD.D.I.openClick(str);
  6239. //如果有任务栏信息
  6240. // if (_taskbar) {
  6241. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6242. // }
  6243. }
  6244. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6245. var xmlhttp;
  6246. var Mac, Sn, DeviceId
  6247. if (window.XMLHttpRequest) {
  6248. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6249. xmlhttp = new XMLHttpRequest();
  6250. }
  6251. else {
  6252. // IE6, IE5 浏览器执行代码
  6253. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6254. }
  6255. xmlhttp.onreadystatechange = function () {
  6256. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6257. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6258. // resolve(res.value[0][0].text);
  6259. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6260. }
  6261. }
  6262. }
  6263. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6264. xmlhttp.send();
  6265. }
  6266. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6267. var xmlhttp;
  6268. var Mac, Sn, DeviceId
  6269. if (window.XMLHttpRequest) {
  6270. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6271. xmlhttp = new XMLHttpRequest();
  6272. }
  6273. else {
  6274. // IE6, IE5 浏览器执行代码
  6275. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6276. }
  6277. xmlhttp.onreadystatechange = function () {
  6278. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6279. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6280. // resolve(res.value[0][0].text);
  6281. if (type == '2') {
  6282. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6283. } else if (type == '3') {
  6284. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6285. } else if (type == '4') {
  6286. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  6287. }
  6288. } else {
  6289. if (type == '2') {
  6290. iframe.contentWindow.editor.minder.importData('json', '')
  6291. } else if (type == '3') {
  6292. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6293. } else if (type == '4') {
  6294. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6295. }
  6296. }
  6297. }
  6298. }
  6299. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6300. xmlhttp.send();
  6301. }
  6302. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6303. var xmlhttp;
  6304. var Mac, Sn, DeviceId
  6305. if (window.XMLHttpRequest) {
  6306. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6307. xmlhttp = new XMLHttpRequest();
  6308. }
  6309. else {
  6310. // IE6, IE5 浏览器执行代码
  6311. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6312. }
  6313. xmlhttp.onreadystatechange = function () {
  6314. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6315. if (xmlhttp.response) {
  6316. // resolve(res.value[0][0].text);
  6317. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6318. // $(fileInput).val('');
  6319. // });
  6320. span.innerHTML = '上传成功'
  6321. setTimeout(() => {
  6322. loading.style.display = 'none'
  6323. }, 1000);
  6324. }
  6325. }
  6326. }
  6327. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6328. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6329. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6330. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6331. // 设置请求头,表示请求体的编码格式
  6332. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  6333. // 设置请求体,使用url-encoded格式的数据
  6334. }
  6335. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  6336. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6337. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6338. _userinfo = US.userInfo, //登录用户信息
  6339. _userid = US.userInfo.userid //登录用户id
  6340. let _iframe;
  6341. let _cid = cid,
  6342. _stage = stage,
  6343. _task = task,
  6344. _tool = tool;
  6345. var _jie = $$("div", {
  6346. "style": {
  6347. "position": "absolute",
  6348. "bottom": "50px",
  6349. "right": "50px",
  6350. "zIndex": "9999",
  6351. "backgroundColor": "#2268bc",
  6352. "color": "#fff",
  6353. "padding": "12px 20px",
  6354. "cursor": "pointer",
  6355. "borderRadius": "4px",
  6356. },
  6357. "innerHTML": "提交作业"
  6358. })
  6359. let aTool = ''
  6360. let _loading = document.createElement('div')
  6361. _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;"
  6362. // _loading.id = "";
  6363. let _lchild = document.createElement('div')
  6364. let _limg = document.createElement('img')
  6365. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6366. _limg.style = "width: 26px;margin-right: 10px;"
  6367. _lchild.appendChild(_limg)
  6368. let _lspan = document.createElement('span')
  6369. _lspan.innerHTML = "上传中..."
  6370. _lchild.appendChild(_lspan)
  6371. _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%);"
  6372. _loading.appendChild(_lchild)
  6373. var _box = $$('div', {
  6374. "style": {
  6375. "position": "relative",
  6376. "width": "100%",
  6377. "height": "100%",
  6378. },
  6379. })
  6380. _box.appendChild(_loading)
  6381. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool+_userid
  6382. switch (str) {
  6383. case "CocoPi":
  6384. aTool = 57;
  6385. _iframe = $$("iframe", {
  6386. "allowpaymentrequest":"allowpaymentrequest",
  6387. "allow": "camera *; microphone *;display-capture;usb",
  6388. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6389. "frameborder": "no",
  6390. "border": "0",
  6391. "scrolling ": "no",
  6392. "style": {
  6393. "cssText": "border:0;width:100%;height:100%"
  6394. },
  6395. "src": "https://beta.v.cocorobo.cn/"
  6396. })
  6397. _box.appendChild(_iframe);
  6398. _box.appendChild(_jie);
  6399. _formdiv = new U.UF.UI.form(
  6400. "CocoPi",
  6401. _box, {
  6402. "id": "CocoPi_Upload" + cid + stage + task + tool,
  6403. "style": {
  6404. "width": "90%",
  6405. "height": "90%",
  6406. "overflow": 'hidden'
  6407. },
  6408. "onresize": function () { }
  6409. }, {
  6410. closecallback: function () { }
  6411. }, {
  6412. "style": {
  6413. "height": "36px"
  6414. }
  6415. }).form; //创建窗体
  6416. _taskbar = {
  6417. "id": str + _formdiv.id,
  6418. "style": {
  6419. "backgroundImage": "url(/img/icon/cocopi.png)"
  6420. },
  6421. "name": "CocoPi",
  6422. "forms": _formdiv,
  6423. "click": function () {
  6424. U.MD.D.I.openApplication(str, obj, info);
  6425. }
  6426. }
  6427. break;
  6428. }
  6429. if (_iframe) {
  6430. if (str == 'CocoPi') {
  6431. _iframe = _formdiv.querySelector('iframe')
  6432. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6433. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6434. })
  6435. if (onloadListener) {
  6436. _iframe.contentDocument.location.reload()
  6437. } else {
  6438. _iframe.contentDocument.location.reload()
  6439. }
  6440. }
  6441. _jie.onclick = async () => {
  6442. let text = ''
  6443. if (aTool == 57) {
  6444. text = _iframe.contentWindow.getLoadXmlStr()
  6445. }
  6446. _loading.style.display = 'flex'
  6447. console.log(_loading);
  6448. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6449. _loading.style.display = 'none'
  6450. let _div = document.createElement('div')
  6451. _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;"
  6452. let _inner = document.createElement('div')
  6453. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6454. _inner.innerHTML = "上传成功"
  6455. _div.appendChild(_inner)
  6456. _iframe.contentWindow.window.document.body.appendChild(_div)
  6457. _div.onclick = () => {
  6458. _iframe.contentWindow.window.document.body.removeChild(_div)
  6459. }
  6460. setTimeout(() => {
  6461. _iframe.contentWindow.window.document.body.removeChild(_div)
  6462. }, 1000);
  6463. }, [], { "type": "POST", "withCredentials": true });
  6464. }
  6465. }
  6466. }
  6467. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  6468. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6469. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6470. _userid = student.userid, //登录用户id
  6471. _username = student.student //用户名字
  6472. let _iframe;
  6473. let _cid = cid,
  6474. _stage = stage,
  6475. _task = task,
  6476. _tool = tool;
  6477. var _jie = $$("div", {
  6478. "style": {
  6479. "position": "absolute",
  6480. "bottom": "50px",
  6481. "right": "50px",
  6482. "zIndex": "9999",
  6483. "backgroundColor": "#2268bc",
  6484. "color": "#fff",
  6485. "padding": "12px 20px",
  6486. "cursor": "pointer",
  6487. "borderRadius": "4px",
  6488. },
  6489. "innerHTML": "提交作业"
  6490. })
  6491. let aTool = ''
  6492. let _loading = document.createElement('div')
  6493. _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;"
  6494. // _loading.id = "";
  6495. let _lchild = document.createElement('div')
  6496. let _limg = document.createElement('img')
  6497. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6498. _limg.style = "width: 26px;margin-right: 10px;"
  6499. _lchild.appendChild(_limg)
  6500. let _lspan = document.createElement('span')
  6501. _lspan.innerHTML = "上传中..."
  6502. _lchild.appendChild(_lspan)
  6503. _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%);"
  6504. _loading.appendChild(_lchild)
  6505. var _box = $$('div', {
  6506. "style": {
  6507. "position": "relative",
  6508. "width": "100%",
  6509. "height": "100%",
  6510. },
  6511. })
  6512. _box.appendChild(_loading)
  6513. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool+_userid
  6514. switch (str) {
  6515. case "CocoPi":
  6516. aTool = 57;
  6517. _iframe = $$("iframe", {
  6518. "allowpaymentrequest":"allowpaymentrequest",
  6519. "allow": "camera *; microphone *;display-capture;usb",
  6520. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6521. "frameborder": "no",
  6522. "border": "0",
  6523. "scrolling ": "no",
  6524. "style": {
  6525. "cssText": "border:0;width:100%;height:100%"
  6526. },
  6527. "src": "https://beta.v.cocorobo.cn/"
  6528. })
  6529. _box.appendChild(_iframe);
  6530. _box.appendChild(_jie);
  6531. _formdiv = new U.UF.UI.form(
  6532. "CocoPi-" + _username,
  6533. _box, {
  6534. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  6535. "style": {
  6536. "width": "90%",
  6537. "height": "90%",
  6538. "overflow": 'hidden'
  6539. },
  6540. "onresize": function () { }
  6541. }, {
  6542. closecallback: function () { }
  6543. }, {
  6544. "style": {
  6545. "height": "36px"
  6546. }
  6547. }).form; //创建窗体
  6548. _taskbar = {
  6549. "id": str + _formdiv.id,
  6550. "style": {
  6551. "backgroundImage": "url(/img/icon/cocopi.png)"
  6552. },
  6553. "name": "CocoPi",
  6554. "forms": _formdiv,
  6555. "click": function () {
  6556. U.MD.D.I.openApplication(str, obj, info);
  6557. }
  6558. }
  6559. break;
  6560. }
  6561. if (_iframe) {
  6562. if (str == 'CocoPi') {
  6563. _iframe = _formdiv.querySelector('iframe')
  6564. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6565. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6566. })
  6567. if (onloadListener) {
  6568. _iframe.contentDocument.location.reload()
  6569. } else {
  6570. _iframe.contentDocument.location.reload()
  6571. }
  6572. }
  6573. _jie.onclick = async () => {
  6574. let text = ''
  6575. if (aTool == 57) {
  6576. text = _iframe.contentWindow.getLoadXmlStr()
  6577. }
  6578. _loading.style.display = 'flex'
  6579. console.log(_loading);
  6580. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6581. _loading.style.display = 'none'
  6582. let _div = document.createElement('div')
  6583. _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;"
  6584. let _inner = document.createElement('div')
  6585. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6586. _inner.innerHTML = "上传成功"
  6587. _div.appendChild(_inner)
  6588. _iframe.contentWindow.window.document.body.appendChild(_div)
  6589. _div.onclick = () => {
  6590. _iframe.contentWindow.window.document.body.removeChild(_div)
  6591. }
  6592. setTimeout(() => {
  6593. _iframe.contentWindow.window.document.body.removeChild(_div)
  6594. }, 1000);
  6595. }, [], { "type": "POST", "withCredentials": true });
  6596. }
  6597. }
  6598. }
  6599. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  6600. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  6601. if (res.value[0].length > 0) {
  6602. if (atool == 57) {
  6603. iframe.contentWindow.loadingXml(res.value[0][0].content)
  6604. }
  6605. } else {
  6606. if (atool == 57) {
  6607. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  6608. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6609. }
  6610. }
  6611. }, [], { "type": "POST", "withCredentials": true });
  6612. }