DeskTop.js 204 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437
  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": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  16. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  17. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  18. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  19. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  20. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  21. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  22. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  23. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  24. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  25. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  26. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  27. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  28. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  29. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  30. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  31. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  32. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  33. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  34. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  35. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  36. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  37. { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  38. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  39. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  40. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  41. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  42. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  43. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  44. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  45. { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  46. ];
  47. //教师桌面图标的全局变量
  48. U.MD.D.I.teacherDeskIcon2 = [
  49. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  50. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  51. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  52. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  53. // { "Name": "学生项目", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  54. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  55. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  56. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  57. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  58. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  59. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  60. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  61. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  62. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  63. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  64. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  65. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  66. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  67. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  68. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  69. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  70. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  71. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  72. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  73. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  74. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  75. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  76. { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  77. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  78. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  79. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  80. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  81. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  82. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  83. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  84. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  85. ];
  86. U.MD.D.I.studentDeskIcon = [
  87. { "Name": "学生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  88. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  89. { "Name": "学习中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  90. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  91. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  92. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  93. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  94. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  95. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  96. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  97. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  98. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  99. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  100. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  101. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  102. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  103. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  104. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  105. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  106. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  107. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  108. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  109. // { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  110. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  111. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  112. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  113. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  114. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  115. { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  116. ];
  117. U.MD.D.I.studentDeskIcon2 = [
  118. // { "Name": "学生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  119. { "Name": "学习中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  120. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  121. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  122. ]
  123. U.MD.D.I.schoolDeskIcon = [
  124. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  125. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  126. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  127. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  128. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  129. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  130. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  131. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  132. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  133. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  134. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  135. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  136. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  137. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  138. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  139. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  140. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  141. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  142. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  143. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  144. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  145. ];
  146. U.MD.D.I.orgDeskIcon = [
  147. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  148. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  149. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  150. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  151. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  152. ];
  153. U.MD.D.I.orgStemDeskIcon = [
  154. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  155. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  156. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  157. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  158. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  159. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  160. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  161. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  162. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  163. ];
  164. U.MD.D.I.szulsDeskIcon = [
  165. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  166. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  167. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  168. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  169. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  170. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  171. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  172. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  173. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  174. ];
  175. U.MD.D.I.hanDeskIcon = [
  176. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  177. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  178. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  179. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  180. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  181. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  182. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  183. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  184. { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  185. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  186. ];
  187. U.MD.D.I.GMteacherDeskIcon = [
  188. { "Name": "项目管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  189. { "Name": "学习中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  190. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  191. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  192. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  193. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  194. { "Name": "项目进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  195. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  196. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  197. ];
  198. U.MD.D.I.GMstudentDeskIcon = [
  199. { "Name": "学习中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  200. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  201. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  202. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  203. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  204. ];
  205. //北师大
  206. U.MD.D.I.BSDNSteacherDeskIcon = [
  207. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  208. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  209. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  210. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  211. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  212. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  213. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  214. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  215. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  216. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  217. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  218. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  219. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  220. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  221. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  222. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  223. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  224. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  225. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  226. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  227. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  228. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  229. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  230. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  231. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  232. // { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  233. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  234. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  235. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  236. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  237. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  238. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  239. { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  240. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  241. ];
  242. //松山湖
  243. U.MD.D.I.SONGteacherDeskIcon = [
  244. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  245. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  246. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  247. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  248. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  249. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  250. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  251. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  252. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  253. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  254. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  255. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  256. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  257. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  258. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  259. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  260. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  261. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  262. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  263. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  264. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  265. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  266. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  267. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  268. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  269. // { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  270. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  271. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  272. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  273. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  274. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  275. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  276. { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  277. ];
  278. U.MD.D.I.tcStudentDeskIcon = [
  279. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  280. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  281. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  282. ];
  283. U.MD.D.I.tcTeacherDeskIcon = [
  284. // { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  285. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  286. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  287. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  288. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  289. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  290. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  291. ];
  292. U.MD.D.I.tcOrganizerDeskIcon = [
  293. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  294. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  295. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  296. { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  297. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  298. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  299. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  300. ];
  301. //#region 桌面初始化a
  302. /**
  303. * 初始化桌面的起始函数
  304. *
  305. */
  306. U.MD.D.I.init = function () {
  307. if ($("#U_MD_D_K")[0]) {
  308. //初始化桌面图标
  309. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0]);
  310. // var clickUrl = ':12588/requestIp.php';
  311. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  312. // U.MD.D.I.Ip = data;
  313. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  314. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  315. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  316. // })
  317. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  318. // })
  319. }
  320. }
  321. /**
  322. * 隐藏任务栏
  323. *
  324. * @param {element} 桌面元素
  325. */
  326. U.MD.D.I.hiddenTaskbar = function (el) {
  327. //任务栏位置变小
  328. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  329. //桌面的位置变大
  330. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  331. }
  332. /**
  333. * 隐藏任务栏
  334. *
  335. * @param {element} 桌面元素
  336. */
  337. U.MD.D.I.hiddenTaskbarout = function (el) {
  338. //任务栏位置变小
  339. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  340. //任务栏位置变化
  341. U.selectEl(el).css({ "bottom": "-60px" });
  342. //桌面的位置变大
  343. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  344. }
  345. }
  346. /**
  347. * 初始化打印桌面图标
  348. *
  349. * @param {element} 桌面元素
  350. */
  351. U.MD.D.I.initDesktopIcons = function (el) {
  352. var i, //用于循环
  353. _content, //桌面图标元素
  354. _iconcontent, //桌面图标元素
  355. _frag = $$("frag"), //定义一个碎片元素
  356. _type = US.userInfo.type,
  357. _org = US.userInfo.org,
  358. _oid = US.userInfo.organizeid,
  359. _role = US.userInfo.role,
  360. _teacherDesktopIconInfo = U.MD.D.I.teacherDeskIcon, //获取教师端桌面图标
  361. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  362. _studentDesktopIconInfo = U.MD.D.I.studentDeskIcon, //获取学生端桌面图标
  363. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  364. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  365. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  366. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  367. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  368. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  369. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  370. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取北师大
  371. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  372. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  373. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  374. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  375. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon;//腾讯学生
  376. var _oidA = ['69893dca-1d47-11ed-8c78-005056b86db5', "91305d49-01ba-11ed-8c78-005056b86db5", "d9db3320-503a-11ed-8c78-005056b86db5"];
  377. var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d", "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b", "150e3120-9195-11ed-b13d-005056b86db5"];
  378. //清楚桌面图标
  379. el.innerHTML = "";
  380. //循环创建桌面图标
  381. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  382. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  383. _content = $$("div", {
  384. className: "U_MD_D_KO",
  385. "onmousedown": U.UF.C.closure(function (obj) {
  386. //防止拖动图标即打开了桌面应用
  387. U.MD.D.click(this, obj);
  388. }, [_studentDesktopIconInfo[i]]),
  389. "onclick": U.UF.C.closure(function (obj) {
  390. //防止拖动图标即打开了桌面应用
  391. U.MD.D.click(this, obj);
  392. }, [_studentDesktopIconInfo[i]])
  393. }, _frag); //
  394. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  395. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  396. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  397. }
  398. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  399. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  400. _content = $$("div", {
  401. className: "U_MD_D_KO",
  402. "onmousedown": U.UF.C.closure(function (obj) {
  403. //防止拖动图标即打开了桌面应用
  404. U.MD.D.click(this, obj);
  405. }, [_tcStudentDeskIconInfo[i]]),
  406. "onclick": U.UF.C.closure(function (obj) {
  407. //防止拖动图标即打开了桌面应用
  408. U.MD.D.click(this, obj);
  409. }, [_tcStudentDeskIconInfo[i]])
  410. }, _frag); //
  411. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  412. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  413. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  414. }
  415. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  416. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  417. _content = $$("div", {
  418. className: "U_MD_D_KO",
  419. "onmousedown": U.UF.C.closure(function (obj) {
  420. //防止拖动图标即打开了桌面应用
  421. U.MD.D.click(this, obj);
  422. }, [_studentDesktopIconInfo2[i]]),
  423. "onclick": U.UF.C.closure(function (obj) {
  424. //防止拖动图标即打开了桌面应用
  425. U.MD.D.click(this, obj);
  426. }, [_studentDesktopIconInfo2[i]])
  427. }, _frag); //
  428. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  429. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  430. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  431. }
  432. } else if ((_type == 1 || _type == 4) && _oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  433. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  434. _content = $$("div", {
  435. className: "U_MD_D_KO",
  436. "onmousedown": U.UF.C.closure(function (obj) {
  437. //防止拖动图标即打开了桌面应用
  438. U.MD.D.click(this, obj);
  439. }, [_teacherDesktopIconInfo2[i]]),
  440. "onclick": U.UF.C.closure(function (obj) {
  441. //防止拖动图标即打开了桌面应用
  442. U.MD.D.click(this, obj);
  443. }, [_teacherDesktopIconInfo2[i]])
  444. }, _frag); //
  445. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  446. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  447. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  448. }
  449. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  450. for (i = 0; i < _hanDeskIcon.length; i++) {
  451. _content = $$("div", {
  452. className: "U_MD_D_KO",
  453. "onmousedown": U.UF.C.closure(function (obj) {
  454. //防止拖动图标即打开了桌面应用
  455. U.MD.D.click(this, obj);
  456. }, [_hanDeskIcon[i]]),
  457. "onclick": U.UF.C.closure(function (obj) {
  458. //防止拖动图标即打开了桌面应用
  459. U.MD.D.click(this, obj);
  460. }, [_hanDeskIcon[i]])
  461. }, _frag); //
  462. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  463. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  464. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  465. }
  466. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  467. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  468. _content = $$("div", {
  469. className: "U_MD_D_KO",
  470. "onmousedown": U.UF.C.closure(function (obj) {
  471. //防止拖动图标即打开了桌面应用
  472. U.MD.D.click(this, obj);
  473. }, [_orgStemDeskIcon[i]]),
  474. "onclick": U.UF.C.closure(function (obj) {
  475. //防止拖动图标即打开了桌面应用
  476. U.MD.D.click(this, obj);
  477. }, [_orgStemDeskIcon[i]])
  478. }, _frag); //
  479. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  480. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  481. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  482. }
  483. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  484. for (i = 0; i < _szulsDeskIcon.length; i++) {
  485. _content = $$("div", {
  486. className: "U_MD_D_KO",
  487. "onmousedown": U.UF.C.closure(function (obj) {
  488. //防止拖动图标即打开了桌面应用
  489. U.MD.D.click(this, obj);
  490. }, [_szulsDeskIcon[i]]),
  491. "onclick": U.UF.C.closure(function (obj) {
  492. //防止拖动图标即打开了桌面应用
  493. U.MD.D.click(this, obj);
  494. }, [_szulsDeskIcon[i]])
  495. }, _frag); //
  496. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  497. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  498. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  499. }
  500. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  501. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  502. _content = $$("div", {
  503. className: "U_MD_D_KO",
  504. "onmousedown": U.UF.C.closure(function (obj) {
  505. //防止拖动图标即打开了桌面应用
  506. U.MD.D.click(this, obj);
  507. }, [_orgDesktopIconInfo[i]]),
  508. "onclick": U.UF.C.closure(function (obj) {
  509. //防止拖动图标即打开了桌面应用
  510. U.MD.D.click(this, obj);
  511. }, [_orgDesktopIconInfo[i]])
  512. }, _frag); //
  513. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  514. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  515. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  516. }
  517. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  518. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  519. _content = $$("div", {
  520. className: "U_MD_D_KO",
  521. "onmousedown": U.UF.C.closure(function (obj) {
  522. //防止拖动图标即打开了桌面应用
  523. U.MD.D.click(this, obj);
  524. }, [_schoolDesktopIconInfo[i]]),
  525. "onclick": U.UF.C.closure(function (obj) {
  526. //防止拖动图标即打开了桌面应用
  527. U.MD.D.click(this, obj);
  528. }, [_schoolDesktopIconInfo[i]])
  529. }, _frag); //
  530. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  531. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  532. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  533. }
  534. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  535. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  536. _content = $$("div", {
  537. className: "U_MD_D_KO",
  538. "onmousedown": U.UF.C.closure(function (obj) {
  539. //防止拖动图标即打开了桌面应用
  540. U.MD.D.click(this, obj);
  541. }, [_studentDesktopIconInfo[i]]),
  542. "onclick": U.UF.C.closure(function (obj) {
  543. //防止拖动图标即打开了桌面应用
  544. U.MD.D.click(this, obj);
  545. }, [_studentDesktopIconInfo[i]])
  546. }, _frag); //
  547. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  548. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  549. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  550. }
  551. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  552. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  553. _content = $$("div", {
  554. className: "U_MD_D_KO",
  555. "onmousedown": U.UF.C.closure(function (obj) {
  556. //防止拖动图标即打开了桌面应用
  557. U.MD.D.click(this, obj);
  558. }, [_GMteacherDesktopIconInfo[i]]),
  559. "onclick": U.UF.C.closure(function (obj) {
  560. //防止拖动图标即打开了桌面应用
  561. U.MD.D.click(this, obj);
  562. }, [_GMteacherDesktopIconInfo[i]])
  563. }, _frag); //
  564. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  565. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  566. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  567. }
  568. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  569. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  570. _content = $$("div", {
  571. className: "U_MD_D_KO",
  572. "onmousedown": U.UF.C.closure(function (obj) {
  573. //防止拖动图标即打开了桌面应用
  574. U.MD.D.click(this, obj);
  575. }, [_SONGteacherDesktopIconInfo[i]]),
  576. "onclick": U.UF.C.closure(function (obj) {
  577. //防止拖动图标即打开了桌面应用
  578. U.MD.D.click(this, obj);
  579. }, [_SONGteacherDesktopIconInfo[i]])
  580. }, _frag); //
  581. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  582. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  583. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  584. }
  585. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  586. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  587. _content = $$("div", {
  588. className: "U_MD_D_KO",
  589. "onmousedown": U.UF.C.closure(function (obj) {
  590. //防止拖动图标即打开了桌面应用
  591. U.MD.D.click(this, obj);
  592. }, [_GMstudentDesktopIconInfo[i]]),
  593. "onclick": U.UF.C.closure(function (obj) {
  594. //防止拖动图标即打开了桌面应用
  595. U.MD.D.click(this, obj);
  596. }, [_GMstudentDesktopIconInfo[i]])
  597. }, _frag); //
  598. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  599. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  600. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  601. }
  602. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  603. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  604. _content = $$("div", {
  605. className: "U_MD_D_KO",
  606. "onmousedown": U.UF.C.closure(function (obj) {
  607. //防止拖动图标即打开了桌面应用
  608. U.MD.D.click(this, obj);
  609. }, [_tcTeacherDeskIconInfo[i]]),
  610. "onclick": U.UF.C.closure(function (obj) {
  611. //防止拖动图标即打开了桌面应用
  612. U.MD.D.click(this, obj);
  613. }, [_tcTeacherDeskIconInfo[i]])
  614. }, _frag); //
  615. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  616. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  617. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  618. }
  619. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  620. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  621. _content = $$("div", {
  622. className: "U_MD_D_KO",
  623. "onmousedown": U.UF.C.closure(function (obj) {
  624. //防止拖动图标即打开了桌面应用
  625. U.MD.D.click(this, obj);
  626. }, [_tcOrganizerDeskIconInfo[i]]),
  627. "onclick": U.UF.C.closure(function (obj) {
  628. //防止拖动图标即打开了桌面应用
  629. U.MD.D.click(this, obj);
  630. }, [_tcOrganizerDeskIconInfo[i]])
  631. }, _frag); //
  632. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  633. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  634. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  635. }
  636. } else {
  637. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  638. _content = $$("div", {
  639. className: "U_MD_D_KO",
  640. "onmousedown": U.UF.C.closure(function (obj) {
  641. //防止拖动图标即打开了桌面应用
  642. U.MD.D.click(this, obj);
  643. }, [_teacherDesktopIconInfo[i]]),
  644. "onclick": U.UF.C.closure(function (obj) {
  645. //防止拖动图标即打开了桌面应用
  646. U.MD.D.click(this, obj);
  647. }, [_teacherDesktopIconInfo[i]])
  648. }, _frag); //
  649. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  650. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  651. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  652. }
  653. }
  654. // else if ((_type == 1 || _type == 4) && _oid == "857af1c7-c8ee-4b04-85b5-fd182903adb7") {
  655. // for (i = 0; i < _BSDNSteacherDesktopIconInfo.length; i++) {
  656. // _content = $$("div", {
  657. // className: "U_MD_D_KO",
  658. // "onmousedown": U.UF.C.closure(function(obj) {
  659. // //防止拖动图标即打开了桌面应用
  660. // U.MD.D.click(this, obj);
  661. // }, [_BSDNSteacherDesktopIconInfo[i]]),
  662. // "onclick": U.UF.C.closure(function(obj) {
  663. // //防止拖动图标即打开了桌面应用
  664. // U.MD.D.click(this, obj);
  665. // }, [_BSDNSteacherDesktopIconInfo[i]])
  666. // }, _frag); //
  667. // _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  668. // $$("div", { className: "U_MD_D_KOS U_Img", "style": _BSDNSteacherDesktopIconInfo[i].style }, _iconcontent);
  669. // $$("div", { className: "U_MD_D_KOX", "innerHTML": _BSDNSteacherDesktopIconInfo[i].Name }, _iconcontent);
  670. // }
  671. // }
  672. //加载好后给图标定位
  673. U.MD.D.iconPostion($(_frag).Child());
  674. //把图标加载到页面
  675. el.appendChild(_frag);
  676. }
  677. /**
  678. * 显示任务栏
  679. *
  680. * @param {element} 桌面元素
  681. */
  682. U.MD.D.I.displayTaskbar = function (el) {
  683. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  684. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  685. //任务栏位置变化
  686. U.selectEl(el).css({ "bottom": "0px" });
  687. //桌面位置变话
  688. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  689. }
  690. }
  691. //#region 桌面图标拖动逻辑
  692. /**
  693. * 桌面排列图标
  694. *
  695. * @param {element} 桌面元素
  696. * @param {object} 上下相距的距离
  697. * @param {object} 左右相距的距离
  698. * @return {object} 命名空间
  699. */
  700. U.MD.D.iconPostion = function (childs, top, left) {
  701. var i; //用于循环处理
  702. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  703. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  704. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  705. for (i = 0; i < childs.length; i++) {
  706. //如果竖排top超过了范围处理
  707. if (top + 95 > US.height - 10) {
  708. //left超过了页面范围处理,则向上重叠打印处理
  709. if ((left + 180) > US.width) {
  710. top -= 110;
  711. left -= 90;
  712. }
  713. //没有超过范围,那么left+90添加到下一个竖排打印
  714. else {
  715. left += 90;
  716. top = 15;
  717. };
  718. }
  719. //给图标的位置赋值
  720. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  721. if (i < childs.length - 1) {
  722. //页面图标每次向下加95
  723. top += 95;
  724. }
  725. }
  726. //返回最后调用的图标的位置
  727. return [top, left];
  728. }
  729. /**
  730. * 桌面点击事件逻辑
  731. *
  732. * @param {element} 桌面元素
  733. * @param {object} 上下相距的距离
  734. * @param {object} 左右相距的距离
  735. * @return {object} 命名空间
  736. */
  737. U.MD.D.click = function (el, obj) {
  738. var _buttonnumber = event.button; //点击的按钮的事件值
  739. var _userinfo = US.userInfo;
  740. U.UF.EV.stopBubble(); //阻止向上冒泡
  741. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  742. if (_buttonnumber < 2) {
  743. //如果是click事件的处理
  744. if (event.type == "click") {
  745. //如果元素在mousemove事件中没有移动则出发click事件
  746. if (!U.MD.D.I.IsDrag) {
  747. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  748. U.alert("请先登录您的账号!");
  749. setTimeout(() => {
  750. U.MD.U.L.login();
  751. }, 2000);
  752. } else {
  753. //打开应用处理
  754. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  755. }
  756. }
  757. }
  758. //如果是mouse事件的处理
  759. else {
  760. //拖动处理,添加拖动和拖动结束事件
  761. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  762. }
  763. U.MD.D.I.IsDrag = false;
  764. }
  765. }
  766. /**
  767. * 拖动的处理
  768. *
  769. */
  770. U.MD.D.iconMove = function () {
  771. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  772. U.MD.D.I.IsDrag = true;
  773. }
  774. /**
  775. * 拖动结束后,这里是定位处理,以网状的形式定位
  776. *
  777. * @param {element} 拖动的元素
  778. * @return {object} 命名空间
  779. */
  780. U.MD.D.iconUp = function (el) {
  781. var _top = 15,
  782. _left = 20,
  783. _margin,
  784. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  785. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  786. if (_positioninfo["OT"] > 15) {
  787. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  788. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  789. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  790. }
  791. if (_positioninfo["OL"] > 20) {
  792. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  793. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  794. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  795. }
  796. //while循环判断么一个重叠的元素
  797. do {
  798. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  799. _top = _positioninfo[0] + 95; //得到定位后的top
  800. _left = _positioninfo[1]; //得到定位后的left
  801. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  802. }
  803. /**
  804. * 判断拖动后图标是否重叠
  805. *
  806. * @param {element} 拖动的元素
  807. * @param {element} 桌面所有的元素
  808. * @param {array} 拖动元素的位置
  809. ----------[0] 上 top
  810. ----------[1] 左 left
  811. * @return {object} 命名空间
  812. */
  813. U.MD.D.isOverlap = function (el, childs, postionarray) {
  814. //循环所有的图标
  815. for (var i = 0; i < childs.length; i++) {
  816. //判断有没有和该图标诶子重叠的元素
  817. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  818. return childs[i]; //如果有返回
  819. }
  820. }
  821. }
  822. //#endregion
  823. //#endregion
  824. //#region 桌面应用
  825. /**
  826. * 打开应用
  827. *
  828. * @param {string} 类型
  829. -----------------Disk 网盘系统
  830. -----------------PDisk 学习系统网盘
  831. -----------------Poto 图片
  832. -----------------Video 视频
  833. -----------------Music 音乐
  834. -----------------Word word
  835. -----------------Excel excel
  836. -----------------Txt 记事本
  837. -----------------PB 学习系统
  838. -----------------Blog 朋友圈系统
  839. -----------------FTP ftp系统
  840. -----------------Group 好友群
  841. -----------------SY 首页系统
  842. -----------------Set 个人设置
  843. -----------------XSet 系统设置
  844. -----------------App 我们所有的app
  845. -----------------BC c.1473.cn 平台
  846. -----------------CWeb d.1473.cn 变成平台
  847. -----------------其他的外联系统 我们统一用iframe打开
  848. * @param {array} 类型
  849. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  850. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  851. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  852. 如果第一个参数为其他,则无第二个参数
  853. * @returns {array}
  854. */
  855. window.addEventListener('message', function (e) { // 监听 message 事件
  856. // alert(e.data.type);
  857. if (e.data.screenType && e.data.screenType == "2") { //项目管理传入
  858. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  859. //3是展示全部阶段 2学生 1老师 4专家
  860. } else if (e.data.screenType && e.data.screenType == "2s") { //项目管理传入
  861. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  862. //3是展示全部阶段 2学生 1老师 4专家
  863. } else if (e.data.screenType && e.data.screenType == "3") { //项目管理传入
  864. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  865. } else if (e.data.screenType && e.data.screenType == "3s") { //项目管理传入
  866. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  867. } else if (e.data.screenType && e.data.screenType == "2gm") { //项目管理传入
  868. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  869. //3是展示全部阶段 2学生 1老师 4专家
  870. } else if (e.data.screenType && e.data.screenType == "3gm") { //项目管理传入
  871. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  872. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  873. U.MD.D.I.selectUser();
  874. } else if (e.data.allScreen && e.data.allScreen == "1") {
  875. var _formel = document.getElementById("study");
  876. U.UF.F.windowZooming(_formel);
  877. } else if (e.data.allScreen && e.data.allScreen == "2") {
  878. var _formel = document.getElementById("studyDetail");
  879. U.UF.F.windowZooming(_formel);
  880. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  881. var _formel = document.getElementById("studyDetail");
  882. U.UF.F.windowZooming(_formel);
  883. } else if (e.data.allScreen && e.data.allScreen == "3") {
  884. var _formel = document.getElementById("studentStudy");
  885. U.UF.F.windowZooming(_formel);
  886. } else if (e.data.allScreen && e.data.allScreen == "6") {
  887. var _formel = document.getElementById("study");
  888. //如果最大化了,那么就把他缩小
  889. // if (_formel.ismaximize) {
  890. // return;
  891. // }
  892. // U.UF.F.windowZooming(_formel);
  893. U.UF.F.topWindow(_formel);
  894. } else if (e.data.allScreen && e.data.allScreen == "4") {
  895. var _formel = document.getElementById("studyDetail");
  896. //如果最大化了,那么就把他缩小
  897. // if (_formel.ismaximize) {
  898. // return;
  899. // }
  900. // U.UF.F.windowZooming(_formel);
  901. U.UF.F.topWindow(_formel);
  902. } else if (e.data.allScreen && e.data.allScreen == "5") {
  903. var _formel = document.getElementById("studentStudy");
  904. // if (_formel.ismaximize) {
  905. // return;
  906. // }
  907. // U.UF.F.windowZooming(_formel);
  908. U.UF.F.topWindow(_formel);
  909. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  910. var _formel = document.getElementById("study");
  911. // if (_formel.ismaximize) {
  912. // return;
  913. // }
  914. // U.UF.F.windowZooming(_formel);
  915. U.UF.F.topWindow(_formel);
  916. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  917. var _formel = document.getElementById("studyDetailS");
  918. U.UF.F.windowZooming(_formel);
  919. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  920. var _formel = document.getElementById("studyDetailS");
  921. U.UF.F.topWindow(_formel);
  922. } else if (e.data.tools && e.data.tools == "1") {
  923. // U.MD.D.I.openApplication("whiteboard")
  924. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  925. } else if (e.data.tools && e.data.tools == "2") {
  926. U.MD.D.I.openApplication("note")
  927. } else if (e.data.tools && e.data.tools == "3") {
  928. // U.MD.D.I.openApplication("mind")
  929. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  930. } else if (e.data.tools && e.data.tools == "4") {
  931. U.MD.D.I.openApplication("investigation")
  932. } else if (e.data.tools && e.data.tools == "6") {
  933. // U.MD.D.I.openApplication("doc")
  934. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  935. } else if (e.data.tools && e.data.tools == "7") {
  936. // U.MD.D.I.openApplication("mindNetwork")
  937. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  938. } else if (e.data.tools && e.data.tools == "8") {
  939. U.MD.D.I.openApplication("library")
  940. } else if (e.data.tools && e.data.tools == "17") {
  941. U.MD.D.I.openApplication("stuLibrary")
  942. } else if (e.data.tools && e.data.tools == "18") {
  943. U.MD.D.I.openApplication("train")
  944. } else if (e.data.tools && e.data.tools == "21") {
  945. U.MD.D.I.openApplication("program")
  946. } else if (e.data.tools && e.data.tools == "22") {
  947. U.MD.D.I.openApplication("AIprogram2")
  948. } else if (e.data.tools && e.data.tools == "23") {
  949. U.MD.D.I.openApplication("Pythonprogram")
  950. } else if (e.data.tools && e.data.tools == "24") {
  951. U.MD.D.I.openApplication("AIprogram")
  952. } else if (e.data.tools && e.data.tools == "25") {
  953. U.MD.D.I.openApplication("sys")
  954. } else if (e.data.tools && e.data.tools == "26") {
  955. // U.MD.D.I.openApplication("courseDesign")
  956. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  957. } else if (e.data.tools && e.data.tools == "31") {
  958. U.MD.D.I.openApplication("netWorkPanel")
  959. } else if (e.data.tools && e.data.tools == "32") {
  960. U.MD.D.I.openApplication("codeEdit")
  961. } else if (e.data.tools && e.data.tools == "28") {
  962. U.MD.D.I.openApplication("translation")
  963. } else if (e.data.tools && e.data.tools == "37") {
  964. U.MD.D.I.openApplication("mohe")
  965. } else if (e.data.tools && e.data.tools == "38") {
  966. U.MD.D.I.openApplication("24game")
  967. } else if (e.data.tools && e.data.tools == "39") {
  968. U.MD.D.I.openApplication("GeoGebra")
  969. } else if (e.data.tools && e.data.tools == "43") {
  970. U.MD.D.I.openApplication("studentEvaluate")
  971. } else if (e.data.tools && e.data.tools == "44") {
  972. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  973. } else if (e.data.tools && e.data.tools == "46") {
  974. U.MD.D.I.openApplication("project")
  975. } else if (e.data.tools && e.data.tools == "1s") {
  976. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  977. } else if (e.data.tools && e.data.tools == "3s") {
  978. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  979. } else if (e.data.tools && e.data.tools == "6s") {
  980. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  981. }
  982. });
  983. U.MD.D.I.selectUser = function () {
  984. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  985. if (res.value[0].length > 0) {
  986. US.userInfo = res.value[0][0];
  987. $(".userName")[0].innerHTML = US.userInfo.username;
  988. }
  989. }, [], { "type": "GET", "withCredentials": true });
  990. }
  991. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  992. var _userinfo = US.userInfo, //登录用户信息
  993. _userid = US.userInfo.userid, //登录用户id
  994. _oid = _userinfo.organizeid,
  995. _type = US.userInfo.type,
  996. _org = US.userInfo.org,
  997. _role = US.userInfo.role,
  998. _classId = US.userInfo.classid;
  999. if (_type == 4) {
  1000. tType = 4
  1001. }
  1002. switch (str) {
  1003. case "studyDetail":
  1004. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1005. setTimeout(() => {
  1006. U.MD.U.L.login();
  1007. }, 2000);
  1008. } else {
  1009. _formdiv = new U.UF.UI.form(
  1010. "项目详情",
  1011. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  1012. "id": "studyDetail",
  1013. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1014. "onresize": function () { }
  1015. }, {
  1016. closecallback: function () { }
  1017. }, { "style": { "height": "36px" } }).form; //创建窗体
  1018. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1019. break;
  1020. }
  1021. case "studyDetailS":
  1022. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1023. setTimeout(() => {
  1024. U.MD.U.L.login();
  1025. }, 2000);
  1026. } else {
  1027. _formdiv = new U.UF.UI.form(
  1028. "项目详情",
  1029. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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/#/courseDetailS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1030. "id": "studyDetailS",
  1031. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1032. "onresize": function () { }
  1033. }, {
  1034. closecallback: function () { }
  1035. }, { "style": { "height": "36px" } }).form; //创建窗体
  1036. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1037. break;
  1038. }
  1039. case "studyDetailGM":
  1040. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1041. setTimeout(() => {
  1042. U.MD.U.L.login();
  1043. }, 2000);
  1044. } else {
  1045. _formdiv = new U.UF.UI.form(
  1046. "项目详情",
  1047. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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/#/courseDetailGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1048. "id": "studyDetail",
  1049. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1050. "onresize": function () { }
  1051. }, {
  1052. closecallback: function () { }
  1053. }, { "style": { "height": "36px" } }).form; //创建窗体
  1054. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1055. break;
  1056. }
  1057. case "hanUrl":
  1058. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1059. setTimeout(() => {
  1060. U.MD.U.L.login();
  1061. }, 2000);
  1062. } else {
  1063. _formdiv = new U.UF.UI.form(
  1064. "汉字宫",
  1065. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//school.hanzigon.cn/?appid=734714090237947#/material/video?grade_id=62&lesson_code=621&id=2432" }), {
  1066. "id": "hanUrl",
  1067. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1068. "onresize": function () { }
  1069. }, {
  1070. closecallback: function () { }
  1071. }, { "style": { "height": "36px" } }).form; //创建窗体
  1072. _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); } }
  1073. break;
  1074. }
  1075. }
  1076. }
  1077. U.MD.D.I.openApplication = function (str, obj, info) {
  1078. obj = obj || {};
  1079. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1080. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1081. _userinfo = US.userInfo, //登录用户信息
  1082. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1083. _oid = obj.organizeid || _userinfo.organizeid,
  1084. _type = US.userInfo.type,
  1085. _org = US.userInfo.org,
  1086. _role = US.userInfo.role,
  1087. _classId = US.userInfo.classid,
  1088. _TscreenType = 1
  1089. _screenType = 2,
  1090. _SscreenType = 3;
  1091. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1092. switch (str) {
  1093. case "studnetProject": //好友打开
  1094. _formdiv = new U.UF.UI.form(
  1095. "我的项目",
  1096. $$("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 }), {
  1097. "id": "studnetProject",
  1098. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1099. "onresize": function () { }
  1100. }, {
  1101. closecallback: function () { }
  1102. }, { "style": { "height": "36px" } }).form; //创建窗体
  1103. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1104. break;
  1105. case "studentEvaluate": //好友打开
  1106. _formdiv = new U.UF.UI.form(
  1107. "我的评价",
  1108. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1109. "id": "studentEvaluate",
  1110. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1111. "onresize": function () { }
  1112. }, {
  1113. closecallback: function () { }
  1114. }, { "style": { "height": "36px" } }).form; //创建窗体
  1115. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1116. break;
  1117. case "my":
  1118. _formdiv = new U.UF.UI.form(
  1119. "我的资料",
  1120. $$("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 }), {
  1121. "id": "my",
  1122. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1123. "onresize": function () { }
  1124. }, {
  1125. closecallback: function () { }
  1126. }, { "style": { "height": "36px" } }).form; //创建窗体
  1127. _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); } }
  1128. break;
  1129. case "program":
  1130. _formdiv = new U.UF.UI.form(
  1131. "编程平台",
  1132. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1133. "id": "program",
  1134. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1135. "onresize": function () { }
  1136. }, {
  1137. closecallback: function () { }
  1138. }, { "style": { "height": "36px" } }).form; //创建窗体
  1139. _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); } }
  1140. break;
  1141. case "library":
  1142. _formdiv = new U.UF.UI.form(
  1143. "素材库",
  1144. $$("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 }), {
  1145. "id": "library",
  1146. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1147. "onresize": function () { }
  1148. }, {
  1149. closecallback: function () { }
  1150. }, { "style": { "height": "36px" } }).form; //创建窗体
  1151. _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); } }
  1152. break;
  1153. case "whiteboard":
  1154. _formdiv = new U.UF.UI.form(
  1155. "电子白板",
  1156. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1157. "id": "whiteboard",
  1158. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1159. "onresize": function () { }
  1160. }, {
  1161. closecallback: function () { }
  1162. }, { "style": { "height": "36px" } }).form; //创建窗体
  1163. _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); } }
  1164. break;
  1165. case "investigation":
  1166. _formdiv = new U.UF.UI.form(
  1167. "问卷调查",
  1168. $$("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 }), {
  1169. "id": "investigation",
  1170. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1171. "onresize": function () { }
  1172. }, {
  1173. closecallback: function () { }
  1174. }, { "style": { "height": "36px" } }).form; //创建窗体
  1175. _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); } }
  1176. break;
  1177. case "note":
  1178. _formdiv = new U.UF.UI.form(
  1179. "便签分类",
  1180. $$("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 }), {
  1181. "id": "note",
  1182. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1183. "onresize": function () { }
  1184. }, {
  1185. closecallback: function () { }
  1186. }, { "style": { "height": "36px" } }).form; //创建窗体
  1187. _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); } }
  1188. break;
  1189. // case "score":
  1190. // _formdiv = new U.UF.UI.form(
  1191. // "量规评分",
  1192. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1193. // "id": "score",
  1194. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1195. // "onresize": function() {}
  1196. // }, {
  1197. // closecallback: function() {}
  1198. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1199. // _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); } }
  1200. // break;
  1201. case "mind":
  1202. _formdiv = new U.UF.UI.form(
  1203. "思维导图",
  1204. $$("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"
  1205. "id": "mind",
  1206. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1207. "onresize": function () { }
  1208. }, {
  1209. closecallback: function () { }
  1210. }, { "style": { "height": "36px" } }).form; //创建窗体
  1211. _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); } }
  1212. break;
  1213. case "doc":
  1214. // U.MD.D.I.isRoom();
  1215. _formdiv = new U.UF.UI.form(
  1216. "协同文档",
  1217. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1218. "id": "doc",
  1219. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1220. "onresize": function () { }
  1221. }, {
  1222. closecallback: function () { }
  1223. }, { "style": { "height": "36px" } }).form; //创建窗体
  1224. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1225. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1226. // })
  1227. _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); } }
  1228. break;
  1229. case "studentStudy":
  1230. _formdiv = new U.UF.UI.form(
  1231. "学习中心",
  1232. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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
  1233. "id": "studentStudy",
  1234. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1235. "onresize": function () { }
  1236. }, {
  1237. closecallback: function () { }
  1238. }, { "style": { "height": "36px" } }).form; //创建窗体
  1239. _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); } }
  1240. break;
  1241. case "train": //好友打开
  1242. _formdiv = new U.UF.UI.form(
  1243. "训练平台",
  1244. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1245. "id": "train",
  1246. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1247. "onresize": function () { }
  1248. }, {
  1249. closecallback: function () { }
  1250. }, { "style": { "height": "36px" } }).form; //创建窗体
  1251. _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); } }
  1252. break;
  1253. case "mindNetwork": //好友打开
  1254. _formdiv = new U.UF.UI.form(
  1255. "思维网格",
  1256. $$("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 }), {
  1257. "id": "mindNetwork",
  1258. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1259. "onresize": function () { }
  1260. }, {
  1261. closecallback: function () { }
  1262. }, { "style": { "height": "36px" } }).form; //创建窗体
  1263. _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); } }
  1264. break;
  1265. case "studentClassRoom": //好友打开
  1266. _formdiv = new U.UF.UI.form(
  1267. "实时课堂",
  1268. $$("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 }), {
  1269. "id": "studentClassRoom",
  1270. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1271. "onresize": function () { }
  1272. }, {
  1273. closecallback: function () { }
  1274. }, { "style": { "height": "36px" } }).form; //创建窗体
  1275. _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); } }
  1276. setTimeout(() => {
  1277. U.UF.F.windowZooming(_formdiv)
  1278. }, 0);
  1279. break;
  1280. }
  1281. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1282. switch (str) {
  1283. case "studnetProject": //好友打开
  1284. _formdiv = new U.UF.UI.form(
  1285. "我的项目",
  1286. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  1287. "id": "studnetProject",
  1288. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1289. "onresize": function () { }
  1290. }, {
  1291. closecallback: function () { }
  1292. }, { "style": { "height": "36px" } }).form; //创建窗体
  1293. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1294. break;
  1295. case "studentEvaluate": //好友打开
  1296. _formdiv = new U.UF.UI.form(
  1297. "我的评价",
  1298. $$("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 }), {
  1299. "id": "studentEvaluate",
  1300. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1301. "onresize": function () { }
  1302. }, {
  1303. closecallback: function () { }
  1304. }, { "style": { "height": "36px" } }).form; //创建窗体
  1305. _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); } }
  1306. break;
  1307. case "my":
  1308. _formdiv = new U.UF.UI.form(
  1309. "我的资料",
  1310. $$("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 }), {
  1311. "id": "my",
  1312. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1313. "onresize": function () { }
  1314. }, {
  1315. closecallback: function () { }
  1316. }, { "style": { "height": "36px" } }).form; //创建窗体
  1317. _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); } }
  1318. break;
  1319. case "program":
  1320. _formdiv = new U.UF.UI.form(
  1321. "编程平台",
  1322. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1323. "id": "program",
  1324. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1325. "onresize": function () { }
  1326. }, {
  1327. closecallback: function () { }
  1328. }, { "style": { "height": "36px" } }).form; //创建窗体
  1329. _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); } }
  1330. break;
  1331. case "library":
  1332. _formdiv = new U.UF.UI.form(
  1333. "素材库",
  1334. $$("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 }), {
  1335. "id": "library",
  1336. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1337. "onresize": function () { }
  1338. }, {
  1339. closecallback: function () { }
  1340. }, { "style": { "height": "36px" } }).form; //创建窗体
  1341. _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); } }
  1342. break;
  1343. case "whiteboard":
  1344. _formdiv = new U.UF.UI.form(
  1345. "电子白板",
  1346. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1347. "id": "whiteboard",
  1348. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1349. "onresize": function () { }
  1350. }, {
  1351. closecallback: function () { }
  1352. }, { "style": { "height": "36px" } }).form; //创建窗体
  1353. _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); } }
  1354. break;
  1355. case "investigation":
  1356. _formdiv = new U.UF.UI.form(
  1357. "问卷调查",
  1358. $$("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 }), {
  1359. "id": "investigation",
  1360. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1361. "onresize": function () { }
  1362. }, {
  1363. closecallback: function () { }
  1364. }, { "style": { "height": "36px" } }).form; //创建窗体
  1365. _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); } }
  1366. break;
  1367. case "note":
  1368. _formdiv = new U.UF.UI.form(
  1369. "便签分类",
  1370. $$("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 }), {
  1371. "id": "note",
  1372. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1373. "onresize": function () { }
  1374. }, {
  1375. closecallback: function () { }
  1376. }, { "style": { "height": "36px" } }).form; //创建窗体
  1377. _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); } }
  1378. break;
  1379. // case "score":
  1380. // _formdiv = new U.UF.UI.form(
  1381. // "量规评分",
  1382. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1383. // "id": "score",
  1384. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1385. // "onresize": function() {}
  1386. // }, {
  1387. // closecallback: function() {}
  1388. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1389. // _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); } }
  1390. // break;
  1391. case "mind":
  1392. _formdiv = new U.UF.UI.form(
  1393. "思维导图",
  1394. $$("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"
  1395. "id": "mind",
  1396. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1397. "onresize": function () { }
  1398. }, {
  1399. closecallback: function () { }
  1400. }, { "style": { "height": "36px" } }).form; //创建窗体
  1401. _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); } }
  1402. break;
  1403. case "doc":
  1404. // U.MD.D.I.isRoom();
  1405. _formdiv = new U.UF.UI.form(
  1406. "协同文档",
  1407. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1408. "id": "doc",
  1409. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1410. "onresize": function () { }
  1411. }, {
  1412. closecallback: function () { }
  1413. }, { "style": { "height": "36px" } }).form; //创建窗体
  1414. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1415. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1416. })
  1417. _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); } }
  1418. break;
  1419. case "train": //好友打开
  1420. _formdiv = new U.UF.UI.form(
  1421. "训练平台",
  1422. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1423. "id": "train",
  1424. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1425. "onresize": function () { }
  1426. }, {
  1427. closecallback: function () { }
  1428. }, { "style": { "height": "36px" } }).form; //创建窗体
  1429. _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); } }
  1430. break;
  1431. case "studentStudy":
  1432. _formdiv = new U.UF.UI.form(
  1433. "学习中心",
  1434. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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
  1435. "id": "studentStudy",
  1436. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1437. "onresize": function () { }
  1438. }, {
  1439. closecallback: function () { }
  1440. }, { "style": { "height": "36px" } }).form; //创建窗体
  1441. _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); } }
  1442. break;
  1443. case "mindNetwork": //好友打开
  1444. _formdiv = new U.UF.UI.form(
  1445. "思维网格",
  1446. $$("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 }), {
  1447. "id": "mindNetwork",
  1448. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1449. "onresize": function () { }
  1450. }, {
  1451. closecallback: function () { }
  1452. }, { "style": { "height": "36px" } }).form; //创建窗体
  1453. _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); } }
  1454. break;
  1455. case "studentClassRoom": //好友打开
  1456. _formdiv = new U.UF.UI.form(
  1457. "实时课堂",
  1458. $$("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 }), {
  1459. "id": "studentClassRoom",
  1460. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1461. "onresize": function () { }
  1462. }, {
  1463. closecallback: function () { }
  1464. }, { "style": { "height": "36px" } }).form; //创建窗体
  1465. _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); } }
  1466. setTimeout(() => {
  1467. U.UF.F.windowZooming(_formdiv)
  1468. }, 0);
  1469. break;
  1470. }
  1471. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1472. //选择应用处理
  1473. switch (str) {
  1474. case "project": //好友打开
  1475. _formdiv = new U.UF.UI.form(
  1476. "项目管理",
  1477. $$("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 }), {
  1478. "id": "project",
  1479. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1480. "onresize": function () { }
  1481. }, {
  1482. closecallback: function () { }
  1483. }, { "style": { "height": "36px" } }).form; //创建窗体
  1484. _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); } }
  1485. break;
  1486. case "student":
  1487. _formdiv = new U.UF.UI.form(
  1488. "学生管理",
  1489. $$("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 }), {
  1490. "id": "student",
  1491. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1492. "onresize": function () { }
  1493. }, {
  1494. closecallback: function () { }
  1495. }, { "style": { "height": "36px" } }).form; //创建窗体
  1496. _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); } }
  1497. break;
  1498. case "evaluate":
  1499. _formdiv = new U.UF.UI.form(
  1500. "学生评价",
  1501. $$("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 }), {
  1502. "id": "evaluate",
  1503. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1504. "onresize": function () { }
  1505. }, {
  1506. closecallback: function () { }
  1507. }, { "style": { "height": "36px" } }).form; //创建窗体
  1508. _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); } }
  1509. break;
  1510. case "sys":
  1511. _formdiv = new U.UF.UI.form(
  1512. "目标管理",
  1513. $$("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 }), {
  1514. "id": "sys",
  1515. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1516. "onresize": function () { }
  1517. }, {
  1518. closecallback: function () { }
  1519. }, { "style": { "height": "36px" } }).form; //创建窗体
  1520. _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); } }
  1521. break;
  1522. case "courseDesign":
  1523. _formdiv = new U.UF.UI.form(
  1524. "课程设计",
  1525. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1526. "id": "courseDesign",
  1527. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1528. "onresize": function () { }
  1529. }, {
  1530. closecallback: function () { }
  1531. }, { "style": { "height": "36px" } }).form; //创建窗体
  1532. _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); } }
  1533. break;
  1534. case "program":
  1535. _formdiv = new U.UF.UI.form(
  1536. "编程平台",
  1537. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1538. "id": "program",
  1539. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1540. "onresize": function () { }
  1541. }, {
  1542. closecallback: function () { }
  1543. }, { "style": { "height": "36px" } }).form; //创建窗体
  1544. _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); } }
  1545. break;
  1546. case "class":
  1547. _formdiv = new U.UF.UI.form(
  1548. "班级管理",
  1549. $$("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 }), {
  1550. "id": "class",
  1551. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1552. "onresize": function () { }
  1553. }, {
  1554. closecallback: function () { }
  1555. }, { "style": { "height": "36px" } }).form; //创建窗体
  1556. _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); } }
  1557. break;
  1558. case "my":
  1559. _formdiv = new U.UF.UI.form(
  1560. "我的资料",
  1561. $$("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 }), {
  1562. "id": "my",
  1563. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1564. "onresize": function () { }
  1565. }, {
  1566. closecallback: function () { }
  1567. }, { "style": { "height": "36px" } }).form; //创建窗体
  1568. _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); } }
  1569. break;
  1570. case "notice":
  1571. _formdiv = new U.UF.UI.form(
  1572. "通知公告",
  1573. $$("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 }), {
  1574. "id": "notice",
  1575. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1576. "onresize": function () { }
  1577. }, {
  1578. closecallback: function () { }
  1579. }, { "style": { "height": "36px" } }).form; //创建窗体
  1580. _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); } }
  1581. break;
  1582. case "library":
  1583. _formdiv = new U.UF.UI.form(
  1584. "素材库",
  1585. $$("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 }), {
  1586. "id": "library",
  1587. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1588. "onresize": function () { }
  1589. }, {
  1590. closecallback: function () { }
  1591. }, { "style": { "height": "36px" } }).form; //创建窗体
  1592. _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); } }
  1593. break;
  1594. case "whiteboard":
  1595. _formdiv = new U.UF.UI.form(
  1596. "电子白板",
  1597. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1598. "id": "whiteboard",
  1599. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1600. "onresize": function () { }
  1601. }, {
  1602. closecallback: function () { }
  1603. }, { "style": { "height": "36px" } }).form; //创建窗体
  1604. _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); } }
  1605. break;
  1606. case "investigation":
  1607. _formdiv = new U.UF.UI.form(
  1608. "问卷调查",
  1609. $$("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 }), {
  1610. "id": "investigation",
  1611. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1612. "onresize": function () { }
  1613. }, {
  1614. closecallback: function () { }
  1615. }, { "style": { "height": "36px" } }).form; //创建窗体
  1616. _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); } }
  1617. break;
  1618. case "note":
  1619. _formdiv = new U.UF.UI.form(
  1620. "便签分类",
  1621. $$("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 }), {
  1622. "id": "note",
  1623. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1624. "onresize": function () { }
  1625. }, {
  1626. closecallback: function () { }
  1627. }, { "style": { "height": "36px" } }).form; //创建窗体
  1628. _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); } }
  1629. break;
  1630. // case "score":
  1631. // _formdiv = new U.UF.UI.form(
  1632. // "量规评分",
  1633. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1634. // "id": "score",
  1635. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1636. // "onresize": function() {}
  1637. // }, {
  1638. // closecallback: function() {}
  1639. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1640. // _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); } }
  1641. // break;
  1642. case "mind":
  1643. _formdiv = new U.UF.UI.form(
  1644. "思维导图",
  1645. $$("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"
  1646. "id": "mind",
  1647. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1648. "onresize": function () { }
  1649. }, {
  1650. closecallback: function () { }
  1651. }, { "style": { "height": "36px" } }).form; //创建窗体
  1652. _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); } }
  1653. break;
  1654. case "doc":
  1655. // U.MD.D.I.isRoom();
  1656. _formdiv = new U.UF.UI.form(
  1657. "协同文档",
  1658. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1659. "id": "doc",
  1660. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1661. "onresize": function () { }
  1662. }, {
  1663. closecallback: function () { }
  1664. }, { "style": { "height": "36px" } }).form; //创建窗体
  1665. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1666. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1667. })
  1668. _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); } }
  1669. break;
  1670. case "study":
  1671. _formdiv = new U.UF.UI.form(
  1672. "学习中心",
  1673. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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
  1674. "id": "study",
  1675. "style": { "width": "100%", "height": "100%", "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/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1681. break;
  1682. case "mindNetwork": //好友打开
  1683. _formdiv = new U.UF.UI.form(
  1684. "思维网格",
  1685. $$("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 }), {
  1686. "id": "mindNetwork",
  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/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1693. break;
  1694. case "train": //好友打开
  1695. _formdiv = new U.UF.UI.form(
  1696. "训练平台",
  1697. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1698. "id": "mindNetwork",
  1699. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1700. "onresize": function () { }
  1701. }, {
  1702. closecallback: function () { }
  1703. }, { "style": { "height": "36px" } }).form; //创建窗体
  1704. _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); } }
  1705. break;
  1706. case "teacherClassRoom": //好友打开
  1707. _formdiv = new U.UF.UI.form(
  1708. "实时课堂",
  1709. $$("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 }), {
  1710. "id": "teacherClassRoom",
  1711. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1712. "onresize": function () { }
  1713. }, {
  1714. closecallback: function () { }
  1715. }, { "style": { "height": "36px" } }).form; //创建窗体
  1716. _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); } }
  1717. setTimeout(() => {
  1718. U.UF.F.windowZooming(_formdiv)
  1719. }, 0);
  1720. break;
  1721. }
  1722. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1723. switch (str) {
  1724. case "project": //好友打开
  1725. _formdiv = new U.UF.UI.form(
  1726. "项目管理",
  1727. $$("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 }), {
  1728. "id": "project",
  1729. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1730. "onresize": function () { }
  1731. }, {
  1732. closecallback: function () { }
  1733. }, { "style": { "height": "36px" } }).form; //创建窗体
  1734. _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); } }
  1735. break;
  1736. case "evaluate":
  1737. _formdiv = new U.UF.UI.form(
  1738. "学生评价",
  1739. $$("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 }), {
  1740. "id": "evaluate",
  1741. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1742. "onresize": function () { }
  1743. }, {
  1744. closecallback: function () { }
  1745. }, { "style": { "height": "36px" } }).form; //创建窗体
  1746. _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); } }
  1747. break;
  1748. case "notice":
  1749. _formdiv = new U.UF.UI.form(
  1750. "通知公告",
  1751. $$("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 }), {
  1752. "id": "notice",
  1753. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1754. "onresize": function () { }
  1755. }, {
  1756. closecallback: function () { }
  1757. }, { "style": { "height": "36px" } }).form; //创建窗体
  1758. _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); } }
  1759. break;
  1760. case "stuLibrary":
  1761. _formdiv = new U.UF.UI.form(
  1762. "学习资料",
  1763. $$("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 }), {
  1764. "id": "stuLibrary",
  1765. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1766. "onresize": function () { }
  1767. }, {
  1768. closecallback: function () { }
  1769. }, { "style": { "height": "36px" } }).form; //创建窗体
  1770. _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); } }
  1771. break;
  1772. case "program":
  1773. _formdiv = new U.UF.UI.form(
  1774. "编程平台",
  1775. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1776. "id": "program",
  1777. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1778. "onresize": function () { }
  1779. }, {
  1780. closecallback: function () { }
  1781. }, { "style": { "height": "36px" } }).form; //创建窗体
  1782. _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); } }
  1783. break;
  1784. case "whiteboard":
  1785. _formdiv = new U.UF.UI.form(
  1786. "电子白板",
  1787. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1788. "id": "whiteboard",
  1789. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1790. "onresize": function () { }
  1791. }, {
  1792. closecallback: function () { }
  1793. }, { "style": { "height": "36px" } }).form; //创建窗体
  1794. _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); } }
  1795. break;
  1796. case "investigation":
  1797. _formdiv = new U.UF.UI.form(
  1798. "问卷调查",
  1799. $$("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 }), {
  1800. "id": "investigation",
  1801. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1802. "onresize": function () { }
  1803. }, {
  1804. closecallback: function () { }
  1805. }, { "style": { "height": "36px" } }).form; //创建窗体
  1806. _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); } }
  1807. break;
  1808. case "mind":
  1809. _formdiv = new U.UF.UI.form(
  1810. "思维导图",
  1811. $$("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"
  1812. "id": "mind",
  1813. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1814. "onresize": function () { }
  1815. }, {
  1816. closecallback: function () { }
  1817. }, { "style": { "height": "36px" } }).form; //创建窗体
  1818. _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); } }
  1819. break;
  1820. case "doc":
  1821. // U.MD.D.I.isRoom();
  1822. _formdiv = new U.UF.UI.form(
  1823. "协同文档",
  1824. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1825. "id": "doc",
  1826. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1827. "onresize": function () { }
  1828. }, {
  1829. closecallback: function () { }
  1830. }, { "style": { "height": "36px" } }).form; //创建窗体
  1831. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1832. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1833. })
  1834. _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); } }
  1835. break;
  1836. case "study":
  1837. _formdiv = new U.UF.UI.form(
  1838. "学习中心",
  1839. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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
  1840. "id": "study",
  1841. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1842. "onresize": function () { }
  1843. }, {
  1844. closecallback: function () { }
  1845. }, { "style": { "height": "36px" } }).form; //创建窗体
  1846. _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); } }
  1847. break;
  1848. case "mindNetwork": //好友打开
  1849. _formdiv = new U.UF.UI.form(
  1850. "思维网格",
  1851. $$("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 }), {
  1852. "id": "mindNetwork",
  1853. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1854. "onresize": function () { }
  1855. }, {
  1856. closecallback: function () { }
  1857. }, { "style": { "height": "36px" } }).form; //创建窗体
  1858. _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); } }
  1859. break;
  1860. case "train": //好友打开
  1861. _formdiv = new U.UF.UI.form(
  1862. "训练平台",
  1863. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1864. "id": "train",
  1865. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1866. "onresize": function () { }
  1867. }, {
  1868. closecallback: function () { }
  1869. }, { "style": { "height": "36px" } }).form; //创建窗体
  1870. _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); } }
  1871. break;
  1872. case "sys":
  1873. _formdiv = new U.UF.UI.form(
  1874. "目标管理",
  1875. $$("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 }), {
  1876. "id": "sys",
  1877. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1878. "onresize": function () { }
  1879. }, {
  1880. closecallback: function () { }
  1881. }, { "style": { "height": "36px" } }).form; //创建窗体
  1882. _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); } }
  1883. break;
  1884. case "courseDesign":
  1885. _formdiv = new U.UF.UI.form(
  1886. "课程设计",
  1887. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1888. "id": "courseDesign",
  1889. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1890. "onresize": function () { }
  1891. }, {
  1892. closecallback: function () { }
  1893. }, { "style": { "height": "36px" } }).form; //创建窗体
  1894. _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); } }
  1895. break;
  1896. }
  1897. } else if (!_type) {
  1898. switch (str) {
  1899. case "my":
  1900. _formdiv = new U.UF.UI.form(
  1901. "我的资料",
  1902. $$("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 }), {
  1903. "id": "my",
  1904. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1905. "onresize": function () { }
  1906. }, {
  1907. closecallback: function () { }
  1908. }, { "style": { "height": "36px" } }).form; //创建窗体
  1909. _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); } }
  1910. break;
  1911. }
  1912. }
  1913. switch (str) {
  1914. // AIprogram2 AI体验 aihub.cocorobo.cn
  1915. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  1916. // AIprogram AI编程 ai-blockly.cocorobo.cn
  1917. case "AIprogram2": //AI体验
  1918. _formdiv = new U.UF.UI.form(
  1919. "AI体验",
  1920. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  1921. "id": "AIprogram2",
  1922. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1923. "onresize": function () { }
  1924. }, {
  1925. closecallback: function () { }
  1926. }, { "style": { "height": "36px" } }).form; //创建窗体
  1927. _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); } }
  1928. break;
  1929. case "Pythonprogram": //python编程
  1930. _formdiv = new U.UF.UI.form(
  1931. "Python编程",
  1932. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  1933. "id": "Pythonprogram",
  1934. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1935. "onresize": function () { }
  1936. }, {
  1937. closecallback: function () { }
  1938. }, { "style": { "height": "36px" } }).form; //创建窗体
  1939. _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); } }
  1940. break;
  1941. case "AIprogram": //ai编程
  1942. _formdiv = new U.UF.UI.form(
  1943. "AI编程平台",
  1944. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  1945. "id": "AIprogram",
  1946. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1947. "onresize": function () { }
  1948. }, {
  1949. closecallback: function () { }
  1950. }, { "style": { "height": "36px" } }).form; //创建窗体
  1951. _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); } }
  1952. break;
  1953. case "resources": //国家教育
  1954. _formdiv = new U.UF.UI.form(
  1955. "国家教育",
  1956. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  1957. "id": "resources",
  1958. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1959. "onresize": function () { }
  1960. }, {
  1961. closecallback: function () { }
  1962. }, { "style": { "height": "36px" } }).form; //创建窗体
  1963. _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); } }
  1964. break;
  1965. case "codeEdit": //源码编辑
  1966. _formdiv = new U.UF.UI.form(
  1967. "源码编辑",
  1968. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  1969. "id": "codeEdit",
  1970. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1971. "onresize": function () { }
  1972. }, {
  1973. closecallback: function () { }
  1974. }, { "style": { "height": "36px" } }).form; //创建窗体
  1975. _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); } }
  1976. break; //
  1977. case "MindMap": //MindMap
  1978. _formdiv = new U.UF.UI.form(
  1979. "MindMap",
  1980. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  1981. "id": "MindMap",
  1982. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1983. "onresize": function () { }
  1984. }, {
  1985. closecallback: function () { }
  1986. }, { "style": { "height": "36px" } }).form; //创建窗体
  1987. _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); } }
  1988. break;
  1989. case "netWorkPanel": //netWorkPanel
  1990. _formdiv = new U.UF.UI.form(
  1991. "netWorkPanel",
  1992. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  1993. "id": "netWorkPanel",
  1994. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1995. "onresize": function () { }
  1996. }, {
  1997. closecallback: function () { }
  1998. }, { "style": { "height": "36px" } }).form; //创建窗体
  1999. _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); } }
  2000. break;
  2001. case "GeoGebra": //GeoGebra
  2002. _formdiv = new U.UF.UI.form(
  2003. "GeoGebra",
  2004. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  2005. "id": "GeoGebra",
  2006. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2007. "onresize": function () { }
  2008. }, {
  2009. closecallback: function () { }
  2010. }, { "style": { "height": "36px" } }).form; //创建窗体
  2011. _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); } }
  2012. break;
  2013. case "translation": //翻译
  2014. _formdiv = new U.UF.UI.form(
  2015. "翻译",
  2016. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2017. "id": "translation",
  2018. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2019. "onresize": function () { }
  2020. }, {
  2021. closecallback: function () { }
  2022. }, { "style": { "height": "36px" } }).form; //创建窗体
  2023. _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); } }
  2024. break;
  2025. case "mohe": //魔盒
  2026. _formdiv = new U.UF.UI.form(
  2027. "魔盒识字",
  2028. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2029. "id": "mohe",
  2030. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2031. "onresize": function () { }
  2032. }, {
  2033. closecallback: function () { }
  2034. }, { "style": { "height": "36px" } }).form; //创建窗体
  2035. _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); } }
  2036. break;
  2037. case "24game": //24点
  2038. _formdiv = new U.UF.UI.form(
  2039. "24点",
  2040. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2041. "id": "24game",
  2042. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2043. "onresize": function () { }
  2044. }, {
  2045. closecallback: function () { }
  2046. }, { "style": { "height": "36px" } }).form; //创建窗体
  2047. _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); } }
  2048. break;
  2049. case "case":
  2050. _formdiv = new U.UF.UI.form(
  2051. "项目进展",
  2052. $$("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 }), {
  2053. "id": "case",
  2054. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2055. "onresize": function () { }
  2056. }, {
  2057. closecallback: function () { }
  2058. }, { "style": { "height": "36px" } }).form; //创建窗体
  2059. _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); } }
  2060. break;
  2061. case "snf":
  2062. _formdiv = new U.UF.UI.form(
  2063. "赛诺梵",
  2064. $$("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" }), {
  2065. "id": "snf",
  2066. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2067. "onresize": function () { }
  2068. }, {
  2069. closecallback: function () { }
  2070. }, { "style": { "height": "36px" } }).form; //创建窗体
  2071. _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); } }
  2072. break;
  2073. case "hanFamily":
  2074. _formdiv = new U.UF.UI.form(
  2075. "汉字家族",
  2076. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2077. "id": "hanFamily",
  2078. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2079. "onresize": function () { }
  2080. }, {
  2081. closecallback: function () { }
  2082. }, { "style": { "height": "36px" } }).form; //创建窗体
  2083. _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); } }
  2084. break;
  2085. case "hanClassics":
  2086. _formdiv = new U.UF.UI.form(
  2087. "国学经典",
  2088. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2089. "id": "hanClassics",
  2090. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2091. "onresize": function () { }
  2092. }, {
  2093. closecallback: function () { }
  2094. }, { "style": { "height": "36px" } }).form; //创建窗体
  2095. _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); } }
  2096. break;
  2097. case "hanTraining":
  2098. _formdiv = new U.UF.UI.form(
  2099. "笔画训练",
  2100. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2101. "id": "hanTraining",
  2102. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2103. "onresize": function () { }
  2104. }, {
  2105. closecallback: function () { }
  2106. }, { "style": { "height": "36px" } }).form; //创建窗体
  2107. _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); } }
  2108. break;
  2109. case "hanClass":
  2110. _formdiv = new U.UF.UI.form(
  2111. "书法课堂",
  2112. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2113. "id": "hanClass",
  2114. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2115. "onresize": function () { }
  2116. }, {
  2117. closecallback: function () { }
  2118. }, { "style": { "height": "36px" } }).form; //创建窗体
  2119. _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); } }
  2120. break;
  2121. case "han":
  2122. _formdiv = new U.UF.UI.form(
  2123. "汉字宫",
  2124. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2125. "id": "han",
  2126. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2127. "onresize": function () { }
  2128. }, {
  2129. closecallback: function () { }
  2130. }, { "style": { "height": "36px" } }).form; //创建窗体
  2131. _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); } }
  2132. break;
  2133. case "projectGM": //项目管理
  2134. _formdiv = new U.UF.UI.form(
  2135. "项目管理",
  2136. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/courseGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2137. "id": "projectGM",
  2138. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2139. "onresize": function () { }
  2140. }, {
  2141. closecallback: function () { }
  2142. }, { "style": { "height": "36px" } }).form; //创建窗体
  2143. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/courseMange.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2144. break;
  2145. case "studyGM"://学习中心
  2146. _formdiv = new U.UF.UI.form(
  2147. "学习中心",
  2148. $$("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/#/indexGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2149. "id": "study",
  2150. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2151. "onresize": function () { }
  2152. }, {
  2153. closecallback: function () { }
  2154. }, { "style": { "height": "36px" } }).form; //创建窗体
  2155. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2156. break;
  2157. // studentGM
  2158. case "studentGM"://学生管理
  2159. _formdiv = new U.UF.UI.form(
  2160. "学生管理",
  2161. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/studentGM?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  2162. "id": "studentGM",
  2163. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2164. "onresize": function () { }
  2165. }, {
  2166. closecallback: function () { }
  2167. }, { "style": { "height": "36px" } }).form; //创建窗体
  2168. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2169. break;
  2170. case "evaluateGM"://学生评价
  2171. _formdiv = new U.UF.UI.form(
  2172. "学生评价",
  2173. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2174. "id": "evaluateGM",
  2175. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2176. "onresize": function () { }
  2177. }, {
  2178. closecallback: function () { }
  2179. }, { "style": { "height": "36px" } }).form; //创建窗体
  2180. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/evaluate.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2181. break;
  2182. // classGM
  2183. case "classGM"://班级管理
  2184. _formdiv = new U.UF.UI.form(
  2185. "班级管理",
  2186. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/classGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2187. "id": "classGM",
  2188. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2189. "onresize": function () { }
  2190. }, {
  2191. closecallback: function () { }
  2192. }, { "style": { "height": "36px" } }).form; //创建窗体
  2193. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2194. break;
  2195. // dataGM
  2196. case "dataGM":
  2197. _formdiv = new U.UF.UI.form(
  2198. "我的资料",
  2199. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/dataGM?userid=" + _userid + "&org=" + _org }), {
  2200. "id": "dataGM",
  2201. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2202. "onresize": function () { }
  2203. }, {
  2204. closecallback: function () { }
  2205. }, { "style": { "height": "36px" } }).form; //创建窗体
  2206. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/data.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2207. break;
  2208. // caseGM
  2209. case "caseGM"://项目进展
  2210. _formdiv = new U.UF.UI.form(
  2211. "项目进展",
  2212. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/CaseDesignGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2213. "id": "caseGM",
  2214. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2215. "onresize": function () { }
  2216. }, {
  2217. closecallback: function () { }
  2218. }, { "style": { "height": "36px" } }).form; //创建窗体
  2219. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/case.png)" }, "name": "项目进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2220. break;
  2221. // meterialGM
  2222. case "meterialGM"://素材库
  2223. _formdiv = new U.UF.UI.form(
  2224. "素材库",
  2225. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/libraryGM?userid=" + _userid + "&org=" + _org }), {
  2226. "id": "meterialGM",
  2227. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2228. "onresize": function () { }
  2229. }, {
  2230. closecallback: function () { }
  2231. }, { "style": { "height": "36px" } }).form; //创建窗体
  2232. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/material.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2233. break;
  2234. // evaluateSGM
  2235. case "evaluateSGM": //我的评价
  2236. _formdiv = new U.UF.UI.form(
  2237. "我的评价",
  2238. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2239. "id": "evaluateSGM",
  2240. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2241. "onresize": function () { }
  2242. }, {
  2243. closecallback: function () { }
  2244. }, { "style": { "height": "36px" } }).form; //创建窗体
  2245. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/evaluate.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2246. break;
  2247. case "jupyter": //jupyter
  2248. _formdiv = new U.UF.UI.form(
  2249. "jupyter",
  2250. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  2251. "id": "jupyter",
  2252. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2253. "onresize": function () { }
  2254. }, {
  2255. closecallback: function () { }
  2256. }, { "style": { "height": "36px" } }).form; //创建窗体
  2257. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/jupyter.png)" }, "name": "jupyter", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2258. break;
  2259. case "number": //数字实验室
  2260. _formdiv = new U.UF.UI.form(
  2261. "数字实验室",
  2262. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  2263. "id": "number",
  2264. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2265. "onresize": function () { }
  2266. }, {
  2267. closecallback: function () { }
  2268. }, { "style": { "height": "36px" } }).form; //创建窗体
  2269. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/number.png)" }, "name": "数字实验室", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2270. break;
  2271. case "studentCourse": //学生项目 学生
  2272. _formdiv = new U.UF.UI.form(
  2273. _org == "150e3120-9195-11ed-b13d-005056b86db5" ? "师生项目" : "学生项目",
  2274. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/studentCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2275. "id": "studentCourse",
  2276. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2277. "onresize": function () { }
  2278. }, {
  2279. closecallback: function () { }
  2280. }, { "style": { "height": "36px" } }).form; //创建窗体
  2281. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "学生项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2282. break;
  2283. case "studentCourseS": //学生项目 老师
  2284. _formdiv = new U.UF.UI.form(
  2285. _org == "150e3120-9195-11ed-b13d-005056b86db5" ? "师生项目" : "学生项目",
  2286. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/scourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2287. "id": "studentCourseS",
  2288. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2289. "onresize": function () { }
  2290. }, {
  2291. closecallback: function () { }
  2292. }, { "style": { "height": "36px" } }).form; //创建窗体
  2293. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "学生项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2294. break;
  2295. case "tcStudent": //腾讯学生管理
  2296. _formdiv = new U.UF.UI.form(
  2297. "学生管理",
  2298. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/tcStudent?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2299. "id": "tcStudent",
  2300. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2301. "onresize": function () { }
  2302. }, {
  2303. closecallback: function () { }
  2304. }, { "style": { "height": "36px" } }).form; //创建窗体
  2305. _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); } }
  2306. break;
  2307. case "tcSchool": //腾讯学校管理
  2308. _formdiv = new U.UF.UI.form(
  2309. "学校管理",
  2310. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/tcSchool?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2311. "id": "tcSchool",
  2312. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2313. "onresize": function () { }
  2314. }, {
  2315. closecallback: function () { }
  2316. }, { "style": { "height": "36px" } }).form; //创建窗体
  2317. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/school.png)" }, "name": "学校管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2318. break;
  2319. case "tcTeacher": //腾讯学校管理
  2320. _formdiv = new U.UF.UI.form(
  2321. "教师管理",
  2322. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/tcTeacher?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2323. "id": "tcTeacher",
  2324. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2325. "onresize": function () { }
  2326. }, {
  2327. closecallback: function () { }
  2328. }, { "style": { "height": "36px" } }).form; //创建窗体
  2329. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/teacher.png)" }, "name": "教师管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2330. break;
  2331. case "tcData": //腾讯我的资料
  2332. _formdiv = new U.UF.UI.form(
  2333. "我的资料",
  2334. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/tcData?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2335. "id": "tcData",
  2336. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2337. "onresize": function () { }
  2338. }, {
  2339. closecallback: function () { }
  2340. }, { "style": { "height": "36px" } }).form; //创建窗体
  2341. _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); } }
  2342. break;
  2343. case "tcNotice": //腾讯消息通知
  2344. _formdiv = new U.UF.UI.form(
  2345. "消息通知",
  2346. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/tcNotice?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2347. "id": "tcNotice",
  2348. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2349. "onresize": function () { }
  2350. }, {
  2351. closecallback: function () { }
  2352. }, { "style": { "height": "36px" } }).form; //创建窗体
  2353. _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); } }
  2354. break;
  2355. }
  2356. //U.MD.D.I.openClick(str);
  2357. //如果有任务栏信息
  2358. if (_taskbar) {
  2359. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2360. }
  2361. }
  2362. // U.MD.D.I.openClick = function(str){
  2363. // var click = '';
  2364. // switch(str){
  2365. // case 'friend':
  2366. // click = '我的好友';
  2367. // break;
  2368. // case 'domain':
  2369. // click = '域名管理';
  2370. // break;
  2371. // case 'disk':
  2372. // click = '我的云盘';
  2373. // break;
  2374. // case 'word':
  2375. // click = 'Word';
  2376. // break;
  2377. // case 'excel':
  2378. // click = 'Execl';
  2379. // break;
  2380. // case 'txt':
  2381. // click = '文本文件';
  2382. // break;
  2383. // case 'lookupFriend':
  2384. // click = '查找好友';
  2385. // break;
  2386. // case 'ftp':
  2387. // click = 'FTP';
  2388. // break;
  2389. // case 'group':
  2390. // click = '群组';
  2391. // break;
  2392. // case 'set':
  2393. // click = '我的设置';
  2394. // break;
  2395. // case 'systemSet':
  2396. // click = '系统设置';
  2397. // break;
  2398. // case 'boomYun':
  2399. // click = '互联办公';
  2400. // break;
  2401. // case 'xz':
  2402. // click = '云端下载';
  2403. // break;
  2404. // case 'client':
  2405. // click = '有思浏览器';
  2406. // break;
  2407. // case 'backEndProgramming':
  2408. // click = '在线后台编程';
  2409. // break;
  2410. // case 'frontEndProgramming':
  2411. // click = '在线前端编程';
  2412. // break;
  2413. // default: break;
  2414. // }
  2415. // if(U.MD.D.I.Ip && click){
  2416. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  2417. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  2418. // })
  2419. // }
  2420. // }
  2421. /**
  2422. *函数作用:ajax简易函数,使用post格式
  2423. *@param url {data} 后台地址
  2424. *@param data {data} 参数json
  2425. *@param fn {data} 回调函数
  2426. *
  2427. */
  2428. // U.MD.D.I.Mysqlrequest = function(url,fn){
  2429. // var xhr = new XMLHttpRequest();
  2430. // xhr.open("GET",url,true);
  2431. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  2432. // xhr.onreadystatechange = function(){
  2433. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  2434. // fn.call(this,xhr.responseText);
  2435. // }
  2436. // };
  2437. // xhr.send();
  2438. // }
  2439. /*判断是否是内网IP*/
  2440. // U.MD.D.I.isInnerIPFn = function(str){
  2441. // var curPageUrl = str;
  2442. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  2443. // curPageUrl =curPageUrl.replace(reg1,'');
  2444. // // console.log('curPageUrl-1 '+curPageUrl);
  2445. // var reg2 = /\:+/g;//替换冒号为一点
  2446. // curPageUrl =curPageUrl.replace(reg2,'.');
  2447. // // console.log('curPageUrl-2 '+curPageUrl);
  2448. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  2449. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  2450. // if(curPageUrl[2] != '16'){
  2451. // return ipAddress;
  2452. // }else{
  2453. // return false;
  2454. // }
  2455. // }
  2456. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  2457. // //compatibility for firefox and chrome
  2458. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  2459. // var pc = new myPeerConnection({
  2460. // iceServers: []
  2461. // }),
  2462. // noop = function() {},
  2463. // localIPs = {},
  2464. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  2465. // key;
  2466. // function iterateIP(ip) {
  2467. // if (!localIPs[ip]) onNewIP(ip);
  2468. // localIPs[ip] = true;
  2469. // }
  2470. // //create a bogus data channel
  2471. // pc.createDataChannel("");
  2472. // // create offer and set local description
  2473. // pc.createOffer().then(function(sdp) {
  2474. // sdp.sdp.split('\n').forEach(function(line) {
  2475. // if (line.indexOf('candidate') < 0) return;
  2476. // line.match(ipRegex).forEach(iterateIP);
  2477. // });
  2478. // pc.setLocalDescription(sdp, noop, noop);
  2479. // }).catch(function(reason) {
  2480. // // An error occurred, so handle the failure to connect
  2481. // });
  2482. // //sten for candidate events
  2483. // pc.onicecandidate = function(ice) {
  2484. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  2485. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  2486. // };
  2487. // }
  2488. // U.MD.D.I.getUserIpBool = function(callback){
  2489. // U.MD.D.I.getUserIP(function(ip){
  2490. // alert("Got IP! :" + ip);
  2491. // });
  2492. //}
  2493. //#endregion
  2494. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  2495. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2496. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2497. _userinfo = US.userInfo, //登录用户信息
  2498. _userid = US.userInfo.userid //登录用户id
  2499. let _iframe;
  2500. let _cid = cid,
  2501. _stage = stage,
  2502. _task = task,
  2503. _tool = tool;
  2504. var _jie = $$("div", {
  2505. "style": {
  2506. "position": "absolute",
  2507. "bottom": "50px",
  2508. "right": "50px",
  2509. "zIndex": "9999",
  2510. "backgroundColor": "#2268bc",
  2511. "color": "#fff",
  2512. "padding": "12px 20px",
  2513. "cursor": "pointer",
  2514. "borderRadius": "4px",
  2515. },
  2516. "innerHTML": "提交作业"
  2517. })
  2518. let aTool = ''
  2519. let _loading = document.createElement('div')
  2520. _loading.style = "width:100%;height:100%;background:#00000000;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
  2521. // _loading.id = "";
  2522. let _lchild = document.createElement('div')
  2523. let _limg = document.createElement('img')
  2524. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  2525. _limg.style = "width: 26px;margin-right: 10px;"
  2526. _lchild.appendChild(_limg)
  2527. let _lspan = document.createElement('span')
  2528. _lspan.innerHTML = "上传中..."
  2529. _lchild.appendChild(_lspan)
  2530. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  2531. _loading.appendChild(_lchild)
  2532. var _box = $$('div', {
  2533. "style": {
  2534. "position": "relative",
  2535. "width": "100%",
  2536. "height": "100%",
  2537. },
  2538. })
  2539. _box.appendChild(_loading)
  2540. _box.id = str + '_loadLi'
  2541. switch (str) {
  2542. case "whiteboard":
  2543. aTool = 1;
  2544. _iframe = $$("iframe", {
  2545. "frameborder": "no",
  2546. "border": "0",
  2547. "scrolling ": "no",
  2548. "style": {
  2549. "cssText": "border:0;width:100%;height:100%"
  2550. },
  2551. "src": "https://iwb.cocorobo.cn/"
  2552. })
  2553. _box.appendChild(_iframe);
  2554. _box.appendChild(_jie);
  2555. _formdiv = new U.UF.UI.form(
  2556. "电子白板",
  2557. _box, {
  2558. "id": "whiteboard" + cid + stage + task + tool,
  2559. "style": {
  2560. "width": "90%",
  2561. "height": "90%",
  2562. "overflow": 'hidden'
  2563. },
  2564. "onresize": function () { }
  2565. }, {
  2566. closecallback: function () { }
  2567. }, {
  2568. "style": {
  2569. "height": "36px"
  2570. }
  2571. }).form; //创建窗体
  2572. _taskbar = {
  2573. "id": str + _formdiv.id,
  2574. "style": {
  2575. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  2576. },
  2577. "name": "电子白板",
  2578. "forms": _formdiv,
  2579. "click": function () {
  2580. U.MD.D.I.openApplication(str, obj, info);
  2581. }
  2582. }
  2583. break;
  2584. case "mind":
  2585. aTool = 3;
  2586. _iframe = $$("iframe", {
  2587. "frameborder": "no",
  2588. "border": "0",
  2589. "scrolling ": "no",
  2590. "style": {
  2591. "cssText": "border:0;width:100%;height:100%"
  2592. },
  2593. "src": "/kityminder-editor/dist/index.html"
  2594. })
  2595. _box.appendChild(_iframe);
  2596. _box.appendChild(_jie);
  2597. _formdiv = new U.UF.UI.form(
  2598. "思维导图",
  2599. _box, { //"/jsmind/example/demo.html"
  2600. "id": "mind" + cid + stage + task + tool,
  2601. "style": {
  2602. "width": "90%",
  2603. "height": "90%",
  2604. "overflow": 'hidden'
  2605. },
  2606. "onresize": function () { }
  2607. }, {
  2608. closecallback: function () { }
  2609. }, {
  2610. "style": {
  2611. "height": "36px"
  2612. }
  2613. }).form; //创建窗体
  2614. _taskbar = {
  2615. "id": str + _formdiv.id,
  2616. "style": {
  2617. "backgroundImage": "url(/img/icon/mindMapping.png)"
  2618. },
  2619. "name": "思维导图",
  2620. "forms": _formdiv,
  2621. "click": function () {
  2622. U.MD.D.I.openApplication(str, obj, info);
  2623. }
  2624. }
  2625. break;
  2626. case "MindMap":
  2627. aTool = 3;
  2628. _iframe = $$("iframe", {
  2629. "frameborder": "no",
  2630. "border": "0",
  2631. "scrolling ": "no",
  2632. "style": {
  2633. "cssText": "border:0;width:100%;height:100%"
  2634. },
  2635. "src": "//cloud.cocorobo.cn/mind/"
  2636. })
  2637. _box.appendChild(_iframe);
  2638. _box.appendChild(_jie);
  2639. _formdiv = new U.UF.UI.form(
  2640. "思维导图",
  2641. _box, { //"/jsmind/example/demo.html"
  2642. "id": "mind" + cid + stage + task + tool,
  2643. "style": {
  2644. "width": "90%",
  2645. "height": "90%",
  2646. "overflow": 'hidden'
  2647. },
  2648. "onresize": function () { }
  2649. }, {
  2650. closecallback: function () { }
  2651. }, {
  2652. "style": {
  2653. "height": "36px"
  2654. }
  2655. }).form; //创建窗体
  2656. _taskbar = {
  2657. "id": str + _formdiv.id,
  2658. "style": {
  2659. "backgroundImage": "url(/img/icon/mindMapping.png)"
  2660. },
  2661. "name": "思维导图",
  2662. "forms": _formdiv,
  2663. "click": function () {
  2664. U.MD.D.I.openApplication(str, obj, info);
  2665. }
  2666. }
  2667. break;
  2668. case "doc":
  2669. aTool = 6;
  2670. _iframe = $$("iframe", {
  2671. "frameborder": "no",
  2672. "border": "0",
  2673. "scrolling ": "no",
  2674. "style": {
  2675. "cssText": "border:0;width:100%;height:100%"
  2676. },
  2677. "src": "/Office/Word/WordEditArea.htm"
  2678. })
  2679. _box.appendChild(_iframe);
  2680. _box.appendChild(_jie);
  2681. _formdiv = new U.UF.UI.form(
  2682. "协同文档",
  2683. _box, {
  2684. "id": "doc" + cid + stage + task + tool,
  2685. "style": {
  2686. "width": "90%",
  2687. "height": "90%",
  2688. "overflow": 'hidden'
  2689. },
  2690. "onresize": function () { }
  2691. }, {
  2692. closecallback: function () { }
  2693. }, {
  2694. "style": {
  2695. "height": "36px"
  2696. }
  2697. }).form; //创建窗体
  2698. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2699. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  2700. })
  2701. _taskbar = {
  2702. "id": str + _formdiv.id,
  2703. "style": {
  2704. "backgroundImage": "url(/img/icon/doc.png)"
  2705. },
  2706. "name": "协同文档",
  2707. "forms": _formdiv,
  2708. "click": function () {
  2709. U.MD.D.I.openApplication(str, obj, info);
  2710. }
  2711. }
  2712. break;
  2713. case "mindNetwork": //好友打开
  2714. aTool = 7;
  2715. _iframe = $$("iframe", {
  2716. "webkitallowfullscreen": "",
  2717. "mozallowfullscreen": "",
  2718. "allowfullscreen": "",
  2719. "frameborder": "no",
  2720. "border": "0",
  2721. "scrolling ": "no",
  2722. "style": {
  2723. "cssText": "border:0; width:100%; height:100%;"
  2724. },
  2725. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  2726. })
  2727. _box.appendChild(_iframe);
  2728. _box.appendChild(_jie);
  2729. _formdiv = new U.UF.UI.form(
  2730. "思维网格",
  2731. _box, {
  2732. "id": "mindNetwork" + cid + stage + task + tool,
  2733. "style": {
  2734. "width": "90%",
  2735. "height": "90%",
  2736. "overflow": 'hidden'
  2737. },
  2738. "onresize": function () { }
  2739. }, {
  2740. closecallback: function () { }
  2741. }, {
  2742. "style": {
  2743. "height": "36px"
  2744. }
  2745. }).form; //创建窗体
  2746. _taskbar = {
  2747. "id": str + _formdiv.id,
  2748. "style": {
  2749. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  2750. },
  2751. "name": "思维网格",
  2752. "forms": _formdiv,
  2753. "click": function () {
  2754. U.MD.D.I.openApplication(str, obj, info);
  2755. }
  2756. }
  2757. break;
  2758. case "courseDesign":
  2759. _iframe = $$("iframe", {
  2760. "webkitallowfullscreen": "",
  2761. "mozallowfullscreen": "",
  2762. "allowfullscreen": "",
  2763. "frameborder": "no",
  2764. "border": "0",
  2765. "scrolling ": "no",
  2766. "style": {
  2767. "cssText": "border:0; width:100%; height:100%;"
  2768. },
  2769. "src": "/course-design-vue"
  2770. })
  2771. _box.appendChild(_iframe);
  2772. _box.appendChild(_jie);
  2773. _formdiv = new U.UF.UI.form(
  2774. "课程设计",
  2775. _box, {
  2776. "id": "courseDesign" + cid + stage + task + tool,
  2777. "style": {
  2778. "width": "90%",
  2779. "height": "90%",
  2780. "overflow": 'hidden'
  2781. },
  2782. "onresize": function () { }
  2783. }, {
  2784. closecallback: function () { }
  2785. }, {
  2786. "style": {
  2787. "height": "36px"
  2788. }
  2789. }).form; //创建窗体
  2790. _taskbar = {
  2791. "id": str + _formdiv.id,
  2792. "style": {
  2793. "backgroundImage": "url(/img/icon/courseDesign.png)"
  2794. },
  2795. "name": "课程设计",
  2796. "forms": _formdiv,
  2797. "click": function () {
  2798. U.MD.D.I.openApplication(str, obj, info);
  2799. }
  2800. }
  2801. break;
  2802. }
  2803. const script1 = document.createElement("script");
  2804. script1.type = "text/javascript";
  2805. script1.src =
  2806. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  2807. const script2 = document.createElement("script");
  2808. script2.type = "text/javascript";
  2809. script2.src =
  2810. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  2811. const script3 = document.createElement("script");
  2812. script3.type = "text/javascript";
  2813. script3.charset = "UTF-8";
  2814. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  2815. const script4 = document.createElement("script");
  2816. script4.type = "text/javascript";
  2817. script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  2818. if (_iframe) {
  2819. if (str == 'doc') {
  2820. U.UF.DL.iframeLoad(_iframe, function () {
  2821. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  2822. _iframe.contentWindow.document.body.appendChild(script1);
  2823. _iframe.contentWindow.document.body.appendChild(script2);
  2824. // _iframe.contentWindow.document.body.appendChild(script3);
  2825. _iframe.contentWindow.document.body.appendChild(script4);
  2826. })
  2827. } else if (str == 'courseDesign') {
  2828. U.UF.DL.iframeLoad(_iframe, function () {
  2829. // _iframe.contentWindow.U.MD.O.W.load();
  2830. // _iframe.contentWindow.document.body.appendChild(script1);
  2831. _iframe.contentWindow.document.body.appendChild(script2);
  2832. _iframe.contentWindow.document.body.appendChild(script4);
  2833. })
  2834. } else if (str == 'mind') {
  2835. U.UF.DL.iframeLoad(_iframe, function () {
  2836. //
  2837. _iframe.contentWindow.document.body.appendChild(script1);
  2838. _iframe.contentWindow.document.body.appendChild(script2);
  2839. _iframe.contentWindow.document.body.appendChild(script4);
  2840. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  2841. })
  2842. } else {
  2843. _iframe.onload = () => {
  2844. _iframe.contentWindow.document.body.appendChild(script1);
  2845. _iframe.contentWindow.document.body.appendChild(script2);
  2846. // _iframe.contentWindow.document.body.appendChild(script3);
  2847. _iframe.contentWindow.document.body.appendChild(script4);
  2848. };
  2849. }
  2850. _jie.onclick = async () => {
  2851. let text = ''
  2852. if (aTool == 6) {
  2853. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  2854. } else if (aTool == 3) {
  2855. text = await U.MD.D.I.getEditorContent(_iframe);
  2856. }
  2857. _loading.style.display = 'flex'
  2858. console.log(_loading);
  2859. var _ajs = _iframe.contentWindow.document.createElement("script");
  2860. _ajs.type = "text/javascript";
  2861. _ajs.innerHTML =
  2862. // 'console.log(' + _loading + ');\n' +
  2863. 'var _js = document.createElement("script");\n' +
  2864. '_js.type="text/javascript";\n' +
  2865. '_js.charset="UTF-8";\n' +
  2866. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  2867. "_js.onload = function(){\n" +
  2868. ' var a = document.getElementsByTagName("img")\n' +
  2869. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  2870. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  2871. '  var base64Url = canvas.toDataURL("image/png");\n' +
  2872. 'var base64 = "<img src=" + base64Url + " />"\n' +
  2873. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  2874. "beforeUpload_shishi(file," +
  2875. "'" +
  2876. _userid +
  2877. "'" +
  2878. ", " +
  2879. "'" +
  2880. _cid +
  2881. "'" +
  2882. ", " +
  2883. "'" +
  2884. _stage +
  2885. "'" +
  2886. ", " +
  2887. "'" +
  2888. _task +
  2889. "'" +
  2890. ", " +
  2891. "'" +
  2892. _tool +
  2893. "'" +
  2894. ", " +
  2895. "'" +
  2896. str + '_loadLi' +
  2897. "'" +
  2898. ", " +
  2899. "'" +
  2900. aTool +
  2901. "'" +
  2902. ", " +
  2903. "`" +
  2904. text +
  2905. "`" +
  2906. ")\n" +
  2907. " });\n" +
  2908. "}\n" +
  2909. "document.head.appendChild(_js);\n";
  2910. _iframe.contentWindow.document.head.appendChild(_ajs);
  2911. }
  2912. }
  2913. //U.MD.D.I.openClick(str);
  2914. //如果有任务栏信息
  2915. // if (_taskbar) {
  2916. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2917. // }
  2918. }
  2919. U.MD.D.I.getEditorContent = function (iframe) {
  2920. return new Promise((resolve, reject) => {
  2921. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  2922. console.log(content);
  2923. resolve(content)
  2924. });
  2925. });
  2926. }
  2927. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  2928. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  2929. // if (res.value[0].length > 0) {
  2930. // // resolve(res.value[0][0].text);
  2931. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  2932. // $(fileInput).val('');
  2933. // });
  2934. // }
  2935. // }, [], { "type": "GET", "withCredentials": true });
  2936. var xmlhttp;
  2937. var Mac, Sn, DeviceId
  2938. if (window.XMLHttpRequest) {
  2939. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  2940. xmlhttp = new XMLHttpRequest();
  2941. }
  2942. else {
  2943. // IE6, IE5 浏览器执行代码
  2944. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  2945. }
  2946. xmlhttp.onreadystatechange = function () {
  2947. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  2948. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  2949. // resolve(res.value[0][0].text);
  2950. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  2951. $(fileInput).val('');
  2952. });
  2953. }
  2954. }
  2955. }
  2956. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  2957. xmlhttp.send();
  2958. }
  2959. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  2960. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2961. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2962. _userinfo = US.userInfo, //登录用户信息
  2963. _userid = US.userInfo.userid //登录用户id
  2964. let _iframe;
  2965. let _cid = cid,
  2966. _stage = stage,
  2967. _task = task,
  2968. _tool = tool;
  2969. var _jie = $$("div", {
  2970. "style": {
  2971. "position": "absolute",
  2972. "bottom": "50px",
  2973. "right": "50px",
  2974. "zIndex": "9999",
  2975. "backgroundColor": "#2268bc",
  2976. "color": "#fff",
  2977. "padding": "12px 20px",
  2978. "cursor": "pointer",
  2979. "borderRadius": "4px",
  2980. },
  2981. "innerHTML": "确认并提交"
  2982. })
  2983. let aTool = ''
  2984. let _loading = document.createElement('div')
  2985. _loading.style = "width:100%;height:100%;background:#00000000;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
  2986. // _loading.id = "";
  2987. let _lchild = document.createElement('div')
  2988. let _limg = document.createElement('img')
  2989. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  2990. _limg.style = "width: 26px;margin-right: 10px;"
  2991. _lchild.appendChild(_limg)
  2992. let _lspan = document.createElement('span')
  2993. _lspan.innerHTML = "上传中..."
  2994. _lchild.appendChild(_lspan)
  2995. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  2996. _loading.appendChild(_lchild)
  2997. var _box = $$('div', {
  2998. "style": {
  2999. "position": "relative",
  3000. "width": "100%",
  3001. "height": "100%",
  3002. },
  3003. })
  3004. _box.appendChild(_loading)
  3005. _box.id = str + '_loadLi'
  3006. switch (str) {
  3007. case "whiteboard":
  3008. aTool = 1;
  3009. _iframe = $$("iframe", {
  3010. "frameborder": "no",
  3011. "border": "0",
  3012. "scrolling ": "no",
  3013. "style": {
  3014. "cssText": "border:0;width:100%;height:100%"
  3015. },
  3016. "src": "https://iwb.cocorobo.cn/"
  3017. })
  3018. _box.appendChild(_iframe);
  3019. _box.appendChild(_jie);
  3020. _formdiv = new U.UF.UI.form(
  3021. "电子白板",
  3022. _box, {
  3023. "id": "whiteboards" + cid + stage + task + tool,
  3024. "style": {
  3025. "width": "90%",
  3026. "height": "90%",
  3027. "overflow": 'hidden'
  3028. },
  3029. "onresize": function () { }
  3030. }, {
  3031. closecallback: function () { }
  3032. }, {
  3033. "style": {
  3034. "height": "36px"
  3035. }
  3036. }).form; //创建窗体
  3037. _taskbar = {
  3038. "id": str + _formdiv.id,
  3039. "style": {
  3040. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3041. },
  3042. "name": "电子白板",
  3043. "forms": _formdiv,
  3044. "click": function () {
  3045. U.MD.D.I.openApplication(str, obj, info);
  3046. }
  3047. }
  3048. break;
  3049. case "mind":
  3050. aTool = 3;
  3051. _iframe = $$("iframe", {
  3052. "frameborder": "no",
  3053. "border": "0",
  3054. "scrolling ": "no",
  3055. "style": {
  3056. "cssText": "border:0;width:100%;height:100%"
  3057. },
  3058. "src": "/kityminder-editor/dist/index.html"
  3059. });
  3060. _box.appendChild(_iframe);
  3061. _box.appendChild(_jie);
  3062. _formdiv = new U.UF.UI.form(
  3063. "思维导图",
  3064. _box, { //"/jsmind/example/demo.html"
  3065. "id": "minds" + cid + stage + task + tool,
  3066. "style": {
  3067. "width": "90%",
  3068. "height": "90%",
  3069. "overflow": 'hidden'
  3070. },
  3071. "onresize": function () { }
  3072. }, {
  3073. closecallback: function () { }
  3074. }, {
  3075. "style": {
  3076. "height": "36px"
  3077. }
  3078. }).form; //创建窗体
  3079. _taskbar = {
  3080. "id": str + _formdiv.id,
  3081. "style": {
  3082. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3083. },
  3084. "name": "思维导图",
  3085. "forms": _formdiv,
  3086. "click": function () {
  3087. U.MD.D.I.openApplication(str, obj, info);
  3088. }
  3089. }
  3090. break;
  3091. case "doc":
  3092. aTool = 6;
  3093. _iframe = $$("iframe", {
  3094. "frameborder": "no",
  3095. "border": "0",
  3096. "scrolling ": "no",
  3097. "style": {
  3098. "cssText": "border:0;width:100%;height:100%"
  3099. },
  3100. "src": "/Office/Word/WordEditArea.htm"
  3101. })
  3102. _box.appendChild(_iframe);
  3103. _box.appendChild(_jie);
  3104. _formdiv = new U.UF.UI.form(
  3105. "协同文档",
  3106. _box, {
  3107. "id": "docs" + cid + stage + task + tool,
  3108. "style": {
  3109. "width": "90%",
  3110. "height": "90%",
  3111. "overflow": 'hidden'
  3112. },
  3113. "onresize": function () { }
  3114. }, {
  3115. closecallback: function () { }
  3116. }, {
  3117. "style": {
  3118. "height": "36px"
  3119. }
  3120. }).form; //创建窗体
  3121. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3122. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  3123. })
  3124. _taskbar = {
  3125. "id": str + _formdiv.id,
  3126. "style": {
  3127. "backgroundImage": "url(/img/icon/doc.png)"
  3128. },
  3129. "name": "协同文档",
  3130. "forms": _formdiv,
  3131. "click": function () {
  3132. U.MD.D.I.openApplication(str, obj, info);
  3133. }
  3134. }
  3135. break;
  3136. }
  3137. const script1 = document.createElement("script");
  3138. script1.type = "text/javascript";
  3139. script1.src =
  3140. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3141. const script2 = document.createElement("script");
  3142. script2.type = "text/javascript";
  3143. script2.src =
  3144. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3145. const script3 = document.createElement("script");
  3146. script3.type = "text/javascript";
  3147. script3.charset = "UTF-8";
  3148. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3149. const script4 = document.createElement("script");
  3150. script4.type = "text/javascript";
  3151. script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu4.js";
  3152. if (_iframe) {
  3153. if (str == 'doc') {
  3154. U.UF.DL.iframeLoad(_iframe, function () {
  3155. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  3156. _iframe.contentWindow.document.body.appendChild(script1);
  3157. _iframe.contentWindow.document.body.appendChild(script2);
  3158. // _iframe.contentWindow.document.body.appendChild(script3);
  3159. _iframe.contentWindow.document.body.appendChild(script4);
  3160. })
  3161. } else if (str == 'mind') {
  3162. U.UF.DL.iframeLoad(_iframe, function () {
  3163. _iframe.contentWindow.document.body.appendChild(script1);
  3164. _iframe.contentWindow.document.body.appendChild(script2);
  3165. _iframe.contentWindow.document.body.appendChild(script4);
  3166. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  3167. })
  3168. } else {
  3169. _iframe.onload = () => {
  3170. _iframe.contentWindow.document.body.appendChild(script1);
  3171. _iframe.contentWindow.document.body.appendChild(script2);
  3172. // _iframe.contentWindow.document.body.appendChild(script3);
  3173. _iframe.contentWindow.document.body.appendChild(script4);
  3174. };
  3175. }
  3176. _jie.onclick = async () => {
  3177. let text = ''
  3178. if (aTool == 6) {
  3179. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3180. } else if (aTool == 3) {
  3181. text = await U.MD.D.I.getEditorContent(_iframe);
  3182. }
  3183. _loading.style.display = 'flex'
  3184. console.log(_loading);
  3185. var _ajs = _iframe.contentWindow.document.createElement("script");
  3186. _ajs.type = "text/javascript";
  3187. _ajs.innerHTML =
  3188. // 'console.log(' + _loading + ');\n' +
  3189. 'var _js = document.createElement("script");\n' +
  3190. '_js.type="text/javascript";\n' +
  3191. '_js.charset="UTF-8";\n' +
  3192. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3193. "_js.onload = function(){\n" +
  3194. ' var a = document.getElementsByTagName("img")\n' +
  3195. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3196. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3197. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3198. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3199. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3200. "beforeUpload_shishi(file," +
  3201. "'" +
  3202. _userid +
  3203. "'" +
  3204. ", " +
  3205. "'" +
  3206. _cid +
  3207. "'" +
  3208. ", " +
  3209. "'" +
  3210. _stage +
  3211. "'" +
  3212. ", " +
  3213. "'" +
  3214. _task +
  3215. "'" +
  3216. ", " +
  3217. "'" +
  3218. _tool +
  3219. "'" +
  3220. ", " +
  3221. "'" +
  3222. str + '_loadLi' +
  3223. "'" +
  3224. ", " +
  3225. "'" +
  3226. aTool +
  3227. "'" +
  3228. ", " +
  3229. "`" +
  3230. text +
  3231. "`" +
  3232. ")\n" +
  3233. " });\n" +
  3234. "}\n" +
  3235. "document.head.appendChild(_js);\n";
  3236. _iframe.contentWindow.document.head.appendChild(_ajs);
  3237. }
  3238. }
  3239. //U.MD.D.I.openClick(str);
  3240. //如果有任务栏信息
  3241. // if (_taskbar) {
  3242. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3243. // }
  3244. }
  3245. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  3246. var xmlhttp;
  3247. var Mac, Sn, DeviceId
  3248. if (window.XMLHttpRequest) {
  3249. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  3250. xmlhttp = new XMLHttpRequest();
  3251. }
  3252. else {
  3253. // IE6, IE5 浏览器执行代码
  3254. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  3255. }
  3256. xmlhttp.onreadystatechange = function () {
  3257. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  3258. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  3259. // resolve(res.value[0][0].text);
  3260. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  3261. $(fileInput).val('');
  3262. });
  3263. }
  3264. }
  3265. }
  3266. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  3267. xmlhttp.send();
  3268. }