DeskTop.js 133 KB

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