DeskTop.js 138 KB

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