DeskTop.js 245 KB

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