DeskTop.js 110 KB

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