DeskTop.js 300 KB

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