DeskTop.js 277 KB

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