DeskTop.js 304 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307
  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 == "2studiostudio") {
  1365. var _formel = document.getElementById("studyDetailStudio");
  1366. U.UF.F.windowZooming(_formel);
  1367. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1368. var _formel = document.getElementById("studyDetailNT");
  1369. U.UF.F.windowZooming(_formel);
  1370. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1371. var _formel = document.getElementById("studyDetailS");
  1372. U.UF.F.windowZooming(_formel);
  1373. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1374. var _formel = document.getElementById("studyDetailS");
  1375. U.UF.F.topWindow(_formel);
  1376. } else if (e.data.tools && e.data.tools == "1") {
  1377. // U.MD.D.I.openApplication("whiteboard")
  1378. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1379. } else if (e.data.tools && e.data.tools == "2") {
  1380. U.MD.D.I.openApplication("note")
  1381. } else if (e.data.tools && e.data.tools == "3") {
  1382. // U.MD.D.I.openApplication("mind")
  1383. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1384. } else if (e.data.tools && e.data.tools == "4") {
  1385. U.MD.D.I.openApplication("investigation")
  1386. } else if (e.data.tools && e.data.tools == "6") {
  1387. // U.MD.D.I.openApplication("doc")
  1388. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1389. } else if (e.data.tools && e.data.tools == "7") {
  1390. // U.MD.D.I.openApplication("mindNetwork")
  1391. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1392. } else if (e.data.tools && e.data.tools == "8") {
  1393. U.MD.D.I.openApplication("library")
  1394. } else if (e.data.tools && e.data.tools == "17") {
  1395. U.MD.D.I.openApplication("stuLibrary")
  1396. } else if (e.data.tools && e.data.tools == "18") {
  1397. U.MD.D.I.openApplication("train")
  1398. } else if (e.data.tools && e.data.tools == "21") {
  1399. U.MD.D.I.openApplication("program")
  1400. } else if (e.data.tools && e.data.tools == "22") {
  1401. U.MD.D.I.openApplication("AIprogram2")
  1402. } else if (e.data.tools && e.data.tools == "23") {
  1403. U.MD.D.I.openApplication("Pythonprogram")
  1404. } else if (e.data.tools && e.data.tools == "24") {
  1405. U.MD.D.I.openApplication("AIprogram")
  1406. } else if (e.data.tools && e.data.tools == "25") {
  1407. U.MD.D.I.openApplication("sys")
  1408. } else if (e.data.tools && e.data.tools == "26") {
  1409. // U.MD.D.I.openApplication("courseDesign")
  1410. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1411. } else if (e.data.tools && e.data.tools == "31") {
  1412. U.MD.D.I.openApplication("netWorkPanel")
  1413. } else if (e.data.tools && e.data.tools == "32") {
  1414. U.MD.D.I.openApplication("codeEdit")
  1415. } else if (e.data.tools && e.data.tools == "57") {
  1416. U.MD.D.I.openApplication("CocoPi")
  1417. } else if (e.data.tools && e.data.tools == "58") {
  1418. U.MD.D.I.openApplication("car")
  1419. } else if (e.data.tools && e.data.tools == "59") {
  1420. U.MD.D.I.openApplication("lineSearch")
  1421. } else if (e.data.tools && e.data.tools == "60") {
  1422. U.MD.D.I.openApplication("deepLearning")
  1423. } else if (e.data.tools && e.data.tools == "61") {
  1424. U.MD.D.I.openApplication("allHistory")
  1425. } else if (e.data.tools && e.data.tools == "28") {
  1426. U.MD.D.I.openApplication("translation")
  1427. } else if (e.data.tools && e.data.tools == "37") {
  1428. U.MD.D.I.openApplication("mohe")
  1429. } else if (e.data.tools && e.data.tools == "38") {
  1430. U.MD.D.I.openApplication("24game")
  1431. } else if (e.data.tools && e.data.tools == "39") {
  1432. U.MD.D.I.openApplication("GeoGebra")
  1433. } else if (e.data.tools && e.data.tools == "43") {
  1434. U.MD.D.I.openApplication("studentEvaluate")
  1435. } else if (e.data.tools && e.data.tools == "44") {
  1436. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1437. } else if (e.data.tools && e.data.tools == "46") {
  1438. U.MD.D.I.openApplication("project")
  1439. } else if (e.data.tools && e.data.tools == "1s") {
  1440. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1441. } else if (e.data.tools && e.data.tools == "3s") {
  1442. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1443. } else if (e.data.tools && e.data.tools == "6s") {
  1444. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1445. } else if (e.data.tools && e.data.tools == "1studio") {
  1446. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1447. } else if (e.data.tools && e.data.tools == "3studio") {
  1448. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1449. } else if (e.data.tools && e.data.tools == "6studio") {
  1450. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1451. } else if (e.data.tools && e.data.tools == "3y") {
  1452. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1453. } else if (e.data.tools && e.data.tools == "1y") {
  1454. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1455. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1456. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1457. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1458. U.MD.D.I.openApplication("AIAnalyse")
  1459. } else if (e.data.tools && e.data.tools == "1teacher") {
  1460. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1461. } else if (e.data.tools && e.data.tools == "3teacher") {
  1462. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1463. } else if (e.data.tools && e.data.tools == "7teacher") {
  1464. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1465. }
  1466. });
  1467. U.MD.D.I.selectUser = function () {
  1468. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1469. if (res.value[0].length > 0) {
  1470. US.userInfo = res.value[0][0];
  1471. $(".userName")[0].innerHTML = US.userInfo.username;
  1472. }
  1473. }, [], { "type": "GET", "withCredentials": true });
  1474. }
  1475. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1476. var _userinfo = US.userInfo, //登录用户信息
  1477. _userid = US.userInfo.userid, //登录用户id
  1478. _oid = _userinfo.organizeid,
  1479. _type = US.userInfo.type,
  1480. _org = US.userInfo.org,
  1481. _role = US.userInfo.role,
  1482. _classId = US.userInfo.classid;
  1483. if (_type == 4) {
  1484. tType = 4
  1485. }
  1486. switch (str) {
  1487. case "studyDetailNT"://无终端模式
  1488. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1489. setTimeout(() => {
  1490. U.MD.U.L.login();
  1491. }, 2000);
  1492. } else {
  1493. _formdiv = new U.UF.UI.form(
  1494. "课程详情",
  1495. $$("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 }), {
  1496. "id": "studyDetailNT",
  1497. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1498. "onresize": function () { }
  1499. }, {
  1500. closecallback: function () { }
  1501. }, { "style": { "height": "36px" } }).form; //创建窗体
  1502. _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); } }
  1503. break;
  1504. }
  1505. case "studyDetail":
  1506. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1507. setTimeout(() => {
  1508. U.MD.U.L.login();
  1509. }, 2000);
  1510. } else {
  1511. _formdiv = new U.UF.UI.form(
  1512. "课程详情",
  1513. $$("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 }), {
  1514. "id": "studyDetail",
  1515. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1516. "onresize": function () { }
  1517. }, {
  1518. closecallback: function () { }
  1519. }, { "style": { "height": "36px" } }).form; //创建窗体
  1520. _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); } }
  1521. break;
  1522. }
  1523. case "studyDetailS":
  1524. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1525. setTimeout(() => {
  1526. U.MD.U.L.login();
  1527. }, 2000);
  1528. } else {
  1529. _formdiv = new U.UF.UI.form(
  1530. "项目详情",
  1531. $$("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 }), {
  1532. "id": "studyDetailS",
  1533. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1534. "onresize": function () { }
  1535. }, {
  1536. closecallback: function () { }
  1537. }, { "style": { "height": "36px" } }).form; //创建窗体
  1538. _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); } }
  1539. break;
  1540. }
  1541. case "studyDetailStudio":
  1542. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1543. setTimeout(() => {
  1544. U.MD.U.L.login();
  1545. }, 2000);
  1546. } else {
  1547. _formdiv = new U.UF.UI.form(
  1548. "工作详情",
  1549. $$("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 }), {
  1550. "id": "studyDetailStudio",
  1551. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1552. "onresize": function () { }
  1553. }, {
  1554. closecallback: function () { }
  1555. }, { "style": { "height": "36px" } }).form; //创建窗体
  1556. _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); } }
  1557. break;
  1558. }
  1559. case "studyDetailS5":
  1560. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1561. setTimeout(() => {
  1562. U.MD.U.L.login();
  1563. }, 2000);
  1564. } else {
  1565. _formdiv = new U.UF.UI.form(
  1566. "项目详情",
  1567. $$("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 }), {
  1568. "id": "studyDetailS",
  1569. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1570. "onresize": function () { }
  1571. }, {
  1572. closecallback: function () { }
  1573. }, { "style": { "height": "36px" } }).form; //创建窗体
  1574. _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); } }
  1575. break;
  1576. }
  1577. case "studyDetailGM":
  1578. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1579. setTimeout(() => {
  1580. U.MD.U.L.login();
  1581. }, 2000);
  1582. } else {
  1583. _formdiv = new U.UF.UI.form(
  1584. "课程详情",
  1585. $$("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 }), {
  1586. "id": "studyDetail",
  1587. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1588. "onresize": function () { }
  1589. }, {
  1590. closecallback: function () { }
  1591. }, { "style": { "height": "36px" } }).form; //创建窗体
  1592. _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); } }
  1593. break;
  1594. }
  1595. case "hanUrl":
  1596. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1597. setTimeout(() => {
  1598. U.MD.U.L.login();
  1599. }, 2000);
  1600. } else {
  1601. _formdiv = new U.UF.UI.form(
  1602. "汉字宫",
  1603. $$("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" }), {
  1604. "id": "hanUrl",
  1605. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1606. "onresize": function () { }
  1607. }, {
  1608. closecallback: function () { }
  1609. }, { "style": { "height": "36px" } }).form; //创建窗体
  1610. _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); } }
  1611. break;
  1612. }
  1613. }
  1614. }
  1615. U.MD.D.I.openApplication = function (str, obj, info) {
  1616. obj = obj || {};
  1617. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1618. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1619. _userinfo = US.userInfo, //登录用户信息
  1620. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1621. _oid = obj.organizeid || _userinfo.organizeid,
  1622. _type = US.userInfo.type,
  1623. _org = US.userInfo.org,
  1624. _role = US.userInfo.role,
  1625. _classId = US.userInfo.classid,
  1626. _TscreenType = 1
  1627. _screenType = 2,
  1628. _SscreenType = 3;
  1629. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1630. return;
  1631. }
  1632. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1633. switch (str) {
  1634. case "studnetProject": //好友打开
  1635. _formdiv = new U.UF.UI.form(
  1636. "我的项目",
  1637. $$("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 }), {
  1638. "id": "studnetProject",
  1639. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1640. "onresize": function () { }
  1641. }, {
  1642. closecallback: function () { }
  1643. }, { "style": { "height": "36px" } }).form; //创建窗体
  1644. _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); } }
  1645. break;
  1646. case "studentEvaluate": //好友打开
  1647. _formdiv = new U.UF.UI.form(
  1648. "我的评价",
  1649. $$("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 }), {
  1650. "id": "studentEvaluate",
  1651. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1652. "onresize": function () { }
  1653. }, {
  1654. closecallback: function () { }
  1655. }, { "style": { "height": "36px" } }).form; //创建窗体
  1656. _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); } }
  1657. break;
  1658. case "my":
  1659. _formdiv = new U.UF.UI.form(
  1660. "我的资料",
  1661. $$("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 }), {
  1662. "id": "my",
  1663. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1664. "onresize": function () { }
  1665. }, {
  1666. closecallback: function () { }
  1667. }, { "style": { "height": "36px" } }).form; //创建窗体
  1668. _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); } }
  1669. break;
  1670. case "program":
  1671. _formdiv = new U.UF.UI.form(
  1672. "编程平台",
  1673. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1674. "id": "program",
  1675. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1676. "onresize": function () { }
  1677. }, {
  1678. closecallback: function () { }
  1679. }, { "style": { "height": "36px" } }).form; //创建窗体
  1680. _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); } }
  1681. break;
  1682. case "library":
  1683. _formdiv = new U.UF.UI.form(
  1684. "素材库",
  1685. $$("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 }), {
  1686. "id": "library",
  1687. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1688. "onresize": function () { }
  1689. }, {
  1690. closecallback: function () { }
  1691. }, { "style": { "height": "36px" } }).form; //创建窗体
  1692. _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); } }
  1693. break;
  1694. case "whiteboard":
  1695. _formdiv = new U.UF.UI.form(
  1696. "电子白板",
  1697. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1698. "id": "whiteboard",
  1699. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1700. "onresize": function () { }
  1701. }, {
  1702. closecallback: function () { }
  1703. }, { "style": { "height": "36px" } }).form; //创建窗体
  1704. _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); } }
  1705. break;
  1706. case "investigation":
  1707. _formdiv = new U.UF.UI.form(
  1708. "问卷调查",
  1709. $$("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 }), {
  1710. "id": "investigation",
  1711. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1712. "onresize": function () { }
  1713. }, {
  1714. closecallback: function () { }
  1715. }, { "style": { "height": "36px" } }).form; //创建窗体
  1716. _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); } }
  1717. break;
  1718. case "note":
  1719. _formdiv = new U.UF.UI.form(
  1720. "便签分类",
  1721. $$("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 }), {
  1722. "id": "note",
  1723. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1724. "onresize": function () { }
  1725. }, {
  1726. closecallback: function () { }
  1727. }, { "style": { "height": "36px" } }).form; //创建窗体
  1728. _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); } }
  1729. break;
  1730. // case "score":
  1731. // _formdiv = new U.UF.UI.form(
  1732. // "量规评分",
  1733. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  1734. // "id": "score",
  1735. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1736. // "onresize": function() {}
  1737. // }, {
  1738. // closecallback: function() {}
  1739. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1740. // _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); } }
  1741. // break;
  1742. case "mind":
  1743. _formdiv = new U.UF.UI.form(
  1744. "思维导图",
  1745. $$("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"
  1746. "id": "mind",
  1747. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1748. "onresize": function () { }
  1749. }, {
  1750. closecallback: function () { }
  1751. }, { "style": { "height": "36px" } }).form; //创建窗体
  1752. _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); } }
  1753. break;
  1754. case "doc":
  1755. // U.MD.D.I.isRoom();
  1756. _formdiv = new U.UF.UI.form(
  1757. "协同文档",
  1758. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1759. "id": "doc",
  1760. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1761. "onresize": function () { }
  1762. }, {
  1763. closecallback: function () { }
  1764. }, { "style": { "height": "36px" } }).form; //创建窗体
  1765. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1766. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1767. // })
  1768. _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); } }
  1769. break;
  1770. case "studentStudy":
  1771. _formdiv = new U.UF.UI.form(
  1772. "课程中心",
  1773. $$("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
  1774. "id": "studentStudy",
  1775. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1776. "onresize": function () { }
  1777. }, {
  1778. closecallback: function () { }
  1779. }, { "style": { "height": "36px" } }).form; //创建窗体
  1780. _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); } }
  1781. break;
  1782. case "train": //好友打开
  1783. _formdiv = new U.UF.UI.form(
  1784. "训练平台",
  1785. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1786. "id": "train",
  1787. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1788. "onresize": function () { }
  1789. }, {
  1790. closecallback: function () { }
  1791. }, { "style": { "height": "36px" } }).form; //创建窗体
  1792. _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); } }
  1793. break;
  1794. case "mindNetwork": //好友打开
  1795. _formdiv = new U.UF.UI.form(
  1796. "思维网格",
  1797. $$("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 }), {
  1798. "id": "mindNetwork",
  1799. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1800. "onresize": function () { }
  1801. }, {
  1802. closecallback: function () { }
  1803. }, { "style": { "height": "36px" } }).form; //创建窗体
  1804. _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); } }
  1805. break;
  1806. case "studentClassRoom": //好友打开
  1807. _formdiv = new U.UF.UI.form(
  1808. "实时课堂",
  1809. $$("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 }), {
  1810. "id": "studentClassRoom",
  1811. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1812. "onresize": function () { }
  1813. }, {
  1814. closecallback: function () { }
  1815. }, { "style": { "height": "36px" } }).form; //创建窗体
  1816. _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); } }
  1817. setTimeout(() => {
  1818. U.UF.F.windowZooming(_formdiv)
  1819. }, 0);
  1820. break;
  1821. }
  1822. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1823. switch (str) {
  1824. case "studnetProject": //好友打开
  1825. _formdiv = new U.UF.UI.form(
  1826. "我的项目",
  1827. $$("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 }), {
  1828. "id": "studnetProject",
  1829. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1830. "onresize": function () { }
  1831. }, {
  1832. closecallback: function () { }
  1833. }, { "style": { "height": "36px" } }).form; //创建窗体
  1834. _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); } }
  1835. break;
  1836. case "studentEvaluate": //好友打开
  1837. _formdiv = new U.UF.UI.form(
  1838. "我的评价",
  1839. $$("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 }), {
  1840. "id": "studentEvaluate",
  1841. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1842. "onresize": function () { }
  1843. }, {
  1844. closecallback: function () { }
  1845. }, { "style": { "height": "36px" } }).form; //创建窗体
  1846. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1847. break;
  1848. case "my":
  1849. _formdiv = new U.UF.UI.form(
  1850. "我的资料",
  1851. $$("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 }), {
  1852. "id": "my",
  1853. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1854. "onresize": function () { }
  1855. }, {
  1856. closecallback: function () { }
  1857. }, { "style": { "height": "36px" } }).form; //创建窗体
  1858. _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); } }
  1859. break;
  1860. case "program":
  1861. _formdiv = new U.UF.UI.form(
  1862. "编程平台",
  1863. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1864. "id": "program",
  1865. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1866. "onresize": function () { }
  1867. }, {
  1868. closecallback: function () { }
  1869. }, { "style": { "height": "36px" } }).form; //创建窗体
  1870. _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); } }
  1871. break;
  1872. case "library":
  1873. _formdiv = new U.UF.UI.form(
  1874. "素材库",
  1875. $$("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 }), {
  1876. "id": "library",
  1877. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1878. "onresize": function () { }
  1879. }, {
  1880. closecallback: function () { }
  1881. }, { "style": { "height": "36px" } }).form; //创建窗体
  1882. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1883. break;
  1884. case "whiteboard":
  1885. _formdiv = new U.UF.UI.form(
  1886. "电子白板",
  1887. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1888. "id": "whiteboard",
  1889. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1890. "onresize": function () { }
  1891. }, {
  1892. closecallback: function () { }
  1893. }, { "style": { "height": "36px" } }).form; //创建窗体
  1894. _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); } }
  1895. break;
  1896. case "investigation":
  1897. _formdiv = new U.UF.UI.form(
  1898. "问卷调查",
  1899. $$("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 }), {
  1900. "id": "investigation",
  1901. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1902. "onresize": function () { }
  1903. }, {
  1904. closecallback: function () { }
  1905. }, { "style": { "height": "36px" } }).form; //创建窗体
  1906. _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); } }
  1907. break;
  1908. case "note":
  1909. _formdiv = new U.UF.UI.form(
  1910. "便签分类",
  1911. $$("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 }), {
  1912. "id": "note",
  1913. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1914. "onresize": function () { }
  1915. }, {
  1916. closecallback: function () { }
  1917. }, { "style": { "height": "36px" } }).form; //创建窗体
  1918. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1919. break;
  1920. // case "score":
  1921. // _formdiv = new U.UF.UI.form(
  1922. // "量规评分",
  1923. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  1924. // "id": "score",
  1925. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1926. // "onresize": function() {}
  1927. // }, {
  1928. // closecallback: function() {}
  1929. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1930. // _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); } }
  1931. // break;
  1932. case "mind":
  1933. _formdiv = new U.UF.UI.form(
  1934. "思维导图",
  1935. $$("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"
  1936. "id": "mind",
  1937. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1938. "onresize": function () { }
  1939. }, {
  1940. closecallback: function () { }
  1941. }, { "style": { "height": "36px" } }).form; //创建窗体
  1942. _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); } }
  1943. break;
  1944. case "doc":
  1945. // U.MD.D.I.isRoom();
  1946. _formdiv = new U.UF.UI.form(
  1947. "协同文档",
  1948. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1949. "id": "doc",
  1950. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1951. "onresize": function () { }
  1952. }, {
  1953. closecallback: function () { }
  1954. }, { "style": { "height": "36px" } }).form; //创建窗体
  1955. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1956. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1957. })
  1958. _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); } }
  1959. break;
  1960. case "train": //好友打开
  1961. _formdiv = new U.UF.UI.form(
  1962. "训练平台",
  1963. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1964. "id": "train",
  1965. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1966. "onresize": function () { }
  1967. }, {
  1968. closecallback: function () { }
  1969. }, { "style": { "height": "36px" } }).form; //创建窗体
  1970. _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); } }
  1971. break;
  1972. case "studentStudy":
  1973. _formdiv = new U.UF.UI.form(
  1974. "课程中心",
  1975. $$("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
  1976. "id": "studentStudy",
  1977. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1978. "onresize": function () { }
  1979. }, {
  1980. closecallback: function () { }
  1981. }, { "style": { "height": "36px" } }).form; //创建窗体
  1982. _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); } }
  1983. break;
  1984. case "mindNetwork": //好友打开
  1985. _formdiv = new U.UF.UI.form(
  1986. "思维网格",
  1987. $$("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 }), {
  1988. "id": "mindNetwork",
  1989. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1990. "onresize": function () { }
  1991. }, {
  1992. closecallback: function () { }
  1993. }, { "style": { "height": "36px" } }).form; //创建窗体
  1994. _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); } }
  1995. break;
  1996. case "studentClassRoom": //好友打开
  1997. _formdiv = new U.UF.UI.form(
  1998. "实时课堂",
  1999. $$("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 }), {
  2000. "id": "studentClassRoom",
  2001. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2002. "onresize": function () { }
  2003. }, {
  2004. closecallback: function () { }
  2005. }, { "style": { "height": "36px" } }).form; //创建窗体
  2006. _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); } }
  2007. setTimeout(() => {
  2008. U.UF.F.windowZooming(_formdiv)
  2009. }, 0);
  2010. break;
  2011. }
  2012. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2013. //选择应用处理
  2014. switch (str) {
  2015. case "project": //好友打开
  2016. _formdiv = new U.UF.UI.form(
  2017. "课程管理",
  2018. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2019. "id": "project",
  2020. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2021. "onresize": function () { }
  2022. }, {
  2023. closecallback: function () { }
  2024. }, { "style": { "height": "36px" } }).form; //创建窗体
  2025. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2026. break;
  2027. case "student":
  2028. _formdiv = new U.UF.UI.form(
  2029. "学生管理",
  2030. $$("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 }), {
  2031. "id": "student",
  2032. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2033. "onresize": function () { }
  2034. }, {
  2035. closecallback: function () { }
  2036. }, { "style": { "height": "36px" } }).form; //创建窗体
  2037. _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); } }
  2038. break;
  2039. case "evaluate":
  2040. _formdiv = new U.UF.UI.form(
  2041. "学生评价",
  2042. $$("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 }), {
  2043. "id": "evaluate",
  2044. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2045. "onresize": function () { }
  2046. }, {
  2047. closecallback: function () { }
  2048. }, { "style": { "height": "36px" } }).form; //创建窗体
  2049. _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); } }
  2050. break;
  2051. case "sys":
  2052. _formdiv = new U.UF.UI.form(
  2053. "目标管理",
  2054. $$("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 }), {
  2055. "id": "sys",
  2056. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2057. "onresize": function () { }
  2058. }, {
  2059. closecallback: function () { }
  2060. }, { "style": { "height": "36px" } }).form; //创建窗体
  2061. _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); } }
  2062. break;
  2063. case "courseDesign":
  2064. _formdiv = new U.UF.UI.form(
  2065. "项目设计",
  2066. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2067. "id": "courseDesign",
  2068. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2069. "onresize": function () { }
  2070. }, {
  2071. closecallback: function () { }
  2072. }, { "style": { "height": "36px" } }).form; //创建窗体
  2073. _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); } }
  2074. break;
  2075. case "program":
  2076. _formdiv = new U.UF.UI.form(
  2077. "编程平台",
  2078. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2079. "id": "program",
  2080. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2081. "onresize": function () { }
  2082. }, {
  2083. closecallback: function () { }
  2084. }, { "style": { "height": "36px" } }).form; //创建窗体
  2085. _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); } }
  2086. break;
  2087. case "class":
  2088. _formdiv = new U.UF.UI.form(
  2089. "班级管理",
  2090. $$("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 }), {
  2091. "id": "class",
  2092. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2093. "onresize": function () { }
  2094. }, {
  2095. closecallback: function () { }
  2096. }, { "style": { "height": "36px" } }).form; //创建窗体
  2097. _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); } }
  2098. break;
  2099. case "my":
  2100. _formdiv = new U.UF.UI.form(
  2101. "我的资料",
  2102. $$("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 }), {
  2103. "id": "my",
  2104. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2105. "onresize": function () { }
  2106. }, {
  2107. closecallback: function () { }
  2108. }, { "style": { "height": "36px" } }).form; //创建窗体
  2109. _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); } }
  2110. break;
  2111. case "notice":
  2112. _formdiv = new U.UF.UI.form(
  2113. "通知公告",
  2114. $$("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 }), {
  2115. "id": "notice",
  2116. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2117. "onresize": function () { }
  2118. }, {
  2119. closecallback: function () { }
  2120. }, { "style": { "height": "36px" } }).form; //创建窗体
  2121. _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); } }
  2122. break;
  2123. case "library":
  2124. _formdiv = new U.UF.UI.form(
  2125. "素材库",
  2126. $$("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 }), {
  2127. "id": "library",
  2128. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2129. "onresize": function () { }
  2130. }, {
  2131. closecallback: function () { }
  2132. }, { "style": { "height": "36px" } }).form; //创建窗体
  2133. _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); } }
  2134. break;
  2135. case "whiteboard":
  2136. _formdiv = new U.UF.UI.form(
  2137. "电子白板",
  2138. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2139. "id": "whiteboard",
  2140. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2141. "onresize": function () { }
  2142. }, {
  2143. closecallback: function () { }
  2144. }, { "style": { "height": "36px" } }).form; //创建窗体
  2145. _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); } }
  2146. break;
  2147. case "investigation":
  2148. _formdiv = new U.UF.UI.form(
  2149. "问卷调查",
  2150. $$("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 }), {
  2151. "id": "investigation",
  2152. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2153. "onresize": function () { }
  2154. }, {
  2155. closecallback: function () { }
  2156. }, { "style": { "height": "36px" } }).form; //创建窗体
  2157. _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); } }
  2158. break;
  2159. case "note":
  2160. _formdiv = new U.UF.UI.form(
  2161. "便签分类",
  2162. $$("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 }), {
  2163. "id": "note",
  2164. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2165. "onresize": function () { }
  2166. }, {
  2167. closecallback: function () { }
  2168. }, { "style": { "height": "36px" } }).form; //创建窗体
  2169. _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); } }
  2170. break;
  2171. // case "score":
  2172. // _formdiv = new U.UF.UI.form(
  2173. // "量规评分",
  2174. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2175. // "id": "score",
  2176. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2177. // "onresize": function() {}
  2178. // }, {
  2179. // closecallback: function() {}
  2180. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2181. // _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); } }
  2182. // break;
  2183. case "mind":
  2184. _formdiv = new U.UF.UI.form(
  2185. "思维导图",
  2186. $$("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"
  2187. "id": "mind",
  2188. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2189. "onresize": function () { }
  2190. }, {
  2191. closecallback: function () { }
  2192. }, { "style": { "height": "36px" } }).form; //创建窗体
  2193. _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); } }
  2194. break;
  2195. case "doc":
  2196. // U.MD.D.I.isRoom();
  2197. _formdiv = new U.UF.UI.form(
  2198. "协同文档",
  2199. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2200. "id": "doc",
  2201. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2202. "onresize": function () { }
  2203. }, {
  2204. closecallback: function () { }
  2205. }, { "style": { "height": "36px" } }).form; //创建窗体
  2206. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2207. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2208. })
  2209. _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); } }
  2210. break;
  2211. case "study":
  2212. _formdiv = new U.UF.UI.form(
  2213. "课程中心",
  2214. $$("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
  2215. "id": "study",
  2216. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2217. "onresize": function () { }
  2218. }, {
  2219. closecallback: function () { }
  2220. }, { "style": { "height": "36px" } }).form; //创建窗体
  2221. _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); } }
  2222. break;
  2223. case "mindNetwork": //好友打开
  2224. _formdiv = new U.UF.UI.form(
  2225. "思维网格",
  2226. $$("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 }), {
  2227. "id": "mindNetwork",
  2228. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2229. "onresize": function () { }
  2230. }, {
  2231. closecallback: function () { }
  2232. }, { "style": { "height": "36px" } }).form; //创建窗体
  2233. _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); } }
  2234. break;
  2235. case "train": //好友打开
  2236. _formdiv = new U.UF.UI.form(
  2237. "训练平台",
  2238. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2239. "id": "mindNetwork",
  2240. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2241. "onresize": function () { }
  2242. }, {
  2243. closecallback: function () { }
  2244. }, { "style": { "height": "36px" } }).form; //创建窗体
  2245. _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); } }
  2246. break;
  2247. case "teacherClassRoom": //好友打开
  2248. _formdiv = new U.UF.UI.form(
  2249. "实时课堂",
  2250. $$("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 }), {
  2251. "id": "teacherClassRoom",
  2252. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2253. "onresize": function () { }
  2254. }, {
  2255. closecallback: function () { }
  2256. }, { "style": { "height": "36px" } }).form; //创建窗体
  2257. _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); } }
  2258. setTimeout(() => {
  2259. U.UF.F.windowZooming(_formdiv)
  2260. }, 0);
  2261. break;
  2262. }
  2263. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2264. switch (str) {
  2265. case "project": //好友打开
  2266. _formdiv = new U.UF.UI.form(
  2267. "课程管理",
  2268. $$("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 }), {
  2269. "id": "project",
  2270. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2271. "onresize": function () { }
  2272. }, {
  2273. closecallback: function () { }
  2274. }, { "style": { "height": "36px" } }).form; //创建窗体
  2275. _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); } }
  2276. break;
  2277. case "evaluate":
  2278. _formdiv = new U.UF.UI.form(
  2279. "学生评价",
  2280. $$("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 }), {
  2281. "id": "evaluate",
  2282. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2283. "onresize": function () { }
  2284. }, {
  2285. closecallback: function () { }
  2286. }, { "style": { "height": "36px" } }).form; //创建窗体
  2287. _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); } }
  2288. break;
  2289. case "notice":
  2290. _formdiv = new U.UF.UI.form(
  2291. "通知公告",
  2292. $$("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 }), {
  2293. "id": "notice",
  2294. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2295. "onresize": function () { }
  2296. }, {
  2297. closecallback: function () { }
  2298. }, { "style": { "height": "36px" } }).form; //创建窗体
  2299. _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); } }
  2300. break;
  2301. case "stuLibrary":
  2302. _formdiv = new U.UF.UI.form(
  2303. "学习资料",
  2304. $$("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 }), {
  2305. "id": "stuLibrary",
  2306. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2307. "onresize": function () { }
  2308. }, {
  2309. closecallback: function () { }
  2310. }, { "style": { "height": "36px" } }).form; //创建窗体
  2311. _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); } }
  2312. break;
  2313. case "program":
  2314. _formdiv = new U.UF.UI.form(
  2315. "编程平台",
  2316. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2317. "id": "program",
  2318. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2319. "onresize": function () { }
  2320. }, {
  2321. closecallback: function () { }
  2322. }, { "style": { "height": "36px" } }).form; //创建窗体
  2323. _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); } }
  2324. break;
  2325. case "whiteboard":
  2326. _formdiv = new U.UF.UI.form(
  2327. "电子白板",
  2328. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2329. "id": "whiteboard",
  2330. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2331. "onresize": function () { }
  2332. }, {
  2333. closecallback: function () { }
  2334. }, { "style": { "height": "36px" } }).form; //创建窗体
  2335. _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); } }
  2336. break;
  2337. case "investigation":
  2338. _formdiv = new U.UF.UI.form(
  2339. "问卷调查",
  2340. $$("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 }), {
  2341. "id": "investigation",
  2342. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2343. "onresize": function () { }
  2344. }, {
  2345. closecallback: function () { }
  2346. }, { "style": { "height": "36px" } }).form; //创建窗体
  2347. _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); } }
  2348. break;
  2349. case "mind":
  2350. _formdiv = new U.UF.UI.form(
  2351. "思维导图",
  2352. $$("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"
  2353. "id": "mind",
  2354. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2355. "onresize": function () { }
  2356. }, {
  2357. closecallback: function () { }
  2358. }, { "style": { "height": "36px" } }).form; //创建窗体
  2359. _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); } }
  2360. break;
  2361. case "doc":
  2362. // U.MD.D.I.isRoom();
  2363. _formdiv = new U.UF.UI.form(
  2364. "协同文档",
  2365. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2366. "id": "doc",
  2367. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2368. "onresize": function () { }
  2369. }, {
  2370. closecallback: function () { }
  2371. }, { "style": { "height": "36px" } }).form; //创建窗体
  2372. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2373. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2374. })
  2375. _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); } }
  2376. break;
  2377. case "study":
  2378. _formdiv = new U.UF.UI.form(
  2379. "课程中心",
  2380. $$("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
  2381. "id": "study",
  2382. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2383. "onresize": function () { }
  2384. }, {
  2385. closecallback: function () { }
  2386. }, { "style": { "height": "36px" } }).form; //创建窗体
  2387. _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); } }
  2388. break;
  2389. case "mindNetwork": //好友打开
  2390. _formdiv = new U.UF.UI.form(
  2391. "思维网格",
  2392. $$("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 }), {
  2393. "id": "mindNetwork",
  2394. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2395. "onresize": function () { }
  2396. }, {
  2397. closecallback: function () { }
  2398. }, { "style": { "height": "36px" } }).form; //创建窗体
  2399. _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); } }
  2400. break;
  2401. case "train": //好友打开
  2402. _formdiv = new U.UF.UI.form(
  2403. "训练平台",
  2404. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2405. "id": "train",
  2406. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2407. "onresize": function () { }
  2408. }, {
  2409. closecallback: function () { }
  2410. }, { "style": { "height": "36px" } }).form; //创建窗体
  2411. _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); } }
  2412. break;
  2413. case "sys":
  2414. _formdiv = new U.UF.UI.form(
  2415. "目标管理",
  2416. $$("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 }), {
  2417. "id": "sys",
  2418. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2419. "onresize": function () { }
  2420. }, {
  2421. closecallback: function () { }
  2422. }, { "style": { "height": "36px" } }).form; //创建窗体
  2423. _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); } }
  2424. break;
  2425. case "courseDesign":
  2426. _formdiv = new U.UF.UI.form(
  2427. "项目设计",
  2428. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2429. "id": "courseDesign",
  2430. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2431. "onresize": function () { }
  2432. }, {
  2433. closecallback: function () { }
  2434. }, { "style": { "height": "36px" } }).form; //创建窗体
  2435. _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); } }
  2436. break;
  2437. }
  2438. } else if (!_type) {
  2439. switch (str) {
  2440. case "my":
  2441. _formdiv = new U.UF.UI.form(
  2442. "我的资料",
  2443. $$("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 }), {
  2444. "id": "my",
  2445. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2446. "onresize": function () { }
  2447. }, {
  2448. closecallback: function () { }
  2449. }, { "style": { "height": "36px" } }).form; //创建窗体
  2450. _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); } }
  2451. break;
  2452. }
  2453. }
  2454. switch (str) {
  2455. // AIprogram2 AI体验 aihub.cocorobo.cn
  2456. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2457. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2458. case "AIprogram2": //AI体验
  2459. _formdiv = new U.UF.UI.form(
  2460. "AI体验",
  2461. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2462. "id": "AIprogram2",
  2463. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2464. "onresize": function () { }
  2465. }, {
  2466. closecallback: function () { }
  2467. }, { "style": { "height": "36px" } }).form; //创建窗体
  2468. _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); } }
  2469. break;
  2470. case "Pythonprogram": //python编程
  2471. _formdiv = new U.UF.UI.form(
  2472. "Python编程",
  2473. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2474. "id": "Pythonprogram",
  2475. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2476. "onresize": function () { }
  2477. }, {
  2478. closecallback: function () { }
  2479. }, { "style": { "height": "36px" } }).form; //创建窗体
  2480. _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); } }
  2481. break;
  2482. case "AIprogram": //ai编程
  2483. _formdiv = new U.UF.UI.form(
  2484. "AI编程平台",
  2485. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2486. "id": "AIprogram",
  2487. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2488. "onresize": function () { }
  2489. }, {
  2490. closecallback: function () { }
  2491. }, { "style": { "height": "36px" } }).form; //创建窗体
  2492. _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); } }
  2493. break;
  2494. case "CocoPi": //CocoPi
  2495. _formdiv = new U.UF.UI.form(
  2496. "CocoPi",
  2497. $$("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" }), {
  2498. "id": "CocoPi",
  2499. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2500. "onresize": function () { }
  2501. }, {
  2502. closecallback: function () { }
  2503. }, { "style": { "height": "36px" } }).form; //创建窗体
  2504. _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); } }
  2505. break;
  2506. case "car": //模拟驾驶
  2507. _formdiv = new U.UF.UI.form(
  2508. "模拟驾驶",
  2509. $$("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/" }), {
  2510. "id": "car",
  2511. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2512. "onresize": function () { }
  2513. }, {
  2514. closecallback: function () { }
  2515. }, { "style": { "height": "36px" } }).form; //创建窗体
  2516. _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); } }
  2517. break;
  2518. case "lineSearch": //路径搜索
  2519. _formdiv = new U.UF.UI.form(
  2520. "路径搜索",
  2521. $$("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/" }), {
  2522. "id": "lineSearch",
  2523. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2524. "onresize": function () { }
  2525. }, {
  2526. closecallback: function () { }
  2527. }, { "style": { "height": "36px" } }).form; //创建窗体
  2528. _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); } }
  2529. break;
  2530. case "deepLearning": //深度学习
  2531. _formdiv = new U.UF.UI.form(
  2532. "深度学习",
  2533. $$("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/#" }), {
  2534. "id": "deepLearning",
  2535. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2536. "onresize": function () { }
  2537. }, {
  2538. closecallback: function () { }
  2539. }, { "style": { "height": "36px" } }).form; //创建窗体
  2540. _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); } }
  2541. break;
  2542. case "allHistory": //深度学习
  2543. _formdiv = new U.UF.UI.form(
  2544. "全历史",
  2545. $$("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/" }), {
  2546. "id": "allHistory",
  2547. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2548. "onresize": function () { }
  2549. }, {
  2550. closecallback: function () { }
  2551. }, { "style": { "height": "36px" } }).form; //创建窗体
  2552. _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); } }
  2553. break;
  2554. case "chatPDF": //ai编程
  2555. _formdiv = new U.UF.UI.form(
  2556. "chatPDF",
  2557. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2558. "id": "chatPDF",
  2559. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2560. "onresize": function () { }
  2561. }, {
  2562. closecallback: function () { }
  2563. }, { "style": { "height": "36px" } }).form; //创建窗体
  2564. _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); } }
  2565. break;
  2566. case "resources": //国家教育
  2567. _formdiv = new U.UF.UI.form(
  2568. "国家教育",
  2569. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2570. "id": "resources",
  2571. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2572. "onresize": function () { }
  2573. }, {
  2574. closecallback: function () { }
  2575. }, { "style": { "height": "36px" } }).form; //创建窗体
  2576. _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); } }
  2577. break;
  2578. case "codeEdit": //源码编辑
  2579. _formdiv = new U.UF.UI.form(
  2580. "源码编辑",
  2581. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2582. "id": "codeEdit",
  2583. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2584. "onresize": function () { }
  2585. }, {
  2586. closecallback: function () { }
  2587. }, { "style": { "height": "36px" } }).form; //创建窗体
  2588. _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); } }
  2589. break; //
  2590. case "MindMap": //MindMap
  2591. _formdiv = new U.UF.UI.form(
  2592. "MindMap",
  2593. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2594. "id": "MindMap",
  2595. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2596. "onresize": function () { }
  2597. }, {
  2598. closecallback: function () { }
  2599. }, { "style": { "height": "36px" } }).form; //创建窗体
  2600. _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); } }
  2601. break;
  2602. case "netWorkPanel": //netWorkPanel
  2603. _formdiv = new U.UF.UI.form(
  2604. "netWorkPanel",
  2605. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2606. "id": "netWorkPanel",
  2607. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2608. "onresize": function () { }
  2609. }, {
  2610. closecallback: function () { }
  2611. }, { "style": { "height": "36px" } }).form; //创建窗体
  2612. _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); } }
  2613. break;
  2614. case "GeoGebra": //GeoGebra
  2615. _formdiv = new U.UF.UI.form(
  2616. "GeoGebra",
  2617. $$("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" }), {
  2618. "id": "GeoGebra",
  2619. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2620. "onresize": function () { }
  2621. }, {
  2622. closecallback: function () { }
  2623. }, { "style": { "height": "36px" } }).form; //创建窗体
  2624. _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); } }
  2625. break;
  2626. case "translation": //翻译
  2627. _formdiv = new U.UF.UI.form(
  2628. "翻译",
  2629. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2630. "id": "translation",
  2631. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2632. "onresize": function () { }
  2633. }, {
  2634. closecallback: function () { }
  2635. }, { "style": { "height": "36px" } }).form; //创建窗体
  2636. _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); } }
  2637. break;
  2638. case "mohe": //魔盒
  2639. _formdiv = new U.UF.UI.form(
  2640. "魔盒识字",
  2641. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2642. "id": "mohe",
  2643. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2644. "onresize": function () { }
  2645. }, {
  2646. closecallback: function () { }
  2647. }, { "style": { "height": "36px" } }).form; //创建窗体
  2648. _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); } }
  2649. break;
  2650. case "24game": //24点
  2651. _formdiv = new U.UF.UI.form(
  2652. "24点",
  2653. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2654. "id": "24game",
  2655. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2656. "onresize": function () { }
  2657. }, {
  2658. closecallback: function () { }
  2659. }, { "style": { "height": "36px" } }).form; //创建窗体
  2660. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/24game.png)" }, "name": "24点", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2661. break;
  2662. case "case":
  2663. _formdiv = new U.UF.UI.form(
  2664. "课程进展",
  2665. $$("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 }), {
  2666. "id": "case",
  2667. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2668. "onresize": function () { }
  2669. }, {
  2670. closecallback: function () { }
  2671. }, { "style": { "height": "36px" } }).form; //创建窗体
  2672. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/case.png)" }, "name": "课程进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2673. break;
  2674. case "snf":
  2675. _formdiv = new U.UF.UI.form(
  2676. "赛诺梵",
  2677. $$("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" }), {
  2678. "id": "snf",
  2679. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2680. "onresize": function () { }
  2681. }, {
  2682. closecallback: function () { }
  2683. }, { "style": { "height": "36px" } }).form; //创建窗体
  2684. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/snf.png)" }, "name": "赛诺梵", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2685. break;
  2686. case "hanFamily":
  2687. _formdiv = new U.UF.UI.form(
  2688. "汉字家族",
  2689. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2690. "id": "hanFamily",
  2691. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2692. "onresize": function () { }
  2693. }, {
  2694. closecallback: function () { }
  2695. }, { "style": { "height": "36px" } }).form; //创建窗体
  2696. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanFamily.png)" }, "name": "汉字家族", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2697. break;
  2698. case "hanClassics":
  2699. _formdiv = new U.UF.UI.form(
  2700. "国学经典",
  2701. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2702. "id": "hanClassics",
  2703. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2704. "onresize": function () { }
  2705. }, {
  2706. closecallback: function () { }
  2707. }, { "style": { "height": "36px" } }).form; //创建窗体
  2708. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClassics.png)" }, "name": "国学经典", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2709. break;
  2710. case "hanTraining":
  2711. _formdiv = new U.UF.UI.form(
  2712. "笔画训练",
  2713. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2714. "id": "hanTraining",
  2715. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2716. "onresize": function () { }
  2717. }, {
  2718. closecallback: function () { }
  2719. }, { "style": { "height": "36px" } }).form; //创建窗体
  2720. _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); } }
  2721. break;
  2722. case "hanClass":
  2723. _formdiv = new U.UF.UI.form(
  2724. "书法课堂",
  2725. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2726. "id": "hanClass",
  2727. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2728. "onresize": function () { }
  2729. }, {
  2730. closecallback: function () { }
  2731. }, { "style": { "height": "36px" } }).form; //创建窗体
  2732. _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); } }
  2733. break;
  2734. case "han":
  2735. _formdiv = new U.UF.UI.form(
  2736. "汉字宫",
  2737. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2738. "id": "han",
  2739. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2740. "onresize": function () { }
  2741. }, {
  2742. closecallback: function () { }
  2743. }, { "style": { "height": "36px" } }).form; //创建窗体
  2744. _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); } }
  2745. break;
  2746. case "projectGM": //课程管理
  2747. _formdiv = new U.UF.UI.form(
  2748. "课程管理",
  2749. $$("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 }), {
  2750. "id": "projectGM",
  2751. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2752. "onresize": function () { }
  2753. }, {
  2754. closecallback: function () { }
  2755. }, { "style": { "height": "36px" } }).form; //创建窗体
  2756. _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); } }
  2757. break;
  2758. case "studyGM"://课程中心
  2759. _formdiv = new U.UF.UI.form(
  2760. "课程中心",
  2761. $$("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
  2762. "id": "study",
  2763. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2764. "onresize": function () { }
  2765. }, {
  2766. closecallback: function () { }
  2767. }, { "style": { "height": "36px" } }).form; //创建窗体
  2768. _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); } }
  2769. break;
  2770. // studentGM
  2771. case "studentGM"://学生管理
  2772. _formdiv = new U.UF.UI.form(
  2773. "学生管理",
  2774. $$("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 }), {
  2775. "id": "studentGM",
  2776. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2777. "onresize": function () { }
  2778. }, {
  2779. closecallback: function () { }
  2780. }, { "style": { "height": "36px" } }).form; //创建窗体
  2781. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2782. break;
  2783. case "evaluateGM"://学生评价
  2784. _formdiv = new U.UF.UI.form(
  2785. "学生评价",
  2786. $$("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 }), {
  2787. "id": "evaluateGM",
  2788. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2789. "onresize": function () { }
  2790. }, {
  2791. closecallback: function () { }
  2792. }, { "style": { "height": "36px" } }).form; //创建窗体
  2793. _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); } }
  2794. break;
  2795. // classGM
  2796. case "classGM"://班级管理
  2797. _formdiv = new U.UF.UI.form(
  2798. "班级管理",
  2799. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/classGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2800. "id": "classGM",
  2801. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2802. "onresize": function () { }
  2803. }, {
  2804. closecallback: function () { }
  2805. }, { "style": { "height": "36px" } }).form; //创建窗体
  2806. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2807. break;
  2808. // dataGM
  2809. case "dataGM":
  2810. _formdiv = new U.UF.UI.form(
  2811. "我的资料",
  2812. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataGM?userid=" + _userid + "&org=" + _org }), {
  2813. "id": "dataGM",
  2814. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2815. "onresize": function () { }
  2816. }, {
  2817. closecallback: function () { }
  2818. }, { "style": { "height": "36px" } }).form; //创建窗体
  2819. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/data.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2820. break;
  2821. // caseGM
  2822. case "caseGM"://课程进展
  2823. _formdiv = new U.UF.UI.form(
  2824. "课程进展",
  2825. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesignGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2826. "id": "caseGM",
  2827. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2828. "onresize": function () { }
  2829. }, {
  2830. closecallback: function () { }
  2831. }, { "style": { "height": "36px" } }).form; //创建窗体
  2832. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/case.png)" }, "name": "课程进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2833. break;
  2834. // meterialGM
  2835. case "meterialGM"://素材库
  2836. _formdiv = new U.UF.UI.form(
  2837. "素材库",
  2838. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/libraryGM?userid=" + _userid + "&org=" + _org }), {
  2839. "id": "meterialGM",
  2840. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2841. "onresize": function () { }
  2842. }, {
  2843. closecallback: function () { }
  2844. }, { "style": { "height": "36px" } }).form; //创建窗体
  2845. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/material.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2846. break;
  2847. // evaluateSGM
  2848. case "evaluateSGM": //我的评价
  2849. _formdiv = new U.UF.UI.form(
  2850. "我的评价",
  2851. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2852. "id": "evaluateSGM",
  2853. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2854. "onresize": function () { }
  2855. }, {
  2856. closecallback: function () { }
  2857. }, { "style": { "height": "36px" } }).form; //创建窗体
  2858. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/evaluate.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2859. break;
  2860. case "jupyter": //jupyter
  2861. _formdiv = new U.UF.UI.form(
  2862. "jupyter",
  2863. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  2864. "id": "jupyter",
  2865. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2866. "onresize": function () { }
  2867. }, {
  2868. closecallback: function () { }
  2869. }, { "style": { "height": "36px" } }).form; //创建窗体
  2870. _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); } }
  2871. break;
  2872. case "number": //数字实验室
  2873. _formdiv = new U.UF.UI.form(
  2874. "数字实验室",
  2875. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  2876. "id": "number",
  2877. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2878. "onresize": function () { }
  2879. }, {
  2880. closecallback: function () { }
  2881. }, { "style": { "height": "36px" } }).form; //创建窗体
  2882. _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); } }
  2883. break;
  2884. case "studentCourse": //项目管理 学生
  2885. _formdiv = new U.UF.UI.form(
  2886. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2887. $$("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 }), {
  2888. "id": "studentCourse",
  2889. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2890. "onresize": function () { }
  2891. }, {
  2892. closecallback: function () { }
  2893. }, { "style": { "height": "36px" } }).form; //创建窗体
  2894. _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); } }
  2895. break;
  2896. case "studentCourseS": //项目管理 老师
  2897. _formdiv = new U.UF.UI.form(
  2898. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2899. $$("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 }), {
  2900. "id": "studentCourseS",
  2901. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2902. "onresize": function () { }
  2903. }, {
  2904. closecallback: function () { }
  2905. }, { "style": { "height": "36px" } }).form; //创建窗体
  2906. _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); } }
  2907. break;
  2908. case "studentIndex": //项目中心
  2909. _formdiv = new U.UF.UI.form(
  2910. "项目中心",
  2911. $$("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 }), {
  2912. "id": "studentIndex",
  2913. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2914. "onresize": function () { }
  2915. }, {
  2916. closecallback: function () { }
  2917. }, { "style": { "height": "36px" } }).form; //创建窗体
  2918. _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); } }
  2919. break;
  2920. case "CaseDesignS":
  2921. _formdiv = new U.UF.UI.form(
  2922. "项目进展",
  2923. $$("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 }), {
  2924. "id": "case",
  2925. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2926. "onresize": function () { }
  2927. }, {
  2928. closecallback: function () { }
  2929. }, { "style": { "height": "36px" } }).form; //创建窗体
  2930. _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); } }
  2931. break;
  2932. case "tcStudent": //腾讯学生管理
  2933. _formdiv = new U.UF.UI.form(
  2934. "学生管理",
  2935. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcStudent?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2936. "id": "tcStudent",
  2937. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2938. "onresize": function () { }
  2939. }, {
  2940. closecallback: function () { }
  2941. }, { "style": { "height": "36px" } }).form; //创建窗体
  2942. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2943. break;
  2944. case "tcSchool": //腾讯学校管理
  2945. _formdiv = new U.UF.UI.form(
  2946. "学校管理",
  2947. $$("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 }), {
  2948. "id": "tcSchool",
  2949. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2950. "onresize": function () { }
  2951. }, {
  2952. closecallback: function () { }
  2953. }, { "style": { "height": "36px" } }).form; //创建窗体
  2954. _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); } }
  2955. break;
  2956. case "tcTeacher": //腾讯学校管理
  2957. _formdiv = new U.UF.UI.form(
  2958. "教师管理",
  2959. $$("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 }), {
  2960. "id": "tcTeacher",
  2961. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2962. "onresize": function () { }
  2963. }, {
  2964. closecallback: function () { }
  2965. }, { "style": { "height": "36px" } }).form; //创建窗体
  2966. _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); } }
  2967. break;
  2968. case "tcData": //腾讯我的资料
  2969. _formdiv = new U.UF.UI.form(
  2970. "我的资料",
  2971. $$("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 }), {
  2972. "id": "tcData",
  2973. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2974. "onresize": function () { }
  2975. }, {
  2976. closecallback: function () { }
  2977. }, { "style": { "height": "36px" } }).form; //创建窗体
  2978. _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); } }
  2979. break;
  2980. case "tcNotice": //腾讯消息通知
  2981. _formdiv = new U.UF.UI.form(
  2982. "消息通知",
  2983. $$("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 }), {
  2984. "id": "tcNotice",
  2985. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2986. "onresize": function () { }
  2987. }, {
  2988. closecallback: function () { }
  2989. }, { "style": { "height": "36px" } }).form; //创建窗体
  2990. _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); } }
  2991. break;
  2992. case "myReport": //好友打开
  2993. _formdiv = new U.UF.UI.form(
  2994. "我的评价",
  2995. $$("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 }), {
  2996. "id": "myReport",
  2997. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2998. "onresize": function () { }
  2999. }, {
  3000. closecallback: function () { }
  3001. }, { "style": { "height": "36px" } }).form; //创建窗体
  3002. _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); } }
  3003. break;
  3004. case "learnAna": //好友打开
  3005. _formdiv = new U.UF.UI.form(
  3006. "学习分析",
  3007. $$("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 }), {
  3008. "id": "learnAna",
  3009. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3010. "onresize": function () { }
  3011. }, {
  3012. closecallback: function () { }
  3013. }, { "style": { "height": "36px" } }).form; //创建窗体
  3014. _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); } }
  3015. break;
  3016. case "AIChat": //AI共创
  3017. _formdiv = new U.UF.UI.form(
  3018. "AI共创",
  3019. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3020. "id": "AIChat",
  3021. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3022. "onresize": function () { }
  3023. }, {
  3024. istop: true,
  3025. closecallback: function () { $("#aichat_icon").remove(); },
  3026. narrowcallback: function () {
  3027. if (!$("#aichat_icon")[0]) {
  3028. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3029. }
  3030. },
  3031. }, { "style": { "height": "36px" } }).form; //创建窗体
  3032. _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); } }
  3033. break;
  3034. case "AIAnalyse": //AI共创
  3035. _formdiv = new U.UF.UI.form(
  3036. "AI分析",
  3037. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3038. "id": "AIAnalyse",
  3039. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3040. "onresize": function () { }
  3041. }, {
  3042. closecallback: function () { }
  3043. }, { "style": { "height": "36px" } }).form; //创建窗体
  3044. _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); } }
  3045. break;
  3046. case "studioCourse": //AI共创
  3047. _formdiv = new U.UF.UI.form(
  3048. "工作管理",
  3049. $$("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 }), {
  3050. "id": "studioCourse",
  3051. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3052. "onresize": function () { }
  3053. }, {
  3054. closecallback: function () { }
  3055. }, { "style": { "height": "36px" } }).form; //创建窗体
  3056. _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); } }
  3057. break;
  3058. case "studioIndex": //AI共创
  3059. _formdiv = new U.UF.UI.form(
  3060. "工作中心",
  3061. $$("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 }), {
  3062. "id": "studioIndex",
  3063. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3064. "onresize": function () { }
  3065. }, {
  3066. closecallback: function () { }
  3067. }, { "style": { "height": "36px" } }).form; //创建窗体
  3068. _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); } }
  3069. break;
  3070. }
  3071. //U.MD.D.I.openClick(str);
  3072. //如果有任务栏信息
  3073. if (_taskbar) {
  3074. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3075. }
  3076. }
  3077. // U.MD.D.I.openClick = function(str){
  3078. // var click = '';
  3079. // switch(str){
  3080. // case 'friend':
  3081. // click = '我的好友';
  3082. // break;
  3083. // case 'domain':
  3084. // click = '域名管理';
  3085. // break;
  3086. // case 'disk':
  3087. // click = '我的云盘';
  3088. // break;
  3089. // case 'word':
  3090. // click = 'Word';
  3091. // break;
  3092. // case 'excel':
  3093. // click = 'Execl';
  3094. // break;
  3095. // case 'txt':
  3096. // click = '文本文件';
  3097. // break;
  3098. // case 'lookupFriend':
  3099. // click = '查找好友';
  3100. // break;
  3101. // case 'ftp':
  3102. // click = 'FTP';
  3103. // break;
  3104. // case 'group':
  3105. // click = '群组';
  3106. // break;
  3107. // case 'set':
  3108. // click = '我的设置';
  3109. // break;
  3110. // case 'systemSet':
  3111. // click = '系统设置';
  3112. // break;
  3113. // case 'boomYun':
  3114. // click = '互联办公';
  3115. // break;
  3116. // case 'xz':
  3117. // click = '云端下载';
  3118. // break;
  3119. // case 'client':
  3120. // click = '有思浏览器';
  3121. // break;
  3122. // case 'backEndProgramming':
  3123. // click = '在线后台编程';
  3124. // break;
  3125. // case 'frontEndProgramming':
  3126. // click = '在线前端编程';
  3127. // break;
  3128. // default: break;
  3129. // }
  3130. // if(U.MD.D.I.Ip && click){
  3131. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3132. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3133. // })
  3134. // }
  3135. // }
  3136. /**
  3137. *函数作用:ajax简易函数,使用post格式
  3138. *@param url {data} 后台地址
  3139. *@param data {data} 参数json
  3140. *@param fn {data} 回调函数
  3141. *
  3142. */
  3143. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3144. // var xhr = new XMLHttpRequest();
  3145. // xhr.open("GET",url,true);
  3146. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3147. // xhr.onreadystatechange = function(){
  3148. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3149. // fn.call(this,xhr.responseText);
  3150. // }
  3151. // };
  3152. // xhr.send();
  3153. // }
  3154. /*判断是否是内网IP*/
  3155. // U.MD.D.I.isInnerIPFn = function(str){
  3156. // var curPageUrl = str;
  3157. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3158. // curPageUrl =curPageUrl.replace(reg1,'');
  3159. // // console.log('curPageUrl-1 '+curPageUrl);
  3160. // var reg2 = /\:+/g;//替换冒号为一点
  3161. // curPageUrl =curPageUrl.replace(reg2,'.');
  3162. // // console.log('curPageUrl-2 '+curPageUrl);
  3163. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3164. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3165. // if(curPageUrl[2] != '16'){
  3166. // return ipAddress;
  3167. // }else{
  3168. // return false;
  3169. // }
  3170. // }
  3171. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3172. // //compatibility for firefox and chrome
  3173. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3174. // var pc = new myPeerConnection({
  3175. // iceServers: []
  3176. // }),
  3177. // noop = function() {},
  3178. // localIPs = {},
  3179. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3180. // key;
  3181. // function iterateIP(ip) {
  3182. // if (!localIPs[ip]) onNewIP(ip);
  3183. // localIPs[ip] = true;
  3184. // }
  3185. // //create a bogus data channel
  3186. // pc.createDataChannel("");
  3187. // // create offer and set local description
  3188. // pc.createOffer().then(function(sdp) {
  3189. // sdp.sdp.split('\n').forEach(function(line) {
  3190. // if (line.indexOf('candidate') < 0) return;
  3191. // line.match(ipRegex).forEach(iterateIP);
  3192. // });
  3193. // pc.setLocalDescription(sdp, noop, noop);
  3194. // }).catch(function(reason) {
  3195. // // An error occurred, so handle the failure to connect
  3196. // });
  3197. // //sten for candidate events
  3198. // pc.onicecandidate = function(ice) {
  3199. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3200. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3201. // };
  3202. // }
  3203. // U.MD.D.I.getUserIpBool = function(callback){
  3204. // U.MD.D.I.getUserIP(function(ip){
  3205. // alert("Got IP! :" + ip);
  3206. // });
  3207. //}
  3208. //#endregion
  3209. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3210. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3211. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3212. _userinfo = US.userInfo, //登录用户信息
  3213. _userid = US.userInfo.userid //登录用户id
  3214. let _iframe;
  3215. let _cid = cid,
  3216. _stage = stage,
  3217. _task = task,
  3218. _tool = tool;
  3219. var _jie = $$("div", {
  3220. "style": {
  3221. "position": "absolute",
  3222. "bottom": "50px",
  3223. "right": "50px",
  3224. "zIndex": "9999",
  3225. "backgroundColor": "#2268bc",
  3226. "color": "#fff",
  3227. "padding": "12px 20px",
  3228. "cursor": "pointer",
  3229. "borderRadius": "4px",
  3230. },
  3231. "innerHTML": "提交作业"
  3232. })
  3233. let aTool = ''
  3234. let _loading = document.createElement('div')
  3235. _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;"
  3236. // _loading.id = "";
  3237. let _lchild = document.createElement('div')
  3238. let _limg = document.createElement('img')
  3239. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3240. _limg.style = "width: 26px;margin-right: 10px;"
  3241. _lchild.appendChild(_limg)
  3242. let _lspan = document.createElement('span')
  3243. _lspan.innerHTML = "上传中..."
  3244. _lchild.appendChild(_lspan)
  3245. _lchild.style = "color: #fff;padding: 15px;background: #00000070;font-size: 18px;display:flex;align-items:center;"
  3246. _loading.appendChild(_lchild)
  3247. _loading.addEventListener("click", function (event) {
  3248. event.stopPropagation();
  3249. event.target.style.display = 'flex'
  3250. });
  3251. var _box = $$('div', {
  3252. "style": {
  3253. "position": "relative",
  3254. "width": "100%",
  3255. "height": "100%",
  3256. },
  3257. })
  3258. _box.appendChild(_loading)
  3259. _box.id = str + '_loadLi'
  3260. switch (str) {
  3261. case "whiteboard":
  3262. aTool = 1;
  3263. _iframe = $$("iframe", {
  3264. "frameborder": "no",
  3265. "border": "0",
  3266. "scrolling ": "no",
  3267. "style": {
  3268. "cssText": "border:0;width:100%;height:100%"
  3269. },
  3270. "src": "https://iwb.cocorobo.cn/"
  3271. })
  3272. _box.appendChild(_iframe);
  3273. _box.appendChild(_jie);
  3274. _formdiv = new U.UF.UI.form(
  3275. "电子白板",
  3276. _box, {
  3277. "id": "whiteboard" + cid + stage + task + tool,
  3278. "style": {
  3279. "width": "90%",
  3280. "height": "90%",
  3281. "overflow": 'hidden'
  3282. },
  3283. "onresize": function () { }
  3284. }, {
  3285. closecallback: function () { }
  3286. }, {
  3287. "style": {
  3288. "height": "36px"
  3289. }
  3290. }).form; //创建窗体
  3291. _taskbar = {
  3292. "id": str + _formdiv.id,
  3293. "style": {
  3294. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3295. },
  3296. "name": "电子白板",
  3297. "forms": _formdiv,
  3298. "click": function () {
  3299. U.MD.D.I.openApplication(str, obj, info);
  3300. }
  3301. }
  3302. break;
  3303. case "mind":
  3304. aTool = 3;
  3305. _iframe = $$("iframe", {
  3306. "frameborder": "no",
  3307. "border": "0",
  3308. "scrolling ": "no",
  3309. "style": {
  3310. "cssText": "border:0;width:100%;height:100%"
  3311. },
  3312. "src": "/kityminder-editor/dist/index.html"
  3313. })
  3314. _box.appendChild(_iframe);
  3315. _box.appendChild(_jie);
  3316. _formdiv = new U.UF.UI.form(
  3317. "思维导图",
  3318. _box, { //"/jsmind/example/demo.html"
  3319. "id": "mind" + cid + stage + task + tool,
  3320. "style": {
  3321. "width": "90%",
  3322. "height": "90%",
  3323. "overflow": 'hidden'
  3324. },
  3325. "onresize": function () { }
  3326. }, {
  3327. closecallback: function () { }
  3328. }, {
  3329. "style": {
  3330. "height": "36px"
  3331. }
  3332. }).form; //创建窗体
  3333. _taskbar = {
  3334. "id": str + _formdiv.id,
  3335. "style": {
  3336. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3337. },
  3338. "name": "思维导图",
  3339. "forms": _formdiv,
  3340. "click": function () {
  3341. U.MD.D.I.openApplication(str, obj, info);
  3342. }
  3343. }
  3344. break;
  3345. case "MindMap":
  3346. aTool = 3;
  3347. _iframe = $$("iframe", {
  3348. "frameborder": "no",
  3349. "border": "0",
  3350. "scrolling ": "no",
  3351. "style": {
  3352. "cssText": "border:0;width:100%;height:100%"
  3353. },
  3354. "src": "//cloud.cocorobo.cn/mind/"
  3355. })
  3356. _box.appendChild(_iframe);
  3357. _box.appendChild(_jie);
  3358. _formdiv = new U.UF.UI.form(
  3359. "思维导图",
  3360. _box, { //"/jsmind/example/demo.html"
  3361. "id": "mind" + cid + stage + task + tool,
  3362. "style": {
  3363. "width": "90%",
  3364. "height": "90%",
  3365. "overflow": 'hidden'
  3366. },
  3367. "onresize": function () { }
  3368. }, {
  3369. closecallback: function () { }
  3370. }, {
  3371. "style": {
  3372. "height": "36px"
  3373. }
  3374. }).form; //创建窗体
  3375. _taskbar = {
  3376. "id": str + _formdiv.id,
  3377. "style": {
  3378. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3379. },
  3380. "name": "思维导图",
  3381. "forms": _formdiv,
  3382. "click": function () {
  3383. U.MD.D.I.openApplication(str, obj, info);
  3384. }
  3385. }
  3386. break;
  3387. case "doc":
  3388. aTool = 6;
  3389. _iframe = $$("iframe", {
  3390. "frameborder": "no",
  3391. "border": "0",
  3392. "scrolling ": "no",
  3393. "style": {
  3394. "cssText": "border:0;width:100%;height:100%"
  3395. },
  3396. "src": "/Office/Word/WordEditArea.htm"
  3397. })
  3398. _box.appendChild(_iframe);
  3399. _box.appendChild(_jie);
  3400. _formdiv = new U.UF.UI.form(
  3401. "协同文档",
  3402. _box, {
  3403. "id": "doc" + cid + stage + task + tool,
  3404. "style": {
  3405. "width": "90%",
  3406. "height": "90%",
  3407. "overflow": 'hidden'
  3408. },
  3409. "onresize": function () { }
  3410. }, {
  3411. closecallback: function () { }
  3412. }, {
  3413. "style": {
  3414. "height": "36px"
  3415. }
  3416. }).form; //创建窗体
  3417. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3418. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3419. })
  3420. _taskbar = {
  3421. "id": str + _formdiv.id,
  3422. "style": {
  3423. "backgroundImage": "url(/img/icon/doc.png)"
  3424. },
  3425. "name": "协同文档",
  3426. "forms": _formdiv,
  3427. "click": function () {
  3428. U.MD.D.I.openApplication(str, obj, info);
  3429. }
  3430. }
  3431. break;
  3432. case "mindNetwork": //好友打开
  3433. aTool = 7;
  3434. _iframe = $$("iframe", {
  3435. "webkitallowfullscreen": "",
  3436. "mozallowfullscreen": "",
  3437. "allowfullscreen": "",
  3438. "frameborder": "no",
  3439. "border": "0",
  3440. "scrolling ": "no",
  3441. "style": {
  3442. "cssText": "border:0; width:100%; height:100%;"
  3443. },
  3444. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3445. })
  3446. _box.appendChild(_iframe);
  3447. _box.appendChild(_jie);
  3448. _formdiv = new U.UF.UI.form(
  3449. "思维网格",
  3450. _box, {
  3451. "id": "mindNetwork" + cid + stage + task + tool,
  3452. "style": {
  3453. "width": "90%",
  3454. "height": "90%",
  3455. "overflow": 'hidden'
  3456. },
  3457. "onresize": function () { }
  3458. }, {
  3459. closecallback: function () { }
  3460. }, {
  3461. "style": {
  3462. "height": "36px"
  3463. }
  3464. }).form; //创建窗体
  3465. _taskbar = {
  3466. "id": str + _formdiv.id,
  3467. "style": {
  3468. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3469. },
  3470. "name": "思维网格",
  3471. "forms": _formdiv,
  3472. "click": function () {
  3473. U.MD.D.I.openApplication(str, obj, info);
  3474. }
  3475. }
  3476. break;
  3477. case "courseDesign":
  3478. _iframe = $$("iframe", {
  3479. "webkitallowfullscreen": "",
  3480. "mozallowfullscreen": "",
  3481. "allowfullscreen": "",
  3482. "frameborder": "no",
  3483. "border": "0",
  3484. "scrolling ": "no",
  3485. "style": {
  3486. "cssText": "border:0; width:100%; height:100%;"
  3487. },
  3488. "src": "/course-design-vue"
  3489. })
  3490. _box.appendChild(_iframe);
  3491. _box.appendChild(_jie);
  3492. _formdiv = new U.UF.UI.form(
  3493. "项目设计",
  3494. _box, {
  3495. "id": "courseDesign" + cid + stage + task + tool,
  3496. "style": {
  3497. "width": "90%",
  3498. "height": "90%",
  3499. "overflow": 'hidden'
  3500. },
  3501. "onresize": function () { }
  3502. }, {
  3503. closecallback: function () { }
  3504. }, {
  3505. "style": {
  3506. "height": "36px"
  3507. }
  3508. }).form; //创建窗体
  3509. _taskbar = {
  3510. "id": str + _formdiv.id,
  3511. "style": {
  3512. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3513. },
  3514. "name": "项目设计",
  3515. "forms": _formdiv,
  3516. "click": function () {
  3517. U.MD.D.I.openApplication(str, obj, info);
  3518. }
  3519. }
  3520. break;
  3521. }
  3522. const script1 = document.createElement("script");
  3523. script1.type = "text/javascript";
  3524. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3525. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3526. const script2 = document.createElement("script");
  3527. script2.type = "text/javascript";
  3528. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3529. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3530. const script3 = document.createElement("script");
  3531. script3.type = "text/javascript";
  3532. script3.charset = "UTF-8";
  3533. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3534. const script4 = document.createElement("script");
  3535. script4.type = "text/javascript";
  3536. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3537. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3538. if (_iframe) {
  3539. if (str == 'doc') {
  3540. _iframe = _formdiv.querySelector('iframe')
  3541. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3542. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3543. _iframe.contentWindow.document.body.appendChild(script1);
  3544. _iframe.contentWindow.document.body.appendChild(script2);
  3545. // _iframe.contentWindow.document.body.appendChild(script3);
  3546. _iframe.contentWindow.document.body.appendChild(script4);
  3547. })
  3548. if (onloadListener) {
  3549. _iframe.contentDocument.location.reload()
  3550. } else {
  3551. _iframe.contentDocument.location.reload()
  3552. }
  3553. } else if (str == 'courseDesign') {
  3554. U.UF.DL.iframeLoad(_iframe, function () {
  3555. // _iframe.contentWindow.U.MD.O.W.load();
  3556. // _iframe.contentWindow.document.body.appendChild(script1);
  3557. _iframe.contentWindow.document.body.appendChild(script2);
  3558. _iframe.contentWindow.document.body.appendChild(script4);
  3559. })
  3560. } else if (str == 'mind') {
  3561. _iframe = _formdiv.querySelector('iframe')
  3562. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3563. //
  3564. _iframe.contentWindow.document.body.appendChild(script1);
  3565. _iframe.contentWindow.document.body.appendChild(script2);
  3566. _iframe.contentWindow.document.body.appendChild(script4);
  3567. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3568. })
  3569. if (onloadListener) {
  3570. _iframe.contentDocument.location.reload()
  3571. } else {
  3572. _iframe.contentDocument.location.reload()
  3573. }
  3574. } else if (str == 'whiteboard') {
  3575. _iframe = _formdiv.querySelector('iframe')
  3576. let onloadListener = _iframe.onload = () => {
  3577. _iframe.contentWindow.document.body.appendChild(script1);
  3578. _iframe.contentWindow.document.body.appendChild(script2);
  3579. _iframe.contentWindow.document.body.appendChild(script4);
  3580. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3581. };
  3582. if (onloadListener) {
  3583. _iframe.contentDocument.location.reload()
  3584. } else {
  3585. _iframe.contentDocument.location.reload()
  3586. }
  3587. } else {
  3588. _iframe.onload = () => {
  3589. _iframe.contentWindow.document.body.appendChild(script1);
  3590. _iframe.contentWindow.document.body.appendChild(script2);
  3591. // _iframe.contentWindow.document.body.appendChild(script3);
  3592. _iframe.contentWindow.document.body.appendChild(script4);
  3593. };
  3594. }
  3595. _jie.onclick = async () => {
  3596. let text = ''
  3597. if (aTool == 1) {
  3598. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3599. } else if (aTool == 6) {
  3600. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3601. } else if (aTool == 3) {
  3602. text = await U.MD.D.I.getEditorContent(_iframe);
  3603. }
  3604. _loading.style.display = 'flex'
  3605. console.log(_loading);
  3606. var _ajs = _iframe.contentWindow.document.createElement("script");
  3607. _ajs.type = "text/javascript";
  3608. _ajs.innerHTML =
  3609. // 'console.log(' + _loading + ');\n' +
  3610. 'var _js = document.createElement("script");\n' +
  3611. '_js.type="text/javascript";\n' +
  3612. '_js.charset="UTF-8";\n' +
  3613. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3614. "_js.onload = function(){\n" +
  3615. ' var a = document.getElementsByTagName("img")\n' +
  3616. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3617. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3618. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3619. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3620. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3621. "beforeUpload_shishi(file," +
  3622. "'" +
  3623. _userid +
  3624. "'" +
  3625. ", " +
  3626. "'" +
  3627. _cid +
  3628. "'" +
  3629. ", " +
  3630. "'" +
  3631. _stage +
  3632. "'" +
  3633. ", " +
  3634. "'" +
  3635. _task +
  3636. "'" +
  3637. ", " +
  3638. "'" +
  3639. _tool +
  3640. "'" +
  3641. ", " +
  3642. "'" +
  3643. str + '_loadLi' +
  3644. "'" +
  3645. ", " +
  3646. "'" +
  3647. aTool +
  3648. "'" +
  3649. ", " +
  3650. "`" +
  3651. text +
  3652. "`" +
  3653. ")\n" +
  3654. " });\n" +
  3655. "}\n" +
  3656. "document.head.appendChild(_js);\n";
  3657. _iframe.contentWindow.document.head.appendChild(_ajs);
  3658. }
  3659. }
  3660. //U.MD.D.I.openClick(str);
  3661. //如果有任务栏信息
  3662. // if (_taskbar) {
  3663. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3664. // }
  3665. }
  3666. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  3667. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3668. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3669. _userid = student.userid, //登录用户id
  3670. _username = student.student //用户名字
  3671. let _iframe;
  3672. let _cid = cid,
  3673. _stage = stage,
  3674. _task = task,
  3675. _tool = tool;
  3676. var _jie = $$("div", {
  3677. "style": {
  3678. "position": "absolute",
  3679. "bottom": "50px",
  3680. "right": "50px",
  3681. "zIndex": "9999",
  3682. "backgroundColor": "#2268bc",
  3683. "color": "#fff",
  3684. "padding": "12px 20px",
  3685. "cursor": "pointer",
  3686. "borderRadius": "4px",
  3687. },
  3688. "innerHTML": "提交作业"
  3689. })
  3690. let aTool = ''
  3691. let _loading = document.createElement('div')
  3692. _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;"
  3693. // _loading.id = "";
  3694. let _lchild = document.createElement('div')
  3695. let _limg = document.createElement('img')
  3696. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3697. _limg.style = "width: 26px;margin-right: 10px;"
  3698. _lchild.appendChild(_limg)
  3699. let _lspan = document.createElement('span')
  3700. _lspan.innerHTML = "上传中..."
  3701. _lchild.appendChild(_lspan)
  3702. _lchild.style = "color: #fff;padding: 15px;background: #00000070;font-size: 18px;display:flex;align-items:center;"
  3703. _loading.appendChild(_lchild)
  3704. _loading.addEventListener("click", function (event) {
  3705. event.stopPropagation();
  3706. event.target.style.display = 'flex'
  3707. });
  3708. var _box = $$('div', {
  3709. "style": {
  3710. "position": "relative",
  3711. "width": "100%",
  3712. "height": "100%",
  3713. },
  3714. })
  3715. _box.appendChild(_loading)
  3716. _box.id = str + '_loadLi' + _userid
  3717. switch (str) {
  3718. case "whiteboard":
  3719. aTool = 1;
  3720. _iframe = $$("iframe", {
  3721. "frameborder": "no",
  3722. "border": "0",
  3723. "scrolling ": "no",
  3724. "style": {
  3725. "cssText": "border:0;width:100%;height:100%"
  3726. },
  3727. "src": "https://iwb.cocorobo.cn/"
  3728. })
  3729. _box.appendChild(_iframe);
  3730. _box.appendChild(_jie);
  3731. _formdiv = new U.UF.UI.form(
  3732. "电子白板-" + _username,
  3733. _box, {
  3734. "id": "whiteboard" + cid + stage + task + tool + _userid,
  3735. "style": {
  3736. "width": "90%",
  3737. "height": "90%",
  3738. "overflow": 'hidden'
  3739. },
  3740. "onresize": function () { }
  3741. }, {
  3742. closecallback: function () { }
  3743. }, {
  3744. "style": {
  3745. "height": "36px"
  3746. }
  3747. }).form; //创建窗体
  3748. _taskbar = {
  3749. "id": str + _formdiv.id,
  3750. "style": {
  3751. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3752. },
  3753. "name": "电子白板",
  3754. "forms": _formdiv,
  3755. "click": function () {
  3756. U.MD.D.I.openApplication(str, obj, info);
  3757. }
  3758. }
  3759. break;
  3760. case "mind":
  3761. aTool = 3;
  3762. _iframe = $$("iframe", {
  3763. "frameborder": "no",
  3764. "border": "0",
  3765. "scrolling ": "no",
  3766. "style": {
  3767. "cssText": "border:0;width:100%;height:100%"
  3768. },
  3769. "src": "/kityminder-editor/dist/index.html"
  3770. })
  3771. _box.appendChild(_iframe);
  3772. _box.appendChild(_jie);
  3773. _formdiv = new U.UF.UI.form(
  3774. "思维导图-" + _username,
  3775. _box, { //"/jsmind/example/demo.html"
  3776. "id": "mind" + cid + stage + task + tool + _userid,
  3777. "style": {
  3778. "width": "90%",
  3779. "height": "90%",
  3780. "overflow": 'hidden'
  3781. },
  3782. "onresize": function () { }
  3783. }, {
  3784. closecallback: function () { }
  3785. }, {
  3786. "style": {
  3787. "height": "36px"
  3788. }
  3789. }).form; //创建窗体
  3790. _taskbar = {
  3791. "id": str + _formdiv.id,
  3792. "style": {
  3793. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3794. },
  3795. "name": "思维导图",
  3796. "forms": _formdiv,
  3797. "click": function () {
  3798. U.MD.D.I.openApplication(str, obj, info);
  3799. }
  3800. }
  3801. break;
  3802. case "MindMap":
  3803. aTool = 3;
  3804. _iframe = $$("iframe", {
  3805. "frameborder": "no",
  3806. "border": "0",
  3807. "scrolling ": "no",
  3808. "style": {
  3809. "cssText": "border:0;width:100%;height:100%"
  3810. },
  3811. "src": "//cloud.cocorobo.cn/mind/"
  3812. })
  3813. _box.appendChild(_iframe);
  3814. _box.appendChild(_jie);
  3815. _formdiv = new U.UF.UI.form(
  3816. "思维导图-" + _username,
  3817. _box, { //"/jsmind/example/demo.html"
  3818. "id": "mind" + cid + stage + task + tool + _userid,
  3819. "style": {
  3820. "width": "90%",
  3821. "height": "90%",
  3822. "overflow": 'hidden'
  3823. },
  3824. "onresize": function () { }
  3825. }, {
  3826. closecallback: function () { }
  3827. }, {
  3828. "style": {
  3829. "height": "36px"
  3830. }
  3831. }).form; //创建窗体
  3832. _taskbar = {
  3833. "id": str + _formdiv.id,
  3834. "style": {
  3835. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3836. },
  3837. "name": "思维导图",
  3838. "forms": _formdiv,
  3839. "click": function () {
  3840. U.MD.D.I.openApplication(str, obj, info);
  3841. }
  3842. }
  3843. break;
  3844. case "doc":
  3845. aTool = 6;
  3846. _iframe = $$("iframe", {
  3847. "frameborder": "no",
  3848. "border": "0",
  3849. "scrolling ": "no",
  3850. "style": {
  3851. "cssText": "border:0;width:100%;height:100%"
  3852. },
  3853. "src": "/Office/Word/WordEditArea.htm"
  3854. })
  3855. _box.appendChild(_iframe);
  3856. _box.appendChild(_jie);
  3857. _formdiv = new U.UF.UI.form(
  3858. "协同文档-" + _username,
  3859. _box, {
  3860. "id": "doc" + cid + stage + task + tool + _userid,
  3861. "style": {
  3862. "width": "90%",
  3863. "height": "90%",
  3864. "overflow": 'hidden'
  3865. },
  3866. "onresize": function () { }
  3867. }, {
  3868. closecallback: function () { }
  3869. }, {
  3870. "style": {
  3871. "height": "36px"
  3872. }
  3873. }).form; //创建窗体
  3874. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3875. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3876. })
  3877. _taskbar = {
  3878. "id": str + _formdiv.id,
  3879. "style": {
  3880. "backgroundImage": "url(/img/icon/doc.png)"
  3881. },
  3882. "name": "协同文档",
  3883. "forms": _formdiv,
  3884. "click": function () {
  3885. U.MD.D.I.openApplication(str, obj, info);
  3886. }
  3887. }
  3888. break;
  3889. case "mindNetwork": //好友打开
  3890. aTool = 7;
  3891. _iframe = $$("iframe", {
  3892. "webkitallowfullscreen": "",
  3893. "mozallowfullscreen": "",
  3894. "allowfullscreen": "",
  3895. "frameborder": "no",
  3896. "border": "0",
  3897. "scrolling ": "no",
  3898. "style": {
  3899. "cssText": "border:0; width:100%; height:100%;"
  3900. },
  3901. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3902. })
  3903. _box.appendChild(_iframe);
  3904. _box.appendChild(_jie);
  3905. _formdiv = new U.UF.UI.form(
  3906. "思维网格-" + _username,
  3907. _box, {
  3908. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  3909. "style": {
  3910. "width": "90%",
  3911. "height": "90%",
  3912. "overflow": 'hidden'
  3913. },
  3914. "onresize": function () { }
  3915. }, {
  3916. closecallback: function () { }
  3917. }, {
  3918. "style": {
  3919. "height": "36px"
  3920. }
  3921. }).form; //创建窗体
  3922. _taskbar = {
  3923. "id": str + _formdiv.id,
  3924. "style": {
  3925. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3926. },
  3927. "name": "思维网格",
  3928. "forms": _formdiv,
  3929. "click": function () {
  3930. U.MD.D.I.openApplication(str, obj, info);
  3931. }
  3932. }
  3933. break;
  3934. case "courseDesign":
  3935. _iframe = $$("iframe", {
  3936. "webkitallowfullscreen": "",
  3937. "mozallowfullscreen": "",
  3938. "allowfullscreen": "",
  3939. "frameborder": "no",
  3940. "border": "0",
  3941. "scrolling ": "no",
  3942. "style": {
  3943. "cssText": "border:0; width:100%; height:100%;"
  3944. },
  3945. "src": "/course-design-vue"
  3946. })
  3947. _box.appendChild(_iframe);
  3948. _box.appendChild(_jie);
  3949. _formdiv = new U.UF.UI.form(
  3950. "项目设计-" + _username,
  3951. _box, {
  3952. "id": "courseDesign" + cid + stage + task + tool + _userid,
  3953. "style": {
  3954. "width": "90%",
  3955. "height": "90%",
  3956. "overflow": 'hidden'
  3957. },
  3958. "onresize": function () { }
  3959. }, {
  3960. closecallback: function () { }
  3961. }, {
  3962. "style": {
  3963. "height": "36px"
  3964. }
  3965. }).form; //创建窗体
  3966. _taskbar = {
  3967. "id": str + _formdiv.id,
  3968. "style": {
  3969. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3970. },
  3971. "name": "项目设计",
  3972. "forms": _formdiv,
  3973. "click": function () {
  3974. U.MD.D.I.openApplication(str, obj, info);
  3975. }
  3976. }
  3977. break;
  3978. }
  3979. const script1 = document.createElement("script");
  3980. script1.type = "text/javascript";
  3981. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3982. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3983. const script2 = document.createElement("script");
  3984. script2.type = "text/javascript";
  3985. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3986. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3987. const script3 = document.createElement("script");
  3988. script3.type = "text/javascript";
  3989. script3.charset = "UTF-8";
  3990. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3991. const script4 = document.createElement("script");
  3992. script4.type = "text/javascript";
  3993. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3994. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3995. if (_iframe) {
  3996. if (str == 'doc') {
  3997. _iframe = _formdiv.querySelector('iframe')
  3998. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3999. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4000. _iframe.contentWindow.document.body.appendChild(script1);
  4001. _iframe.contentWindow.document.body.appendChild(script2);
  4002. // _iframe.contentWindow.document.body.appendChild(script3);
  4003. _iframe.contentWindow.document.body.appendChild(script4);
  4004. })
  4005. if (onloadListener) {
  4006. _iframe.contentDocument.location.reload()
  4007. } else {
  4008. _iframe.contentDocument.location.reload()
  4009. }
  4010. } else if (str == 'courseDesign') {
  4011. U.UF.DL.iframeLoad(_iframe, function () {
  4012. // _iframe.contentWindow.U.MD.O.W.load();
  4013. // _iframe.contentWindow.document.body.appendChild(script1);
  4014. _iframe.contentWindow.document.body.appendChild(script2);
  4015. _iframe.contentWindow.document.body.appendChild(script4);
  4016. })
  4017. } else if (str == 'mind') {
  4018. _iframe = _formdiv.querySelector('iframe')
  4019. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4020. //
  4021. _iframe.contentWindow.document.body.appendChild(script1);
  4022. _iframe.contentWindow.document.body.appendChild(script2);
  4023. _iframe.contentWindow.document.body.appendChild(script4);
  4024. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4025. })
  4026. if (onloadListener) {
  4027. _iframe.contentDocument.location.reload()
  4028. } else {
  4029. _iframe.contentDocument.location.reload()
  4030. }
  4031. } else if (str == 'whiteboard') {
  4032. _iframe = _formdiv.querySelector('iframe')
  4033. let onloadListener = _iframe.onload = () => {
  4034. _iframe.contentWindow.document.body.appendChild(script1);
  4035. _iframe.contentWindow.document.body.appendChild(script2);
  4036. _iframe.contentWindow.document.body.appendChild(script4);
  4037. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4038. };
  4039. if (onloadListener) {
  4040. _iframe.contentDocument.location.reload()
  4041. } else {
  4042. _iframe.contentDocument.location.reload()
  4043. }
  4044. } else {
  4045. _iframe.onload = () => {
  4046. _iframe.contentWindow.document.body.appendChild(script1);
  4047. _iframe.contentWindow.document.body.appendChild(script2);
  4048. // _iframe.contentWindow.document.body.appendChild(script3);
  4049. _iframe.contentWindow.document.body.appendChild(script4);
  4050. };
  4051. }
  4052. _jie.onclick = async () => {
  4053. let text = ''
  4054. if (aTool == 1) {
  4055. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4056. } else if (aTool == 6) {
  4057. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4058. } else if (aTool == 3) {
  4059. text = await U.MD.D.I.getEditorContent(_iframe);
  4060. }
  4061. _loading.style.display = 'flex'
  4062. console.log(_loading);
  4063. var _ajs = _iframe.contentWindow.document.createElement("script");
  4064. _ajs.type = "text/javascript";
  4065. _ajs.innerHTML =
  4066. // 'console.log(' + _loading + ');\n' +
  4067. 'var _js = document.createElement("script");\n' +
  4068. '_js.type="text/javascript";\n' +
  4069. '_js.charset="UTF-8";\n' +
  4070. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4071. "_js.onload = function(){\n" +
  4072. ' var a = document.getElementsByTagName("img")\n' +
  4073. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4074. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4075. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4076. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4077. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4078. "beforeUpload_shishi(file," +
  4079. "'" +
  4080. _userid +
  4081. "'" +
  4082. ", " +
  4083. "'" +
  4084. _cid +
  4085. "'" +
  4086. ", " +
  4087. "'" +
  4088. _stage +
  4089. "'" +
  4090. ", " +
  4091. "'" +
  4092. _task +
  4093. "'" +
  4094. ", " +
  4095. "'" +
  4096. _tool +
  4097. "'" +
  4098. ", " +
  4099. "'" +
  4100. str + '_loadLi' + _userid +
  4101. "'" +
  4102. ", " +
  4103. "'" +
  4104. aTool +
  4105. "'" +
  4106. ", " +
  4107. "`" +
  4108. text +
  4109. "`" +
  4110. ")\n" +
  4111. " });\n" +
  4112. "}\n" +
  4113. "document.head.appendChild(_js);\n";
  4114. _iframe.contentWindow.document.head.appendChild(_ajs);
  4115. }
  4116. }
  4117. }
  4118. U.MD.D.I.getEditorContent = function (iframe) {
  4119. return new Promise((resolve, reject) => {
  4120. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  4121. console.log(content);
  4122. resolve(content)
  4123. });
  4124. });
  4125. }
  4126. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  4127. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  4128. // if (res.value[0].length > 0) {
  4129. // // resolve(res.value[0][0].text);
  4130. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  4131. // $(fileInput).val('');
  4132. // });
  4133. // }
  4134. // }, [], { "type": "GET", "withCredentials": true });
  4135. var xmlhttp;
  4136. var Mac, Sn, DeviceId
  4137. if (window.XMLHttpRequest) {
  4138. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  4139. xmlhttp = new XMLHttpRequest();
  4140. }
  4141. else {
  4142. // IE6, IE5 浏览器执行代码
  4143. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  4144. }
  4145. xmlhttp.onreadystatechange = function () {
  4146. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  4147. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  4148. // resolve(res.value[0][0].text);
  4149. if (type == '2') {
  4150. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  4151. $(fileInput).val('');
  4152. });
  4153. } else if (type == '3') {
  4154. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  4155. }
  4156. } else {
  4157. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  4158. }
  4159. }
  4160. }
  4161. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  4162. xmlhttp.send();
  4163. }
  4164. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  4165. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4166. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4167. _userinfo = US.userInfo, //登录用户信息
  4168. _userid = US.userInfo.userid //登录用户id
  4169. let _iframe;
  4170. let _cid = cid,
  4171. _stage = stage,
  4172. _task = task,
  4173. _tool = tool;
  4174. var _jie = $$("div", {
  4175. "style": {
  4176. "position": "absolute",
  4177. "bottom": "50px",
  4178. "right": "50px",
  4179. "zIndex": "9999",
  4180. "backgroundColor": "#2268bc",
  4181. "color": "#fff",
  4182. "padding": "12px 20px",
  4183. "cursor": "pointer",
  4184. "borderRadius": "4px",
  4185. },
  4186. "innerHTML": "确认并提交"
  4187. })
  4188. let aTool = ''
  4189. let _loading = document.createElement('div')
  4190. _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;"
  4191. // _loading.id = "";
  4192. let _lchild = document.createElement('div')
  4193. let _limg = document.createElement('img')
  4194. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4195. _limg.style = "width: 26px;margin-right: 10px;"
  4196. _lchild.appendChild(_limg)
  4197. let _lspan = document.createElement('span')
  4198. _lspan.innerHTML = "上传中..."
  4199. _lchild.appendChild(_lspan)
  4200. _lchild.style = "color: #fff;padding: 15px;background: #00000070;font-size: 18px;display:flex;align-items:center;"
  4201. _loading.appendChild(_lchild)
  4202. _loading.addEventListener("click", function (event) {
  4203. event.stopPropagation();
  4204. event.target.style.display = 'flex'
  4205. });
  4206. var _box = $$('div', {
  4207. "style": {
  4208. "position": "relative",
  4209. "width": "100%",
  4210. "height": "100%",
  4211. },
  4212. })
  4213. _box.appendChild(_loading)
  4214. _box.id = str + '_loadLi'
  4215. switch (str) {
  4216. case "whiteboard":
  4217. aTool = 1;
  4218. _iframe = $$("iframe", {
  4219. "frameborder": "no",
  4220. "border": "0",
  4221. "scrolling ": "no",
  4222. "style": {
  4223. "cssText": "border:0;width:100%;height:100%"
  4224. },
  4225. "src": "https://iwb.cocorobo.cn/"
  4226. })
  4227. _box.appendChild(_iframe);
  4228. _box.appendChild(_jie);
  4229. _formdiv = new U.UF.UI.form(
  4230. "电子白板",
  4231. _box, {
  4232. "id": "whiteboards" + cid + stage + task + tool,
  4233. "style": {
  4234. "width": "90%",
  4235. "height": "90%",
  4236. "overflow": 'hidden'
  4237. },
  4238. "onresize": function () { }
  4239. }, {
  4240. closecallback: function () { }
  4241. }, {
  4242. "style": {
  4243. "height": "36px"
  4244. }
  4245. }).form; //创建窗体
  4246. _taskbar = {
  4247. "id": str + _formdiv.id,
  4248. "style": {
  4249. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4250. },
  4251. "name": "电子白板",
  4252. "forms": _formdiv,
  4253. "click": function () {
  4254. U.MD.D.I.openApplication(str, obj, info);
  4255. }
  4256. }
  4257. break;
  4258. case "mind":
  4259. aTool = 3;
  4260. _iframe = $$("iframe", {
  4261. "frameborder": "no",
  4262. "border": "0",
  4263. "scrolling ": "no",
  4264. "style": {
  4265. "cssText": "border:0;width:100%;height:100%"
  4266. },
  4267. "src": "/kityminder-editor/dist/index.html"
  4268. });
  4269. _box.appendChild(_iframe);
  4270. _box.appendChild(_jie);
  4271. _formdiv = new U.UF.UI.form(
  4272. "思维导图",
  4273. _box, { //"/jsmind/example/demo.html"
  4274. "id": "minds" + cid + stage + task + tool,
  4275. "style": {
  4276. "width": "90%",
  4277. "height": "90%",
  4278. "overflow": 'hidden'
  4279. },
  4280. "onresize": function () { }
  4281. }, {
  4282. closecallback: function () { }
  4283. }, {
  4284. "style": {
  4285. "height": "36px"
  4286. }
  4287. }).form; //创建窗体
  4288. _taskbar = {
  4289. "id": str + _formdiv.id,
  4290. "style": {
  4291. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4292. },
  4293. "name": "思维导图",
  4294. "forms": _formdiv,
  4295. "click": function () {
  4296. U.MD.D.I.openApplication(str, obj, info);
  4297. }
  4298. }
  4299. break;
  4300. case "doc":
  4301. aTool = 6;
  4302. _iframe = $$("iframe", {
  4303. "frameborder": "no",
  4304. "border": "0",
  4305. "scrolling ": "no",
  4306. "style": {
  4307. "cssText": "border:0;width:100%;height:100%"
  4308. },
  4309. "src": "/Office/Word/WordEditArea.htm"
  4310. })
  4311. _box.appendChild(_iframe);
  4312. _box.appendChild(_jie);
  4313. _formdiv = new U.UF.UI.form(
  4314. "协同文档",
  4315. _box, {
  4316. "id": "docs" + cid + stage + task + tool,
  4317. "style": {
  4318. "width": "90%",
  4319. "height": "90%",
  4320. "overflow": 'hidden'
  4321. },
  4322. "onresize": function () { }
  4323. }, {
  4324. closecallback: function () { }
  4325. }, {
  4326. "style": {
  4327. "height": "36px"
  4328. }
  4329. }).form; //创建窗体
  4330. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4331. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4332. })
  4333. _taskbar = {
  4334. "id": str + _formdiv.id,
  4335. "style": {
  4336. "backgroundImage": "url(/img/icon/doc.png)"
  4337. },
  4338. "name": "协同文档",
  4339. "forms": _formdiv,
  4340. "click": function () {
  4341. U.MD.D.I.openApplication(str, obj, info);
  4342. }
  4343. }
  4344. break;
  4345. }
  4346. const script1 = document.createElement("script");
  4347. script1.type = "text/javascript";
  4348. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4349. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4350. const script2 = document.createElement("script");
  4351. script2.type = "text/javascript";
  4352. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4353. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4354. const script3 = document.createElement("script");
  4355. script3.type = "text/javascript";
  4356. script3.charset = "UTF-8";
  4357. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4358. const script4 = document.createElement("script");
  4359. script4.type = "text/javascript";
  4360. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  4361. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  4362. if (_iframe) {
  4363. if (str == 'doc') {
  4364. _iframe = _formdiv.querySelector('iframe')
  4365. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4366. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4367. _iframe.contentWindow.document.body.appendChild(script1);
  4368. _iframe.contentWindow.document.body.appendChild(script2);
  4369. // _iframe.contentWindow.document.body.appendChild(script3);
  4370. _iframe.contentWindow.document.body.appendChild(script4);
  4371. })
  4372. if (onloadListener) {
  4373. _iframe.contentDocument.location.reload()
  4374. } else {
  4375. _iframe.contentDocument.location.reload()
  4376. }
  4377. } else if (str == 'mind') {
  4378. _iframe = _formdiv.querySelector('iframe')
  4379. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4380. _iframe.contentWindow.document.body.appendChild(script1);
  4381. _iframe.contentWindow.document.body.appendChild(script2);
  4382. _iframe.contentWindow.document.body.appendChild(script4);
  4383. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  4384. })
  4385. if (onloadListener) {
  4386. _iframe.contentDocument.location.reload()
  4387. } else {
  4388. _iframe.contentDocument.location.reload()
  4389. }
  4390. } else {
  4391. _iframe.onload = () => {
  4392. _iframe.contentWindow.document.body.appendChild(script1);
  4393. _iframe.contentWindow.document.body.appendChild(script2);
  4394. // _iframe.contentWindow.document.body.appendChild(script3);
  4395. _iframe.contentWindow.document.body.appendChild(script4);
  4396. };
  4397. }
  4398. _jie.onclick = async () => {
  4399. let text = ''
  4400. if (aTool == 6) {
  4401. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4402. } else if (aTool == 3) {
  4403. text = await U.MD.D.I.getEditorContent(_iframe);
  4404. }
  4405. _loading.style.display = 'flex'
  4406. console.log(_loading);
  4407. var _ajs = _iframe.contentWindow.document.createElement("script");
  4408. _ajs.type = "text/javascript";
  4409. _ajs.innerHTML =
  4410. // 'console.log(' + _loading + ');\n' +
  4411. 'var _js = document.createElement("script");\n' +
  4412. '_js.type="text/javascript";\n' +
  4413. '_js.charset="UTF-8";\n' +
  4414. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4415. "_js.onload = function(){\n" +
  4416. ' var a = document.getElementsByTagName("img")\n' +
  4417. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4418. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4419. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4420. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4421. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4422. "beforeUpload_shishi(file," +
  4423. "'" +
  4424. _userid +
  4425. "'" +
  4426. ", " +
  4427. "'" +
  4428. _cid +
  4429. "'" +
  4430. ", " +
  4431. "'" +
  4432. _stage +
  4433. "'" +
  4434. ", " +
  4435. "'" +
  4436. _task +
  4437. "'" +
  4438. ", " +
  4439. "'" +
  4440. _tool +
  4441. "'" +
  4442. ", " +
  4443. "'" +
  4444. str + '_loadLi' +
  4445. "'" +
  4446. ", " +
  4447. "'" +
  4448. aTool +
  4449. "'" +
  4450. ", " +
  4451. "`" +
  4452. text +
  4453. "`" +
  4454. ")\n" +
  4455. " });\n" +
  4456. "}\n" +
  4457. "document.head.appendChild(_js);\n";
  4458. _iframe.contentWindow.document.head.appendChild(_ajs);
  4459. }
  4460. }
  4461. //U.MD.D.I.openClick(str);
  4462. //如果有任务栏信息
  4463. // if (_taskbar) {
  4464. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4465. // }
  4466. }
  4467. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  4468. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4469. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4470. _userinfo = US.userInfo, //登录用户信息
  4471. _userid = US.userInfo.userid //登录用户id
  4472. let _iframe;
  4473. let _cid = cid,
  4474. _stage = stage,
  4475. _task = task,
  4476. _tool = tool;
  4477. var _jie = $$("div", {
  4478. "style": {
  4479. "position": "absolute",
  4480. "bottom": "50px",
  4481. "right": "50px",
  4482. "zIndex": "9999",
  4483. "backgroundColor": "#2268bc",
  4484. "color": "#fff",
  4485. "padding": "12px 20px",
  4486. "cursor": "pointer",
  4487. "borderRadius": "4px",
  4488. },
  4489. "innerHTML": "确认并提交"
  4490. })
  4491. let aTool = ''
  4492. let _loading = document.createElement('div')
  4493. _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;"
  4494. // _loading.id = "";
  4495. let _lchild = document.createElement('div')
  4496. let _limg = document.createElement('img')
  4497. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4498. _limg.style = "width: 26px;margin-right: 10px;"
  4499. _lchild.appendChild(_limg)
  4500. let _lspan = document.createElement('span')
  4501. _lspan.innerHTML = "上传中..."
  4502. _lchild.appendChild(_lspan)
  4503. _lchild.style = "color: #fff;padding: 15px;background: #00000070;font-size: 18px;display:flex;align-items:center;"
  4504. _loading.appendChild(_lchild)
  4505. _loading.addEventListener("click", function (event) {
  4506. event.stopPropagation();
  4507. event.target.style.display = 'flex'
  4508. });
  4509. var _box = $$('div', {
  4510. "style": {
  4511. "position": "relative",
  4512. "width": "100%",
  4513. "height": "100%",
  4514. },
  4515. })
  4516. _box.appendChild(_loading)
  4517. _box.id = str + '_loadLi'
  4518. switch (str) {
  4519. case "whiteboard":
  4520. aTool = 1;
  4521. _iframe = $$("iframe", {
  4522. "frameborder": "no",
  4523. "border": "0",
  4524. "scrolling ": "no",
  4525. "style": {
  4526. "cssText": "border:0;width:100%;height:100%"
  4527. },
  4528. "src": "https://iwb.cocorobo.cn/"
  4529. })
  4530. _box.appendChild(_iframe);
  4531. _box.appendChild(_jie);
  4532. _formdiv = new U.UF.UI.form(
  4533. "电子白板",
  4534. _box, {
  4535. "id": "whiteboards" + cid + stage + task + tool,
  4536. "style": {
  4537. "width": "90%",
  4538. "height": "90%",
  4539. "overflow": 'hidden'
  4540. },
  4541. "onresize": function () { }
  4542. }, {
  4543. closecallback: function () { }
  4544. }, {
  4545. "style": {
  4546. "height": "36px"
  4547. }
  4548. }).form; //创建窗体
  4549. _taskbar = {
  4550. "id": str + _formdiv.id,
  4551. "style": {
  4552. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4553. },
  4554. "name": "电子白板",
  4555. "forms": _formdiv,
  4556. "click": function () {
  4557. U.MD.D.I.openApplication(str, obj, info);
  4558. }
  4559. }
  4560. break;
  4561. case "mind":
  4562. aTool = 3;
  4563. _iframe = $$("iframe", {
  4564. "frameborder": "no",
  4565. "border": "0",
  4566. "scrolling ": "no",
  4567. "style": {
  4568. "cssText": "border:0;width:100%;height:100%"
  4569. },
  4570. "src": "/kityminder-editor/dist/index.html"
  4571. });
  4572. _box.appendChild(_iframe);
  4573. _box.appendChild(_jie);
  4574. _formdiv = new U.UF.UI.form(
  4575. "思维导图",
  4576. _box, { //"/jsmind/example/demo.html"
  4577. "id": "minds" + cid + stage + task + tool,
  4578. "style": {
  4579. "width": "90%",
  4580. "height": "90%",
  4581. "overflow": 'hidden'
  4582. },
  4583. "onresize": function () { }
  4584. }, {
  4585. closecallback: function () { }
  4586. }, {
  4587. "style": {
  4588. "height": "36px"
  4589. }
  4590. }).form; //创建窗体
  4591. _taskbar = {
  4592. "id": str + _formdiv.id,
  4593. "style": {
  4594. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4595. },
  4596. "name": "思维导图",
  4597. "forms": _formdiv,
  4598. "click": function () {
  4599. U.MD.D.I.openApplication(str, obj, info);
  4600. }
  4601. }
  4602. break;
  4603. case "doc":
  4604. aTool = 6;
  4605. _iframe = $$("iframe", {
  4606. "frameborder": "no",
  4607. "border": "0",
  4608. "scrolling ": "no",
  4609. "style": {
  4610. "cssText": "border:0;width:100%;height:100%"
  4611. },
  4612. "src": "/Office/Word/WordEditArea.htm"
  4613. })
  4614. _box.appendChild(_iframe);
  4615. _box.appendChild(_jie);
  4616. _formdiv = new U.UF.UI.form(
  4617. "协同文档",
  4618. _box, {
  4619. "id": "docs" + cid + stage + task + tool,
  4620. "style": {
  4621. "width": "90%",
  4622. "height": "90%",
  4623. "overflow": 'hidden'
  4624. },
  4625. "onresize": function () { }
  4626. }, {
  4627. closecallback: function () { }
  4628. }, {
  4629. "style": {
  4630. "height": "36px"
  4631. }
  4632. }).form; //创建窗体
  4633. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4634. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4635. })
  4636. _taskbar = {
  4637. "id": str + _formdiv.id,
  4638. "style": {
  4639. "backgroundImage": "url(/img/icon/doc.png)"
  4640. },
  4641. "name": "协同文档",
  4642. "forms": _formdiv,
  4643. "click": function () {
  4644. U.MD.D.I.openApplication(str, obj, info);
  4645. }
  4646. }
  4647. break;
  4648. }
  4649. const script1 = document.createElement("script");
  4650. script1.type = "text/javascript";
  4651. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4652. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4653. const script2 = document.createElement("script");
  4654. script2.type = "text/javascript";
  4655. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4656. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4657. const script3 = document.createElement("script");
  4658. script3.type = "text/javascript";
  4659. script3.charset = "UTF-8";
  4660. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4661. const script4 = document.createElement("script");
  4662. script4.type = "text/javascript";
  4663. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  4664. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  4665. if (_iframe) {
  4666. if (str == 'doc') {
  4667. _iframe = _formdiv.querySelector('iframe')
  4668. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4669. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4670. _iframe.contentWindow.document.body.appendChild(script1);
  4671. _iframe.contentWindow.document.body.appendChild(script2);
  4672. // _iframe.contentWindow.document.body.appendChild(script3);
  4673. _iframe.contentWindow.document.body.appendChild(script4);
  4674. })
  4675. if (onloadListener) {
  4676. _iframe.contentDocument.location.reload()
  4677. } else {
  4678. _iframe.contentDocument.location.reload()
  4679. }
  4680. } else if (str == 'mind') {
  4681. _iframe = _formdiv.querySelector('iframe')
  4682. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4683. _iframe.contentWindow.document.body.appendChild(script1);
  4684. _iframe.contentWindow.document.body.appendChild(script2);
  4685. _iframe.contentWindow.document.body.appendChild(script4);
  4686. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  4687. })
  4688. if (onloadListener) {
  4689. _iframe.contentDocument.location.reload()
  4690. } else {
  4691. _iframe.contentDocument.location.reload()
  4692. }
  4693. } else {
  4694. _iframe.onload = () => {
  4695. _iframe.contentWindow.document.body.appendChild(script1);
  4696. _iframe.contentWindow.document.body.appendChild(script2);
  4697. // _iframe.contentWindow.document.body.appendChild(script3);
  4698. _iframe.contentWindow.document.body.appendChild(script4);
  4699. };
  4700. }
  4701. _jie.onclick = async () => {
  4702. let text = ''
  4703. if (aTool == 6) {
  4704. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4705. } else if (aTool == 3) {
  4706. text = await U.MD.D.I.getEditorContent(_iframe);
  4707. }
  4708. _loading.style.display = 'flex'
  4709. console.log(_loading);
  4710. var _ajs = _iframe.contentWindow.document.createElement("script");
  4711. _ajs.type = "text/javascript";
  4712. _ajs.innerHTML =
  4713. // 'console.log(' + _loading + ');\n' +
  4714. 'var _js = document.createElement("script");\n' +
  4715. '_js.type="text/javascript";\n' +
  4716. '_js.charset="UTF-8";\n' +
  4717. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4718. "_js.onload = function(){\n" +
  4719. ' var a = document.getElementsByTagName("img")\n' +
  4720. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4721. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4722. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4723. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4724. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4725. "beforeUpload_shishi(file," +
  4726. "'" +
  4727. _userid +
  4728. "'" +
  4729. ", " +
  4730. "'" +
  4731. _cid +
  4732. "'" +
  4733. ", " +
  4734. "'" +
  4735. _stage +
  4736. "'" +
  4737. ", " +
  4738. "'" +
  4739. _task +
  4740. "'" +
  4741. ", " +
  4742. "'" +
  4743. _tool +
  4744. "'" +
  4745. ", " +
  4746. "'" +
  4747. str + '_loadLi' +
  4748. "'" +
  4749. ", " +
  4750. "'" +
  4751. aTool +
  4752. "'" +
  4753. ", " +
  4754. "`" +
  4755. text +
  4756. "`" +
  4757. ")\n" +
  4758. " });\n" +
  4759. "}\n" +
  4760. "document.head.appendChild(_js);\n";
  4761. _iframe.contentWindow.document.head.appendChild(_ajs);
  4762. }
  4763. }
  4764. //U.MD.D.I.openClick(str);
  4765. //如果有任务栏信息
  4766. // if (_taskbar) {
  4767. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4768. // }
  4769. }
  4770. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  4771. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4772. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4773. _userinfo = US.userInfo, //登录用户信息
  4774. _userid = US.userInfo.userid //登录用户id
  4775. let _iframe;
  4776. let _cid = cid,
  4777. _stage = stage,
  4778. _task = task,
  4779. _tool = tool;
  4780. var _jie = $$("div", {
  4781. "style": {
  4782. "position": "absolute",
  4783. "bottom": "50px",
  4784. "right": "50px",
  4785. "zIndex": "9999",
  4786. "backgroundColor": "#2268bc",
  4787. "color": "#fff",
  4788. "padding": "12px 20px",
  4789. "cursor": "pointer",
  4790. "borderRadius": "4px",
  4791. },
  4792. "innerHTML": "上传模板"
  4793. })
  4794. let aTool = ''
  4795. let _loading = document.createElement('div')
  4796. _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;"
  4797. // _loading.id = "";
  4798. let _lchild = document.createElement('div')
  4799. let _limg = document.createElement('img')
  4800. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4801. _limg.style = "width: 26px;margin-right: 10px;"
  4802. _lchild.appendChild(_limg)
  4803. let _lspan = document.createElement('span')
  4804. _lspan.innerHTML = "上传中..."
  4805. _lchild.appendChild(_lspan)
  4806. _lchild.style = "color: #fff;padding: 15px;background: #00000070;font-size: 18px;display:flex;align-items:center;"
  4807. _loading.appendChild(_lchild)
  4808. _loading.addEventListener("click", function (event) {
  4809. event.stopPropagation();
  4810. event.target.style.display = 'flex'
  4811. });
  4812. var _box = $$('div', {
  4813. "style": {
  4814. "position": "relative",
  4815. "width": "100%",
  4816. "height": "100%",
  4817. },
  4818. })
  4819. _box.appendChild(_loading)
  4820. _box.id = str + '_loadLi'
  4821. switch (str) {
  4822. case "whiteboard":
  4823. aTool = 1;
  4824. _iframe = $$("iframe", {
  4825. "frameborder": "no",
  4826. "border": "0",
  4827. "scrolling ": "no",
  4828. "style": {
  4829. "cssText": "border:0;width:100%;height:100%"
  4830. },
  4831. "src": "https://iwb.cocorobo.cn/"
  4832. })
  4833. _box.appendChild(_iframe);
  4834. _box.appendChild(_jie);
  4835. _formdiv = new U.UF.UI.form(
  4836. "电子白板",
  4837. _box, {
  4838. "id": "whiteboards" + cid + stage + task + tool,
  4839. "style": {
  4840. "width": "90%",
  4841. "height": "90%",
  4842. "overflow": 'hidden'
  4843. },
  4844. "onresize": function () { }
  4845. }, {
  4846. closecallback: function () { }
  4847. }, {
  4848. "style": {
  4849. "height": "36px"
  4850. }
  4851. }).form; //创建窗体
  4852. _taskbar = {
  4853. "id": str + _formdiv.id,
  4854. "style": {
  4855. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4856. },
  4857. "name": "电子白板",
  4858. "forms": _formdiv,
  4859. "click": function () {
  4860. U.MD.D.I.openApplication(str, obj, info);
  4861. }
  4862. }
  4863. break;
  4864. case "mind":
  4865. aTool = 3;
  4866. _iframe = $$("iframe", {
  4867. "frameborder": "no",
  4868. "border": "0",
  4869. "scrolling ": "no",
  4870. "style": {
  4871. "cssText": "border:0;width:100%;height:100%"
  4872. },
  4873. "src": "/kityminder-editor/dist/index.html"
  4874. });
  4875. _box.appendChild(_iframe);
  4876. _box.appendChild(_jie);
  4877. _formdiv = new U.UF.UI.form(
  4878. "思维导图",
  4879. _box, { //"/jsmind/example/demo.html"
  4880. "id": "minds" + cid + stage + task + tool,
  4881. "style": {
  4882. "width": "90%",
  4883. "height": "90%",
  4884. "overflow": 'hidden'
  4885. },
  4886. "onresize": function () { }
  4887. }, {
  4888. closecallback: function () { }
  4889. }, {
  4890. "style": {
  4891. "height": "36px"
  4892. }
  4893. }).form; //创建窗体
  4894. _taskbar = {
  4895. "id": str + _formdiv.id,
  4896. "style": {
  4897. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4898. },
  4899. "name": "思维导图",
  4900. "forms": _formdiv,
  4901. "click": function () {
  4902. U.MD.D.I.openApplication(str, obj, info);
  4903. }
  4904. }
  4905. break;
  4906. case "doc":
  4907. aTool = 6;
  4908. _iframe = $$("iframe", {
  4909. "frameborder": "no",
  4910. "border": "0",
  4911. "scrolling ": "no",
  4912. "style": {
  4913. "cssText": "border:0;width:100%;height:100%"
  4914. },
  4915. "src": "/Office/Word/WordEditArea.htm"
  4916. })
  4917. _box.appendChild(_iframe);
  4918. _box.appendChild(_jie);
  4919. _formdiv = new U.UF.UI.form(
  4920. "协同文档",
  4921. _box, {
  4922. "id": "docs" + cid + stage + task + tool,
  4923. "style": {
  4924. "width": "90%",
  4925. "height": "90%",
  4926. "overflow": 'hidden'
  4927. },
  4928. "onresize": function () { }
  4929. }, {
  4930. closecallback: function () { }
  4931. }, {
  4932. "style": {
  4933. "height": "36px"
  4934. }
  4935. }).form; //创建窗体
  4936. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4937. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4938. })
  4939. _taskbar = {
  4940. "id": str + _formdiv.id,
  4941. "style": {
  4942. "backgroundImage": "url(/img/icon/doc.png)"
  4943. },
  4944. "name": "协同文档",
  4945. "forms": _formdiv,
  4946. "click": function () {
  4947. U.MD.D.I.openApplication(str, obj, info);
  4948. }
  4949. }
  4950. break;
  4951. }
  4952. if (_iframe) {
  4953. if (str == 'doc') {
  4954. _iframe = _formdiv.querySelector('iframe')
  4955. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4956. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4957. })
  4958. if (onloadListener) {
  4959. _iframe.contentDocument.location.reload()
  4960. } else {
  4961. _iframe.contentDocument.location.reload()
  4962. }
  4963. } else if (str == 'mind') {
  4964. _iframe = _formdiv.querySelector('iframe')
  4965. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4966. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  4967. })
  4968. if (onloadListener) {
  4969. _iframe.contentDocument.location.reload()
  4970. } else {
  4971. _iframe.contentDocument.location.reload()
  4972. }
  4973. } else if (str == 'whiteboard') {
  4974. _iframe = _formdiv.querySelector('iframe')
  4975. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4976. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  4977. })
  4978. if (onloadListener) {
  4979. _iframe.contentDocument.location.reload()
  4980. } else {
  4981. _iframe.contentDocument.location.reload()
  4982. }
  4983. } else {
  4984. _iframe.onload = () => {
  4985. };
  4986. }
  4987. _jie.onclick = async () => {
  4988. let text = ''
  4989. let type = '2'
  4990. if (aTool == 1) {
  4991. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4992. type = '3'
  4993. } else if (aTool == 6) {
  4994. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4995. type = '1'
  4996. } else if (aTool == 3) {
  4997. text = await U.MD.D.I.getEditorContent(_iframe);
  4998. type = '2'
  4999. }
  5000. _loading.style.display = 'flex'
  5001. U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading, _lspan)
  5002. }
  5003. }
  5004. //U.MD.D.I.openClick(str);
  5005. //如果有任务栏信息
  5006. // if (_taskbar) {
  5007. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5008. // }
  5009. }
  5010. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  5011. var xmlhttp;
  5012. var Mac, Sn, DeviceId
  5013. if (window.XMLHttpRequest) {
  5014. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5015. xmlhttp = new XMLHttpRequest();
  5016. }
  5017. else {
  5018. // IE6, IE5 浏览器执行代码
  5019. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5020. }
  5021. xmlhttp.onreadystatechange = function () {
  5022. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5023. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5024. // resolve(res.value[0][0].text);
  5025. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5026. $(fileInput).val('');
  5027. });
  5028. }
  5029. }
  5030. }
  5031. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5032. xmlhttp.send();
  5033. }
  5034. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  5035. var xmlhttp;
  5036. var Mac, Sn, DeviceId
  5037. if (window.XMLHttpRequest) {
  5038. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5039. xmlhttp = new XMLHttpRequest();
  5040. }
  5041. else {
  5042. // IE6, IE5 浏览器执行代码
  5043. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5044. }
  5045. xmlhttp.onreadystatechange = function () {
  5046. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5047. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5048. // resolve(res.value[0][0].text);
  5049. if (type == '2') {
  5050. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5051. $(fileInput).val('');
  5052. });
  5053. } else if (type == '3') {
  5054. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5055. }
  5056. } else {
  5057. iframe.contentWindow.h.app.updateScene({ elements: [] })
  5058. }
  5059. }
  5060. }
  5061. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5062. xmlhttp.send();
  5063. }
  5064. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  5065. var xmlhttp;
  5066. var Mac, Sn, DeviceId
  5067. if (window.XMLHttpRequest) {
  5068. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5069. xmlhttp = new XMLHttpRequest();
  5070. }
  5071. else {
  5072. // IE6, IE5 浏览器执行代码
  5073. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5074. }
  5075. xmlhttp.onreadystatechange = function () {
  5076. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5077. if (xmlhttp.response) {
  5078. // resolve(res.value[0][0].text);
  5079. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5080. // $(fileInput).val('');
  5081. // });
  5082. span.innerHTML = '上传成功'
  5083. setTimeout(() => {
  5084. loading.style.display = 'none'
  5085. }, 1000);
  5086. }
  5087. }
  5088. }
  5089. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  5090. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  5091. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  5092. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  5093. // 设置请求头,表示请求体的编码格式
  5094. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
  5095. // 设置请求体,使用url-encoded格式的数据
  5096. }