DeskTop.js 110 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905
  1. /*
  2. 此处为桌面系统启动应用区域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面应用处理
  5. //判断图片是否在拖拽,如果是拖拽图标的过程是不会打开图片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教师桌面图标的全局变量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  15. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  16. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  17. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  18. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  19. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  20. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  21. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  22. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  23. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  24. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  25. { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  26. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  27. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  28. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  29. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  30. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  31. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  32. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  33. ];
  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": "my", "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": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  47. { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  48. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.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": "sys", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  66. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  67. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.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. } else if (e.data.tools && e.data.tools == "21") {
  437. U.MD.D.I.openApplication("program")
  438. } else if (e.data.tools && e.data.tools == "22") {
  439. U.MD.D.I.openApplication("AIprogram2")
  440. } else if (e.data.tools && e.data.tools == "23") {
  441. U.MD.D.I.openApplication("Pythonprogram")
  442. } else if (e.data.tools && e.data.tools == "24") {
  443. U.MD.D.I.openApplication("AIprogram")
  444. }
  445. });
  446. U.MD.D.I.selectUser = function() {
  447. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function(res) { //US.userInfo.userid
  448. if (res.value[0].length > 0) {
  449. US.userInfo = res.value[0][0];
  450. $(".userName")[0].innerHTML = US.userInfo.username;
  451. }
  452. }, [], { "type": "GET", "withCredentials": true });
  453. }
  454. U.MD.D.I.openInApplication = function(str, data) {
  455. var _userinfo = US.userInfo, //登录用户信息
  456. _userid = US.userInfo.userid, //登录用户id
  457. _oid = _userinfo.organizeid,
  458. _type = US.userInfo.type,
  459. _classId = US.userInfo.classid;
  460. switch (str) {
  461. case "studyDetail":
  462. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  463. setTimeout(() => {
  464. U.MD.U.L.login();
  465. }, 2000);
  466. } else {
  467. _formdiv = new U.UF.UI.form(
  468. "项目详情",
  469. $$("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+ "&cid=" + _classId }), {
  470. "id": "studyDetail",
  471. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  472. "onresize": function() {}
  473. }, {
  474. closecallback: function() {}
  475. }, { "style": { "height": "36px" } }).form; //创建窗体
  476. _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); } }
  477. break;
  478. }
  479. }
  480. }
  481. U.MD.D.I.openApplication = function(str, obj, info) {
  482. obj = obj || {};
  483. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  484. _formdiv, //创建任务栏时同时弹出的窗体元素。
  485. _userinfo = US.userInfo, //登录用户信息
  486. _userid = obj.userid || US.userInfo.userid, //登录用户id
  487. _oid = obj.organizeid || _userinfo.organizeid,
  488. _type = US.userInfo.type,
  489. _classId = US.userInfo.classid;
  490. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  491. switch (str) {
  492. case "studnetProject": //好友打开
  493. _formdiv = new U.UF.UI.form(
  494. "我的项目",
  495. $$("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 }), {
  496. "id": "studnetProject",
  497. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  498. "onresize": function() {}
  499. }, {
  500. closecallback: function() {}
  501. }, { "style": { "height": "36px" } }).form; //创建窗体
  502. _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); } }
  503. break;
  504. case "studentEvaluate": //好友打开
  505. _formdiv = new U.UF.UI.form(
  506. "我的评价",
  507. $$("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 }), {
  508. "id": "studentEvaluate",
  509. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  510. "onresize": function() {}
  511. }, {
  512. closecallback: function() {}
  513. }, { "style": { "height": "36px" } }).form; //创建窗体
  514. _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); } }
  515. break;
  516. case "my":
  517. _formdiv = new U.UF.UI.form(
  518. "我的资料",
  519. $$("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 }), {
  520. "id": "my",
  521. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  522. "onresize": function() {}
  523. }, {
  524. closecallback: function() {}
  525. }, { "style": { "height": "36px" } }).form; //创建窗体
  526. _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); } }
  527. break;
  528. case "program":
  529. _formdiv = new U.UF.UI.form(
  530. "编程平台",
  531. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  532. "id": "program",
  533. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  534. "onresize": function() {}
  535. }, {
  536. closecallback: function() {}
  537. }, { "style": { "height": "36px" } }).form; //创建窗体
  538. _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); } }
  539. break;
  540. case "library":
  541. _formdiv = new U.UF.UI.form(
  542. "素材库",
  543. $$("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 }), {
  544. "id": "library",
  545. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  546. "onresize": function() {}
  547. }, {
  548. closecallback: function() {}
  549. }, { "style": { "height": "36px" } }).form; //创建窗体
  550. _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); } }
  551. break;
  552. case "whiteboard":
  553. _formdiv = new U.UF.UI.form(
  554. "电子白板",
  555. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  556. "id": "whiteboard",
  557. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  558. "onresize": function() {}
  559. }, {
  560. closecallback: function() {}
  561. }, { "style": { "height": "36px" } }).form; //创建窗体
  562. _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); } }
  563. break;
  564. case "investigation":
  565. _formdiv = new U.UF.UI.form(
  566. "问卷调查",
  567. $$("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 }), {
  568. "id": "investigation",
  569. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  570. "onresize": function() {}
  571. }, {
  572. closecallback: function() {}
  573. }, { "style": { "height": "36px" } }).form; //创建窗体
  574. _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); } }
  575. break;
  576. case "note":
  577. _formdiv = new U.UF.UI.form(
  578. "便签分类",
  579. $$("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 }), {
  580. "id": "note",
  581. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  582. "onresize": function() {}
  583. }, {
  584. closecallback: function() {}
  585. }, { "style": { "height": "36px" } }).form; //创建窗体
  586. _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); } }
  587. break;
  588. // case "score":
  589. // _formdiv = new U.UF.UI.form(
  590. // "量规评分",
  591. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  592. // "id": "score",
  593. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  594. // "onresize": function() {}
  595. // }, {
  596. // closecallback: function() {}
  597. // }, { "style": { "height": "36px" } }).form; //创建窗体
  598. // _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); } }
  599. // break;
  600. case "mind":
  601. _formdiv = new U.UF.UI.form(
  602. "思维导图",
  603. $$("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"
  604. "id": "mind",
  605. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  606. "onresize": function() {}
  607. }, {
  608. closecallback: function() {}
  609. }, { "style": { "height": "36px" } }).form; //创建窗体
  610. _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); } }
  611. break;
  612. case "doc":
  613. // U.MD.D.I.isRoom();
  614. _formdiv = new U.UF.UI.form(
  615. "协同文档",
  616. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.kdocs.cn/latest?from=docs" }), { //"/Office/Word/WordEditArea.htm"
  617. "id": "doc",
  618. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  619. "onresize": function() {}
  620. }, {
  621. closecallback: function() {}
  622. }, { "style": { "height": "36px" } }).form; //创建窗体
  623. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  624. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  625. // })
  626. _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); } }
  627. break;
  628. case "studentStudy":
  629. _formdiv = new U.UF.UI.form(
  630. "学习中心",
  631. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  632. "id": "studentStudy",
  633. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  634. "onresize": function() {}
  635. }, {
  636. closecallback: function() {}
  637. }, { "style": { "height": "36px" } }).form; //创建窗体
  638. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  639. break;
  640. case "train": //好友打开
  641. _formdiv = new U.UF.UI.form(
  642. "训练平台",
  643. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  644. "id": "mindNetwork",
  645. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  646. "onresize": function() {}
  647. }, {
  648. closecallback: function() {}
  649. }, { "style": { "height": "36px" } }).form; //创建窗体
  650. _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); } }
  651. break;
  652. case "mindNetwork": //好友打开
  653. _formdiv = new U.UF.UI.form(
  654. "思维网格",
  655. $$("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 }), {
  656. "id": "mindNetwork",
  657. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  658. "onresize": function() {}
  659. }, {
  660. closecallback: function() {}
  661. }, { "style": { "height": "36px" } }).form; //创建窗体
  662. _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); } }
  663. break;
  664. case "studentClassRoom": //好友打开
  665. _formdiv = new U.UF.UI.form(
  666. "实时课堂",
  667. $$("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 }), {
  668. "id": "studentClassRoom",
  669. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  670. "onresize": function() {}
  671. }, {
  672. closecallback: function() {}
  673. }, { "style": { "height": "36px" } }).form; //创建窗体
  674. _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); } }
  675. setTimeout(() => {
  676. U.UF.F.windowZooming(_formdiv)
  677. }, 0);
  678. break;
  679. }
  680. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  681. switch (str) {
  682. case "studnetProject": //好友打开
  683. _formdiv = new U.UF.UI.form(
  684. "我的项目",
  685. $$("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 }), {
  686. "id": "studnetProject",
  687. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  688. "onresize": function() {}
  689. }, {
  690. closecallback: function() {}
  691. }, { "style": { "height": "36px" } }).form; //创建窗体
  692. _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); } }
  693. break;
  694. case "studentEvaluate": //好友打开
  695. _formdiv = new U.UF.UI.form(
  696. "我的评价",
  697. $$("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 }), {
  698. "id": "studentEvaluate",
  699. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  700. "onresize": function() {}
  701. }, {
  702. closecallback: function() {}
  703. }, { "style": { "height": "36px" } }).form; //创建窗体
  704. _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); } }
  705. break;
  706. case "my":
  707. _formdiv = new U.UF.UI.form(
  708. "我的资料",
  709. $$("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 }), {
  710. "id": "my",
  711. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  712. "onresize": function() {}
  713. }, {
  714. closecallback: function() {}
  715. }, { "style": { "height": "36px" } }).form; //创建窗体
  716. _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); } }
  717. break;
  718. case "program":
  719. _formdiv = new U.UF.UI.form(
  720. "编程平台",
  721. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  722. "id": "program",
  723. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  724. "onresize": function() {}
  725. }, {
  726. closecallback: function() {}
  727. }, { "style": { "height": "36px" } }).form; //创建窗体
  728. _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); } }
  729. break;
  730. case "library":
  731. _formdiv = new U.UF.UI.form(
  732. "素材库",
  733. $$("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 }), {
  734. "id": "library",
  735. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  736. "onresize": function() {}
  737. }, {
  738. closecallback: function() {}
  739. }, { "style": { "height": "36px" } }).form; //创建窗体
  740. _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); } }
  741. break;
  742. case "whiteboard":
  743. _formdiv = new U.UF.UI.form(
  744. "电子白板",
  745. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  746. "id": "whiteboard",
  747. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  748. "onresize": function() {}
  749. }, {
  750. closecallback: function() {}
  751. }, { "style": { "height": "36px" } }).form; //创建窗体
  752. _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); } }
  753. break;
  754. case "investigation":
  755. _formdiv = new U.UF.UI.form(
  756. "问卷调查",
  757. $$("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 }), {
  758. "id": "investigation",
  759. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  760. "onresize": function() {}
  761. }, {
  762. closecallback: function() {}
  763. }, { "style": { "height": "36px" } }).form; //创建窗体
  764. _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); } }
  765. break;
  766. case "note":
  767. _formdiv = new U.UF.UI.form(
  768. "便签分类",
  769. $$("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 }), {
  770. "id": "note",
  771. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  772. "onresize": function() {}
  773. }, {
  774. closecallback: function() {}
  775. }, { "style": { "height": "36px" } }).form; //创建窗体
  776. _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); } }
  777. break;
  778. // case "score":
  779. // _formdiv = new U.UF.UI.form(
  780. // "量规评分",
  781. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  782. // "id": "score",
  783. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  784. // "onresize": function() {}
  785. // }, {
  786. // closecallback: function() {}
  787. // }, { "style": { "height": "36px" } }).form; //创建窗体
  788. // _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); } }
  789. // break;
  790. case "mind":
  791. _formdiv = new U.UF.UI.form(
  792. "思维导图",
  793. $$("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"
  794. "id": "mind",
  795. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  796. "onresize": function() {}
  797. }, {
  798. closecallback: function() {}
  799. }, { "style": { "height": "36px" } }).form; //创建窗体
  800. _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); } }
  801. break;
  802. case "doc":
  803. // U.MD.D.I.isRoom();
  804. _formdiv = new U.UF.UI.form(
  805. "协同文档",
  806. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.kdocs.cn/latest?from=docs" }), {
  807. "id": "doc",
  808. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  809. "onresize": function() {}
  810. }, {
  811. closecallback: function() {}
  812. }, { "style": { "height": "36px" } }).form; //创建窗体
  813. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  814. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  815. // })
  816. _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); } }
  817. break;
  818. case "train": //好友打开
  819. _formdiv = new U.UF.UI.form(
  820. "训练平台",
  821. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  822. "id": "mindNetwork",
  823. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  824. "onresize": function() {}
  825. }, {
  826. closecallback: function() {}
  827. }, { "style": { "height": "36px" } }).form; //创建窗体
  828. _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); } }
  829. break;
  830. case "studentStudy":
  831. _formdiv = new U.UF.UI.form(
  832. "学习中心",
  833. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  834. "id": "studentStudy",
  835. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  836. "onresize": function() {}
  837. }, {
  838. closecallback: function() {}
  839. }, { "style": { "height": "36px" } }).form; //创建窗体
  840. _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); } }
  841. break;
  842. case "mindNetwork": //好友打开
  843. _formdiv = new U.UF.UI.form(
  844. "思维网格",
  845. $$("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 }), {
  846. "id": "mindNetwork",
  847. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  848. "onresize": function() {}
  849. }, {
  850. closecallback: function() {}
  851. }, { "style": { "height": "36px" } }).form; //创建窗体
  852. _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); } }
  853. break;
  854. case "studentClassRoom": //好友打开
  855. _formdiv = new U.UF.UI.form(
  856. "实时课堂",
  857. $$("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 }), {
  858. "id": "studentClassRoom",
  859. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  860. "onresize": function() {}
  861. }, {
  862. closecallback: function() {}
  863. }, { "style": { "height": "36px" } }).form; //创建窗体
  864. _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); } }
  865. setTimeout(() => {
  866. U.UF.F.windowZooming(_formdiv)
  867. }, 0);
  868. break;
  869. }
  870. } else if (_type == 1 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  871. //选择应用处理
  872. switch (str) {
  873. case "project": //好友打开
  874. _formdiv = new U.UF.UI.form(
  875. "项目管理",
  876. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid }), {
  877. "id": "project",
  878. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  879. "onresize": function() {}
  880. }, {
  881. closecallback: function() {}
  882. }, { "style": { "height": "36px" } }).form; //创建窗体
  883. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "项目管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  884. break;
  885. case "student":
  886. _formdiv = new U.UF.UI.form(
  887. "学生管理",
  888. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId }), {
  889. "id": "student",
  890. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  891. "onresize": function() {}
  892. }, {
  893. closecallback: function() {}
  894. }, { "style": { "height": "36px" } }).form; //创建窗体
  895. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  896. break;
  897. case "evaluate":
  898. _formdiv = new U.UF.UI.form(
  899. "学生评价",
  900. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
  901. "id": "evaluate",
  902. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  903. "onresize": function() {}
  904. }, {
  905. closecallback: function() {}
  906. }, { "style": { "height": "36px" } }).form; //创建窗体
  907. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  908. break;
  909. case "sys":
  910. _formdiv = new U.UF.UI.form(
  911. "目标管理",
  912. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid }), {
  913. "id": "sys",
  914. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  915. "onresize": function() {}
  916. }, {
  917. closecallback: function() {}
  918. }, { "style": { "height": "36px" } }).form; //创建窗体
  919. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "目标管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  920. break;
  921. case "courseDesign":
  922. _formdiv = new U.UF.UI.form(
  923. "课程设计",
  924. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design/index.html" }), {
  925. "id": "courseDesign",
  926. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  927. "onresize": function() {}
  928. }, {
  929. closecallback: function() {}
  930. }, { "style": { "height": "36px" } }).form; //创建窗体
  931. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "课程设计", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  932. break;
  933. case "program":
  934. _formdiv = new U.UF.UI.form(
  935. "编程平台",
  936. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  937. "id": "program",
  938. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  939. "onresize": function() {}
  940. }, {
  941. closecallback: function() {}
  942. }, { "style": { "height": "36px" } }).form; //创建窗体
  943. _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); } }
  944. break;
  945. case "class":
  946. _formdiv = new U.UF.UI.form(
  947. "班级管理",
  948. $$("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 }), {
  949. "id": "class",
  950. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  951. "onresize": function() {}
  952. }, {
  953. closecallback: function() {}
  954. }, { "style": { "height": "36px" } }).form; //创建窗体
  955. _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); } }
  956. break;
  957. case "my":
  958. _formdiv = new U.UF.UI.form(
  959. "我的资料",
  960. $$("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 }), {
  961. "id": "my",
  962. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  963. "onresize": function() {}
  964. }, {
  965. closecallback: function() {}
  966. }, { "style": { "height": "36px" } }).form; //创建窗体
  967. _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); } }
  968. break;
  969. case "notice":
  970. _formdiv = new U.UF.UI.form(
  971. "通知公告",
  972. $$("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 }), {
  973. "id": "notice",
  974. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  975. "onresize": function() {}
  976. }, {
  977. closecallback: function() {}
  978. }, { "style": { "height": "36px" } }).form; //创建窗体
  979. _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); } }
  980. break;
  981. case "library":
  982. _formdiv = new U.UF.UI.form(
  983. "素材库",
  984. $$("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 }), {
  985. "id": "library",
  986. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  987. "onresize": function() {}
  988. }, {
  989. closecallback: function() {}
  990. }, { "style": { "height": "36px" } }).form; //创建窗体
  991. _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); } }
  992. break;
  993. case "whiteboard":
  994. _formdiv = new U.UF.UI.form(
  995. "电子白板",
  996. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  997. "id": "whiteboard",
  998. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  999. "onresize": function() {}
  1000. }, {
  1001. closecallback: function() {}
  1002. }, { "style": { "height": "36px" } }).form; //创建窗体
  1003. _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); } }
  1004. break;
  1005. case "investigation":
  1006. _formdiv = new U.UF.UI.form(
  1007. "问卷调查",
  1008. $$("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 }), {
  1009. "id": "investigation",
  1010. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1011. "onresize": function() {}
  1012. }, {
  1013. closecallback: function() {}
  1014. }, { "style": { "height": "36px" } }).form; //创建窗体
  1015. _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); } }
  1016. break;
  1017. case "note":
  1018. _formdiv = new U.UF.UI.form(
  1019. "便签分类",
  1020. $$("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 }), {
  1021. "id": "note",
  1022. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1023. "onresize": function() {}
  1024. }, {
  1025. closecallback: function() {}
  1026. }, { "style": { "height": "36px" } }).form; //创建窗体
  1027. _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); } }
  1028. break;
  1029. // case "score":
  1030. // _formdiv = new U.UF.UI.form(
  1031. // "量规评分",
  1032. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1033. // "id": "score",
  1034. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1035. // "onresize": function() {}
  1036. // }, {
  1037. // closecallback: function() {}
  1038. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1039. // _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); } }
  1040. // break;
  1041. case "mind":
  1042. _formdiv = new U.UF.UI.form(
  1043. "思维导图",
  1044. $$("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"
  1045. "id": "mind",
  1046. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1047. "onresize": function() {}
  1048. }, {
  1049. closecallback: function() {}
  1050. }, { "style": { "height": "36px" } }).form; //创建窗体
  1051. _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); } }
  1052. break;
  1053. case "doc":
  1054. // U.MD.D.I.isRoom();
  1055. _formdiv = new U.UF.UI.form(
  1056. "协同文档",
  1057. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.kdocs.cn/latest?from=docs" }), {
  1058. "id": "doc",
  1059. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1060. "onresize": function() {}
  1061. }, {
  1062. closecallback: function() {}
  1063. }, { "style": { "height": "36px" } }).form; //创建窗体
  1064. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1065. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1066. // })
  1067. _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); } }
  1068. break;
  1069. case "study":
  1070. _formdiv = new U.UF.UI.form(
  1071. "学习中心",
  1072. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1073. "id": "study",
  1074. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1075. "onresize": function() {}
  1076. }, {
  1077. closecallback: function() {}
  1078. }, { "style": { "height": "36px" } }).form; //创建窗体
  1079. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1080. break;
  1081. case "mindNetwork": //好友打开
  1082. _formdiv = new U.UF.UI.form(
  1083. "思维网格",
  1084. $$("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 }), {
  1085. "id": "mindNetwork",
  1086. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1087. "onresize": function() {}
  1088. }, {
  1089. closecallback: function() {}
  1090. }, { "style": { "height": "36px" } }).form; //创建窗体
  1091. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1092. break;
  1093. case "train": //好友打开
  1094. _formdiv = new U.UF.UI.form(
  1095. "训练平台",
  1096. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1097. "id": "mindNetwork",
  1098. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1099. "onresize": function() {}
  1100. }, {
  1101. closecallback: function() {}
  1102. }, { "style": { "height": "36px" } }).form; //创建窗体
  1103. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "训练平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1104. break;
  1105. case "teacherClassRoom": //好友打开
  1106. _formdiv = new U.UF.UI.form(
  1107. "实时课堂",
  1108. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/classRoom?userid=" + _userid + "&oid=" + _oid }), {
  1109. "id": "teacherClassRoom",
  1110. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1111. "onresize": function() {}
  1112. }, {
  1113. closecallback: function() {}
  1114. }, { "style": { "height": "36px" } }).form; //创建窗体
  1115. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1116. setTimeout(() => {
  1117. U.UF.F.windowZooming(_formdiv)
  1118. }, 0);
  1119. break;
  1120. }
  1121. } else if (_type == 1 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1122. switch (str) {
  1123. case "project": //好友打开
  1124. _formdiv = new U.UF.UI.form(
  1125. "项目管理",
  1126. $$("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 }), {
  1127. "id": "project",
  1128. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1129. "onresize": function() {}
  1130. }, {
  1131. closecallback: function() {}
  1132. }, { "style": { "height": "36px" } }).form; //创建窗体
  1133. _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); } }
  1134. break;
  1135. case "evaluate":
  1136. _formdiv = new U.UF.UI.form(
  1137. "学生评价",
  1138. $$("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 }), {
  1139. "id": "evaluate",
  1140. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1141. "onresize": function() {}
  1142. }, {
  1143. closecallback: function() {}
  1144. }, { "style": { "height": "36px" } }).form; //创建窗体
  1145. _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); } }
  1146. break;
  1147. case "notice":
  1148. _formdiv = new U.UF.UI.form(
  1149. "通知公告",
  1150. $$("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 }), {
  1151. "id": "notice",
  1152. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1153. "onresize": function() {}
  1154. }, {
  1155. closecallback: function() {}
  1156. }, { "style": { "height": "36px" } }).form; //创建窗体
  1157. _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); } }
  1158. break;
  1159. case "stuLibrary":
  1160. _formdiv = new U.UF.UI.form(
  1161. "学习资料",
  1162. $$("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 }), {
  1163. "id": "stuLibrary",
  1164. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1165. "onresize": function() {}
  1166. }, {
  1167. closecallback: function() {}
  1168. }, { "style": { "height": "36px" } }).form; //创建窗体
  1169. _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); } }
  1170. break;
  1171. case "program":
  1172. _formdiv = new U.UF.UI.form(
  1173. "编程平台",
  1174. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1175. "id": "program",
  1176. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1177. "onresize": function() {}
  1178. }, {
  1179. closecallback: function() {}
  1180. }, { "style": { "height": "36px" } }).form; //创建窗体
  1181. _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); } }
  1182. break;
  1183. case "whiteboard":
  1184. _formdiv = new U.UF.UI.form(
  1185. "电子白板",
  1186. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1187. "id": "whiteboard",
  1188. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1189. "onresize": function() {}
  1190. }, {
  1191. closecallback: function() {}
  1192. }, { "style": { "height": "36px" } }).form; //创建窗体
  1193. _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); } }
  1194. break;
  1195. case "investigation":
  1196. _formdiv = new U.UF.UI.form(
  1197. "问卷调查",
  1198. $$("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 }), {
  1199. "id": "investigation",
  1200. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1201. "onresize": function() {}
  1202. }, {
  1203. closecallback: function() {}
  1204. }, { "style": { "height": "36px" } }).form; //创建窗体
  1205. _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); } }
  1206. break;
  1207. case "mind":
  1208. _formdiv = new U.UF.UI.form(
  1209. "思维导图",
  1210. $$("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"
  1211. "id": "mind",
  1212. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1213. "onresize": function() {}
  1214. }, {
  1215. closecallback: function() {}
  1216. }, { "style": { "height": "36px" } }).form; //创建窗体
  1217. _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); } }
  1218. break;
  1219. case "doc":
  1220. // U.MD.D.I.isRoom();
  1221. _formdiv = new U.UF.UI.form(
  1222. "协同文档",
  1223. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.kdocs.cn/latest?from=docs" }), {
  1224. "id": "doc",
  1225. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1226. "onresize": function() {}
  1227. }, {
  1228. closecallback: function() {}
  1229. }, { "style": { "height": "36px" } }).form; //创建窗体
  1230. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1231. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1232. // })
  1233. _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); } }
  1234. break;
  1235. case "study":
  1236. _formdiv = new U.UF.UI.form(
  1237. "学习中心",
  1238. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1239. "id": "study",
  1240. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1241. "onresize": function() {}
  1242. }, {
  1243. closecallback: function() {}
  1244. }, { "style": { "height": "36px" } }).form; //创建窗体
  1245. _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); } }
  1246. break;
  1247. case "mindNetwork": //好友打开
  1248. _formdiv = new U.UF.UI.form(
  1249. "思维网格",
  1250. $$("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 }), {
  1251. "id": "mindNetwork",
  1252. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1253. "onresize": function() {}
  1254. }, {
  1255. closecallback: function() {}
  1256. }, { "style": { "height": "36px" } }).form; //创建窗体
  1257. _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); } }
  1258. break;
  1259. case "train": //好友打开
  1260. _formdiv = new U.UF.UI.form(
  1261. "训练平台",
  1262. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1263. "id": "mindNetwork",
  1264. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1265. "onresize": function() {}
  1266. }, {
  1267. closecallback: function() {}
  1268. }, { "style": { "height": "36px" } }).form; //创建窗体
  1269. _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); } }
  1270. break;
  1271. case "sys":
  1272. _formdiv = new U.UF.UI.form(
  1273. "目标管理",
  1274. $$("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 }), {
  1275. "id": "sys",
  1276. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1277. "onresize": function() {}
  1278. }, {
  1279. closecallback: function() {}
  1280. }, { "style": { "height": "36px" } }).form; //创建窗体
  1281. _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); } }
  1282. break;
  1283. case "courseDesign":
  1284. _formdiv = new U.UF.UI.form(
  1285. "课程设计",
  1286. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design/index.html" }), {
  1287. "id": "courseDesign",
  1288. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1289. "onresize": function() {}
  1290. }, {
  1291. closecallback: function() {}
  1292. }, { "style": { "height": "36px" } }).form; //创建窗体
  1293. _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); } }
  1294. break;
  1295. }
  1296. }
  1297. switch (str) {
  1298. // AIprogram2 AI体验 aihub.cocorobo.cn
  1299. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  1300. // AIprogram AI编程 ai-blockly.cocorobo.cn
  1301. case "AIprogram2": //AI体验
  1302. _formdiv = new U.UF.UI.form(
  1303. "AI体验",
  1304. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  1305. "id": "studnetProject",
  1306. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1307. "onresize": function() {}
  1308. }, {
  1309. closecallback: function() {}
  1310. }, { "style": { "height": "36px" } }).form; //创建窗体
  1311. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram2.png)" }, "name": "AI体验", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1312. break;
  1313. case "Pythonprogram": //python编程
  1314. _formdiv = new U.UF.UI.form(
  1315. "Python编程",
  1316. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  1317. "id": "studnetProject",
  1318. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1319. "onresize": function() {}
  1320. }, {
  1321. closecallback: function() {}
  1322. }, { "style": { "height": "36px" } }).form; //创建窗体
  1323. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Pythonprogram.png)" }, "name": "Python编程", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1324. break;
  1325. case "AIprogram": //ai编程
  1326. _formdiv = new U.UF.UI.form(
  1327. "AI编程平台",
  1328. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  1329. "id": "studnetProject",
  1330. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1331. "onresize": function() {}
  1332. }, {
  1333. closecallback: function() {}
  1334. }, { "style": { "height": "36px" } }).form; //创建窗体
  1335. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/program.png)" }, "name": "AI编程平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1336. break;
  1337. }
  1338. //U.MD.D.I.openClick(str);
  1339. //如果有任务栏信息
  1340. if (_taskbar) {
  1341. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  1342. }
  1343. }
  1344. // U.MD.D.I.openClick = function(str){
  1345. // var click = '';
  1346. // switch(str){
  1347. // case 'friend':
  1348. // click = '我的好友';
  1349. // break;
  1350. // case 'domain':
  1351. // click = '域名管理';
  1352. // break;
  1353. // case 'disk':
  1354. // click = '我的云盘';
  1355. // break;
  1356. // case 'word':
  1357. // click = 'Word';
  1358. // break;
  1359. // case 'excel':
  1360. // click = 'Execl';
  1361. // break;
  1362. // case 'txt':
  1363. // click = '文本文件';
  1364. // break;
  1365. // case 'lookupFriend':
  1366. // click = '查找好友';
  1367. // break;
  1368. // case 'ftp':
  1369. // click = 'FTP';
  1370. // break;
  1371. // case 'group':
  1372. // click = '群组';
  1373. // break;
  1374. // case 'set':
  1375. // click = '我的设置';
  1376. // break;
  1377. // case 'systemSet':
  1378. // click = '系统设置';
  1379. // break;
  1380. // case 'boomYun':
  1381. // click = '互联办公';
  1382. // break;
  1383. // case 'xz':
  1384. // click = '云端下载';
  1385. // break;
  1386. // case 'client':
  1387. // click = '有思浏览器';
  1388. // break;
  1389. // case 'backEndProgramming':
  1390. // click = '在线后台编程';
  1391. // break;
  1392. // case 'frontEndProgramming':
  1393. // click = '在线前端编程';
  1394. // break;
  1395. // default: break;
  1396. // }
  1397. // if(U.MD.D.I.Ip && click){
  1398. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  1399. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  1400. // })
  1401. // }
  1402. // }
  1403. /**
  1404. *函数作用:ajax简易函数,使用post格式
  1405. *@param url {data} 后台地址
  1406. *@param data {data} 参数json
  1407. *@param fn {data} 回调函数
  1408. *
  1409. */
  1410. // U.MD.D.I.Mysqlrequest = function(url,fn){
  1411. // var xhr = new XMLHttpRequest();
  1412. // xhr.open("GET",url,true);
  1413. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  1414. // xhr.onreadystatechange = function(){
  1415. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  1416. // fn.call(this,xhr.responseText);
  1417. // }
  1418. // };
  1419. // xhr.send();
  1420. // }
  1421. /*判断是否是内网IP*/
  1422. // U.MD.D.I.isInnerIPFn = function(str){
  1423. // var curPageUrl = str;
  1424. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  1425. // curPageUrl =curPageUrl.replace(reg1,'');
  1426. // // console.log('curPageUrl-1 '+curPageUrl);
  1427. // var reg2 = /\:+/g;//替换冒号为一点
  1428. // curPageUrl =curPageUrl.replace(reg2,'.');
  1429. // // console.log('curPageUrl-2 '+curPageUrl);
  1430. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  1431. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  1432. // if(curPageUrl[2] != '16'){
  1433. // return ipAddress;
  1434. // }else{
  1435. // return false;
  1436. // }
  1437. // }
  1438. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  1439. // //compatibility for firefox and chrome
  1440. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  1441. // var pc = new myPeerConnection({
  1442. // iceServers: []
  1443. // }),
  1444. // noop = function() {},
  1445. // localIPs = {},
  1446. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  1447. // key;
  1448. // function iterateIP(ip) {
  1449. // if (!localIPs[ip]) onNewIP(ip);
  1450. // localIPs[ip] = true;
  1451. // }
  1452. // //create a bogus data channel
  1453. // pc.createDataChannel("");
  1454. // // create offer and set local description
  1455. // pc.createOffer().then(function(sdp) {
  1456. // sdp.sdp.split('\n').forEach(function(line) {
  1457. // if (line.indexOf('candidate') < 0) return;
  1458. // line.match(ipRegex).forEach(iterateIP);
  1459. // });
  1460. // pc.setLocalDescription(sdp, noop, noop);
  1461. // }).catch(function(reason) {
  1462. // // An error occurred, so handle the failure to connect
  1463. // });
  1464. // //sten for candidate events
  1465. // pc.onicecandidate = function(ice) {
  1466. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  1467. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  1468. // };
  1469. // }
  1470. // U.MD.D.I.getUserIpBool = function(callback){
  1471. // U.MD.D.I.getUserIP(function(ip){
  1472. // alert("Got IP! :" + ip);
  1473. // });
  1474. //}
  1475. //#endregion
  1476. U.MD.D.I.openApplicationJie = function(str, cid, stage, task, tool) {
  1477. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1478. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1479. _userinfo = US.userInfo, //登录用户信息
  1480. _userid = US.userInfo.userid //登录用户id
  1481. let _iframe;
  1482. var _jie = $$("div", {
  1483. "style": {
  1484. "position": "absolute",
  1485. "bottom": "50px",
  1486. "right": "50px",
  1487. "zIndex": "9999",
  1488. "backgroundColor": "#2268bc",
  1489. "color": "#fff",
  1490. "padding": "12px 20px",
  1491. "cursor": "pointer",
  1492. "borderRadius": "4px",
  1493. },
  1494. "innerHTML": "提交作业"
  1495. })
  1496. let _loading = document.createElement('div')
  1497. _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;"
  1498. // _loading.id = "";
  1499. let _lchild = document.createElement('div')
  1500. let _limg = document.createElement('img')
  1501. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  1502. _limg.style = "width: 26px;margin-right: 10px;"
  1503. _lchild.appendChild(_limg)
  1504. let _lspan = document.createElement('span')
  1505. _lspan.innerHTML = "上传中..."
  1506. _lchild.appendChild(_lspan)
  1507. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  1508. _loading.appendChild(_lchild)
  1509. var _box = $$('div', {
  1510. "style": {
  1511. "position": "relative",
  1512. "width": "100%",
  1513. "height": "100%",
  1514. },
  1515. })
  1516. _box.appendChild(_loading)
  1517. _box.id = str + '_loadLi'
  1518. switch (str) {
  1519. case "whiteboard":
  1520. _iframe = $$("iframe", {
  1521. "frameborder": "no",
  1522. "border": "0",
  1523. "scrolling ": "no",
  1524. "style": {
  1525. "cssText": "border:0;width:100%;height:100%"
  1526. },
  1527. "src": "https://iwb.cocorobo.cn/"
  1528. })
  1529. _box.appendChild(_iframe);
  1530. _box.appendChild(_jie);
  1531. _formdiv = new U.UF.UI.form(
  1532. "电子白板",
  1533. _box, {
  1534. "id": "whiteboard",
  1535. "style": {
  1536. "width": "90%",
  1537. "height": "90%",
  1538. "overflow": 'hidden'
  1539. },
  1540. "onresize": function() {}
  1541. }, {
  1542. closecallback: function() {}
  1543. }, {
  1544. "style": {
  1545. "height": "36px"
  1546. }
  1547. }).form; //创建窗体
  1548. _taskbar = {
  1549. "id": str + _formdiv.id,
  1550. "style": {
  1551. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  1552. },
  1553. "name": "电子白板",
  1554. "forms": _formdiv,
  1555. "click": function() {
  1556. U.MD.D.I.openApplication(str, obj, info);
  1557. }
  1558. }
  1559. break;
  1560. case "mind":
  1561. _iframe = $$("iframe", {
  1562. "frameborder": "no",
  1563. "border": "0",
  1564. "scrolling ": "no",
  1565. "style": {
  1566. "cssText": "border:0;width:100%;height:100%"
  1567. },
  1568. "src": "/kityminder-editor/dist/index.html"
  1569. })
  1570. _box.appendChild(_iframe);
  1571. _box.appendChild(_jie);
  1572. _formdiv = new U.UF.UI.form(
  1573. "思维导图",
  1574. _box, { //"/jsmind/example/demo.html"
  1575. "id": "mind",
  1576. "style": {
  1577. "width": "90%",
  1578. "height": "90%",
  1579. "overflow": 'hidden'
  1580. },
  1581. "onresize": function() {}
  1582. }, {
  1583. closecallback: function() {}
  1584. }, {
  1585. "style": {
  1586. "height": "36px"
  1587. }
  1588. }).form; //创建窗体
  1589. _taskbar = {
  1590. "id": str + _formdiv.id,
  1591. "style": {
  1592. "backgroundImage": "url(/img/icon/mindMapping.png)"
  1593. },
  1594. "name": "思维导图",
  1595. "forms": _formdiv,
  1596. "click": function() {
  1597. U.MD.D.I.openApplication(str, obj, info);
  1598. }
  1599. }
  1600. break;
  1601. case "doc":
  1602. _iframe = $$("iframe", {
  1603. "frameborder": "no",
  1604. "border": "0",
  1605. "scrolling ": "no",
  1606. "style": {
  1607. "cssText": "border:0;width:100%;height:100%"
  1608. },
  1609. "src": "https://www.kdocs.cn/latest?from=docs"
  1610. })
  1611. _box.appendChild(_iframe);
  1612. _box.appendChild(_jie);
  1613. _formdiv = new U.UF.UI.form(
  1614. "协同文档",
  1615. _box, {
  1616. "id": "doc",
  1617. "style": {
  1618. "width": "90%",
  1619. "height": "90%",
  1620. "overflow": 'hidden'
  1621. },
  1622. "onresize": function() {}
  1623. }, {
  1624. closecallback: function() {}
  1625. }, {
  1626. "style": {
  1627. "height": "36px"
  1628. }
  1629. }).form; //创建窗体
  1630. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  1631. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1632. // })
  1633. _taskbar = {
  1634. "id": str + _formdiv.id,
  1635. "style": {
  1636. "backgroundImage": "url(/img/icon/doc.png)"
  1637. },
  1638. "name": "协同文档",
  1639. "forms": _formdiv,
  1640. "click": function() {
  1641. U.MD.D.I.openApplication(str, obj, info);
  1642. }
  1643. }
  1644. break;
  1645. case "mindNetwork": //好友打开
  1646. _iframe = $$("iframe", {
  1647. "webkitallowfullscreen": "",
  1648. "mozallowfullscreen": "",
  1649. "allowfullscreen": "",
  1650. "frameborder": "no",
  1651. "border": "0",
  1652. "scrolling ": "no",
  1653. "style": {
  1654. "cssText": "border:0; width:100%; height:100%;"
  1655. },
  1656. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  1657. })
  1658. _box.appendChild(_iframe);
  1659. _box.appendChild(_jie);
  1660. _formdiv = new U.UF.UI.form(
  1661. "思维网格",
  1662. _box, {
  1663. "id": "mindNetwork",
  1664. "style": {
  1665. "width": "90%",
  1666. "height": "90%",
  1667. "overflow": 'hidden'
  1668. },
  1669. "onresize": function() {}
  1670. }, {
  1671. closecallback: function() {}
  1672. }, {
  1673. "style": {
  1674. "height": "36px"
  1675. }
  1676. }).form; //创建窗体
  1677. _taskbar = {
  1678. "id": str + _formdiv.id,
  1679. "style": {
  1680. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  1681. },
  1682. "name": "思维网格",
  1683. "forms": _formdiv,
  1684. "click": function() {
  1685. U.MD.D.I.openApplication(str, obj, info);
  1686. }
  1687. }
  1688. break;
  1689. }
  1690. const script1 = document.createElement("script");
  1691. script1.type = "text/javascript";
  1692. script1.src =
  1693. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  1694. const script2 = document.createElement("script");
  1695. script2.type = "text/javascript";
  1696. script2.src =
  1697. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  1698. const script3 = document.createElement("script");
  1699. script3.type = "text/javascript";
  1700. script3.src = "https://html2canvas.hertzen.com/dist/js/html2canvas.min.js";
  1701. const script4 = document.createElement("script");
  1702. script4.type = "text/javascript";
  1703. script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  1704. if (_iframe) {
  1705. if (str == 'doc') {
  1706. U.UF.DL.iframeLoad(_iframe, function() {
  1707. //_iframe.contentWindow.U.MD.O.W.load();
  1708. _iframe.contentWindow.document.body.appendChild(script1);
  1709. _iframe.contentWindow.document.body.appendChild(script2);
  1710. // _iframe.contentWindow.document.body.appendChild(script3);
  1711. _iframe.contentWindow.document.body.appendChild(script4);
  1712. })
  1713. } else {
  1714. _iframe.onload = () => {
  1715. _iframe.contentWindow.document.body.appendChild(script1);
  1716. _iframe.contentWindow.document.body.appendChild(script2);
  1717. // _iframe.contentWindow.document.body.appendChild(script3);
  1718. _iframe.contentWindow.document.body.appendChild(script4);
  1719. };
  1720. }
  1721. _jie.onclick = () => {
  1722. _loading.style.display = 'flex'
  1723. console.log(_loading);
  1724. var _ajs = _iframe.contentWindow.document.createElement("script");
  1725. _ajs.type = "text/javascript";
  1726. _ajs.innerHTML =
  1727. // 'console.log(' + _loading + ');\n' +
  1728. 'var _js = document.createElement("script");\n' +
  1729. '_js.type="text/javascript";\n' +
  1730. '_js.src="https://html2canvas.hertzen.com/dist/html2canvas.min.js";\n' +
  1731. "_js.onload = function(){\n" +
  1732. ' var a = document.getElementsByTagName("img")\n' +
  1733. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  1734. " html2canvas(document.body,{allowTaint: true,useCORS: true}).then(canvas => {\n" +
  1735. '  var base64Url = canvas.toDataURL("image/png");\n' +
  1736. 'var base64 = "<img src=" + base64Url + " />"\n' +
  1737. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  1738. "beforeUpload_shishi(file," +
  1739. "'" +
  1740. _userid +
  1741. "'" +
  1742. ", " +
  1743. "'" +
  1744. cid +
  1745. "'" +
  1746. ", " +
  1747. "'" +
  1748. stage +
  1749. "'" +
  1750. ", " +
  1751. "'" +
  1752. task +
  1753. "'" +
  1754. ", " +
  1755. "'" +
  1756. tool +
  1757. "'" +
  1758. ", " +
  1759. "'" +
  1760. str + '_loadLi' +
  1761. "'" +
  1762. ")\n" +
  1763. " });\n" +
  1764. "}\n" +
  1765. "document.head.appendChild(_js);\n";
  1766. _iframe.contentWindow.document.head.appendChild(_ajs);
  1767. }
  1768. }
  1769. //U.MD.D.I.openClick(str);
  1770. //如果有任务栏信息
  1771. if (_taskbar) {
  1772. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  1773. }
  1774. }