DeskTop.js 232 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972
  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": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  16. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  17. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  18. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  19. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  20. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  21. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  22. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  23. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  24. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  25. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  26. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  27. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  28. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  29. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  30. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  31. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  32. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  33. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  34. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  35. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  36. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  37. { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  38. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  39. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  40. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  41. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  42. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  43. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  44. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  45. { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  46. ];
  47. //教师桌面图标的全局变量
  48. U.MD.D.I.teacherDeskIcon2 = [
  49. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  50. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  51. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  52. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  53. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  54. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  55. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  56. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  57. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  58. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  59. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  60. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  61. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  62. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  63. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  64. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  65. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  66. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  67. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  68. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  69. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  70. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  71. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  72. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  73. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  74. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  75. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  76. { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  77. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  78. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  79. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  80. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  81. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  82. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  83. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  84. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  85. ];
  86. U.MD.D.I.studentDeskIcon = [
  87. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  88. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  89. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  90. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  91. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  92. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  93. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  94. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  95. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  96. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  97. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  98. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  99. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  100. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  101. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  102. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  103. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  104. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  105. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  106. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  107. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  108. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  109. // { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  110. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  111. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  112. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  113. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  114. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  115. { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  116. ];
  117. U.MD.D.I.studentDeskIcon2 = [
  118. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  119. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  120. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  121. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  122. ]
  123. U.MD.D.I.studentDeskIcon3 = [
  124. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  125. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  126. ]
  127. U.MD.D.I.schoolDeskIcon = [
  128. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  129. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  130. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  131. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  132. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  133. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  134. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  135. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  136. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  137. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  138. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  139. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  140. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  141. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  142. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  143. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  144. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  145. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  146. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  147. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  148. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  149. ];
  150. U.MD.D.I.orgDeskIcon = [
  151. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  152. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  153. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  154. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  155. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  156. ];
  157. U.MD.D.I.orgStemDeskIcon = [
  158. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  159. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  160. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  161. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  162. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  163. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  164. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  165. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  166. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  167. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  168. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  169. ];
  170. U.MD.D.I.szulsDeskIcon = [
  171. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  172. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.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.hanDeskIcon = [
  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": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  185. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  186. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  187. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  188. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  189. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  190. { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  191. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  192. ];
  193. U.MD.D.I.GMteacherDeskIcon = [
  194. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  195. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  196. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  197. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  198. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  199. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  200. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  201. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  202. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  203. ];
  204. U.MD.D.I.GMstudentDeskIcon = [
  205. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  206. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  207. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  208. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  209. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  210. ];
  211. //北师大
  212. U.MD.D.I.BSDNSteacherDeskIcon = [
  213. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  214. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  215. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  216. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  217. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  218. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  219. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  220. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  221. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  222. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  223. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  224. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  225. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  226. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  227. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  228. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  229. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  230. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  231. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  232. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  233. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  234. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  235. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  236. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  237. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  238. // { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  239. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  240. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  241. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  242. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  243. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  244. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  245. { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  246. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  247. ];
  248. //松山湖
  249. U.MD.D.I.SONGteacherDeskIcon = [
  250. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  251. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  252. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  253. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  254. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  255. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  256. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  257. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  258. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  259. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  260. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  261. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  262. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  263. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  264. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  265. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  266. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  267. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  268. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  269. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  270. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  271. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  272. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  273. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  274. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  275. // { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  276. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  277. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  278. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  279. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  280. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  281. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  282. { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  283. ];
  284. U.MD.D.I.tcStudentDeskIcon = [
  285. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  286. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  287. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  288. ];
  289. U.MD.D.I.tcTeacherDeskIcon = [
  290. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  291. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  292. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  293. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  294. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  295. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  296. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  297. ];
  298. U.MD.D.I.tcOrganizerDeskIcon = [
  299. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  300. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  301. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  302. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  303. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  304. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  305. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  306. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  307. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  308. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  309. ];
  310. U.MD.D.I.szscStudentDeskIcon = [
  311. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  312. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  313. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  314. ];
  315. U.MD.D.I.szscTeacherDeskIcon = [
  316. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  317. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  318. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  319. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  320. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  321. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  322. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  323. ];
  324. U.MD.D.I.szscOrganizerDeskIcon = [
  325. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  326. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  327. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  328. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  329. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  330. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  331. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  332. ];
  333. U.MD.D.I.wankeTeacherDeskIcon = [
  334. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  335. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  336. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  337. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  338. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  339. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  340. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  341. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  342. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  343. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  344. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  345. ];
  346. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  347. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  348. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  349. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  350. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  351. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  352. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  353. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  354. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  355. ];
  356. //#region 桌面初始化a
  357. /**
  358. * 初始化桌面的起始函数
  359. *
  360. */
  361. U.MD.D.I.init = function () {
  362. if ($("#U_MD_D_K")[0]) {
  363. //初始化桌面图标
  364. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0]);
  365. // var clickUrl = ':12588/requestIp.php';
  366. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  367. // U.MD.D.I.Ip = data;
  368. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  369. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  370. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  371. // })
  372. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  373. // })
  374. }
  375. }
  376. /**
  377. * 隐藏任务栏
  378. *
  379. * @param {element} 桌面元素
  380. */
  381. U.MD.D.I.hiddenTaskbar = function (el) {
  382. //任务栏位置变小
  383. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  384. //桌面的位置变大
  385. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  386. }
  387. /**
  388. * 隐藏任务栏
  389. *
  390. * @param {element} 桌面元素
  391. */
  392. U.MD.D.I.hiddenTaskbarout = function (el) {
  393. //任务栏位置变小
  394. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  395. //任务栏位置变化
  396. U.selectEl(el).css({ "bottom": "-60px" });
  397. //桌面的位置变大
  398. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  399. }
  400. }
  401. /**
  402. * 初始化打印桌面图标
  403. *
  404. * @param {element} 桌面元素
  405. */
  406. U.MD.D.I.initDesktopIcons = function (el) {
  407. var i, //用于循环
  408. _content, //桌面图标元素
  409. _iconcontent, //桌面图标元素
  410. _frag = $$("frag"), //定义一个碎片元素
  411. _type = US.userInfo.type,
  412. _org = US.userInfo.org,
  413. _oid = US.userInfo.organizeid,
  414. _role = US.userInfo.role,
  415. _teacherDesktopIconInfo = U.MD.D.I.teacherDeskIcon, //获取教师端桌面图标
  416. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  417. _studentDesktopIconInfo = U.MD.D.I.studentDeskIcon, //获取学生端桌面图标
  418. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  419. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  420. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  421. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  422. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  423. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  424. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  425. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  426. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  427. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  428. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  429. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  430. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  431. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  432. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  433. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  434. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  435. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  436. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  437. 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'];
  438. 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"];
  439. //清楚桌面图标
  440. el.innerHTML = "";
  441. //循环创建桌面图标
  442. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  443. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  444. _content = $$("div", {
  445. className: "U_MD_D_KO",
  446. "onmousedown": U.UF.C.closure(function (obj) {
  447. //防止拖动图标即打开了桌面应用
  448. U.MD.D.click(this, obj);
  449. }, [_studentDesktopIconInfo[i]]),
  450. "onclick": U.UF.C.closure(function (obj) {
  451. //防止拖动图标即打开了桌面应用
  452. U.MD.D.click(this, obj);
  453. }, [_studentDesktopIconInfo[i]])
  454. }, _frag); //
  455. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  456. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  457. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  458. }
  459. }else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  460. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  461. _content = $$("div", {
  462. className: "U_MD_D_KO",
  463. "onmousedown": U.UF.C.closure(function (obj) {
  464. //防止拖动图标即打开了桌面应用
  465. U.MD.D.click(this, obj);
  466. }, [_studentDesktopIconInfo[i]]),
  467. "onclick": U.UF.C.closure(function (obj) {
  468. //防止拖动图标即打开了桌面应用
  469. U.MD.D.click(this, obj);
  470. }, [_studentDesktopIconInfo[i]])
  471. }, _frag); //
  472. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  473. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  474. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  475. }
  476. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  477. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  478. _content = $$("div", {
  479. className: "U_MD_D_KO",
  480. "onmousedown": U.UF.C.closure(function (obj) {
  481. //防止拖动图标即打开了桌面应用
  482. U.MD.D.click(this, obj);
  483. }, [_tcStudentDeskIconInfo[i]]),
  484. "onclick": U.UF.C.closure(function (obj) {
  485. //防止拖动图标即打开了桌面应用
  486. U.MD.D.click(this, obj);
  487. }, [_tcStudentDeskIconInfo[i]])
  488. }, _frag); //
  489. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  490. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  491. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  492. }
  493. }else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  494. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  495. _content = $$("div", {
  496. className: "U_MD_D_KO",
  497. "onmousedown": U.UF.C.closure(function (obj) {
  498. //防止拖动图标即打开了桌面应用
  499. U.MD.D.click(this, obj);
  500. }, [_szscStudentDeskIconInfo[i]]),
  501. "onclick": U.UF.C.closure(function (obj) {
  502. //防止拖动图标即打开了桌面应用
  503. U.MD.D.click(this, obj);
  504. }, [_szscStudentDeskIconInfo[i]])
  505. }, _frag); //
  506. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  507. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  508. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  509. }
  510. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  511. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  512. _content = $$("div", {
  513. className: "U_MD_D_KO",
  514. "onmousedown": U.UF.C.closure(function (obj) {
  515. //防止拖动图标即打开了桌面应用
  516. U.MD.D.click(this, obj);
  517. }, [_studentDesktopIconInfo3[i]]),
  518. "onclick": U.UF.C.closure(function (obj) {
  519. //防止拖动图标即打开了桌面应用
  520. U.MD.D.click(this, obj);
  521. }, [_studentDesktopIconInfo3[i]])
  522. }, _frag); //
  523. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  524. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  525. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  526. }
  527. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  528. for (i = 0; i < _studentDesktopIconInfo2.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. }, [_studentDesktopIconInfo2[i]]),
  535. "onclick": U.UF.C.closure(function (obj) {
  536. //防止拖动图标即打开了桌面应用
  537. U.MD.D.click(this, obj);
  538. }, [_studentDesktopIconInfo2[i]])
  539. }, _frag); //
  540. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  541. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  542. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  543. }
  544. }else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  545. for (i = 0; i < _wanketeacherDesktopIconInfo.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. }, [_wanketeacherDesktopIconInfo[i]]),
  552. "onclick": U.UF.C.closure(function (obj) {
  553. //防止拖动图标即打开了桌面应用
  554. U.MD.D.click(this, obj);
  555. }, [_wanketeacherDesktopIconInfo[i]])
  556. }, _frag); //
  557. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  558. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  559. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  560. }
  561. } else if ((_type == 1 || _type == 4) && ( _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  562. for (i = 0; i < _teacherDesktopIconInfo2.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. }, [_teacherDesktopIconInfo2[i]]),
  569. "onclick": U.UF.C.closure(function (obj) {
  570. //防止拖动图标即打开了桌面应用
  571. U.MD.D.click(this, obj);
  572. }, [_teacherDesktopIconInfo2[i]])
  573. }, _frag); //
  574. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  575. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  576. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  577. }
  578. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5")) {
  579. for (i = 0; i < _lhsteacherDesktopIconInfo.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. }, [_lhsteacherDesktopIconInfo[i]]),
  586. "onclick": U.UF.C.closure(function (obj) {
  587. //防止拖动图标即打开了桌面应用
  588. U.MD.D.click(this, obj);
  589. }, [_lhsteacherDesktopIconInfo[i]])
  590. }, _frag); //
  591. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  592. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  593. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  594. }
  595. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  596. for (i = 0; i < _hanDeskIcon.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. }, [_hanDeskIcon[i]]),
  603. "onclick": U.UF.C.closure(function (obj) {
  604. //防止拖动图标即打开了桌面应用
  605. U.MD.D.click(this, obj);
  606. }, [_hanDeskIcon[i]])
  607. }, _frag); //
  608. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  609. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  610. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  611. }
  612. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  613. for (i = 0; i < _orgStemDeskIcon.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. }, [_orgStemDeskIcon[i]]),
  620. "onclick": U.UF.C.closure(function (obj) {
  621. //防止拖动图标即打开了桌面应用
  622. U.MD.D.click(this, obj);
  623. }, [_orgStemDeskIcon[i]])
  624. }, _frag); //
  625. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  626. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  627. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  628. }
  629. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  630. for (i = 0; i < _szulsDeskIcon.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. }, [_szulsDeskIcon[i]]),
  637. "onclick": U.UF.C.closure(function (obj) {
  638. //防止拖动图标即打开了桌面应用
  639. U.MD.D.click(this, obj);
  640. }, [_szulsDeskIcon[i]])
  641. }, _frag); //
  642. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  643. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  644. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  645. }
  646. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  647. for (i = 0; i < _orgDesktopIconInfo.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. }, [_orgDesktopIconInfo[i]]),
  654. "onclick": U.UF.C.closure(function (obj) {
  655. //防止拖动图标即打开了桌面应用
  656. U.MD.D.click(this, obj);
  657. }, [_orgDesktopIconInfo[i]])
  658. }, _frag); //
  659. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  660. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  661. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  662. }
  663. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  664. for (i = 0; i < _schoolDesktopIconInfo.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. }, [_schoolDesktopIconInfo[i]]),
  671. "onclick": U.UF.C.closure(function (obj) {
  672. //防止拖动图标即打开了桌面应用
  673. U.MD.D.click(this, obj);
  674. }, [_schoolDesktopIconInfo[i]])
  675. }, _frag); //
  676. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  677. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  678. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  679. }
  680. }else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  681. for (i = 0; i < _GMteacherDesktopIconInfo.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. }, [_GMteacherDesktopIconInfo[i]]),
  688. "onclick": U.UF.C.closure(function (obj) {
  689. //防止拖动图标即打开了桌面应用
  690. U.MD.D.click(this, obj);
  691. }, [_GMteacherDesktopIconInfo[i]])
  692. }, _frag); //
  693. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  694. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  695. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  696. }
  697. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  698. for (i = 0; i < _SONGteacherDesktopIconInfo.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. }, [_SONGteacherDesktopIconInfo[i]]),
  705. "onclick": U.UF.C.closure(function (obj) {
  706. //防止拖动图标即打开了桌面应用
  707. U.MD.D.click(this, obj);
  708. }, [_SONGteacherDesktopIconInfo[i]])
  709. }, _frag); //
  710. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  711. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  712. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  713. }
  714. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  715. for (i = 0; i < _GMstudentDesktopIconInfo.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. }, [_GMstudentDesktopIconInfo[i]]),
  722. "onclick": U.UF.C.closure(function (obj) {
  723. //防止拖动图标即打开了桌面应用
  724. U.MD.D.click(this, obj);
  725. }, [_GMstudentDesktopIconInfo[i]])
  726. }, _frag); //
  727. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  728. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  729. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  730. }
  731. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  732. for (i = 0; i < _tcTeacherDeskIconInfo.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. }, [_tcTeacherDeskIconInfo[i]]),
  739. "onclick": U.UF.C.closure(function (obj) {
  740. //防止拖动图标即打开了桌面应用
  741. U.MD.D.click(this, obj);
  742. }, [_tcTeacherDeskIconInfo[i]])
  743. }, _frag); //
  744. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  745. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  746. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  747. }
  748. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  749. for (i = 0; i < _tcOrganizerDeskIconInfo.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. }, [_tcOrganizerDeskIconInfo[i]]),
  756. "onclick": U.UF.C.closure(function (obj) {
  757. //防止拖动图标即打开了桌面应用
  758. U.MD.D.click(this, obj);
  759. }, [_tcOrganizerDeskIconInfo[i]])
  760. }, _frag); //
  761. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  762. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  763. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  764. }
  765. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  766. for (i = 0; i < _szscTeacherDeskIconInfo.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. }, [_szscTeacherDeskIconInfo[i]]),
  773. "onclick": U.UF.C.closure(function (obj) {
  774. //防止拖动图标即打开了桌面应用
  775. U.MD.D.click(this, obj);
  776. }, [_szscTeacherDeskIconInfo[i]])
  777. }, _frag); //
  778. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  779. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  780. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  781. }
  782. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  783. for (i = 0; i < _szscOrganizerDeskIconInfo.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. }, [_szscOrganizerDeskIconInfo[i]]),
  790. "onclick": U.UF.C.closure(function (obj) {
  791. //防止拖动图标即打开了桌面应用
  792. U.MD.D.click(this, obj);
  793. }, [_szscOrganizerDeskIconInfo[i]])
  794. }, _frag); //
  795. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  796. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  797. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  798. }
  799. } else {
  800. for (i = 0; i < _teacherDesktopIconInfo.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. }, [_teacherDesktopIconInfo[i]]),
  807. "onclick": U.UF.C.closure(function (obj) {
  808. //防止拖动图标即打开了桌面应用
  809. U.MD.D.click(this, obj);
  810. }, [_teacherDesktopIconInfo[i]])
  811. }, _frag); //
  812. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  813. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  814. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  815. }
  816. }
  817. // else if ((_type == 1 || _type == 4) && _oid == "857af1c7-c8ee-4b04-85b5-fd182903adb7") {
  818. // for (i = 0; i < _BSDNSteacherDesktopIconInfo.length; i++) {
  819. // _content = $$("div", {
  820. // className: "U_MD_D_KO",
  821. // "onmousedown": U.UF.C.closure(function(obj) {
  822. // //防止拖动图标即打开了桌面应用
  823. // U.MD.D.click(this, obj);
  824. // }, [_BSDNSteacherDesktopIconInfo[i]]),
  825. // "onclick": U.UF.C.closure(function(obj) {
  826. // //防止拖动图标即打开了桌面应用
  827. // U.MD.D.click(this, obj);
  828. // }, [_BSDNSteacherDesktopIconInfo[i]])
  829. // }, _frag); //
  830. // _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  831. // $$("div", { className: "U_MD_D_KOS U_Img", "style": _BSDNSteacherDesktopIconInfo[i].style }, _iconcontent);
  832. // $$("div", { className: "U_MD_D_KOX", "innerHTML": _BSDNSteacherDesktopIconInfo[i].Name }, _iconcontent);
  833. // }
  834. // }
  835. //加载好后给图标定位
  836. U.MD.D.iconPostion($(_frag).Child());
  837. //把图标加载到页面
  838. el.appendChild(_frag);
  839. }
  840. /**
  841. * 显示任务栏
  842. *
  843. * @param {element} 桌面元素
  844. */
  845. U.MD.D.I.displayTaskbar = function (el) {
  846. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  847. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  848. //任务栏位置变化
  849. U.selectEl(el).css({ "bottom": "0px" });
  850. //桌面位置变话
  851. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  852. }
  853. }
  854. //#region 桌面图标拖动逻辑
  855. /**
  856. * 桌面排列图标
  857. *
  858. * @param {element} 桌面元素
  859. * @param {object} 上下相距的距离
  860. * @param {object} 左右相距的距离
  861. * @return {object} 命名空间
  862. */
  863. U.MD.D.iconPostion = function (childs, top, left) {
  864. var i; //用于循环处理
  865. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  866. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  867. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  868. for (i = 0; i < childs.length; i++) {
  869. //如果竖排top超过了范围处理
  870. if (top + 95 > US.height - 10) {
  871. //left超过了页面范围处理,则向上重叠打印处理
  872. if ((left + 180) > US.width) {
  873. top -= 110;
  874. left -= 90;
  875. }
  876. //没有超过范围,那么left+90添加到下一个竖排打印
  877. else {
  878. left += 90;
  879. top = 15;
  880. };
  881. }
  882. //给图标的位置赋值
  883. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  884. if (i < childs.length - 1) {
  885. //页面图标每次向下加95
  886. top += 95;
  887. }
  888. }
  889. //返回最后调用的图标的位置
  890. return [top, left];
  891. }
  892. /**
  893. * 桌面点击事件逻辑
  894. *
  895. * @param {element} 桌面元素
  896. * @param {object} 上下相距的距离
  897. * @param {object} 左右相距的距离
  898. * @return {object} 命名空间
  899. */
  900. U.MD.D.click = function (el, obj) {
  901. var _buttonnumber = event.button; //点击的按钮的事件值
  902. var _userinfo = US.userInfo;
  903. U.UF.EV.stopBubble(); //阻止向上冒泡
  904. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  905. if (_buttonnumber < 2) {
  906. //如果是click事件的处理
  907. if (event.type == "click") {
  908. //如果元素在mousemove事件中没有移动则出发click事件
  909. if (!U.MD.D.I.IsDrag) {
  910. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  911. U.alert("请先登录您的账号!");
  912. setTimeout(() => {
  913. U.MD.U.L.login();
  914. }, 2000);
  915. } else {
  916. //打开应用处理
  917. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  918. }
  919. }
  920. }
  921. //如果是mouse事件的处理
  922. else {
  923. //拖动处理,添加拖动和拖动结束事件
  924. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  925. }
  926. U.MD.D.I.IsDrag = false;
  927. }
  928. }
  929. /**
  930. * 拖动的处理
  931. *
  932. */
  933. U.MD.D.iconMove = function () {
  934. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  935. U.MD.D.I.IsDrag = true;
  936. }
  937. /**
  938. * 拖动结束后,这里是定位处理,以网状的形式定位
  939. *
  940. * @param {element} 拖动的元素
  941. * @return {object} 命名空间
  942. */
  943. U.MD.D.iconUp = function (el) {
  944. var _top = 15,
  945. _left = 20,
  946. _margin,
  947. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  948. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  949. if (_positioninfo["OT"] > 15) {
  950. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  951. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  952. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  953. }
  954. if (_positioninfo["OL"] > 20) {
  955. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  956. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  957. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  958. }
  959. //while循环判断么一个重叠的元素
  960. do {
  961. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  962. _top = _positioninfo[0] + 95; //得到定位后的top
  963. _left = _positioninfo[1]; //得到定位后的left
  964. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  965. }
  966. /**
  967. * 判断拖动后图标是否重叠
  968. *
  969. * @param {element} 拖动的元素
  970. * @param {element} 桌面所有的元素
  971. * @param {array} 拖动元素的位置
  972. ----------[0] 上 top
  973. ----------[1] 左 left
  974. * @return {object} 命名空间
  975. */
  976. U.MD.D.isOverlap = function (el, childs, postionarray) {
  977. //循环所有的图标
  978. for (var i = 0; i < childs.length; i++) {
  979. //判断有没有和该图标诶子重叠的元素
  980. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  981. return childs[i]; //如果有返回
  982. }
  983. }
  984. }
  985. //#endregion
  986. //#endregion
  987. //#region 桌面应用
  988. /**
  989. * 打开应用
  990. *
  991. * @param {string} 类型
  992. -----------------Disk 网盘系统
  993. -----------------PDisk 学习系统网盘
  994. -----------------Poto 图片
  995. -----------------Video 视频
  996. -----------------Music 音乐
  997. -----------------Word word
  998. -----------------Excel excel
  999. -----------------Txt 记事本
  1000. -----------------PB 学习系统
  1001. -----------------Blog 朋友圈系统
  1002. -----------------FTP ftp系统
  1003. -----------------Group 好友群
  1004. -----------------SY 首页系统
  1005. -----------------Set 个人设置
  1006. -----------------XSet 系统设置
  1007. -----------------App 我们所有的app
  1008. -----------------BC c.1473.cn 平台
  1009. -----------------CWeb d.1473.cn 变成平台
  1010. -----------------其他的外联系统 我们统一用iframe打开
  1011. * @param {array} 类型
  1012. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1013. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1014. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1015. 如果第一个参数为其他,则无第二个参数
  1016. * @returns {array}
  1017. */
  1018. window.addEventListener('message', function (e) { // 监听 message 事件
  1019. // alert(e.data.type);
  1020. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1021. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1022. //3是展示全部阶段 2学生 1老师 4专家
  1023. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1024. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1025. //3是展示全部阶段 2学生 1老师 4专家
  1026. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1027. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1028. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1029. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1030. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1031. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1032. //3是展示全部阶段 2学生 1老师 4专家
  1033. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1034. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1035. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1036. U.MD.D.I.selectUser();
  1037. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1038. var _formel = document.getElementById("study");
  1039. U.UF.F.windowZooming(_formel);
  1040. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1041. var _formel = document.getElementById("studyDetail");
  1042. U.UF.F.windowZooming(_formel);
  1043. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1044. var _formel = document.getElementById("studyDetail");
  1045. U.UF.F.windowZooming(_formel);
  1046. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1047. var _formel = document.getElementById("studentStudy");
  1048. U.UF.F.windowZooming(_formel);
  1049. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1050. var _formel = document.getElementById("study");
  1051. //如果最大化了,那么就把他缩小
  1052. // if (_formel.ismaximize) {
  1053. // return;
  1054. // }
  1055. // U.UF.F.windowZooming(_formel);
  1056. U.UF.F.topWindow(_formel);
  1057. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1058. var _formel = document.getElementById("studyDetail");
  1059. //如果最大化了,那么就把他缩小
  1060. // if (_formel.ismaximize) {
  1061. // return;
  1062. // }
  1063. // U.UF.F.windowZooming(_formel);
  1064. U.UF.F.topWindow(_formel);
  1065. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1066. var _formel = document.getElementById("studentStudy");
  1067. // if (_formel.ismaximize) {
  1068. // return;
  1069. // }
  1070. // U.UF.F.windowZooming(_formel);
  1071. U.UF.F.topWindow(_formel);
  1072. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1073. var _formel = document.getElementById("study");
  1074. // if (_formel.ismaximize) {
  1075. // return;
  1076. // }
  1077. // U.UF.F.windowZooming(_formel);
  1078. U.UF.F.topWindow(_formel);
  1079. }else if (e.data.allScreen && e.data.allScreen == "1s") {
  1080. var _formel = document.getElementById("studentIndex");
  1081. U.UF.F.windowZooming(_formel);
  1082. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1083. var _formel = document.getElementById("studyDetailS");
  1084. U.UF.F.windowZooming(_formel);
  1085. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1086. var _formel = document.getElementById("studyDetailS");
  1087. U.UF.F.windowZooming(_formel);
  1088. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1089. var _formel = document.getElementById("studyDetailS");
  1090. U.UF.F.topWindow(_formel);
  1091. } else if (e.data.tools && e.data.tools == "1") {
  1092. // U.MD.D.I.openApplication("whiteboard")
  1093. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1094. } else if (e.data.tools && e.data.tools == "2") {
  1095. U.MD.D.I.openApplication("note")
  1096. } else if (e.data.tools && e.data.tools == "3") {
  1097. // U.MD.D.I.openApplication("mind")
  1098. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1099. } else if (e.data.tools && e.data.tools == "4") {
  1100. U.MD.D.I.openApplication("investigation")
  1101. } else if (e.data.tools && e.data.tools == "6") {
  1102. // U.MD.D.I.openApplication("doc")
  1103. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1104. } else if (e.data.tools && e.data.tools == "7") {
  1105. // U.MD.D.I.openApplication("mindNetwork")
  1106. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1107. } else if (e.data.tools && e.data.tools == "8") {
  1108. U.MD.D.I.openApplication("library")
  1109. } else if (e.data.tools && e.data.tools == "17") {
  1110. U.MD.D.I.openApplication("stuLibrary")
  1111. } else if (e.data.tools && e.data.tools == "18") {
  1112. U.MD.D.I.openApplication("train")
  1113. } else if (e.data.tools && e.data.tools == "21") {
  1114. U.MD.D.I.openApplication("program")
  1115. } else if (e.data.tools && e.data.tools == "22") {
  1116. U.MD.D.I.openApplication("AIprogram2")
  1117. } else if (e.data.tools && e.data.tools == "23") {
  1118. U.MD.D.I.openApplication("Pythonprogram")
  1119. } else if (e.data.tools && e.data.tools == "24") {
  1120. U.MD.D.I.openApplication("AIprogram")
  1121. } else if (e.data.tools && e.data.tools == "25") {
  1122. U.MD.D.I.openApplication("sys")
  1123. } else if (e.data.tools && e.data.tools == "26") {
  1124. // U.MD.D.I.openApplication("courseDesign")
  1125. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1126. } else if (e.data.tools && e.data.tools == "31") {
  1127. U.MD.D.I.openApplication("netWorkPanel")
  1128. } else if (e.data.tools && e.data.tools == "32") {
  1129. U.MD.D.I.openApplication("codeEdit")
  1130. } else if (e.data.tools && e.data.tools == "28") {
  1131. U.MD.D.I.openApplication("translation")
  1132. } else if (e.data.tools && e.data.tools == "37") {
  1133. U.MD.D.I.openApplication("mohe")
  1134. } else if (e.data.tools && e.data.tools == "38") {
  1135. U.MD.D.I.openApplication("24game")
  1136. } else if (e.data.tools && e.data.tools == "39") {
  1137. U.MD.D.I.openApplication("GeoGebra")
  1138. } else if (e.data.tools && e.data.tools == "43") {
  1139. U.MD.D.I.openApplication("studentEvaluate")
  1140. } else if (e.data.tools && e.data.tools == "44") {
  1141. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1142. } else if (e.data.tools && e.data.tools == "46") {
  1143. U.MD.D.I.openApplication("project")
  1144. } else if (e.data.tools && e.data.tools == "1s") {
  1145. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1146. } else if (e.data.tools && e.data.tools == "3s") {
  1147. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1148. } else if (e.data.tools && e.data.tools == "6s") {
  1149. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1150. } else if (e.data.tools && e.data.tools == "3y") {
  1151. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1152. } else if (e.data.tools && e.data.tools == "1y") {
  1153. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1154. }
  1155. });
  1156. U.MD.D.I.selectUser = function () {
  1157. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1158. if (res.value[0].length > 0) {
  1159. US.userInfo = res.value[0][0];
  1160. $(".userName")[0].innerHTML = US.userInfo.username;
  1161. }
  1162. }, [], { "type": "GET", "withCredentials": true });
  1163. }
  1164. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1165. var _userinfo = US.userInfo, //登录用户信息
  1166. _userid = US.userInfo.userid, //登录用户id
  1167. _oid = _userinfo.organizeid,
  1168. _type = US.userInfo.type,
  1169. _org = US.userInfo.org,
  1170. _role = US.userInfo.role,
  1171. _classId = US.userInfo.classid;
  1172. if (_type == 4) {
  1173. tType = 4
  1174. }
  1175. switch (str) {
  1176. case "studyDetail":
  1177. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1178. setTimeout(() => {
  1179. U.MD.U.L.login();
  1180. }, 2000);
  1181. } else {
  1182. _formdiv = new U.UF.UI.form(
  1183. "课程详情",
  1184. $$("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 }), {
  1185. "id": "studyDetail",
  1186. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1187. "onresize": function () { }
  1188. }, {
  1189. closecallback: function () { }
  1190. }, { "style": { "height": "36px" } }).form; //创建窗体
  1191. _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); } }
  1192. break;
  1193. }
  1194. case "studyDetailS":
  1195. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1196. setTimeout(() => {
  1197. U.MD.U.L.login();
  1198. }, 2000);
  1199. } else {
  1200. _formdiv = new U.UF.UI.form(
  1201. "项目详情",
  1202. $$("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 }), {
  1203. "id": "studyDetailS",
  1204. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1205. "onresize": function () { }
  1206. }, {
  1207. closecallback: function () { }
  1208. }, { "style": { "height": "36px" } }).form; //创建窗体
  1209. _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); } }
  1210. break;
  1211. }
  1212. case "studyDetailGM":
  1213. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1214. setTimeout(() => {
  1215. U.MD.U.L.login();
  1216. }, 2000);
  1217. } else {
  1218. _formdiv = new U.UF.UI.form(
  1219. "课程详情",
  1220. $$("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 }), {
  1221. "id": "studyDetail",
  1222. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1223. "onresize": function () { }
  1224. }, {
  1225. closecallback: function () { }
  1226. }, { "style": { "height": "36px" } }).form; //创建窗体
  1227. _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); } }
  1228. break;
  1229. }
  1230. case "hanUrl":
  1231. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1232. setTimeout(() => {
  1233. U.MD.U.L.login();
  1234. }, 2000);
  1235. } else {
  1236. _formdiv = new U.UF.UI.form(
  1237. "汉字宫",
  1238. $$("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" }), {
  1239. "id": "hanUrl",
  1240. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1241. "onresize": function () { }
  1242. }, {
  1243. closecallback: function () { }
  1244. }, { "style": { "height": "36px" } }).form; //创建窗体
  1245. _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); } }
  1246. break;
  1247. }
  1248. }
  1249. }
  1250. U.MD.D.I.openApplication = function (str, obj, info) {
  1251. obj = obj || {};
  1252. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1253. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1254. _userinfo = US.userInfo, //登录用户信息
  1255. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1256. _oid = obj.organizeid || _userinfo.organizeid,
  1257. _type = US.userInfo.type,
  1258. _org = US.userInfo.org,
  1259. _role = US.userInfo.role,
  1260. _classId = US.userInfo.classid,
  1261. _TscreenType = 1
  1262. _screenType = 2,
  1263. _SscreenType = 3;
  1264. if(str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")){
  1265. return;
  1266. }
  1267. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1268. switch (str) {
  1269. case "studnetProject": //好友打开
  1270. _formdiv = new U.UF.UI.form(
  1271. "我的项目",
  1272. $$("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 }), {
  1273. "id": "studnetProject",
  1274. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1275. "onresize": function () { }
  1276. }, {
  1277. closecallback: function () { }
  1278. }, { "style": { "height": "36px" } }).form; //创建窗体
  1279. _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); } }
  1280. break;
  1281. case "studentEvaluate": //好友打开
  1282. _formdiv = new U.UF.UI.form(
  1283. "我的评价",
  1284. $$("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 }), {
  1285. "id": "studentEvaluate",
  1286. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1287. "onresize": function () { }
  1288. }, {
  1289. closecallback: function () { }
  1290. }, { "style": { "height": "36px" } }).form; //创建窗体
  1291. _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); } }
  1292. break;
  1293. case "my":
  1294. _formdiv = new U.UF.UI.form(
  1295. "我的资料",
  1296. $$("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 }), {
  1297. "id": "my",
  1298. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1299. "onresize": function () { }
  1300. }, {
  1301. closecallback: function () { }
  1302. }, { "style": { "height": "36px" } }).form; //创建窗体
  1303. _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); } }
  1304. break;
  1305. case "program":
  1306. _formdiv = new U.UF.UI.form(
  1307. "编程平台",
  1308. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1309. "id": "program",
  1310. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1311. "onresize": function () { }
  1312. }, {
  1313. closecallback: function () { }
  1314. }, { "style": { "height": "36px" } }).form; //创建窗体
  1315. _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); } }
  1316. break;
  1317. case "library":
  1318. _formdiv = new U.UF.UI.form(
  1319. "素材库",
  1320. $$("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 }), {
  1321. "id": "library",
  1322. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1323. "onresize": function () { }
  1324. }, {
  1325. closecallback: function () { }
  1326. }, { "style": { "height": "36px" } }).form; //创建窗体
  1327. _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); } }
  1328. break;
  1329. case "whiteboard":
  1330. _formdiv = new U.UF.UI.form(
  1331. "电子白板",
  1332. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1333. "id": "whiteboard",
  1334. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1335. "onresize": function () { }
  1336. }, {
  1337. closecallback: function () { }
  1338. }, { "style": { "height": "36px" } }).form; //创建窗体
  1339. _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); } }
  1340. break;
  1341. case "investigation":
  1342. _formdiv = new U.UF.UI.form(
  1343. "问卷调查",
  1344. $$("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 }), {
  1345. "id": "investigation",
  1346. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1347. "onresize": function () { }
  1348. }, {
  1349. closecallback: function () { }
  1350. }, { "style": { "height": "36px" } }).form; //创建窗体
  1351. _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); } }
  1352. break;
  1353. case "note":
  1354. _formdiv = new U.UF.UI.form(
  1355. "便签分类",
  1356. $$("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 }), {
  1357. "id": "note",
  1358. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1359. "onresize": function () { }
  1360. }, {
  1361. closecallback: function () { }
  1362. }, { "style": { "height": "36px" } }).form; //创建窗体
  1363. _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); } }
  1364. break;
  1365. // case "score":
  1366. // _formdiv = new U.UF.UI.form(
  1367. // "量规评分",
  1368. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1369. // "id": "score",
  1370. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1371. // "onresize": function() {}
  1372. // }, {
  1373. // closecallback: function() {}
  1374. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1375. // _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); } }
  1376. // break;
  1377. case "mind":
  1378. _formdiv = new U.UF.UI.form(
  1379. "思维导图",
  1380. $$("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"
  1381. "id": "mind",
  1382. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1383. "onresize": function () { }
  1384. }, {
  1385. closecallback: function () { }
  1386. }, { "style": { "height": "36px" } }).form; //创建窗体
  1387. _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); } }
  1388. break;
  1389. case "doc":
  1390. // U.MD.D.I.isRoom();
  1391. _formdiv = new U.UF.UI.form(
  1392. "协同文档",
  1393. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1394. "id": "doc",
  1395. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1396. "onresize": function () { }
  1397. }, {
  1398. closecallback: function () { }
  1399. }, { "style": { "height": "36px" } }).form; //创建窗体
  1400. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1401. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1402. // })
  1403. _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); } }
  1404. break;
  1405. case "studentStudy":
  1406. _formdiv = new U.UF.UI.form(
  1407. "课程中心",
  1408. $$("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
  1409. "id": "studentStudy",
  1410. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1411. "onresize": function () { }
  1412. }, {
  1413. closecallback: function () { }
  1414. }, { "style": { "height": "36px" } }).form; //创建窗体
  1415. _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); } }
  1416. break;
  1417. case "train": //好友打开
  1418. _formdiv = new U.UF.UI.form(
  1419. "训练平台",
  1420. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1421. "id": "train",
  1422. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1423. "onresize": function () { }
  1424. }, {
  1425. closecallback: function () { }
  1426. }, { "style": { "height": "36px" } }).form; //创建窗体
  1427. _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); } }
  1428. break;
  1429. case "mindNetwork": //好友打开
  1430. _formdiv = new U.UF.UI.form(
  1431. "思维网格",
  1432. $$("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 }), {
  1433. "id": "mindNetwork",
  1434. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1435. "onresize": function () { }
  1436. }, {
  1437. closecallback: function () { }
  1438. }, { "style": { "height": "36px" } }).form; //创建窗体
  1439. _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); } }
  1440. break;
  1441. case "studentClassRoom": //好友打开
  1442. _formdiv = new U.UF.UI.form(
  1443. "实时课堂",
  1444. $$("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 }), {
  1445. "id": "studentClassRoom",
  1446. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1447. "onresize": function () { }
  1448. }, {
  1449. closecallback: function () { }
  1450. }, { "style": { "height": "36px" } }).form; //创建窗体
  1451. _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); } }
  1452. setTimeout(() => {
  1453. U.UF.F.windowZooming(_formdiv)
  1454. }, 0);
  1455. break;
  1456. }
  1457. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1458. switch (str) {
  1459. case "studnetProject": //好友打开
  1460. _formdiv = new U.UF.UI.form(
  1461. "我的项目",
  1462. $$("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 }), {
  1463. "id": "studnetProject",
  1464. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1465. "onresize": function () { }
  1466. }, {
  1467. closecallback: function () { }
  1468. }, { "style": { "height": "36px" } }).form; //创建窗体
  1469. _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); } }
  1470. break;
  1471. case "studentEvaluate": //好友打开
  1472. _formdiv = new U.UF.UI.form(
  1473. "我的评价",
  1474. $$("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 }), {
  1475. "id": "studentEvaluate",
  1476. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1477. "onresize": function () { }
  1478. }, {
  1479. closecallback: function () { }
  1480. }, { "style": { "height": "36px" } }).form; //创建窗体
  1481. _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); } }
  1482. break;
  1483. case "my":
  1484. _formdiv = new U.UF.UI.form(
  1485. "我的资料",
  1486. $$("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 }), {
  1487. "id": "my",
  1488. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1489. "onresize": function () { }
  1490. }, {
  1491. closecallback: function () { }
  1492. }, { "style": { "height": "36px" } }).form; //创建窗体
  1493. _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); } }
  1494. break;
  1495. case "program":
  1496. _formdiv = new U.UF.UI.form(
  1497. "编程平台",
  1498. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1499. "id": "program",
  1500. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1501. "onresize": function () { }
  1502. }, {
  1503. closecallback: function () { }
  1504. }, { "style": { "height": "36px" } }).form; //创建窗体
  1505. _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); } }
  1506. break;
  1507. case "library":
  1508. _formdiv = new U.UF.UI.form(
  1509. "素材库",
  1510. $$("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 }), {
  1511. "id": "library",
  1512. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1513. "onresize": function () { }
  1514. }, {
  1515. closecallback: function () { }
  1516. }, { "style": { "height": "36px" } }).form; //创建窗体
  1517. _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); } }
  1518. break;
  1519. case "whiteboard":
  1520. _formdiv = new U.UF.UI.form(
  1521. "电子白板",
  1522. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1523. "id": "whiteboard",
  1524. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1525. "onresize": function () { }
  1526. }, {
  1527. closecallback: function () { }
  1528. }, { "style": { "height": "36px" } }).form; //创建窗体
  1529. _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); } }
  1530. break;
  1531. case "investigation":
  1532. _formdiv = new U.UF.UI.form(
  1533. "问卷调查",
  1534. $$("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 }), {
  1535. "id": "investigation",
  1536. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1537. "onresize": function () { }
  1538. }, {
  1539. closecallback: function () { }
  1540. }, { "style": { "height": "36px" } }).form; //创建窗体
  1541. _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); } }
  1542. break;
  1543. case "note":
  1544. _formdiv = new U.UF.UI.form(
  1545. "便签分类",
  1546. $$("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 }), {
  1547. "id": "note",
  1548. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1549. "onresize": function () { }
  1550. }, {
  1551. closecallback: function () { }
  1552. }, { "style": { "height": "36px" } }).form; //创建窗体
  1553. _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); } }
  1554. break;
  1555. // case "score":
  1556. // _formdiv = new U.UF.UI.form(
  1557. // "量规评分",
  1558. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1559. // "id": "score",
  1560. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1561. // "onresize": function() {}
  1562. // }, {
  1563. // closecallback: function() {}
  1564. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1565. // _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); } }
  1566. // break;
  1567. case "mind":
  1568. _formdiv = new U.UF.UI.form(
  1569. "思维导图",
  1570. $$("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"
  1571. "id": "mind",
  1572. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1573. "onresize": function () { }
  1574. }, {
  1575. closecallback: function () { }
  1576. }, { "style": { "height": "36px" } }).form; //创建窗体
  1577. _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); } }
  1578. break;
  1579. case "doc":
  1580. // U.MD.D.I.isRoom();
  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": "/Office/Word/WordEditArea.htm" }), {
  1584. "id": "doc",
  1585. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1586. "onresize": function () { }
  1587. }, {
  1588. closecallback: function () { }
  1589. }, { "style": { "height": "36px" } }).form; //创建窗体
  1590. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1591. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1592. })
  1593. _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); } }
  1594. break;
  1595. case "train": //好友打开
  1596. _formdiv = new U.UF.UI.form(
  1597. "训练平台",
  1598. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1599. "id": "train",
  1600. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1601. "onresize": function () { }
  1602. }, {
  1603. closecallback: function () { }
  1604. }, { "style": { "height": "36px" } }).form; //创建窗体
  1605. _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); } }
  1606. break;
  1607. case "studentStudy":
  1608. _formdiv = new U.UF.UI.form(
  1609. "课程中心",
  1610. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "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
  1611. "id": "studentStudy",
  1612. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1613. "onresize": function () { }
  1614. }, {
  1615. closecallback: function () { }
  1616. }, { "style": { "height": "36px" } }).form; //创建窗体
  1617. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1618. break;
  1619. case "mindNetwork": //好友打开
  1620. _formdiv = new U.UF.UI.form(
  1621. "思维网格",
  1622. $$("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 }), {
  1623. "id": "mindNetwork",
  1624. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1625. "onresize": function () { }
  1626. }, {
  1627. closecallback: function () { }
  1628. }, { "style": { "height": "36px" } }).form; //创建窗体
  1629. _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); } }
  1630. break;
  1631. case "studentClassRoom": //好友打开
  1632. _formdiv = new U.UF.UI.form(
  1633. "实时课堂",
  1634. $$("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 }), {
  1635. "id": "studentClassRoom",
  1636. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1637. "onresize": function () { }
  1638. }, {
  1639. closecallback: function () { }
  1640. }, { "style": { "height": "36px" } }).form; //创建窗体
  1641. _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); } }
  1642. setTimeout(() => {
  1643. U.UF.F.windowZooming(_formdiv)
  1644. }, 0);
  1645. break;
  1646. }
  1647. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1648. //选择应用处理
  1649. switch (str) {
  1650. case "project": //好友打开
  1651. _formdiv = new U.UF.UI.form(
  1652. "课程管理",
  1653. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1654. "id": "project",
  1655. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1656. "onresize": function () { }
  1657. }, {
  1658. closecallback: function () { }
  1659. }, { "style": { "height": "36px" } }).form; //创建窗体
  1660. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1661. break;
  1662. case "student":
  1663. _formdiv = new U.UF.UI.form(
  1664. "学生管理",
  1665. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  1666. "id": "student",
  1667. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1668. "onresize": function () { }
  1669. }, {
  1670. closecallback: function () { }
  1671. }, { "style": { "height": "36px" } }).form; //创建窗体
  1672. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1673. break;
  1674. case "evaluate":
  1675. _formdiv = new U.UF.UI.form(
  1676. "学生评价",
  1677. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1678. "id": "evaluate",
  1679. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1680. "onresize": function () { }
  1681. }, {
  1682. closecallback: function () { }
  1683. }, { "style": { "height": "36px" } }).form; //创建窗体
  1684. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1685. break;
  1686. case "sys":
  1687. _formdiv = new U.UF.UI.form(
  1688. "目标管理",
  1689. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1690. "id": "sys",
  1691. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1692. "onresize": function () { }
  1693. }, {
  1694. closecallback: function () { }
  1695. }, { "style": { "height": "36px" } }).form; //创建窗体
  1696. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1697. break;
  1698. case "courseDesign":
  1699. _formdiv = new U.UF.UI.form(
  1700. "项目设计",
  1701. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1702. "id": "courseDesign",
  1703. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1704. "onresize": function () { }
  1705. }, {
  1706. closecallback: function () { }
  1707. }, { "style": { "height": "36px" } }).form; //创建窗体
  1708. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "项目设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1709. break;
  1710. case "program":
  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://x.cocorobo.cn" }), {
  1714. "id": "program",
  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/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1721. break;
  1722. case "class":
  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-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1726. "id": "class",
  1727. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1728. "onresize": function () { }
  1729. }, {
  1730. closecallback: function () { }
  1731. }, { "style": { "height": "36px" } }).form; //创建窗体
  1732. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/class.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 "notice":
  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://pbl.cocorobo.cn/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  1750. "id": "notice",
  1751. "style": { "width": "90%", "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/news.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 "study":
  1847. _formdiv = new U.UF.UI.form(
  1848. "课程中心",
  1849. $$("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
  1850. "id": "study",
  1851. "style": { "width": "100%", "height": "100%", "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/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1857. break;
  1858. case "mindNetwork": //好友打开
  1859. _formdiv = new U.UF.UI.form(
  1860. "思维网格",
  1861. $$("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 }), {
  1862. "id": "mindNetwork",
  1863. "style": { "width": "90%", "height": "90%", "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/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1869. break;
  1870. case "train": //好友打开
  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://xunlian.cocorobo.cn/" }), {
  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/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1881. break;
  1882. case "teacherClassRoom": //好友打开
  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-teacher-table/dist/#/classRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1886. "id": "teacherClassRoom",
  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. switch (str) {
  1900. case "project": //好友打开
  1901. _formdiv = new U.UF.UI.form(
  1902. "课程管理",
  1903. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1904. "id": "project",
  1905. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1906. "onresize": function () { }
  1907. }, {
  1908. closecallback: function () { }
  1909. }, { "style": { "height": "36px" } }).form; //创建窗体
  1910. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1911. break;
  1912. case "evaluate":
  1913. _formdiv = new U.UF.UI.form(
  1914. "学生评价",
  1915. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1916. "id": "evaluate",
  1917. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1918. "onresize": function () { }
  1919. }, {
  1920. closecallback: function () { }
  1921. }, { "style": { "height": "36px" } }).form; //创建窗体
  1922. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1923. break;
  1924. case "notice":
  1925. _formdiv = new U.UF.UI.form(
  1926. "通知公告",
  1927. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  1928. "id": "notice",
  1929. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1930. "onresize": function () { }
  1931. }, {
  1932. closecallback: function () { }
  1933. }, { "style": { "height": "36px" } }).form; //创建窗体
  1934. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1935. break;
  1936. case "stuLibrary":
  1937. _formdiv = new U.UF.UI.form(
  1938. "学习资料",
  1939. $$("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 }), {
  1940. "id": "stuLibrary",
  1941. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1942. "onresize": function () { }
  1943. }, {
  1944. closecallback: function () { }
  1945. }, { "style": { "height": "36px" } }).form; //创建窗体
  1946. _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); } }
  1947. break;
  1948. case "program":
  1949. _formdiv = new U.UF.UI.form(
  1950. "编程平台",
  1951. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1952. "id": "program",
  1953. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1954. "onresize": function () { }
  1955. }, {
  1956. closecallback: function () { }
  1957. }, { "style": { "height": "36px" } }).form; //创建窗体
  1958. _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); } }
  1959. break;
  1960. case "whiteboard":
  1961. _formdiv = new U.UF.UI.form(
  1962. "电子白板",
  1963. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1964. "id": "whiteboard",
  1965. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1966. "onresize": function () { }
  1967. }, {
  1968. closecallback: function () { }
  1969. }, { "style": { "height": "36px" } }).form; //创建窗体
  1970. _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); } }
  1971. break;
  1972. case "investigation":
  1973. _formdiv = new U.UF.UI.form(
  1974. "问卷调查",
  1975. $$("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 }), {
  1976. "id": "investigation",
  1977. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1978. "onresize": function () { }
  1979. }, {
  1980. closecallback: function () { }
  1981. }, { "style": { "height": "36px" } }).form; //创建窗体
  1982. _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); } }
  1983. break;
  1984. case "mind":
  1985. _formdiv = new U.UF.UI.form(
  1986. "思维导图",
  1987. $$("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"
  1988. "id": "mind",
  1989. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1990. "onresize": function () { }
  1991. }, {
  1992. closecallback: function () { }
  1993. }, { "style": { "height": "36px" } }).form; //创建窗体
  1994. _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); } }
  1995. break;
  1996. case "doc":
  1997. // U.MD.D.I.isRoom();
  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": "/Office/Word/WordEditArea.htm" }), {
  2001. "id": "doc",
  2002. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2003. "onresize": function () { }
  2004. }, {
  2005. closecallback: function () { }
  2006. }, { "style": { "height": "36px" } }).form; //创建窗体
  2007. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2008. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2009. })
  2010. _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); } }
  2011. break;
  2012. case "study":
  2013. _formdiv = new U.UF.UI.form(
  2014. "课程中心",
  2015. $$("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
  2016. "id": "study",
  2017. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2018. "onresize": function () { }
  2019. }, {
  2020. closecallback: function () { }
  2021. }, { "style": { "height": "36px" } }).form; //创建窗体
  2022. _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); } }
  2023. break;
  2024. case "mindNetwork": //好友打开
  2025. _formdiv = new U.UF.UI.form(
  2026. "思维网格",
  2027. $$("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 }), {
  2028. "id": "mindNetwork",
  2029. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2030. "onresize": function () { }
  2031. }, {
  2032. closecallback: function () { }
  2033. }, { "style": { "height": "36px" } }).form; //创建窗体
  2034. _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); } }
  2035. break;
  2036. case "train": //好友打开
  2037. _formdiv = new U.UF.UI.form(
  2038. "训练平台",
  2039. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2040. "id": "train",
  2041. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2042. "onresize": function () { }
  2043. }, {
  2044. closecallback: function () { }
  2045. }, { "style": { "height": "36px" } }).form; //创建窗体
  2046. _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); } }
  2047. break;
  2048. case "sys":
  2049. _formdiv = new U.UF.UI.form(
  2050. "目标管理",
  2051. $$("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 }), {
  2052. "id": "sys",
  2053. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2054. "onresize": function () { }
  2055. }, {
  2056. closecallback: function () { }
  2057. }, { "style": { "height": "36px" } }).form; //创建窗体
  2058. _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); } }
  2059. break;
  2060. case "courseDesign":
  2061. _formdiv = new U.UF.UI.form(
  2062. "项目设计",
  2063. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2064. "id": "courseDesign",
  2065. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2066. "onresize": function () { }
  2067. }, {
  2068. closecallback: function () { }
  2069. }, { "style": { "height": "36px" } }).form; //创建窗体
  2070. _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); } }
  2071. break;
  2072. }
  2073. } else if (!_type) {
  2074. switch (str) {
  2075. case "my":
  2076. _formdiv = new U.UF.UI.form(
  2077. "我的资料",
  2078. $$("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 }), {
  2079. "id": "my",
  2080. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2081. "onresize": function () { }
  2082. }, {
  2083. closecallback: function () { }
  2084. }, { "style": { "height": "36px" } }).form; //创建窗体
  2085. _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); } }
  2086. break;
  2087. }
  2088. }
  2089. switch (str) {
  2090. // AIprogram2 AI体验 aihub.cocorobo.cn
  2091. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2092. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2093. case "AIprogram2": //AI体验
  2094. _formdiv = new U.UF.UI.form(
  2095. "AI体验",
  2096. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2097. "id": "AIprogram2",
  2098. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2099. "onresize": function () { }
  2100. }, {
  2101. closecallback: function () { }
  2102. }, { "style": { "height": "36px" } }).form; //创建窗体
  2103. _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); } }
  2104. break;
  2105. case "Pythonprogram": //python编程
  2106. _formdiv = new U.UF.UI.form(
  2107. "Python编程",
  2108. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2109. "id": "Pythonprogram",
  2110. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2111. "onresize": function () { }
  2112. }, {
  2113. closecallback: function () { }
  2114. }, { "style": { "height": "36px" } }).form; //创建窗体
  2115. _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); } }
  2116. break;
  2117. case "AIprogram": //ai编程
  2118. _formdiv = new U.UF.UI.form(
  2119. "AI编程平台",
  2120. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2121. "id": "AIprogram",
  2122. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2123. "onresize": function () { }
  2124. }, {
  2125. closecallback: function () { }
  2126. }, { "style": { "height": "36px" } }).form; //创建窗体
  2127. _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); } }
  2128. break;
  2129. case "resources": //国家教育
  2130. _formdiv = new U.UF.UI.form(
  2131. "国家教育",
  2132. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2133. "id": "resources",
  2134. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2135. "onresize": function () { }
  2136. }, {
  2137. closecallback: function () { }
  2138. }, { "style": { "height": "36px" } }).form; //创建窗体
  2139. _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); } }
  2140. break;
  2141. case "codeEdit": //源码编辑
  2142. _formdiv = new U.UF.UI.form(
  2143. "源码编辑",
  2144. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2145. "id": "codeEdit",
  2146. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2147. "onresize": function () { }
  2148. }, {
  2149. closecallback: function () { }
  2150. }, { "style": { "height": "36px" } }).form; //创建窗体
  2151. _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); } }
  2152. break; //
  2153. case "MindMap": //MindMap
  2154. _formdiv = new U.UF.UI.form(
  2155. "MindMap",
  2156. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2157. "id": "MindMap",
  2158. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2159. "onresize": function () { }
  2160. }, {
  2161. closecallback: function () { }
  2162. }, { "style": { "height": "36px" } }).form; //创建窗体
  2163. _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); } }
  2164. break;
  2165. case "netWorkPanel": //netWorkPanel
  2166. _formdiv = new U.UF.UI.form(
  2167. "netWorkPanel",
  2168. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2169. "id": "netWorkPanel",
  2170. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2171. "onresize": function () { }
  2172. }, {
  2173. closecallback: function () { }
  2174. }, { "style": { "height": "36px" } }).form; //创建窗体
  2175. _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); } }
  2176. break;
  2177. case "GeoGebra": //GeoGebra
  2178. _formdiv = new U.UF.UI.form(
  2179. "GeoGebra",
  2180. $$("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" }), {
  2181. "id": "GeoGebra",
  2182. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2183. "onresize": function () { }
  2184. }, {
  2185. closecallback: function () { }
  2186. }, { "style": { "height": "36px" } }).form; //创建窗体
  2187. _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); } }
  2188. break;
  2189. case "translation": //翻译
  2190. _formdiv = new U.UF.UI.form(
  2191. "翻译",
  2192. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2193. "id": "translation",
  2194. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2195. "onresize": function () { }
  2196. }, {
  2197. closecallback: function () { }
  2198. }, { "style": { "height": "36px" } }).form; //创建窗体
  2199. _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); } }
  2200. break;
  2201. case "mohe": //魔盒
  2202. _formdiv = new U.UF.UI.form(
  2203. "魔盒识字",
  2204. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2205. "id": "mohe",
  2206. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2207. "onresize": function () { }
  2208. }, {
  2209. closecallback: function () { }
  2210. }, { "style": { "height": "36px" } }).form; //创建窗体
  2211. _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); } }
  2212. break;
  2213. case "24game": //24点
  2214. _formdiv = new U.UF.UI.form(
  2215. "24点",
  2216. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2217. "id": "24game",
  2218. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2219. "onresize": function () { }
  2220. }, {
  2221. closecallback: function () { }
  2222. }, { "style": { "height": "36px" } }).form; //创建窗体
  2223. _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); } }
  2224. break;
  2225. case "case":
  2226. _formdiv = new U.UF.UI.form(
  2227. "课程进展",
  2228. $$("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 }), {
  2229. "id": "case",
  2230. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2231. "onresize": function () { }
  2232. }, {
  2233. closecallback: function () { }
  2234. }, { "style": { "height": "36px" } }).form; //创建窗体
  2235. _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); } }
  2236. break;
  2237. case "snf":
  2238. _formdiv = new U.UF.UI.form(
  2239. "赛诺梵",
  2240. $$("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" }), {
  2241. "id": "snf",
  2242. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2243. "onresize": function () { }
  2244. }, {
  2245. closecallback: function () { }
  2246. }, { "style": { "height": "36px" } }).form; //创建窗体
  2247. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/snf.png)" }, "name": "赛诺梵", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2248. break;
  2249. case "hanFamily":
  2250. _formdiv = new U.UF.UI.form(
  2251. "汉字家族",
  2252. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2253. "id": "hanFamily",
  2254. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2255. "onresize": function () { }
  2256. }, {
  2257. closecallback: function () { }
  2258. }, { "style": { "height": "36px" } }).form; //创建窗体
  2259. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanFamily.png)" }, "name": "汉字家族", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2260. break;
  2261. case "hanClassics":
  2262. _formdiv = new U.UF.UI.form(
  2263. "国学经典",
  2264. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2265. "id": "hanClassics",
  2266. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2267. "onresize": function () { }
  2268. }, {
  2269. closecallback: function () { }
  2270. }, { "style": { "height": "36px" } }).form; //创建窗体
  2271. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClassics.png)" }, "name": "国学经典", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2272. break;
  2273. case "hanTraining":
  2274. _formdiv = new U.UF.UI.form(
  2275. "笔画训练",
  2276. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2277. "id": "hanTraining",
  2278. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2279. "onresize": function () { }
  2280. }, {
  2281. closecallback: function () { }
  2282. }, { "style": { "height": "36px" } }).form; //创建窗体
  2283. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanTraining.png)" }, "name": "笔画训练", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2284. break;
  2285. case "hanClass":
  2286. _formdiv = new U.UF.UI.form(
  2287. "书法课堂",
  2288. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2289. "id": "hanClass",
  2290. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2291. "onresize": function () { }
  2292. }, {
  2293. closecallback: function () { }
  2294. }, { "style": { "height": "36px" } }).form; //创建窗体
  2295. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "书法课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2296. break;
  2297. case "han":
  2298. _formdiv = new U.UF.UI.form(
  2299. "汉字宫",
  2300. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2301. "id": "han",
  2302. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2303. "onresize": function () { }
  2304. }, {
  2305. closecallback: function () { }
  2306. }, { "style": { "height": "36px" } }).form; //创建窗体
  2307. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/han.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2308. break;
  2309. case "projectGM": //课程管理
  2310. _formdiv = new U.UF.UI.form(
  2311. "课程管理",
  2312. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/courseGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2313. "id": "projectGM",
  2314. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2315. "onresize": function () { }
  2316. }, {
  2317. closecallback: function () { }
  2318. }, { "style": { "height": "36px" } }).form; //创建窗体
  2319. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/courseMange.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2320. break;
  2321. case "studyGM"://课程中心
  2322. _formdiv = new U.UF.UI.form(
  2323. "课程中心",
  2324. $$("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
  2325. "id": "study",
  2326. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2327. "onresize": function () { }
  2328. }, {
  2329. closecallback: function () { }
  2330. }, { "style": { "height": "36px" } }).form; //创建窗体
  2331. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2332. break;
  2333. // studentGM
  2334. case "studentGM"://学生管理
  2335. _formdiv = new U.UF.UI.form(
  2336. "学生管理",
  2337. $$("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 }), {
  2338. "id": "studentGM",
  2339. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2340. "onresize": function () { }
  2341. }, {
  2342. closecallback: function () { }
  2343. }, { "style": { "height": "36px" } }).form; //创建窗体
  2344. _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); } }
  2345. break;
  2346. case "evaluateGM"://学生评价
  2347. _formdiv = new U.UF.UI.form(
  2348. "学生评价",
  2349. $$("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 }), {
  2350. "id": "evaluateGM",
  2351. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2352. "onresize": function () { }
  2353. }, {
  2354. closecallback: function () { }
  2355. }, { "style": { "height": "36px" } }).form; //创建窗体
  2356. _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); } }
  2357. break;
  2358. // classGM
  2359. case "classGM"://班级管理
  2360. _formdiv = new U.UF.UI.form(
  2361. "班级管理",
  2362. $$("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 }), {
  2363. "id": "classGM",
  2364. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2365. "onresize": function () { }
  2366. }, {
  2367. closecallback: function () { }
  2368. }, { "style": { "height": "36px" } }).form; //创建窗体
  2369. _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); } }
  2370. break;
  2371. // dataGM
  2372. case "dataGM":
  2373. _formdiv = new U.UF.UI.form(
  2374. "我的资料",
  2375. $$("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 }), {
  2376. "id": "dataGM",
  2377. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2378. "onresize": function () { }
  2379. }, {
  2380. closecallback: function () { }
  2381. }, { "style": { "height": "36px" } }).form; //创建窗体
  2382. _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); } }
  2383. break;
  2384. // caseGM
  2385. case "caseGM"://课程进展
  2386. _formdiv = new U.UF.UI.form(
  2387. "课程进展",
  2388. $$("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 }), {
  2389. "id": "caseGM",
  2390. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2391. "onresize": function () { }
  2392. }, {
  2393. closecallback: function () { }
  2394. }, { "style": { "height": "36px" } }).form; //创建窗体
  2395. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/case.png)" }, "name": "课程进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2396. break;
  2397. // meterialGM
  2398. case "meterialGM"://素材库
  2399. _formdiv = new U.UF.UI.form(
  2400. "素材库",
  2401. $$("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 }), {
  2402. "id": "meterialGM",
  2403. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2404. "onresize": function () { }
  2405. }, {
  2406. closecallback: function () { }
  2407. }, { "style": { "height": "36px" } }).form; //创建窗体
  2408. _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); } }
  2409. break;
  2410. // evaluateSGM
  2411. case "evaluateSGM": //我的评价
  2412. _formdiv = new U.UF.UI.form(
  2413. "我的评价",
  2414. $$("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 }), {
  2415. "id": "evaluateSGM",
  2416. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2417. "onresize": function () { }
  2418. }, {
  2419. closecallback: function () { }
  2420. }, { "style": { "height": "36px" } }).form; //创建窗体
  2421. _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); } }
  2422. break;
  2423. case "jupyter": //jupyter
  2424. _formdiv = new U.UF.UI.form(
  2425. "jupyter",
  2426. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  2427. "id": "jupyter",
  2428. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2429. "onresize": function () { }
  2430. }, {
  2431. closecallback: function () { }
  2432. }, { "style": { "height": "36px" } }).form; //创建窗体
  2433. _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); } }
  2434. break;
  2435. case "number": //数字实验室
  2436. _formdiv = new U.UF.UI.form(
  2437. "数字实验室",
  2438. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  2439. "id": "number",
  2440. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2441. "onresize": function () { }
  2442. }, {
  2443. closecallback: function () { }
  2444. }, { "style": { "height": "36px" } }).form; //创建窗体
  2445. _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); } }
  2446. break;
  2447. case "studentCourse": //项目管理 学生
  2448. _formdiv = new U.UF.UI.form(
  2449. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2450. $$("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 }), {
  2451. "id": "studentCourse",
  2452. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2453. "onresize": function () { }
  2454. }, {
  2455. closecallback: function () { }
  2456. }, { "style": { "height": "36px" } }).form; //创建窗体
  2457. _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); } }
  2458. break;
  2459. case "studentCourseS": //项目管理 老师
  2460. _formdiv = new U.UF.UI.form(
  2461. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2462. $$("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 }), {
  2463. "id": "studentCourseS",
  2464. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2465. "onresize": function () { }
  2466. }, {
  2467. closecallback: function () { }
  2468. }, { "style": { "height": "36px" } }).form; //创建窗体
  2469. _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); } }
  2470. break;
  2471. case "studentIndex": //项目中心
  2472. _formdiv = new U.UF.UI.form(
  2473. "项目中心",
  2474. $$("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 }), {
  2475. "id": "studentIndex",
  2476. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2477. "onresize": function () { }
  2478. }, {
  2479. closecallback: function () { }
  2480. }, { "style": { "height": "36px" } }).form; //创建窗体
  2481. _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); } }
  2482. break;
  2483. case "CaseDesignS":
  2484. _formdiv = new U.UF.UI.form(
  2485. "项目进展",
  2486. $$("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 }), {
  2487. "id": "case",
  2488. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2489. "onresize": function () { }
  2490. }, {
  2491. closecallback: function () { }
  2492. }, { "style": { "height": "36px" } }).form; //创建窗体
  2493. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/CaseDesignS.png)" }, "name": "项目进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2494. break;
  2495. case "tcStudent": //腾讯学生管理
  2496. _formdiv = new U.UF.UI.form(
  2497. "学生管理",
  2498. $$("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 }), {
  2499. "id": "tcStudent",
  2500. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2501. "onresize": function () { }
  2502. }, {
  2503. closecallback: function () { }
  2504. }, { "style": { "height": "36px" } }).form; //创建窗体
  2505. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2506. break;
  2507. case "tcSchool": //腾讯学校管理
  2508. _formdiv = new U.UF.UI.form(
  2509. "学校管理",
  2510. $$("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 }), {
  2511. "id": "tcSchool",
  2512. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2513. "onresize": function () { }
  2514. }, {
  2515. closecallback: function () { }
  2516. }, { "style": { "height": "36px" } }).form; //创建窗体
  2517. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/school.png)" }, "name": "学校管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2518. break;
  2519. case "tcTeacher": //腾讯学校管理
  2520. _formdiv = new U.UF.UI.form(
  2521. "教师管理",
  2522. $$("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 }), {
  2523. "id": "tcTeacher",
  2524. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2525. "onresize": function () { }
  2526. }, {
  2527. closecallback: function () { }
  2528. }, { "style": { "height": "36px" } }).form; //创建窗体
  2529. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/teacher.png)" }, "name": "教师管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2530. break;
  2531. case "tcData": //腾讯我的资料
  2532. _formdiv = new U.UF.UI.form(
  2533. "我的资料",
  2534. $$("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 }), {
  2535. "id": "tcData",
  2536. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2537. "onresize": function () { }
  2538. }, {
  2539. closecallback: function () { }
  2540. }, { "style": { "height": "36px" } }).form; //创建窗体
  2541. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2542. break;
  2543. case "tcNotice": //腾讯消息通知
  2544. _formdiv = new U.UF.UI.form(
  2545. "消息通知",
  2546. $$("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 }), {
  2547. "id": "tcNotice",
  2548. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2549. "onresize": function () { }
  2550. }, {
  2551. closecallback: function () { }
  2552. }, { "style": { "height": "36px" } }).form; //创建窗体
  2553. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "消息通知", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2554. break;
  2555. }
  2556. //U.MD.D.I.openClick(str);
  2557. //如果有任务栏信息
  2558. if (_taskbar) {
  2559. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2560. }
  2561. }
  2562. // U.MD.D.I.openClick = function(str){
  2563. // var click = '';
  2564. // switch(str){
  2565. // case 'friend':
  2566. // click = '我的好友';
  2567. // break;
  2568. // case 'domain':
  2569. // click = '域名管理';
  2570. // break;
  2571. // case 'disk':
  2572. // click = '我的云盘';
  2573. // break;
  2574. // case 'word':
  2575. // click = 'Word';
  2576. // break;
  2577. // case 'excel':
  2578. // click = 'Execl';
  2579. // break;
  2580. // case 'txt':
  2581. // click = '文本文件';
  2582. // break;
  2583. // case 'lookupFriend':
  2584. // click = '查找好友';
  2585. // break;
  2586. // case 'ftp':
  2587. // click = 'FTP';
  2588. // break;
  2589. // case 'group':
  2590. // click = '群组';
  2591. // break;
  2592. // case 'set':
  2593. // click = '我的设置';
  2594. // break;
  2595. // case 'systemSet':
  2596. // click = '系统设置';
  2597. // break;
  2598. // case 'boomYun':
  2599. // click = '互联办公';
  2600. // break;
  2601. // case 'xz':
  2602. // click = '云端下载';
  2603. // break;
  2604. // case 'client':
  2605. // click = '有思浏览器';
  2606. // break;
  2607. // case 'backEndProgramming':
  2608. // click = '在线后台编程';
  2609. // break;
  2610. // case 'frontEndProgramming':
  2611. // click = '在线前端编程';
  2612. // break;
  2613. // default: break;
  2614. // }
  2615. // if(U.MD.D.I.Ip && click){
  2616. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  2617. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  2618. // })
  2619. // }
  2620. // }
  2621. /**
  2622. *函数作用:ajax简易函数,使用post格式
  2623. *@param url {data} 后台地址
  2624. *@param data {data} 参数json
  2625. *@param fn {data} 回调函数
  2626. *
  2627. */
  2628. // U.MD.D.I.Mysqlrequest = function(url,fn){
  2629. // var xhr = new XMLHttpRequest();
  2630. // xhr.open("GET",url,true);
  2631. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  2632. // xhr.onreadystatechange = function(){
  2633. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  2634. // fn.call(this,xhr.responseText);
  2635. // }
  2636. // };
  2637. // xhr.send();
  2638. // }
  2639. /*判断是否是内网IP*/
  2640. // U.MD.D.I.isInnerIPFn = function(str){
  2641. // var curPageUrl = str;
  2642. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  2643. // curPageUrl =curPageUrl.replace(reg1,'');
  2644. // // console.log('curPageUrl-1 '+curPageUrl);
  2645. // var reg2 = /\:+/g;//替换冒号为一点
  2646. // curPageUrl =curPageUrl.replace(reg2,'.');
  2647. // // console.log('curPageUrl-2 '+curPageUrl);
  2648. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  2649. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  2650. // if(curPageUrl[2] != '16'){
  2651. // return ipAddress;
  2652. // }else{
  2653. // return false;
  2654. // }
  2655. // }
  2656. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  2657. // //compatibility for firefox and chrome
  2658. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  2659. // var pc = new myPeerConnection({
  2660. // iceServers: []
  2661. // }),
  2662. // noop = function() {},
  2663. // localIPs = {},
  2664. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  2665. // key;
  2666. // function iterateIP(ip) {
  2667. // if (!localIPs[ip]) onNewIP(ip);
  2668. // localIPs[ip] = true;
  2669. // }
  2670. // //create a bogus data channel
  2671. // pc.createDataChannel("");
  2672. // // create offer and set local description
  2673. // pc.createOffer().then(function(sdp) {
  2674. // sdp.sdp.split('\n').forEach(function(line) {
  2675. // if (line.indexOf('candidate') < 0) return;
  2676. // line.match(ipRegex).forEach(iterateIP);
  2677. // });
  2678. // pc.setLocalDescription(sdp, noop, noop);
  2679. // }).catch(function(reason) {
  2680. // // An error occurred, so handle the failure to connect
  2681. // });
  2682. // //sten for candidate events
  2683. // pc.onicecandidate = function(ice) {
  2684. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  2685. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  2686. // };
  2687. // }
  2688. // U.MD.D.I.getUserIpBool = function(callback){
  2689. // U.MD.D.I.getUserIP(function(ip){
  2690. // alert("Got IP! :" + ip);
  2691. // });
  2692. //}
  2693. //#endregion
  2694. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  2695. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2696. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2697. _userinfo = US.userInfo, //登录用户信息
  2698. _userid = US.userInfo.userid //登录用户id
  2699. let _iframe;
  2700. let _cid = cid,
  2701. _stage = stage,
  2702. _task = task,
  2703. _tool = tool;
  2704. var _jie = $$("div", {
  2705. "style": {
  2706. "position": "absolute",
  2707. "bottom": "50px",
  2708. "right": "50px",
  2709. "zIndex": "9999",
  2710. "backgroundColor": "#2268bc",
  2711. "color": "#fff",
  2712. "padding": "12px 20px",
  2713. "cursor": "pointer",
  2714. "borderRadius": "4px",
  2715. },
  2716. "innerHTML": "提交作业"
  2717. })
  2718. let aTool = ''
  2719. let _loading = document.createElement('div')
  2720. _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;"
  2721. // _loading.id = "";
  2722. let _lchild = document.createElement('div')
  2723. let _limg = document.createElement('img')
  2724. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  2725. _limg.style = "width: 26px;margin-right: 10px;"
  2726. _lchild.appendChild(_limg)
  2727. let _lspan = document.createElement('span')
  2728. _lspan.innerHTML = "上传中..."
  2729. _lchild.appendChild(_lspan)
  2730. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  2731. _loading.appendChild(_lchild)
  2732. var _box = $$('div', {
  2733. "style": {
  2734. "position": "relative",
  2735. "width": "100%",
  2736. "height": "100%",
  2737. },
  2738. })
  2739. _box.appendChild(_loading)
  2740. _box.id = str + '_loadLi'
  2741. switch (str) {
  2742. case "whiteboard":
  2743. aTool = 1;
  2744. _iframe = $$("iframe", {
  2745. "frameborder": "no",
  2746. "border": "0",
  2747. "scrolling ": "no",
  2748. "style": {
  2749. "cssText": "border:0;width:100%;height:100%"
  2750. },
  2751. "src": "https://iwb.cocorobo.cn/"
  2752. })
  2753. _box.appendChild(_iframe);
  2754. _box.appendChild(_jie);
  2755. _formdiv = new U.UF.UI.form(
  2756. "电子白板",
  2757. _box, {
  2758. "id": "whiteboard" + cid + stage + task + tool,
  2759. "style": {
  2760. "width": "90%",
  2761. "height": "90%",
  2762. "overflow": 'hidden'
  2763. },
  2764. "onresize": function () { }
  2765. }, {
  2766. closecallback: function () { }
  2767. }, {
  2768. "style": {
  2769. "height": "36px"
  2770. }
  2771. }).form; //创建窗体
  2772. _taskbar = {
  2773. "id": str + _formdiv.id,
  2774. "style": {
  2775. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  2776. },
  2777. "name": "电子白板",
  2778. "forms": _formdiv,
  2779. "click": function () {
  2780. U.MD.D.I.openApplication(str, obj, info);
  2781. }
  2782. }
  2783. break;
  2784. case "mind":
  2785. aTool = 3;
  2786. _iframe = $$("iframe", {
  2787. "frameborder": "no",
  2788. "border": "0",
  2789. "scrolling ": "no",
  2790. "style": {
  2791. "cssText": "border:0;width:100%;height:100%"
  2792. },
  2793. "src": "/kityminder-editor/dist/index.html"
  2794. })
  2795. _box.appendChild(_iframe);
  2796. _box.appendChild(_jie);
  2797. _formdiv = new U.UF.UI.form(
  2798. "思维导图",
  2799. _box, { //"/jsmind/example/demo.html"
  2800. "id": "mind" + cid + stage + task + tool,
  2801. "style": {
  2802. "width": "90%",
  2803. "height": "90%",
  2804. "overflow": 'hidden'
  2805. },
  2806. "onresize": function () { }
  2807. }, {
  2808. closecallback: function () { }
  2809. }, {
  2810. "style": {
  2811. "height": "36px"
  2812. }
  2813. }).form; //创建窗体
  2814. _taskbar = {
  2815. "id": str + _formdiv.id,
  2816. "style": {
  2817. "backgroundImage": "url(/img/icon/mindMapping.png)"
  2818. },
  2819. "name": "思维导图",
  2820. "forms": _formdiv,
  2821. "click": function () {
  2822. U.MD.D.I.openApplication(str, obj, info);
  2823. }
  2824. }
  2825. break;
  2826. case "MindMap":
  2827. aTool = 3;
  2828. _iframe = $$("iframe", {
  2829. "frameborder": "no",
  2830. "border": "0",
  2831. "scrolling ": "no",
  2832. "style": {
  2833. "cssText": "border:0;width:100%;height:100%"
  2834. },
  2835. "src": "//cloud.cocorobo.cn/mind/"
  2836. })
  2837. _box.appendChild(_iframe);
  2838. _box.appendChild(_jie);
  2839. _formdiv = new U.UF.UI.form(
  2840. "思维导图",
  2841. _box, { //"/jsmind/example/demo.html"
  2842. "id": "mind" + cid + stage + task + tool,
  2843. "style": {
  2844. "width": "90%",
  2845. "height": "90%",
  2846. "overflow": 'hidden'
  2847. },
  2848. "onresize": function () { }
  2849. }, {
  2850. closecallback: function () { }
  2851. }, {
  2852. "style": {
  2853. "height": "36px"
  2854. }
  2855. }).form; //创建窗体
  2856. _taskbar = {
  2857. "id": str + _formdiv.id,
  2858. "style": {
  2859. "backgroundImage": "url(/img/icon/mindMapping.png)"
  2860. },
  2861. "name": "思维导图",
  2862. "forms": _formdiv,
  2863. "click": function () {
  2864. U.MD.D.I.openApplication(str, obj, info);
  2865. }
  2866. }
  2867. break;
  2868. case "doc":
  2869. aTool = 6;
  2870. _iframe = $$("iframe", {
  2871. "frameborder": "no",
  2872. "border": "0",
  2873. "scrolling ": "no",
  2874. "style": {
  2875. "cssText": "border:0;width:100%;height:100%"
  2876. },
  2877. "src": "/Office/Word/WordEditArea.htm"
  2878. })
  2879. _box.appendChild(_iframe);
  2880. _box.appendChild(_jie);
  2881. _formdiv = new U.UF.UI.form(
  2882. "协同文档",
  2883. _box, {
  2884. "id": "doc" + cid + stage + task + tool,
  2885. "style": {
  2886. "width": "90%",
  2887. "height": "90%",
  2888. "overflow": 'hidden'
  2889. },
  2890. "onresize": function () { }
  2891. }, {
  2892. closecallback: function () { }
  2893. }, {
  2894. "style": {
  2895. "height": "36px"
  2896. }
  2897. }).form; //创建窗体
  2898. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2899. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  2900. })
  2901. _taskbar = {
  2902. "id": str + _formdiv.id,
  2903. "style": {
  2904. "backgroundImage": "url(/img/icon/doc.png)"
  2905. },
  2906. "name": "协同文档",
  2907. "forms": _formdiv,
  2908. "click": function () {
  2909. U.MD.D.I.openApplication(str, obj, info);
  2910. }
  2911. }
  2912. break;
  2913. case "mindNetwork": //好友打开
  2914. aTool = 7;
  2915. _iframe = $$("iframe", {
  2916. "webkitallowfullscreen": "",
  2917. "mozallowfullscreen": "",
  2918. "allowfullscreen": "",
  2919. "frameborder": "no",
  2920. "border": "0",
  2921. "scrolling ": "no",
  2922. "style": {
  2923. "cssText": "border:0; width:100%; height:100%;"
  2924. },
  2925. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  2926. })
  2927. _box.appendChild(_iframe);
  2928. _box.appendChild(_jie);
  2929. _formdiv = new U.UF.UI.form(
  2930. "思维网格",
  2931. _box, {
  2932. "id": "mindNetwork" + cid + stage + task + tool,
  2933. "style": {
  2934. "width": "90%",
  2935. "height": "90%",
  2936. "overflow": 'hidden'
  2937. },
  2938. "onresize": function () { }
  2939. }, {
  2940. closecallback: function () { }
  2941. }, {
  2942. "style": {
  2943. "height": "36px"
  2944. }
  2945. }).form; //创建窗体
  2946. _taskbar = {
  2947. "id": str + _formdiv.id,
  2948. "style": {
  2949. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  2950. },
  2951. "name": "思维网格",
  2952. "forms": _formdiv,
  2953. "click": function () {
  2954. U.MD.D.I.openApplication(str, obj, info);
  2955. }
  2956. }
  2957. break;
  2958. case "courseDesign":
  2959. _iframe = $$("iframe", {
  2960. "webkitallowfullscreen": "",
  2961. "mozallowfullscreen": "",
  2962. "allowfullscreen": "",
  2963. "frameborder": "no",
  2964. "border": "0",
  2965. "scrolling ": "no",
  2966. "style": {
  2967. "cssText": "border:0; width:100%; height:100%;"
  2968. },
  2969. "src": "/course-design-vue"
  2970. })
  2971. _box.appendChild(_iframe);
  2972. _box.appendChild(_jie);
  2973. _formdiv = new U.UF.UI.form(
  2974. "项目设计",
  2975. _box, {
  2976. "id": "courseDesign" + cid + stage + task + tool,
  2977. "style": {
  2978. "width": "90%",
  2979. "height": "90%",
  2980. "overflow": 'hidden'
  2981. },
  2982. "onresize": function () { }
  2983. }, {
  2984. closecallback: function () { }
  2985. }, {
  2986. "style": {
  2987. "height": "36px"
  2988. }
  2989. }).form; //创建窗体
  2990. _taskbar = {
  2991. "id": str + _formdiv.id,
  2992. "style": {
  2993. "backgroundImage": "url(/img/icon/courseDesign.png)"
  2994. },
  2995. "name": "项目设计",
  2996. "forms": _formdiv,
  2997. "click": function () {
  2998. U.MD.D.I.openApplication(str, obj, info);
  2999. }
  3000. }
  3001. break;
  3002. }
  3003. const script1 = document.createElement("script");
  3004. script1.type = "text/javascript";
  3005. // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3006. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3007. const script2 = document.createElement("script");
  3008. script2.type = "text/javascript";
  3009. // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3010. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3011. const script3 = document.createElement("script");
  3012. script3.type = "text/javascript";
  3013. script3.charset = "UTF-8";
  3014. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3015. const script4 = document.createElement("script");
  3016. script4.type = "text/javascript";
  3017. // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  3018. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3019. if (_iframe) {
  3020. if (str == 'doc') {
  3021. U.UF.DL.iframeLoad(_iframe, function () {
  3022. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3023. _iframe.contentWindow.document.body.appendChild(script1);
  3024. _iframe.contentWindow.document.body.appendChild(script2);
  3025. // _iframe.contentWindow.document.body.appendChild(script3);
  3026. _iframe.contentWindow.document.body.appendChild(script4);
  3027. })
  3028. } else if (str == 'courseDesign') {
  3029. U.UF.DL.iframeLoad(_iframe, function () {
  3030. // _iframe.contentWindow.U.MD.O.W.load();
  3031. // _iframe.contentWindow.document.body.appendChild(script1);
  3032. _iframe.contentWindow.document.body.appendChild(script2);
  3033. _iframe.contentWindow.document.body.appendChild(script4);
  3034. })
  3035. } else if (str == 'mind') {
  3036. U.UF.DL.iframeLoad(_iframe, function () {
  3037. //
  3038. _iframe.contentWindow.document.body.appendChild(script1);
  3039. _iframe.contentWindow.document.body.appendChild(script2);
  3040. _iframe.contentWindow.document.body.appendChild(script4);
  3041. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3042. })
  3043. } else if (str == 'whiteboard'){
  3044. _iframe.onload = () => {
  3045. _iframe.contentWindow.document.body.appendChild(script1);
  3046. _iframe.contentWindow.document.body.appendChild(script2);
  3047. _iframe.contentWindow.document.body.appendChild(script4);
  3048. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3049. };
  3050. } else {
  3051. _iframe.onload = () => {
  3052. _iframe.contentWindow.document.body.appendChild(script1);
  3053. _iframe.contentWindow.document.body.appendChild(script2);
  3054. // _iframe.contentWindow.document.body.appendChild(script3);
  3055. _iframe.contentWindow.document.body.appendChild(script4);
  3056. };
  3057. }
  3058. _jie.onclick = async () => {
  3059. let text = ''
  3060. if (aTool == 1) {
  3061. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3062. }else if (aTool == 6) {
  3063. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3064. } else if (aTool == 3) {
  3065. text = await U.MD.D.I.getEditorContent(_iframe);
  3066. }
  3067. _loading.style.display = 'flex'
  3068. console.log(_loading);
  3069. var _ajs = _iframe.contentWindow.document.createElement("script");
  3070. _ajs.type = "text/javascript";
  3071. _ajs.innerHTML =
  3072. // 'console.log(' + _loading + ');\n' +
  3073. 'var _js = document.createElement("script");\n' +
  3074. '_js.type="text/javascript";\n' +
  3075. '_js.charset="UTF-8";\n' +
  3076. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3077. "_js.onload = function(){\n" +
  3078. ' var a = document.getElementsByTagName("img")\n' +
  3079. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3080. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3081. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3082. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3083. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3084. "beforeUpload_shishi(file," +
  3085. "'" +
  3086. _userid +
  3087. "'" +
  3088. ", " +
  3089. "'" +
  3090. _cid +
  3091. "'" +
  3092. ", " +
  3093. "'" +
  3094. _stage +
  3095. "'" +
  3096. ", " +
  3097. "'" +
  3098. _task +
  3099. "'" +
  3100. ", " +
  3101. "'" +
  3102. _tool +
  3103. "'" +
  3104. ", " +
  3105. "'" +
  3106. str + '_loadLi' +
  3107. "'" +
  3108. ", " +
  3109. "'" +
  3110. aTool +
  3111. "'" +
  3112. ", " +
  3113. "`" +
  3114. text +
  3115. "`" +
  3116. ")\n" +
  3117. " });\n" +
  3118. "}\n" +
  3119. "document.head.appendChild(_js);\n";
  3120. _iframe.contentWindow.document.head.appendChild(_ajs);
  3121. }
  3122. }
  3123. //U.MD.D.I.openClick(str);
  3124. //如果有任务栏信息
  3125. // if (_taskbar) {
  3126. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3127. // }
  3128. }
  3129. U.MD.D.I.getEditorContent = function (iframe) {
  3130. return new Promise((resolve, reject) => {
  3131. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  3132. console.log(content);
  3133. resolve(content)
  3134. });
  3135. });
  3136. }
  3137. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  3138. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  3139. // if (res.value[0].length > 0) {
  3140. // // resolve(res.value[0][0].text);
  3141. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  3142. // $(fileInput).val('');
  3143. // });
  3144. // }
  3145. // }, [], { "type": "GET", "withCredentials": true });
  3146. var xmlhttp;
  3147. var Mac, Sn, DeviceId
  3148. if (window.XMLHttpRequest) {
  3149. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  3150. xmlhttp = new XMLHttpRequest();
  3151. }
  3152. else {
  3153. // IE6, IE5 浏览器执行代码
  3154. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  3155. }
  3156. xmlhttp.onreadystatechange = function () {
  3157. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  3158. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  3159. // resolve(res.value[0][0].text);
  3160. if(type == '2'){
  3161. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  3162. $(fileInput).val('');
  3163. });
  3164. }else if(type == '3'){
  3165. iframe.contentWindow.h.app.updateScene({elements:JSON.parse(JSON.parse(xmlhttp.response)[0][0].text)})
  3166. }
  3167. }else{
  3168. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  3169. }
  3170. }
  3171. }
  3172. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  3173. xmlhttp.send();
  3174. }
  3175. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  3176. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3177. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3178. _userinfo = US.userInfo, //登录用户信息
  3179. _userid = US.userInfo.userid //登录用户id
  3180. let _iframe;
  3181. let _cid = cid,
  3182. _stage = stage,
  3183. _task = task,
  3184. _tool = tool;
  3185. var _jie = $$("div", {
  3186. "style": {
  3187. "position": "absolute",
  3188. "bottom": "50px",
  3189. "right": "50px",
  3190. "zIndex": "9999",
  3191. "backgroundColor": "#2268bc",
  3192. "color": "#fff",
  3193. "padding": "12px 20px",
  3194. "cursor": "pointer",
  3195. "borderRadius": "4px",
  3196. },
  3197. "innerHTML": "确认并提交"
  3198. })
  3199. let aTool = ''
  3200. let _loading = document.createElement('div')
  3201. _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;"
  3202. // _loading.id = "";
  3203. let _lchild = document.createElement('div')
  3204. let _limg = document.createElement('img')
  3205. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  3206. _limg.style = "width: 26px;margin-right: 10px;"
  3207. _lchild.appendChild(_limg)
  3208. let _lspan = document.createElement('span')
  3209. _lspan.innerHTML = "上传中..."
  3210. _lchild.appendChild(_lspan)
  3211. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  3212. _loading.appendChild(_lchild)
  3213. var _box = $$('div', {
  3214. "style": {
  3215. "position": "relative",
  3216. "width": "100%",
  3217. "height": "100%",
  3218. },
  3219. })
  3220. _box.appendChild(_loading)
  3221. _box.id = str + '_loadLi'
  3222. switch (str) {
  3223. case "whiteboard":
  3224. aTool = 1;
  3225. _iframe = $$("iframe", {
  3226. "frameborder": "no",
  3227. "border": "0",
  3228. "scrolling ": "no",
  3229. "style": {
  3230. "cssText": "border:0;width:100%;height:100%"
  3231. },
  3232. "src": "https://iwb.cocorobo.cn/"
  3233. })
  3234. _box.appendChild(_iframe);
  3235. _box.appendChild(_jie);
  3236. _formdiv = new U.UF.UI.form(
  3237. "电子白板",
  3238. _box, {
  3239. "id": "whiteboards" + cid + stage + task + tool,
  3240. "style": {
  3241. "width": "90%",
  3242. "height": "90%",
  3243. "overflow": 'hidden'
  3244. },
  3245. "onresize": function () { }
  3246. }, {
  3247. closecallback: function () { }
  3248. }, {
  3249. "style": {
  3250. "height": "36px"
  3251. }
  3252. }).form; //创建窗体
  3253. _taskbar = {
  3254. "id": str + _formdiv.id,
  3255. "style": {
  3256. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3257. },
  3258. "name": "电子白板",
  3259. "forms": _formdiv,
  3260. "click": function () {
  3261. U.MD.D.I.openApplication(str, obj, info);
  3262. }
  3263. }
  3264. break;
  3265. case "mind":
  3266. aTool = 3;
  3267. _iframe = $$("iframe", {
  3268. "frameborder": "no",
  3269. "border": "0",
  3270. "scrolling ": "no",
  3271. "style": {
  3272. "cssText": "border:0;width:100%;height:100%"
  3273. },
  3274. "src": "/kityminder-editor/dist/index.html"
  3275. });
  3276. _box.appendChild(_iframe);
  3277. _box.appendChild(_jie);
  3278. _formdiv = new U.UF.UI.form(
  3279. "思维导图",
  3280. _box, { //"/jsmind/example/demo.html"
  3281. "id": "minds" + cid + stage + task + tool,
  3282. "style": {
  3283. "width": "90%",
  3284. "height": "90%",
  3285. "overflow": 'hidden'
  3286. },
  3287. "onresize": function () { }
  3288. }, {
  3289. closecallback: function () { }
  3290. }, {
  3291. "style": {
  3292. "height": "36px"
  3293. }
  3294. }).form; //创建窗体
  3295. _taskbar = {
  3296. "id": str + _formdiv.id,
  3297. "style": {
  3298. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3299. },
  3300. "name": "思维导图",
  3301. "forms": _formdiv,
  3302. "click": function () {
  3303. U.MD.D.I.openApplication(str, obj, info);
  3304. }
  3305. }
  3306. break;
  3307. case "doc":
  3308. aTool = 6;
  3309. _iframe = $$("iframe", {
  3310. "frameborder": "no",
  3311. "border": "0",
  3312. "scrolling ": "no",
  3313. "style": {
  3314. "cssText": "border:0;width:100%;height:100%"
  3315. },
  3316. "src": "/Office/Word/WordEditArea.htm"
  3317. })
  3318. _box.appendChild(_iframe);
  3319. _box.appendChild(_jie);
  3320. _formdiv = new U.UF.UI.form(
  3321. "协同文档",
  3322. _box, {
  3323. "id": "docs" + cid + stage + task + tool,
  3324. "style": {
  3325. "width": "90%",
  3326. "height": "90%",
  3327. "overflow": 'hidden'
  3328. },
  3329. "onresize": function () { }
  3330. }, {
  3331. closecallback: function () { }
  3332. }, {
  3333. "style": {
  3334. "height": "36px"
  3335. }
  3336. }).form; //创建窗体
  3337. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3338. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  3339. })
  3340. _taskbar = {
  3341. "id": str + _formdiv.id,
  3342. "style": {
  3343. "backgroundImage": "url(/img/icon/doc.png)"
  3344. },
  3345. "name": "协同文档",
  3346. "forms": _formdiv,
  3347. "click": function () {
  3348. U.MD.D.I.openApplication(str, obj, info);
  3349. }
  3350. }
  3351. break;
  3352. }
  3353. const script1 = document.createElement("script");
  3354. script1.type = "text/javascript";
  3355. // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3356. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3357. const script2 = document.createElement("script");
  3358. script2.type = "text/javascript";
  3359. // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3360. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3361. const script3 = document.createElement("script");
  3362. script3.type = "text/javascript";
  3363. script3.charset = "UTF-8";
  3364. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3365. const script4 = document.createElement("script");
  3366. script4.type = "text/javascript";
  3367. // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu4.js";
  3368. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  3369. if (_iframe) {
  3370. if (str == 'doc') {
  3371. U.UF.DL.iframeLoad(_iframe, function () {
  3372. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  3373. _iframe.contentWindow.document.body.appendChild(script1);
  3374. _iframe.contentWindow.document.body.appendChild(script2);
  3375. // _iframe.contentWindow.document.body.appendChild(script3);
  3376. _iframe.contentWindow.document.body.appendChild(script4);
  3377. })
  3378. } else if (str == 'mind') {
  3379. U.UF.DL.iframeLoad(_iframe, function () {
  3380. _iframe.contentWindow.document.body.appendChild(script1);
  3381. _iframe.contentWindow.document.body.appendChild(script2);
  3382. _iframe.contentWindow.document.body.appendChild(script4);
  3383. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  3384. })
  3385. } else {
  3386. _iframe.onload = () => {
  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. }
  3393. _jie.onclick = async () => {
  3394. let text = ''
  3395. if (aTool == 6) {
  3396. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3397. } else if (aTool == 3) {
  3398. text = await U.MD.D.I.getEditorContent(_iframe);
  3399. }
  3400. _loading.style.display = 'flex'
  3401. console.log(_loading);
  3402. var _ajs = _iframe.contentWindow.document.createElement("script");
  3403. _ajs.type = "text/javascript";
  3404. _ajs.innerHTML =
  3405. // 'console.log(' + _loading + ');\n' +
  3406. 'var _js = document.createElement("script");\n' +
  3407. '_js.type="text/javascript";\n' +
  3408. '_js.charset="UTF-8";\n' +
  3409. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3410. "_js.onload = function(){\n" +
  3411. ' var a = document.getElementsByTagName("img")\n' +
  3412. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3413. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3414. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3415. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3416. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3417. "beforeUpload_shishi(file," +
  3418. "'" +
  3419. _userid +
  3420. "'" +
  3421. ", " +
  3422. "'" +
  3423. _cid +
  3424. "'" +
  3425. ", " +
  3426. "'" +
  3427. _stage +
  3428. "'" +
  3429. ", " +
  3430. "'" +
  3431. _task +
  3432. "'" +
  3433. ", " +
  3434. "'" +
  3435. _tool +
  3436. "'" +
  3437. ", " +
  3438. "'" +
  3439. str + '_loadLi' +
  3440. "'" +
  3441. ", " +
  3442. "'" +
  3443. aTool +
  3444. "'" +
  3445. ", " +
  3446. "`" +
  3447. text +
  3448. "`" +
  3449. ")\n" +
  3450. " });\n" +
  3451. "}\n" +
  3452. "document.head.appendChild(_js);\n";
  3453. _iframe.contentWindow.document.head.appendChild(_ajs);
  3454. }
  3455. }
  3456. //U.MD.D.I.openClick(str);
  3457. //如果有任务栏信息
  3458. // if (_taskbar) {
  3459. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3460. // }
  3461. }
  3462. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  3463. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3464. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3465. _userinfo = US.userInfo, //登录用户信息
  3466. _userid = US.userInfo.userid //登录用户id
  3467. let _iframe;
  3468. let _cid = cid,
  3469. _stage = stage,
  3470. _task = task,
  3471. _tool = tool;
  3472. var _jie = $$("div", {
  3473. "style": {
  3474. "position": "absolute",
  3475. "bottom": "50px",
  3476. "right": "50px",
  3477. "zIndex": "9999",
  3478. "backgroundColor": "#2268bc",
  3479. "color": "#fff",
  3480. "padding": "12px 20px",
  3481. "cursor": "pointer",
  3482. "borderRadius": "4px",
  3483. },
  3484. "innerHTML": "上传模板"
  3485. })
  3486. let aTool = ''
  3487. let _loading = document.createElement('div')
  3488. _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;"
  3489. // _loading.id = "";
  3490. let _lchild = document.createElement('div')
  3491. let _limg = document.createElement('img')
  3492. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  3493. _limg.style = "width: 26px;margin-right: 10px;"
  3494. _lchild.appendChild(_limg)
  3495. let _lspan = document.createElement('span')
  3496. _lspan.innerHTML = "上传中..."
  3497. _lchild.appendChild(_lspan)
  3498. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  3499. _loading.appendChild(_lchild)
  3500. var _box = $$('div', {
  3501. "style": {
  3502. "position": "relative",
  3503. "width": "100%",
  3504. "height": "100%",
  3505. },
  3506. })
  3507. _box.appendChild(_loading)
  3508. _box.id = str + '_loadLi'
  3509. switch (str) {
  3510. case "whiteboard":
  3511. aTool = 1;
  3512. _iframe = $$("iframe", {
  3513. "frameborder": "no",
  3514. "border": "0",
  3515. "scrolling ": "no",
  3516. "style": {
  3517. "cssText": "border:0;width:100%;height:100%"
  3518. },
  3519. "src": "https://iwb.cocorobo.cn/"
  3520. })
  3521. _box.appendChild(_iframe);
  3522. _box.appendChild(_jie);
  3523. _formdiv = new U.UF.UI.form(
  3524. "电子白板",
  3525. _box, {
  3526. "id": "whiteboards" + cid + stage + task + tool,
  3527. "style": {
  3528. "width": "90%",
  3529. "height": "90%",
  3530. "overflow": 'hidden'
  3531. },
  3532. "onresize": function () { }
  3533. }, {
  3534. closecallback: function () { }
  3535. }, {
  3536. "style": {
  3537. "height": "36px"
  3538. }
  3539. }).form; //创建窗体
  3540. _taskbar = {
  3541. "id": str + _formdiv.id,
  3542. "style": {
  3543. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3544. },
  3545. "name": "电子白板",
  3546. "forms": _formdiv,
  3547. "click": function () {
  3548. U.MD.D.I.openApplication(str, obj, info);
  3549. }
  3550. }
  3551. break;
  3552. case "mind":
  3553. aTool = 3;
  3554. _iframe = $$("iframe", {
  3555. "frameborder": "no",
  3556. "border": "0",
  3557. "scrolling ": "no",
  3558. "style": {
  3559. "cssText": "border:0;width:100%;height:100%"
  3560. },
  3561. "src": "/kityminder-editor/dist/index.html"
  3562. });
  3563. _box.appendChild(_iframe);
  3564. _box.appendChild(_jie);
  3565. _formdiv = new U.UF.UI.form(
  3566. "思维导图",
  3567. _box, { //"/jsmind/example/demo.html"
  3568. "id": "minds" + cid + stage + task + tool,
  3569. "style": {
  3570. "width": "90%",
  3571. "height": "90%",
  3572. "overflow": 'hidden'
  3573. },
  3574. "onresize": function () { }
  3575. }, {
  3576. closecallback: function () { }
  3577. }, {
  3578. "style": {
  3579. "height": "36px"
  3580. }
  3581. }).form; //创建窗体
  3582. _taskbar = {
  3583. "id": str + _formdiv.id,
  3584. "style": {
  3585. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3586. },
  3587. "name": "思维导图",
  3588. "forms": _formdiv,
  3589. "click": function () {
  3590. U.MD.D.I.openApplication(str, obj, info);
  3591. }
  3592. }
  3593. break;
  3594. case "doc":
  3595. aTool = 6;
  3596. _iframe = $$("iframe", {
  3597. "frameborder": "no",
  3598. "border": "0",
  3599. "scrolling ": "no",
  3600. "style": {
  3601. "cssText": "border:0;width:100%;height:100%"
  3602. },
  3603. "src": "/Office/Word/WordEditArea.htm"
  3604. })
  3605. _box.appendChild(_iframe);
  3606. _box.appendChild(_jie);
  3607. _formdiv = new U.UF.UI.form(
  3608. "协同文档",
  3609. _box, {
  3610. "id": "docs" + cid + stage + task + tool,
  3611. "style": {
  3612. "width": "90%",
  3613. "height": "90%",
  3614. "overflow": 'hidden'
  3615. },
  3616. "onresize": function () { }
  3617. }, {
  3618. closecallback: function () { }
  3619. }, {
  3620. "style": {
  3621. "height": "36px"
  3622. }
  3623. }).form; //创建窗体
  3624. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3625. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  3626. })
  3627. _taskbar = {
  3628. "id": str + _formdiv.id,
  3629. "style": {
  3630. "backgroundImage": "url(/img/icon/doc.png)"
  3631. },
  3632. "name": "协同文档",
  3633. "forms": _formdiv,
  3634. "click": function () {
  3635. U.MD.D.I.openApplication(str, obj, info);
  3636. }
  3637. }
  3638. break;
  3639. }
  3640. const script1 = document.createElement("script");
  3641. script1.type = "text/javascript";
  3642. // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3643. // script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3644. // const script2 = document.createElement("script");
  3645. // script2.type = "text/javascript";
  3646. // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3647. // script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3648. // const script3 = document.createElement("script");
  3649. // script3.type = "text/javascript";
  3650. // script3.charset = "UTF-8";
  3651. // script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3652. // const script4 = document.createElement("script");
  3653. // script4.type = "text/javascript";
  3654. // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu4.js";
  3655. // script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  3656. if (_iframe) {
  3657. if (str == 'doc') {
  3658. U.UF.DL.iframeLoad(_iframe, function () {
  3659. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  3660. })
  3661. } else if (str == 'mind') {
  3662. U.UF.DL.iframeLoad(_iframe, function () {;
  3663. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  3664. })
  3665. }else if(str == 'whiteboard'){
  3666. U.UF.DL.iframeLoad(_iframe, function () {
  3667. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  3668. })
  3669. } else {
  3670. _iframe.onload = () => {
  3671. };
  3672. }
  3673. _jie.onclick = async () => {
  3674. let text = ''
  3675. let type = '2'
  3676. if (aTool == 1) {
  3677. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3678. type = '3'
  3679. }else if (aTool == 6) {
  3680. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3681. type = '2'
  3682. } else if (aTool == 3) {
  3683. text = await U.MD.D.I.getEditorContent(_iframe);
  3684. type = '1'
  3685. }
  3686. _loading.style.display = 'flex'
  3687. U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading,_lspan)
  3688. }
  3689. }
  3690. //U.MD.D.I.openClick(str);
  3691. //如果有任务栏信息
  3692. // if (_taskbar) {
  3693. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3694. // }
  3695. }
  3696. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  3697. var xmlhttp;
  3698. var Mac, Sn, DeviceId
  3699. if (window.XMLHttpRequest) {
  3700. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  3701. xmlhttp = new XMLHttpRequest();
  3702. }
  3703. else {
  3704. // IE6, IE5 浏览器执行代码
  3705. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  3706. }
  3707. xmlhttp.onreadystatechange = function () {
  3708. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  3709. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  3710. // resolve(res.value[0][0].text);
  3711. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  3712. $(fileInput).val('');
  3713. });
  3714. }
  3715. }
  3716. }
  3717. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  3718. xmlhttp.send();
  3719. }
  3720. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  3721. var xmlhttp;
  3722. var Mac, Sn, DeviceId
  3723. if (window.XMLHttpRequest) {
  3724. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  3725. xmlhttp = new XMLHttpRequest();
  3726. }
  3727. else {
  3728. // IE6, IE5 浏览器执行代码
  3729. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  3730. }
  3731. xmlhttp.onreadystatechange = function () {
  3732. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  3733. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  3734. // resolve(res.value[0][0].text);
  3735. if(type == '2'){
  3736. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  3737. $(fileInput).val('');
  3738. });
  3739. }else if(type == '3'){
  3740. iframe.contentWindow.h.app.updateScene({elements:JSON.parse(JSON.parse(xmlhttp.response)[0][0].text)})
  3741. }
  3742. }
  3743. }
  3744. }
  3745. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  3746. xmlhttp.send();
  3747. }
  3748. U.MD.D.I.setContents = function (cid, s, task, t, uid, type,text, loading,span) {
  3749. var xmlhttp;
  3750. var Mac, Sn, DeviceId
  3751. if (window.XMLHttpRequest) {
  3752. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  3753. xmlhttp = new XMLHttpRequest();
  3754. }
  3755. else {
  3756. // IE6, IE5 浏览器执行代码
  3757. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  3758. }
  3759. xmlhttp.onreadystatechange = function () {
  3760. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  3761. if (xmlhttp.response) {
  3762. // resolve(res.value[0][0].text);
  3763. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  3764. // $(fileInput).val('');
  3765. // });
  3766. span.innerHTML = '上传成功'
  3767. setTimeout(() => {
  3768. loading.style.display = 'none'
  3769. }, 1000);
  3770. }
  3771. }
  3772. }
  3773. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  3774. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  3775. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  3776. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  3777. // 设置请求头,表示请求体的编码格式
  3778. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type);
  3779. // 设置请求体,使用url-encoded格式的数据
  3780. }