DeskTop.js 229 KB

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