DeskTop.js 109 KB

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