DeskTop.js 304 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301
  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": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  44. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  45. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  46. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  47. ];
  48. //极简模式
  49. U.MD.D.I.easyDeskIcon = [
  50. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  51. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  52. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  55. ];
  56. //教师桌面图标的全局变量
  57. U.MD.D.I.teacherDeskIcon2 = [
  58. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  59. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  60. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  61. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  62. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  63. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  64. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  65. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  66. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  67. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  68. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  69. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  70. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  71. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  72. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  73. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  74. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  75. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  76. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  77. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  78. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  79. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  80. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  81. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  82. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  83. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  84. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  85. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  86. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  87. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  88. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  89. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  90. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  91. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  92. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  93. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  94. ];
  95. U.MD.D.I.studentDeskIcon = [
  96. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  97. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  98. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  99. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  100. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  101. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  102. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  103. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  104. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  105. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  106. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  107. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  108. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  109. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  110. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  111. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  112. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  113. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  114. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  115. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  116. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  117. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  118. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  119. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  120. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  121. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  122. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  123. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  124. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  125. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  126. ];
  127. U.MD.D.I.studentDeskIcon2 = [
  128. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  129. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  130. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  131. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  132. ]
  133. U.MD.D.I.studentDeskIcon3 = [
  134. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  135. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  136. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  137. ]
  138. U.MD.D.I.schoolDeskIcon = [
  139. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  140. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  141. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  142. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  143. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  144. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  145. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  146. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  147. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  148. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  149. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  150. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  151. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  152. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  153. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  154. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  155. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  156. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  157. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  158. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  159. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  160. ];
  161. U.MD.D.I.orgDeskIcon = [
  162. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  163. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  164. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  165. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  166. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  167. ];
  168. U.MD.D.I.orgStemDeskIcon = [
  169. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  170. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  171. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  172. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  173. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  174. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  175. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  176. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  177. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  178. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  179. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  180. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  181. ];
  182. U.MD.D.I.szulsDeskIcon = [
  183. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  184. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  185. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  186. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  187. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  188. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  189. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  190. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  191. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  192. ];
  193. U.MD.D.I.hanDeskIcon = [
  194. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  195. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  196. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  197. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  198. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  199. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  200. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  201. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  202. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  203. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  204. ];
  205. U.MD.D.I.GMteacherDeskIcon = [
  206. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  207. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  208. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  209. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  210. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  211. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  212. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  213. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  214. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  215. ];
  216. U.MD.D.I.GMstudentDeskIcon = [
  217. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  218. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  219. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  220. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  221. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  222. ];
  223. //北师大
  224. U.MD.D.I.BSDNSteacherDeskIcon = [
  225. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  226. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  227. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  228. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  229. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  230. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  231. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  232. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  233. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  234. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  235. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  236. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  237. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  238. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  239. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  240. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  241. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  242. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  243. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  244. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  245. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  246. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  247. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  248. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  249. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  250. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  251. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  252. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  253. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  254. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  255. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  256. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  257. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  258. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  259. ];
  260. //松山湖
  261. U.MD.D.I.SONGteacherDeskIcon = [
  262. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  263. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  264. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  265. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  266. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  267. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  268. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  269. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  270. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  271. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  272. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  273. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  274. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  275. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  276. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  277. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  278. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  279. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  280. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  281. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  282. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  283. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  284. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  285. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  286. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  287. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  288. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  289. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  290. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  291. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  292. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  293. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  294. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  295. ];
  296. U.MD.D.I.tcStudentDeskIcon = [
  297. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  298. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  299. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  300. ];
  301. U.MD.D.I.tcTeacherDeskIcon = [
  302. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  303. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  304. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  305. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  306. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  307. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  308. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  309. ];
  310. U.MD.D.I.tcOrganizerDeskIcon = [
  311. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  312. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  313. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  314. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  315. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  316. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  317. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  318. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  319. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  320. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  321. ];
  322. U.MD.D.I.szscStudentDeskIcon = [
  323. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  324. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  325. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  326. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  327. ];
  328. U.MD.D.I.szscTeacherDeskIcon = [
  329. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  330. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  331. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  332. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  333. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  334. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.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.szscOrganizerDeskIcon = [
  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": "studentCourseS", "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": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  344. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.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.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  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": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  352. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  353. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  354. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  355. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  356. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  357. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  358. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  359. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  360. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  361. ];
  362. U.MD.D.I.wankeAdminDeskIcon = [
  363. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  364. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  365. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  366. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  367. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  368. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  369. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  370. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  371. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  372. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  373. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  374. ];
  375. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  376. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  377. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  378. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  379. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  380. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  381. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  382. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  383. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  384. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  385. ];
  386. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  387. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  388. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  389. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  390. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  391. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  392. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  393. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  394. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  395. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  396. ];
  397. //明德教师桌面图标的全局变量
  398. U.MD.D.I.MingdeTeacherDeskIcon = [
  399. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  400. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  401. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  402. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  403. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  404. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  405. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  406. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  407. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  408. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  409. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  410. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  411. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  412. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  413. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  414. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  415. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  416. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  417. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  418. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  419. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  420. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  421. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  422. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  423. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  424. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  425. ];
  426. //97c4ee8b-d010-4042-986d-e9d3c217264f
  427. //教师桌面图标的全局变量
  428. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  429. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  430. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  431. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  432. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  433. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  434. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  435. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  436. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  437. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  438. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  439. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  440. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  441. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  442. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  443. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  444. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  445. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  446. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  447. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  448. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  449. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  450. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  451. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  452. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  453. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  454. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  455. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  456. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  457. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  458. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  459. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  460. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  461. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  462. ];
  463. //#region 桌面初始化a
  464. /**
  465. * 初始化桌面的起始函数
  466. *
  467. */
  468. U.MD.D.I.init = function () {
  469. if ($("#U_MD_D_K")[0]) {
  470. //初始化桌面图标
  471. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  472. // var clickUrl = ':12588/requestIp.php';
  473. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  474. // U.MD.D.I.Ip = data;
  475. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  476. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  477. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  478. // })
  479. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  480. // })
  481. }
  482. }
  483. /**
  484. * 模式切换
  485. *
  486. */
  487. U.MD.D.I.ModeCheck = function (type) {
  488. if (US.Config.type == type) {
  489. return
  490. }
  491. US.Config.type = type
  492. $('.U_PBL_Check .active')[0].className = ''
  493. if (type == 1) {
  494. $('.U_PBL_Check div')[0].className = 'active'
  495. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  496. } else {
  497. $('.U_PBL_Check div')[1].className = 'active'
  498. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  499. }
  500. //初始化桌面图标
  501. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  502. }
  503. /**
  504. * 隐藏任务栏
  505. *
  506. * @param {element} 桌面元素
  507. */
  508. U.MD.D.I.hiddenTaskbar = function (el) {
  509. //任务栏位置变小
  510. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  511. //桌面的位置变大
  512. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  513. }
  514. /**
  515. * 隐藏任务栏
  516. *
  517. * @param {element} 桌面元素
  518. */
  519. U.MD.D.I.hiddenTaskbarout = function (el) {
  520. //任务栏位置变小
  521. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  522. //任务栏位置变化
  523. U.selectEl(el).css({ "bottom": "-60px" });
  524. //桌面的位置变大
  525. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  526. }
  527. }
  528. /**
  529. * 初始化打印桌面图标
  530. *
  531. * @param {element} 桌面元素
  532. */
  533. U.MD.D.I.initDesktopIcons = function (el, type) {
  534. var i, //用于循环
  535. _content, //桌面图标元素
  536. _iconcontent, //桌面图标元素
  537. _frag = $$("frag"), //定义一个碎片元素
  538. _type = US.userInfo.type,
  539. _org = US.userInfo.org,
  540. _oid = US.userInfo.organizeid,
  541. _role = US.userInfo.role,
  542. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  543. _easyDesktopIconInfo = U.MD.D.I.easyDeskIcon, //极简模式桌面图标
  544. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  545. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  546. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  547. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  548. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  549. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  550. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  551. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  552. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  553. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  554. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  555. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  556. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  557. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  558. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  559. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  560. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  561. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  562. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  563. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  564. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  565. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  566. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  567. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  568. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  569. 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'];
  570. 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'];
  571. //清楚桌面图标
  572. el.innerHTML = "";
  573. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5") {
  574. _teacherDesktopIconInfo.push(
  575. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  576. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  577. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  578. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  579. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  580. )
  581. }
  582. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  583. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  584. if(el.Name == '项目管理'){
  585. el.Name = 'PBL项目'
  586. }
  587. return el
  588. })
  589. }
  590. if (_oid != '4c686762-1d0a-11ed-8c78-005056b86db5' && _oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  591. _teacherDesktopIconInfo.push(
  592. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  593. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  594. )
  595. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  596. return el.Name != '魔盒识字' && el.Name != '24点'
  597. })
  598. }
  599. 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) {
  600. _studentDesktopIconInfo.push(
  601. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  602. )
  603. }
  604. //循环创建桌面图标
  605. if (type == 1) {
  606. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  607. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  608. _content = $$("div", {
  609. className: "U_MD_D_KO",
  610. "onmousedown": U.UF.C.closure(function (obj) {
  611. //防止拖动图标即打开了桌面应用
  612. U.MD.D.click(this, obj);
  613. }, [_studentDesktopIconInfo[i]]),
  614. "onclick": U.UF.C.closure(function (obj) {
  615. //防止拖动图标即打开了桌面应用
  616. U.MD.D.click(this, obj);
  617. }, [_studentDesktopIconInfo[i]])
  618. }, _frag); //
  619. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  620. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  621. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  622. }
  623. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  624. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  625. _content = $$("div", {
  626. className: "U_MD_D_KO",
  627. "onmousedown": U.UF.C.closure(function (obj) {
  628. //防止拖动图标即打开了桌面应用
  629. U.MD.D.click(this, obj);
  630. }, [_studentDesktopIconInfo[i]]),
  631. "onclick": U.UF.C.closure(function (obj) {
  632. //防止拖动图标即打开了桌面应用
  633. U.MD.D.click(this, obj);
  634. }, [_studentDesktopIconInfo[i]])
  635. }, _frag); //
  636. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  637. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  638. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  639. }
  640. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  641. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  642. _content = $$("div", {
  643. className: "U_MD_D_KO",
  644. "onmousedown": U.UF.C.closure(function (obj) {
  645. //防止拖动图标即打开了桌面应用
  646. U.MD.D.click(this, obj);
  647. }, [_tcStudentDeskIconInfo[i]]),
  648. "onclick": U.UF.C.closure(function (obj) {
  649. //防止拖动图标即打开了桌面应用
  650. U.MD.D.click(this, obj);
  651. }, [_tcStudentDeskIconInfo[i]])
  652. }, _frag); //
  653. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  654. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  655. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  656. }
  657. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  658. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  659. _content = $$("div", {
  660. className: "U_MD_D_KO",
  661. "onmousedown": U.UF.C.closure(function (obj) {
  662. //防止拖动图标即打开了桌面应用
  663. U.MD.D.click(this, obj);
  664. }, [_szscStudentDeskIconInfo[i]]),
  665. "onclick": U.UF.C.closure(function (obj) {
  666. //防止拖动图标即打开了桌面应用
  667. U.MD.D.click(this, obj);
  668. }, [_szscStudentDeskIconInfo[i]])
  669. }, _frag); //
  670. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  671. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  672. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  673. }
  674. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  675. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  676. _content = $$("div", {
  677. className: "U_MD_D_KO",
  678. "onmousedown": U.UF.C.closure(function (obj) {
  679. //防止拖动图标即打开了桌面应用
  680. U.MD.D.click(this, obj);
  681. }, [_studentDesktopIconInfo3[i]]),
  682. "onclick": U.UF.C.closure(function (obj) {
  683. //防止拖动图标即打开了桌面应用
  684. U.MD.D.click(this, obj);
  685. }, [_studentDesktopIconInfo3[i]])
  686. }, _frag); //
  687. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  688. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  689. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  690. }
  691. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  692. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  693. _content = $$("div", {
  694. className: "U_MD_D_KO",
  695. "onmousedown": U.UF.C.closure(function (obj) {
  696. //防止拖动图标即打开了桌面应用
  697. U.MD.D.click(this, obj);
  698. }, [_studentDesktopIconInfo2[i]]),
  699. "onclick": U.UF.C.closure(function (obj) {
  700. //防止拖动图标即打开了桌面应用
  701. U.MD.D.click(this, obj);
  702. }, [_studentDesktopIconInfo2[i]])
  703. }, _frag); //
  704. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  705. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  706. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  707. }
  708. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  709. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  710. _content = $$("div", {
  711. className: "U_MD_D_KO",
  712. "onmousedown": U.UF.C.closure(function (obj) {
  713. //防止拖动图标即打开了桌面应用
  714. U.MD.D.click(this, obj);
  715. }, [_wanketeacherDesktopIconInfo[i]]),
  716. "onclick": U.UF.C.closure(function (obj) {
  717. //防止拖动图标即打开了桌面应用
  718. U.MD.D.click(this, obj);
  719. }, [_wanketeacherDesktopIconInfo[i]])
  720. }, _frag); //
  721. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  722. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  723. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  724. }
  725. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  726. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  727. _content = $$("div", {
  728. className: "U_MD_D_KO",
  729. "onmousedown": U.UF.C.closure(function (obj) {
  730. //防止拖动图标即打开了桌面应用
  731. U.MD.D.click(this, obj);
  732. }, [_wankeAdminDesktopIconInfo[i]]),
  733. "onclick": U.UF.C.closure(function (obj) {
  734. //防止拖动图标即打开了桌面应用
  735. U.MD.D.click(this, obj);
  736. }, [_wankeAdminDesktopIconInfo[i]])
  737. }, _frag); //
  738. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  739. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  740. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  741. }
  742. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  743. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  744. _content = $$("div", {
  745. className: "U_MD_D_KO",
  746. "onmousedown": U.UF.C.closure(function (obj) {
  747. //防止拖动图标即打开了桌面应用
  748. U.MD.D.click(this, obj);
  749. }, [_teacherDesktopIconInfo2[i]]),
  750. "onclick": U.UF.C.closure(function (obj) {
  751. //防止拖动图标即打开了桌面应用
  752. U.MD.D.click(this, obj);
  753. }, [_teacherDesktopIconInfo2[i]])
  754. }, _frag); //
  755. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  756. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  757. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  758. }
  759. } else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  760. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  761. _content = $$("div", {
  762. className: "U_MD_D_KO",
  763. "onmousedown": U.UF.C.closure(function (obj) {
  764. //防止拖动图标即打开了桌面应用
  765. U.MD.D.click(this, obj);
  766. }, [_MingdeTeacherDeskIcon[i]]),
  767. "onclick": U.UF.C.closure(function (obj) {
  768. //防止拖动图标即打开了桌面应用
  769. U.MD.D.click(this, obj);
  770. }, [_MingdeTeacherDeskIcon[i]])
  771. }, _frag); //
  772. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  773. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  774. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  775. }
  776. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  777. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  778. _content = $$("div", {
  779. className: "U_MD_D_KO",
  780. "onmousedown": U.UF.C.closure(function (obj) {
  781. //防止拖动图标即打开了桌面应用
  782. U.MD.D.click(this, obj);
  783. }, [_lhsAdminDesktopIconInfo[i]]),
  784. "onclick": U.UF.C.closure(function (obj) {
  785. //防止拖动图标即打开了桌面应用
  786. U.MD.D.click(this, obj);
  787. }, [_lhsAdminDesktopIconInfo[i]])
  788. }, _frag); //
  789. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  790. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  791. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  792. }
  793. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  794. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  795. _content = $$("div", {
  796. className: "U_MD_D_KO",
  797. "onmousedown": U.UF.C.closure(function (obj) {
  798. //防止拖动图标即打开了桌面应用
  799. U.MD.D.click(this, obj);
  800. }, [_lhsteacherDesktopIconInfo[i]]),
  801. "onclick": U.UF.C.closure(function (obj) {
  802. //防止拖动图标即打开了桌面应用
  803. U.MD.D.click(this, obj);
  804. }, [_lhsteacherDesktopIconInfo[i]])
  805. }, _frag); //
  806. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  807. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  808. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  809. }
  810. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  811. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  812. _content = $$("div", {
  813. className: "U_MD_D_KO",
  814. "onmousedown": U.UF.C.closure(function (obj) {
  815. //防止拖动图标即打开了桌面应用
  816. U.MD.D.click(this, obj);
  817. }, [_zhoujiateacherDesktopIconInfo[i]]),
  818. "onclick": U.UF.C.closure(function (obj) {
  819. //防止拖动图标即打开了桌面应用
  820. U.MD.D.click(this, obj);
  821. }, [_zhoujiateacherDesktopIconInfo[i]])
  822. }, _frag); //
  823. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  824. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  825. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  826. }
  827. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  828. for (i = 0; i < _hanDeskIcon.length; i++) {
  829. _content = $$("div", {
  830. className: "U_MD_D_KO",
  831. "onmousedown": U.UF.C.closure(function (obj) {
  832. //防止拖动图标即打开了桌面应用
  833. U.MD.D.click(this, obj);
  834. }, [_hanDeskIcon[i]]),
  835. "onclick": U.UF.C.closure(function (obj) {
  836. //防止拖动图标即打开了桌面应用
  837. U.MD.D.click(this, obj);
  838. }, [_hanDeskIcon[i]])
  839. }, _frag); //
  840. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  841. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  842. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  843. }
  844. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  845. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  846. _content = $$("div", {
  847. className: "U_MD_D_KO",
  848. "onmousedown": U.UF.C.closure(function (obj) {
  849. //防止拖动图标即打开了桌面应用
  850. U.MD.D.click(this, obj);
  851. }, [_orgStemDeskIcon[i]]),
  852. "onclick": U.UF.C.closure(function (obj) {
  853. //防止拖动图标即打开了桌面应用
  854. U.MD.D.click(this, obj);
  855. }, [_orgStemDeskIcon[i]])
  856. }, _frag); //
  857. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  858. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  859. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  860. }
  861. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  862. for (i = 0; i < _szulsDeskIcon.length; i++) {
  863. _content = $$("div", {
  864. className: "U_MD_D_KO",
  865. "onmousedown": U.UF.C.closure(function (obj) {
  866. //防止拖动图标即打开了桌面应用
  867. U.MD.D.click(this, obj);
  868. }, [_szulsDeskIcon[i]]),
  869. "onclick": U.UF.C.closure(function (obj) {
  870. //防止拖动图标即打开了桌面应用
  871. U.MD.D.click(this, obj);
  872. }, [_szulsDeskIcon[i]])
  873. }, _frag); //
  874. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  875. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  876. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  877. }
  878. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  879. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  880. _content = $$("div", {
  881. className: "U_MD_D_KO",
  882. "onmousedown": U.UF.C.closure(function (obj) {
  883. //防止拖动图标即打开了桌面应用
  884. U.MD.D.click(this, obj);
  885. }, [_orgDesktopIconInfo[i]]),
  886. "onclick": U.UF.C.closure(function (obj) {
  887. //防止拖动图标即打开了桌面应用
  888. U.MD.D.click(this, obj);
  889. }, [_orgDesktopIconInfo[i]])
  890. }, _frag); //
  891. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  892. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  893. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  894. }
  895. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  896. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  897. _content = $$("div", {
  898. className: "U_MD_D_KO",
  899. "onmousedown": U.UF.C.closure(function (obj) {
  900. //防止拖动图标即打开了桌面应用
  901. U.MD.D.click(this, obj);
  902. }, [_schoolDesktopIconInfo[i]]),
  903. "onclick": U.UF.C.closure(function (obj) {
  904. //防止拖动图标即打开了桌面应用
  905. U.MD.D.click(this, obj);
  906. }, [_schoolDesktopIconInfo[i]])
  907. }, _frag); //
  908. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  909. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  910. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  911. }
  912. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  913. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  914. _content = $$("div", {
  915. className: "U_MD_D_KO",
  916. "onmousedown": U.UF.C.closure(function (obj) {
  917. //防止拖动图标即打开了桌面应用
  918. U.MD.D.click(this, obj);
  919. }, [_GMteacherDesktopIconInfo[i]]),
  920. "onclick": U.UF.C.closure(function (obj) {
  921. //防止拖动图标即打开了桌面应用
  922. U.MD.D.click(this, obj);
  923. }, [_GMteacherDesktopIconInfo[i]])
  924. }, _frag); //
  925. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  926. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  927. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  928. }
  929. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  930. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  931. _content = $$("div", {
  932. className: "U_MD_D_KO",
  933. "onmousedown": U.UF.C.closure(function (obj) {
  934. //防止拖动图标即打开了桌面应用
  935. U.MD.D.click(this, obj);
  936. }, [_SONGteacherDesktopIconInfo[i]]),
  937. "onclick": U.UF.C.closure(function (obj) {
  938. //防止拖动图标即打开了桌面应用
  939. U.MD.D.click(this, obj);
  940. }, [_SONGteacherDesktopIconInfo[i]])
  941. }, _frag); //
  942. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  943. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  944. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  945. }
  946. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  947. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  948. _content = $$("div", {
  949. className: "U_MD_D_KO",
  950. "onmousedown": U.UF.C.closure(function (obj) {
  951. //防止拖动图标即打开了桌面应用
  952. U.MD.D.click(this, obj);
  953. }, [_GMstudentDesktopIconInfo[i]]),
  954. "onclick": U.UF.C.closure(function (obj) {
  955. //防止拖动图标即打开了桌面应用
  956. U.MD.D.click(this, obj);
  957. }, [_GMstudentDesktopIconInfo[i]])
  958. }, _frag); //
  959. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  960. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  961. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  962. }
  963. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  964. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  965. _content = $$("div", {
  966. className: "U_MD_D_KO",
  967. "onmousedown": U.UF.C.closure(function (obj) {
  968. //防止拖动图标即打开了桌面应用
  969. U.MD.D.click(this, obj);
  970. }, [_tcTeacherDeskIconInfo[i]]),
  971. "onclick": U.UF.C.closure(function (obj) {
  972. //防止拖动图标即打开了桌面应用
  973. U.MD.D.click(this, obj);
  974. }, [_tcTeacherDeskIconInfo[i]])
  975. }, _frag); //
  976. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  977. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  978. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  979. }
  980. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  981. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  982. _content = $$("div", {
  983. className: "U_MD_D_KO",
  984. "onmousedown": U.UF.C.closure(function (obj) {
  985. //防止拖动图标即打开了桌面应用
  986. U.MD.D.click(this, obj);
  987. }, [_tcOrganizerDeskIconInfo[i]]),
  988. "onclick": U.UF.C.closure(function (obj) {
  989. //防止拖动图标即打开了桌面应用
  990. U.MD.D.click(this, obj);
  991. }, [_tcOrganizerDeskIconInfo[i]])
  992. }, _frag); //
  993. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  994. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  995. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  996. }
  997. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  998. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  999. _content = $$("div", {
  1000. className: "U_MD_D_KO",
  1001. "onmousedown": U.UF.C.closure(function (obj) {
  1002. //防止拖动图标即打开了桌面应用
  1003. U.MD.D.click(this, obj);
  1004. }, [_szscTeacherDeskIconInfo[i]]),
  1005. "onclick": U.UF.C.closure(function (obj) {
  1006. //防止拖动图标即打开了桌面应用
  1007. U.MD.D.click(this, obj);
  1008. }, [_szscTeacherDeskIconInfo[i]])
  1009. }, _frag); //
  1010. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1011. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1012. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1013. }
  1014. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1015. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1016. _content = $$("div", {
  1017. className: "U_MD_D_KO",
  1018. "onmousedown": U.UF.C.closure(function (obj) {
  1019. //防止拖动图标即打开了桌面应用
  1020. U.MD.D.click(this, obj);
  1021. }, [_szscOrganizerDeskIconInfo[i]]),
  1022. "onclick": U.UF.C.closure(function (obj) {
  1023. //防止拖动图标即打开了桌面应用
  1024. U.MD.D.click(this, obj);
  1025. }, [_szscOrganizerDeskIconInfo[i]])
  1026. }, _frag); //
  1027. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1028. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1029. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1030. }
  1031. } else {
  1032. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1033. _content = $$("div", {
  1034. className: "U_MD_D_KO",
  1035. "onmousedown": U.UF.C.closure(function (obj) {
  1036. //防止拖动图标即打开了桌面应用
  1037. U.MD.D.click(this, obj);
  1038. }, [_teacherDesktopIconInfo[i]]),
  1039. "onclick": U.UF.C.closure(function (obj) {
  1040. //防止拖动图标即打开了桌面应用
  1041. U.MD.D.click(this, obj);
  1042. }, [_teacherDesktopIconInfo[i]])
  1043. }, _frag); //
  1044. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1045. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1046. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1047. }
  1048. }
  1049. } else {
  1050. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1051. _content = $$("div", {
  1052. className: "U_MD_D_KO",
  1053. style: { 'width': '124px', 'height': '145px' },
  1054. "onmousedown": U.UF.C.closure(function (obj) {
  1055. //防止拖动图标即打开了桌面应用
  1056. U.MD.D.click(this, obj);
  1057. }, [_easyDesktopIconInfo[i]]),
  1058. "onclick": U.UF.C.closure(function (obj) {
  1059. //防止拖动图标即打开了桌面应用
  1060. U.MD.D.click(this, obj);
  1061. }, [_easyDesktopIconInfo[i]])
  1062. }, _frag); //
  1063. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1064. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1065. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1066. }
  1067. }
  1068. if (type == 1) {
  1069. //加载好后给图标定位
  1070. U.MD.D.iconPostion($(_frag).Child());
  1071. } else {
  1072. //加载好后给图标定位
  1073. U.MD.D.iconPostion2($(_frag).Child());
  1074. }
  1075. //把图标加载到页面
  1076. el.appendChild(_frag);
  1077. }
  1078. /**
  1079. * 显示任务栏
  1080. *
  1081. * @param {element} 桌面元素
  1082. */
  1083. U.MD.D.I.displayTaskbar = function (el) {
  1084. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1085. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1086. //任务栏位置变化
  1087. U.selectEl(el).css({ "bottom": "0px" });
  1088. //桌面位置变话
  1089. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1090. }
  1091. }
  1092. //#region 桌面图标拖动逻辑
  1093. /**
  1094. * 桌面排列图标
  1095. *
  1096. * @param {element} 桌面元素
  1097. * @param {object} 上下相距的距离
  1098. * @param {object} 左右相距的距离
  1099. * @return {object} 命名空间
  1100. */
  1101. U.MD.D.iconPostion = function (childs, top, left) {
  1102. var i; //用于循环处理
  1103. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1104. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1105. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1106. for (i = 0; i < childs.length; i++) {
  1107. //如果竖排top超过了范围处理
  1108. if (top + 95 > US.height - 10) {
  1109. //left超过了页面范围处理,则向上重叠打印处理
  1110. if ((left + 180) > US.width) {
  1111. top -= 110;
  1112. left -= 90;
  1113. }
  1114. //没有超过范围,那么left+90添加到下一个竖排打印
  1115. else {
  1116. left += 90;
  1117. top = 15;
  1118. };
  1119. }
  1120. //给图标的位置赋值
  1121. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1122. if (i < childs.length - 1) {
  1123. //页面图标每次向下加95
  1124. top += 95;
  1125. }
  1126. }
  1127. //返回最后调用的图标的位置
  1128. return [top, left];
  1129. }
  1130. /**
  1131. * 桌面排列图标
  1132. *
  1133. * @param {element} 桌面元素
  1134. * @param {object} 上下相距的距离
  1135. * @param {object} 左右相距的距离
  1136. * @return {object} 命名空间
  1137. */
  1138. U.MD.D.iconPostion2 = function (childs, top, left) {
  1139. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1140. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1141. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1142. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1143. for (i = 0; i < childs.length; i++) {
  1144. //如果竖排top超过了范围处理
  1145. if (left + 150 > US.width - 10) {
  1146. //left超过了页面范围处理,则向上重叠打印处理
  1147. if ((top + 180) > US.Height) {
  1148. top -= 150;
  1149. left -= 150;
  1150. }
  1151. //没有超过范围,那么left+90添加到下一个竖排打印
  1152. else {
  1153. top += 150;
  1154. left = ol;
  1155. };
  1156. }
  1157. //给图标的位置赋值
  1158. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1159. if (i < childs.length - 1) {
  1160. //页面图标每次向下加95
  1161. left += 150;
  1162. }
  1163. }
  1164. //返回最后调用的图标的位置
  1165. return [top, left];
  1166. }
  1167. /**
  1168. * 桌面点击事件逻辑
  1169. *
  1170. * @param {element} 桌面元素
  1171. * @param {object} 上下相距的距离
  1172. * @param {object} 左右相距的距离
  1173. * @return {object} 命名空间
  1174. */
  1175. U.MD.D.click = function (el, obj) {
  1176. var _buttonnumber = event.button; //点击的按钮的事件值
  1177. var _userinfo = US.userInfo;
  1178. U.UF.EV.stopBubble(); //阻止向上冒泡
  1179. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1180. if (_buttonnumber < 2) {
  1181. //如果是click事件的处理
  1182. if (event.type == "click") {
  1183. //如果元素在mousemove事件中没有移动则出发click事件
  1184. if (!U.MD.D.I.IsDrag) {
  1185. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1186. U.alert("请先登录您的账号!");
  1187. setTimeout(() => {
  1188. U.MD.U.L.login();
  1189. }, 2000);
  1190. } else {
  1191. //打开应用处理
  1192. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1193. }
  1194. }
  1195. }
  1196. //如果是mouse事件的处理
  1197. else {
  1198. if (US.Config.type == '1') {
  1199. //拖动处理,添加拖动和拖动结束事件
  1200. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1201. }
  1202. }
  1203. U.MD.D.I.IsDrag = false;
  1204. }
  1205. }
  1206. /**
  1207. * 拖动的处理
  1208. *
  1209. */
  1210. U.MD.D.iconMove = function () {
  1211. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1212. U.MD.D.I.IsDrag = true;
  1213. }
  1214. /**
  1215. * 拖动结束后,这里是定位处理,以网状的形式定位
  1216. *
  1217. * @param {element} 拖动的元素
  1218. * @return {object} 命名空间
  1219. */
  1220. U.MD.D.iconUp = function (el) {
  1221. var _top = 15,
  1222. _left = 20,
  1223. _margin,
  1224. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1225. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1226. if (_positioninfo["OT"] > 15) {
  1227. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1228. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1229. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1230. }
  1231. if (_positioninfo["OL"] > 20) {
  1232. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1233. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1234. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1235. }
  1236. //while循环判断么一个重叠的元素
  1237. do {
  1238. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1239. _top = _positioninfo[0] + 95; //得到定位后的top
  1240. _left = _positioninfo[1]; //得到定位后的left
  1241. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1242. }
  1243. /**
  1244. * 判断拖动后图标是否重叠
  1245. *
  1246. * @param {element} 拖动的元素
  1247. * @param {element} 桌面所有的元素
  1248. * @param {array} 拖动元素的位置
  1249. ----------[0] 上 top
  1250. ----------[1] 左 left
  1251. * @return {object} 命名空间
  1252. */
  1253. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1254. //循环所有的图标
  1255. for (var i = 0; i < childs.length; i++) {
  1256. //判断有没有和该图标诶子重叠的元素
  1257. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1258. return childs[i]; //如果有返回
  1259. }
  1260. }
  1261. }
  1262. //#endregion
  1263. //#endregion
  1264. //#region 桌面应用
  1265. /**
  1266. * 打开应用
  1267. *
  1268. * @param {string} 类型
  1269. -----------------Disk 网盘系统
  1270. -----------------PDisk 学习系统网盘
  1271. -----------------Poto 图片
  1272. -----------------Video 视频
  1273. -----------------Music 音乐
  1274. -----------------Word word
  1275. -----------------Excel excel
  1276. -----------------Txt 记事本
  1277. -----------------PB 学习系统
  1278. -----------------Blog 朋友圈系统
  1279. -----------------FTP ftp系统
  1280. -----------------Group 好友群
  1281. -----------------SY 首页系统
  1282. -----------------Set 个人设置
  1283. -----------------XSet 系统设置
  1284. -----------------App 我们所有的app
  1285. -----------------BC c.1473.cn 平台
  1286. -----------------CWeb d.1473.cn 变成平台
  1287. -----------------其他的外联系统 我们统一用iframe打开
  1288. * @param {array} 类型
  1289. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1290. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1291. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1292. 如果第一个参数为其他,则无第二个参数
  1293. * @returns {array}
  1294. */
  1295. window.addEventListener('message', function (e) { // 监听 message 事件
  1296. // alert(e.data.type);
  1297. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1298. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1299. //3是展示全部阶段 2学生 1老师 4专家
  1300. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1301. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1302. //3是展示全部阶段 2学生 1老师 4专家
  1303. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1304. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1305. //3是展示全部阶段 2学生 1老师 4专家
  1306. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1307. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1308. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1309. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1310. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1311. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1312. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1313. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1314. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1315. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1316. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1317. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1318. //3是展示全部阶段 2学生 1老师 4专家
  1319. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1320. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1321. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1322. U.MD.D.I.selectUser();
  1323. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1324. var _formel = document.getElementById("study");
  1325. U.UF.F.windowZooming(_formel);
  1326. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1327. var _formel = document.getElementById("studyDetail");
  1328. U.UF.F.windowZooming(_formel);
  1329. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1330. var _formel = document.getElementById("studyDetail");
  1331. U.UF.F.windowZooming(_formel);
  1332. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1333. var _formel = document.getElementById("studentStudy");
  1334. U.UF.F.windowZooming(_formel);
  1335. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1336. // var _formel = document.getElementById("study");
  1337. //如果最大化了,那么就把他缩小
  1338. // if (_formel.ismaximize) {
  1339. // return;
  1340. // }
  1341. // U.UF.F.windowZooming(_formel);
  1342. // U.UF.F.topWindow(_formel);
  1343. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1344. // var _formel = document.getElementById("studyDetail");
  1345. //如果最大化了,那么就把他缩小
  1346. // if (_formel.ismaximize) {
  1347. // return;
  1348. // }
  1349. // U.UF.F.windowZooming(_formel);
  1350. // U.UF.F.topWindow(_formel);
  1351. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1352. // var _formel = document.getElementById("studentStudy");
  1353. // if (_formel.ismaximize) {
  1354. // return;
  1355. // }
  1356. // U.UF.F.windowZooming(_formel);
  1357. // U.UF.F.topWindow(_formel);
  1358. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1359. var _formel = document.getElementById("study");
  1360. // if (_formel.ismaximize) {
  1361. // return;
  1362. // }
  1363. // U.UF.F.windowZooming(_formel);
  1364. U.UF.F.topWindow(_formel);
  1365. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1366. var _formel = document.getElementById("studentIndex");
  1367. U.UF.F.windowZooming(_formel);
  1368. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1369. var _formel = document.getElementById("studyDetailS");
  1370. U.UF.F.windowZooming(_formel);
  1371. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1372. var _formel = document.getElementById("studioIndex");
  1373. U.UF.F.windowZooming(_formel);
  1374. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1375. var _formel = document.getElementById("studyDetailStudio");
  1376. U.UF.F.windowZooming(_formel);
  1377. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1378. var _formel = document.getElementById("studyDetailStudio");
  1379. U.UF.F.windowZooming(_formel);
  1380. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1381. var _formel = document.getElementById("studyDetailNT");
  1382. U.UF.F.windowZooming(_formel);
  1383. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1384. var _formel = document.getElementById("studyDetailS");
  1385. U.UF.F.windowZooming(_formel);
  1386. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1387. var _formel = document.getElementById("studyDetailS");
  1388. U.UF.F.topWindow(_formel);
  1389. } else if (e.data.tools && e.data.tools == "1") {
  1390. // U.MD.D.I.openApplication("whiteboard")
  1391. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1392. } else if (e.data.tools && e.data.tools == "2") {
  1393. U.MD.D.I.openApplication("note")
  1394. } else if (e.data.tools && e.data.tools == "3") {
  1395. // U.MD.D.I.openApplication("mind")
  1396. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1397. } else if (e.data.tools && e.data.tools == "4") {
  1398. U.MD.D.I.openApplication("investigation")
  1399. } else if (e.data.tools && e.data.tools == "6") {
  1400. // U.MD.D.I.openApplication("doc")
  1401. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1402. } else if (e.data.tools && e.data.tools == "7") {
  1403. // U.MD.D.I.openApplication("mindNetwork")
  1404. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1405. } else if (e.data.tools && e.data.tools == "8") {
  1406. U.MD.D.I.openApplication("library")
  1407. } else if (e.data.tools && e.data.tools == "17") {
  1408. U.MD.D.I.openApplication("stuLibrary")
  1409. } else if (e.data.tools && e.data.tools == "18") {
  1410. U.MD.D.I.openApplication("train")
  1411. } else if (e.data.tools && e.data.tools == "21") {
  1412. U.MD.D.I.openApplication("program")
  1413. } else if (e.data.tools && e.data.tools == "22") {
  1414. U.MD.D.I.openApplication("AIprogram2")
  1415. } else if (e.data.tools && e.data.tools == "23") {
  1416. U.MD.D.I.openApplication("Pythonprogram")
  1417. } else if (e.data.tools && e.data.tools == "24") {
  1418. U.MD.D.I.openApplication("AIprogram")
  1419. } else if (e.data.tools && e.data.tools == "25") {
  1420. U.MD.D.I.openApplication("sys")
  1421. } else if (e.data.tools && e.data.tools == "26") {
  1422. // U.MD.D.I.openApplication("courseDesign")
  1423. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1424. } else if (e.data.tools && e.data.tools == "31") {
  1425. U.MD.D.I.openApplication("netWorkPanel")
  1426. } else if (e.data.tools && e.data.tools == "32") {
  1427. U.MD.D.I.openApplication("codeEdit")
  1428. } else if (e.data.tools && e.data.tools == "57") {
  1429. U.MD.D.I.openApplication("CocoPi")
  1430. } else if (e.data.tools && e.data.tools == "58") {
  1431. U.MD.D.I.openApplication("car")
  1432. } else if (e.data.tools && e.data.tools == "59") {
  1433. U.MD.D.I.openApplication("lineSearch")
  1434. } else if (e.data.tools && e.data.tools == "60") {
  1435. U.MD.D.I.openApplication("deepLearning")
  1436. } else if (e.data.tools && e.data.tools == "61") {
  1437. U.MD.D.I.openApplication("allHistory")
  1438. } else if (e.data.tools && e.data.tools == "28") {
  1439. U.MD.D.I.openApplication("translation")
  1440. } else if (e.data.tools && e.data.tools == "37") {
  1441. U.MD.D.I.openApplication("mohe")
  1442. } else if (e.data.tools && e.data.tools == "38") {
  1443. U.MD.D.I.openApplication("24game")
  1444. } else if (e.data.tools && e.data.tools == "39") {
  1445. U.MD.D.I.openApplication("GeoGebra")
  1446. } else if (e.data.tools && e.data.tools == "43") {
  1447. U.MD.D.I.openApplication("studentEvaluate")
  1448. } else if (e.data.tools && e.data.tools == "44") {
  1449. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1450. } else if (e.data.tools && e.data.tools == "46") {
  1451. U.MD.D.I.openApplication("project")
  1452. } else if (e.data.tools && e.data.tools == "1s") {
  1453. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1454. } else if (e.data.tools && e.data.tools == "3s") {
  1455. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1456. } else if (e.data.tools && e.data.tools == "6s") {
  1457. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1458. } else if (e.data.tools && e.data.tools == "1studio") {
  1459. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1460. } else if (e.data.tools && e.data.tools == "3studio") {
  1461. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1462. } else if (e.data.tools && e.data.tools == "6studio") {
  1463. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1464. } else if (e.data.tools && e.data.tools == "3y") {
  1465. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1466. } else if (e.data.tools && e.data.tools == "1y") {
  1467. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1468. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1469. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1470. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1471. U.MD.D.I.openApplication("AIAnalyse")
  1472. } else if (e.data.tools && e.data.tools == "1teacher") {
  1473. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1474. } else if (e.data.tools && e.data.tools == "3teacher") {
  1475. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1476. } else if (e.data.tools && e.data.tools == "7teacher") {
  1477. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1478. }
  1479. });
  1480. U.MD.D.I.selectUser = function () {
  1481. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1482. if (res.value[0].length > 0) {
  1483. US.userInfo = res.value[0][0];
  1484. $(".userName")[0].innerHTML = US.userInfo.username;
  1485. }
  1486. }, [], { "type": "GET", "withCredentials": true });
  1487. }
  1488. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1489. var _userinfo = US.userInfo, //登录用户信息
  1490. _userid = US.userInfo.userid, //登录用户id
  1491. _oid = _userinfo.organizeid,
  1492. _type = US.userInfo.type,
  1493. _org = US.userInfo.org,
  1494. _role = US.userInfo.role,
  1495. _classId = US.userInfo.classid;
  1496. if (_type == 4) {
  1497. tType = 4
  1498. }
  1499. switch (str) {
  1500. case "studyDetailNT"://无终端模式
  1501. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1502. setTimeout(() => {
  1503. U.MD.U.L.login();
  1504. }, 2000);
  1505. } else {
  1506. _formdiv = new U.UF.UI.form(
  1507. "课程详情",
  1508. $$("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 }), {
  1509. "id": "studyDetailNT",
  1510. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1511. "onresize": function () { }
  1512. }, {
  1513. closecallback: function () { }
  1514. }, { "style": { "height": "36px" } }).form; //创建窗体
  1515. _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); } }
  1516. break;
  1517. }
  1518. case "studyDetail":
  1519. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1520. setTimeout(() => {
  1521. U.MD.U.L.login();
  1522. }, 2000);
  1523. } else {
  1524. _formdiv = new U.UF.UI.form(
  1525. "课程详情",
  1526. $$("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 }), {
  1527. "id": "studyDetail",
  1528. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1529. "onresize": function () { }
  1530. }, {
  1531. closecallback: function () { }
  1532. }, { "style": { "height": "36px" } }).form; //创建窗体
  1533. _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); } }
  1534. break;
  1535. }
  1536. case "studyDetailS":
  1537. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1538. setTimeout(() => {
  1539. U.MD.U.L.login();
  1540. }, 2000);
  1541. } else {
  1542. _formdiv = new U.UF.UI.form(
  1543. "项目详情",
  1544. $$("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 }), {
  1545. "id": "studyDetailS",
  1546. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1547. "onresize": function () { }
  1548. }, {
  1549. closecallback: function () { }
  1550. }, { "style": { "height": "36px" } }).form; //创建窗体
  1551. _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); } }
  1552. break;
  1553. }
  1554. case "studyDetailStudio":
  1555. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1556. setTimeout(() => {
  1557. U.MD.U.L.login();
  1558. }, 2000);
  1559. } else {
  1560. _formdiv = new U.UF.UI.form(
  1561. "工作详情",
  1562. $$("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 }), {
  1563. "id": "studyDetailStudio",
  1564. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1565. "onresize": function () { }
  1566. }, {
  1567. closecallback: function () { }
  1568. }, { "style": { "height": "36px" } }).form; //创建窗体
  1569. _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); } }
  1570. break;
  1571. }
  1572. case "studyDetailS5":
  1573. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1574. setTimeout(() => {
  1575. U.MD.U.L.login();
  1576. }, 2000);
  1577. } else {
  1578. _formdiv = new U.UF.UI.form(
  1579. "项目详情",
  1580. $$("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 }), {
  1581. "id": "studyDetailS",
  1582. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1583. "onresize": function () { }
  1584. }, {
  1585. closecallback: function () { }
  1586. }, { "style": { "height": "36px" } }).form; //创建窗体
  1587. _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); } }
  1588. break;
  1589. }
  1590. case "studyDetailGM":
  1591. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1592. setTimeout(() => {
  1593. U.MD.U.L.login();
  1594. }, 2000);
  1595. } else {
  1596. _formdiv = new U.UF.UI.form(
  1597. "课程详情",
  1598. $$("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 }), {
  1599. "id": "studyDetail",
  1600. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1601. "onresize": function () { }
  1602. }, {
  1603. closecallback: function () { }
  1604. }, { "style": { "height": "36px" } }).form; //创建窗体
  1605. _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); } }
  1606. break;
  1607. }
  1608. case "hanUrl":
  1609. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1610. setTimeout(() => {
  1611. U.MD.U.L.login();
  1612. }, 2000);
  1613. } else {
  1614. _formdiv = new U.UF.UI.form(
  1615. "汉字宫",
  1616. $$("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" }), {
  1617. "id": "hanUrl",
  1618. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1619. "onresize": function () { }
  1620. }, {
  1621. closecallback: function () { }
  1622. }, { "style": { "height": "36px" } }).form; //创建窗体
  1623. _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); } }
  1624. break;
  1625. }
  1626. }
  1627. }
  1628. U.MD.D.I.openApplication = function (str, obj, info) {
  1629. obj = obj || {};
  1630. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1631. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1632. _userinfo = US.userInfo, //登录用户信息
  1633. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1634. _oid = obj.organizeid || _userinfo.organizeid,
  1635. _type = US.userInfo.type,
  1636. _org = US.userInfo.org,
  1637. _role = US.userInfo.role,
  1638. _classId = US.userInfo.classid,
  1639. _TscreenType = 1
  1640. _screenType = 2,
  1641. _SscreenType = 3;
  1642. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1643. return;
  1644. }
  1645. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1646. switch (str) {
  1647. case "studnetProject": //好友打开
  1648. _formdiv = new U.UF.UI.form(
  1649. "我的项目",
  1650. $$("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 }), {
  1651. "id": "studnetProject",
  1652. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1653. "onresize": function () { }
  1654. }, {
  1655. closecallback: function () { }
  1656. }, { "style": { "height": "36px" } }).form; //创建窗体
  1657. _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); } }
  1658. break;
  1659. case "studentEvaluate": //好友打开
  1660. _formdiv = new U.UF.UI.form(
  1661. "我的评价",
  1662. $$("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 }), {
  1663. "id": "studentEvaluate",
  1664. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1665. "onresize": function () { }
  1666. }, {
  1667. closecallback: function () { }
  1668. }, { "style": { "height": "36px" } }).form; //创建窗体
  1669. _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); } }
  1670. break;
  1671. case "my":
  1672. _formdiv = new U.UF.UI.form(
  1673. "我的资料",
  1674. $$("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 }), {
  1675. "id": "my",
  1676. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1677. "onresize": function () { }
  1678. }, {
  1679. closecallback: function () { }
  1680. }, { "style": { "height": "36px" } }).form; //创建窗体
  1681. _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); } }
  1682. break;
  1683. case "program":
  1684. _formdiv = new U.UF.UI.form(
  1685. "编程平台",
  1686. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1687. "id": "program",
  1688. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1689. "onresize": function () { }
  1690. }, {
  1691. closecallback: function () { }
  1692. }, { "style": { "height": "36px" } }).form; //创建窗体
  1693. _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); } }
  1694. break;
  1695. case "library":
  1696. _formdiv = new U.UF.UI.form(
  1697. "素材库",
  1698. $$("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 }), {
  1699. "id": "library",
  1700. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1701. "onresize": function () { }
  1702. }, {
  1703. closecallback: function () { }
  1704. }, { "style": { "height": "36px" } }).form; //创建窗体
  1705. _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); } }
  1706. break;
  1707. case "whiteboard":
  1708. _formdiv = new U.UF.UI.form(
  1709. "电子白板",
  1710. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1711. "id": "whiteboard",
  1712. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1713. "onresize": function () { }
  1714. }, {
  1715. closecallback: function () { }
  1716. }, { "style": { "height": "36px" } }).form; //创建窗体
  1717. _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); } }
  1718. break;
  1719. case "investigation":
  1720. _formdiv = new U.UF.UI.form(
  1721. "问卷调查",
  1722. $$("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 }), {
  1723. "id": "investigation",
  1724. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1725. "onresize": function () { }
  1726. }, {
  1727. closecallback: function () { }
  1728. }, { "style": { "height": "36px" } }).form; //创建窗体
  1729. _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); } }
  1730. break;
  1731. case "note":
  1732. _formdiv = new U.UF.UI.form(
  1733. "便签分类",
  1734. $$("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 }), {
  1735. "id": "note",
  1736. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1737. "onresize": function () { }
  1738. }, {
  1739. closecallback: function () { }
  1740. }, { "style": { "height": "36px" } }).form; //创建窗体
  1741. _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); } }
  1742. break;
  1743. // case "score":
  1744. // _formdiv = new U.UF.UI.form(
  1745. // "量规评分",
  1746. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  1747. // "id": "score",
  1748. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1749. // "onresize": function() {}
  1750. // }, {
  1751. // closecallback: function() {}
  1752. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1753. // _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); } }
  1754. // break;
  1755. case "mind":
  1756. _formdiv = new U.UF.UI.form(
  1757. "思维导图",
  1758. $$("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"
  1759. "id": "mind",
  1760. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1761. "onresize": function () { }
  1762. }, {
  1763. closecallback: function () { }
  1764. }, { "style": { "height": "36px" } }).form; //创建窗体
  1765. _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); } }
  1766. break;
  1767. case "doc":
  1768. // U.MD.D.I.isRoom();
  1769. _formdiv = new U.UF.UI.form(
  1770. "协同文档",
  1771. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1772. "id": "doc",
  1773. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1774. "onresize": function () { }
  1775. }, {
  1776. closecallback: function () { }
  1777. }, { "style": { "height": "36px" } }).form; //创建窗体
  1778. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1779. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1780. // })
  1781. _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); } }
  1782. break;
  1783. case "studentStudy":
  1784. _formdiv = new U.UF.UI.form(
  1785. "课程中心",
  1786. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1787. "id": "studentStudy",
  1788. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1789. "onresize": function () { }
  1790. }, {
  1791. closecallback: function () { }
  1792. }, { "style": { "height": "36px" } }).form; //创建窗体
  1793. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1794. break;
  1795. case "train": //好友打开
  1796. _formdiv = new U.UF.UI.form(
  1797. "训练平台",
  1798. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1799. "id": "train",
  1800. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1801. "onresize": function () { }
  1802. }, {
  1803. closecallback: function () { }
  1804. }, { "style": { "height": "36px" } }).form; //创建窗体
  1805. _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); } }
  1806. break;
  1807. case "mindNetwork": //好友打开
  1808. _formdiv = new U.UF.UI.form(
  1809. "思维网格",
  1810. $$("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 }), {
  1811. "id": "mindNetwork",
  1812. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1813. "onresize": function () { }
  1814. }, {
  1815. closecallback: function () { }
  1816. }, { "style": { "height": "36px" } }).form; //创建窗体
  1817. _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); } }
  1818. break;
  1819. case "studentClassRoom": //好友打开
  1820. _formdiv = new U.UF.UI.form(
  1821. "实时课堂",
  1822. $$("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 }), {
  1823. "id": "studentClassRoom",
  1824. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1825. "onresize": function () { }
  1826. }, {
  1827. closecallback: function () { }
  1828. }, { "style": { "height": "36px" } }).form; //创建窗体
  1829. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1830. setTimeout(() => {
  1831. U.UF.F.windowZooming(_formdiv)
  1832. }, 0);
  1833. break;
  1834. }
  1835. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1836. switch (str) {
  1837. case "studnetProject": //好友打开
  1838. _formdiv = new U.UF.UI.form(
  1839. "我的项目",
  1840. $$("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 }), {
  1841. "id": "studnetProject",
  1842. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1843. "onresize": function () { }
  1844. }, {
  1845. closecallback: function () { }
  1846. }, { "style": { "height": "36px" } }).form; //创建窗体
  1847. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1848. break;
  1849. case "studentEvaluate": //好友打开
  1850. _formdiv = new U.UF.UI.form(
  1851. "我的评价",
  1852. $$("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 }), {
  1853. "id": "studentEvaluate",
  1854. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1855. "onresize": function () { }
  1856. }, {
  1857. closecallback: function () { }
  1858. }, { "style": { "height": "36px" } }).form; //创建窗体
  1859. _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); } }
  1860. break;
  1861. case "my":
  1862. _formdiv = new U.UF.UI.form(
  1863. "我的资料",
  1864. $$("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 }), {
  1865. "id": "my",
  1866. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1867. "onresize": function () { }
  1868. }, {
  1869. closecallback: function () { }
  1870. }, { "style": { "height": "36px" } }).form; //创建窗体
  1871. _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); } }
  1872. break;
  1873. case "program":
  1874. _formdiv = new U.UF.UI.form(
  1875. "编程平台",
  1876. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1877. "id": "program",
  1878. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1879. "onresize": function () { }
  1880. }, {
  1881. closecallback: function () { }
  1882. }, { "style": { "height": "36px" } }).form; //创建窗体
  1883. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1884. break;
  1885. case "library":
  1886. _formdiv = new U.UF.UI.form(
  1887. "素材库",
  1888. $$("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 }), {
  1889. "id": "library",
  1890. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1891. "onresize": function () { }
  1892. }, {
  1893. closecallback: function () { }
  1894. }, { "style": { "height": "36px" } }).form; //创建窗体
  1895. _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); } }
  1896. break;
  1897. case "whiteboard":
  1898. _formdiv = new U.UF.UI.form(
  1899. "电子白板",
  1900. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1901. "id": "whiteboard",
  1902. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1903. "onresize": function () { }
  1904. }, {
  1905. closecallback: function () { }
  1906. }, { "style": { "height": "36px" } }).form; //创建窗体
  1907. _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); } }
  1908. break;
  1909. case "investigation":
  1910. _formdiv = new U.UF.UI.form(
  1911. "问卷调查",
  1912. $$("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 }), {
  1913. "id": "investigation",
  1914. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1915. "onresize": function () { }
  1916. }, {
  1917. closecallback: function () { }
  1918. }, { "style": { "height": "36px" } }).form; //创建窗体
  1919. _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); } }
  1920. break;
  1921. case "note":
  1922. _formdiv = new U.UF.UI.form(
  1923. "便签分类",
  1924. $$("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 }), {
  1925. "id": "note",
  1926. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1927. "onresize": function () { }
  1928. }, {
  1929. closecallback: function () { }
  1930. }, { "style": { "height": "36px" } }).form; //创建窗体
  1931. _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); } }
  1932. break;
  1933. // case "score":
  1934. // _formdiv = new U.UF.UI.form(
  1935. // "量规评分",
  1936. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  1937. // "id": "score",
  1938. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1939. // "onresize": function() {}
  1940. // }, {
  1941. // closecallback: function() {}
  1942. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1943. // _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); } }
  1944. // break;
  1945. case "mind":
  1946. _formdiv = new U.UF.UI.form(
  1947. "思维导图",
  1948. $$("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"
  1949. "id": "mind",
  1950. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1951. "onresize": function () { }
  1952. }, {
  1953. closecallback: function () { }
  1954. }, { "style": { "height": "36px" } }).form; //创建窗体
  1955. _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); } }
  1956. break;
  1957. case "doc":
  1958. // U.MD.D.I.isRoom();
  1959. _formdiv = new U.UF.UI.form(
  1960. "协同文档",
  1961. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1962. "id": "doc",
  1963. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1964. "onresize": function () { }
  1965. }, {
  1966. closecallback: function () { }
  1967. }, { "style": { "height": "36px" } }).form; //创建窗体
  1968. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1969. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1970. })
  1971. _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); } }
  1972. break;
  1973. case "train": //好友打开
  1974. _formdiv = new U.UF.UI.form(
  1975. "训练平台",
  1976. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1977. "id": "train",
  1978. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1979. "onresize": function () { }
  1980. }, {
  1981. closecallback: function () { }
  1982. }, { "style": { "height": "36px" } }).form; //创建窗体
  1983. _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); } }
  1984. break;
  1985. case "studentStudy":
  1986. _formdiv = new U.UF.UI.form(
  1987. "课程中心",
  1988. $$("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
  1989. "id": "studentStudy",
  1990. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1991. "onresize": function () { }
  1992. }, {
  1993. closecallback: function () { }
  1994. }, { "style": { "height": "36px" } }).form; //创建窗体
  1995. _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); } }
  1996. break;
  1997. case "mindNetwork": //好友打开
  1998. _formdiv = new U.UF.UI.form(
  1999. "思维网格",
  2000. $$("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 }), {
  2001. "id": "mindNetwork",
  2002. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2003. "onresize": function () { }
  2004. }, {
  2005. closecallback: function () { }
  2006. }, { "style": { "height": "36px" } }).form; //创建窗体
  2007. _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); } }
  2008. break;
  2009. case "studentClassRoom": //好友打开
  2010. _formdiv = new U.UF.UI.form(
  2011. "实时课堂",
  2012. $$("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 }), {
  2013. "id": "studentClassRoom",
  2014. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2015. "onresize": function () { }
  2016. }, {
  2017. closecallback: function () { }
  2018. }, { "style": { "height": "36px" } }).form; //创建窗体
  2019. _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); } }
  2020. setTimeout(() => {
  2021. U.UF.F.windowZooming(_formdiv)
  2022. }, 0);
  2023. break;
  2024. }
  2025. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2026. //选择应用处理
  2027. switch (str) {
  2028. case "project": //好友打开
  2029. _formdiv = new U.UF.UI.form(
  2030. "课程管理",
  2031. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2032. "id": "project",
  2033. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2034. "onresize": function () { }
  2035. }, {
  2036. closecallback: function () { }
  2037. }, { "style": { "height": "36px" } }).form; //创建窗体
  2038. _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); } }
  2039. break;
  2040. case "student":
  2041. _formdiv = new U.UF.UI.form(
  2042. "学生管理",
  2043. $$("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 }), {
  2044. "id": "student",
  2045. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2046. "onresize": function () { }
  2047. }, {
  2048. closecallback: function () { }
  2049. }, { "style": { "height": "36px" } }).form; //创建窗体
  2050. _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); } }
  2051. break;
  2052. case "evaluate":
  2053. _formdiv = new U.UF.UI.form(
  2054. "学生评价",
  2055. $$("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 }), {
  2056. "id": "evaluate",
  2057. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2058. "onresize": function () { }
  2059. }, {
  2060. closecallback: function () { }
  2061. }, { "style": { "height": "36px" } }).form; //创建窗体
  2062. _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); } }
  2063. break;
  2064. case "sys":
  2065. _formdiv = new U.UF.UI.form(
  2066. "目标管理",
  2067. $$("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 }), {
  2068. "id": "sys",
  2069. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2070. "onresize": function () { }
  2071. }, {
  2072. closecallback: function () { }
  2073. }, { "style": { "height": "36px" } }).form; //创建窗体
  2074. _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); } }
  2075. break;
  2076. case "courseDesign":
  2077. _formdiv = new U.UF.UI.form(
  2078. "项目设计",
  2079. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2080. "id": "courseDesign",
  2081. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2082. "onresize": function () { }
  2083. }, {
  2084. closecallback: function () { }
  2085. }, { "style": { "height": "36px" } }).form; //创建窗体
  2086. _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); } }
  2087. break;
  2088. case "program":
  2089. _formdiv = new U.UF.UI.form(
  2090. "编程平台",
  2091. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2092. "id": "program",
  2093. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2094. "onresize": function () { }
  2095. }, {
  2096. closecallback: function () { }
  2097. }, { "style": { "height": "36px" } }).form; //创建窗体
  2098. _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); } }
  2099. break;
  2100. case "class":
  2101. _formdiv = new U.UF.UI.form(
  2102. "班级管理",
  2103. $$("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 }), {
  2104. "id": "class",
  2105. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2106. "onresize": function () { }
  2107. }, {
  2108. closecallback: function () { }
  2109. }, { "style": { "height": "36px" } }).form; //创建窗体
  2110. _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); } }
  2111. break;
  2112. case "my":
  2113. _formdiv = new U.UF.UI.form(
  2114. "我的资料",
  2115. $$("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 }), {
  2116. "id": "my",
  2117. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2118. "onresize": function () { }
  2119. }, {
  2120. closecallback: function () { }
  2121. }, { "style": { "height": "36px" } }).form; //创建窗体
  2122. _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); } }
  2123. break;
  2124. case "notice":
  2125. _formdiv = new U.UF.UI.form(
  2126. "通知公告",
  2127. $$("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 }), {
  2128. "id": "notice",
  2129. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2130. "onresize": function () { }
  2131. }, {
  2132. closecallback: function () { }
  2133. }, { "style": { "height": "36px" } }).form; //创建窗体
  2134. _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); } }
  2135. break;
  2136. case "library":
  2137. _formdiv = new U.UF.UI.form(
  2138. "素材库",
  2139. $$("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 }), {
  2140. "id": "library",
  2141. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2142. "onresize": function () { }
  2143. }, {
  2144. closecallback: function () { }
  2145. }, { "style": { "height": "36px" } }).form; //创建窗体
  2146. _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); } }
  2147. break;
  2148. case "whiteboard":
  2149. _formdiv = new U.UF.UI.form(
  2150. "电子白板",
  2151. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2152. "id": "whiteboard",
  2153. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2154. "onresize": function () { }
  2155. }, {
  2156. closecallback: function () { }
  2157. }, { "style": { "height": "36px" } }).form; //创建窗体
  2158. _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); } }
  2159. break;
  2160. case "investigation":
  2161. _formdiv = new U.UF.UI.form(
  2162. "问卷调查",
  2163. $$("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 }), {
  2164. "id": "investigation",
  2165. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2166. "onresize": function () { }
  2167. }, {
  2168. closecallback: function () { }
  2169. }, { "style": { "height": "36px" } }).form; //创建窗体
  2170. _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); } }
  2171. break;
  2172. case "note":
  2173. _formdiv = new U.UF.UI.form(
  2174. "便签分类",
  2175. $$("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 }), {
  2176. "id": "note",
  2177. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2178. "onresize": function () { }
  2179. }, {
  2180. closecallback: function () { }
  2181. }, { "style": { "height": "36px" } }).form; //创建窗体
  2182. _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); } }
  2183. break;
  2184. // case "score":
  2185. // _formdiv = new U.UF.UI.form(
  2186. // "量规评分",
  2187. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2188. // "id": "score",
  2189. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2190. // "onresize": function() {}
  2191. // }, {
  2192. // closecallback: function() {}
  2193. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2194. // _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); } }
  2195. // break;
  2196. case "mind":
  2197. _formdiv = new U.UF.UI.form(
  2198. "思维导图",
  2199. $$("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"
  2200. "id": "mind",
  2201. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2202. "onresize": function () { }
  2203. }, {
  2204. closecallback: function () { }
  2205. }, { "style": { "height": "36px" } }).form; //创建窗体
  2206. _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); } }
  2207. break;
  2208. case "doc":
  2209. // U.MD.D.I.isRoom();
  2210. _formdiv = new U.UF.UI.form(
  2211. "协同文档",
  2212. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2213. "id": "doc",
  2214. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2215. "onresize": function () { }
  2216. }, {
  2217. closecallback: function () { }
  2218. }, { "style": { "height": "36px" } }).form; //创建窗体
  2219. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2220. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2221. })
  2222. _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); } }
  2223. break;
  2224. case "study":
  2225. _formdiv = new U.UF.UI.form(
  2226. "课程中心",
  2227. $$("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
  2228. "id": "study",
  2229. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2230. "onresize": function () { }
  2231. }, {
  2232. closecallback: function () { }
  2233. }, { "style": { "height": "36px" } }).form; //创建窗体
  2234. _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); } }
  2235. break;
  2236. case "mindNetwork": //好友打开
  2237. _formdiv = new U.UF.UI.form(
  2238. "思维网格",
  2239. $$("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 }), {
  2240. "id": "mindNetwork",
  2241. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2242. "onresize": function () { }
  2243. }, {
  2244. closecallback: function () { }
  2245. }, { "style": { "height": "36px" } }).form; //创建窗体
  2246. _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); } }
  2247. break;
  2248. case "train": //好友打开
  2249. _formdiv = new U.UF.UI.form(
  2250. "训练平台",
  2251. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2252. "id": "mindNetwork",
  2253. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2254. "onresize": function () { }
  2255. }, {
  2256. closecallback: function () { }
  2257. }, { "style": { "height": "36px" } }).form; //创建窗体
  2258. _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); } }
  2259. break;
  2260. case "teacherClassRoom": //好友打开
  2261. _formdiv = new U.UF.UI.form(
  2262. "实时课堂",
  2263. $$("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 }), {
  2264. "id": "teacherClassRoom",
  2265. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2266. "onresize": function () { }
  2267. }, {
  2268. closecallback: function () { }
  2269. }, { "style": { "height": "36px" } }).form; //创建窗体
  2270. _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); } }
  2271. setTimeout(() => {
  2272. U.UF.F.windowZooming(_formdiv)
  2273. }, 0);
  2274. break;
  2275. }
  2276. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2277. switch (str) {
  2278. case "project": //好友打开
  2279. _formdiv = new U.UF.UI.form(
  2280. "课程管理",
  2281. $$("iframe", { "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 }), {
  2282. "id": "project",
  2283. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2284. "onresize": function () { }
  2285. }, {
  2286. closecallback: function () { }
  2287. }, { "style": { "height": "36px" } }).form; //创建窗体
  2288. _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); } }
  2289. break;
  2290. case "evaluate":
  2291. _formdiv = new U.UF.UI.form(
  2292. "学生评价",
  2293. $$("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 }), {
  2294. "id": "evaluate",
  2295. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2296. "onresize": function () { }
  2297. }, {
  2298. closecallback: function () { }
  2299. }, { "style": { "height": "36px" } }).form; //创建窗体
  2300. _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); } }
  2301. break;
  2302. case "notice":
  2303. _formdiv = new U.UF.UI.form(
  2304. "通知公告",
  2305. $$("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 }), {
  2306. "id": "notice",
  2307. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2308. "onresize": function () { }
  2309. }, {
  2310. closecallback: function () { }
  2311. }, { "style": { "height": "36px" } }).form; //创建窗体
  2312. _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); } }
  2313. break;
  2314. case "stuLibrary":
  2315. _formdiv = new U.UF.UI.form(
  2316. "学习资料",
  2317. $$("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 }), {
  2318. "id": "stuLibrary",
  2319. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2320. "onresize": function () { }
  2321. }, {
  2322. closecallback: function () { }
  2323. }, { "style": { "height": "36px" } }).form; //创建窗体
  2324. _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); } }
  2325. break;
  2326. case "program":
  2327. _formdiv = new U.UF.UI.form(
  2328. "编程平台",
  2329. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2330. "id": "program",
  2331. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2332. "onresize": function () { }
  2333. }, {
  2334. closecallback: function () { }
  2335. }, { "style": { "height": "36px" } }).form; //创建窗体
  2336. _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); } }
  2337. break;
  2338. case "whiteboard":
  2339. _formdiv = new U.UF.UI.form(
  2340. "电子白板",
  2341. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2342. "id": "whiteboard",
  2343. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2344. "onresize": function () { }
  2345. }, {
  2346. closecallback: function () { }
  2347. }, { "style": { "height": "36px" } }).form; //创建窗体
  2348. _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); } }
  2349. break;
  2350. case "investigation":
  2351. _formdiv = new U.UF.UI.form(
  2352. "问卷调查",
  2353. $$("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 }), {
  2354. "id": "investigation",
  2355. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2356. "onresize": function () { }
  2357. }, {
  2358. closecallback: function () { }
  2359. }, { "style": { "height": "36px" } }).form; //创建窗体
  2360. _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); } }
  2361. break;
  2362. case "mind":
  2363. _formdiv = new U.UF.UI.form(
  2364. "思维导图",
  2365. $$("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"
  2366. "id": "mind",
  2367. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2368. "onresize": function () { }
  2369. }, {
  2370. closecallback: function () { }
  2371. }, { "style": { "height": "36px" } }).form; //创建窗体
  2372. _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); } }
  2373. break;
  2374. case "doc":
  2375. // U.MD.D.I.isRoom();
  2376. _formdiv = new U.UF.UI.form(
  2377. "协同文档",
  2378. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2379. "id": "doc",
  2380. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2381. "onresize": function () { }
  2382. }, {
  2383. closecallback: function () { }
  2384. }, { "style": { "height": "36px" } }).form; //创建窗体
  2385. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2386. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2387. })
  2388. _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); } }
  2389. break;
  2390. case "study":
  2391. _formdiv = new U.UF.UI.form(
  2392. "课程中心",
  2393. $$("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
  2394. "id": "study",
  2395. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2396. "onresize": function () { }
  2397. }, {
  2398. closecallback: function () { }
  2399. }, { "style": { "height": "36px" } }).form; //创建窗体
  2400. _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); } }
  2401. break;
  2402. case "mindNetwork": //好友打开
  2403. _formdiv = new U.UF.UI.form(
  2404. "思维网格",
  2405. $$("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 }), {
  2406. "id": "mindNetwork",
  2407. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2408. "onresize": function () { }
  2409. }, {
  2410. closecallback: function () { }
  2411. }, { "style": { "height": "36px" } }).form; //创建窗体
  2412. _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); } }
  2413. break;
  2414. case "train": //好友打开
  2415. _formdiv = new U.UF.UI.form(
  2416. "训练平台",
  2417. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2418. "id": "train",
  2419. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2420. "onresize": function () { }
  2421. }, {
  2422. closecallback: function () { }
  2423. }, { "style": { "height": "36px" } }).form; //创建窗体
  2424. _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); } }
  2425. break;
  2426. case "sys":
  2427. _formdiv = new U.UF.UI.form(
  2428. "目标管理",
  2429. $$("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 }), {
  2430. "id": "sys",
  2431. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2432. "onresize": function () { }
  2433. }, {
  2434. closecallback: function () { }
  2435. }, { "style": { "height": "36px" } }).form; //创建窗体
  2436. _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); } }
  2437. break;
  2438. case "courseDesign":
  2439. _formdiv = new U.UF.UI.form(
  2440. "项目设计",
  2441. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2442. "id": "courseDesign",
  2443. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2444. "onresize": function () { }
  2445. }, {
  2446. closecallback: function () { }
  2447. }, { "style": { "height": "36px" } }).form; //创建窗体
  2448. _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); } }
  2449. break;
  2450. }
  2451. } else if (!_type) {
  2452. switch (str) {
  2453. case "my":
  2454. _formdiv = new U.UF.UI.form(
  2455. "我的资料",
  2456. $$("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 }), {
  2457. "id": "my",
  2458. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2459. "onresize": function () { }
  2460. }, {
  2461. closecallback: function () { }
  2462. }, { "style": { "height": "36px" } }).form; //创建窗体
  2463. _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); } }
  2464. break;
  2465. }
  2466. }
  2467. switch (str) {
  2468. // AIprogram2 AI体验 aihub.cocorobo.cn
  2469. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2470. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2471. case "AIprogram2": //AI体验
  2472. _formdiv = new U.UF.UI.form(
  2473. "AI体验",
  2474. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2475. "id": "AIprogram2",
  2476. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2477. "onresize": function () { }
  2478. }, {
  2479. closecallback: function () { }
  2480. }, { "style": { "height": "36px" } }).form; //创建窗体
  2481. _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); } }
  2482. break;
  2483. case "Pythonprogram": //python编程
  2484. _formdiv = new U.UF.UI.form(
  2485. "Python编程",
  2486. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2487. "id": "Pythonprogram",
  2488. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2489. "onresize": function () { }
  2490. }, {
  2491. closecallback: function () { }
  2492. }, { "style": { "height": "36px" } }).form; //创建窗体
  2493. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Pythonprogram.png)" }, "name": "Python编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2494. break;
  2495. case "AIprogram": //ai编程
  2496. _formdiv = new U.UF.UI.form(
  2497. "AI编程平台",
  2498. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2499. "id": "AIprogram",
  2500. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2501. "onresize": function () { }
  2502. }, {
  2503. closecallback: function () { }
  2504. }, { "style": { "height": "36px" } }).form; //创建窗体
  2505. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram.png)" }, "name": "AI编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2506. break;
  2507. case "CocoPi": //CocoPi
  2508. _formdiv = new U.UF.UI.form(
  2509. "CocoPi",
  2510. $$("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" }), {
  2511. "id": "CocoPi",
  2512. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2513. "onresize": function () { }
  2514. }, {
  2515. closecallback: function () { }
  2516. }, { "style": { "height": "36px" } }).form; //创建窗体
  2517. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/cocopi.png)" }, "name": "CocoPi", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2518. break;
  2519. case "car": //模拟驾驶
  2520. _formdiv = new U.UF.UI.form(
  2521. "模拟驾驶",
  2522. $$("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/" }), {
  2523. "id": "car",
  2524. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2525. "onresize": function () { }
  2526. }, {
  2527. closecallback: function () { }
  2528. }, { "style": { "height": "36px" } }).form; //创建窗体
  2529. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/car.png)" }, "name": "模拟驾驶", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2530. break;
  2531. case "lineSearch": //路径搜索
  2532. _formdiv = new U.UF.UI.form(
  2533. "路径搜索",
  2534. $$("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/" }), {
  2535. "id": "lineSearch",
  2536. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2537. "onresize": function () { }
  2538. }, {
  2539. closecallback: function () { }
  2540. }, { "style": { "height": "36px" } }).form; //创建窗体
  2541. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/lineSearch.png)" }, "name": "路径搜索", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2542. break;
  2543. case "deepLearning": //深度学习
  2544. _formdiv = new U.UF.UI.form(
  2545. "深度学习",
  2546. $$("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/#" }), {
  2547. "id": "deepLearning",
  2548. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2549. "onresize": function () { }
  2550. }, {
  2551. closecallback: function () { }
  2552. }, { "style": { "height": "36px" } }).form; //创建窗体
  2553. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/deepLearning.png)" }, "name": "深度学习", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2554. break;
  2555. case "allHistory": //深度学习
  2556. _formdiv = new U.UF.UI.form(
  2557. "全历史",
  2558. $$("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/" }), {
  2559. "id": "allHistory",
  2560. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2561. "onresize": function () { }
  2562. }, {
  2563. closecallback: function () { }
  2564. }, { "style": { "height": "36px" } }).form; //创建窗体
  2565. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/allHistory.png)" }, "name": "全历史", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2566. break;
  2567. case "chatPDF": //ai编程
  2568. _formdiv = new U.UF.UI.form(
  2569. "chatPDF",
  2570. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2571. "id": "chatPDF",
  2572. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2573. "onresize": function () { }
  2574. }, {
  2575. closecallback: function () { }
  2576. }, { "style": { "height": "36px" } }).form; //创建窗体
  2577. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/chatPDF.png)" }, "name": "chatPDF", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2578. break;
  2579. case "resources": //国家教育
  2580. _formdiv = new U.UF.UI.form(
  2581. "国家教育",
  2582. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2583. "id": "resources",
  2584. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2585. "onresize": function () { }
  2586. }, {
  2587. closecallback: function () { }
  2588. }, { "style": { "height": "36px" } }).form; //创建窗体
  2589. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/resources.png)" }, "name": "国家教育", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2590. break;
  2591. case "codeEdit": //源码编辑
  2592. _formdiv = new U.UF.UI.form(
  2593. "源码编辑",
  2594. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2595. "id": "codeEdit",
  2596. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2597. "onresize": function () { }
  2598. }, {
  2599. closecallback: function () { }
  2600. }, { "style": { "height": "36px" } }).form; //创建窗体
  2601. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/code.png)" }, "name": "源码编辑", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2602. break; //
  2603. case "MindMap": //MindMap
  2604. _formdiv = new U.UF.UI.form(
  2605. "MindMap",
  2606. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2607. "id": "MindMap",
  2608. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2609. "onresize": function () { }
  2610. }, {
  2611. closecallback: function () { }
  2612. }, { "style": { "height": "36px" } }).form; //创建窗体
  2613. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/MIndMap.png)" }, "name": "MindMap", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2614. break;
  2615. case "netWorkPanel": //netWorkPanel
  2616. _formdiv = new U.UF.UI.form(
  2617. "netWorkPanel",
  2618. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2619. "id": "netWorkPanel",
  2620. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2621. "onresize": function () { }
  2622. }, {
  2623. closecallback: function () { }
  2624. }, { "style": { "height": "36px" } }).form; //创建窗体
  2625. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/netWorkPanel.png)" }, "name": "netWorkPanel", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2626. break;
  2627. case "GeoGebra": //GeoGebra
  2628. _formdiv = new U.UF.UI.form(
  2629. "GeoGebra",
  2630. $$("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" }), {
  2631. "id": "GeoGebra",
  2632. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2633. "onresize": function () { }
  2634. }, {
  2635. closecallback: function () { }
  2636. }, { "style": { "height": "36px" } }).form; //创建窗体
  2637. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/GeoGebra.png)" }, "name": "GeoGebra", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2638. break;
  2639. case "translation": //翻译
  2640. _formdiv = new U.UF.UI.form(
  2641. "翻译",
  2642. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2643. "id": "translation",
  2644. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2645. "onresize": function () { }
  2646. }, {
  2647. closecallback: function () { }
  2648. }, { "style": { "height": "36px" } }).form; //创建窗体
  2649. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/translation.png)" }, "name": "翻译", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2650. break;
  2651. case "mohe": //魔盒
  2652. _formdiv = new U.UF.UI.form(
  2653. "魔盒识字",
  2654. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2655. "id": "mohe",
  2656. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2657. "onresize": function () { }
  2658. }, {
  2659. closecallback: function () { }
  2660. }, { "style": { "height": "36px" } }).form; //创建窗体
  2661. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mohe.png)" }, "name": "魔盒识字", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2662. break;
  2663. case "24game": //24点
  2664. _formdiv = new U.UF.UI.form(
  2665. "24点",
  2666. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2667. "id": "24game",
  2668. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2669. "onresize": function () { }
  2670. }, {
  2671. closecallback: function () { }
  2672. }, { "style": { "height": "36px" } }).form; //创建窗体
  2673. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/24game.png)" }, "name": "24点", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2674. break;
  2675. case "case":
  2676. _formdiv = new U.UF.UI.form(
  2677. "课程进展",
  2678. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesign?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2679. "id": "case",
  2680. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2681. "onresize": function () { }
  2682. }, {
  2683. closecallback: function () { }
  2684. }, { "style": { "height": "36px" } }).form; //创建窗体
  2685. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/case.png)" }, "name": "课程进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2686. break;
  2687. case "snf":
  2688. _formdiv = new U.UF.UI.form(
  2689. "赛诺梵",
  2690. $$("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" }), {
  2691. "id": "snf",
  2692. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2693. "onresize": function () { }
  2694. }, {
  2695. closecallback: function () { }
  2696. }, { "style": { "height": "36px" } }).form; //创建窗体
  2697. _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); } }
  2698. break;
  2699. case "hanFamily":
  2700. _formdiv = new U.UF.UI.form(
  2701. "汉字家族",
  2702. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2703. "id": "hanFamily",
  2704. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2705. "onresize": function () { }
  2706. }, {
  2707. closecallback: function () { }
  2708. }, { "style": { "height": "36px" } }).form; //创建窗体
  2709. _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); } }
  2710. break;
  2711. case "hanClassics":
  2712. _formdiv = new U.UF.UI.form(
  2713. "国学经典",
  2714. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2715. "id": "hanClassics",
  2716. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2717. "onresize": function () { }
  2718. }, {
  2719. closecallback: function () { }
  2720. }, { "style": { "height": "36px" } }).form; //创建窗体
  2721. _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); } }
  2722. break;
  2723. case "hanTraining":
  2724. _formdiv = new U.UF.UI.form(
  2725. "笔画训练",
  2726. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2727. "id": "hanTraining",
  2728. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2729. "onresize": function () { }
  2730. }, {
  2731. closecallback: function () { }
  2732. }, { "style": { "height": "36px" } }).form; //创建窗体
  2733. _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); } }
  2734. break;
  2735. case "hanClass":
  2736. _formdiv = new U.UF.UI.form(
  2737. "书法课堂",
  2738. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2739. "id": "hanClass",
  2740. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2741. "onresize": function () { }
  2742. }, {
  2743. closecallback: function () { }
  2744. }, { "style": { "height": "36px" } }).form; //创建窗体
  2745. _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); } }
  2746. break;
  2747. case "han":
  2748. _formdiv = new U.UF.UI.form(
  2749. "汉字宫",
  2750. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2751. "id": "han",
  2752. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2753. "onresize": function () { }
  2754. }, {
  2755. closecallback: function () { }
  2756. }, { "style": { "height": "36px" } }).form; //创建窗体
  2757. _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); } }
  2758. break;
  2759. case "projectGM": //课程管理
  2760. _formdiv = new U.UF.UI.form(
  2761. "课程管理",
  2762. $$("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 }), {
  2763. "id": "projectGM",
  2764. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2765. "onresize": function () { }
  2766. }, {
  2767. closecallback: function () { }
  2768. }, { "style": { "height": "36px" } }).form; //创建窗体
  2769. _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); } }
  2770. break;
  2771. case "studyGM"://课程中心
  2772. _formdiv = new U.UF.UI.form(
  2773. "课程中心",
  2774. $$("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
  2775. "id": "study",
  2776. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2777. "onresize": function () { }
  2778. }, {
  2779. closecallback: function () { }
  2780. }, { "style": { "height": "36px" } }).form; //创建窗体
  2781. _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); } }
  2782. break;
  2783. // studentGM
  2784. case "studentGM"://学生管理
  2785. _formdiv = new U.UF.UI.form(
  2786. "学生管理",
  2787. $$("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 }), {
  2788. "id": "studentGM",
  2789. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2790. "onresize": function () { }
  2791. }, {
  2792. closecallback: function () { }
  2793. }, { "style": { "height": "36px" } }).form; //创建窗体
  2794. _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); } }
  2795. break;
  2796. case "evaluateGM"://学生评价
  2797. _formdiv = new U.UF.UI.form(
  2798. "学生评价",
  2799. $$("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 }), {
  2800. "id": "evaluateGM",
  2801. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2802. "onresize": function () { }
  2803. }, {
  2804. closecallback: function () { }
  2805. }, { "style": { "height": "36px" } }).form; //创建窗体
  2806. _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); } }
  2807. break;
  2808. // classGM
  2809. case "classGM"://班级管理
  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": US.Config.bpbl + "/pbl-teacher-table/dist/#/classGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2813. "id": "classGM",
  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/gm/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2820. break;
  2821. // dataGM
  2822. case "dataGM":
  2823. _formdiv = new U.UF.UI.form(
  2824. "我的资料",
  2825. $$("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 }), {
  2826. "id": "dataGM",
  2827. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2828. "onresize": function () { }
  2829. }, {
  2830. closecallback: function () { }
  2831. }, { "style": { "height": "36px" } }).form; //创建窗体
  2832. _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); } }
  2833. break;
  2834. // caseGM
  2835. case "caseGM"://课程进展
  2836. _formdiv = new U.UF.UI.form(
  2837. "课程进展",
  2838. $$("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 }), {
  2839. "id": "caseGM",
  2840. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2841. "onresize": function () { }
  2842. }, {
  2843. closecallback: function () { }
  2844. }, { "style": { "height": "36px" } }).form; //创建窗体
  2845. _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); } }
  2846. break;
  2847. // meterialGM
  2848. case "meterialGM"://素材库
  2849. _formdiv = new U.UF.UI.form(
  2850. "素材库",
  2851. $$("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 }), {
  2852. "id": "meterialGM",
  2853. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2854. "onresize": function () { }
  2855. }, {
  2856. closecallback: function () { }
  2857. }, { "style": { "height": "36px" } }).form; //创建窗体
  2858. _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); } }
  2859. break;
  2860. // evaluateSGM
  2861. case "evaluateSGM": //我的评价
  2862. _formdiv = new U.UF.UI.form(
  2863. "我的评价",
  2864. $$("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 }), {
  2865. "id": "evaluateSGM",
  2866. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2867. "onresize": function () { }
  2868. }, {
  2869. closecallback: function () { }
  2870. }, { "style": { "height": "36px" } }).form; //创建窗体
  2871. _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); } }
  2872. break;
  2873. case "jupyter": //jupyter
  2874. _formdiv = new U.UF.UI.form(
  2875. "jupyter",
  2876. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  2877. "id": "jupyter",
  2878. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2879. "onresize": function () { }
  2880. }, {
  2881. closecallback: function () { }
  2882. }, { "style": { "height": "36px" } }).form; //创建窗体
  2883. _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); } }
  2884. break;
  2885. case "number": //数字实验室
  2886. _formdiv = new U.UF.UI.form(
  2887. "数字实验室",
  2888. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  2889. "id": "number",
  2890. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2891. "onresize": function () { }
  2892. }, {
  2893. closecallback: function () { }
  2894. }, { "style": { "height": "36px" } }).form; //创建窗体
  2895. _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); } }
  2896. break;
  2897. case "studentCourse": //项目管理 学生
  2898. _formdiv = new U.UF.UI.form(
  2899. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2900. $$("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 }), {
  2901. "id": "studentCourse",
  2902. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2903. "onresize": function () { }
  2904. }, {
  2905. closecallback: function () { }
  2906. }, { "style": { "height": "36px" } }).form; //创建窗体
  2907. _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); } }
  2908. break;
  2909. case "studentCourseS": //项目管理 老师
  2910. _formdiv = new U.UF.UI.form(
  2911. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2912. $$("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 }), {
  2913. "id": "studentCourseS",
  2914. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2915. "onresize": function () { }
  2916. }, {
  2917. closecallback: function () { }
  2918. }, { "style": { "height": "36px" } }).form; //创建窗体
  2919. _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); } }
  2920. break;
  2921. case "studentIndex": //项目中心
  2922. _formdiv = new U.UF.UI.form(
  2923. "项目中心",
  2924. $$("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 }), {
  2925. "id": "studentIndex",
  2926. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2927. "onresize": function () { }
  2928. }, {
  2929. closecallback: function () { }
  2930. }, { "style": { "height": "36px" } }).form; //创建窗体
  2931. _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); } }
  2932. break;
  2933. case "CaseDesignS":
  2934. _formdiv = new U.UF.UI.form(
  2935. "项目进展",
  2936. $$("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 }), {
  2937. "id": "case",
  2938. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2939. "onresize": function () { }
  2940. }, {
  2941. closecallback: function () { }
  2942. }, { "style": { "height": "36px" } }).form; //创建窗体
  2943. _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); } }
  2944. break;
  2945. case "tcStudent": //腾讯学生管理
  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/#/tcStudent?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2949. "id": "tcStudent",
  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/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2956. break;
  2957. case "tcSchool": //腾讯学校管理
  2958. _formdiv = new U.UF.UI.form(
  2959. "学校管理",
  2960. $$("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 }), {
  2961. "id": "tcSchool",
  2962. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2963. "onresize": function () { }
  2964. }, {
  2965. closecallback: function () { }
  2966. }, { "style": { "height": "36px" } }).form; //创建窗体
  2967. _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); } }
  2968. break;
  2969. case "tcTeacher": //腾讯学校管理
  2970. _formdiv = new U.UF.UI.form(
  2971. "教师管理",
  2972. $$("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 }), {
  2973. "id": "tcTeacher",
  2974. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2975. "onresize": function () { }
  2976. }, {
  2977. closecallback: function () { }
  2978. }, { "style": { "height": "36px" } }).form; //创建窗体
  2979. _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); } }
  2980. break;
  2981. case "tcData": //腾讯我的资料
  2982. _formdiv = new U.UF.UI.form(
  2983. "我的资料",
  2984. $$("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 }), {
  2985. "id": "tcData",
  2986. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2987. "onresize": function () { }
  2988. }, {
  2989. closecallback: function () { }
  2990. }, { "style": { "height": "36px" } }).form; //创建窗体
  2991. _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); } }
  2992. break;
  2993. case "tcNotice": //腾讯消息通知
  2994. _formdiv = new U.UF.UI.form(
  2995. "消息通知",
  2996. $$("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 }), {
  2997. "id": "tcNotice",
  2998. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2999. "onresize": function () { }
  3000. }, {
  3001. closecallback: function () { }
  3002. }, { "style": { "height": "36px" } }).form; //创建窗体
  3003. _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); } }
  3004. break;
  3005. case "myReport": //好友打开
  3006. _formdiv = new U.UF.UI.form(
  3007. "我的评价",
  3008. $$("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 }), {
  3009. "id": "myReport",
  3010. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3011. "onresize": function () { }
  3012. }, {
  3013. closecallback: function () { }
  3014. }, { "style": { "height": "36px" } }).form; //创建窗体
  3015. _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); } }
  3016. break;
  3017. case "learnAna": //好友打开
  3018. _formdiv = new U.UF.UI.form(
  3019. "学习分析",
  3020. $$("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 }), {
  3021. "id": "learnAna",
  3022. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3023. "onresize": function () { }
  3024. }, {
  3025. closecallback: function () { }
  3026. }, { "style": { "height": "36px" } }).form; //创建窗体
  3027. _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); } }
  3028. break;
  3029. case "AIChat": //AI共创
  3030. _formdiv = new U.UF.UI.form(
  3031. "AI共创",
  3032. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3033. "id": "AIChat",
  3034. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3035. "onresize": function () { }
  3036. }, {
  3037. istop: true,
  3038. closecallback: function () { $("#aichat_icon").remove(); },
  3039. narrowcallback: function () {
  3040. if (!$("#aichat_icon")[0]) {
  3041. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3042. }
  3043. },
  3044. }, { "style": { "height": "36px" } }).form; //创建窗体
  3045. _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); } }
  3046. break;
  3047. case "AIAnalyse": //AI共创
  3048. _formdiv = new U.UF.UI.form(
  3049. "AI分析",
  3050. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3051. "id": "AIAnalyse",
  3052. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3053. "onresize": function () { }
  3054. }, {
  3055. closecallback: function () { }
  3056. }, { "style": { "height": "36px" } }).form; //创建窗体
  3057. _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); } }
  3058. break;
  3059. case "studioCourse": //AI共创
  3060. _formdiv = new U.UF.UI.form(
  3061. "工作管理",
  3062. $$("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 }), {
  3063. "id": "studioCourse",
  3064. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3065. "onresize": function () { }
  3066. }, {
  3067. closecallback: function () { }
  3068. }, { "style": { "height": "36px" } }).form; //创建窗体
  3069. _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); } }
  3070. break;
  3071. case "studioIndex": //AI共创
  3072. _formdiv = new U.UF.UI.form(
  3073. "工作中心",
  3074. $$("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 }), {
  3075. "id": "studioIndex",
  3076. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3077. "onresize": function () { }
  3078. }, {
  3079. closecallback: function () { }
  3080. }, { "style": { "height": "36px" } }).form; //创建窗体
  3081. _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); } }
  3082. break;
  3083. }
  3084. //U.MD.D.I.openClick(str);
  3085. //如果有任务栏信息
  3086. if (_taskbar) {
  3087. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3088. }
  3089. }
  3090. // U.MD.D.I.openClick = function(str){
  3091. // var click = '';
  3092. // switch(str){
  3093. // case 'friend':
  3094. // click = '我的好友';
  3095. // break;
  3096. // case 'domain':
  3097. // click = '域名管理';
  3098. // break;
  3099. // case 'disk':
  3100. // click = '我的云盘';
  3101. // break;
  3102. // case 'word':
  3103. // click = 'Word';
  3104. // break;
  3105. // case 'excel':
  3106. // click = 'Execl';
  3107. // break;
  3108. // case 'txt':
  3109. // click = '文本文件';
  3110. // break;
  3111. // case 'lookupFriend':
  3112. // click = '查找好友';
  3113. // break;
  3114. // case 'ftp':
  3115. // click = 'FTP';
  3116. // break;
  3117. // case 'group':
  3118. // click = '群组';
  3119. // break;
  3120. // case 'set':
  3121. // click = '我的设置';
  3122. // break;
  3123. // case 'systemSet':
  3124. // click = '系统设置';
  3125. // break;
  3126. // case 'boomYun':
  3127. // click = '互联办公';
  3128. // break;
  3129. // case 'xz':
  3130. // click = '云端下载';
  3131. // break;
  3132. // case 'client':
  3133. // click = '有思浏览器';
  3134. // break;
  3135. // case 'backEndProgramming':
  3136. // click = '在线后台编程';
  3137. // break;
  3138. // case 'frontEndProgramming':
  3139. // click = '在线前端编程';
  3140. // break;
  3141. // default: break;
  3142. // }
  3143. // if(U.MD.D.I.Ip && click){
  3144. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3145. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3146. // })
  3147. // }
  3148. // }
  3149. /**
  3150. *函数作用:ajax简易函数,使用post格式
  3151. *@param url {data} 后台地址
  3152. *@param data {data} 参数json
  3153. *@param fn {data} 回调函数
  3154. *
  3155. */
  3156. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3157. // var xhr = new XMLHttpRequest();
  3158. // xhr.open("GET",url,true);
  3159. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3160. // xhr.onreadystatechange = function(){
  3161. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3162. // fn.call(this,xhr.responseText);
  3163. // }
  3164. // };
  3165. // xhr.send();
  3166. // }
  3167. /*判断是否是内网IP*/
  3168. // U.MD.D.I.isInnerIPFn = function(str){
  3169. // var curPageUrl = str;
  3170. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3171. // curPageUrl =curPageUrl.replace(reg1,'');
  3172. // // console.log('curPageUrl-1 '+curPageUrl);
  3173. // var reg2 = /\:+/g;//替换冒号为一点
  3174. // curPageUrl =curPageUrl.replace(reg2,'.');
  3175. // // console.log('curPageUrl-2 '+curPageUrl);
  3176. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3177. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3178. // if(curPageUrl[2] != '16'){
  3179. // return ipAddress;
  3180. // }else{
  3181. // return false;
  3182. // }
  3183. // }
  3184. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3185. // //compatibility for firefox and chrome
  3186. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3187. // var pc = new myPeerConnection({
  3188. // iceServers: []
  3189. // }),
  3190. // noop = function() {},
  3191. // localIPs = {},
  3192. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3193. // key;
  3194. // function iterateIP(ip) {
  3195. // if (!localIPs[ip]) onNewIP(ip);
  3196. // localIPs[ip] = true;
  3197. // }
  3198. // //create a bogus data channel
  3199. // pc.createDataChannel("");
  3200. // // create offer and set local description
  3201. // pc.createOffer().then(function(sdp) {
  3202. // sdp.sdp.split('\n').forEach(function(line) {
  3203. // if (line.indexOf('candidate') < 0) return;
  3204. // line.match(ipRegex).forEach(iterateIP);
  3205. // });
  3206. // pc.setLocalDescription(sdp, noop, noop);
  3207. // }).catch(function(reason) {
  3208. // // An error occurred, so handle the failure to connect
  3209. // });
  3210. // //sten for candidate events
  3211. // pc.onicecandidate = function(ice) {
  3212. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3213. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3214. // };
  3215. // }
  3216. // U.MD.D.I.getUserIpBool = function(callback){
  3217. // U.MD.D.I.getUserIP(function(ip){
  3218. // alert("Got IP! :" + ip);
  3219. // });
  3220. //}
  3221. //#endregion
  3222. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3223. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3224. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3225. _userinfo = US.userInfo, //登录用户信息
  3226. _userid = US.userInfo.userid //登录用户id
  3227. let _iframe;
  3228. let _cid = cid,
  3229. _stage = stage,
  3230. _task = task,
  3231. _tool = tool;
  3232. var _jie = $$("div", {
  3233. "style": {
  3234. "position": "absolute",
  3235. "bottom": "50px",
  3236. "right": "50px",
  3237. "zIndex": "9999",
  3238. "backgroundColor": "#2268bc",
  3239. "color": "#fff",
  3240. "padding": "12px 20px",
  3241. "cursor": "pointer",
  3242. "borderRadius": "4px",
  3243. },
  3244. "innerHTML": "提交作业"
  3245. })
  3246. let aTool = ''
  3247. let _loading = document.createElement('div')
  3248. _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;"
  3249. // _loading.id = "";
  3250. let _lchild = document.createElement('div')
  3251. let _limg = document.createElement('img')
  3252. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3253. _limg.style = "width: 26px;margin-right: 10px;"
  3254. _lchild.appendChild(_limg)
  3255. let _lspan = document.createElement('span')
  3256. _lspan.innerHTML = "上传中..."
  3257. _lchild.appendChild(_lspan)
  3258. _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%);"
  3259. _loading.appendChild(_lchild)
  3260. var _box = $$('div', {
  3261. "style": {
  3262. "position": "relative",
  3263. "width": "100%",
  3264. "height": "100%",
  3265. },
  3266. })
  3267. _box.appendChild(_loading)
  3268. _box.id = str + '_loadLi'
  3269. switch (str) {
  3270. case "whiteboard":
  3271. aTool = 1;
  3272. _iframe = $$("iframe", {
  3273. "frameborder": "no",
  3274. "border": "0",
  3275. "scrolling ": "no",
  3276. "style": {
  3277. "cssText": "border:0;width:100%;height:100%"
  3278. },
  3279. "src": "https://iwb.cocorobo.cn/"
  3280. })
  3281. _box.appendChild(_iframe);
  3282. _box.appendChild(_jie);
  3283. _formdiv = new U.UF.UI.form(
  3284. "电子白板",
  3285. _box, {
  3286. "id": "whiteboard" + cid + stage + task + tool,
  3287. "style": {
  3288. "width": "90%",
  3289. "height": "90%",
  3290. "overflow": 'hidden'
  3291. },
  3292. "onresize": function () { }
  3293. }, {
  3294. closecallback: function () { }
  3295. }, {
  3296. "style": {
  3297. "height": "36px"
  3298. }
  3299. }).form; //创建窗体
  3300. _taskbar = {
  3301. "id": str + _formdiv.id,
  3302. "style": {
  3303. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3304. },
  3305. "name": "电子白板",
  3306. "forms": _formdiv,
  3307. "click": function () {
  3308. U.MD.D.I.openApplication(str, obj, info);
  3309. }
  3310. }
  3311. break;
  3312. case "mind":
  3313. aTool = 3;
  3314. _iframe = $$("iframe", {
  3315. "frameborder": "no",
  3316. "border": "0",
  3317. "scrolling ": "no",
  3318. "style": {
  3319. "cssText": "border:0;width:100%;height:100%"
  3320. },
  3321. "src": "/kityminder-editor/dist/index.html"
  3322. })
  3323. _box.appendChild(_iframe);
  3324. _box.appendChild(_jie);
  3325. _formdiv = new U.UF.UI.form(
  3326. "思维导图",
  3327. _box, { //"/jsmind/example/demo.html"
  3328. "id": "mind" + cid + stage + task + tool,
  3329. "style": {
  3330. "width": "90%",
  3331. "height": "90%",
  3332. "overflow": 'hidden'
  3333. },
  3334. "onresize": function () { }
  3335. }, {
  3336. closecallback: function () { }
  3337. }, {
  3338. "style": {
  3339. "height": "36px"
  3340. }
  3341. }).form; //创建窗体
  3342. _taskbar = {
  3343. "id": str + _formdiv.id,
  3344. "style": {
  3345. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3346. },
  3347. "name": "思维导图",
  3348. "forms": _formdiv,
  3349. "click": function () {
  3350. U.MD.D.I.openApplication(str, obj, info);
  3351. }
  3352. }
  3353. break;
  3354. case "MindMap":
  3355. aTool = 3;
  3356. _iframe = $$("iframe", {
  3357. "frameborder": "no",
  3358. "border": "0",
  3359. "scrolling ": "no",
  3360. "style": {
  3361. "cssText": "border:0;width:100%;height:100%"
  3362. },
  3363. "src": "//cloud.cocorobo.cn/mind/"
  3364. })
  3365. _box.appendChild(_iframe);
  3366. _box.appendChild(_jie);
  3367. _formdiv = new U.UF.UI.form(
  3368. "思维导图",
  3369. _box, { //"/jsmind/example/demo.html"
  3370. "id": "mind" + cid + stage + task + tool,
  3371. "style": {
  3372. "width": "90%",
  3373. "height": "90%",
  3374. "overflow": 'hidden'
  3375. },
  3376. "onresize": function () { }
  3377. }, {
  3378. closecallback: function () { }
  3379. }, {
  3380. "style": {
  3381. "height": "36px"
  3382. }
  3383. }).form; //创建窗体
  3384. _taskbar = {
  3385. "id": str + _formdiv.id,
  3386. "style": {
  3387. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3388. },
  3389. "name": "思维导图",
  3390. "forms": _formdiv,
  3391. "click": function () {
  3392. U.MD.D.I.openApplication(str, obj, info);
  3393. }
  3394. }
  3395. break;
  3396. case "doc":
  3397. aTool = 6;
  3398. _iframe = $$("iframe", {
  3399. "frameborder": "no",
  3400. "border": "0",
  3401. "scrolling ": "no",
  3402. "style": {
  3403. "cssText": "border:0;width:100%;height:100%"
  3404. },
  3405. "src": "/Office/Word/WordEditArea.htm"
  3406. })
  3407. _box.appendChild(_iframe);
  3408. _box.appendChild(_jie);
  3409. _formdiv = new U.UF.UI.form(
  3410. "协同文档",
  3411. _box, {
  3412. "id": "doc" + cid + stage + task + tool,
  3413. "style": {
  3414. "width": "90%",
  3415. "height": "90%",
  3416. "overflow": 'hidden'
  3417. },
  3418. "onresize": function () { }
  3419. }, {
  3420. closecallback: function () { }
  3421. }, {
  3422. "style": {
  3423. "height": "36px"
  3424. }
  3425. }).form; //创建窗体
  3426. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3427. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3428. })
  3429. _taskbar = {
  3430. "id": str + _formdiv.id,
  3431. "style": {
  3432. "backgroundImage": "url(/img/icon/doc.png)"
  3433. },
  3434. "name": "协同文档",
  3435. "forms": _formdiv,
  3436. "click": function () {
  3437. U.MD.D.I.openApplication(str, obj, info);
  3438. }
  3439. }
  3440. break;
  3441. case "mindNetwork": //好友打开
  3442. aTool = 7;
  3443. _iframe = $$("iframe", {
  3444. "webkitallowfullscreen": "",
  3445. "mozallowfullscreen": "",
  3446. "allowfullscreen": "",
  3447. "frameborder": "no",
  3448. "border": "0",
  3449. "scrolling ": "no",
  3450. "style": {
  3451. "cssText": "border:0; width:100%; height:100%;"
  3452. },
  3453. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3454. })
  3455. _box.appendChild(_iframe);
  3456. _box.appendChild(_jie);
  3457. _formdiv = new U.UF.UI.form(
  3458. "思维网格",
  3459. _box, {
  3460. "id": "mindNetwork" + cid + stage + task + tool,
  3461. "style": {
  3462. "width": "90%",
  3463. "height": "90%",
  3464. "overflow": 'hidden'
  3465. },
  3466. "onresize": function () { }
  3467. }, {
  3468. closecallback: function () { }
  3469. }, {
  3470. "style": {
  3471. "height": "36px"
  3472. }
  3473. }).form; //创建窗体
  3474. _taskbar = {
  3475. "id": str + _formdiv.id,
  3476. "style": {
  3477. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3478. },
  3479. "name": "思维网格",
  3480. "forms": _formdiv,
  3481. "click": function () {
  3482. U.MD.D.I.openApplication(str, obj, info);
  3483. }
  3484. }
  3485. break;
  3486. case "courseDesign":
  3487. _iframe = $$("iframe", {
  3488. "webkitallowfullscreen": "",
  3489. "mozallowfullscreen": "",
  3490. "allowfullscreen": "",
  3491. "frameborder": "no",
  3492. "border": "0",
  3493. "scrolling ": "no",
  3494. "style": {
  3495. "cssText": "border:0; width:100%; height:100%;"
  3496. },
  3497. "src": "/course-design-vue"
  3498. })
  3499. _box.appendChild(_iframe);
  3500. _box.appendChild(_jie);
  3501. _formdiv = new U.UF.UI.form(
  3502. "项目设计",
  3503. _box, {
  3504. "id": "courseDesign" + cid + stage + task + tool,
  3505. "style": {
  3506. "width": "90%",
  3507. "height": "90%",
  3508. "overflow": 'hidden'
  3509. },
  3510. "onresize": function () { }
  3511. }, {
  3512. closecallback: function () { }
  3513. }, {
  3514. "style": {
  3515. "height": "36px"
  3516. }
  3517. }).form; //创建窗体
  3518. _taskbar = {
  3519. "id": str + _formdiv.id,
  3520. "style": {
  3521. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3522. },
  3523. "name": "项目设计",
  3524. "forms": _formdiv,
  3525. "click": function () {
  3526. U.MD.D.I.openApplication(str, obj, info);
  3527. }
  3528. }
  3529. break;
  3530. }
  3531. const script1 = document.createElement("script");
  3532. script1.type = "text/javascript";
  3533. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3534. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3535. const script2 = document.createElement("script");
  3536. script2.type = "text/javascript";
  3537. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3538. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3539. const script3 = document.createElement("script");
  3540. script3.type = "text/javascript";
  3541. script3.charset = "UTF-8";
  3542. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3543. const script4 = document.createElement("script");
  3544. script4.type = "text/javascript";
  3545. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3546. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3547. if (_iframe) {
  3548. if (str == 'doc') {
  3549. _iframe = _formdiv.querySelector('iframe')
  3550. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3551. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3552. _iframe.contentWindow.document.body.appendChild(script1);
  3553. _iframe.contentWindow.document.body.appendChild(script2);
  3554. // _iframe.contentWindow.document.body.appendChild(script3);
  3555. _iframe.contentWindow.document.body.appendChild(script4);
  3556. })
  3557. if (onloadListener) {
  3558. _iframe.contentDocument.location.reload()
  3559. } else {
  3560. _iframe.contentDocument.location.reload()
  3561. }
  3562. } else if (str == 'courseDesign') {
  3563. U.UF.DL.iframeLoad(_iframe, function () {
  3564. // _iframe.contentWindow.U.MD.O.W.load();
  3565. // _iframe.contentWindow.document.body.appendChild(script1);
  3566. _iframe.contentWindow.document.body.appendChild(script2);
  3567. _iframe.contentWindow.document.body.appendChild(script4);
  3568. })
  3569. } else if (str == 'mind') {
  3570. _iframe = _formdiv.querySelector('iframe')
  3571. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3572. //
  3573. _iframe.contentWindow.document.body.appendChild(script1);
  3574. _iframe.contentWindow.document.body.appendChild(script2);
  3575. _iframe.contentWindow.document.body.appendChild(script4);
  3576. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3577. })
  3578. if (onloadListener) {
  3579. _iframe.contentDocument.location.reload()
  3580. } else {
  3581. _iframe.contentDocument.location.reload()
  3582. }
  3583. } else if (str == 'whiteboard') {
  3584. _iframe = _formdiv.querySelector('iframe')
  3585. let onloadListener = _iframe.onload = () => {
  3586. _iframe.contentWindow.document.body.appendChild(script1);
  3587. _iframe.contentWindow.document.body.appendChild(script2);
  3588. _iframe.contentWindow.document.body.appendChild(script4);
  3589. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3590. };
  3591. if (onloadListener) {
  3592. _iframe.contentDocument.location.reload()
  3593. } else {
  3594. _iframe.contentDocument.location.reload()
  3595. }
  3596. } else {
  3597. _iframe.onload = () => {
  3598. _iframe.contentWindow.document.body.appendChild(script1);
  3599. _iframe.contentWindow.document.body.appendChild(script2);
  3600. // _iframe.contentWindow.document.body.appendChild(script3);
  3601. _iframe.contentWindow.document.body.appendChild(script4);
  3602. };
  3603. }
  3604. _jie.onclick = async () => {
  3605. let text = ''
  3606. if (aTool == 1) {
  3607. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3608. } else if (aTool == 6) {
  3609. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3610. } else if (aTool == 3) {
  3611. text = await U.MD.D.I.getEditorContent(_iframe);
  3612. }
  3613. _loading.style.display = 'flex'
  3614. console.log(_loading);
  3615. var _ajs = _iframe.contentWindow.document.createElement("script");
  3616. _ajs.type = "text/javascript";
  3617. _ajs.innerHTML =
  3618. // 'console.log(' + _loading + ');\n' +
  3619. 'var _js = document.createElement("script");\n' +
  3620. '_js.type="text/javascript";\n' +
  3621. '_js.charset="UTF-8";\n' +
  3622. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3623. "_js.onload = function(){\n" +
  3624. ' var a = document.getElementsByTagName("img")\n' +
  3625. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3626. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3627. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3628. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3629. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3630. "beforeUpload_shishi(file," +
  3631. "'" +
  3632. _userid +
  3633. "'" +
  3634. ", " +
  3635. "'" +
  3636. _cid +
  3637. "'" +
  3638. ", " +
  3639. "'" +
  3640. _stage +
  3641. "'" +
  3642. ", " +
  3643. "'" +
  3644. _task +
  3645. "'" +
  3646. ", " +
  3647. "'" +
  3648. _tool +
  3649. "'" +
  3650. ", " +
  3651. "'" +
  3652. str + '_loadLi' +
  3653. "'" +
  3654. ", " +
  3655. "'" +
  3656. aTool +
  3657. "'" +
  3658. ", " +
  3659. "`" +
  3660. text +
  3661. "`" +
  3662. ")\n" +
  3663. " });\n" +
  3664. "}\n" +
  3665. "document.head.appendChild(_js);\n";
  3666. _iframe.contentWindow.document.head.appendChild(_ajs);
  3667. }
  3668. }
  3669. //U.MD.D.I.openClick(str);
  3670. //如果有任务栏信息
  3671. // if (_taskbar) {
  3672. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3673. // }
  3674. }
  3675. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  3676. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3677. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3678. _userid = student.userid, //登录用户id
  3679. _username = student.student //用户名字
  3680. let _iframe;
  3681. let _cid = cid,
  3682. _stage = stage,
  3683. _task = task,
  3684. _tool = tool;
  3685. var _jie = $$("div", {
  3686. "style": {
  3687. "position": "absolute",
  3688. "bottom": "50px",
  3689. "right": "50px",
  3690. "zIndex": "9999",
  3691. "backgroundColor": "#2268bc",
  3692. "color": "#fff",
  3693. "padding": "12px 20px",
  3694. "cursor": "pointer",
  3695. "borderRadius": "4px",
  3696. },
  3697. "innerHTML": "提交作业"
  3698. })
  3699. let aTool = ''
  3700. let _loading = document.createElement('div')
  3701. _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;"
  3702. // _loading.id = "";
  3703. let _lchild = document.createElement('div')
  3704. let _limg = document.createElement('img')
  3705. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3706. _limg.style = "width: 26px;margin-right: 10px;"
  3707. _lchild.appendChild(_limg)
  3708. let _lspan = document.createElement('span')
  3709. _lspan.innerHTML = "上传中..."
  3710. _lchild.appendChild(_lspan)
  3711. _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%);"
  3712. _loading.appendChild(_lchild)
  3713. var _box = $$('div', {
  3714. "style": {
  3715. "position": "relative",
  3716. "width": "100%",
  3717. "height": "100%",
  3718. },
  3719. })
  3720. _box.appendChild(_loading)
  3721. _box.id = str + '_loadLi' + _userid
  3722. switch (str) {
  3723. case "whiteboard":
  3724. aTool = 1;
  3725. _iframe = $$("iframe", {
  3726. "frameborder": "no",
  3727. "border": "0",
  3728. "scrolling ": "no",
  3729. "style": {
  3730. "cssText": "border:0;width:100%;height:100%"
  3731. },
  3732. "src": "https://iwb.cocorobo.cn/"
  3733. })
  3734. _box.appendChild(_iframe);
  3735. _box.appendChild(_jie);
  3736. _formdiv = new U.UF.UI.form(
  3737. "电子白板-" + _username,
  3738. _box, {
  3739. "id": "whiteboard" + cid + stage + task + tool + _userid,
  3740. "style": {
  3741. "width": "90%",
  3742. "height": "90%",
  3743. "overflow": 'hidden'
  3744. },
  3745. "onresize": function () { }
  3746. }, {
  3747. closecallback: function () { }
  3748. }, {
  3749. "style": {
  3750. "height": "36px"
  3751. }
  3752. }).form; //创建窗体
  3753. _taskbar = {
  3754. "id": str + _formdiv.id,
  3755. "style": {
  3756. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3757. },
  3758. "name": "电子白板",
  3759. "forms": _formdiv,
  3760. "click": function () {
  3761. U.MD.D.I.openApplication(str, obj, info);
  3762. }
  3763. }
  3764. break;
  3765. case "mind":
  3766. aTool = 3;
  3767. _iframe = $$("iframe", {
  3768. "frameborder": "no",
  3769. "border": "0",
  3770. "scrolling ": "no",
  3771. "style": {
  3772. "cssText": "border:0;width:100%;height:100%"
  3773. },
  3774. "src": "/kityminder-editor/dist/index.html"
  3775. })
  3776. _box.appendChild(_iframe);
  3777. _box.appendChild(_jie);
  3778. _formdiv = new U.UF.UI.form(
  3779. "思维导图-" + _username,
  3780. _box, { //"/jsmind/example/demo.html"
  3781. "id": "mind" + cid + stage + task + tool + _userid,
  3782. "style": {
  3783. "width": "90%",
  3784. "height": "90%",
  3785. "overflow": 'hidden'
  3786. },
  3787. "onresize": function () { }
  3788. }, {
  3789. closecallback: function () { }
  3790. }, {
  3791. "style": {
  3792. "height": "36px"
  3793. }
  3794. }).form; //创建窗体
  3795. _taskbar = {
  3796. "id": str + _formdiv.id,
  3797. "style": {
  3798. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3799. },
  3800. "name": "思维导图",
  3801. "forms": _formdiv,
  3802. "click": function () {
  3803. U.MD.D.I.openApplication(str, obj, info);
  3804. }
  3805. }
  3806. break;
  3807. case "MindMap":
  3808. aTool = 3;
  3809. _iframe = $$("iframe", {
  3810. "frameborder": "no",
  3811. "border": "0",
  3812. "scrolling ": "no",
  3813. "style": {
  3814. "cssText": "border:0;width:100%;height:100%"
  3815. },
  3816. "src": "//cloud.cocorobo.cn/mind/"
  3817. })
  3818. _box.appendChild(_iframe);
  3819. _box.appendChild(_jie);
  3820. _formdiv = new U.UF.UI.form(
  3821. "思维导图-" + _username,
  3822. _box, { //"/jsmind/example/demo.html"
  3823. "id": "mind" + cid + stage + task + tool + _userid,
  3824. "style": {
  3825. "width": "90%",
  3826. "height": "90%",
  3827. "overflow": 'hidden'
  3828. },
  3829. "onresize": function () { }
  3830. }, {
  3831. closecallback: function () { }
  3832. }, {
  3833. "style": {
  3834. "height": "36px"
  3835. }
  3836. }).form; //创建窗体
  3837. _taskbar = {
  3838. "id": str + _formdiv.id,
  3839. "style": {
  3840. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3841. },
  3842. "name": "思维导图",
  3843. "forms": _formdiv,
  3844. "click": function () {
  3845. U.MD.D.I.openApplication(str, obj, info);
  3846. }
  3847. }
  3848. break;
  3849. case "doc":
  3850. aTool = 6;
  3851. _iframe = $$("iframe", {
  3852. "frameborder": "no",
  3853. "border": "0",
  3854. "scrolling ": "no",
  3855. "style": {
  3856. "cssText": "border:0;width:100%;height:100%"
  3857. },
  3858. "src": "/Office/Word/WordEditArea.htm"
  3859. })
  3860. _box.appendChild(_iframe);
  3861. _box.appendChild(_jie);
  3862. _formdiv = new U.UF.UI.form(
  3863. "协同文档-" + _username,
  3864. _box, {
  3865. "id": "doc" + cid + stage + task + tool + _userid,
  3866. "style": {
  3867. "width": "90%",
  3868. "height": "90%",
  3869. "overflow": 'hidden'
  3870. },
  3871. "onresize": function () { }
  3872. }, {
  3873. closecallback: function () { }
  3874. }, {
  3875. "style": {
  3876. "height": "36px"
  3877. }
  3878. }).form; //创建窗体
  3879. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3880. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3881. })
  3882. _taskbar = {
  3883. "id": str + _formdiv.id,
  3884. "style": {
  3885. "backgroundImage": "url(/img/icon/doc.png)"
  3886. },
  3887. "name": "协同文档",
  3888. "forms": _formdiv,
  3889. "click": function () {
  3890. U.MD.D.I.openApplication(str, obj, info);
  3891. }
  3892. }
  3893. break;
  3894. case "mindNetwork": //好友打开
  3895. aTool = 7;
  3896. _iframe = $$("iframe", {
  3897. "webkitallowfullscreen": "",
  3898. "mozallowfullscreen": "",
  3899. "allowfullscreen": "",
  3900. "frameborder": "no",
  3901. "border": "0",
  3902. "scrolling ": "no",
  3903. "style": {
  3904. "cssText": "border:0; width:100%; height:100%;"
  3905. },
  3906. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3907. })
  3908. _box.appendChild(_iframe);
  3909. _box.appendChild(_jie);
  3910. _formdiv = new U.UF.UI.form(
  3911. "思维网格-" + _username,
  3912. _box, {
  3913. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  3914. "style": {
  3915. "width": "90%",
  3916. "height": "90%",
  3917. "overflow": 'hidden'
  3918. },
  3919. "onresize": function () { }
  3920. }, {
  3921. closecallback: function () { }
  3922. }, {
  3923. "style": {
  3924. "height": "36px"
  3925. }
  3926. }).form; //创建窗体
  3927. _taskbar = {
  3928. "id": str + _formdiv.id,
  3929. "style": {
  3930. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3931. },
  3932. "name": "思维网格",
  3933. "forms": _formdiv,
  3934. "click": function () {
  3935. U.MD.D.I.openApplication(str, obj, info);
  3936. }
  3937. }
  3938. break;
  3939. case "courseDesign":
  3940. _iframe = $$("iframe", {
  3941. "webkitallowfullscreen": "",
  3942. "mozallowfullscreen": "",
  3943. "allowfullscreen": "",
  3944. "frameborder": "no",
  3945. "border": "0",
  3946. "scrolling ": "no",
  3947. "style": {
  3948. "cssText": "border:0; width:100%; height:100%;"
  3949. },
  3950. "src": "/course-design-vue"
  3951. })
  3952. _box.appendChild(_iframe);
  3953. _box.appendChild(_jie);
  3954. _formdiv = new U.UF.UI.form(
  3955. "项目设计-" + _username,
  3956. _box, {
  3957. "id": "courseDesign" + cid + stage + task + tool + _userid,
  3958. "style": {
  3959. "width": "90%",
  3960. "height": "90%",
  3961. "overflow": 'hidden'
  3962. },
  3963. "onresize": function () { }
  3964. }, {
  3965. closecallback: function () { }
  3966. }, {
  3967. "style": {
  3968. "height": "36px"
  3969. }
  3970. }).form; //创建窗体
  3971. _taskbar = {
  3972. "id": str + _formdiv.id,
  3973. "style": {
  3974. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3975. },
  3976. "name": "项目设计",
  3977. "forms": _formdiv,
  3978. "click": function () {
  3979. U.MD.D.I.openApplication(str, obj, info);
  3980. }
  3981. }
  3982. break;
  3983. }
  3984. const script1 = document.createElement("script");
  3985. script1.type = "text/javascript";
  3986. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3987. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3988. const script2 = document.createElement("script");
  3989. script2.type = "text/javascript";
  3990. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3991. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3992. const script3 = document.createElement("script");
  3993. script3.type = "text/javascript";
  3994. script3.charset = "UTF-8";
  3995. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3996. const script4 = document.createElement("script");
  3997. script4.type = "text/javascript";
  3998. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3999. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4000. if (_iframe) {
  4001. if (str == 'doc') {
  4002. _iframe = _formdiv.querySelector('iframe')
  4003. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4004. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4005. _iframe.contentWindow.document.body.appendChild(script1);
  4006. _iframe.contentWindow.document.body.appendChild(script2);
  4007. // _iframe.contentWindow.document.body.appendChild(script3);
  4008. _iframe.contentWindow.document.body.appendChild(script4);
  4009. })
  4010. if (onloadListener) {
  4011. _iframe.contentDocument.location.reload()
  4012. } else {
  4013. _iframe.contentDocument.location.reload()
  4014. }
  4015. } else if (str == 'courseDesign') {
  4016. U.UF.DL.iframeLoad(_iframe, function () {
  4017. // _iframe.contentWindow.U.MD.O.W.load();
  4018. // _iframe.contentWindow.document.body.appendChild(script1);
  4019. _iframe.contentWindow.document.body.appendChild(script2);
  4020. _iframe.contentWindow.document.body.appendChild(script4);
  4021. })
  4022. } else if (str == 'mind') {
  4023. _iframe = _formdiv.querySelector('iframe')
  4024. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4025. //
  4026. _iframe.contentWindow.document.body.appendChild(script1);
  4027. _iframe.contentWindow.document.body.appendChild(script2);
  4028. _iframe.contentWindow.document.body.appendChild(script4);
  4029. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4030. })
  4031. if (onloadListener) {
  4032. _iframe.contentDocument.location.reload()
  4033. } else {
  4034. _iframe.contentDocument.location.reload()
  4035. }
  4036. } else if (str == 'whiteboard') {
  4037. _iframe = _formdiv.querySelector('iframe')
  4038. let onloadListener = _iframe.onload = () => {
  4039. _iframe.contentWindow.document.body.appendChild(script1);
  4040. _iframe.contentWindow.document.body.appendChild(script2);
  4041. _iframe.contentWindow.document.body.appendChild(script4);
  4042. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4043. };
  4044. if (onloadListener) {
  4045. _iframe.contentDocument.location.reload()
  4046. } else {
  4047. _iframe.contentDocument.location.reload()
  4048. }
  4049. } else {
  4050. _iframe.onload = () => {
  4051. _iframe.contentWindow.document.body.appendChild(script1);
  4052. _iframe.contentWindow.document.body.appendChild(script2);
  4053. // _iframe.contentWindow.document.body.appendChild(script3);
  4054. _iframe.contentWindow.document.body.appendChild(script4);
  4055. };
  4056. }
  4057. _jie.onclick = async () => {
  4058. let text = ''
  4059. if (aTool == 1) {
  4060. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4061. } else if (aTool == 6) {
  4062. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4063. } else if (aTool == 3) {
  4064. text = await U.MD.D.I.getEditorContent(_iframe);
  4065. }
  4066. _loading.style.display = 'flex'
  4067. console.log(_loading);
  4068. var _ajs = _iframe.contentWindow.document.createElement("script");
  4069. _ajs.type = "text/javascript";
  4070. _ajs.innerHTML =
  4071. // 'console.log(' + _loading + ');\n' +
  4072. 'var _js = document.createElement("script");\n' +
  4073. '_js.type="text/javascript";\n' +
  4074. '_js.charset="UTF-8";\n' +
  4075. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4076. "_js.onload = function(){\n" +
  4077. ' var a = document.getElementsByTagName("img")\n' +
  4078. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4079. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4080. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4081. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4082. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4083. "beforeUpload_shishi(file," +
  4084. "'" +
  4085. _userid +
  4086. "'" +
  4087. ", " +
  4088. "'" +
  4089. _cid +
  4090. "'" +
  4091. ", " +
  4092. "'" +
  4093. _stage +
  4094. "'" +
  4095. ", " +
  4096. "'" +
  4097. _task +
  4098. "'" +
  4099. ", " +
  4100. "'" +
  4101. _tool +
  4102. "'" +
  4103. ", " +
  4104. "'" +
  4105. str + '_loadLi' + _userid +
  4106. "'" +
  4107. ", " +
  4108. "'" +
  4109. aTool +
  4110. "'" +
  4111. ", " +
  4112. "`" +
  4113. text +
  4114. "`" +
  4115. ")\n" +
  4116. " });\n" +
  4117. "}\n" +
  4118. "document.head.appendChild(_js);\n";
  4119. _iframe.contentWindow.document.head.appendChild(_ajs);
  4120. }
  4121. }
  4122. }
  4123. U.MD.D.I.getEditorContent = function (iframe) {
  4124. return new Promise((resolve, reject) => {
  4125. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  4126. console.log(content);
  4127. resolve(content)
  4128. });
  4129. });
  4130. }
  4131. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  4132. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  4133. // if (res.value[0].length > 0) {
  4134. // // resolve(res.value[0][0].text);
  4135. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  4136. // $(fileInput).val('');
  4137. // });
  4138. // }
  4139. // }, [], { "type": "GET", "withCredentials": true });
  4140. var xmlhttp;
  4141. var Mac, Sn, DeviceId
  4142. if (window.XMLHttpRequest) {
  4143. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  4144. xmlhttp = new XMLHttpRequest();
  4145. }
  4146. else {
  4147. // IE6, IE5 浏览器执行代码
  4148. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  4149. }
  4150. xmlhttp.onreadystatechange = function () {
  4151. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  4152. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  4153. // resolve(res.value[0][0].text);
  4154. if (type == '2') {
  4155. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  4156. $(fileInput).val('');
  4157. });
  4158. } else if (type == '3') {
  4159. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  4160. }
  4161. } else {
  4162. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  4163. }
  4164. }
  4165. }
  4166. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  4167. xmlhttp.send();
  4168. }
  4169. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  4170. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4171. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4172. _userinfo = US.userInfo, //登录用户信息
  4173. _userid = US.userInfo.userid //登录用户id
  4174. let _iframe;
  4175. let _cid = cid,
  4176. _stage = stage,
  4177. _task = task,
  4178. _tool = tool;
  4179. var _jie = $$("div", {
  4180. "style": {
  4181. "position": "absolute",
  4182. "bottom": "50px",
  4183. "right": "50px",
  4184. "zIndex": "9999",
  4185. "backgroundColor": "#2268bc",
  4186. "color": "#fff",
  4187. "padding": "12px 20px",
  4188. "cursor": "pointer",
  4189. "borderRadius": "4px",
  4190. },
  4191. "innerHTML": "确认并提交"
  4192. })
  4193. let aTool = ''
  4194. let _loading = document.createElement('div')
  4195. _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;"
  4196. // _loading.id = "";
  4197. let _lchild = document.createElement('div')
  4198. let _limg = document.createElement('img')
  4199. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4200. _limg.style = "width: 26px;margin-right: 10px;"
  4201. _lchild.appendChild(_limg)
  4202. let _lspan = document.createElement('span')
  4203. _lspan.innerHTML = "上传中..."
  4204. _lchild.appendChild(_lspan)
  4205. _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%);"
  4206. _loading.appendChild(_lchild)
  4207. var _box = $$('div', {
  4208. "style": {
  4209. "position": "relative",
  4210. "width": "100%",
  4211. "height": "100%",
  4212. },
  4213. })
  4214. _box.appendChild(_loading)
  4215. _box.id = str + '_loadLi'
  4216. switch (str) {
  4217. case "whiteboard":
  4218. aTool = 1;
  4219. _iframe = $$("iframe", {
  4220. "frameborder": "no",
  4221. "border": "0",
  4222. "scrolling ": "no",
  4223. "style": {
  4224. "cssText": "border:0;width:100%;height:100%"
  4225. },
  4226. "src": "https://iwb.cocorobo.cn/"
  4227. })
  4228. _box.appendChild(_iframe);
  4229. _box.appendChild(_jie);
  4230. _formdiv = new U.UF.UI.form(
  4231. "电子白板",
  4232. _box, {
  4233. "id": "whiteboards" + cid + stage + task + tool,
  4234. "style": {
  4235. "width": "90%",
  4236. "height": "90%",
  4237. "overflow": 'hidden'
  4238. },
  4239. "onresize": function () { }
  4240. }, {
  4241. closecallback: function () { }
  4242. }, {
  4243. "style": {
  4244. "height": "36px"
  4245. }
  4246. }).form; //创建窗体
  4247. _taskbar = {
  4248. "id": str + _formdiv.id,
  4249. "style": {
  4250. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4251. },
  4252. "name": "电子白板",
  4253. "forms": _formdiv,
  4254. "click": function () {
  4255. U.MD.D.I.openApplication(str, obj, info);
  4256. }
  4257. }
  4258. break;
  4259. case "mind":
  4260. aTool = 3;
  4261. _iframe = $$("iframe", {
  4262. "frameborder": "no",
  4263. "border": "0",
  4264. "scrolling ": "no",
  4265. "style": {
  4266. "cssText": "border:0;width:100%;height:100%"
  4267. },
  4268. "src": "/kityminder-editor/dist/index.html"
  4269. });
  4270. _box.appendChild(_iframe);
  4271. _box.appendChild(_jie);
  4272. _formdiv = new U.UF.UI.form(
  4273. "思维导图",
  4274. _box, { //"/jsmind/example/demo.html"
  4275. "id": "minds" + cid + stage + task + tool,
  4276. "style": {
  4277. "width": "90%",
  4278. "height": "90%",
  4279. "overflow": 'hidden'
  4280. },
  4281. "onresize": function () { }
  4282. }, {
  4283. closecallback: function () { }
  4284. }, {
  4285. "style": {
  4286. "height": "36px"
  4287. }
  4288. }).form; //创建窗体
  4289. _taskbar = {
  4290. "id": str + _formdiv.id,
  4291. "style": {
  4292. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4293. },
  4294. "name": "思维导图",
  4295. "forms": _formdiv,
  4296. "click": function () {
  4297. U.MD.D.I.openApplication(str, obj, info);
  4298. }
  4299. }
  4300. break;
  4301. case "doc":
  4302. aTool = 6;
  4303. _iframe = $$("iframe", {
  4304. "frameborder": "no",
  4305. "border": "0",
  4306. "scrolling ": "no",
  4307. "style": {
  4308. "cssText": "border:0;width:100%;height:100%"
  4309. },
  4310. "src": "/Office/Word/WordEditArea.htm"
  4311. })
  4312. _box.appendChild(_iframe);
  4313. _box.appendChild(_jie);
  4314. _formdiv = new U.UF.UI.form(
  4315. "协同文档",
  4316. _box, {
  4317. "id": "docs" + cid + stage + task + tool,
  4318. "style": {
  4319. "width": "90%",
  4320. "height": "90%",
  4321. "overflow": 'hidden'
  4322. },
  4323. "onresize": function () { }
  4324. }, {
  4325. closecallback: function () { }
  4326. }, {
  4327. "style": {
  4328. "height": "36px"
  4329. }
  4330. }).form; //创建窗体
  4331. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4332. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4333. })
  4334. _taskbar = {
  4335. "id": str + _formdiv.id,
  4336. "style": {
  4337. "backgroundImage": "url(/img/icon/doc.png)"
  4338. },
  4339. "name": "协同文档",
  4340. "forms": _formdiv,
  4341. "click": function () {
  4342. U.MD.D.I.openApplication(str, obj, info);
  4343. }
  4344. }
  4345. break;
  4346. }
  4347. const script1 = document.createElement("script");
  4348. script1.type = "text/javascript";
  4349. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4350. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4351. const script2 = document.createElement("script");
  4352. script2.type = "text/javascript";
  4353. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4354. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4355. const script3 = document.createElement("script");
  4356. script3.type = "text/javascript";
  4357. script3.charset = "UTF-8";
  4358. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4359. const script4 = document.createElement("script");
  4360. script4.type = "text/javascript";
  4361. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  4362. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  4363. if (_iframe) {
  4364. if (str == 'doc') {
  4365. _iframe = _formdiv.querySelector('iframe')
  4366. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4367. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4368. _iframe.contentWindow.document.body.appendChild(script1);
  4369. _iframe.contentWindow.document.body.appendChild(script2);
  4370. // _iframe.contentWindow.document.body.appendChild(script3);
  4371. _iframe.contentWindow.document.body.appendChild(script4);
  4372. })
  4373. if (onloadListener) {
  4374. _iframe.contentDocument.location.reload()
  4375. } else {
  4376. _iframe.contentDocument.location.reload()
  4377. }
  4378. } else if (str == 'mind') {
  4379. _iframe = _formdiv.querySelector('iframe')
  4380. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4381. _iframe.contentWindow.document.body.appendChild(script1);
  4382. _iframe.contentWindow.document.body.appendChild(script2);
  4383. _iframe.contentWindow.document.body.appendChild(script4);
  4384. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  4385. })
  4386. if (onloadListener) {
  4387. _iframe.contentDocument.location.reload()
  4388. } else {
  4389. _iframe.contentDocument.location.reload()
  4390. }
  4391. } else {
  4392. _iframe.onload = () => {
  4393. _iframe.contentWindow.document.body.appendChild(script1);
  4394. _iframe.contentWindow.document.body.appendChild(script2);
  4395. // _iframe.contentWindow.document.body.appendChild(script3);
  4396. _iframe.contentWindow.document.body.appendChild(script4);
  4397. };
  4398. }
  4399. _jie.onclick = async () => {
  4400. let text = ''
  4401. if (aTool == 6) {
  4402. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4403. } else if (aTool == 3) {
  4404. text = await U.MD.D.I.getEditorContent(_iframe);
  4405. }
  4406. _loading.style.display = 'flex'
  4407. console.log(_loading);
  4408. var _ajs = _iframe.contentWindow.document.createElement("script");
  4409. _ajs.type = "text/javascript";
  4410. _ajs.innerHTML =
  4411. // 'console.log(' + _loading + ');\n' +
  4412. 'var _js = document.createElement("script");\n' +
  4413. '_js.type="text/javascript";\n' +
  4414. '_js.charset="UTF-8";\n' +
  4415. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4416. "_js.onload = function(){\n" +
  4417. ' var a = document.getElementsByTagName("img")\n' +
  4418. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4419. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4420. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4421. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4422. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4423. "beforeUpload_shishi(file," +
  4424. "'" +
  4425. _userid +
  4426. "'" +
  4427. ", " +
  4428. "'" +
  4429. _cid +
  4430. "'" +
  4431. ", " +
  4432. "'" +
  4433. _stage +
  4434. "'" +
  4435. ", " +
  4436. "'" +
  4437. _task +
  4438. "'" +
  4439. ", " +
  4440. "'" +
  4441. _tool +
  4442. "'" +
  4443. ", " +
  4444. "'" +
  4445. str + '_loadLi' +
  4446. "'" +
  4447. ", " +
  4448. "'" +
  4449. aTool +
  4450. "'" +
  4451. ", " +
  4452. "`" +
  4453. text +
  4454. "`" +
  4455. ")\n" +
  4456. " });\n" +
  4457. "}\n" +
  4458. "document.head.appendChild(_js);\n";
  4459. _iframe.contentWindow.document.head.appendChild(_ajs);
  4460. }
  4461. }
  4462. //U.MD.D.I.openClick(str);
  4463. //如果有任务栏信息
  4464. // if (_taskbar) {
  4465. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4466. // }
  4467. }
  4468. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  4469. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4470. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4471. _userinfo = US.userInfo, //登录用户信息
  4472. _userid = US.userInfo.userid //登录用户id
  4473. let _iframe;
  4474. let _cid = cid,
  4475. _stage = stage,
  4476. _task = task,
  4477. _tool = tool;
  4478. var _jie = $$("div", {
  4479. "style": {
  4480. "position": "absolute",
  4481. "bottom": "50px",
  4482. "right": "50px",
  4483. "zIndex": "9999",
  4484. "backgroundColor": "#2268bc",
  4485. "color": "#fff",
  4486. "padding": "12px 20px",
  4487. "cursor": "pointer",
  4488. "borderRadius": "4px",
  4489. },
  4490. "innerHTML": "确认并提交"
  4491. })
  4492. let aTool = ''
  4493. let _loading = document.createElement('div')
  4494. _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;"
  4495. // _loading.id = "";
  4496. let _lchild = document.createElement('div')
  4497. let _limg = document.createElement('img')
  4498. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4499. _limg.style = "width: 26px;margin-right: 10px;"
  4500. _lchild.appendChild(_limg)
  4501. let _lspan = document.createElement('span')
  4502. _lspan.innerHTML = "上传中..."
  4503. _lchild.appendChild(_lspan)
  4504. _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%);"
  4505. _loading.appendChild(_lchild)
  4506. var _box = $$('div', {
  4507. "style": {
  4508. "position": "relative",
  4509. "width": "100%",
  4510. "height": "100%",
  4511. },
  4512. })
  4513. _box.appendChild(_loading)
  4514. _box.id = str + '_loadLi'
  4515. switch (str) {
  4516. case "whiteboard":
  4517. aTool = 1;
  4518. _iframe = $$("iframe", {
  4519. "frameborder": "no",
  4520. "border": "0",
  4521. "scrolling ": "no",
  4522. "style": {
  4523. "cssText": "border:0;width:100%;height:100%"
  4524. },
  4525. "src": "https://iwb.cocorobo.cn/"
  4526. })
  4527. _box.appendChild(_iframe);
  4528. _box.appendChild(_jie);
  4529. _formdiv = new U.UF.UI.form(
  4530. "电子白板",
  4531. _box, {
  4532. "id": "whiteboards" + cid + stage + task + tool,
  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/whiteBoard.png)"
  4550. },
  4551. "name": "电子白板",
  4552. "forms": _formdiv,
  4553. "click": function () {
  4554. U.MD.D.I.openApplication(str, obj, info);
  4555. }
  4556. }
  4557. break;
  4558. case "mind":
  4559. aTool = 3;
  4560. _iframe = $$("iframe", {
  4561. "frameborder": "no",
  4562. "border": "0",
  4563. "scrolling ": "no",
  4564. "style": {
  4565. "cssText": "border:0;width:100%;height:100%"
  4566. },
  4567. "src": "/kityminder-editor/dist/index.html"
  4568. });
  4569. _box.appendChild(_iframe);
  4570. _box.appendChild(_jie);
  4571. _formdiv = new U.UF.UI.form(
  4572. "思维导图",
  4573. _box, { //"/jsmind/example/demo.html"
  4574. "id": "minds" + cid + stage + task + tool,
  4575. "style": {
  4576. "width": "90%",
  4577. "height": "90%",
  4578. "overflow": 'hidden'
  4579. },
  4580. "onresize": function () { }
  4581. }, {
  4582. closecallback: function () { }
  4583. }, {
  4584. "style": {
  4585. "height": "36px"
  4586. }
  4587. }).form; //创建窗体
  4588. _taskbar = {
  4589. "id": str + _formdiv.id,
  4590. "style": {
  4591. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4592. },
  4593. "name": "思维导图",
  4594. "forms": _formdiv,
  4595. "click": function () {
  4596. U.MD.D.I.openApplication(str, obj, info);
  4597. }
  4598. }
  4599. break;
  4600. case "doc":
  4601. aTool = 6;
  4602. _iframe = $$("iframe", {
  4603. "frameborder": "no",
  4604. "border": "0",
  4605. "scrolling ": "no",
  4606. "style": {
  4607. "cssText": "border:0;width:100%;height:100%"
  4608. },
  4609. "src": "/Office/Word/WordEditArea.htm"
  4610. })
  4611. _box.appendChild(_iframe);
  4612. _box.appendChild(_jie);
  4613. _formdiv = new U.UF.UI.form(
  4614. "协同文档",
  4615. _box, {
  4616. "id": "docs" + cid + stage + task + tool,
  4617. "style": {
  4618. "width": "90%",
  4619. "height": "90%",
  4620. "overflow": 'hidden'
  4621. },
  4622. "onresize": function () { }
  4623. }, {
  4624. closecallback: function () { }
  4625. }, {
  4626. "style": {
  4627. "height": "36px"
  4628. }
  4629. }).form; //创建窗体
  4630. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4631. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4632. })
  4633. _taskbar = {
  4634. "id": str + _formdiv.id,
  4635. "style": {
  4636. "backgroundImage": "url(/img/icon/doc.png)"
  4637. },
  4638. "name": "协同文档",
  4639. "forms": _formdiv,
  4640. "click": function () {
  4641. U.MD.D.I.openApplication(str, obj, info);
  4642. }
  4643. }
  4644. break;
  4645. }
  4646. const script1 = document.createElement("script");
  4647. script1.type = "text/javascript";
  4648. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4649. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4650. const script2 = document.createElement("script");
  4651. script2.type = "text/javascript";
  4652. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4653. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4654. const script3 = document.createElement("script");
  4655. script3.type = "text/javascript";
  4656. script3.charset = "UTF-8";
  4657. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4658. const script4 = document.createElement("script");
  4659. script4.type = "text/javascript";
  4660. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  4661. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  4662. if (_iframe) {
  4663. if (str == 'doc') {
  4664. _iframe = _formdiv.querySelector('iframe')
  4665. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4666. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4667. _iframe.contentWindow.document.body.appendChild(script1);
  4668. _iframe.contentWindow.document.body.appendChild(script2);
  4669. // _iframe.contentWindow.document.body.appendChild(script3);
  4670. _iframe.contentWindow.document.body.appendChild(script4);
  4671. })
  4672. if (onloadListener) {
  4673. _iframe.contentDocument.location.reload()
  4674. } else {
  4675. _iframe.contentDocument.location.reload()
  4676. }
  4677. } else if (str == 'mind') {
  4678. _iframe = _formdiv.querySelector('iframe')
  4679. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4680. _iframe.contentWindow.document.body.appendChild(script1);
  4681. _iframe.contentWindow.document.body.appendChild(script2);
  4682. _iframe.contentWindow.document.body.appendChild(script4);
  4683. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  4684. })
  4685. if (onloadListener) {
  4686. _iframe.contentDocument.location.reload()
  4687. } else {
  4688. _iframe.contentDocument.location.reload()
  4689. }
  4690. } else {
  4691. _iframe.onload = () => {
  4692. _iframe.contentWindow.document.body.appendChild(script1);
  4693. _iframe.contentWindow.document.body.appendChild(script2);
  4694. // _iframe.contentWindow.document.body.appendChild(script3);
  4695. _iframe.contentWindow.document.body.appendChild(script4);
  4696. };
  4697. }
  4698. _jie.onclick = async () => {
  4699. let text = ''
  4700. if (aTool == 6) {
  4701. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4702. } else if (aTool == 3) {
  4703. text = await U.MD.D.I.getEditorContent(_iframe);
  4704. }
  4705. _loading.style.display = 'flex'
  4706. console.log(_loading);
  4707. var _ajs = _iframe.contentWindow.document.createElement("script");
  4708. _ajs.type = "text/javascript";
  4709. _ajs.innerHTML =
  4710. // 'console.log(' + _loading + ');\n' +
  4711. 'var _js = document.createElement("script");\n' +
  4712. '_js.type="text/javascript";\n' +
  4713. '_js.charset="UTF-8";\n' +
  4714. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4715. "_js.onload = function(){\n" +
  4716. ' var a = document.getElementsByTagName("img")\n' +
  4717. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4718. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4719. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4720. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4721. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4722. "beforeUpload_shishi(file," +
  4723. "'" +
  4724. _userid +
  4725. "'" +
  4726. ", " +
  4727. "'" +
  4728. _cid +
  4729. "'" +
  4730. ", " +
  4731. "'" +
  4732. _stage +
  4733. "'" +
  4734. ", " +
  4735. "'" +
  4736. _task +
  4737. "'" +
  4738. ", " +
  4739. "'" +
  4740. _tool +
  4741. "'" +
  4742. ", " +
  4743. "'" +
  4744. str + '_loadLi' +
  4745. "'" +
  4746. ", " +
  4747. "'" +
  4748. aTool +
  4749. "'" +
  4750. ", " +
  4751. "`" +
  4752. text +
  4753. "`" +
  4754. ")\n" +
  4755. " });\n" +
  4756. "}\n" +
  4757. "document.head.appendChild(_js);\n";
  4758. _iframe.contentWindow.document.head.appendChild(_ajs);
  4759. }
  4760. }
  4761. //U.MD.D.I.openClick(str);
  4762. //如果有任务栏信息
  4763. // if (_taskbar) {
  4764. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4765. // }
  4766. }
  4767. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  4768. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4769. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4770. _userinfo = US.userInfo, //登录用户信息
  4771. _userid = US.userInfo.userid //登录用户id
  4772. let _iframe;
  4773. let _cid = cid,
  4774. _stage = stage,
  4775. _task = task,
  4776. _tool = tool;
  4777. var _jie = $$("div", {
  4778. "style": {
  4779. "position": "absolute",
  4780. "bottom": "50px",
  4781. "right": "50px",
  4782. "zIndex": "9999",
  4783. "backgroundColor": "#2268bc",
  4784. "color": "#fff",
  4785. "padding": "12px 20px",
  4786. "cursor": "pointer",
  4787. "borderRadius": "4px",
  4788. },
  4789. "innerHTML": "上传模板"
  4790. })
  4791. let aTool = ''
  4792. let _loading = document.createElement('div')
  4793. _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;"
  4794. // _loading.id = "";
  4795. let _lchild = document.createElement('div')
  4796. let _limg = document.createElement('img')
  4797. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4798. _limg.style = "width: 26px;margin-right: 10px;"
  4799. _lchild.appendChild(_limg)
  4800. let _lspan = document.createElement('span')
  4801. _lspan.innerHTML = "上传中..."
  4802. _lchild.appendChild(_lspan)
  4803. _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%);"
  4804. _loading.appendChild(_lchild)
  4805. var _box = $$('div', {
  4806. "style": {
  4807. "position": "relative",
  4808. "width": "100%",
  4809. "height": "100%",
  4810. },
  4811. })
  4812. _box.appendChild(_loading)
  4813. _box.id = str + '_loadLi'
  4814. switch (str) {
  4815. case "whiteboard":
  4816. aTool = 1;
  4817. _iframe = $$("iframe", {
  4818. "frameborder": "no",
  4819. "border": "0",
  4820. "scrolling ": "no",
  4821. "style": {
  4822. "cssText": "border:0;width:100%;height:100%"
  4823. },
  4824. "src": "https://iwb.cocorobo.cn/"
  4825. })
  4826. _box.appendChild(_iframe);
  4827. _box.appendChild(_jie);
  4828. _formdiv = new U.UF.UI.form(
  4829. "电子白板",
  4830. _box, {
  4831. "id": "whiteboards" + cid + stage + task + tool,
  4832. "style": {
  4833. "width": "90%",
  4834. "height": "90%",
  4835. "overflow": 'hidden'
  4836. },
  4837. "onresize": function () { }
  4838. }, {
  4839. closecallback: function () { }
  4840. }, {
  4841. "style": {
  4842. "height": "36px"
  4843. }
  4844. }).form; //创建窗体
  4845. _taskbar = {
  4846. "id": str + _formdiv.id,
  4847. "style": {
  4848. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4849. },
  4850. "name": "电子白板",
  4851. "forms": _formdiv,
  4852. "click": function () {
  4853. U.MD.D.I.openApplication(str, obj, info);
  4854. }
  4855. }
  4856. break;
  4857. case "mind":
  4858. aTool = 3;
  4859. _iframe = $$("iframe", {
  4860. "frameborder": "no",
  4861. "border": "0",
  4862. "scrolling ": "no",
  4863. "style": {
  4864. "cssText": "border:0;width:100%;height:100%"
  4865. },
  4866. "src": "/kityminder-editor/dist/index.html"
  4867. });
  4868. _box.appendChild(_iframe);
  4869. _box.appendChild(_jie);
  4870. _formdiv = new U.UF.UI.form(
  4871. "思维导图",
  4872. _box, { //"/jsmind/example/demo.html"
  4873. "id": "minds" + cid + stage + task + tool,
  4874. "style": {
  4875. "width": "90%",
  4876. "height": "90%",
  4877. "overflow": 'hidden'
  4878. },
  4879. "onresize": function () { }
  4880. }, {
  4881. closecallback: function () { }
  4882. }, {
  4883. "style": {
  4884. "height": "36px"
  4885. }
  4886. }).form; //创建窗体
  4887. _taskbar = {
  4888. "id": str + _formdiv.id,
  4889. "style": {
  4890. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4891. },
  4892. "name": "思维导图",
  4893. "forms": _formdiv,
  4894. "click": function () {
  4895. U.MD.D.I.openApplication(str, obj, info);
  4896. }
  4897. }
  4898. break;
  4899. case "doc":
  4900. aTool = 6;
  4901. _iframe = $$("iframe", {
  4902. "frameborder": "no",
  4903. "border": "0",
  4904. "scrolling ": "no",
  4905. "style": {
  4906. "cssText": "border:0;width:100%;height:100%"
  4907. },
  4908. "src": "/Office/Word/WordEditArea.htm"
  4909. })
  4910. _box.appendChild(_iframe);
  4911. _box.appendChild(_jie);
  4912. _formdiv = new U.UF.UI.form(
  4913. "协同文档",
  4914. _box, {
  4915. "id": "docs" + cid + stage + task + tool,
  4916. "style": {
  4917. "width": "90%",
  4918. "height": "90%",
  4919. "overflow": 'hidden'
  4920. },
  4921. "onresize": function () { }
  4922. }, {
  4923. closecallback: function () { }
  4924. }, {
  4925. "style": {
  4926. "height": "36px"
  4927. }
  4928. }).form; //创建窗体
  4929. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4930. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4931. })
  4932. _taskbar = {
  4933. "id": str + _formdiv.id,
  4934. "style": {
  4935. "backgroundImage": "url(/img/icon/doc.png)"
  4936. },
  4937. "name": "协同文档",
  4938. "forms": _formdiv,
  4939. "click": function () {
  4940. U.MD.D.I.openApplication(str, obj, info);
  4941. }
  4942. }
  4943. break;
  4944. }
  4945. if (_iframe) {
  4946. if (str == 'doc') {
  4947. _iframe = _formdiv.querySelector('iframe')
  4948. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4949. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4950. })
  4951. if (onloadListener) {
  4952. _iframe.contentDocument.location.reload()
  4953. } else {
  4954. _iframe.contentDocument.location.reload()
  4955. }
  4956. } else if (str == 'mind') {
  4957. _iframe = _formdiv.querySelector('iframe')
  4958. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4959. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  4960. })
  4961. if (onloadListener) {
  4962. _iframe.contentDocument.location.reload()
  4963. } else {
  4964. _iframe.contentDocument.location.reload()
  4965. }
  4966. } else if (str == 'whiteboard') {
  4967. _iframe = _formdiv.querySelector('iframe')
  4968. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4969. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  4970. })
  4971. if (onloadListener) {
  4972. _iframe.contentDocument.location.reload()
  4973. } else {
  4974. _iframe.contentDocument.location.reload()
  4975. }
  4976. } else {
  4977. _iframe.onload = () => {
  4978. };
  4979. }
  4980. _jie.onclick = async () => {
  4981. let text = ''
  4982. let type = '2'
  4983. if (aTool == 1) {
  4984. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4985. type = '3'
  4986. } else if (aTool == 6) {
  4987. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4988. type = '1'
  4989. } else if (aTool == 3) {
  4990. text = await U.MD.D.I.getEditorContent(_iframe);
  4991. type = '2'
  4992. }
  4993. _loading.style.display = 'flex'
  4994. U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading, _lspan)
  4995. }
  4996. }
  4997. //U.MD.D.I.openClick(str);
  4998. //如果有任务栏信息
  4999. // if (_taskbar) {
  5000. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5001. // }
  5002. }
  5003. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  5004. var xmlhttp;
  5005. var Mac, Sn, DeviceId
  5006. if (window.XMLHttpRequest) {
  5007. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5008. xmlhttp = new XMLHttpRequest();
  5009. }
  5010. else {
  5011. // IE6, IE5 浏览器执行代码
  5012. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5013. }
  5014. xmlhttp.onreadystatechange = function () {
  5015. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5016. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5017. // resolve(res.value[0][0].text);
  5018. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5019. $(fileInput).val('');
  5020. });
  5021. }
  5022. }
  5023. }
  5024. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5025. xmlhttp.send();
  5026. }
  5027. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  5028. var xmlhttp;
  5029. var Mac, Sn, DeviceId
  5030. if (window.XMLHttpRequest) {
  5031. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5032. xmlhttp = new XMLHttpRequest();
  5033. }
  5034. else {
  5035. // IE6, IE5 浏览器执行代码
  5036. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5037. }
  5038. xmlhttp.onreadystatechange = function () {
  5039. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5040. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5041. // resolve(res.value[0][0].text);
  5042. if (type == '2') {
  5043. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5044. $(fileInput).val('');
  5045. });
  5046. } else if (type == '3') {
  5047. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5048. }
  5049. } else {
  5050. iframe.contentWindow.h.app.updateScene({ elements: [] })
  5051. }
  5052. }
  5053. }
  5054. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5055. xmlhttp.send();
  5056. }
  5057. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  5058. var xmlhttp;
  5059. var Mac, Sn, DeviceId
  5060. if (window.XMLHttpRequest) {
  5061. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5062. xmlhttp = new XMLHttpRequest();
  5063. }
  5064. else {
  5065. // IE6, IE5 浏览器执行代码
  5066. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5067. }
  5068. xmlhttp.onreadystatechange = function () {
  5069. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5070. if (xmlhttp.response) {
  5071. // resolve(res.value[0][0].text);
  5072. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5073. // $(fileInput).val('');
  5074. // });
  5075. span.innerHTML = '上传成功'
  5076. setTimeout(() => {
  5077. loading.style.display = 'none'
  5078. }, 1000);
  5079. }
  5080. }
  5081. }
  5082. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  5083. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  5084. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  5085. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  5086. // 设置请求头,表示请求体的编码格式
  5087. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
  5088. // 设置请求体,使用url-encoded格式的数据
  5089. }