DeskTop.js 191 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258
  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.schoolDeskIcon = [
  124. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  125. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  126. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  127. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  128. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  129. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  130. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  131. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  132. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  133. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  134. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  135. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  136. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  137. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  138. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  139. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  140. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  141. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  142. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  143. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  144. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  145. ];
  146. U.MD.D.I.orgDeskIcon = [
  147. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  148. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  149. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  150. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  151. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  152. ];
  153. U.MD.D.I.orgStemDeskIcon = [
  154. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  155. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  156. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  157. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  158. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  159. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  160. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  161. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  162. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  163. ];
  164. U.MD.D.I.hanDeskIcon = [
  165. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  166. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  167. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  168. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  169. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  170. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  171. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  172. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  173. { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  174. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  175. ];
  176. U.MD.D.I.GMteacherDeskIcon = [
  177. { "Name": "项目管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  178. { "Name": "学习中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  179. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  180. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  181. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  182. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  183. { "Name": "项目进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  184. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  185. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  186. ];
  187. U.MD.D.I.GMstudentDeskIcon = [
  188. { "Name": "学习中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  189. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  190. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  191. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  192. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  193. ];
  194. //北师大
  195. U.MD.D.I.BSDNSteacherDeskIcon = [
  196. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  197. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  198. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  199. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  200. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  201. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  202. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  203. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  204. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  205. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  206. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  207. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  208. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  209. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  210. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  211. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  212. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  213. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  214. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  215. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  216. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  217. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  218. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  219. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  220. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  221. // { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  222. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  223. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  224. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  225. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  226. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  227. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  228. { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  229. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  230. ];
  231. //松山湖
  232. U.MD.D.I.SONGteacherDeskIcon = [
  233. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  234. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  235. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  236. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  237. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  238. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  239. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  240. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  241. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  242. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  243. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  244. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  245. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  246. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  247. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  248. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  249. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  250. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  251. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  252. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  253. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  254. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  255. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  256. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  257. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  258. // { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  259. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  260. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  261. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  262. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  263. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  264. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  265. { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  266. ];
  267. //#region 桌面初始化a
  268. /**
  269. * 初始化桌面的起始函数
  270. *
  271. */
  272. U.MD.D.I.init = function () {
  273. if ($("#U_MD_D_K")[0]) {
  274. //初始化桌面图标
  275. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0]);
  276. // var clickUrl = ':12588/requestIp.php';
  277. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  278. // U.MD.D.I.Ip = data;
  279. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  280. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  281. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  282. // })
  283. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  284. // })
  285. }
  286. }
  287. /**
  288. * 隐藏任务栏
  289. *
  290. * @param {element} 桌面元素
  291. */
  292. U.MD.D.I.hiddenTaskbar = function (el) {
  293. //任务栏位置变小
  294. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  295. //桌面的位置变大
  296. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  297. }
  298. /**
  299. * 隐藏任务栏
  300. *
  301. * @param {element} 桌面元素
  302. */
  303. U.MD.D.I.hiddenTaskbarout = function (el) {
  304. //任务栏位置变小
  305. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  306. //任务栏位置变化
  307. U.selectEl(el).css({ "bottom": "-60px" });
  308. //桌面的位置变大
  309. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  310. }
  311. }
  312. /**
  313. * 初始化打印桌面图标
  314. *
  315. * @param {element} 桌面元素
  316. */
  317. U.MD.D.I.initDesktopIcons = function (el) {
  318. var i, //用于循环
  319. _content, //桌面图标元素
  320. _iconcontent, //桌面图标元素
  321. _frag = $$("frag"), //定义一个碎片元素
  322. _type = US.userInfo.type,
  323. _org = US.userInfo.org,
  324. _oid = US.userInfo.organizeid,
  325. _teacherDesktopIconInfo = U.MD.D.I.teacherDeskIcon, //获取教师端桌面图标
  326. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  327. _studentDesktopIconInfo = U.MD.D.I.studentDeskIcon, //获取学生端桌面图标
  328. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  329. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  330. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  331. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  332. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  333. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  334. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取北师大
  335. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  336. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon; //获取光明学校桌面图标
  337. var _oidA = ['69893dca-1d47-11ed-8c78-005056b86db5', "91305d49-01ba-11ed-8c78-005056b86db5", "d9db3320-503a-11ed-8c78-005056b86db5"];
  338. var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d"];
  339. //清楚桌面图标
  340. el.innerHTML = "";
  341. //循环创建桌面图标
  342. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  343. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  344. _content = $$("div", {
  345. className: "U_MD_D_KO",
  346. "onmousedown": U.UF.C.closure(function (obj) {
  347. //防止拖动图标即打开了桌面应用
  348. U.MD.D.click(this, obj);
  349. }, [_studentDesktopIconInfo[i]]),
  350. "onclick": U.UF.C.closure(function (obj) {
  351. //防止拖动图标即打开了桌面应用
  352. U.MD.D.click(this, obj);
  353. }, [_studentDesktopIconInfo[i]])
  354. }, _frag); //
  355. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  356. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  357. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  358. }
  359. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  360. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  361. _content = $$("div", {
  362. className: "U_MD_D_KO",
  363. "onmousedown": U.UF.C.closure(function (obj) {
  364. //防止拖动图标即打开了桌面应用
  365. U.MD.D.click(this, obj);
  366. }, [_studentDesktopIconInfo2[i]]),
  367. "onclick": U.UF.C.closure(function (obj) {
  368. //防止拖动图标即打开了桌面应用
  369. U.MD.D.click(this, obj);
  370. }, [_studentDesktopIconInfo2[i]])
  371. }, _frag); //
  372. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  373. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  374. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  375. }
  376. } else if ((_type == 1 || _type == 4) && _oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  377. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  378. _content = $$("div", {
  379. className: "U_MD_D_KO",
  380. "onmousedown": U.UF.C.closure(function (obj) {
  381. //防止拖动图标即打开了桌面应用
  382. U.MD.D.click(this, obj);
  383. }, [_teacherDesktopIconInfo2[i]]),
  384. "onclick": U.UF.C.closure(function (obj) {
  385. //防止拖动图标即打开了桌面应用
  386. U.MD.D.click(this, obj);
  387. }, [_teacherDesktopIconInfo2[i]])
  388. }, _frag); //
  389. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  390. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  391. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  392. }
  393. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  394. for (i = 0; i < _hanDeskIcon.length; i++) {
  395. _content = $$("div", {
  396. className: "U_MD_D_KO",
  397. "onmousedown": U.UF.C.closure(function (obj) {
  398. //防止拖动图标即打开了桌面应用
  399. U.MD.D.click(this, obj);
  400. }, [_hanDeskIcon[i]]),
  401. "onclick": U.UF.C.closure(function (obj) {
  402. //防止拖动图标即打开了桌面应用
  403. U.MD.D.click(this, obj);
  404. }, [_hanDeskIcon[i]])
  405. }, _frag); //
  406. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  407. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  408. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  409. }
  410. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  411. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  412. _content = $$("div", {
  413. className: "U_MD_D_KO",
  414. "onmousedown": U.UF.C.closure(function (obj) {
  415. //防止拖动图标即打开了桌面应用
  416. U.MD.D.click(this, obj);
  417. }, [_orgStemDeskIcon[i]]),
  418. "onclick": U.UF.C.closure(function (obj) {
  419. //防止拖动图标即打开了桌面应用
  420. U.MD.D.click(this, obj);
  421. }, [_orgStemDeskIcon[i]])
  422. }, _frag); //
  423. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  424. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  425. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  426. }
  427. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  428. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  429. _content = $$("div", {
  430. className: "U_MD_D_KO",
  431. "onmousedown": U.UF.C.closure(function (obj) {
  432. //防止拖动图标即打开了桌面应用
  433. U.MD.D.click(this, obj);
  434. }, [_orgDesktopIconInfo[i]]),
  435. "onclick": U.UF.C.closure(function (obj) {
  436. //防止拖动图标即打开了桌面应用
  437. U.MD.D.click(this, obj);
  438. }, [_orgDesktopIconInfo[i]])
  439. }, _frag); //
  440. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  441. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  442. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  443. }
  444. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  445. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  446. _content = $$("div", {
  447. className: "U_MD_D_KO",
  448. "onmousedown": U.UF.C.closure(function (obj) {
  449. //防止拖动图标即打开了桌面应用
  450. U.MD.D.click(this, obj);
  451. }, [_schoolDesktopIconInfo[i]]),
  452. "onclick": U.UF.C.closure(function (obj) {
  453. //防止拖动图标即打开了桌面应用
  454. U.MD.D.click(this, obj);
  455. }, [_schoolDesktopIconInfo[i]])
  456. }, _frag); //
  457. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  458. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  459. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  460. }
  461. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  462. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  463. _content = $$("div", {
  464. className: "U_MD_D_KO",
  465. "onmousedown": U.UF.C.closure(function (obj) {
  466. //防止拖动图标即打开了桌面应用
  467. U.MD.D.click(this, obj);
  468. }, [_studentDesktopIconInfo[i]]),
  469. "onclick": U.UF.C.closure(function (obj) {
  470. //防止拖动图标即打开了桌面应用
  471. U.MD.D.click(this, obj);
  472. }, [_studentDesktopIconInfo[i]])
  473. }, _frag); //
  474. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  475. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  476. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  477. }
  478. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  479. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  480. _content = $$("div", {
  481. className: "U_MD_D_KO",
  482. "onmousedown": U.UF.C.closure(function (obj) {
  483. //防止拖动图标即打开了桌面应用
  484. U.MD.D.click(this, obj);
  485. }, [_GMteacherDesktopIconInfo[i]]),
  486. "onclick": U.UF.C.closure(function (obj) {
  487. //防止拖动图标即打开了桌面应用
  488. U.MD.D.click(this, obj);
  489. }, [_GMteacherDesktopIconInfo[i]])
  490. }, _frag); //
  491. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  492. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  493. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  494. }
  495. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  496. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  497. _content = $$("div", {
  498. className: "U_MD_D_KO",
  499. "onmousedown": U.UF.C.closure(function (obj) {
  500. //防止拖动图标即打开了桌面应用
  501. U.MD.D.click(this, obj);
  502. }, [_SONGteacherDesktopIconInfo[i]]),
  503. "onclick": U.UF.C.closure(function (obj) {
  504. //防止拖动图标即打开了桌面应用
  505. U.MD.D.click(this, obj);
  506. }, [_SONGteacherDesktopIconInfo[i]])
  507. }, _frag); //
  508. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  509. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  510. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  511. }
  512. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  513. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  514. _content = $$("div", {
  515. className: "U_MD_D_KO",
  516. "onmousedown": U.UF.C.closure(function (obj) {
  517. //防止拖动图标即打开了桌面应用
  518. U.MD.D.click(this, obj);
  519. }, [_GMstudentDesktopIconInfo[i]]),
  520. "onclick": U.UF.C.closure(function (obj) {
  521. //防止拖动图标即打开了桌面应用
  522. U.MD.D.click(this, obj);
  523. }, [_GMstudentDesktopIconInfo[i]])
  524. }, _frag); //
  525. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  526. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  527. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  528. }
  529. } else {
  530. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  531. _content = $$("div", {
  532. className: "U_MD_D_KO",
  533. "onmousedown": U.UF.C.closure(function (obj) {
  534. //防止拖动图标即打开了桌面应用
  535. U.MD.D.click(this, obj);
  536. }, [_teacherDesktopIconInfo[i]]),
  537. "onclick": U.UF.C.closure(function (obj) {
  538. //防止拖动图标即打开了桌面应用
  539. U.MD.D.click(this, obj);
  540. }, [_teacherDesktopIconInfo[i]])
  541. }, _frag); //
  542. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  543. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  544. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  545. }
  546. }
  547. // else if ((_type == 1 || _type == 4) && _oid == "857af1c7-c8ee-4b04-85b5-fd182903adb7") {
  548. // for (i = 0; i < _BSDNSteacherDesktopIconInfo.length; i++) {
  549. // _content = $$("div", {
  550. // className: "U_MD_D_KO",
  551. // "onmousedown": U.UF.C.closure(function(obj) {
  552. // //防止拖动图标即打开了桌面应用
  553. // U.MD.D.click(this, obj);
  554. // }, [_BSDNSteacherDesktopIconInfo[i]]),
  555. // "onclick": U.UF.C.closure(function(obj) {
  556. // //防止拖动图标即打开了桌面应用
  557. // U.MD.D.click(this, obj);
  558. // }, [_BSDNSteacherDesktopIconInfo[i]])
  559. // }, _frag); //
  560. // _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  561. // $$("div", { className: "U_MD_D_KOS U_Img", "style": _BSDNSteacherDesktopIconInfo[i].style }, _iconcontent);
  562. // $$("div", { className: "U_MD_D_KOX", "innerHTML": _BSDNSteacherDesktopIconInfo[i].Name }, _iconcontent);
  563. // }
  564. // }
  565. //加载好后给图标定位
  566. U.MD.D.iconPostion($(_frag).Child());
  567. //把图标加载到页面
  568. el.appendChild(_frag);
  569. }
  570. /**
  571. * 显示任务栏
  572. *
  573. * @param {element} 桌面元素
  574. */
  575. U.MD.D.I.displayTaskbar = function (el) {
  576. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  577. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  578. //任务栏位置变化
  579. U.selectEl(el).css({ "bottom": "0px" });
  580. //桌面位置变话
  581. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  582. }
  583. }
  584. //#region 桌面图标拖动逻辑
  585. /**
  586. * 桌面排列图标
  587. *
  588. * @param {element} 桌面元素
  589. * @param {object} 上下相距的距离
  590. * @param {object} 左右相距的距离
  591. * @return {object} 命名空间
  592. */
  593. U.MD.D.iconPostion = function (childs, top, left) {
  594. var i; //用于循环处理
  595. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  596. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  597. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  598. for (i = 0; i < childs.length; i++) {
  599. //如果竖排top超过了范围处理
  600. if (top + 95 > US.height - 10) {
  601. //left超过了页面范围处理,则向上重叠打印处理
  602. if ((left + 180) > US.width) {
  603. top -= 110;
  604. left -= 90;
  605. }
  606. //没有超过范围,那么left+90添加到下一个竖排打印
  607. else {
  608. left += 90;
  609. top = 15;
  610. };
  611. }
  612. //给图标的位置赋值
  613. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  614. if (i < childs.length - 1) {
  615. //页面图标每次向下加95
  616. top += 95;
  617. }
  618. }
  619. //返回最后调用的图标的位置
  620. return [top, left];
  621. }
  622. /**
  623. * 桌面点击事件逻辑
  624. *
  625. * @param {element} 桌面元素
  626. * @param {object} 上下相距的距离
  627. * @param {object} 左右相距的距离
  628. * @return {object} 命名空间
  629. */
  630. U.MD.D.click = function (el, obj) {
  631. var _buttonnumber = event.button; //点击的按钮的事件值
  632. var _userinfo = US.userInfo;
  633. U.UF.EV.stopBubble(); //阻止向上冒泡
  634. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  635. if (_buttonnumber < 2) {
  636. //如果是click事件的处理
  637. if (event.type == "click") {
  638. //如果元素在mousemove事件中没有移动则出发click事件
  639. if (!U.MD.D.I.IsDrag) {
  640. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  641. U.alert("请先登录您的账号!");
  642. setTimeout(() => {
  643. U.MD.U.L.login();
  644. }, 2000);
  645. } else {
  646. //打开应用处理
  647. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  648. }
  649. }
  650. }
  651. //如果是mouse事件的处理
  652. else {
  653. //拖动处理,添加拖动和拖动结束事件
  654. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  655. }
  656. U.MD.D.I.IsDrag = false;
  657. }
  658. }
  659. /**
  660. * 拖动的处理
  661. *
  662. */
  663. U.MD.D.iconMove = function () {
  664. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  665. U.MD.D.I.IsDrag = true;
  666. }
  667. /**
  668. * 拖动结束后,这里是定位处理,以网状的形式定位
  669. *
  670. * @param {element} 拖动的元素
  671. * @return {object} 命名空间
  672. */
  673. U.MD.D.iconUp = function (el) {
  674. var _top = 15,
  675. _left = 20,
  676. _margin,
  677. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  678. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  679. if (_positioninfo["OT"] > 15) {
  680. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  681. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  682. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  683. }
  684. if (_positioninfo["OL"] > 20) {
  685. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  686. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  687. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  688. }
  689. //while循环判断么一个重叠的元素
  690. do {
  691. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  692. _top = _positioninfo[0] + 95; //得到定位后的top
  693. _left = _positioninfo[1]; //得到定位后的left
  694. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  695. }
  696. /**
  697. * 判断拖动后图标是否重叠
  698. *
  699. * @param {element} 拖动的元素
  700. * @param {element} 桌面所有的元素
  701. * @param {array} 拖动元素的位置
  702. ----------[0] 上 top
  703. ----------[1] 左 left
  704. * @return {object} 命名空间
  705. */
  706. U.MD.D.isOverlap = function (el, childs, postionarray) {
  707. //循环所有的图标
  708. for (var i = 0; i < childs.length; i++) {
  709. //判断有没有和该图标诶子重叠的元素
  710. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  711. return childs[i]; //如果有返回
  712. }
  713. }
  714. }
  715. //#endregion
  716. //#endregion
  717. //#region 桌面应用
  718. /**
  719. * 打开应用
  720. *
  721. * @param {string} 类型
  722. -----------------Disk 网盘系统
  723. -----------------PDisk 学习系统网盘
  724. -----------------Poto 图片
  725. -----------------Video 视频
  726. -----------------Music 音乐
  727. -----------------Word word
  728. -----------------Excel excel
  729. -----------------Txt 记事本
  730. -----------------PB 学习系统
  731. -----------------Blog 朋友圈系统
  732. -----------------FTP ftp系统
  733. -----------------Group 好友群
  734. -----------------SY 首页系统
  735. -----------------Set 个人设置
  736. -----------------XSet 系统设置
  737. -----------------App 我们所有的app
  738. -----------------BC c.1473.cn 平台
  739. -----------------CWeb d.1473.cn 变成平台
  740. -----------------其他的外联系统 我们统一用iframe打开
  741. * @param {array} 类型
  742. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  743. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  744. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  745. 如果第一个参数为其他,则无第二个参数
  746. * @returns {array}
  747. */
  748. window.addEventListener('message', function (e) { // 监听 message 事件
  749. // alert(e.data.type);
  750. if (e.data.screenType && e.data.screenType == "2") { //项目管理传入
  751. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  752. //3是展示全部阶段 2学生 1老师 4专家
  753. } else if (e.data.screenType && e.data.screenType == "3") { //项目管理传入
  754. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  755. } else if (e.data.screenType && e.data.screenType == "3s") { //项目管理传入
  756. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  757. } else if (e.data.screenType && e.data.screenType == "2gm") { //项目管理传入
  758. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  759. //3是展示全部阶段 2学生 1老师 4专家
  760. } else if (e.data.screenType && e.data.screenType == "3gm") { //项目管理传入
  761. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  762. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  763. U.MD.D.I.selectUser();
  764. } else if (e.data.allScreen && e.data.allScreen == "1") {
  765. var _formel = document.getElementById("study");
  766. U.UF.F.windowZooming(_formel);
  767. } else if (e.data.allScreen && e.data.allScreen == "2") {
  768. var _formel = document.getElementById("studyDetail");
  769. U.UF.F.windowZooming(_formel);
  770. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  771. var _formel = document.getElementById("studyDetail");
  772. U.UF.F.windowZooming(_formel);
  773. } else if (e.data.allScreen && e.data.allScreen == "3") {
  774. var _formel = document.getElementById("studentStudy");
  775. U.UF.F.windowZooming(_formel);
  776. } else if (e.data.allScreen && e.data.allScreen == "6") {
  777. var _formel = document.getElementById("study");
  778. //如果最大化了,那么就把他缩小
  779. // if (_formel.ismaximize) {
  780. // return;
  781. // }
  782. // U.UF.F.windowZooming(_formel);
  783. U.UF.F.topWindow(_formel);
  784. } else if (e.data.allScreen && e.data.allScreen == "4") {
  785. var _formel = document.getElementById("studyDetail");
  786. //如果最大化了,那么就把他缩小
  787. // if (_formel.ismaximize) {
  788. // return;
  789. // }
  790. // U.UF.F.windowZooming(_formel);
  791. U.UF.F.topWindow(_formel);
  792. } else if (e.data.allScreen && e.data.allScreen == "5") {
  793. var _formel = document.getElementById("studentStudy");
  794. // if (_formel.ismaximize) {
  795. // return;
  796. // }
  797. // U.UF.F.windowZooming(_formel);
  798. U.UF.F.topWindow(_formel);
  799. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  800. var _formel = document.getElementById("study");
  801. // if (_formel.ismaximize) {
  802. // return;
  803. // }
  804. // U.UF.F.windowZooming(_formel);
  805. U.UF.F.topWindow(_formel);
  806. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  807. var _formel = document.getElementById("studyDetailS");
  808. U.UF.F.windowZooming(_formel);
  809. }else if (e.data.allScreen && e.data.allScreen == "4s") {
  810. var _formel = document.getElementById("studyDetailS");
  811. U.UF.F.topWindow(_formel);
  812. } else if (e.data.tools && e.data.tools == "1") {
  813. // U.MD.D.I.openApplication("whiteboard")
  814. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  815. } else if (e.data.tools && e.data.tools == "2") {
  816. U.MD.D.I.openApplication("note")
  817. } else if (e.data.tools && e.data.tools == "3") {
  818. // U.MD.D.I.openApplication("mind")
  819. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  820. } else if (e.data.tools && e.data.tools == "4") {
  821. U.MD.D.I.openApplication("investigation")
  822. } else if (e.data.tools && e.data.tools == "6") {
  823. // U.MD.D.I.openApplication("doc")
  824. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  825. } else if (e.data.tools && e.data.tools == "7") {
  826. // U.MD.D.I.openApplication("mindNetwork")
  827. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  828. } else if (e.data.tools && e.data.tools == "8") {
  829. U.MD.D.I.openApplication("library")
  830. } else if (e.data.tools && e.data.tools == "17") {
  831. U.MD.D.I.openApplication("stuLibrary")
  832. } else if (e.data.tools && e.data.tools == "18") {
  833. U.MD.D.I.openApplication("train")
  834. } else if (e.data.tools && e.data.tools == "21") {
  835. U.MD.D.I.openApplication("program")
  836. } else if (e.data.tools && e.data.tools == "22") {
  837. U.MD.D.I.openApplication("AIprogram2")
  838. } else if (e.data.tools && e.data.tools == "23") {
  839. U.MD.D.I.openApplication("Pythonprogram")
  840. } else if (e.data.tools && e.data.tools == "24") {
  841. U.MD.D.I.openApplication("AIprogram")
  842. } else if (e.data.tools && e.data.tools == "25") {
  843. U.MD.D.I.openApplication("sys")
  844. } else if (e.data.tools && e.data.tools == "26") {
  845. // U.MD.D.I.openApplication("courseDesign")
  846. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  847. } else if (e.data.tools && e.data.tools == "31") {
  848. U.MD.D.I.openApplication("netWorkPanel")
  849. } else if (e.data.tools && e.data.tools == "32") {
  850. U.MD.D.I.openApplication("codeEdit")
  851. } else if (e.data.tools && e.data.tools == "28") {
  852. U.MD.D.I.openApplication("translation")
  853. } else if (e.data.tools && e.data.tools == "37") {
  854. U.MD.D.I.openApplication("mohe")
  855. } else if (e.data.tools && e.data.tools == "38") {
  856. U.MD.D.I.openApplication("24game")
  857. } else if (e.data.tools && e.data.tools == "39") {
  858. U.MD.D.I.openApplication("GeoGebra")
  859. } else if (e.data.tools && e.data.tools == "43") {
  860. U.MD.D.I.openApplication("studentEvaluate")
  861. } else if (e.data.tools && e.data.tools == "44") {
  862. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  863. } else if (e.data.tools && e.data.tools == "46") {
  864. U.MD.D.I.openApplication("project")
  865. } else if (e.data.tools && e.data.tools == "1s") {
  866. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  867. } else if (e.data.tools && e.data.tools == "3s") {
  868. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  869. } else if (e.data.tools && e.data.tools == "6s") {
  870. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  871. }
  872. });
  873. U.MD.D.I.selectUser = function () {
  874. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  875. if (res.value[0].length > 0) {
  876. US.userInfo = res.value[0][0];
  877. $(".userName")[0].innerHTML = US.userInfo.username;
  878. }
  879. }, [], { "type": "GET", "withCredentials": true });
  880. }
  881. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  882. var _userinfo = US.userInfo, //登录用户信息
  883. _userid = US.userInfo.userid, //登录用户id
  884. _oid = _userinfo.organizeid,
  885. _type = US.userInfo.type,
  886. _org = US.userInfo.org,
  887. _classId = US.userInfo.classid;
  888. if (_type == 4) {
  889. tType = 4
  890. }
  891. switch (str) {
  892. case "studyDetail":
  893. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  894. setTimeout(() => {
  895. U.MD.U.L.login();
  896. }, 2000);
  897. } else {
  898. _formdiv = new U.UF.UI.form(
  899. "项目详情",
  900. $$("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 }), {
  901. "id": "studyDetail",
  902. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  903. "onresize": function () { }
  904. }, {
  905. closecallback: function () { }
  906. }, { "style": { "height": "36px" } }).form; //创建窗体
  907. _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); } }
  908. break;
  909. }
  910. case "studyDetailS":
  911. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  912. setTimeout(() => {
  913. U.MD.U.L.login();
  914. }, 2000);
  915. } else {
  916. _formdiv = new U.UF.UI.form(
  917. "项目详情",
  918. $$("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 }), {
  919. "id": "studyDetailS",
  920. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  921. "onresize": function () { }
  922. }, {
  923. closecallback: function () { }
  924. }, { "style": { "height": "36px" } }).form; //创建窗体
  925. _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); } }
  926. break;
  927. }
  928. case "studyDetailGM":
  929. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  930. setTimeout(() => {
  931. U.MD.U.L.login();
  932. }, 2000);
  933. } else {
  934. _formdiv = new U.UF.UI.form(
  935. "项目详情",
  936. $$("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 }), {
  937. "id": "studyDetail",
  938. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  939. "onresize": function () { }
  940. }, {
  941. closecallback: function () { }
  942. }, { "style": { "height": "36px" } }).form; //创建窗体
  943. _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); } }
  944. break;
  945. }
  946. case "hanUrl":
  947. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  948. setTimeout(() => {
  949. U.MD.U.L.login();
  950. }, 2000);
  951. } else {
  952. _formdiv = new U.UF.UI.form(
  953. "汉字宫",
  954. $$("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" }), {
  955. "id": "hanUrl",
  956. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  957. "onresize": function () { }
  958. }, {
  959. closecallback: function () { }
  960. }, { "style": { "height": "36px" } }).form; //创建窗体
  961. _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); } }
  962. break;
  963. }
  964. }
  965. }
  966. U.MD.D.I.openApplication = function (str, obj, info) {
  967. obj = obj || {};
  968. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  969. _formdiv, //创建任务栏时同时弹出的窗体元素。
  970. _userinfo = US.userInfo, //登录用户信息
  971. _userid = obj.userid || US.userInfo.userid, //登录用户id
  972. _oid = obj.organizeid || _userinfo.organizeid,
  973. _type = US.userInfo.type,
  974. _org = US.userInfo.org,
  975. _classId = US.userInfo.classid,
  976. _TscreenType = 1
  977. _screenType = 2,
  978. _SscreenType = 3;
  979. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  980. switch (str) {
  981. case "studnetProject": //好友打开
  982. _formdiv = new U.UF.UI.form(
  983. "我的项目",
  984. $$("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 }), {
  985. "id": "studnetProject",
  986. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  987. "onresize": function () { }
  988. }, {
  989. closecallback: function () { }
  990. }, { "style": { "height": "36px" } }).form; //创建窗体
  991. _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); } }
  992. break;
  993. case "studentEvaluate": //好友打开
  994. _formdiv = new U.UF.UI.form(
  995. "我的评价",
  996. $$("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 }), {
  997. "id": "studentEvaluate",
  998. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  999. "onresize": function () { }
  1000. }, {
  1001. closecallback: function () { }
  1002. }, { "style": { "height": "36px" } }).form; //创建窗体
  1003. _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); } }
  1004. break;
  1005. case "my":
  1006. _formdiv = new U.UF.UI.form(
  1007. "我的资料",
  1008. $$("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 }), {
  1009. "id": "my",
  1010. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1011. "onresize": function () { }
  1012. }, {
  1013. closecallback: function () { }
  1014. }, { "style": { "height": "36px" } }).form; //创建窗体
  1015. _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); } }
  1016. break;
  1017. case "program":
  1018. _formdiv = new U.UF.UI.form(
  1019. "编程平台",
  1020. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1021. "id": "program",
  1022. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1023. "onresize": function () { }
  1024. }, {
  1025. closecallback: function () { }
  1026. }, { "style": { "height": "36px" } }).form; //创建窗体
  1027. _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); } }
  1028. break;
  1029. case "library":
  1030. _formdiv = new U.UF.UI.form(
  1031. "素材库",
  1032. $$("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 }), {
  1033. "id": "library",
  1034. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1035. "onresize": function () { }
  1036. }, {
  1037. closecallback: function () { }
  1038. }, { "style": { "height": "36px" } }).form; //创建窗体
  1039. _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); } }
  1040. break;
  1041. case "whiteboard":
  1042. _formdiv = new U.UF.UI.form(
  1043. "电子白板",
  1044. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1045. "id": "whiteboard",
  1046. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1047. "onresize": function () { }
  1048. }, {
  1049. closecallback: function () { }
  1050. }, { "style": { "height": "36px" } }).form; //创建窗体
  1051. _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); } }
  1052. break;
  1053. case "investigation":
  1054. _formdiv = new U.UF.UI.form(
  1055. "问卷调查",
  1056. $$("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 }), {
  1057. "id": "investigation",
  1058. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1059. "onresize": function () { }
  1060. }, {
  1061. closecallback: function () { }
  1062. }, { "style": { "height": "36px" } }).form; //创建窗体
  1063. _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); } }
  1064. break;
  1065. case "note":
  1066. _formdiv = new U.UF.UI.form(
  1067. "便签分类",
  1068. $$("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 }), {
  1069. "id": "note",
  1070. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1071. "onresize": function () { }
  1072. }, {
  1073. closecallback: function () { }
  1074. }, { "style": { "height": "36px" } }).form; //创建窗体
  1075. _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); } }
  1076. break;
  1077. // case "score":
  1078. // _formdiv = new U.UF.UI.form(
  1079. // "量规评分",
  1080. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1081. // "id": "score",
  1082. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1083. // "onresize": function() {}
  1084. // }, {
  1085. // closecallback: function() {}
  1086. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1087. // _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); } }
  1088. // break;
  1089. case "mind":
  1090. _formdiv = new U.UF.UI.form(
  1091. "思维导图",
  1092. $$("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"
  1093. "id": "mind",
  1094. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1095. "onresize": function () { }
  1096. }, {
  1097. closecallback: function () { }
  1098. }, { "style": { "height": "36px" } }).form; //创建窗体
  1099. _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); } }
  1100. break;
  1101. case "doc":
  1102. // U.MD.D.I.isRoom();
  1103. _formdiv = new U.UF.UI.form(
  1104. "协同文档",
  1105. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1106. "id": "doc",
  1107. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1108. "onresize": function () { }
  1109. }, {
  1110. closecallback: function () { }
  1111. }, { "style": { "height": "36px" } }).form; //创建窗体
  1112. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1113. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1114. // })
  1115. _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); } }
  1116. break;
  1117. case "studentStudy":
  1118. _formdiv = new U.UF.UI.form(
  1119. "学习中心",
  1120. $$("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
  1121. "id": "studentStudy",
  1122. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1123. "onresize": function () { }
  1124. }, {
  1125. closecallback: function () { }
  1126. }, { "style": { "height": "36px" } }).form; //创建窗体
  1127. _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); } }
  1128. break;
  1129. case "train": //好友打开
  1130. _formdiv = new U.UF.UI.form(
  1131. "训练平台",
  1132. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1133. "id": "train",
  1134. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1135. "onresize": function () { }
  1136. }, {
  1137. closecallback: function () { }
  1138. }, { "style": { "height": "36px" } }).form; //创建窗体
  1139. _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); } }
  1140. break;
  1141. case "mindNetwork": //好友打开
  1142. _formdiv = new U.UF.UI.form(
  1143. "思维网格",
  1144. $$("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 }), {
  1145. "id": "mindNetwork",
  1146. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1147. "onresize": function () { }
  1148. }, {
  1149. closecallback: function () { }
  1150. }, { "style": { "height": "36px" } }).form; //创建窗体
  1151. _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); } }
  1152. break;
  1153. case "studentClassRoom": //好友打开
  1154. _formdiv = new U.UF.UI.form(
  1155. "实时课堂",
  1156. $$("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 }), {
  1157. "id": "studentClassRoom",
  1158. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1159. "onresize": function () { }
  1160. }, {
  1161. closecallback: function () { }
  1162. }, { "style": { "height": "36px" } }).form; //创建窗体
  1163. _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); } }
  1164. setTimeout(() => {
  1165. U.UF.F.windowZooming(_formdiv)
  1166. }, 0);
  1167. break;
  1168. }
  1169. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1170. switch (str) {
  1171. case "studnetProject": //好友打开
  1172. _formdiv = new U.UF.UI.form(
  1173. "我的项目",
  1174. $$("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 }), {
  1175. "id": "studnetProject",
  1176. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1177. "onresize": function () { }
  1178. }, {
  1179. closecallback: function () { }
  1180. }, { "style": { "height": "36px" } }).form; //创建窗体
  1181. _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); } }
  1182. break;
  1183. case "studentEvaluate": //好友打开
  1184. _formdiv = new U.UF.UI.form(
  1185. "我的评价",
  1186. $$("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 }), {
  1187. "id": "studentEvaluate",
  1188. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1189. "onresize": function () { }
  1190. }, {
  1191. closecallback: function () { }
  1192. }, { "style": { "height": "36px" } }).form; //创建窗体
  1193. _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); } }
  1194. break;
  1195. case "my":
  1196. _formdiv = new U.UF.UI.form(
  1197. "我的资料",
  1198. $$("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 }), {
  1199. "id": "my",
  1200. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1201. "onresize": function () { }
  1202. }, {
  1203. closecallback: function () { }
  1204. }, { "style": { "height": "36px" } }).form; //创建窗体
  1205. _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); } }
  1206. break;
  1207. case "program":
  1208. _formdiv = new U.UF.UI.form(
  1209. "编程平台",
  1210. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1211. "id": "program",
  1212. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1213. "onresize": function () { }
  1214. }, {
  1215. closecallback: function () { }
  1216. }, { "style": { "height": "36px" } }).form; //创建窗体
  1217. _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); } }
  1218. break;
  1219. case "library":
  1220. _formdiv = new U.UF.UI.form(
  1221. "素材库",
  1222. $$("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 }), {
  1223. "id": "library",
  1224. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1225. "onresize": function () { }
  1226. }, {
  1227. closecallback: function () { }
  1228. }, { "style": { "height": "36px" } }).form; //创建窗体
  1229. _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); } }
  1230. break;
  1231. case "whiteboard":
  1232. _formdiv = new U.UF.UI.form(
  1233. "电子白板",
  1234. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1235. "id": "whiteboard",
  1236. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1237. "onresize": function () { }
  1238. }, {
  1239. closecallback: function () { }
  1240. }, { "style": { "height": "36px" } }).form; //创建窗体
  1241. _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); } }
  1242. break;
  1243. case "investigation":
  1244. _formdiv = new U.UF.UI.form(
  1245. "问卷调查",
  1246. $$("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 }), {
  1247. "id": "investigation",
  1248. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1249. "onresize": function () { }
  1250. }, {
  1251. closecallback: function () { }
  1252. }, { "style": { "height": "36px" } }).form; //创建窗体
  1253. _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); } }
  1254. break;
  1255. case "note":
  1256. _formdiv = new U.UF.UI.form(
  1257. "便签分类",
  1258. $$("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 }), {
  1259. "id": "note",
  1260. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1261. "onresize": function () { }
  1262. }, {
  1263. closecallback: function () { }
  1264. }, { "style": { "height": "36px" } }).form; //创建窗体
  1265. _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); } }
  1266. break;
  1267. // case "score":
  1268. // _formdiv = new U.UF.UI.form(
  1269. // "量规评分",
  1270. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1271. // "id": "score",
  1272. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1273. // "onresize": function() {}
  1274. // }, {
  1275. // closecallback: function() {}
  1276. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1277. // _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); } }
  1278. // break;
  1279. case "mind":
  1280. _formdiv = new U.UF.UI.form(
  1281. "思维导图",
  1282. $$("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"
  1283. "id": "mind",
  1284. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1285. "onresize": function () { }
  1286. }, {
  1287. closecallback: function () { }
  1288. }, { "style": { "height": "36px" } }).form; //创建窗体
  1289. _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); } }
  1290. break;
  1291. case "doc":
  1292. // U.MD.D.I.isRoom();
  1293. _formdiv = new U.UF.UI.form(
  1294. "协同文档",
  1295. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1296. "id": "doc",
  1297. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1298. "onresize": function () { }
  1299. }, {
  1300. closecallback: function () { }
  1301. }, { "style": { "height": "36px" } }).form; //创建窗体
  1302. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1303. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1304. })
  1305. _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); } }
  1306. break;
  1307. case "train": //好友打开
  1308. _formdiv = new U.UF.UI.form(
  1309. "训练平台",
  1310. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1311. "id": "train",
  1312. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1313. "onresize": function () { }
  1314. }, {
  1315. closecallback: function () { }
  1316. }, { "style": { "height": "36px" } }).form; //创建窗体
  1317. _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); } }
  1318. break;
  1319. case "studentStudy":
  1320. _formdiv = new U.UF.UI.form(
  1321. "学习中心",
  1322. $$("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
  1323. "id": "studentStudy",
  1324. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1325. "onresize": function () { }
  1326. }, {
  1327. closecallback: function () { }
  1328. }, { "style": { "height": "36px" } }).form; //创建窗体
  1329. _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); } }
  1330. break;
  1331. case "mindNetwork": //好友打开
  1332. _formdiv = new U.UF.UI.form(
  1333. "思维网格",
  1334. $$("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 }), {
  1335. "id": "mindNetwork",
  1336. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1337. "onresize": function () { }
  1338. }, {
  1339. closecallback: function () { }
  1340. }, { "style": { "height": "36px" } }).form; //创建窗体
  1341. _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); } }
  1342. break;
  1343. case "studentClassRoom": //好友打开
  1344. _formdiv = new U.UF.UI.form(
  1345. "实时课堂",
  1346. $$("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 }), {
  1347. "id": "studentClassRoom",
  1348. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1349. "onresize": function () { }
  1350. }, {
  1351. closecallback: function () { }
  1352. }, { "style": { "height": "36px" } }).form; //创建窗体
  1353. _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); } }
  1354. setTimeout(() => {
  1355. U.UF.F.windowZooming(_formdiv)
  1356. }, 0);
  1357. break;
  1358. }
  1359. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1360. //选择应用处理
  1361. switch (str) {
  1362. case "project": //好友打开
  1363. _formdiv = new U.UF.UI.form(
  1364. "项目管理",
  1365. $$("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 }), {
  1366. "id": "project",
  1367. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1368. "onresize": function () { }
  1369. }, {
  1370. closecallback: function () { }
  1371. }, { "style": { "height": "36px" } }).form; //创建窗体
  1372. _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); } }
  1373. break;
  1374. case "student":
  1375. _formdiv = new U.UF.UI.form(
  1376. "学生管理",
  1377. $$("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 }), {
  1378. "id": "student",
  1379. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1380. "onresize": function () { }
  1381. }, {
  1382. closecallback: function () { }
  1383. }, { "style": { "height": "36px" } }).form; //创建窗体
  1384. _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); } }
  1385. break;
  1386. case "evaluate":
  1387. _formdiv = new U.UF.UI.form(
  1388. "学生评价",
  1389. $$("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 }), {
  1390. "id": "evaluate",
  1391. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1392. "onresize": function () { }
  1393. }, {
  1394. closecallback: function () { }
  1395. }, { "style": { "height": "36px" } }).form; //创建窗体
  1396. _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); } }
  1397. break;
  1398. case "sys":
  1399. _formdiv = new U.UF.UI.form(
  1400. "目标管理",
  1401. $$("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 }), {
  1402. "id": "sys",
  1403. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1404. "onresize": function () { }
  1405. }, {
  1406. closecallback: function () { }
  1407. }, { "style": { "height": "36px" } }).form; //创建窗体
  1408. _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); } }
  1409. break;
  1410. case "courseDesign":
  1411. _formdiv = new U.UF.UI.form(
  1412. "课程设计",
  1413. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1414. "id": "courseDesign",
  1415. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1416. "onresize": function () { }
  1417. }, {
  1418. closecallback: function () { }
  1419. }, { "style": { "height": "36px" } }).form; //创建窗体
  1420. _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); } }
  1421. break;
  1422. case "program":
  1423. _formdiv = new U.UF.UI.form(
  1424. "编程平台",
  1425. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1426. "id": "program",
  1427. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1428. "onresize": function () { }
  1429. }, {
  1430. closecallback: function () { }
  1431. }, { "style": { "height": "36px" } }).form; //创建窗体
  1432. _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); } }
  1433. break;
  1434. case "class":
  1435. _formdiv = new U.UF.UI.form(
  1436. "班级管理",
  1437. $$("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 }), {
  1438. "id": "class",
  1439. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1440. "onresize": function () { }
  1441. }, {
  1442. closecallback: function () { }
  1443. }, { "style": { "height": "36px" } }).form; //创建窗体
  1444. _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); } }
  1445. break;
  1446. case "my":
  1447. _formdiv = new U.UF.UI.form(
  1448. "我的资料",
  1449. $$("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 }), {
  1450. "id": "my",
  1451. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1452. "onresize": function () { }
  1453. }, {
  1454. closecallback: function () { }
  1455. }, { "style": { "height": "36px" } }).form; //创建窗体
  1456. _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); } }
  1457. break;
  1458. case "notice":
  1459. _formdiv = new U.UF.UI.form(
  1460. "通知公告",
  1461. $$("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 }), {
  1462. "id": "notice",
  1463. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1464. "onresize": function () { }
  1465. }, {
  1466. closecallback: function () { }
  1467. }, { "style": { "height": "36px" } }).form; //创建窗体
  1468. _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); } }
  1469. break;
  1470. case "library":
  1471. _formdiv = new U.UF.UI.form(
  1472. "素材库",
  1473. $$("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 }), {
  1474. "id": "library",
  1475. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1476. "onresize": function () { }
  1477. }, {
  1478. closecallback: function () { }
  1479. }, { "style": { "height": "36px" } }).form; //创建窗体
  1480. _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); } }
  1481. break;
  1482. case "whiteboard":
  1483. _formdiv = new U.UF.UI.form(
  1484. "电子白板",
  1485. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1486. "id": "whiteboard",
  1487. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1488. "onresize": function () { }
  1489. }, {
  1490. closecallback: function () { }
  1491. }, { "style": { "height": "36px" } }).form; //创建窗体
  1492. _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); } }
  1493. break;
  1494. case "investigation":
  1495. _formdiv = new U.UF.UI.form(
  1496. "问卷调查",
  1497. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  1498. "id": "investigation",
  1499. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1500. "onresize": function () { }
  1501. }, {
  1502. closecallback: function () { }
  1503. }, { "style": { "height": "36px" } }).form; //创建窗体
  1504. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1505. break;
  1506. case "note":
  1507. _formdiv = new U.UF.UI.form(
  1508. "便签分类",
  1509. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  1510. "id": "note",
  1511. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1512. "onresize": function () { }
  1513. }, {
  1514. closecallback: function () { }
  1515. }, { "style": { "height": "36px" } }).form; //创建窗体
  1516. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1517. break;
  1518. // case "score":
  1519. // _formdiv = new U.UF.UI.form(
  1520. // "量规评分",
  1521. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1522. // "id": "score",
  1523. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1524. // "onresize": function() {}
  1525. // }, {
  1526. // closecallback: function() {}
  1527. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1528. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1529. // break;
  1530. case "mind":
  1531. _formdiv = new U.UF.UI.form(
  1532. "思维导图",
  1533. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1534. "id": "mind",
  1535. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1536. "onresize": function () { }
  1537. }, {
  1538. closecallback: function () { }
  1539. }, { "style": { "height": "36px" } }).form; //创建窗体
  1540. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1541. break;
  1542. case "doc":
  1543. // U.MD.D.I.isRoom();
  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": "/Office/Word/WordEditArea.htm" }), {
  1547. "id": "doc",
  1548. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1549. "onresize": function () { }
  1550. }, {
  1551. closecallback: function () { }
  1552. }, { "style": { "height": "36px" } }).form; //创建窗体
  1553. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1554. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1555. })
  1556. _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); } }
  1557. break;
  1558. case "study":
  1559. _formdiv = new U.UF.UI.form(
  1560. "学习中心",
  1561. $$("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
  1562. "id": "study",
  1563. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1564. "onresize": function () { }
  1565. }, {
  1566. closecallback: function () { }
  1567. }, { "style": { "height": "36px" } }).form; //创建窗体
  1568. _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); } }
  1569. break;
  1570. case "mindNetwork": //好友打开
  1571. _formdiv = new U.UF.UI.form(
  1572. "思维网格",
  1573. $$("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 }), {
  1574. "id": "mindNetwork",
  1575. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1576. "onresize": function () { }
  1577. }, {
  1578. closecallback: function () { }
  1579. }, { "style": { "height": "36px" } }).form; //创建窗体
  1580. _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); } }
  1581. break;
  1582. case "train": //好友打开
  1583. _formdiv = new U.UF.UI.form(
  1584. "训练平台",
  1585. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1586. "id": "mindNetwork",
  1587. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1588. "onresize": function () { }
  1589. }, {
  1590. closecallback: function () { }
  1591. }, { "style": { "height": "36px" } }).form; //创建窗体
  1592. _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); } }
  1593. break;
  1594. case "teacherClassRoom": //好友打开
  1595. _formdiv = new U.UF.UI.form(
  1596. "实时课堂",
  1597. $$("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 }), {
  1598. "id": "teacherClassRoom",
  1599. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1600. "onresize": function () { }
  1601. }, {
  1602. closecallback: function () { }
  1603. }, { "style": { "height": "36px" } }).form; //创建窗体
  1604. _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); } }
  1605. setTimeout(() => {
  1606. U.UF.F.windowZooming(_formdiv)
  1607. }, 0);
  1608. break;
  1609. }
  1610. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1611. switch (str) {
  1612. case "project": //好友打开
  1613. _formdiv = new U.UF.UI.form(
  1614. "项目管理",
  1615. $$("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 }), {
  1616. "id": "project",
  1617. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1618. "onresize": function () { }
  1619. }, {
  1620. closecallback: function () { }
  1621. }, { "style": { "height": "36px" } }).form; //创建窗体
  1622. _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); } }
  1623. break;
  1624. case "evaluate":
  1625. _formdiv = new U.UF.UI.form(
  1626. "学生评价",
  1627. $$("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 }), {
  1628. "id": "evaluate",
  1629. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1630. "onresize": function () { }
  1631. }, {
  1632. closecallback: function () { }
  1633. }, { "style": { "height": "36px" } }).form; //创建窗体
  1634. _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); } }
  1635. break;
  1636. case "notice":
  1637. _formdiv = new U.UF.UI.form(
  1638. "通知公告",
  1639. $$("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 }), {
  1640. "id": "notice",
  1641. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1642. "onresize": function () { }
  1643. }, {
  1644. closecallback: function () { }
  1645. }, { "style": { "height": "36px" } }).form; //创建窗体
  1646. _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); } }
  1647. break;
  1648. case "stuLibrary":
  1649. _formdiv = new U.UF.UI.form(
  1650. "学习资料",
  1651. $$("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 }), {
  1652. "id": "stuLibrary",
  1653. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1654. "onresize": function () { }
  1655. }, {
  1656. closecallback: function () { }
  1657. }, { "style": { "height": "36px" } }).form; //创建窗体
  1658. _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); } }
  1659. break;
  1660. case "program":
  1661. _formdiv = new U.UF.UI.form(
  1662. "编程平台",
  1663. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1664. "id": "program",
  1665. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1666. "onresize": function () { }
  1667. }, {
  1668. closecallback: function () { }
  1669. }, { "style": { "height": "36px" } }).form; //创建窗体
  1670. _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); } }
  1671. break;
  1672. case "whiteboard":
  1673. _formdiv = new U.UF.UI.form(
  1674. "电子白板",
  1675. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1676. "id": "whiteboard",
  1677. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1678. "onresize": function () { }
  1679. }, {
  1680. closecallback: function () { }
  1681. }, { "style": { "height": "36px" } }).form; //创建窗体
  1682. _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); } }
  1683. break;
  1684. case "investigation":
  1685. _formdiv = new U.UF.UI.form(
  1686. "问卷调查",
  1687. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  1688. "id": "investigation",
  1689. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1690. "onresize": function () { }
  1691. }, {
  1692. closecallback: function () { }
  1693. }, { "style": { "height": "36px" } }).form; //创建窗体
  1694. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1695. break;
  1696. case "mind":
  1697. _formdiv = new U.UF.UI.form(
  1698. "思维导图",
  1699. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1700. "id": "mind",
  1701. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1702. "onresize": function () { }
  1703. }, {
  1704. closecallback: function () { }
  1705. }, { "style": { "height": "36px" } }).form; //创建窗体
  1706. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1707. break;
  1708. case "doc":
  1709. // U.MD.D.I.isRoom();
  1710. _formdiv = new U.UF.UI.form(
  1711. "协同文档",
  1712. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1713. "id": "doc",
  1714. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1715. "onresize": function () { }
  1716. }, {
  1717. closecallback: function () { }
  1718. }, { "style": { "height": "36px" } }).form; //创建窗体
  1719. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1720. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1721. })
  1722. _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); } }
  1723. break;
  1724. case "study":
  1725. _formdiv = new U.UF.UI.form(
  1726. "学习中心",
  1727. $$("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
  1728. "id": "study",
  1729. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1730. "onresize": function () { }
  1731. }, {
  1732. closecallback: function () { }
  1733. }, { "style": { "height": "36px" } }).form; //创建窗体
  1734. _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); } }
  1735. break;
  1736. case "mindNetwork": //好友打开
  1737. _formdiv = new U.UF.UI.form(
  1738. "思维网格",
  1739. $$("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 }), {
  1740. "id": "mindNetwork",
  1741. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1742. "onresize": function () { }
  1743. }, {
  1744. closecallback: function () { }
  1745. }, { "style": { "height": "36px" } }).form; //创建窗体
  1746. _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); } }
  1747. break;
  1748. case "train": //好友打开
  1749. _formdiv = new U.UF.UI.form(
  1750. "训练平台",
  1751. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1752. "id": "train",
  1753. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1754. "onresize": function () { }
  1755. }, {
  1756. closecallback: function () { }
  1757. }, { "style": { "height": "36px" } }).form; //创建窗体
  1758. _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); } }
  1759. break;
  1760. case "sys":
  1761. _formdiv = new U.UF.UI.form(
  1762. "目标管理",
  1763. $$("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 }), {
  1764. "id": "sys",
  1765. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1766. "onresize": function () { }
  1767. }, {
  1768. closecallback: function () { }
  1769. }, { "style": { "height": "36px" } }).form; //创建窗体
  1770. _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); } }
  1771. break;
  1772. case "courseDesign":
  1773. _formdiv = new U.UF.UI.form(
  1774. "课程设计",
  1775. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1776. "id": "courseDesign",
  1777. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1778. "onresize": function () { }
  1779. }, {
  1780. closecallback: function () { }
  1781. }, { "style": { "height": "36px" } }).form; //创建窗体
  1782. _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); } }
  1783. break;
  1784. }
  1785. } else if (!_type) {
  1786. switch (str) {
  1787. case "my":
  1788. _formdiv = new U.UF.UI.form(
  1789. "我的资料",
  1790. $$("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 }), {
  1791. "id": "my",
  1792. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1793. "onresize": function () { }
  1794. }, {
  1795. closecallback: function () { }
  1796. }, { "style": { "height": "36px" } }).form; //创建窗体
  1797. _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); } }
  1798. break;
  1799. }
  1800. }
  1801. switch (str) {
  1802. // AIprogram2 AI体验 aihub.cocorobo.cn
  1803. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  1804. // AIprogram AI编程 ai-blockly.cocorobo.cn
  1805. case "AIprogram2": //AI体验
  1806. _formdiv = new U.UF.UI.form(
  1807. "AI体验",
  1808. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  1809. "id": "AIprogram2",
  1810. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1811. "onresize": function () { }
  1812. }, {
  1813. closecallback: function () { }
  1814. }, { "style": { "height": "36px" } }).form; //创建窗体
  1815. _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); } }
  1816. break;
  1817. case "Pythonprogram": //python编程
  1818. _formdiv = new U.UF.UI.form(
  1819. "Python编程",
  1820. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  1821. "id": "Pythonprogram",
  1822. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1823. "onresize": function () { }
  1824. }, {
  1825. closecallback: function () { }
  1826. }, { "style": { "height": "36px" } }).form; //创建窗体
  1827. _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); } }
  1828. break;
  1829. case "AIprogram": //ai编程
  1830. _formdiv = new U.UF.UI.form(
  1831. "AI编程平台",
  1832. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  1833. "id": "AIprogram",
  1834. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1835. "onresize": function () { }
  1836. }, {
  1837. closecallback: function () { }
  1838. }, { "style": { "height": "36px" } }).form; //创建窗体
  1839. _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); } }
  1840. break;
  1841. case "resources": //国家教育
  1842. _formdiv = new U.UF.UI.form(
  1843. "国家教育",
  1844. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  1845. "id": "resources",
  1846. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1847. "onresize": function () { }
  1848. }, {
  1849. closecallback: function () { }
  1850. }, { "style": { "height": "36px" } }).form; //创建窗体
  1851. _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); } }
  1852. break;
  1853. case "codeEdit": //源码编辑
  1854. _formdiv = new U.UF.UI.form(
  1855. "源码编辑",
  1856. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  1857. "id": "codeEdit",
  1858. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1859. "onresize": function () { }
  1860. }, {
  1861. closecallback: function () { }
  1862. }, { "style": { "height": "36px" } }).form; //创建窗体
  1863. _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); } }
  1864. break; //
  1865. case "MindMap": //MindMap
  1866. _formdiv = new U.UF.UI.form(
  1867. "MindMap",
  1868. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  1869. "id": "MindMap",
  1870. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1871. "onresize": function () { }
  1872. }, {
  1873. closecallback: function () { }
  1874. }, { "style": { "height": "36px" } }).form; //创建窗体
  1875. _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); } }
  1876. break;
  1877. case "netWorkPanel": //netWorkPanel
  1878. _formdiv = new U.UF.UI.form(
  1879. "netWorkPanel",
  1880. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  1881. "id": "netWorkPanel",
  1882. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1883. "onresize": function () { }
  1884. }, {
  1885. closecallback: function () { }
  1886. }, { "style": { "height": "36px" } }).form; //创建窗体
  1887. _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); } }
  1888. break;
  1889. case "GeoGebra": //GeoGebra
  1890. _formdiv = new U.UF.UI.form(
  1891. "GeoGebra",
  1892. $$("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" }), {
  1893. "id": "GeoGebra",
  1894. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1895. "onresize": function () { }
  1896. }, {
  1897. closecallback: function () { }
  1898. }, { "style": { "height": "36px" } }).form; //创建窗体
  1899. _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); } }
  1900. break;
  1901. case "translation": //翻译
  1902. _formdiv = new U.UF.UI.form(
  1903. "翻译",
  1904. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  1905. "id": "translation",
  1906. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1907. "onresize": function () { }
  1908. }, {
  1909. closecallback: function () { }
  1910. }, { "style": { "height": "36px" } }).form; //创建窗体
  1911. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/translation.png)" }, "name": "翻译", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1912. break;
  1913. case "mohe": //魔盒
  1914. _formdiv = new U.UF.UI.form(
  1915. "魔盒识字",
  1916. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  1917. "id": "mohe",
  1918. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  1919. "onresize": function () { }
  1920. }, {
  1921. closecallback: function () { }
  1922. }, { "style": { "height": "36px" } }).form; //创建窗体
  1923. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mohe.png)" }, "name": "魔盒识字", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1924. break;
  1925. case "24game": //24点
  1926. _formdiv = new U.UF.UI.form(
  1927. "24点",
  1928. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  1929. "id": "24game",
  1930. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  1931. "onresize": function () { }
  1932. }, {
  1933. closecallback: function () { }
  1934. }, { "style": { "height": "36px" } }).form; //创建窗体
  1935. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/24game.png)" }, "name": "24点", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1936. break;
  1937. case "case":
  1938. _formdiv = new U.UF.UI.form(
  1939. "项目进展",
  1940. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/CaseDesign?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1941. "id": "case",
  1942. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1943. "onresize": function () { }
  1944. }, {
  1945. closecallback: function () { }
  1946. }, { "style": { "height": "36px" } }).form; //创建窗体
  1947. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/case.png)" }, "name": "项目进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1948. break;
  1949. case "snf":
  1950. _formdiv = new U.UF.UI.form(
  1951. "赛诺梵",
  1952. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//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" }), {
  1953. "id": "snf",
  1954. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1955. "onresize": function () { }
  1956. }, {
  1957. closecallback: function () { }
  1958. }, { "style": { "height": "36px" } }).form; //创建窗体
  1959. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/snf.png)" }, "name": "赛诺梵", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1960. break;
  1961. case "hanFamily":
  1962. _formdiv = new U.UF.UI.form(
  1963. "汉字家族",
  1964. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  1965. "id": "hanFamily",
  1966. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1967. "onresize": function () { }
  1968. }, {
  1969. closecallback: function () { }
  1970. }, { "style": { "height": "36px" } }).form; //创建窗体
  1971. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanFamily.png)" }, "name": "汉字家族", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1972. break;
  1973. case "hanClassics":
  1974. _formdiv = new U.UF.UI.form(
  1975. "国学经典",
  1976. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  1977. "id": "hanClassics",
  1978. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1979. "onresize": function () { }
  1980. }, {
  1981. closecallback: function () { }
  1982. }, { "style": { "height": "36px" } }).form; //创建窗体
  1983. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClassics.png)" }, "name": "国学经典", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1984. break;
  1985. case "hanTraining":
  1986. _formdiv = new U.UF.UI.form(
  1987. "笔画训练",
  1988. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  1989. "id": "hanTraining",
  1990. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1991. "onresize": function () { }
  1992. }, {
  1993. closecallback: function () { }
  1994. }, { "style": { "height": "36px" } }).form; //创建窗体
  1995. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanTraining.png)" }, "name": "笔画训练", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1996. break;
  1997. case "hanClass":
  1998. _formdiv = new U.UF.UI.form(
  1999. "书法课堂",
  2000. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2001. "id": "hanClass",
  2002. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2003. "onresize": function () { }
  2004. }, {
  2005. closecallback: function () { }
  2006. }, { "style": { "height": "36px" } }).form; //创建窗体
  2007. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "书法课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2008. break;
  2009. case "han":
  2010. _formdiv = new U.UF.UI.form(
  2011. "汉字宫",
  2012. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2013. "id": "han",
  2014. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2015. "onresize": function () { }
  2016. }, {
  2017. closecallback: function () { }
  2018. }, { "style": { "height": "36px" } }).form; //创建窗体
  2019. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/han.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2020. break;
  2021. case "projectGM": //项目管理
  2022. _formdiv = new U.UF.UI.form(
  2023. "项目管理",
  2024. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/courseGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2025. "id": "projectGM",
  2026. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2027. "onresize": function () { }
  2028. }, {
  2029. closecallback: function () { }
  2030. }, { "style": { "height": "36px" } }).form; //创建窗体
  2031. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/courseMange.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2032. break;
  2033. case "studyGM"://学习中心
  2034. _formdiv = new U.UF.UI.form(
  2035. "学习中心",
  2036. $$("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
  2037. "id": "study",
  2038. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2039. "onresize": function () { }
  2040. }, {
  2041. closecallback: function () { }
  2042. }, { "style": { "height": "36px" } }).form; //创建窗体
  2043. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2044. break;
  2045. // studentGM
  2046. case "studentGM"://学生管理
  2047. _formdiv = new U.UF.UI.form(
  2048. "学生管理",
  2049. $$("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 }), {
  2050. "id": "studentGM",
  2051. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2052. "onresize": function () { }
  2053. }, {
  2054. closecallback: function () { }
  2055. }, { "style": { "height": "36px" } }).form; //创建窗体
  2056. _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); } }
  2057. break;
  2058. case "evaluateGM"://学生评价
  2059. _formdiv = new U.UF.UI.form(
  2060. "学生评价",
  2061. $$("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 }), {
  2062. "id": "evaluateGM",
  2063. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2064. "onresize": function () { }
  2065. }, {
  2066. closecallback: function () { }
  2067. }, { "style": { "height": "36px" } }).form; //创建窗体
  2068. _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); } }
  2069. break;
  2070. // classGM
  2071. case "classGM"://班级管理
  2072. _formdiv = new U.UF.UI.form(
  2073. "班级管理",
  2074. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/classGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2075. "id": "classGM",
  2076. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2077. "onresize": function () { }
  2078. }, {
  2079. closecallback: function () { }
  2080. }, { "style": { "height": "36px" } }).form; //创建窗体
  2081. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2082. break;
  2083. // dataGM
  2084. case "dataGM":
  2085. _formdiv = new U.UF.UI.form(
  2086. "我的资料",
  2087. $$("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 }), {
  2088. "id": "dataGM",
  2089. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2090. "onresize": function () { }
  2091. }, {
  2092. closecallback: function () { }
  2093. }, { "style": { "height": "36px" } }).form; //创建窗体
  2094. _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); } }
  2095. break;
  2096. // caseGM
  2097. case "caseGM"://项目进展
  2098. _formdiv = new U.UF.UI.form(
  2099. "项目进展",
  2100. $$("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 }), {
  2101. "id": "caseGM",
  2102. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2103. "onresize": function () { }
  2104. }, {
  2105. closecallback: function () { }
  2106. }, { "style": { "height": "36px" } }).form; //创建窗体
  2107. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/case.png)" }, "name": "项目进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2108. break;
  2109. // meterialGM
  2110. case "meterialGM"://素材库
  2111. _formdiv = new U.UF.UI.form(
  2112. "素材库",
  2113. $$("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 }), {
  2114. "id": "meterialGM",
  2115. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2116. "onresize": function () { }
  2117. }, {
  2118. closecallback: function () { }
  2119. }, { "style": { "height": "36px" } }).form; //创建窗体
  2120. _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); } }
  2121. break;
  2122. // evaluateSGM
  2123. case "evaluateSGM": //我的评价
  2124. _formdiv = new U.UF.UI.form(
  2125. "我的评价",
  2126. $$("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 }), {
  2127. "id": "evaluateSGM",
  2128. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2129. "onresize": function () { }
  2130. }, {
  2131. closecallback: function () { }
  2132. }, { "style": { "height": "36px" } }).form; //创建窗体
  2133. _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); } }
  2134. break;
  2135. case "jupyter": //jupyter
  2136. _formdiv = new U.UF.UI.form(
  2137. "jupyter",
  2138. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  2139. "id": "jupyter",
  2140. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2141. "onresize": function () { }
  2142. }, {
  2143. closecallback: function () { }
  2144. }, { "style": { "height": "36px" } }).form; //创建窗体
  2145. _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); } }
  2146. break;
  2147. case "number": //数字实验室
  2148. _formdiv = new U.UF.UI.form(
  2149. "数字实验室",
  2150. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  2151. "id": "number",
  2152. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2153. "onresize": function () { }
  2154. }, {
  2155. closecallback: function () { }
  2156. }, { "style": { "height": "36px" } }).form; //创建窗体
  2157. _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); } }
  2158. break;
  2159. case "studentCourse": //学生项目 学生
  2160. _formdiv = new U.UF.UI.form(
  2161. "学生项目",
  2162. $$("iframe", { "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 }), {
  2163. "id": "studentCourse",
  2164. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2165. "onresize": function () { }
  2166. }, {
  2167. closecallback: function () { }
  2168. }, { "style": { "height": "36px" } }).form; //创建窗体
  2169. _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); } }
  2170. break;
  2171. case "studentCourseS": //学生项目 老师
  2172. _formdiv = new U.UF.UI.form(
  2173. "学生项目",
  2174. $$("iframe", { "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 }), {
  2175. "id": "studentCourseS",
  2176. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2177. "onresize": function () { }
  2178. }, {
  2179. closecallback: function () { }
  2180. }, { "style": { "height": "36px" } }).form; //创建窗体
  2181. _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); } }
  2182. break;
  2183. }
  2184. //U.MD.D.I.openClick(str);
  2185. //如果有任务栏信息
  2186. if (_taskbar) {
  2187. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2188. }
  2189. }
  2190. // U.MD.D.I.openClick = function(str){
  2191. // var click = '';
  2192. // switch(str){
  2193. // case 'friend':
  2194. // click = '我的好友';
  2195. // break;
  2196. // case 'domain':
  2197. // click = '域名管理';
  2198. // break;
  2199. // case 'disk':
  2200. // click = '我的云盘';
  2201. // break;
  2202. // case 'word':
  2203. // click = 'Word';
  2204. // break;
  2205. // case 'excel':
  2206. // click = 'Execl';
  2207. // break;
  2208. // case 'txt':
  2209. // click = '文本文件';
  2210. // break;
  2211. // case 'lookupFriend':
  2212. // click = '查找好友';
  2213. // break;
  2214. // case 'ftp':
  2215. // click = 'FTP';
  2216. // break;
  2217. // case 'group':
  2218. // click = '群组';
  2219. // break;
  2220. // case 'set':
  2221. // click = '我的设置';
  2222. // break;
  2223. // case 'systemSet':
  2224. // click = '系统设置';
  2225. // break;
  2226. // case 'boomYun':
  2227. // click = '互联办公';
  2228. // break;
  2229. // case 'xz':
  2230. // click = '云端下载';
  2231. // break;
  2232. // case 'client':
  2233. // click = '有思浏览器';
  2234. // break;
  2235. // case 'backEndProgramming':
  2236. // click = '在线后台编程';
  2237. // break;
  2238. // case 'frontEndProgramming':
  2239. // click = '在线前端编程';
  2240. // break;
  2241. // default: break;
  2242. // }
  2243. // if(U.MD.D.I.Ip && click){
  2244. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  2245. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  2246. // })
  2247. // }
  2248. // }
  2249. /**
  2250. *函数作用:ajax简易函数,使用post格式
  2251. *@param url {data} 后台地址
  2252. *@param data {data} 参数json
  2253. *@param fn {data} 回调函数
  2254. *
  2255. */
  2256. // U.MD.D.I.Mysqlrequest = function(url,fn){
  2257. // var xhr = new XMLHttpRequest();
  2258. // xhr.open("GET",url,true);
  2259. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  2260. // xhr.onreadystatechange = function(){
  2261. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  2262. // fn.call(this,xhr.responseText);
  2263. // }
  2264. // };
  2265. // xhr.send();
  2266. // }
  2267. /*判断是否是内网IP*/
  2268. // U.MD.D.I.isInnerIPFn = function(str){
  2269. // var curPageUrl = str;
  2270. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  2271. // curPageUrl =curPageUrl.replace(reg1,'');
  2272. // // console.log('curPageUrl-1 '+curPageUrl);
  2273. // var reg2 = /\:+/g;//替换冒号为一点
  2274. // curPageUrl =curPageUrl.replace(reg2,'.');
  2275. // // console.log('curPageUrl-2 '+curPageUrl);
  2276. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  2277. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  2278. // if(curPageUrl[2] != '16'){
  2279. // return ipAddress;
  2280. // }else{
  2281. // return false;
  2282. // }
  2283. // }
  2284. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  2285. // //compatibility for firefox and chrome
  2286. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  2287. // var pc = new myPeerConnection({
  2288. // iceServers: []
  2289. // }),
  2290. // noop = function() {},
  2291. // localIPs = {},
  2292. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  2293. // key;
  2294. // function iterateIP(ip) {
  2295. // if (!localIPs[ip]) onNewIP(ip);
  2296. // localIPs[ip] = true;
  2297. // }
  2298. // //create a bogus data channel
  2299. // pc.createDataChannel("");
  2300. // // create offer and set local description
  2301. // pc.createOffer().then(function(sdp) {
  2302. // sdp.sdp.split('\n').forEach(function(line) {
  2303. // if (line.indexOf('candidate') < 0) return;
  2304. // line.match(ipRegex).forEach(iterateIP);
  2305. // });
  2306. // pc.setLocalDescription(sdp, noop, noop);
  2307. // }).catch(function(reason) {
  2308. // // An error occurred, so handle the failure to connect
  2309. // });
  2310. // //sten for candidate events
  2311. // pc.onicecandidate = function(ice) {
  2312. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  2313. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  2314. // };
  2315. // }
  2316. // U.MD.D.I.getUserIpBool = function(callback){
  2317. // U.MD.D.I.getUserIP(function(ip){
  2318. // alert("Got IP! :" + ip);
  2319. // });
  2320. //}
  2321. //#endregion
  2322. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  2323. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2324. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2325. _userinfo = US.userInfo, //登录用户信息
  2326. _userid = US.userInfo.userid //登录用户id
  2327. let _iframe;
  2328. let _cid = cid,
  2329. _stage = stage,
  2330. _task = task,
  2331. _tool = tool;
  2332. var _jie = $$("div", {
  2333. "style": {
  2334. "position": "absolute",
  2335. "bottom": "50px",
  2336. "right": "50px",
  2337. "zIndex": "9999",
  2338. "backgroundColor": "#2268bc",
  2339. "color": "#fff",
  2340. "padding": "12px 20px",
  2341. "cursor": "pointer",
  2342. "borderRadius": "4px",
  2343. },
  2344. "innerHTML": "提交作业"
  2345. })
  2346. let aTool = ''
  2347. let _loading = document.createElement('div')
  2348. _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;"
  2349. // _loading.id = "";
  2350. let _lchild = document.createElement('div')
  2351. let _limg = document.createElement('img')
  2352. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  2353. _limg.style = "width: 26px;margin-right: 10px;"
  2354. _lchild.appendChild(_limg)
  2355. let _lspan = document.createElement('span')
  2356. _lspan.innerHTML = "上传中..."
  2357. _lchild.appendChild(_lspan)
  2358. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  2359. _loading.appendChild(_lchild)
  2360. var _box = $$('div', {
  2361. "style": {
  2362. "position": "relative",
  2363. "width": "100%",
  2364. "height": "100%",
  2365. },
  2366. })
  2367. _box.appendChild(_loading)
  2368. _box.id = str + '_loadLi'
  2369. switch (str) {
  2370. case "whiteboard":
  2371. aTool = 1;
  2372. _iframe = $$("iframe", {
  2373. "frameborder": "no",
  2374. "border": "0",
  2375. "scrolling ": "no",
  2376. "style": {
  2377. "cssText": "border:0;width:100%;height:100%"
  2378. },
  2379. "src": "https://iwb.cocorobo.cn/"
  2380. })
  2381. _box.appendChild(_iframe);
  2382. _box.appendChild(_jie);
  2383. _formdiv = new U.UF.UI.form(
  2384. "电子白板",
  2385. _box, {
  2386. "id": "whiteboard" + cid + stage + task + tool,
  2387. "style": {
  2388. "width": "90%",
  2389. "height": "90%",
  2390. "overflow": 'hidden'
  2391. },
  2392. "onresize": function () { }
  2393. }, {
  2394. closecallback: function () { }
  2395. }, {
  2396. "style": {
  2397. "height": "36px"
  2398. }
  2399. }).form; //创建窗体
  2400. _taskbar = {
  2401. "id": str + _formdiv.id,
  2402. "style": {
  2403. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  2404. },
  2405. "name": "电子白板",
  2406. "forms": _formdiv,
  2407. "click": function () {
  2408. U.MD.D.I.openApplication(str, obj, info);
  2409. }
  2410. }
  2411. break;
  2412. case "mind":
  2413. aTool = 3;
  2414. _iframe = $$("iframe", {
  2415. "frameborder": "no",
  2416. "border": "0",
  2417. "scrolling ": "no",
  2418. "style": {
  2419. "cssText": "border:0;width:100%;height:100%"
  2420. },
  2421. "src": "/kityminder-editor/dist/index.html"
  2422. })
  2423. _box.appendChild(_iframe);
  2424. _box.appendChild(_jie);
  2425. _formdiv = new U.UF.UI.form(
  2426. "思维导图",
  2427. _box, { //"/jsmind/example/demo.html"
  2428. "id": "mind" + cid + stage + task + tool,
  2429. "style": {
  2430. "width": "90%",
  2431. "height": "90%",
  2432. "overflow": 'hidden'
  2433. },
  2434. "onresize": function () { }
  2435. }, {
  2436. closecallback: function () { }
  2437. }, {
  2438. "style": {
  2439. "height": "36px"
  2440. }
  2441. }).form; //创建窗体
  2442. _taskbar = {
  2443. "id": str + _formdiv.id,
  2444. "style": {
  2445. "backgroundImage": "url(/img/icon/mindMapping.png)"
  2446. },
  2447. "name": "思维导图",
  2448. "forms": _formdiv,
  2449. "click": function () {
  2450. U.MD.D.I.openApplication(str, obj, info);
  2451. }
  2452. }
  2453. break;
  2454. case "MindMap":
  2455. aTool = 3;
  2456. _iframe = $$("iframe", {
  2457. "frameborder": "no",
  2458. "border": "0",
  2459. "scrolling ": "no",
  2460. "style": {
  2461. "cssText": "border:0;width:100%;height:100%"
  2462. },
  2463. "src": "//cloud.cocorobo.cn/mind/"
  2464. })
  2465. _box.appendChild(_iframe);
  2466. _box.appendChild(_jie);
  2467. _formdiv = new U.UF.UI.form(
  2468. "思维导图",
  2469. _box, { //"/jsmind/example/demo.html"
  2470. "id": "mind" + cid + stage + task + tool,
  2471. "style": {
  2472. "width": "90%",
  2473. "height": "90%",
  2474. "overflow": 'hidden'
  2475. },
  2476. "onresize": function () { }
  2477. }, {
  2478. closecallback: function () { }
  2479. }, {
  2480. "style": {
  2481. "height": "36px"
  2482. }
  2483. }).form; //创建窗体
  2484. _taskbar = {
  2485. "id": str + _formdiv.id,
  2486. "style": {
  2487. "backgroundImage": "url(/img/icon/mindMapping.png)"
  2488. },
  2489. "name": "思维导图",
  2490. "forms": _formdiv,
  2491. "click": function () {
  2492. U.MD.D.I.openApplication(str, obj, info);
  2493. }
  2494. }
  2495. break;
  2496. case "doc":
  2497. aTool = 6;
  2498. _iframe = $$("iframe", {
  2499. "frameborder": "no",
  2500. "border": "0",
  2501. "scrolling ": "no",
  2502. "style": {
  2503. "cssText": "border:0;width:100%;height:100%"
  2504. },
  2505. "src": "/Office/Word/WordEditArea.htm"
  2506. })
  2507. _box.appendChild(_iframe);
  2508. _box.appendChild(_jie);
  2509. _formdiv = new U.UF.UI.form(
  2510. "协同文档",
  2511. _box, {
  2512. "id": "doc" + cid + stage + task + tool,
  2513. "style": {
  2514. "width": "90%",
  2515. "height": "90%",
  2516. "overflow": 'hidden'
  2517. },
  2518. "onresize": function () { }
  2519. }, {
  2520. closecallback: function () { }
  2521. }, {
  2522. "style": {
  2523. "height": "36px"
  2524. }
  2525. }).form; //创建窗体
  2526. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2527. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  2528. })
  2529. _taskbar = {
  2530. "id": str + _formdiv.id,
  2531. "style": {
  2532. "backgroundImage": "url(/img/icon/doc.png)"
  2533. },
  2534. "name": "协同文档",
  2535. "forms": _formdiv,
  2536. "click": function () {
  2537. U.MD.D.I.openApplication(str, obj, info);
  2538. }
  2539. }
  2540. break;
  2541. case "mindNetwork": //好友打开
  2542. aTool = 7;
  2543. _iframe = $$("iframe", {
  2544. "webkitallowfullscreen": "",
  2545. "mozallowfullscreen": "",
  2546. "allowfullscreen": "",
  2547. "frameborder": "no",
  2548. "border": "0",
  2549. "scrolling ": "no",
  2550. "style": {
  2551. "cssText": "border:0; width:100%; height:100%;"
  2552. },
  2553. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  2554. })
  2555. _box.appendChild(_iframe);
  2556. _box.appendChild(_jie);
  2557. _formdiv = new U.UF.UI.form(
  2558. "思维网格",
  2559. _box, {
  2560. "id": "mindNetwork" + cid + stage + task + tool,
  2561. "style": {
  2562. "width": "90%",
  2563. "height": "90%",
  2564. "overflow": 'hidden'
  2565. },
  2566. "onresize": function () { }
  2567. }, {
  2568. closecallback: function () { }
  2569. }, {
  2570. "style": {
  2571. "height": "36px"
  2572. }
  2573. }).form; //创建窗体
  2574. _taskbar = {
  2575. "id": str + _formdiv.id,
  2576. "style": {
  2577. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  2578. },
  2579. "name": "思维网格",
  2580. "forms": _formdiv,
  2581. "click": function () {
  2582. U.MD.D.I.openApplication(str, obj, info);
  2583. }
  2584. }
  2585. break;
  2586. case "courseDesign":
  2587. _iframe = $$("iframe", {
  2588. "webkitallowfullscreen": "",
  2589. "mozallowfullscreen": "",
  2590. "allowfullscreen": "",
  2591. "frameborder": "no",
  2592. "border": "0",
  2593. "scrolling ": "no",
  2594. "style": {
  2595. "cssText": "border:0; width:100%; height:100%;"
  2596. },
  2597. "src": "/course-design-vue"
  2598. })
  2599. _box.appendChild(_iframe);
  2600. _box.appendChild(_jie);
  2601. _formdiv = new U.UF.UI.form(
  2602. "课程设计",
  2603. _box, {
  2604. "id": "courseDesign" + cid + stage + task + tool,
  2605. "style": {
  2606. "width": "90%",
  2607. "height": "90%",
  2608. "overflow": 'hidden'
  2609. },
  2610. "onresize": function () { }
  2611. }, {
  2612. closecallback: function () { }
  2613. }, {
  2614. "style": {
  2615. "height": "36px"
  2616. }
  2617. }).form; //创建窗体
  2618. _taskbar = {
  2619. "id": str + _formdiv.id,
  2620. "style": {
  2621. "backgroundImage": "url(/img/icon/courseDesign.png)"
  2622. },
  2623. "name": "课程设计",
  2624. "forms": _formdiv,
  2625. "click": function () {
  2626. U.MD.D.I.openApplication(str, obj, info);
  2627. }
  2628. }
  2629. break;
  2630. }
  2631. const script1 = document.createElement("script");
  2632. script1.type = "text/javascript";
  2633. script1.src =
  2634. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  2635. const script2 = document.createElement("script");
  2636. script2.type = "text/javascript";
  2637. script2.src =
  2638. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  2639. const script3 = document.createElement("script");
  2640. script3.type = "text/javascript";
  2641. script3.charset = "UTF-8";
  2642. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  2643. const script4 = document.createElement("script");
  2644. script4.type = "text/javascript";
  2645. script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  2646. if (_iframe) {
  2647. if (str == 'doc') {
  2648. U.UF.DL.iframeLoad(_iframe, function () {
  2649. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  2650. _iframe.contentWindow.document.body.appendChild(script1);
  2651. _iframe.contentWindow.document.body.appendChild(script2);
  2652. // _iframe.contentWindow.document.body.appendChild(script3);
  2653. _iframe.contentWindow.document.body.appendChild(script4);
  2654. })
  2655. } else if (str == 'courseDesign') {
  2656. U.UF.DL.iframeLoad(_iframe, function () {
  2657. // _iframe.contentWindow.U.MD.O.W.load();
  2658. // _iframe.contentWindow.document.body.appendChild(script1);
  2659. _iframe.contentWindow.document.body.appendChild(script2);
  2660. _iframe.contentWindow.document.body.appendChild(script4);
  2661. })
  2662. } else if (str == 'mind') {
  2663. U.UF.DL.iframeLoad(_iframe, function () {
  2664. //
  2665. _iframe.contentWindow.document.body.appendChild(script1);
  2666. _iframe.contentWindow.document.body.appendChild(script2);
  2667. _iframe.contentWindow.document.body.appendChild(script4);
  2668. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  2669. })
  2670. } else {
  2671. _iframe.onload = () => {
  2672. _iframe.contentWindow.document.body.appendChild(script1);
  2673. _iframe.contentWindow.document.body.appendChild(script2);
  2674. // _iframe.contentWindow.document.body.appendChild(script3);
  2675. _iframe.contentWindow.document.body.appendChild(script4);
  2676. };
  2677. }
  2678. _jie.onclick = async () => {
  2679. let text = ''
  2680. if (aTool == 6) {
  2681. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  2682. } else if (aTool == 3) {
  2683. text = await U.MD.D.I.getEditorContent(_iframe);
  2684. }
  2685. _loading.style.display = 'flex'
  2686. console.log(_loading);
  2687. var _ajs = _iframe.contentWindow.document.createElement("script");
  2688. _ajs.type = "text/javascript";
  2689. _ajs.innerHTML =
  2690. // 'console.log(' + _loading + ');\n' +
  2691. 'var _js = document.createElement("script");\n' +
  2692. '_js.type="text/javascript";\n' +
  2693. '_js.charset="UTF-8";\n' +
  2694. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  2695. "_js.onload = function(){\n" +
  2696. ' var a = document.getElementsByTagName("img")\n' +
  2697. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  2698. " html2canvas(document.body,{allowTaint: true,useCORS: true}).then(canvas => {\n" +
  2699. '  var base64Url = canvas.toDataURL("image/png");\n' +
  2700. 'var base64 = "<img src=" + base64Url + " />"\n' +
  2701. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  2702. "beforeUpload_shishi(file," +
  2703. "'" +
  2704. _userid +
  2705. "'" +
  2706. ", " +
  2707. "'" +
  2708. _cid +
  2709. "'" +
  2710. ", " +
  2711. "'" +
  2712. _stage +
  2713. "'" +
  2714. ", " +
  2715. "'" +
  2716. _task +
  2717. "'" +
  2718. ", " +
  2719. "'" +
  2720. _tool +
  2721. "'" +
  2722. ", " +
  2723. "'" +
  2724. str + '_loadLi' +
  2725. "'" +
  2726. ", " +
  2727. "'" +
  2728. aTool +
  2729. "'" +
  2730. ", " +
  2731. "`" +
  2732. text +
  2733. "`" +
  2734. ")\n" +
  2735. " });\n" +
  2736. "}\n" +
  2737. "document.head.appendChild(_js);\n";
  2738. _iframe.contentWindow.document.head.appendChild(_ajs);
  2739. }
  2740. }
  2741. //U.MD.D.I.openClick(str);
  2742. //如果有任务栏信息
  2743. // if (_taskbar) {
  2744. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2745. // }
  2746. }
  2747. U.MD.D.I.getEditorContent = function (iframe) {
  2748. return new Promise((resolve, reject) => {
  2749. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  2750. console.log(content);
  2751. resolve(content)
  2752. });
  2753. });
  2754. }
  2755. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  2756. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  2757. // if (res.value[0].length > 0) {
  2758. // // resolve(res.value[0][0].text);
  2759. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  2760. // $(fileInput).val('');
  2761. // });
  2762. // }
  2763. // }, [], { "type": "GET", "withCredentials": true });
  2764. var xmlhttp;
  2765. var Mac, Sn, DeviceId
  2766. if (window.XMLHttpRequest) {
  2767. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  2768. xmlhttp = new XMLHttpRequest();
  2769. }
  2770. else {
  2771. // IE6, IE5 浏览器执行代码
  2772. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  2773. }
  2774. xmlhttp.onreadystatechange = function () {
  2775. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  2776. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  2777. // resolve(res.value[0][0].text);
  2778. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  2779. $(fileInput).val('');
  2780. });
  2781. }
  2782. }
  2783. }
  2784. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  2785. xmlhttp.send();
  2786. }
  2787. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  2788. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2789. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2790. _userinfo = US.userInfo, //登录用户信息
  2791. _userid = US.userInfo.userid //登录用户id
  2792. let _iframe;
  2793. let _cid = cid,
  2794. _stage = stage,
  2795. _task = task,
  2796. _tool = tool;
  2797. var _jie = $$("div", {
  2798. "style": {
  2799. "position": "absolute",
  2800. "bottom": "50px",
  2801. "right": "50px",
  2802. "zIndex": "9999",
  2803. "backgroundColor": "#2268bc",
  2804. "color": "#fff",
  2805. "padding": "12px 20px",
  2806. "cursor": "pointer",
  2807. "borderRadius": "4px",
  2808. },
  2809. "innerHTML": "确认并提交"
  2810. })
  2811. let aTool = ''
  2812. let _loading = document.createElement('div')
  2813. _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;"
  2814. // _loading.id = "";
  2815. let _lchild = document.createElement('div')
  2816. let _limg = document.createElement('img')
  2817. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  2818. _limg.style = "width: 26px;margin-right: 10px;"
  2819. _lchild.appendChild(_limg)
  2820. let _lspan = document.createElement('span')
  2821. _lspan.innerHTML = "上传中..."
  2822. _lchild.appendChild(_lspan)
  2823. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  2824. _loading.appendChild(_lchild)
  2825. var _box = $$('div', {
  2826. "style": {
  2827. "position": "relative",
  2828. "width": "100%",
  2829. "height": "100%",
  2830. },
  2831. })
  2832. _box.appendChild(_loading)
  2833. _box.id = str + '_loadLi'
  2834. switch (str) {
  2835. case "whiteboard":
  2836. aTool = 1;
  2837. _iframe = $$("iframe", {
  2838. "frameborder": "no",
  2839. "border": "0",
  2840. "scrolling ": "no",
  2841. "style": {
  2842. "cssText": "border:0;width:100%;height:100%"
  2843. },
  2844. "src": "https://iwb.cocorobo.cn/"
  2845. })
  2846. _box.appendChild(_iframe);
  2847. _box.appendChild(_jie);
  2848. _formdiv = new U.UF.UI.form(
  2849. "电子白板",
  2850. _box, {
  2851. "id": "whiteboards" + cid + stage + task + tool,
  2852. "style": {
  2853. "width": "90%",
  2854. "height": "90%",
  2855. "overflow": 'hidden'
  2856. },
  2857. "onresize": function () { }
  2858. }, {
  2859. closecallback: function () { }
  2860. }, {
  2861. "style": {
  2862. "height": "36px"
  2863. }
  2864. }).form; //创建窗体
  2865. _taskbar = {
  2866. "id": str + _formdiv.id,
  2867. "style": {
  2868. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  2869. },
  2870. "name": "电子白板",
  2871. "forms": _formdiv,
  2872. "click": function () {
  2873. U.MD.D.I.openApplication(str, obj, info);
  2874. }
  2875. }
  2876. break;
  2877. case "mind":
  2878. aTool = 3;
  2879. _iframe = $$("iframe", {
  2880. "frameborder": "no",
  2881. "border": "0",
  2882. "scrolling ": "no",
  2883. "style": {
  2884. "cssText": "border:0;width:100%;height:100%"
  2885. },
  2886. "src": "/kityminder-editor/dist/index.html"
  2887. });
  2888. _box.appendChild(_iframe);
  2889. _box.appendChild(_jie);
  2890. _formdiv = new U.UF.UI.form(
  2891. "思维导图",
  2892. _box, { //"/jsmind/example/demo.html"
  2893. "id": "minds" + cid + stage + task + tool,
  2894. "style": {
  2895. "width": "90%",
  2896. "height": "90%",
  2897. "overflow": 'hidden'
  2898. },
  2899. "onresize": function () { }
  2900. }, {
  2901. closecallback: function () { }
  2902. }, {
  2903. "style": {
  2904. "height": "36px"
  2905. }
  2906. }).form; //创建窗体
  2907. _taskbar = {
  2908. "id": str + _formdiv.id,
  2909. "style": {
  2910. "backgroundImage": "url(/img/icon/mindMapping.png)"
  2911. },
  2912. "name": "思维导图",
  2913. "forms": _formdiv,
  2914. "click": function () {
  2915. U.MD.D.I.openApplication(str, obj, info);
  2916. }
  2917. }
  2918. break;
  2919. case "doc":
  2920. aTool = 6;
  2921. _iframe = $$("iframe", {
  2922. "frameborder": "no",
  2923. "border": "0",
  2924. "scrolling ": "no",
  2925. "style": {
  2926. "cssText": "border:0;width:100%;height:100%"
  2927. },
  2928. "src": "/Office/Word/WordEditArea.htm"
  2929. })
  2930. _box.appendChild(_iframe);
  2931. _box.appendChild(_jie);
  2932. _formdiv = new U.UF.UI.form(
  2933. "协同文档",
  2934. _box, {
  2935. "id": "docs" + cid + stage + task + tool,
  2936. "style": {
  2937. "width": "90%",
  2938. "height": "90%",
  2939. "overflow": 'hidden'
  2940. },
  2941. "onresize": function () { }
  2942. }, {
  2943. closecallback: function () { }
  2944. }, {
  2945. "style": {
  2946. "height": "36px"
  2947. }
  2948. }).form; //创建窗体
  2949. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2950. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  2951. })
  2952. _taskbar = {
  2953. "id": str + _formdiv.id,
  2954. "style": {
  2955. "backgroundImage": "url(/img/icon/doc.png)"
  2956. },
  2957. "name": "协同文档",
  2958. "forms": _formdiv,
  2959. "click": function () {
  2960. U.MD.D.I.openApplication(str, obj, info);
  2961. }
  2962. }
  2963. break;
  2964. }
  2965. const script1 = document.createElement("script");
  2966. script1.type = "text/javascript";
  2967. script1.src =
  2968. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  2969. const script2 = document.createElement("script");
  2970. script2.type = "text/javascript";
  2971. script2.src =
  2972. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  2973. const script3 = document.createElement("script");
  2974. script3.type = "text/javascript";
  2975. script3.charset = "UTF-8";
  2976. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  2977. const script4 = document.createElement("script");
  2978. script4.type = "text/javascript";
  2979. script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu4.js";
  2980. if (_iframe) {
  2981. if (str == 'doc') {
  2982. U.UF.DL.iframeLoad(_iframe, function () {
  2983. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  2984. _iframe.contentWindow.document.body.appendChild(script1);
  2985. _iframe.contentWindow.document.body.appendChild(script2);
  2986. // _iframe.contentWindow.document.body.appendChild(script3);
  2987. _iframe.contentWindow.document.body.appendChild(script4);
  2988. })
  2989. } else if (str == 'mind') {
  2990. U.UF.DL.iframeLoad(_iframe, function () {
  2991. _iframe.contentWindow.document.body.appendChild(script1);
  2992. _iframe.contentWindow.document.body.appendChild(script2);
  2993. _iframe.contentWindow.document.body.appendChild(script4);
  2994. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  2995. })
  2996. } else {
  2997. _iframe.onload = () => {
  2998. _iframe.contentWindow.document.body.appendChild(script1);
  2999. _iframe.contentWindow.document.body.appendChild(script2);
  3000. // _iframe.contentWindow.document.body.appendChild(script3);
  3001. _iframe.contentWindow.document.body.appendChild(script4);
  3002. };
  3003. }
  3004. _jie.onclick = async () => {
  3005. let text = ''
  3006. if (aTool == 6) {
  3007. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3008. } else if (aTool == 3) {
  3009. text = await U.MD.D.I.getEditorContent(_iframe);
  3010. }
  3011. _loading.style.display = 'flex'
  3012. console.log(_loading);
  3013. var _ajs = _iframe.contentWindow.document.createElement("script");
  3014. _ajs.type = "text/javascript";
  3015. _ajs.innerHTML =
  3016. // 'console.log(' + _loading + ');\n' +
  3017. 'var _js = document.createElement("script");\n' +
  3018. '_js.type="text/javascript";\n' +
  3019. '_js.charset="UTF-8";\n' +
  3020. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3021. "_js.onload = function(){\n" +
  3022. ' var a = document.getElementsByTagName("img")\n' +
  3023. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3024. " html2canvas(document.body,{allowTaint: true,useCORS: true}).then(canvas => {\n" +
  3025. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3026. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3027. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3028. "beforeUpload_shishi(file," +
  3029. "'" +
  3030. _userid +
  3031. "'" +
  3032. ", " +
  3033. "'" +
  3034. _cid +
  3035. "'" +
  3036. ", " +
  3037. "'" +
  3038. _stage +
  3039. "'" +
  3040. ", " +
  3041. "'" +
  3042. _task +
  3043. "'" +
  3044. ", " +
  3045. "'" +
  3046. _tool +
  3047. "'" +
  3048. ", " +
  3049. "'" +
  3050. str + '_loadLi' +
  3051. "'" +
  3052. ", " +
  3053. "'" +
  3054. aTool +
  3055. "'" +
  3056. ", " +
  3057. "`" +
  3058. text +
  3059. "`" +
  3060. ")\n" +
  3061. " });\n" +
  3062. "}\n" +
  3063. "document.head.appendChild(_js);\n";
  3064. _iframe.contentWindow.document.head.appendChild(_ajs);
  3065. }
  3066. }
  3067. //U.MD.D.I.openClick(str);
  3068. //如果有任务栏信息
  3069. // if (_taskbar) {
  3070. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3071. // }
  3072. }
  3073. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  3074. var xmlhttp;
  3075. var Mac, Sn, DeviceId
  3076. if (window.XMLHttpRequest) {
  3077. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  3078. xmlhttp = new XMLHttpRequest();
  3079. }
  3080. else {
  3081. // IE6, IE5 浏览器执行代码
  3082. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  3083. }
  3084. xmlhttp.onreadystatechange = function () {
  3085. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  3086. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  3087. // resolve(res.value[0][0].text);
  3088. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  3089. $(fileInput).val('');
  3090. });
  3091. }
  3092. }
  3093. }
  3094. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  3095. xmlhttp.send();
  3096. }