DeskTop.js 130 KB

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