DeskTop.js 118 KB

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