DeskTop.js 305 KB

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