DeskTop.js 237 KB

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