DeskTop.js 143 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445
  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": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  15. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  16. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  17. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  18. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  19. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  20. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  21. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  22. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  23. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  24. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  25. { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  26. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  27. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  28. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  29. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  30. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  31. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  32. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  33. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  34. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  35. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  36. { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  37. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  38. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  39. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  40. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  41. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  42. { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  43. { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  44. ];
  45. U.MD.D.I.studentDeskIcon = [
  46. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  47. { "Name": "学习中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  48. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  49. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  50. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  51. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  52. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  53. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  54. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  55. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  56. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  57. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  58. { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  59. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  60. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  61. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  62. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  63. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  64. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  65. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  66. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  67. // { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  68. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  69. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  70. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  71. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  72. { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  73. ];
  74. U.MD.D.I.schoolDeskIcon = [
  75. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  76. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  77. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  78. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  79. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  80. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  81. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  82. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  83. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  84. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  85. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  86. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  87. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  88. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  89. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  90. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  91. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  92. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  93. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  94. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  95. ];
  96. U.MD.D.I.orgDeskIcon = [
  97. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  98. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  99. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  100. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  101. ];
  102. U.MD.D.I.orgStemDeskIcon = [
  103. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  104. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  105. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  106. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  107. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  108. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  109. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  110. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  111. ];
  112. U.MD.D.I.hanDeskIcon = [
  113. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  114. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  115. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  116. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  117. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  118. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  119. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  120. { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  121. { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  122. ];
  123. U.MD.D.I.GMteacherDeskIcon = [
  124. { "Name": "项目管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  125. { "Name": "学习中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  126. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  127. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  128. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  129. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  130. { "Name": "项目进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  131. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/meterial.png)" } },
  132. ];
  133. U.MD.D.I.GMstudentDeskIcon = [
  134. { "Name": "学习中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  135. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  136. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  137. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/meterial.png)" } },
  138. ];
  139. //#region 桌面初始化a
  140. /**
  141. * 初始化桌面的起始函数
  142. *
  143. */
  144. U.MD.D.I.init = function() {
  145. if ($("#U_MD_D_K")[0]) {
  146. //初始化桌面图标
  147. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0]);
  148. // var clickUrl = ':12588/requestIp.php';
  149. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  150. // U.MD.D.I.Ip = data;
  151. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  152. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  153. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  154. // })
  155. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  156. // })
  157. }
  158. }
  159. /**
  160. * 隐藏任务栏
  161. *
  162. * @param {element} 桌面元素
  163. */
  164. U.MD.D.I.hiddenTaskbar = function(el) {
  165. //任务栏位置变小
  166. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  167. //桌面的位置变大
  168. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  169. }
  170. /**
  171. * 隐藏任务栏
  172. *
  173. * @param {element} 桌面元素
  174. */
  175. U.MD.D.I.hiddenTaskbarout = function(el) {
  176. //任务栏位置变小
  177. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  178. //任务栏位置变化
  179. U.selectEl(el).css({ "bottom": "-60px" });
  180. //桌面的位置变大
  181. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  182. }
  183. }
  184. /**
  185. * 初始化打印桌面图标
  186. *
  187. * @param {element} 桌面元素
  188. */
  189. U.MD.D.I.initDesktopIcons = function(el) {
  190. var i, //用于循环
  191. _content, //桌面图标元素
  192. _iconcontent, //桌面图标元素
  193. _frag = $$("frag"), //定义一个碎片元素
  194. _type = US.userInfo.type,
  195. _org = US.userInfo.org,
  196. _oid = US.userInfo.organizeid,
  197. _teacherDesktopIconInfo = U.MD.D.I.teacherDeskIcon, //获取教师端桌面图标
  198. _studentDesktopIconInfo = U.MD.D.I.studentDeskIcon, //获取学生端桌面图标
  199. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  200. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  201. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  202. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  203. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  204. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon; //获取光明学校桌面图标
  205. //清楚桌面图标
  206. el.innerHTML = "";
  207. //循环创建桌面图标
  208. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5" && _org != "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d" && _oid != "d9db3320-503a-11ed-8c78-005056b86db5" && _org != "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  209. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  210. _content = $$("div", {
  211. className: "U_MD_D_KO",
  212. "onmousedown": U.UF.C.closure(function(obj) {
  213. //防止拖动图标即打开了桌面应用
  214. U.MD.D.click(this, obj);
  215. }, [_studentDesktopIconInfo[i]]),
  216. "onclick": U.UF.C.closure(function(obj) {
  217. //防止拖动图标即打开了桌面应用
  218. U.MD.D.click(this, obj);
  219. }, [_studentDesktopIconInfo[i]])
  220. }, _frag); //
  221. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  222. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  223. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  224. }
  225. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  226. for (i = 0; i < _hanDeskIcon.length; i++) {
  227. _content = $$("div", {
  228. className: "U_MD_D_KO",
  229. "onmousedown": U.UF.C.closure(function(obj) {
  230. //防止拖动图标即打开了桌面应用
  231. U.MD.D.click(this, obj);
  232. }, [_hanDeskIcon[i]]),
  233. "onclick": U.UF.C.closure(function(obj) {
  234. //防止拖动图标即打开了桌面应用
  235. U.MD.D.click(this, obj);
  236. }, [_hanDeskIcon[i]])
  237. }, _frag); //
  238. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  239. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  240. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  241. }
  242. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  243. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  244. _content = $$("div", {
  245. className: "U_MD_D_KO",
  246. "onmousedown": U.UF.C.closure(function(obj) {
  247. //防止拖动图标即打开了桌面应用
  248. U.MD.D.click(this, obj);
  249. }, [_orgStemDeskIcon[i]]),
  250. "onclick": U.UF.C.closure(function(obj) {
  251. //防止拖动图标即打开了桌面应用
  252. U.MD.D.click(this, obj);
  253. }, [_orgStemDeskIcon[i]])
  254. }, _frag); //
  255. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  256. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  257. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  258. }
  259. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  260. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  261. _content = $$("div", {
  262. className: "U_MD_D_KO",
  263. "onmousedown": U.UF.C.closure(function(obj) {
  264. //防止拖动图标即打开了桌面应用
  265. U.MD.D.click(this, obj);
  266. }, [_orgDesktopIconInfo[i]]),
  267. "onclick": U.UF.C.closure(function(obj) {
  268. //防止拖动图标即打开了桌面应用
  269. U.MD.D.click(this, obj);
  270. }, [_orgDesktopIconInfo[i]])
  271. }, _frag); //
  272. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  273. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  274. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  275. }
  276. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  277. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  278. _content = $$("div", {
  279. className: "U_MD_D_KO",
  280. "onmousedown": U.UF.C.closure(function(obj) {
  281. //防止拖动图标即打开了桌面应用
  282. U.MD.D.click(this, obj);
  283. }, [_schoolDesktopIconInfo[i]]),
  284. "onclick": U.UF.C.closure(function(obj) {
  285. //防止拖动图标即打开了桌面应用
  286. U.MD.D.click(this, obj);
  287. }, [_schoolDesktopIconInfo[i]])
  288. }, _frag); //
  289. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  290. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  291. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  292. }
  293. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  294. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  295. _content = $$("div", {
  296. className: "U_MD_D_KO",
  297. "onmousedown": U.UF.C.closure(function(obj) {
  298. //防止拖动图标即打开了桌面应用
  299. U.MD.D.click(this, obj);
  300. }, [_studentDesktopIconInfo[i]]),
  301. "onclick": U.UF.C.closure(function(obj) {
  302. //防止拖动图标即打开了桌面应用
  303. U.MD.D.click(this, obj);
  304. }, [_studentDesktopIconInfo[i]])
  305. }, _frag); //
  306. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  307. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  308. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  309. }
  310. }else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  311. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  312. _content = $$("div", {
  313. className: "U_MD_D_KO",
  314. "onmousedown": U.UF.C.closure(function(obj) {
  315. //防止拖动图标即打开了桌面应用
  316. U.MD.D.click(this, obj);
  317. }, [_GMteacherDesktopIconInfo[i]]),
  318. "onclick": U.UF.C.closure(function(obj) {
  319. //防止拖动图标即打开了桌面应用
  320. U.MD.D.click(this, obj);
  321. }, [_GMteacherDesktopIconInfo[i]])
  322. }, _frag); //
  323. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  324. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  325. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  326. }
  327. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  328. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  329. _content = $$("div", {
  330. className: "U_MD_D_KO",
  331. "onmousedown": U.UF.C.closure(function(obj) {
  332. //防止拖动图标即打开了桌面应用
  333. U.MD.D.click(this, obj);
  334. }, [_GMstudentDesktopIconInfo[i]]),
  335. "onclick": U.UF.C.closure(function(obj) {
  336. //防止拖动图标即打开了桌面应用
  337. U.MD.D.click(this, obj);
  338. }, [_GMstudentDesktopIconInfo[i]])
  339. }, _frag); //
  340. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  341. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  342. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  343. }
  344. } else {
  345. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  346. _content = $$("div", {
  347. className: "U_MD_D_KO",
  348. "onmousedown": U.UF.C.closure(function(obj) {
  349. //防止拖动图标即打开了桌面应用
  350. U.MD.D.click(this, obj);
  351. }, [_teacherDesktopIconInfo[i]]),
  352. "onclick": U.UF.C.closure(function(obj) {
  353. //防止拖动图标即打开了桌面应用
  354. U.MD.D.click(this, obj);
  355. }, [_teacherDesktopIconInfo[i]])
  356. }, _frag); //
  357. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  358. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  359. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  360. }
  361. }
  362. //加载好后给图标定位
  363. U.MD.D.iconPostion($(_frag).Child());
  364. //把图标加载到页面
  365. el.appendChild(_frag);
  366. }
  367. /**
  368. * 显示任务栏
  369. *
  370. * @param {element} 桌面元素
  371. */
  372. U.MD.D.I.displayTaskbar = function(el) {
  373. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  374. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  375. //任务栏位置变化
  376. U.selectEl(el).css({ "bottom": "0px" });
  377. //桌面位置变话
  378. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  379. }
  380. }
  381. //#region 桌面图标拖动逻辑
  382. /**
  383. * 桌面排列图标
  384. *
  385. * @param {element} 桌面元素
  386. * @param {object} 上下相距的距离
  387. * @param {object} 左右相距的距离
  388. * @return {object} 命名空间
  389. */
  390. U.MD.D.iconPostion = function(childs, top, left) {
  391. var i; //用于循环处理
  392. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  393. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  394. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  395. for (i = 0; i < childs.length; i++) {
  396. //如果竖排top超过了范围处理
  397. if (top + 95 > US.height - 10) {
  398. //left超过了页面范围处理,则向上重叠打印处理
  399. if ((left + 180) > US.width) {
  400. top -= 110;
  401. left -= 90;
  402. }
  403. //没有超过范围,那么left+90添加到下一个竖排打印
  404. else {
  405. left += 90;
  406. top = 15;
  407. };
  408. }
  409. //给图标的位置赋值
  410. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  411. if (i < childs.length - 1) {
  412. //页面图标每次向下加95
  413. top += 95;
  414. }
  415. }
  416. //返回最后调用的图标的位置
  417. return [top, left];
  418. }
  419. /**
  420. * 桌面点击事件逻辑
  421. *
  422. * @param {element} 桌面元素
  423. * @param {object} 上下相距的距离
  424. * @param {object} 左右相距的距离
  425. * @return {object} 命名空间
  426. */
  427. U.MD.D.click = function(el, obj) {
  428. var _buttonnumber = event.button; //点击的按钮的事件值
  429. var _userinfo = US.userInfo;
  430. U.UF.EV.stopBubble(); //阻止向上冒泡
  431. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  432. if (_buttonnumber < 2) {
  433. //如果是click事件的处理
  434. if (event.type == "click") {
  435. //如果元素在mousemove事件中没有移动则出发click事件
  436. if (!U.MD.D.I.IsDrag) {
  437. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  438. U.alert("请先登录您的账号!");
  439. setTimeout(() => {
  440. U.MD.U.L.login();
  441. }, 2000);
  442. } else {
  443. //打开应用处理
  444. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  445. }
  446. }
  447. }
  448. //如果是mouse事件的处理
  449. else {
  450. //拖动处理,添加拖动和拖动结束事件
  451. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  452. }
  453. U.MD.D.I.IsDrag = false;
  454. }
  455. }
  456. /**
  457. * 拖动的处理
  458. *
  459. */
  460. U.MD.D.iconMove = function() {
  461. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  462. U.MD.D.I.IsDrag = true;
  463. }
  464. /**
  465. * 拖动结束后,这里是定位处理,以网状的形式定位
  466. *
  467. * @param {element} 拖动的元素
  468. * @return {object} 命名空间
  469. */
  470. U.MD.D.iconUp = function(el) {
  471. var _top = 15,
  472. _left = 20,
  473. _margin,
  474. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  475. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  476. if (_positioninfo["OT"] > 15) {
  477. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  478. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  479. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  480. }
  481. if (_positioninfo["OL"] > 20) {
  482. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  483. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  484. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  485. }
  486. //while循环判断么一个重叠的元素
  487. do {
  488. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  489. _top = _positioninfo[0] + 95; //得到定位后的top
  490. _left = _positioninfo[1]; //得到定位后的left
  491. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  492. }
  493. /**
  494. * 判断拖动后图标是否重叠
  495. *
  496. * @param {element} 拖动的元素
  497. * @param {element} 桌面所有的元素
  498. * @param {array} 拖动元素的位置
  499. ----------[0] 上 top
  500. ----------[1] 左 left
  501. * @return {object} 命名空间
  502. */
  503. U.MD.D.isOverlap = function(el, childs, postionarray) {
  504. //循环所有的图标
  505. for (var i = 0; i < childs.length; i++) {
  506. //判断有没有和该图标诶子重叠的元素
  507. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  508. return childs[i]; //如果有返回
  509. }
  510. }
  511. }
  512. //#endregion
  513. //#endregion
  514. //#region 桌面应用
  515. /**
  516. * 打开应用
  517. *
  518. * @param {string} 类型
  519. -----------------Disk 网盘系统
  520. -----------------PDisk 学习系统网盘
  521. -----------------Poto 图片
  522. -----------------Video 视频
  523. -----------------Music 音乐
  524. -----------------Word word
  525. -----------------Excel excel
  526. -----------------Txt 记事本
  527. -----------------PB 学习系统
  528. -----------------Blog 朋友圈系统
  529. -----------------FTP ftp系统
  530. -----------------Group 好友群
  531. -----------------SY 首页系统
  532. -----------------Set 个人设置
  533. -----------------XSet 系统设置
  534. -----------------App 我们所有的app
  535. -----------------BC c.1473.cn 平台
  536. -----------------CWeb d.1473.cn 变成平台
  537. -----------------其他的外联系统 我们统一用iframe打开
  538. * @param {array} 类型
  539. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  540. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  541. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  542. 如果第一个参数为其他,则无第二个参数
  543. * @returns {array}
  544. */
  545. window.addEventListener('message', function(e) { // 监听 message 事件
  546. // alert(e.data.type);
  547. if (e.data.screenType && e.data.screenType == "2") { //项目管理传入
  548. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  549. //3是展示全部阶段 2学生 1老师 4专家
  550. } else if (e.data.screenType && e.data.screenType == "3") { //项目管理传入
  551. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  552. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  553. U.MD.D.I.selectUser();
  554. } else if (e.data.allScreen && e.data.allScreen == "1") {
  555. var _formel = document.getElementById("study");
  556. U.UF.F.windowZooming(_formel);
  557. } else if (e.data.allScreen && e.data.allScreen == "2") {
  558. var _formel = document.getElementById("studyDetail");
  559. U.UF.F.windowZooming(_formel);
  560. } else if (e.data.allScreen && e.data.allScreen == "3") {project
  561. var _formel = document.getElementById("studentStudy");
  562. U.UF.F.windowZooming(_formel);
  563. } else if (e.data.allScreen && e.data.allScreen == "6") {
  564. var _formel = document.getElementById("study");
  565. //如果最大化了,那么就把他缩小
  566. // if (_formel.ismaximize) {
  567. // return;
  568. // }
  569. // U.UF.F.windowZooming(_formel);
  570. U.UF.F.topWindow(_formel);
  571. } else if (e.data.allScreen && e.data.allScreen == "4") {
  572. var _formel = document.getElementById("studyDetail");
  573. //如果最大化了,那么就把他缩小
  574. // if (_formel.ismaximize) {
  575. // return;
  576. // }
  577. // U.UF.F.windowZooming(_formel);
  578. U.UF.F.topWindow(_formel);
  579. } else if (e.data.allScreen && e.data.allScreen == "5") {
  580. var _formel = document.getElementById("studentStudy");
  581. // if (_formel.ismaximize) {
  582. // return;
  583. // }
  584. // U.UF.F.windowZooming(_formel);
  585. U.UF.F.topWindow(_formel);
  586. } else if (e.data.tools && e.data.tools == "1") {
  587. // U.MD.D.I.openApplication("whiteboard")
  588. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  589. } else if (e.data.tools && e.data.tools == "2") {
  590. U.MD.D.I.openApplication("note")
  591. } else if (e.data.tools && e.data.tools == "3") {
  592. // U.MD.D.I.openApplication("mind")
  593. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  594. } else if (e.data.tools && e.data.tools == "4") {
  595. U.MD.D.I.openApplication("investigation")
  596. } else if (e.data.tools && e.data.tools == "6") {
  597. // U.MD.D.I.openApplication("doc")
  598. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  599. } else if (e.data.tools && e.data.tools == "7") {
  600. // U.MD.D.I.openApplication("mindNetwork")
  601. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  602. } else if (e.data.tools && e.data.tools == "8") {
  603. U.MD.D.I.openApplication("library")
  604. } else if (e.data.tools && e.data.tools == "17") {
  605. U.MD.D.I.openApplication("stuLibrary")
  606. } else if (e.data.tools && e.data.tools == "18") {
  607. U.MD.D.I.openApplication("train")
  608. } else if (e.data.tools && e.data.tools == "21") {
  609. U.MD.D.I.openApplication("program")
  610. } else if (e.data.tools && e.data.tools == "22") {
  611. U.MD.D.I.openApplication("AIprogram2")
  612. } else if (e.data.tools && e.data.tools == "23") {
  613. U.MD.D.I.openApplication("Pythonprogram")
  614. } else if (e.data.tools && e.data.tools == "24") {
  615. U.MD.D.I.openApplication("AIprogram")
  616. } else if (e.data.tools && e.data.tools == "25") {
  617. U.MD.D.I.openApplication("sys")
  618. } else if (e.data.tools && e.data.tools == "26") {
  619. // U.MD.D.I.openApplication("courseDesign")
  620. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  621. } else if (e.data.tools && e.data.tools == "31") {
  622. U.MD.D.I.openApplication("netWorkPanel")
  623. } else if (e.data.tools && e.data.tools == "32") {
  624. U.MD.D.I.openApplication("codeEdit")
  625. } else if (e.data.tools && e.data.tools == "28") {
  626. U.MD.D.I.openApplication("translation")
  627. } else if (e.data.tools && e.data.tools == "37") {
  628. U.MD.D.I.openApplication("mohe")
  629. } else if (e.data.tools && e.data.tools == "38") {
  630. U.MD.D.I.openApplication("24game")
  631. } else if (e.data.tools && e.data.tools == "39") {
  632. U.MD.D.I.openApplication("GeoGebra")
  633. } else if (e.data.tools && e.data.tools == "43") {
  634. U.MD.D.I.openApplication("studentEvaluate")
  635. } else if (e.data.tools && e.data.tools == "44") {
  636. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  637. } else if (e.data.tools && e.data.tools == "46") {
  638. U.MD.D.I.openApplication("project")
  639. }
  640. });
  641. U.MD.D.I.selectUser = function() {
  642. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function(res) { //US.userInfo.userid
  643. if (res.value[0].length > 0) {
  644. US.userInfo = res.value[0][0];
  645. $(".userName")[0].innerHTML = US.userInfo.username;
  646. }
  647. }, [], { "type": "GET", "withCredentials": true });
  648. }
  649. U.MD.D.I.openInApplication = function(str, data, screenType, tType) {
  650. var _userinfo = US.userInfo, //登录用户信息
  651. _userid = US.userInfo.userid, //登录用户id
  652. _oid = _userinfo.organizeid,
  653. _type = US.userInfo.type,
  654. _org = US.userInfo.org,
  655. _classId = US.userInfo.classid;
  656. if (_type == 4) {
  657. tType = 4
  658. }
  659. switch (str) {
  660. case "studyDetail":
  661. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  662. setTimeout(() => {
  663. U.MD.U.L.login();
  664. }, 2000);
  665. } else {
  666. _formdiv = new U.UF.UI.form(
  667. "项目详情",
  668. $$("iframe", { "allow": "camera *; microphone *", "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 }), {
  669. "id": "studyDetail",
  670. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  671. "onresize": function () { }
  672. }, {
  673. closecallback: function () { }
  674. }, { "style": { "height": "36px" } }).form; //创建窗体
  675. _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); } }
  676. break;
  677. }
  678. case "hanUrl":
  679. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  680. setTimeout(() => {
  681. U.MD.U.L.login();
  682. }, 2000);
  683. } else {
  684. _formdiv = new U.UF.UI.form(
  685. "汉字宫",
  686. $$("iframe", { "allow": "camera *; microphone *", "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" }), {
  687. "id": "hanUrl",
  688. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  689. "onresize": function () { }
  690. }, {
  691. closecallback: function () { }
  692. }, { "style": { "height": "36px" } }).form; //创建窗体
  693. _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); } }
  694. break;
  695. }
  696. }
  697. }
  698. U.MD.D.I.openApplication = function(str, obj, info) {
  699. obj = obj || {};
  700. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  701. _formdiv, //创建任务栏时同时弹出的窗体元素。
  702. _userinfo = US.userInfo, //登录用户信息
  703. _userid = obj.userid || US.userInfo.userid, //登录用户id
  704. _oid = obj.organizeid || _userinfo.organizeid,
  705. _type = US.userInfo.type,
  706. _org = US.userInfo.org,
  707. _classId = US.userInfo.classid,
  708. _TscreenType = 1
  709. _screenType = 2,
  710. _SscreenType = 3;
  711. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  712. switch (str) {
  713. case "studnetProject": //好友打开
  714. _formdiv = new U.UF.UI.form(
  715. "我的项目",
  716. $$("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 }), {
  717. "id": "studnetProject",
  718. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  719. "onresize": function() {}
  720. }, {
  721. closecallback: function() {}
  722. }, { "style": { "height": "36px" } }).form; //创建窗体
  723. _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); } }
  724. break;
  725. case "studentEvaluate": //好友打开
  726. _formdiv = new U.UF.UI.form(
  727. "我的评价",
  728. $$("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 }), {
  729. "id": "studentEvaluate",
  730. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  731. "onresize": function() {}
  732. }, {
  733. closecallback: function() {}
  734. }, { "style": { "height": "36px" } }).form; //创建窗体
  735. _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); } }
  736. break;
  737. case "my":
  738. _formdiv = new U.UF.UI.form(
  739. "我的资料",
  740. $$("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 }), {
  741. "id": "my",
  742. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  743. "onresize": function() {}
  744. }, {
  745. closecallback: function() {}
  746. }, { "style": { "height": "36px" } }).form; //创建窗体
  747. _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); } }
  748. break;
  749. case "program":
  750. _formdiv = new U.UF.UI.form(
  751. "编程平台",
  752. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  753. "id": "program",
  754. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  755. "onresize": function() {}
  756. }, {
  757. closecallback: function() {}
  758. }, { "style": { "height": "36px" } }).form; //创建窗体
  759. _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); } }
  760. break;
  761. case "library":
  762. _formdiv = new U.UF.UI.form(
  763. "素材库",
  764. $$("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 }), {
  765. "id": "library",
  766. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  767. "onresize": function() {}
  768. }, {
  769. closecallback: function() {}
  770. }, { "style": { "height": "36px" } }).form; //创建窗体
  771. _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); } }
  772. break;
  773. case "whiteboard":
  774. _formdiv = new U.UF.UI.form(
  775. "电子白板",
  776. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  777. "id": "whiteboard",
  778. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  779. "onresize": function() {}
  780. }, {
  781. closecallback: function() {}
  782. }, { "style": { "height": "36px" } }).form; //创建窗体
  783. _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); } }
  784. break;
  785. case "investigation":
  786. _formdiv = new U.UF.UI.form(
  787. "问卷调查",
  788. $$("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 }), {
  789. "id": "investigation",
  790. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  791. "onresize": function() {}
  792. }, {
  793. closecallback: function() {}
  794. }, { "style": { "height": "36px" } }).form; //创建窗体
  795. _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); } }
  796. break;
  797. case "note":
  798. _formdiv = new U.UF.UI.form(
  799. "便签分类",
  800. $$("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 }), {
  801. "id": "note",
  802. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  803. "onresize": function() {}
  804. }, {
  805. closecallback: function() {}
  806. }, { "style": { "height": "36px" } }).form; //创建窗体
  807. _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); } }
  808. break;
  809. // case "score":
  810. // _formdiv = new U.UF.UI.form(
  811. // "量规评分",
  812. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  813. // "id": "score",
  814. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  815. // "onresize": function() {}
  816. // }, {
  817. // closecallback: function() {}
  818. // }, { "style": { "height": "36px" } }).form; //创建窗体
  819. // _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); } }
  820. // break;
  821. case "mind":
  822. _formdiv = new U.UF.UI.form(
  823. "思维导图",
  824. $$("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"
  825. "id": "mind",
  826. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  827. "onresize": function() {}
  828. }, {
  829. closecallback: function() {}
  830. }, { "style": { "height": "36px" } }).form; //创建窗体
  831. _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); } }
  832. break;
  833. case "doc":
  834. // U.MD.D.I.isRoom();
  835. _formdiv = new U.UF.UI.form(
  836. "协同文档",
  837. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  838. "id": "doc",
  839. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  840. "onresize": function() {}
  841. }, {
  842. closecallback: function() {}
  843. }, { "style": { "height": "36px" } }).form; //创建窗体
  844. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  845. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  846. // })
  847. _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); } }
  848. break;
  849. case "studentStudy":
  850. _formdiv = new U.UF.UI.form(
  851. "学习中心",
  852. $$("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/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  853. "id": "studentStudy",
  854. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  855. "onresize": function() {}
  856. }, {
  857. closecallback: function() {}
  858. }, { "style": { "height": "36px" } }).form; //创建窗体
  859. _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); } }
  860. break;
  861. case "train": //好友打开
  862. _formdiv = new U.UF.UI.form(
  863. "训练平台",
  864. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  865. "id": "train",
  866. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  867. "onresize": function() {}
  868. }, {
  869. closecallback: function() {}
  870. }, { "style": { "height": "36px" } }).form; //创建窗体
  871. _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); } }
  872. break;
  873. case "mindNetwork": //好友打开
  874. _formdiv = new U.UF.UI.form(
  875. "思维网格",
  876. $$("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 }), {
  877. "id": "mindNetwork",
  878. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  879. "onresize": function() {}
  880. }, {
  881. closecallback: function() {}
  882. }, { "style": { "height": "36px" } }).form; //创建窗体
  883. _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); } }
  884. break;
  885. case "studentClassRoom": //好友打开
  886. _formdiv = new U.UF.UI.form(
  887. "实时课堂",
  888. $$("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 }), {
  889. "id": "studentClassRoom",
  890. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  891. "onresize": function() {}
  892. }, {
  893. closecallback: function() {}
  894. }, { "style": { "height": "36px" } }).form; //创建窗体
  895. _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); } }
  896. setTimeout(() => {
  897. U.UF.F.windowZooming(_formdiv)
  898. }, 0);
  899. break;
  900. }
  901. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  902. switch (str) {
  903. case "studnetProject": //好友打开
  904. _formdiv = new U.UF.UI.form(
  905. "我的项目",
  906. $$("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 }), {
  907. "id": "studnetProject",
  908. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  909. "onresize": function() {}
  910. }, {
  911. closecallback: function() {}
  912. }, { "style": { "height": "36px" } }).form; //创建窗体
  913. _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); } }
  914. break;
  915. case "studentEvaluate": //好友打开
  916. _formdiv = new U.UF.UI.form(
  917. "我的评价",
  918. $$("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 }), {
  919. "id": "studentEvaluate",
  920. "style": { "width": "70%", "height": "90%", "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/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  926. break;
  927. case "my":
  928. _formdiv = new U.UF.UI.form(
  929. "我的资料",
  930. $$("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 }), {
  931. "id": "my",
  932. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  933. "onresize": function() {}
  934. }, {
  935. closecallback: function() {}
  936. }, { "style": { "height": "36px" } }).form; //创建窗体
  937. _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); } }
  938. break;
  939. case "program":
  940. _formdiv = new U.UF.UI.form(
  941. "编程平台",
  942. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  943. "id": "program",
  944. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  945. "onresize": function() {}
  946. }, {
  947. closecallback: function() {}
  948. }, { "style": { "height": "36px" } }).form; //创建窗体
  949. _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); } }
  950. break;
  951. case "library":
  952. _formdiv = new U.UF.UI.form(
  953. "素材库",
  954. $$("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 }), {
  955. "id": "library",
  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/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  962. break;
  963. case "whiteboard":
  964. _formdiv = new U.UF.UI.form(
  965. "电子白板",
  966. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  967. "id": "whiteboard",
  968. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  969. "onresize": function() {}
  970. }, {
  971. closecallback: function() {}
  972. }, { "style": { "height": "36px" } }).form; //创建窗体
  973. _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); } }
  974. break;
  975. case "investigation":
  976. _formdiv = new U.UF.UI.form(
  977. "问卷调查",
  978. $$("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 }), {
  979. "id": "investigation",
  980. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  981. "onresize": function() {}
  982. }, {
  983. closecallback: function() {}
  984. }, { "style": { "height": "36px" } }).form; //创建窗体
  985. _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); } }
  986. break;
  987. case "note":
  988. _formdiv = new U.UF.UI.form(
  989. "便签分类",
  990. $$("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 }), {
  991. "id": "note",
  992. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  993. "onresize": function() {}
  994. }, {
  995. closecallback: function() {}
  996. }, { "style": { "height": "36px" } }).form; //创建窗体
  997. _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); } }
  998. break;
  999. // case "score":
  1000. // _formdiv = new U.UF.UI.form(
  1001. // "量规评分",
  1002. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1003. // "id": "score",
  1004. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1005. // "onresize": function() {}
  1006. // }, {
  1007. // closecallback: function() {}
  1008. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1009. // _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); } }
  1010. // break;
  1011. case "mind":
  1012. _formdiv = new U.UF.UI.form(
  1013. "思维导图",
  1014. $$("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"
  1015. "id": "mind",
  1016. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1017. "onresize": function() {}
  1018. }, {
  1019. closecallback: function() {}
  1020. }, { "style": { "height": "36px" } }).form; //创建窗体
  1021. _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); } }
  1022. break;
  1023. case "doc":
  1024. // U.MD.D.I.isRoom();
  1025. _formdiv = new U.UF.UI.form(
  1026. "协同文档",
  1027. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1028. "id": "doc",
  1029. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1030. "onresize": function() {}
  1031. }, {
  1032. closecallback: function() {}
  1033. }, { "style": { "height": "36px" } }).form; //创建窗体
  1034. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  1035. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1036. })
  1037. _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); } }
  1038. break;
  1039. case "train": //好友打开
  1040. _formdiv = new U.UF.UI.form(
  1041. "训练平台",
  1042. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1043. "id": "train",
  1044. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1045. "onresize": function() {}
  1046. }, {
  1047. closecallback: function() {}
  1048. }, { "style": { "height": "36px" } }).form; //创建窗体
  1049. _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); } }
  1050. break;
  1051. case "studentStudy":
  1052. _formdiv = new U.UF.UI.form(
  1053. "学习中心",
  1054. $$("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/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1055. "id": "studentStudy",
  1056. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1057. "onresize": function() {}
  1058. }, {
  1059. closecallback: function() {}
  1060. }, { "style": { "height": "36px" } }).form; //创建窗体
  1061. _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); } }
  1062. break;
  1063. case "mindNetwork": //好友打开
  1064. _formdiv = new U.UF.UI.form(
  1065. "思维网格",
  1066. $$("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 }), {
  1067. "id": "mindNetwork",
  1068. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1069. "onresize": function() {}
  1070. }, {
  1071. closecallback: function() {}
  1072. }, { "style": { "height": "36px" } }).form; //创建窗体
  1073. _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); } }
  1074. break;
  1075. case "studentClassRoom": //好友打开
  1076. _formdiv = new U.UF.UI.form(
  1077. "实时课堂",
  1078. $$("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 }), {
  1079. "id": "studentClassRoom",
  1080. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1081. "onresize": function() {}
  1082. }, {
  1083. closecallback: function() {}
  1084. }, { "style": { "height": "36px" } }).form; //创建窗体
  1085. _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); } }
  1086. setTimeout(() => {
  1087. U.UF.F.windowZooming(_formdiv)
  1088. }, 0);
  1089. break;
  1090. }
  1091. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1092. //选择应用处理
  1093. switch (str) {
  1094. case "project": //好友打开
  1095. _formdiv = new U.UF.UI.form(
  1096. "项目管理",
  1097. $$("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 }), {
  1098. "id": "project",
  1099. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1100. "onresize": function() {}
  1101. }, {
  1102. closecallback: function() {}
  1103. }, { "style": { "height": "36px" } }).form; //创建窗体
  1104. _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); } }
  1105. break;
  1106. case "student":
  1107. _formdiv = new U.UF.UI.form(
  1108. "学生管理",
  1109. $$("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 }), {
  1110. "id": "student",
  1111. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1112. "onresize": function() {}
  1113. }, {
  1114. closecallback: function() {}
  1115. }, { "style": { "height": "36px" } }).form; //创建窗体
  1116. _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); } }
  1117. break;
  1118. case "evaluate":
  1119. _formdiv = new U.UF.UI.form(
  1120. "学生评价",
  1121. $$("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 }), {
  1122. "id": "evaluate",
  1123. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1124. "onresize": function() {}
  1125. }, {
  1126. closecallback: function() {}
  1127. }, { "style": { "height": "36px" } }).form; //创建窗体
  1128. _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); } }
  1129. break;
  1130. case "sys":
  1131. _formdiv = new U.UF.UI.form(
  1132. "目标管理",
  1133. $$("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 }), {
  1134. "id": "sys",
  1135. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1136. "onresize": function() {}
  1137. }, {
  1138. closecallback: function() {}
  1139. }, { "style": { "height": "36px" } }).form; //创建窗体
  1140. _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); } }
  1141. break;
  1142. case "courseDesign":
  1143. _formdiv = new U.UF.UI.form(
  1144. "课程设计",
  1145. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1146. "id": "courseDesign",
  1147. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1148. "onresize": function() {}
  1149. }, {
  1150. closecallback: function() {}
  1151. }, { "style": { "height": "36px" } }).form; //创建窗体
  1152. _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); } }
  1153. break;
  1154. case "program":
  1155. _formdiv = new U.UF.UI.form(
  1156. "编程平台",
  1157. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1158. "id": "program",
  1159. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1160. "onresize": function() {}
  1161. }, {
  1162. closecallback: function() {}
  1163. }, { "style": { "height": "36px" } }).form; //创建窗体
  1164. _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); } }
  1165. break;
  1166. case "class":
  1167. _formdiv = new U.UF.UI.form(
  1168. "班级管理",
  1169. $$("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 }), {
  1170. "id": "class",
  1171. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1172. "onresize": function() {}
  1173. }, {
  1174. closecallback: function() {}
  1175. }, { "style": { "height": "36px" } }).form; //创建窗体
  1176. _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); } }
  1177. break;
  1178. case "my":
  1179. _formdiv = new U.UF.UI.form(
  1180. "我的资料",
  1181. $$("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 }), {
  1182. "id": "my",
  1183. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1184. "onresize": function() {}
  1185. }, {
  1186. closecallback: function() {}
  1187. }, { "style": { "height": "36px" } }).form; //创建窗体
  1188. _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); } }
  1189. break;
  1190. case "notice":
  1191. _formdiv = new U.UF.UI.form(
  1192. "通知公告",
  1193. $$("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 }), {
  1194. "id": "notice",
  1195. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1196. "onresize": function() {}
  1197. }, {
  1198. closecallback: function() {}
  1199. }, { "style": { "height": "36px" } }).form; //创建窗体
  1200. _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); } }
  1201. break;
  1202. case "library":
  1203. _formdiv = new U.UF.UI.form(
  1204. "素材库",
  1205. $$("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 }), {
  1206. "id": "library",
  1207. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1208. "onresize": function() {}
  1209. }, {
  1210. closecallback: function() {}
  1211. }, { "style": { "height": "36px" } }).form; //创建窗体
  1212. _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); } }
  1213. break;
  1214. case "whiteboard":
  1215. _formdiv = new U.UF.UI.form(
  1216. "电子白板",
  1217. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1218. "id": "whiteboard",
  1219. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1220. "onresize": function() {}
  1221. }, {
  1222. closecallback: function() {}
  1223. }, { "style": { "height": "36px" } }).form; //创建窗体
  1224. _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); } }
  1225. break;
  1226. case "investigation":
  1227. _formdiv = new U.UF.UI.form(
  1228. "问卷调查",
  1229. $$("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 }), {
  1230. "id": "investigation",
  1231. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1232. "onresize": function() {}
  1233. }, {
  1234. closecallback: function() {}
  1235. }, { "style": { "height": "36px" } }).form; //创建窗体
  1236. _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); } }
  1237. break;
  1238. case "note":
  1239. _formdiv = new U.UF.UI.form(
  1240. "便签分类",
  1241. $$("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 }), {
  1242. "id": "note",
  1243. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1244. "onresize": function() {}
  1245. }, {
  1246. closecallback: function() {}
  1247. }, { "style": { "height": "36px" } }).form; //创建窗体
  1248. _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); } }
  1249. break;
  1250. // case "score":
  1251. // _formdiv = new U.UF.UI.form(
  1252. // "量规评分",
  1253. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1254. // "id": "score",
  1255. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1256. // "onresize": function() {}
  1257. // }, {
  1258. // closecallback: function() {}
  1259. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1260. // _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); } }
  1261. // break;
  1262. case "mind":
  1263. _formdiv = new U.UF.UI.form(
  1264. "思维导图",
  1265. $$("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"
  1266. "id": "mind",
  1267. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1268. "onresize": function() {}
  1269. }, {
  1270. closecallback: function() {}
  1271. }, { "style": { "height": "36px" } }).form; //创建窗体
  1272. _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); } }
  1273. break;
  1274. case "doc":
  1275. // U.MD.D.I.isRoom();
  1276. _formdiv = new U.UF.UI.form(
  1277. "协同文档",
  1278. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1279. "id": "doc",
  1280. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1281. "onresize": function() {}
  1282. }, {
  1283. closecallback: function() {}
  1284. }, { "style": { "height": "36px" } }).form; //创建窗体
  1285. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  1286. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1287. })
  1288. _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); } }
  1289. break;
  1290. case "study":
  1291. _formdiv = new U.UF.UI.form(
  1292. "学习中心",
  1293. $$("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/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1294. "id": "study",
  1295. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1296. "onresize": function() {}
  1297. }, {
  1298. closecallback: function() {}
  1299. }, { "style": { "height": "36px" } }).form; //创建窗体
  1300. _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); } }
  1301. break;
  1302. case "mindNetwork": //好友打开
  1303. _formdiv = new U.UF.UI.form(
  1304. "思维网格",
  1305. $$("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 }), {
  1306. "id": "mindNetwork",
  1307. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1308. "onresize": function() {}
  1309. }, {
  1310. closecallback: function() {}
  1311. }, { "style": { "height": "36px" } }).form; //创建窗体
  1312. _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); } }
  1313. break;
  1314. case "train": //好友打开
  1315. _formdiv = new U.UF.UI.form(
  1316. "训练平台",
  1317. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1318. "id": "mindNetwork",
  1319. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1320. "onresize": function() {}
  1321. }, {
  1322. closecallback: function() {}
  1323. }, { "style": { "height": "36px" } }).form; //创建窗体
  1324. _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); } }
  1325. break;
  1326. case "teacherClassRoom": //好友打开
  1327. _formdiv = new U.UF.UI.form(
  1328. "实时课堂",
  1329. $$("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 }), {
  1330. "id": "teacherClassRoom",
  1331. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1332. "onresize": function() {}
  1333. }, {
  1334. closecallback: function() {}
  1335. }, { "style": { "height": "36px" } }).form; //创建窗体
  1336. _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); } }
  1337. setTimeout(() => {
  1338. U.UF.F.windowZooming(_formdiv)
  1339. }, 0);
  1340. break;
  1341. }
  1342. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1343. switch (str) {
  1344. case "project": //好友打开
  1345. _formdiv = new U.UF.UI.form(
  1346. "项目管理",
  1347. $$("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 }), {
  1348. "id": "project",
  1349. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1350. "onresize": function() {}
  1351. }, {
  1352. closecallback: function() {}
  1353. }, { "style": { "height": "36px" } }).form; //创建窗体
  1354. _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); } }
  1355. break;
  1356. case "evaluate":
  1357. _formdiv = new U.UF.UI.form(
  1358. "学生评价",
  1359. $$("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 }), {
  1360. "id": "evaluate",
  1361. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1362. "onresize": function() {}
  1363. }, {
  1364. closecallback: function() {}
  1365. }, { "style": { "height": "36px" } }).form; //创建窗体
  1366. _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); } }
  1367. break;
  1368. case "notice":
  1369. _formdiv = new U.UF.UI.form(
  1370. "通知公告",
  1371. $$("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 }), {
  1372. "id": "notice",
  1373. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1374. "onresize": function() {}
  1375. }, {
  1376. closecallback: function() {}
  1377. }, { "style": { "height": "36px" } }).form; //创建窗体
  1378. _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); } }
  1379. break;
  1380. case "stuLibrary":
  1381. _formdiv = new U.UF.UI.form(
  1382. "学习资料",
  1383. $$("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 }), {
  1384. "id": "stuLibrary",
  1385. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1386. "onresize": function() {}
  1387. }, {
  1388. closecallback: function() {}
  1389. }, { "style": { "height": "36px" } }).form; //创建窗体
  1390. _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); } }
  1391. break;
  1392. case "program":
  1393. _formdiv = new U.UF.UI.form(
  1394. "编程平台",
  1395. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1396. "id": "program",
  1397. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1398. "onresize": function() {}
  1399. }, {
  1400. closecallback: function() {}
  1401. }, { "style": { "height": "36px" } }).form; //创建窗体
  1402. _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); } }
  1403. break;
  1404. case "whiteboard":
  1405. _formdiv = new U.UF.UI.form(
  1406. "电子白板",
  1407. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1408. "id": "whiteboard",
  1409. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1410. "onresize": function() {}
  1411. }, {
  1412. closecallback: function() {}
  1413. }, { "style": { "height": "36px" } }).form; //创建窗体
  1414. _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); } }
  1415. break;
  1416. case "investigation":
  1417. _formdiv = new U.UF.UI.form(
  1418. "问卷调查",
  1419. $$("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 }), {
  1420. "id": "investigation",
  1421. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1422. "onresize": function() {}
  1423. }, {
  1424. closecallback: function() {}
  1425. }, { "style": { "height": "36px" } }).form; //创建窗体
  1426. _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); } }
  1427. break;
  1428. case "mind":
  1429. _formdiv = new U.UF.UI.form(
  1430. "思维导图",
  1431. $$("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"
  1432. "id": "mind",
  1433. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1434. "onresize": function() {}
  1435. }, {
  1436. closecallback: function() {}
  1437. }, { "style": { "height": "36px" } }).form; //创建窗体
  1438. _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); } }
  1439. break;
  1440. case "doc":
  1441. // U.MD.D.I.isRoom();
  1442. _formdiv = new U.UF.UI.form(
  1443. "协同文档",
  1444. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1445. "id": "doc",
  1446. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1447. "onresize": function() {}
  1448. }, {
  1449. closecallback: function() {}
  1450. }, { "style": { "height": "36px" } }).form; //创建窗体
  1451. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  1452. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1453. })
  1454. _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); } }
  1455. break;
  1456. case "study":
  1457. _formdiv = new U.UF.UI.form(
  1458. "学习中心",
  1459. $$("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/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1460. "id": "study",
  1461. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1462. "onresize": function() {}
  1463. }, {
  1464. closecallback: function() {}
  1465. }, { "style": { "height": "36px" } }).form; //创建窗体
  1466. _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); } }
  1467. break;
  1468. case "mindNetwork": //好友打开
  1469. _formdiv = new U.UF.UI.form(
  1470. "思维网格",
  1471. $$("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 }), {
  1472. "id": "mindNetwork",
  1473. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1474. "onresize": function() {}
  1475. }, {
  1476. closecallback: function() {}
  1477. }, { "style": { "height": "36px" } }).form; //创建窗体
  1478. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1479. break;
  1480. case "train": //好友打开
  1481. _formdiv = new U.UF.UI.form(
  1482. "训练平台",
  1483. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1484. "id": "train",
  1485. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1486. "onresize": function() {}
  1487. }, {
  1488. closecallback: function() {}
  1489. }, { "style": { "height": "36px" } }).form; //创建窗体
  1490. _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); } }
  1491. break;
  1492. case "sys":
  1493. _formdiv = new U.UF.UI.form(
  1494. "目标管理",
  1495. $$("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 }), {
  1496. "id": "sys",
  1497. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1498. "onresize": function() {}
  1499. }, {
  1500. closecallback: function() {}
  1501. }, { "style": { "height": "36px" } }).form; //创建窗体
  1502. _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); } }
  1503. break;
  1504. case "courseDesign":
  1505. _formdiv = new U.UF.UI.form(
  1506. "课程设计",
  1507. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1508. "id": "courseDesign",
  1509. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1510. "onresize": function() {}
  1511. }, {
  1512. closecallback: function() {}
  1513. }, { "style": { "height": "36px" } }).form; //创建窗体
  1514. _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); } }
  1515. break;
  1516. }
  1517. } else if (!_type) {
  1518. switch (str) {
  1519. case "my":
  1520. _formdiv = new U.UF.UI.form(
  1521. "我的资料",
  1522. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  1523. "id": "my",
  1524. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1525. "onresize": function() {}
  1526. }, {
  1527. closecallback: function() {}
  1528. }, { "style": { "height": "36px" } }).form; //创建窗体
  1529. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1530. break;
  1531. }
  1532. }
  1533. switch (str) {
  1534. // AIprogram2 AI体验 aihub.cocorobo.cn
  1535. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  1536. // AIprogram AI编程 ai-blockly.cocorobo.cn
  1537. case "AIprogram2": //AI体验
  1538. _formdiv = new U.UF.UI.form(
  1539. "AI体验",
  1540. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  1541. "id": "AIprogram2",
  1542. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1543. "onresize": function() {}
  1544. }, {
  1545. closecallback: function() {}
  1546. }, { "style": { "height": "36px" } }).form; //创建窗体
  1547. _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); } }
  1548. break;
  1549. case "Pythonprogram": //python编程
  1550. _formdiv = new U.UF.UI.form(
  1551. "Python编程",
  1552. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  1553. "id": "Pythonprogram",
  1554. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1555. "onresize": function() {}
  1556. }, {
  1557. closecallback: function() {}
  1558. }, { "style": { "height": "36px" } }).form; //创建窗体
  1559. _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); } }
  1560. break;
  1561. case "AIprogram": //ai编程
  1562. _formdiv = new U.UF.UI.form(
  1563. "AI编程平台",
  1564. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  1565. "id": "AIprogram",
  1566. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1567. "onresize": function() {}
  1568. }, {
  1569. closecallback: function() {}
  1570. }, { "style": { "height": "36px" } }).form; //创建窗体
  1571. _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); } }
  1572. break;
  1573. case "resources": //国家教育
  1574. _formdiv = new U.UF.UI.form(
  1575. "国家教育",
  1576. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  1577. "id": "resources",
  1578. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1579. "onresize": function() {}
  1580. }, {
  1581. closecallback: function() {}
  1582. }, { "style": { "height": "36px" } }).form; //创建窗体
  1583. _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); } }
  1584. break;
  1585. case "codeEdit": //源码编辑
  1586. _formdiv = new U.UF.UI.form(
  1587. "源码编辑",
  1588. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  1589. "id": "codeEdit",
  1590. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1591. "onresize": function() {}
  1592. }, {
  1593. closecallback: function() {}
  1594. }, { "style": { "height": "36px" } }).form; //创建窗体
  1595. _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); } }
  1596. break; //
  1597. case "MindMap": //MindMap
  1598. _formdiv = new U.UF.UI.form(
  1599. "MindMap",
  1600. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  1601. "id": "MindMap",
  1602. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1603. "onresize": function() {}
  1604. }, {
  1605. closecallback: function() {}
  1606. }, { "style": { "height": "36px" } }).form; //创建窗体
  1607. _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); } }
  1608. break;
  1609. case "netWorkPanel": //netWorkPanel
  1610. _formdiv = new U.UF.UI.form(
  1611. "netWorkPanel",
  1612. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  1613. "id": "netWorkPanel",
  1614. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1615. "onresize": function() {}
  1616. }, {
  1617. closecallback: function() {}
  1618. }, { "style": { "height": "36px" } }).form; //创建窗体
  1619. _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); } }
  1620. break;
  1621. case "GeoGebra": //GeoGebra
  1622. _formdiv = new U.UF.UI.form(
  1623. "GeoGebra",
  1624. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  1625. "id": "GeoGebra",
  1626. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1627. "onresize": function() {}
  1628. }, {
  1629. closecallback: function() {}
  1630. }, { "style": { "height": "36px" } }).form; //创建窗体
  1631. _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); } }
  1632. break;
  1633. case "translation": //翻译
  1634. _formdiv = new U.UF.UI.form(
  1635. "翻译",
  1636. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  1637. "id": "translation",
  1638. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1639. "onresize": function() {}
  1640. }, {
  1641. closecallback: function() {}
  1642. }, { "style": { "height": "36px" } }).form; //创建窗体
  1643. _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); } }
  1644. break;
  1645. case "mohe": //魔盒
  1646. _formdiv = new U.UF.UI.form(
  1647. "魔盒识字",
  1648. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  1649. "id": "mohe",
  1650. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  1651. "onresize": function() {}
  1652. }, {
  1653. closecallback: function() {}
  1654. }, { "style": { "height": "36px" } }).form; //创建窗体
  1655. _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); } }
  1656. break;
  1657. case "24game": //24点
  1658. _formdiv = new U.UF.UI.form(
  1659. "24点",
  1660. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  1661. "id": "24game",
  1662. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  1663. "onresize": function() {}
  1664. }, {
  1665. closecallback: function() {}
  1666. }, { "style": { "height": "36px" } }).form; //创建窗体
  1667. _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); } }
  1668. break;
  1669. case "case":
  1670. _formdiv = new U.UF.UI.form(
  1671. "项目进展",
  1672. $$("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 }), {
  1673. "id": "case",
  1674. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1675. "onresize": function() {}
  1676. }, {
  1677. closecallback: function() {}
  1678. }, { "style": { "height": "36px" } }).form; //创建窗体
  1679. _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); } }
  1680. break;
  1681. case "snf":
  1682. _formdiv = new U.UF.UI.form(
  1683. "赛诺梵",
  1684. $$("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" }), {
  1685. "id": "snf",
  1686. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1687. "onresize": function() {}
  1688. }, {
  1689. closecallback: function() {}
  1690. }, { "style": { "height": "36px" } }).form; //创建窗体
  1691. _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); } }
  1692. break;
  1693. case "hanFamily":
  1694. _formdiv = new U.UF.UI.form(
  1695. "汉字家族",
  1696. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  1697. "id": "hanFamily",
  1698. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1699. "onresize": function() {}
  1700. }, {
  1701. closecallback: function() {}
  1702. }, { "style": { "height": "36px" } }).form; //创建窗体
  1703. _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); } }
  1704. break;
  1705. case "hanClassics":
  1706. _formdiv = new U.UF.UI.form(
  1707. "国学经典",
  1708. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  1709. "id": "hanClassics",
  1710. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1711. "onresize": function() {}
  1712. }, {
  1713. closecallback: function() {}
  1714. }, { "style": { "height": "36px" } }).form; //创建窗体
  1715. _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); } }
  1716. break;
  1717. case "hanTraining":
  1718. _formdiv = new U.UF.UI.form(
  1719. "笔画训练",
  1720. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  1721. "id": "hanTraining",
  1722. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1723. "onresize": function() {}
  1724. }, {
  1725. closecallback: function() {}
  1726. }, { "style": { "height": "36px" } }).form; //创建窗体
  1727. _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); } }
  1728. break;
  1729. case "hanClass":
  1730. _formdiv = new U.UF.UI.form(
  1731. "书法课堂",
  1732. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  1733. "id": "hanClass",
  1734. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1735. "onresize": function() {}
  1736. }, {
  1737. closecallback: function() {}
  1738. }, { "style": { "height": "36px" } }).form; //创建窗体
  1739. _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); } }
  1740. break;
  1741. case "han":
  1742. _formdiv = new U.UF.UI.form(
  1743. "汉字宫",
  1744. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  1745. "id": "han",
  1746. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1747. "onresize": function() {}
  1748. }, {
  1749. closecallback: function() {}
  1750. }, { "style": { "height": "36px" } }).form; //创建窗体
  1751. _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); } }
  1752. break;
  1753. // projectGM
  1754. case "projectGM": //项目管理
  1755. _formdiv = new U.UF.UI.form(
  1756. "项目管理",
  1757. $$("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 }), {
  1758. "id": "projectGM",
  1759. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1760. "onresize": function() {}
  1761. }, {
  1762. closecallback: function() {}
  1763. }, { "style": { "height": "36px" } }).form; //创建窗体
  1764. _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); } }
  1765. break;
  1766. // studyGM
  1767. // studentGM
  1768. // evaluateGM
  1769. // classGM
  1770. // dataGM
  1771. // caseGM
  1772. // meterialGM
  1773. // evaluateSGM
  1774. }
  1775. //U.MD.D.I.openClick(str);
  1776. //如果有任务栏信息
  1777. if (_taskbar) {
  1778. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  1779. }
  1780. }
  1781. // U.MD.D.I.openClick = function(str){
  1782. // var click = '';
  1783. // switch(str){
  1784. // case 'friend':
  1785. // click = '我的好友';
  1786. // break;
  1787. // case 'domain':
  1788. // click = '域名管理';
  1789. // break;
  1790. // case 'disk':
  1791. // click = '我的云盘';
  1792. // break;
  1793. // case 'word':
  1794. // click = 'Word';
  1795. // break;
  1796. // case 'excel':
  1797. // click = 'Execl';
  1798. // break;
  1799. // case 'txt':
  1800. // click = '文本文件';
  1801. // break;
  1802. // case 'lookupFriend':
  1803. // click = '查找好友';
  1804. // break;
  1805. // case 'ftp':
  1806. // click = 'FTP';
  1807. // break;
  1808. // case 'group':
  1809. // click = '群组';
  1810. // break;
  1811. // case 'set':
  1812. // click = '我的设置';
  1813. // break;
  1814. // case 'systemSet':
  1815. // click = '系统设置';
  1816. // break;
  1817. // case 'boomYun':
  1818. // click = '互联办公';
  1819. // break;
  1820. // case 'xz':
  1821. // click = '云端下载';
  1822. // break;
  1823. // case 'client':
  1824. // click = '有思浏览器';
  1825. // break;
  1826. // case 'backEndProgramming':
  1827. // click = '在线后台编程';
  1828. // break;
  1829. // case 'frontEndProgramming':
  1830. // click = '在线前端编程';
  1831. // break;
  1832. // default: break;
  1833. // }
  1834. // if(U.MD.D.I.Ip && click){
  1835. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  1836. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  1837. // })
  1838. // }
  1839. // }
  1840. /**
  1841. *函数作用:ajax简易函数,使用post格式
  1842. *@param url {data} 后台地址
  1843. *@param data {data} 参数json
  1844. *@param fn {data} 回调函数
  1845. *
  1846. */
  1847. // U.MD.D.I.Mysqlrequest = function(url,fn){
  1848. // var xhr = new XMLHttpRequest();
  1849. // xhr.open("GET",url,true);
  1850. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  1851. // xhr.onreadystatechange = function(){
  1852. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  1853. // fn.call(this,xhr.responseText);
  1854. // }
  1855. // };
  1856. // xhr.send();
  1857. // }
  1858. /*判断是否是内网IP*/
  1859. // U.MD.D.I.isInnerIPFn = function(str){
  1860. // var curPageUrl = str;
  1861. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  1862. // curPageUrl =curPageUrl.replace(reg1,'');
  1863. // // console.log('curPageUrl-1 '+curPageUrl);
  1864. // var reg2 = /\:+/g;//替换冒号为一点
  1865. // curPageUrl =curPageUrl.replace(reg2,'.');
  1866. // // console.log('curPageUrl-2 '+curPageUrl);
  1867. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  1868. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  1869. // if(curPageUrl[2] != '16'){
  1870. // return ipAddress;
  1871. // }else{
  1872. // return false;
  1873. // }
  1874. // }
  1875. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  1876. // //compatibility for firefox and chrome
  1877. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  1878. // var pc = new myPeerConnection({
  1879. // iceServers: []
  1880. // }),
  1881. // noop = function() {},
  1882. // localIPs = {},
  1883. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  1884. // key;
  1885. // function iterateIP(ip) {
  1886. // if (!localIPs[ip]) onNewIP(ip);
  1887. // localIPs[ip] = true;
  1888. // }
  1889. // //create a bogus data channel
  1890. // pc.createDataChannel("");
  1891. // // create offer and set local description
  1892. // pc.createOffer().then(function(sdp) {
  1893. // sdp.sdp.split('\n').forEach(function(line) {
  1894. // if (line.indexOf('candidate') < 0) return;
  1895. // line.match(ipRegex).forEach(iterateIP);
  1896. // });
  1897. // pc.setLocalDescription(sdp, noop, noop);
  1898. // }).catch(function(reason) {
  1899. // // An error occurred, so handle the failure to connect
  1900. // });
  1901. // //sten for candidate events
  1902. // pc.onicecandidate = function(ice) {
  1903. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  1904. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  1905. // };
  1906. // }
  1907. // U.MD.D.I.getUserIpBool = function(callback){
  1908. // U.MD.D.I.getUserIP(function(ip){
  1909. // alert("Got IP! :" + ip);
  1910. // });
  1911. //}
  1912. //#endregion
  1913. U.MD.D.I.openApplicationJie = function(str, cid, stage, task, tool) {
  1914. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1915. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1916. _userinfo = US.userInfo, //登录用户信息
  1917. _userid = US.userInfo.userid //登录用户id
  1918. let _iframe;
  1919. var _jie = $$("div", {
  1920. "style": {
  1921. "position": "absolute",
  1922. "bottom": "50px",
  1923. "right": "50px",
  1924. "zIndex": "9999",
  1925. "backgroundColor": "#2268bc",
  1926. "color": "#fff",
  1927. "padding": "12px 20px",
  1928. "cursor": "pointer",
  1929. "borderRadius": "4px",
  1930. },
  1931. "innerHTML": "提交作业"
  1932. })
  1933. let _loading = document.createElement('div')
  1934. _loading.style = "width:100%;height:100%;background:#0000008f;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
  1935. // _loading.id = "";
  1936. let _lchild = document.createElement('div')
  1937. let _limg = document.createElement('img')
  1938. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  1939. _limg.style = "width: 26px;margin-right: 10px;"
  1940. _lchild.appendChild(_limg)
  1941. let _lspan = document.createElement('span')
  1942. _lspan.innerHTML = "上传中..."
  1943. _lchild.appendChild(_lspan)
  1944. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  1945. _loading.appendChild(_lchild)
  1946. var _box = $$('div', {
  1947. "style": {
  1948. "position": "relative",
  1949. "width": "100%",
  1950. "height": "100%",
  1951. },
  1952. })
  1953. _box.appendChild(_loading)
  1954. _box.id = str + '_loadLi'
  1955. switch (str) {
  1956. case "whiteboard":
  1957. _iframe = $$("iframe", {
  1958. "frameborder": "no",
  1959. "border": "0",
  1960. "scrolling ": "no",
  1961. "style": {
  1962. "cssText": "border:0;width:100%;height:100%"
  1963. },
  1964. "src": "https://iwb.cocorobo.cn/"
  1965. })
  1966. _box.appendChild(_iframe);
  1967. _box.appendChild(_jie);
  1968. _formdiv = new U.UF.UI.form(
  1969. "电子白板",
  1970. _box, {
  1971. "id": "whiteboard",
  1972. "style": {
  1973. "width": "90%",
  1974. "height": "90%",
  1975. "overflow": 'hidden'
  1976. },
  1977. "onresize": function() {}
  1978. }, {
  1979. closecallback: function() {}
  1980. }, {
  1981. "style": {
  1982. "height": "36px"
  1983. }
  1984. }).form; //创建窗体
  1985. _taskbar = {
  1986. "id": str + _formdiv.id,
  1987. "style": {
  1988. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  1989. },
  1990. "name": "电子白板",
  1991. "forms": _formdiv,
  1992. "click": function() {
  1993. U.MD.D.I.openApplication(str, obj, info);
  1994. }
  1995. }
  1996. break;
  1997. case "mind":
  1998. _iframe = $$("iframe", {
  1999. "frameborder": "no",
  2000. "border": "0",
  2001. "scrolling ": "no",
  2002. "style": {
  2003. "cssText": "border:0;width:100%;height:100%"
  2004. },
  2005. "src": "/kityminder-editor/dist/index.html"
  2006. })
  2007. _box.appendChild(_iframe);
  2008. _box.appendChild(_jie);
  2009. _formdiv = new U.UF.UI.form(
  2010. "思维导图",
  2011. _box, { //"/jsmind/example/demo.html"
  2012. "id": "mind",
  2013. "style": {
  2014. "width": "90%",
  2015. "height": "90%",
  2016. "overflow": 'hidden'
  2017. },
  2018. "onresize": function() {}
  2019. }, {
  2020. closecallback: function() {}
  2021. }, {
  2022. "style": {
  2023. "height": "36px"
  2024. }
  2025. }).form; //创建窗体
  2026. _taskbar = {
  2027. "id": str + _formdiv.id,
  2028. "style": {
  2029. "backgroundImage": "url(/img/icon/mindMapping.png)"
  2030. },
  2031. "name": "思维导图",
  2032. "forms": _formdiv,
  2033. "click": function() {
  2034. U.MD.D.I.openApplication(str, obj, info);
  2035. }
  2036. }
  2037. break;
  2038. case "MindMap":
  2039. _iframe = $$("iframe", {
  2040. "frameborder": "no",
  2041. "border": "0",
  2042. "scrolling ": "no",
  2043. "style": {
  2044. "cssText": "border:0;width:100%;height:100%"
  2045. },
  2046. "src": "//cloud.cocorobo.cn/mind/"
  2047. })
  2048. _box.appendChild(_iframe);
  2049. _box.appendChild(_jie);
  2050. _formdiv = new U.UF.UI.form(
  2051. "思维导图",
  2052. _box, { //"/jsmind/example/demo.html"
  2053. "id": "mind",
  2054. "style": {
  2055. "width": "90%",
  2056. "height": "90%",
  2057. "overflow": 'hidden'
  2058. },
  2059. "onresize": function() {}
  2060. }, {
  2061. closecallback: function() {}
  2062. }, {
  2063. "style": {
  2064. "height": "36px"
  2065. }
  2066. }).form; //创建窗体
  2067. _taskbar = {
  2068. "id": str + _formdiv.id,
  2069. "style": {
  2070. "backgroundImage": "url(/img/icon/mindMapping.png)"
  2071. },
  2072. "name": "思维导图",
  2073. "forms": _formdiv,
  2074. "click": function() {
  2075. U.MD.D.I.openApplication(str, obj, info);
  2076. }
  2077. }
  2078. break;
  2079. case "doc":
  2080. _iframe = $$("iframe", {
  2081. "frameborder": "no",
  2082. "border": "0",
  2083. "scrolling ": "no",
  2084. "style": {
  2085. "cssText": "border:0;width:100%;height:100%"
  2086. },
  2087. "src": "/Office/Word/WordEditArea.htm"
  2088. })
  2089. _box.appendChild(_iframe);
  2090. _box.appendChild(_jie);
  2091. _formdiv = new U.UF.UI.form(
  2092. "协同文档",
  2093. _box, {
  2094. "id": "doc",
  2095. "style": {
  2096. "width": "90%",
  2097. "height": "90%",
  2098. "overflow": 'hidden'
  2099. },
  2100. "onresize": function() {}
  2101. }, {
  2102. closecallback: function() {}
  2103. }, {
  2104. "style": {
  2105. "height": "36px"
  2106. }
  2107. }).form; //创建窗体
  2108. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  2109. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2110. })
  2111. _taskbar = {
  2112. "id": str + _formdiv.id,
  2113. "style": {
  2114. "backgroundImage": "url(/img/icon/doc.png)"
  2115. },
  2116. "name": "协同文档",
  2117. "forms": _formdiv,
  2118. "click": function() {
  2119. U.MD.D.I.openApplication(str, obj, info);
  2120. }
  2121. }
  2122. break;
  2123. case "mindNetwork": //好友打开
  2124. _iframe = $$("iframe", {
  2125. "webkitallowfullscreen": "",
  2126. "mozallowfullscreen": "",
  2127. "allowfullscreen": "",
  2128. "frameborder": "no",
  2129. "border": "0",
  2130. "scrolling ": "no",
  2131. "style": {
  2132. "cssText": "border:0; width:100%; height:100%;"
  2133. },
  2134. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  2135. })
  2136. _box.appendChild(_iframe);
  2137. _box.appendChild(_jie);
  2138. _formdiv = new U.UF.UI.form(
  2139. "思维网格",
  2140. _box, {
  2141. "id": "mindNetwork",
  2142. "style": {
  2143. "width": "90%",
  2144. "height": "90%",
  2145. "overflow": 'hidden'
  2146. },
  2147. "onresize": function() {}
  2148. }, {
  2149. closecallback: function() {}
  2150. }, {
  2151. "style": {
  2152. "height": "36px"
  2153. }
  2154. }).form; //创建窗体
  2155. _taskbar = {
  2156. "id": str + _formdiv.id,
  2157. "style": {
  2158. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  2159. },
  2160. "name": "思维网格",
  2161. "forms": _formdiv,
  2162. "click": function() {
  2163. U.MD.D.I.openApplication(str, obj, info);
  2164. }
  2165. }
  2166. break;
  2167. case "courseDesign":
  2168. _iframe = $$("iframe", {
  2169. "webkitallowfullscreen": "",
  2170. "mozallowfullscreen": "",
  2171. "allowfullscreen": "",
  2172. "frameborder": "no",
  2173. "border": "0",
  2174. "scrolling ": "no",
  2175. "style": {
  2176. "cssText": "border:0; width:100%; height:100%;"
  2177. },
  2178. "src": "/course-design-vue"
  2179. })
  2180. _box.appendChild(_iframe);
  2181. _box.appendChild(_jie);
  2182. _formdiv = new U.UF.UI.form(
  2183. "课程设计",
  2184. _box, {
  2185. "id": "courseDesign",
  2186. "style": {
  2187. "width": "90%",
  2188. "height": "90%",
  2189. "overflow": 'hidden'
  2190. },
  2191. "onresize": function() {}
  2192. }, {
  2193. closecallback: function() {}
  2194. }, {
  2195. "style": {
  2196. "height": "36px"
  2197. }
  2198. }).form; //创建窗体
  2199. _taskbar = {
  2200. "id": str + _formdiv.id,
  2201. "style": {
  2202. "backgroundImage": "url(/img/icon/courseDesign.png)"
  2203. },
  2204. "name": "课程设计",
  2205. "forms": _formdiv,
  2206. "click": function() {
  2207. U.MD.D.I.openApplication(str, obj, info);
  2208. }
  2209. }
  2210. break;
  2211. }
  2212. const script1 = document.createElement("script");
  2213. script1.type = "text/javascript";
  2214. script1.src =
  2215. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  2216. const script2 = document.createElement("script");
  2217. script2.type = "text/javascript";
  2218. script2.src =
  2219. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  2220. const script3 = document.createElement("script");
  2221. script3.type = "text/javascript";
  2222. script3.charset = "UTF-8";
  2223. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  2224. const script4 = document.createElement("script");
  2225. script4.type = "text/javascript";
  2226. script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  2227. if (_iframe) {
  2228. if (str == 'doc') {
  2229. U.UF.DL.iframeLoad(_iframe, function() {
  2230. _iframe.contentWindow.U.MD.O.W.load();
  2231. _iframe.contentWindow.document.body.appendChild(script1);
  2232. _iframe.contentWindow.document.body.appendChild(script2);
  2233. // _iframe.contentWindow.document.body.appendChild(script3);
  2234. _iframe.contentWindow.document.body.appendChild(script4);
  2235. })
  2236. } else if (str == 'courseDesign') {
  2237. U.UF.DL.iframeLoad(_iframe, function() {
  2238. // _iframe.contentWindow.U.MD.O.W.load();
  2239. // _iframe.contentWindow.document.body.appendChild(script1);
  2240. _iframe.contentWindow.document.body.appendChild(script2);
  2241. _iframe.contentWindow.document.body.appendChild(script4);
  2242. })
  2243. } else {
  2244. _iframe.onload = () => {
  2245. _iframe.contentWindow.document.body.appendChild(script1);
  2246. _iframe.contentWindow.document.body.appendChild(script2);
  2247. // _iframe.contentWindow.document.body.appendChild(script3);
  2248. _iframe.contentWindow.document.body.appendChild(script4);
  2249. };
  2250. }
  2251. _jie.onclick = () => {
  2252. _loading.style.display = 'flex'
  2253. console.log(_loading);
  2254. var _ajs = _iframe.contentWindow.document.createElement("script");
  2255. _ajs.type = "text/javascript";
  2256. _ajs.innerHTML =
  2257. // 'console.log(' + _loading + ');\n' +
  2258. 'var _js = document.createElement("script");\n' +
  2259. '_js.type="text/javascript";\n' +
  2260. '_js.charset="UTF-8";\n' +
  2261. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  2262. "_js.onload = function(){\n" +
  2263. ' var a = document.getElementsByTagName("img")\n' +
  2264. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  2265. " html2canvas(document.body,{allowTaint: true,useCORS: true}).then(canvas => {\n" +
  2266. '  var base64Url = canvas.toDataURL("image/png");\n' +
  2267. 'var base64 = "<img src=" + base64Url + " />"\n' +
  2268. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  2269. "beforeUpload_shishi(file," +
  2270. "'" +
  2271. _userid +
  2272. "'" +
  2273. ", " +
  2274. "'" +
  2275. cid +
  2276. "'" +
  2277. ", " +
  2278. "'" +
  2279. stage +
  2280. "'" +
  2281. ", " +
  2282. "'" +
  2283. task +
  2284. "'" +
  2285. ", " +
  2286. "'" +
  2287. tool +
  2288. "'" +
  2289. ", " +
  2290. "'" +
  2291. str + '_loadLi' +
  2292. "'" +
  2293. ")\n" +
  2294. " });\n" +
  2295. "}\n" +
  2296. "document.head.appendChild(_js);\n";
  2297. _iframe.contentWindow.document.head.appendChild(_ajs);
  2298. }
  2299. }
  2300. //U.MD.D.I.openClick(str);
  2301. //如果有任务栏信息
  2302. if (_taskbar) {
  2303. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2304. }
  2305. }