DeskTop.js 139 KB

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