DeskTop.js 275 KB

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