DeskTop.js 126 KB

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