DeskTop.js 349 KB

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