DeskTop.js 205 KB

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