DeskTop.js 304 KB

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