DeskTop.js 304 KB

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