DeskTop.js 224 KB

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