DeskTop.js 304 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297
  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": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  17. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  18. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  19. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  20. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  21. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  22. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  23. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  24. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  25. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  26. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  27. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  28. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  29. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  30. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  31. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  32. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  33. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  34. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  35. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  36. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  37. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  38. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  39. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  40. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  41. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  42. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  43. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  44. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  45. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  46. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  47. ];
  48. //极简模式
  49. U.MD.D.I.easyDeskIcon = [
  50. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  51. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  52. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  55. ];
  56. //教师桌面图标的全局变量
  57. U.MD.D.I.teacherDeskIcon2 = [
  58. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  59. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  60. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  61. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  62. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  63. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  64. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  65. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  66. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  67. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  68. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  69. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  70. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  71. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  72. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  73. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  74. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  75. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  76. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  77. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  78. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  79. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  80. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  81. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  82. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  83. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  84. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  85. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  86. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  87. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  88. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  89. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  90. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  91. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  92. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  93. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  94. ];
  95. U.MD.D.I.studentDeskIcon = [
  96. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  97. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  98. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  99. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  100. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  101. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  102. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  103. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  104. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  105. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  106. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  107. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  108. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  109. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  110. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  111. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  112. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  113. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  114. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  115. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  116. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  117. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  118. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  119. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  120. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  121. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  122. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  123. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  124. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  125. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  126. ];
  127. U.MD.D.I.studentDeskIcon2 = [
  128. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  129. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  130. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  131. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  132. ]
  133. U.MD.D.I.studentDeskIcon3 = [
  134. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  135. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  136. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  137. ]
  138. U.MD.D.I.schoolDeskIcon = [
  139. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  140. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  141. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  142. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  143. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  144. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  145. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  146. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  147. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  148. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  149. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  150. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  151. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  152. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  153. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  154. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  155. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  156. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  157. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  158. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  159. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  160. ];
  161. U.MD.D.I.orgDeskIcon = [
  162. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  163. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  164. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  165. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  166. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  167. ];
  168. U.MD.D.I.orgStemDeskIcon = [
  169. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  170. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  171. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  172. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  173. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  174. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  175. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  176. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  177. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  178. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  179. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  180. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  181. ];
  182. U.MD.D.I.szulsDeskIcon = [
  183. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  184. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  185. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  186. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  187. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  188. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  189. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  190. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  191. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  192. ];
  193. U.MD.D.I.hanDeskIcon = [
  194. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  195. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  196. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  197. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  198. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  199. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  200. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  201. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  202. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  203. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  204. ];
  205. U.MD.D.I.GMteacherDeskIcon = [
  206. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  207. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  208. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  209. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  210. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  211. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  212. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  213. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  214. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  215. ];
  216. U.MD.D.I.GMstudentDeskIcon = [
  217. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  218. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  219. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  220. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  221. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  222. ];
  223. //北师大
  224. U.MD.D.I.BSDNSteacherDeskIcon = [
  225. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  226. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  227. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  228. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  229. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  230. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  231. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  232. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  233. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  234. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  235. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  236. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  237. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  238. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  239. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  240. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  241. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  242. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  243. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  244. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  245. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  246. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  247. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  248. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  249. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  250. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  251. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  252. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  253. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  254. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  255. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  256. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  257. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  258. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  259. ];
  260. //松山湖
  261. U.MD.D.I.SONGteacherDeskIcon = [
  262. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  263. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  264. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  265. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  266. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  267. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  268. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  269. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  270. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  271. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  272. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  273. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  274. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  275. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  276. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  277. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  278. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  279. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  280. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  281. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  282. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  283. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  284. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  285. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  286. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  287. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  288. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  289. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  290. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  291. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  292. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  293. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  294. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  295. ];
  296. U.MD.D.I.tcStudentDeskIcon = [
  297. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  298. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  299. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  300. ];
  301. U.MD.D.I.tcTeacherDeskIcon = [
  302. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  303. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  304. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  305. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  306. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  307. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  308. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  309. ];
  310. U.MD.D.I.tcOrganizerDeskIcon = [
  311. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  312. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  313. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  314. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  315. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  316. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  317. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  318. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.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.szscStudentDeskIcon = [
  323. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  324. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  325. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  326. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  327. ];
  328. U.MD.D.I.szscTeacherDeskIcon = [
  329. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  330. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  331. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  332. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  333. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  334. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  335. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. ];
  338. U.MD.D.I.szscOrganizerDeskIcon = [
  339. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  340. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  341. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  342. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  343. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  344. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  345. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  346. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  347. ];
  348. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  349. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  350. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  351. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  352. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  353. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  354. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  355. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  356. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  357. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  358. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  359. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  360. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  361. ];
  362. U.MD.D.I.wankeAdminDeskIcon = [
  363. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  364. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  365. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  366. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  367. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  368. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  369. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  370. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  371. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  372. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  373. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  374. ];
  375. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  376. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  377. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  378. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  379. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  380. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  381. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  382. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  383. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  384. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  385. ];
  386. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  387. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  388. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  389. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  390. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  391. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  392. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  393. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  394. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  395. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  396. ];
  397. //明德教师桌面图标的全局变量
  398. U.MD.D.I.MingdeTeacherDeskIcon = [
  399. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  400. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  401. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  402. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  403. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  404. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  405. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  406. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  407. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  408. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  409. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  410. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  411. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  412. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  413. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  414. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  415. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  416. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  417. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  418. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  419. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  420. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  421. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  422. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  423. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  424. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  425. ];
  426. //97c4ee8b-d010-4042-986d-e9d3c217264f
  427. //教师桌面图标的全局变量
  428. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  429. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  430. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  431. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  432. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  433. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  434. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  435. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  436. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  437. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  438. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  439. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  440. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  441. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  442. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  443. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  444. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  445. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  446. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  447. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  448. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  449. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  450. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  451. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  452. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  453. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  454. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  455. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  456. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  457. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  458. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  459. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  460. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  461. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  462. ];
  463. //#region 桌面初始化a
  464. /**
  465. * 初始化桌面的起始函数
  466. *
  467. */
  468. U.MD.D.I.init = function () {
  469. if ($("#U_MD_D_K")[0]) {
  470. //初始化桌面图标
  471. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  472. // var clickUrl = ':12588/requestIp.php';
  473. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  474. // U.MD.D.I.Ip = data;
  475. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  476. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  477. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  478. // })
  479. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  480. // })
  481. }
  482. }
  483. /**
  484. * 模式切换
  485. *
  486. */
  487. U.MD.D.I.ModeCheck = function (type) {
  488. if (US.Config.type == type) {
  489. return
  490. }
  491. US.Config.type = type
  492. $('.U_PBL_Check .active')[0].className = ''
  493. if (type == 1) {
  494. $('.U_PBL_Check div')[0].className = 'active'
  495. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  496. } else {
  497. $('.U_PBL_Check div')[1].className = 'active'
  498. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  499. }
  500. //初始化桌面图标
  501. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  502. }
  503. /**
  504. * 隐藏任务栏
  505. *
  506. * @param {element} 桌面元素
  507. */
  508. U.MD.D.I.hiddenTaskbar = function (el) {
  509. //任务栏位置变小
  510. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  511. //桌面的位置变大
  512. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  513. }
  514. /**
  515. * 隐藏任务栏
  516. *
  517. * @param {element} 桌面元素
  518. */
  519. U.MD.D.I.hiddenTaskbarout = function (el) {
  520. //任务栏位置变小
  521. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  522. //任务栏位置变化
  523. U.selectEl(el).css({ "bottom": "-60px" });
  524. //桌面的位置变大
  525. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  526. }
  527. }
  528. /**
  529. * 初始化打印桌面图标
  530. *
  531. * @param {element} 桌面元素
  532. */
  533. U.MD.D.I.initDesktopIcons = function (el, type) {
  534. var i, //用于循环
  535. _content, //桌面图标元素
  536. _iconcontent, //桌面图标元素
  537. _frag = $$("frag"), //定义一个碎片元素
  538. _type = US.userInfo.type,
  539. _org = US.userInfo.org,
  540. _oid = US.userInfo.organizeid,
  541. _role = US.userInfo.role,
  542. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  543. _easyDesktopIconInfo = U.MD.D.I.easyDeskIcon, //极简模式桌面图标
  544. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  545. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  546. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  547. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  548. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  549. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  550. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  551. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  552. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  553. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  554. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  555. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  556. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  557. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  558. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  559. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  560. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  561. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  562. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  563. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  564. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  565. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  566. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  567. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  568. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  569. 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', '91305d49-01ba-11ed-8c78-005056b86db4'];
  570. 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", '97c4ee8b-d010-4042-986d-e9d3c217264f'];
  571. //清楚桌面图标
  572. el.innerHTML = "";
  573. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5") {
  574. _teacherDesktopIconInfo.push(
  575. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  576. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  577. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  578. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  579. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  580. )
  581. }
  582. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  583. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  584. if(el.Name == '项目管理'){
  585. el.Name = 'PBL项目'
  586. }
  587. return el
  588. })
  589. }
  590. if (_oid != '4c686762-1d0a-11ed-8c78-005056b86db5' && _oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  591. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  592. return el.Name != '魔盒识字' && el.Name != '24点'
  593. })
  594. }
  595. if ((_oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") && _type == 2) {
  596. _studentDesktopIconInfo.push(
  597. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  598. )
  599. }
  600. //循环创建桌面图标
  601. if (type == 1) {
  602. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  603. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  604. _content = $$("div", {
  605. className: "U_MD_D_KO",
  606. "onmousedown": U.UF.C.closure(function (obj) {
  607. //防止拖动图标即打开了桌面应用
  608. U.MD.D.click(this, obj);
  609. }, [_studentDesktopIconInfo[i]]),
  610. "onclick": U.UF.C.closure(function (obj) {
  611. //防止拖动图标即打开了桌面应用
  612. U.MD.D.click(this, obj);
  613. }, [_studentDesktopIconInfo[i]])
  614. }, _frag); //
  615. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  616. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  617. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  618. }
  619. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  620. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  621. _content = $$("div", {
  622. className: "U_MD_D_KO",
  623. "onmousedown": U.UF.C.closure(function (obj) {
  624. //防止拖动图标即打开了桌面应用
  625. U.MD.D.click(this, obj);
  626. }, [_studentDesktopIconInfo[i]]),
  627. "onclick": U.UF.C.closure(function (obj) {
  628. //防止拖动图标即打开了桌面应用
  629. U.MD.D.click(this, obj);
  630. }, [_studentDesktopIconInfo[i]])
  631. }, _frag); //
  632. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  633. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  634. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  635. }
  636. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  637. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  638. _content = $$("div", {
  639. className: "U_MD_D_KO",
  640. "onmousedown": U.UF.C.closure(function (obj) {
  641. //防止拖动图标即打开了桌面应用
  642. U.MD.D.click(this, obj);
  643. }, [_tcStudentDeskIconInfo[i]]),
  644. "onclick": U.UF.C.closure(function (obj) {
  645. //防止拖动图标即打开了桌面应用
  646. U.MD.D.click(this, obj);
  647. }, [_tcStudentDeskIconInfo[i]])
  648. }, _frag); //
  649. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  650. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  651. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  652. }
  653. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  654. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  655. _content = $$("div", {
  656. className: "U_MD_D_KO",
  657. "onmousedown": U.UF.C.closure(function (obj) {
  658. //防止拖动图标即打开了桌面应用
  659. U.MD.D.click(this, obj);
  660. }, [_szscStudentDeskIconInfo[i]]),
  661. "onclick": U.UF.C.closure(function (obj) {
  662. //防止拖动图标即打开了桌面应用
  663. U.MD.D.click(this, obj);
  664. }, [_szscStudentDeskIconInfo[i]])
  665. }, _frag); //
  666. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  667. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  668. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  669. }
  670. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  671. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  672. _content = $$("div", {
  673. className: "U_MD_D_KO",
  674. "onmousedown": U.UF.C.closure(function (obj) {
  675. //防止拖动图标即打开了桌面应用
  676. U.MD.D.click(this, obj);
  677. }, [_studentDesktopIconInfo3[i]]),
  678. "onclick": U.UF.C.closure(function (obj) {
  679. //防止拖动图标即打开了桌面应用
  680. U.MD.D.click(this, obj);
  681. }, [_studentDesktopIconInfo3[i]])
  682. }, _frag); //
  683. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  684. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  685. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  686. }
  687. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  688. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  689. _content = $$("div", {
  690. className: "U_MD_D_KO",
  691. "onmousedown": U.UF.C.closure(function (obj) {
  692. //防止拖动图标即打开了桌面应用
  693. U.MD.D.click(this, obj);
  694. }, [_studentDesktopIconInfo2[i]]),
  695. "onclick": U.UF.C.closure(function (obj) {
  696. //防止拖动图标即打开了桌面应用
  697. U.MD.D.click(this, obj);
  698. }, [_studentDesktopIconInfo2[i]])
  699. }, _frag); //
  700. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  701. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  702. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  703. }
  704. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  705. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  706. _content = $$("div", {
  707. className: "U_MD_D_KO",
  708. "onmousedown": U.UF.C.closure(function (obj) {
  709. //防止拖动图标即打开了桌面应用
  710. U.MD.D.click(this, obj);
  711. }, [_wanketeacherDesktopIconInfo[i]]),
  712. "onclick": U.UF.C.closure(function (obj) {
  713. //防止拖动图标即打开了桌面应用
  714. U.MD.D.click(this, obj);
  715. }, [_wanketeacherDesktopIconInfo[i]])
  716. }, _frag); //
  717. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  718. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  719. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  720. }
  721. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  722. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  723. _content = $$("div", {
  724. className: "U_MD_D_KO",
  725. "onmousedown": U.UF.C.closure(function (obj) {
  726. //防止拖动图标即打开了桌面应用
  727. U.MD.D.click(this, obj);
  728. }, [_wankeAdminDesktopIconInfo[i]]),
  729. "onclick": U.UF.C.closure(function (obj) {
  730. //防止拖动图标即打开了桌面应用
  731. U.MD.D.click(this, obj);
  732. }, [_wankeAdminDesktopIconInfo[i]])
  733. }, _frag); //
  734. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  735. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  736. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  737. }
  738. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  739. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  740. _content = $$("div", {
  741. className: "U_MD_D_KO",
  742. "onmousedown": U.UF.C.closure(function (obj) {
  743. //防止拖动图标即打开了桌面应用
  744. U.MD.D.click(this, obj);
  745. }, [_teacherDesktopIconInfo2[i]]),
  746. "onclick": U.UF.C.closure(function (obj) {
  747. //防止拖动图标即打开了桌面应用
  748. U.MD.D.click(this, obj);
  749. }, [_teacherDesktopIconInfo2[i]])
  750. }, _frag); //
  751. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  752. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  753. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  754. }
  755. } else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  756. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  757. _content = $$("div", {
  758. className: "U_MD_D_KO",
  759. "onmousedown": U.UF.C.closure(function (obj) {
  760. //防止拖动图标即打开了桌面应用
  761. U.MD.D.click(this, obj);
  762. }, [_MingdeTeacherDeskIcon[i]]),
  763. "onclick": U.UF.C.closure(function (obj) {
  764. //防止拖动图标即打开了桌面应用
  765. U.MD.D.click(this, obj);
  766. }, [_MingdeTeacherDeskIcon[i]])
  767. }, _frag); //
  768. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  769. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  770. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  771. }
  772. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  773. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  774. _content = $$("div", {
  775. className: "U_MD_D_KO",
  776. "onmousedown": U.UF.C.closure(function (obj) {
  777. //防止拖动图标即打开了桌面应用
  778. U.MD.D.click(this, obj);
  779. }, [_lhsAdminDesktopIconInfo[i]]),
  780. "onclick": U.UF.C.closure(function (obj) {
  781. //防止拖动图标即打开了桌面应用
  782. U.MD.D.click(this, obj);
  783. }, [_lhsAdminDesktopIconInfo[i]])
  784. }, _frag); //
  785. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  786. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  787. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  788. }
  789. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  790. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  791. _content = $$("div", {
  792. className: "U_MD_D_KO",
  793. "onmousedown": U.UF.C.closure(function (obj) {
  794. //防止拖动图标即打开了桌面应用
  795. U.MD.D.click(this, obj);
  796. }, [_lhsteacherDesktopIconInfo[i]]),
  797. "onclick": U.UF.C.closure(function (obj) {
  798. //防止拖动图标即打开了桌面应用
  799. U.MD.D.click(this, obj);
  800. }, [_lhsteacherDesktopIconInfo[i]])
  801. }, _frag); //
  802. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  803. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  804. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  805. }
  806. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  807. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  808. _content = $$("div", {
  809. className: "U_MD_D_KO",
  810. "onmousedown": U.UF.C.closure(function (obj) {
  811. //防止拖动图标即打开了桌面应用
  812. U.MD.D.click(this, obj);
  813. }, [_zhoujiateacherDesktopIconInfo[i]]),
  814. "onclick": U.UF.C.closure(function (obj) {
  815. //防止拖动图标即打开了桌面应用
  816. U.MD.D.click(this, obj);
  817. }, [_zhoujiateacherDesktopIconInfo[i]])
  818. }, _frag); //
  819. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  820. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  821. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  822. }
  823. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  824. for (i = 0; i < _hanDeskIcon.length; i++) {
  825. _content = $$("div", {
  826. className: "U_MD_D_KO",
  827. "onmousedown": U.UF.C.closure(function (obj) {
  828. //防止拖动图标即打开了桌面应用
  829. U.MD.D.click(this, obj);
  830. }, [_hanDeskIcon[i]]),
  831. "onclick": U.UF.C.closure(function (obj) {
  832. //防止拖动图标即打开了桌面应用
  833. U.MD.D.click(this, obj);
  834. }, [_hanDeskIcon[i]])
  835. }, _frag); //
  836. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  837. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  838. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  839. }
  840. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  841. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  842. _content = $$("div", {
  843. className: "U_MD_D_KO",
  844. "onmousedown": U.UF.C.closure(function (obj) {
  845. //防止拖动图标即打开了桌面应用
  846. U.MD.D.click(this, obj);
  847. }, [_orgStemDeskIcon[i]]),
  848. "onclick": U.UF.C.closure(function (obj) {
  849. //防止拖动图标即打开了桌面应用
  850. U.MD.D.click(this, obj);
  851. }, [_orgStemDeskIcon[i]])
  852. }, _frag); //
  853. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  854. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  855. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  856. }
  857. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  858. for (i = 0; i < _szulsDeskIcon.length; i++) {
  859. _content = $$("div", {
  860. className: "U_MD_D_KO",
  861. "onmousedown": U.UF.C.closure(function (obj) {
  862. //防止拖动图标即打开了桌面应用
  863. U.MD.D.click(this, obj);
  864. }, [_szulsDeskIcon[i]]),
  865. "onclick": U.UF.C.closure(function (obj) {
  866. //防止拖动图标即打开了桌面应用
  867. U.MD.D.click(this, obj);
  868. }, [_szulsDeskIcon[i]])
  869. }, _frag); //
  870. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  871. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  872. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  873. }
  874. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  875. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  876. _content = $$("div", {
  877. className: "U_MD_D_KO",
  878. "onmousedown": U.UF.C.closure(function (obj) {
  879. //防止拖动图标即打开了桌面应用
  880. U.MD.D.click(this, obj);
  881. }, [_orgDesktopIconInfo[i]]),
  882. "onclick": U.UF.C.closure(function (obj) {
  883. //防止拖动图标即打开了桌面应用
  884. U.MD.D.click(this, obj);
  885. }, [_orgDesktopIconInfo[i]])
  886. }, _frag); //
  887. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  888. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  889. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  890. }
  891. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  892. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  893. _content = $$("div", {
  894. className: "U_MD_D_KO",
  895. "onmousedown": U.UF.C.closure(function (obj) {
  896. //防止拖动图标即打开了桌面应用
  897. U.MD.D.click(this, obj);
  898. }, [_schoolDesktopIconInfo[i]]),
  899. "onclick": U.UF.C.closure(function (obj) {
  900. //防止拖动图标即打开了桌面应用
  901. U.MD.D.click(this, obj);
  902. }, [_schoolDesktopIconInfo[i]])
  903. }, _frag); //
  904. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  905. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  906. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  907. }
  908. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  909. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  910. _content = $$("div", {
  911. className: "U_MD_D_KO",
  912. "onmousedown": U.UF.C.closure(function (obj) {
  913. //防止拖动图标即打开了桌面应用
  914. U.MD.D.click(this, obj);
  915. }, [_GMteacherDesktopIconInfo[i]]),
  916. "onclick": U.UF.C.closure(function (obj) {
  917. //防止拖动图标即打开了桌面应用
  918. U.MD.D.click(this, obj);
  919. }, [_GMteacherDesktopIconInfo[i]])
  920. }, _frag); //
  921. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  922. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  923. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  924. }
  925. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  926. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  927. _content = $$("div", {
  928. className: "U_MD_D_KO",
  929. "onmousedown": U.UF.C.closure(function (obj) {
  930. //防止拖动图标即打开了桌面应用
  931. U.MD.D.click(this, obj);
  932. }, [_SONGteacherDesktopIconInfo[i]]),
  933. "onclick": U.UF.C.closure(function (obj) {
  934. //防止拖动图标即打开了桌面应用
  935. U.MD.D.click(this, obj);
  936. }, [_SONGteacherDesktopIconInfo[i]])
  937. }, _frag); //
  938. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  939. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  940. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  941. }
  942. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  943. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  944. _content = $$("div", {
  945. className: "U_MD_D_KO",
  946. "onmousedown": U.UF.C.closure(function (obj) {
  947. //防止拖动图标即打开了桌面应用
  948. U.MD.D.click(this, obj);
  949. }, [_GMstudentDesktopIconInfo[i]]),
  950. "onclick": U.UF.C.closure(function (obj) {
  951. //防止拖动图标即打开了桌面应用
  952. U.MD.D.click(this, obj);
  953. }, [_GMstudentDesktopIconInfo[i]])
  954. }, _frag); //
  955. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  956. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  957. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  958. }
  959. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  960. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  961. _content = $$("div", {
  962. className: "U_MD_D_KO",
  963. "onmousedown": U.UF.C.closure(function (obj) {
  964. //防止拖动图标即打开了桌面应用
  965. U.MD.D.click(this, obj);
  966. }, [_tcTeacherDeskIconInfo[i]]),
  967. "onclick": U.UF.C.closure(function (obj) {
  968. //防止拖动图标即打开了桌面应用
  969. U.MD.D.click(this, obj);
  970. }, [_tcTeacherDeskIconInfo[i]])
  971. }, _frag); //
  972. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  973. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  974. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  975. }
  976. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  977. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  978. _content = $$("div", {
  979. className: "U_MD_D_KO",
  980. "onmousedown": U.UF.C.closure(function (obj) {
  981. //防止拖动图标即打开了桌面应用
  982. U.MD.D.click(this, obj);
  983. }, [_tcOrganizerDeskIconInfo[i]]),
  984. "onclick": U.UF.C.closure(function (obj) {
  985. //防止拖动图标即打开了桌面应用
  986. U.MD.D.click(this, obj);
  987. }, [_tcOrganizerDeskIconInfo[i]])
  988. }, _frag); //
  989. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  990. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  991. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  992. }
  993. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  994. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  995. _content = $$("div", {
  996. className: "U_MD_D_KO",
  997. "onmousedown": U.UF.C.closure(function (obj) {
  998. //防止拖动图标即打开了桌面应用
  999. U.MD.D.click(this, obj);
  1000. }, [_szscTeacherDeskIconInfo[i]]),
  1001. "onclick": U.UF.C.closure(function (obj) {
  1002. //防止拖动图标即打开了桌面应用
  1003. U.MD.D.click(this, obj);
  1004. }, [_szscTeacherDeskIconInfo[i]])
  1005. }, _frag); //
  1006. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1007. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1008. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1009. }
  1010. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1011. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1012. _content = $$("div", {
  1013. className: "U_MD_D_KO",
  1014. "onmousedown": U.UF.C.closure(function (obj) {
  1015. //防止拖动图标即打开了桌面应用
  1016. U.MD.D.click(this, obj);
  1017. }, [_szscOrganizerDeskIconInfo[i]]),
  1018. "onclick": U.UF.C.closure(function (obj) {
  1019. //防止拖动图标即打开了桌面应用
  1020. U.MD.D.click(this, obj);
  1021. }, [_szscOrganizerDeskIconInfo[i]])
  1022. }, _frag); //
  1023. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1024. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1025. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1026. }
  1027. } else {
  1028. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1029. _content = $$("div", {
  1030. className: "U_MD_D_KO",
  1031. "onmousedown": U.UF.C.closure(function (obj) {
  1032. //防止拖动图标即打开了桌面应用
  1033. U.MD.D.click(this, obj);
  1034. }, [_teacherDesktopIconInfo[i]]),
  1035. "onclick": U.UF.C.closure(function (obj) {
  1036. //防止拖动图标即打开了桌面应用
  1037. U.MD.D.click(this, obj);
  1038. }, [_teacherDesktopIconInfo[i]])
  1039. }, _frag); //
  1040. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1041. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1042. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1043. }
  1044. }
  1045. } else {
  1046. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1047. _content = $$("div", {
  1048. className: "U_MD_D_KO",
  1049. style: { 'width': '124px', 'height': '145px' },
  1050. "onmousedown": U.UF.C.closure(function (obj) {
  1051. //防止拖动图标即打开了桌面应用
  1052. U.MD.D.click(this, obj);
  1053. }, [_easyDesktopIconInfo[i]]),
  1054. "onclick": U.UF.C.closure(function (obj) {
  1055. //防止拖动图标即打开了桌面应用
  1056. U.MD.D.click(this, obj);
  1057. }, [_easyDesktopIconInfo[i]])
  1058. }, _frag); //
  1059. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1060. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1061. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1062. }
  1063. }
  1064. if (type == 1) {
  1065. //加载好后给图标定位
  1066. U.MD.D.iconPostion($(_frag).Child());
  1067. } else {
  1068. //加载好后给图标定位
  1069. U.MD.D.iconPostion2($(_frag).Child());
  1070. }
  1071. //把图标加载到页面
  1072. el.appendChild(_frag);
  1073. }
  1074. /**
  1075. * 显示任务栏
  1076. *
  1077. * @param {element} 桌面元素
  1078. */
  1079. U.MD.D.I.displayTaskbar = function (el) {
  1080. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1081. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1082. //任务栏位置变化
  1083. U.selectEl(el).css({ "bottom": "0px" });
  1084. //桌面位置变话
  1085. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1086. }
  1087. }
  1088. //#region 桌面图标拖动逻辑
  1089. /**
  1090. * 桌面排列图标
  1091. *
  1092. * @param {element} 桌面元素
  1093. * @param {object} 上下相距的距离
  1094. * @param {object} 左右相距的距离
  1095. * @return {object} 命名空间
  1096. */
  1097. U.MD.D.iconPostion = function (childs, top, left) {
  1098. var i; //用于循环处理
  1099. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1100. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1101. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1102. for (i = 0; i < childs.length; i++) {
  1103. //如果竖排top超过了范围处理
  1104. if (top + 95 > US.height - 10) {
  1105. //left超过了页面范围处理,则向上重叠打印处理
  1106. if ((left + 180) > US.width) {
  1107. top -= 110;
  1108. left -= 90;
  1109. }
  1110. //没有超过范围,那么left+90添加到下一个竖排打印
  1111. else {
  1112. left += 90;
  1113. top = 15;
  1114. };
  1115. }
  1116. //给图标的位置赋值
  1117. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1118. if (i < childs.length - 1) {
  1119. //页面图标每次向下加95
  1120. top += 95;
  1121. }
  1122. }
  1123. //返回最后调用的图标的位置
  1124. return [top, left];
  1125. }
  1126. /**
  1127. * 桌面排列图标
  1128. *
  1129. * @param {element} 桌面元素
  1130. * @param {object} 上下相距的距离
  1131. * @param {object} 左右相距的距离
  1132. * @return {object} 命名空间
  1133. */
  1134. U.MD.D.iconPostion2 = function (childs, top, left) {
  1135. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1136. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1137. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1138. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1139. for (i = 0; i < childs.length; i++) {
  1140. //如果竖排top超过了范围处理
  1141. if (left + 150 > US.width - 10) {
  1142. //left超过了页面范围处理,则向上重叠打印处理
  1143. if ((top + 180) > US.Height) {
  1144. top -= 150;
  1145. left -= 150;
  1146. }
  1147. //没有超过范围,那么left+90添加到下一个竖排打印
  1148. else {
  1149. top += 150;
  1150. left = ol;
  1151. };
  1152. }
  1153. //给图标的位置赋值
  1154. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1155. if (i < childs.length - 1) {
  1156. //页面图标每次向下加95
  1157. left += 150;
  1158. }
  1159. }
  1160. //返回最后调用的图标的位置
  1161. return [top, left];
  1162. }
  1163. /**
  1164. * 桌面点击事件逻辑
  1165. *
  1166. * @param {element} 桌面元素
  1167. * @param {object} 上下相距的距离
  1168. * @param {object} 左右相距的距离
  1169. * @return {object} 命名空间
  1170. */
  1171. U.MD.D.click = function (el, obj) {
  1172. var _buttonnumber = event.button; //点击的按钮的事件值
  1173. var _userinfo = US.userInfo;
  1174. U.UF.EV.stopBubble(); //阻止向上冒泡
  1175. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1176. if (_buttonnumber < 2) {
  1177. //如果是click事件的处理
  1178. if (event.type == "click") {
  1179. //如果元素在mousemove事件中没有移动则出发click事件
  1180. if (!U.MD.D.I.IsDrag) {
  1181. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1182. U.alert("请先登录您的账号!");
  1183. setTimeout(() => {
  1184. U.MD.U.L.login();
  1185. }, 2000);
  1186. } else {
  1187. //打开应用处理
  1188. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1189. }
  1190. }
  1191. }
  1192. //如果是mouse事件的处理
  1193. else {
  1194. if (US.Config.type == '1') {
  1195. //拖动处理,添加拖动和拖动结束事件
  1196. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1197. }
  1198. }
  1199. U.MD.D.I.IsDrag = false;
  1200. }
  1201. }
  1202. /**
  1203. * 拖动的处理
  1204. *
  1205. */
  1206. U.MD.D.iconMove = function () {
  1207. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1208. U.MD.D.I.IsDrag = true;
  1209. }
  1210. /**
  1211. * 拖动结束后,这里是定位处理,以网状的形式定位
  1212. *
  1213. * @param {element} 拖动的元素
  1214. * @return {object} 命名空间
  1215. */
  1216. U.MD.D.iconUp = function (el) {
  1217. var _top = 15,
  1218. _left = 20,
  1219. _margin,
  1220. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1221. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1222. if (_positioninfo["OT"] > 15) {
  1223. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1224. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1225. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1226. }
  1227. if (_positioninfo["OL"] > 20) {
  1228. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1229. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1230. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1231. }
  1232. //while循环判断么一个重叠的元素
  1233. do {
  1234. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1235. _top = _positioninfo[0] + 95; //得到定位后的top
  1236. _left = _positioninfo[1]; //得到定位后的left
  1237. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1238. }
  1239. /**
  1240. * 判断拖动后图标是否重叠
  1241. *
  1242. * @param {element} 拖动的元素
  1243. * @param {element} 桌面所有的元素
  1244. * @param {array} 拖动元素的位置
  1245. ----------[0] 上 top
  1246. ----------[1] 左 left
  1247. * @return {object} 命名空间
  1248. */
  1249. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1250. //循环所有的图标
  1251. for (var i = 0; i < childs.length; i++) {
  1252. //判断有没有和该图标诶子重叠的元素
  1253. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1254. return childs[i]; //如果有返回
  1255. }
  1256. }
  1257. }
  1258. //#endregion
  1259. //#endregion
  1260. //#region 桌面应用
  1261. /**
  1262. * 打开应用
  1263. *
  1264. * @param {string} 类型
  1265. -----------------Disk 网盘系统
  1266. -----------------PDisk 学习系统网盘
  1267. -----------------Poto 图片
  1268. -----------------Video 视频
  1269. -----------------Music 音乐
  1270. -----------------Word word
  1271. -----------------Excel excel
  1272. -----------------Txt 记事本
  1273. -----------------PB 学习系统
  1274. -----------------Blog 朋友圈系统
  1275. -----------------FTP ftp系统
  1276. -----------------Group 好友群
  1277. -----------------SY 首页系统
  1278. -----------------Set 个人设置
  1279. -----------------XSet 系统设置
  1280. -----------------App 我们所有的app
  1281. -----------------BC c.1473.cn 平台
  1282. -----------------CWeb d.1473.cn 变成平台
  1283. -----------------其他的外联系统 我们统一用iframe打开
  1284. * @param {array} 类型
  1285. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1286. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1287. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1288. 如果第一个参数为其他,则无第二个参数
  1289. * @returns {array}
  1290. */
  1291. window.addEventListener('message', function (e) { // 监听 message 事件
  1292. // alert(e.data.type);
  1293. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1294. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1295. //3是展示全部阶段 2学生 1老师 4专家
  1296. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1297. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1298. //3是展示全部阶段 2学生 1老师 4专家
  1299. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1300. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1301. //3是展示全部阶段 2学生 1老师 4专家
  1302. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1303. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1304. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1305. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1306. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1307. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1308. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1309. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1310. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1311. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1312. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1313. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1314. //3是展示全部阶段 2学生 1老师 4专家
  1315. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1316. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1317. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1318. U.MD.D.I.selectUser();
  1319. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1320. var _formel = document.getElementById("study");
  1321. U.UF.F.windowZooming(_formel);
  1322. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1323. var _formel = document.getElementById("studyDetail");
  1324. U.UF.F.windowZooming(_formel);
  1325. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1326. var _formel = document.getElementById("studyDetail");
  1327. U.UF.F.windowZooming(_formel);
  1328. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1329. var _formel = document.getElementById("studentStudy");
  1330. U.UF.F.windowZooming(_formel);
  1331. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1332. // var _formel = document.getElementById("study");
  1333. //如果最大化了,那么就把他缩小
  1334. // if (_formel.ismaximize) {
  1335. // return;
  1336. // }
  1337. // U.UF.F.windowZooming(_formel);
  1338. // U.UF.F.topWindow(_formel);
  1339. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1340. // var _formel = document.getElementById("studyDetail");
  1341. //如果最大化了,那么就把他缩小
  1342. // if (_formel.ismaximize) {
  1343. // return;
  1344. // }
  1345. // U.UF.F.windowZooming(_formel);
  1346. // U.UF.F.topWindow(_formel);
  1347. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1348. // var _formel = document.getElementById("studentStudy");
  1349. // if (_formel.ismaximize) {
  1350. // return;
  1351. // }
  1352. // U.UF.F.windowZooming(_formel);
  1353. // U.UF.F.topWindow(_formel);
  1354. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1355. var _formel = document.getElementById("study");
  1356. // if (_formel.ismaximize) {
  1357. // return;
  1358. // }
  1359. // U.UF.F.windowZooming(_formel);
  1360. U.UF.F.topWindow(_formel);
  1361. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1362. var _formel = document.getElementById("studentIndex");
  1363. U.UF.F.windowZooming(_formel);
  1364. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1365. var _formel = document.getElementById("studyDetailS");
  1366. U.UF.F.windowZooming(_formel);
  1367. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1368. var _formel = document.getElementById("studioIndex");
  1369. U.UF.F.windowZooming(_formel);
  1370. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1371. var _formel = document.getElementById("studyDetailStudio");
  1372. U.UF.F.windowZooming(_formel);
  1373. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1374. var _formel = document.getElementById("studyDetailStudio");
  1375. U.UF.F.windowZooming(_formel);
  1376. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1377. var _formel = document.getElementById("studyDetailNT");
  1378. U.UF.F.windowZooming(_formel);
  1379. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1380. var _formel = document.getElementById("studyDetailS");
  1381. U.UF.F.windowZooming(_formel);
  1382. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1383. var _formel = document.getElementById("studyDetailS");
  1384. U.UF.F.topWindow(_formel);
  1385. } else if (e.data.tools && e.data.tools == "1") {
  1386. // U.MD.D.I.openApplication("whiteboard")
  1387. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1388. } else if (e.data.tools && e.data.tools == "2") {
  1389. U.MD.D.I.openApplication("note")
  1390. } else if (e.data.tools && e.data.tools == "3") {
  1391. // U.MD.D.I.openApplication("mind")
  1392. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1393. } else if (e.data.tools && e.data.tools == "4") {
  1394. U.MD.D.I.openApplication("investigation")
  1395. } else if (e.data.tools && e.data.tools == "6") {
  1396. // U.MD.D.I.openApplication("doc")
  1397. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1398. } else if (e.data.tools && e.data.tools == "7") {
  1399. // U.MD.D.I.openApplication("mindNetwork")
  1400. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1401. } else if (e.data.tools && e.data.tools == "8") {
  1402. U.MD.D.I.openApplication("library")
  1403. } else if (e.data.tools && e.data.tools == "17") {
  1404. U.MD.D.I.openApplication("stuLibrary")
  1405. } else if (e.data.tools && e.data.tools == "18") {
  1406. U.MD.D.I.openApplication("train")
  1407. } else if (e.data.tools && e.data.tools == "21") {
  1408. U.MD.D.I.openApplication("program")
  1409. } else if (e.data.tools && e.data.tools == "22") {
  1410. U.MD.D.I.openApplication("AIprogram2")
  1411. } else if (e.data.tools && e.data.tools == "23") {
  1412. U.MD.D.I.openApplication("Pythonprogram")
  1413. } else if (e.data.tools && e.data.tools == "24") {
  1414. U.MD.D.I.openApplication("AIprogram")
  1415. } else if (e.data.tools && e.data.tools == "25") {
  1416. U.MD.D.I.openApplication("sys")
  1417. } else if (e.data.tools && e.data.tools == "26") {
  1418. // U.MD.D.I.openApplication("courseDesign")
  1419. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1420. } else if (e.data.tools && e.data.tools == "31") {
  1421. U.MD.D.I.openApplication("netWorkPanel")
  1422. } else if (e.data.tools && e.data.tools == "32") {
  1423. U.MD.D.I.openApplication("codeEdit")
  1424. } else if (e.data.tools && e.data.tools == "57") {
  1425. U.MD.D.I.openApplication("CocoPi")
  1426. } else if (e.data.tools && e.data.tools == "58") {
  1427. U.MD.D.I.openApplication("car")
  1428. } else if (e.data.tools && e.data.tools == "59") {
  1429. U.MD.D.I.openApplication("lineSearch")
  1430. } else if (e.data.tools && e.data.tools == "60") {
  1431. U.MD.D.I.openApplication("deepLearning")
  1432. } else if (e.data.tools && e.data.tools == "61") {
  1433. U.MD.D.I.openApplication("allHistory")
  1434. } else if (e.data.tools && e.data.tools == "28") {
  1435. U.MD.D.I.openApplication("translation")
  1436. } else if (e.data.tools && e.data.tools == "37") {
  1437. U.MD.D.I.openApplication("mohe")
  1438. } else if (e.data.tools && e.data.tools == "38") {
  1439. U.MD.D.I.openApplication("24game")
  1440. } else if (e.data.tools && e.data.tools == "39") {
  1441. U.MD.D.I.openApplication("GeoGebra")
  1442. } else if (e.data.tools && e.data.tools == "43") {
  1443. U.MD.D.I.openApplication("studentEvaluate")
  1444. } else if (e.data.tools && e.data.tools == "44") {
  1445. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1446. } else if (e.data.tools && e.data.tools == "46") {
  1447. U.MD.D.I.openApplication("project")
  1448. } else if (e.data.tools && e.data.tools == "1s") {
  1449. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1450. } else if (e.data.tools && e.data.tools == "3s") {
  1451. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1452. } else if (e.data.tools && e.data.tools == "6s") {
  1453. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1454. } else if (e.data.tools && e.data.tools == "1studio") {
  1455. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1456. } else if (e.data.tools && e.data.tools == "3studio") {
  1457. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1458. } else if (e.data.tools && e.data.tools == "6studio") {
  1459. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1460. } else if (e.data.tools && e.data.tools == "3y") {
  1461. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1462. } else if (e.data.tools && e.data.tools == "1y") {
  1463. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1464. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1465. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1466. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1467. U.MD.D.I.openApplication("AIAnalyse")
  1468. } else if (e.data.tools && e.data.tools == "1teacher") {
  1469. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1470. } else if (e.data.tools && e.data.tools == "3teacher") {
  1471. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1472. } else if (e.data.tools && e.data.tools == "7teacher") {
  1473. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1474. }
  1475. });
  1476. U.MD.D.I.selectUser = function () {
  1477. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1478. if (res.value[0].length > 0) {
  1479. US.userInfo = res.value[0][0];
  1480. $(".userName")[0].innerHTML = US.userInfo.username;
  1481. }
  1482. }, [], { "type": "GET", "withCredentials": true });
  1483. }
  1484. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1485. var _userinfo = US.userInfo, //登录用户信息
  1486. _userid = US.userInfo.userid, //登录用户id
  1487. _oid = _userinfo.organizeid,
  1488. _type = US.userInfo.type,
  1489. _org = US.userInfo.org,
  1490. _role = US.userInfo.role,
  1491. _classId = US.userInfo.classid;
  1492. if (_type == 4) {
  1493. tType = 4
  1494. }
  1495. switch (str) {
  1496. case "studyDetailNT"://无终端模式
  1497. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1498. setTimeout(() => {
  1499. U.MD.U.L.login();
  1500. }, 2000);
  1501. } else {
  1502. _formdiv = new U.UF.UI.form(
  1503. "课程详情",
  1504. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailNT?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1505. "id": "studyDetailNT",
  1506. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1507. "onresize": function () { }
  1508. }, {
  1509. closecallback: function () { }
  1510. }, { "style": { "height": "36px" } }).form; //创建窗体
  1511. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1512. break;
  1513. }
  1514. case "studyDetail":
  1515. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1516. setTimeout(() => {
  1517. U.MD.U.L.login();
  1518. }, 2000);
  1519. } else {
  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": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1523. "id": "studyDetail",
  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. }
  1532. case "studyDetailS":
  1533. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1534. setTimeout(() => {
  1535. U.MD.U.L.login();
  1536. }, 2000);
  1537. } else {
  1538. _formdiv = new U.UF.UI.form(
  1539. "项目详情",
  1540. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1541. "id": "studyDetailS",
  1542. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1543. "onresize": function () { }
  1544. }, {
  1545. closecallback: function () { }
  1546. }, { "style": { "height": "36px" } }).form; //创建窗体
  1547. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1548. break;
  1549. }
  1550. case "studyDetailStudio":
  1551. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1552. setTimeout(() => {
  1553. U.MD.U.L.login();
  1554. }, 2000);
  1555. } else {
  1556. _formdiv = new U.UF.UI.form(
  1557. "工作详情",
  1558. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailStudio?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1559. "id": "studyDetailStudio",
  1560. "style": { "width": "95%", "height": "95%", "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/studioCourse.png)" }, "name": "工作详情", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1566. break;
  1567. }
  1568. case "studyDetailS5":
  1569. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1570. setTimeout(() => {
  1571. U.MD.U.L.login();
  1572. }, 2000);
  1573. } else {
  1574. _formdiv = new U.UF.UI.form(
  1575. "项目详情",
  1576. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studyStudentS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1577. "id": "studyDetailS",
  1578. "style": { "width": "95%", "height": "95%", "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/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1584. break;
  1585. }
  1586. case "studyDetailGM":
  1587. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1588. setTimeout(() => {
  1589. U.MD.U.L.login();
  1590. }, 2000);
  1591. } else {
  1592. _formdiv = new U.UF.UI.form(
  1593. "课程详情",
  1594. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1595. "id": "studyDetail",
  1596. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1597. "onresize": function () { }
  1598. }, {
  1599. closecallback: function () { }
  1600. }, { "style": { "height": "36px" } }).form; //创建窗体
  1601. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1602. break;
  1603. }
  1604. case "hanUrl":
  1605. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1606. setTimeout(() => {
  1607. U.MD.U.L.login();
  1608. }, 2000);
  1609. } else {
  1610. _formdiv = new U.UF.UI.form(
  1611. "汉字宫",
  1612. $$("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" }), {
  1613. "id": "hanUrl",
  1614. "style": { "width": "90%", "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/hanClass.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1620. break;
  1621. }
  1622. }
  1623. }
  1624. U.MD.D.I.openApplication = function (str, obj, info) {
  1625. obj = obj || {};
  1626. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1627. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1628. _userinfo = US.userInfo, //登录用户信息
  1629. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1630. _oid = obj.organizeid || _userinfo.organizeid,
  1631. _type = US.userInfo.type,
  1632. _org = US.userInfo.org,
  1633. _role = US.userInfo.role,
  1634. _classId = US.userInfo.classid,
  1635. _TscreenType = 1
  1636. _screenType = 2,
  1637. _SscreenType = 3;
  1638. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1639. return;
  1640. }
  1641. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1642. switch (str) {
  1643. case "studnetProject": //好友打开
  1644. _formdiv = new U.UF.UI.form(
  1645. "我的项目",
  1646. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  1647. "id": "studnetProject",
  1648. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1649. "onresize": function () { }
  1650. }, {
  1651. closecallback: function () { }
  1652. }, { "style": { "height": "36px" } }).form; //创建窗体
  1653. _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); } }
  1654. break;
  1655. case "studentEvaluate": //好友打开
  1656. _formdiv = new U.UF.UI.form(
  1657. "我的评价",
  1658. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1659. "id": "studentEvaluate",
  1660. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1661. "onresize": function () { }
  1662. }, {
  1663. closecallback: function () { }
  1664. }, { "style": { "height": "36px" } }).form; //创建窗体
  1665. _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); } }
  1666. break;
  1667. case "my":
  1668. _formdiv = new U.UF.UI.form(
  1669. "我的资料",
  1670. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  1671. "id": "my",
  1672. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1673. "onresize": function () { }
  1674. }, {
  1675. closecallback: function () { }
  1676. }, { "style": { "height": "36px" } }).form; //创建窗体
  1677. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1678. break;
  1679. case "program":
  1680. _formdiv = new U.UF.UI.form(
  1681. "编程平台",
  1682. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1683. "id": "program",
  1684. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1685. "onresize": function () { }
  1686. }, {
  1687. closecallback: function () { }
  1688. }, { "style": { "height": "36px" } }).form; //创建窗体
  1689. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1690. break;
  1691. case "library":
  1692. _formdiv = new U.UF.UI.form(
  1693. "素材库",
  1694. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  1695. "id": "library",
  1696. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1697. "onresize": function () { }
  1698. }, {
  1699. closecallback: function () { }
  1700. }, { "style": { "height": "36px" } }).form; //创建窗体
  1701. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1702. break;
  1703. case "whiteboard":
  1704. _formdiv = new U.UF.UI.form(
  1705. "电子白板",
  1706. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1707. "id": "whiteboard",
  1708. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1709. "onresize": function () { }
  1710. }, {
  1711. closecallback: function () { }
  1712. }, { "style": { "height": "36px" } }).form; //创建窗体
  1713. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1714. break;
  1715. case "investigation":
  1716. _formdiv = new U.UF.UI.form(
  1717. "问卷调查",
  1718. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  1719. "id": "investigation",
  1720. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1721. "onresize": function () { }
  1722. }, {
  1723. closecallback: function () { }
  1724. }, { "style": { "height": "36px" } }).form; //创建窗体
  1725. _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); } }
  1726. break;
  1727. case "note":
  1728. _formdiv = new U.UF.UI.form(
  1729. "便签分类",
  1730. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  1731. "id": "note",
  1732. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1733. "onresize": function () { }
  1734. }, {
  1735. closecallback: function () { }
  1736. }, { "style": { "height": "36px" } }).form; //创建窗体
  1737. _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); } }
  1738. break;
  1739. // case "score":
  1740. // _formdiv = new U.UF.UI.form(
  1741. // "量规评分",
  1742. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  1743. // "id": "score",
  1744. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1745. // "onresize": function() {}
  1746. // }, {
  1747. // closecallback: function() {}
  1748. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1749. // _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); } }
  1750. // break;
  1751. case "mind":
  1752. _formdiv = new U.UF.UI.form(
  1753. "思维导图",
  1754. $$("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"
  1755. "id": "mind",
  1756. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1757. "onresize": function () { }
  1758. }, {
  1759. closecallback: function () { }
  1760. }, { "style": { "height": "36px" } }).form; //创建窗体
  1761. _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); } }
  1762. break;
  1763. case "doc":
  1764. // U.MD.D.I.isRoom();
  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": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1768. "id": "doc",
  1769. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1770. "onresize": function () { }
  1771. }, {
  1772. closecallback: function () { }
  1773. }, { "style": { "height": "36px" } }).form; //创建窗体
  1774. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1775. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1776. // })
  1777. _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); } }
  1778. break;
  1779. case "studentStudy":
  1780. _formdiv = new U.UF.UI.form(
  1781. "课程中心",
  1782. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1783. "id": "studentStudy",
  1784. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1785. "onresize": function () { }
  1786. }, {
  1787. closecallback: function () { }
  1788. }, { "style": { "height": "36px" } }).form; //创建窗体
  1789. _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); } }
  1790. break;
  1791. case "train": //好友打开
  1792. _formdiv = new U.UF.UI.form(
  1793. "训练平台",
  1794. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1795. "id": "train",
  1796. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1797. "onresize": function () { }
  1798. }, {
  1799. closecallback: function () { }
  1800. }, { "style": { "height": "36px" } }).form; //创建窗体
  1801. _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); } }
  1802. break;
  1803. case "mindNetwork": //好友打开
  1804. _formdiv = new U.UF.UI.form(
  1805. "思维网格",
  1806. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid + "&org=" + _org }), {
  1807. "id": "mindNetwork",
  1808. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1809. "onresize": function () { }
  1810. }, {
  1811. closecallback: function () { }
  1812. }, { "style": { "height": "36px" } }).form; //创建窗体
  1813. _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); } }
  1814. break;
  1815. case "studentClassRoom": //好友打开
  1816. _formdiv = new U.UF.UI.form(
  1817. "实时课堂",
  1818. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/liveRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1819. "id": "studentClassRoom",
  1820. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1821. "onresize": function () { }
  1822. }, {
  1823. closecallback: function () { }
  1824. }, { "style": { "height": "36px" } }).form; //创建窗体
  1825. _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); } }
  1826. setTimeout(() => {
  1827. U.UF.F.windowZooming(_formdiv)
  1828. }, 0);
  1829. break;
  1830. }
  1831. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1832. switch (str) {
  1833. case "studnetProject": //好友打开
  1834. _formdiv = new U.UF.UI.form(
  1835. "我的项目",
  1836. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  1837. "id": "studnetProject",
  1838. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1839. "onresize": function () { }
  1840. }, {
  1841. closecallback: function () { }
  1842. }, { "style": { "height": "36px" } }).form; //创建窗体
  1843. _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); } }
  1844. break;
  1845. case "studentEvaluate": //好友打开
  1846. _formdiv = new U.UF.UI.form(
  1847. "我的评价",
  1848. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1849. "id": "studentEvaluate",
  1850. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1851. "onresize": function () { }
  1852. }, {
  1853. closecallback: function () { }
  1854. }, { "style": { "height": "36px" } }).form; //创建窗体
  1855. _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); } }
  1856. break;
  1857. case "my":
  1858. _formdiv = new U.UF.UI.form(
  1859. "我的资料",
  1860. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  1861. "id": "my",
  1862. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1863. "onresize": function () { }
  1864. }, {
  1865. closecallback: function () { }
  1866. }, { "style": { "height": "36px" } }).form; //创建窗体
  1867. _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); } }
  1868. break;
  1869. case "program":
  1870. _formdiv = new U.UF.UI.form(
  1871. "编程平台",
  1872. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1873. "id": "program",
  1874. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1875. "onresize": function () { }
  1876. }, {
  1877. closecallback: function () { }
  1878. }, { "style": { "height": "36px" } }).form; //创建窗体
  1879. _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); } }
  1880. break;
  1881. case "library":
  1882. _formdiv = new U.UF.UI.form(
  1883. "素材库",
  1884. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  1885. "id": "library",
  1886. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1887. "onresize": function () { }
  1888. }, {
  1889. closecallback: function () { }
  1890. }, { "style": { "height": "36px" } }).form; //创建窗体
  1891. _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); } }
  1892. break;
  1893. case "whiteboard":
  1894. _formdiv = new U.UF.UI.form(
  1895. "电子白板",
  1896. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1897. "id": "whiteboard",
  1898. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1899. "onresize": function () { }
  1900. }, {
  1901. closecallback: function () { }
  1902. }, { "style": { "height": "36px" } }).form; //创建窗体
  1903. _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); } }
  1904. break;
  1905. case "investigation":
  1906. _formdiv = new U.UF.UI.form(
  1907. "问卷调查",
  1908. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  1909. "id": "investigation",
  1910. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1911. "onresize": function () { }
  1912. }, {
  1913. closecallback: function () { }
  1914. }, { "style": { "height": "36px" } }).form; //创建窗体
  1915. _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); } }
  1916. break;
  1917. case "note":
  1918. _formdiv = new U.UF.UI.form(
  1919. "便签分类",
  1920. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  1921. "id": "note",
  1922. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1923. "onresize": function () { }
  1924. }, {
  1925. closecallback: function () { }
  1926. }, { "style": { "height": "36px" } }).form; //创建窗体
  1927. _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); } }
  1928. break;
  1929. // case "score":
  1930. // _formdiv = new U.UF.UI.form(
  1931. // "量规评分",
  1932. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  1933. // "id": "score",
  1934. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1935. // "onresize": function() {}
  1936. // }, {
  1937. // closecallback: function() {}
  1938. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1939. // _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); } }
  1940. // break;
  1941. case "mind":
  1942. _formdiv = new U.UF.UI.form(
  1943. "思维导图",
  1944. $$("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"
  1945. "id": "mind",
  1946. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1947. "onresize": function () { }
  1948. }, {
  1949. closecallback: function () { }
  1950. }, { "style": { "height": "36px" } }).form; //创建窗体
  1951. _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); } }
  1952. break;
  1953. case "doc":
  1954. // U.MD.D.I.isRoom();
  1955. _formdiv = new U.UF.UI.form(
  1956. "协同文档",
  1957. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1958. "id": "doc",
  1959. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1960. "onresize": function () { }
  1961. }, {
  1962. closecallback: function () { }
  1963. }, { "style": { "height": "36px" } }).form; //创建窗体
  1964. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1965. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1966. })
  1967. _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); } }
  1968. break;
  1969. case "train": //好友打开
  1970. _formdiv = new U.UF.UI.form(
  1971. "训练平台",
  1972. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1973. "id": "train",
  1974. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1975. "onresize": function () { }
  1976. }, {
  1977. closecallback: function () { }
  1978. }, { "style": { "height": "36px" } }).form; //创建窗体
  1979. _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); } }
  1980. break;
  1981. case "studentStudy":
  1982. _formdiv = new U.UF.UI.form(
  1983. "课程中心",
  1984. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1985. "id": "studentStudy",
  1986. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1987. "onresize": function () { }
  1988. }, {
  1989. closecallback: function () { }
  1990. }, { "style": { "height": "36px" } }).form; //创建窗体
  1991. _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); } }
  1992. break;
  1993. case "mindNetwork": //好友打开
  1994. _formdiv = new U.UF.UI.form(
  1995. "思维网格",
  1996. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid + "&org=" + _org }), {
  1997. "id": "mindNetwork",
  1998. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1999. "onresize": function () { }
  2000. }, {
  2001. closecallback: function () { }
  2002. }, { "style": { "height": "36px" } }).form; //创建窗体
  2003. _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); } }
  2004. break;
  2005. case "studentClassRoom": //好友打开
  2006. _formdiv = new U.UF.UI.form(
  2007. "实时课堂",
  2008. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/liveRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2009. "id": "studentClassRoom",
  2010. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2011. "onresize": function () { }
  2012. }, {
  2013. closecallback: function () { }
  2014. }, { "style": { "height": "36px" } }).form; //创建窗体
  2015. _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); } }
  2016. setTimeout(() => {
  2017. U.UF.F.windowZooming(_formdiv)
  2018. }, 0);
  2019. break;
  2020. }
  2021. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2022. //选择应用处理
  2023. switch (str) {
  2024. case "project": //好友打开
  2025. _formdiv = new U.UF.UI.form(
  2026. "课程管理",
  2027. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2028. "id": "project",
  2029. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2030. "onresize": function () { }
  2031. }, {
  2032. closecallback: function () { }
  2033. }, { "style": { "height": "36px" } }).form; //创建窗体
  2034. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2035. break;
  2036. case "student":
  2037. _formdiv = new U.UF.UI.form(
  2038. "学生管理",
  2039. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  2040. "id": "student",
  2041. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2042. "onresize": function () { }
  2043. }, {
  2044. closecallback: function () { }
  2045. }, { "style": { "height": "36px" } }).form; //创建窗体
  2046. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2047. break;
  2048. case "evaluate":
  2049. _formdiv = new U.UF.UI.form(
  2050. "学生评价",
  2051. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2052. "id": "evaluate",
  2053. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2054. "onresize": function () { }
  2055. }, {
  2056. closecallback: function () { }
  2057. }, { "style": { "height": "36px" } }).form; //创建窗体
  2058. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2059. break;
  2060. case "sys":
  2061. _formdiv = new U.UF.UI.form(
  2062. "目标管理",
  2063. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2064. "id": "sys",
  2065. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2066. "onresize": function () { }
  2067. }, {
  2068. closecallback: function () { }
  2069. }, { "style": { "height": "36px" } }).form; //创建窗体
  2070. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2071. break;
  2072. case "courseDesign":
  2073. _formdiv = new U.UF.UI.form(
  2074. "项目设计",
  2075. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2076. "id": "courseDesign",
  2077. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2078. "onresize": function () { }
  2079. }, {
  2080. closecallback: function () { }
  2081. }, { "style": { "height": "36px" } }).form; //创建窗体
  2082. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "项目设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2083. break;
  2084. case "program":
  2085. _formdiv = new U.UF.UI.form(
  2086. "编程平台",
  2087. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2088. "id": "program",
  2089. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2090. "onresize": function () { }
  2091. }, {
  2092. closecallback: function () { }
  2093. }, { "style": { "height": "36px" } }).form; //创建窗体
  2094. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2095. break;
  2096. case "class":
  2097. _formdiv = new U.UF.UI.form(
  2098. "班级管理",
  2099. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2100. "id": "class",
  2101. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2102. "onresize": function () { }
  2103. }, {
  2104. closecallback: function () { }
  2105. }, { "style": { "height": "36px" } }).form; //创建窗体
  2106. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2107. break;
  2108. case "my":
  2109. _formdiv = new U.UF.UI.form(
  2110. "我的资料",
  2111. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  2112. "id": "my",
  2113. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2114. "onresize": function () { }
  2115. }, {
  2116. closecallback: function () { }
  2117. }, { "style": { "height": "36px" } }).form; //创建窗体
  2118. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2119. break;
  2120. case "notice":
  2121. _formdiv = new U.UF.UI.form(
  2122. "通知公告",
  2123. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  2124. "id": "notice",
  2125. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2126. "onresize": function () { }
  2127. }, {
  2128. closecallback: function () { }
  2129. }, { "style": { "height": "36px" } }).form; //创建窗体
  2130. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2131. break;
  2132. case "library":
  2133. _formdiv = new U.UF.UI.form(
  2134. "素材库",
  2135. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  2136. "id": "library",
  2137. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2138. "onresize": function () { }
  2139. }, {
  2140. closecallback: function () { }
  2141. }, { "style": { "height": "36px" } }).form; //创建窗体
  2142. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2143. break;
  2144. case "whiteboard":
  2145. _formdiv = new U.UF.UI.form(
  2146. "电子白板",
  2147. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2148. "id": "whiteboard",
  2149. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2150. "onresize": function () { }
  2151. }, {
  2152. closecallback: function () { }
  2153. }, { "style": { "height": "36px" } }).form; //创建窗体
  2154. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2155. break;
  2156. case "investigation":
  2157. _formdiv = new U.UF.UI.form(
  2158. "问卷调查",
  2159. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  2160. "id": "investigation",
  2161. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2162. "onresize": function () { }
  2163. }, {
  2164. closecallback: function () { }
  2165. }, { "style": { "height": "36px" } }).form; //创建窗体
  2166. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2167. break;
  2168. case "note":
  2169. _formdiv = new U.UF.UI.form(
  2170. "便签分类",
  2171. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  2172. "id": "note",
  2173. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2174. "onresize": function () { }
  2175. }, {
  2176. closecallback: function () { }
  2177. }, { "style": { "height": "36px" } }).form; //创建窗体
  2178. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2179. break;
  2180. // case "score":
  2181. // _formdiv = new U.UF.UI.form(
  2182. // "量规评分",
  2183. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2184. // "id": "score",
  2185. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2186. // "onresize": function() {}
  2187. // }, {
  2188. // closecallback: function() {}
  2189. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2190. // _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); } }
  2191. // break;
  2192. case "mind":
  2193. _formdiv = new U.UF.UI.form(
  2194. "思维导图",
  2195. $$("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"
  2196. "id": "mind",
  2197. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2198. "onresize": function () { }
  2199. }, {
  2200. closecallback: function () { }
  2201. }, { "style": { "height": "36px" } }).form; //创建窗体
  2202. _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); } }
  2203. break;
  2204. case "doc":
  2205. // U.MD.D.I.isRoom();
  2206. _formdiv = new U.UF.UI.form(
  2207. "协同文档",
  2208. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2209. "id": "doc",
  2210. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2211. "onresize": function () { }
  2212. }, {
  2213. closecallback: function () { }
  2214. }, { "style": { "height": "36px" } }).form; //创建窗体
  2215. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2216. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2217. })
  2218. _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); } }
  2219. break;
  2220. case "study":
  2221. _formdiv = new U.UF.UI.form(
  2222. "课程中心",
  2223. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2224. "id": "study",
  2225. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2226. "onresize": function () { }
  2227. }, {
  2228. closecallback: function () { }
  2229. }, { "style": { "height": "36px" } }).form; //创建窗体
  2230. _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); } }
  2231. break;
  2232. case "mindNetwork": //好友打开
  2233. _formdiv = new U.UF.UI.form(
  2234. "思维网格",
  2235. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid + "&org=" + _org }), {
  2236. "id": "mindNetwork",
  2237. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2238. "onresize": function () { }
  2239. }, {
  2240. closecallback: function () { }
  2241. }, { "style": { "height": "36px" } }).form; //创建窗体
  2242. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2243. break;
  2244. case "train": //好友打开
  2245. _formdiv = new U.UF.UI.form(
  2246. "训练平台",
  2247. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2248. "id": "mindNetwork",
  2249. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2250. "onresize": function () { }
  2251. }, {
  2252. closecallback: function () { }
  2253. }, { "style": { "height": "36px" } }).form; //创建窗体
  2254. _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); } }
  2255. break;
  2256. case "teacherClassRoom": //好友打开
  2257. _formdiv = new U.UF.UI.form(
  2258. "实时课堂",
  2259. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/classRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2260. "id": "teacherClassRoom",
  2261. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2262. "onresize": function () { }
  2263. }, {
  2264. closecallback: function () { }
  2265. }, { "style": { "height": "36px" } }).form; //创建窗体
  2266. _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); } }
  2267. setTimeout(() => {
  2268. U.UF.F.windowZooming(_formdiv)
  2269. }, 0);
  2270. break;
  2271. }
  2272. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2273. switch (str) {
  2274. case "project": //好友打开
  2275. _formdiv = new U.UF.UI.form(
  2276. "课程管理",
  2277. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2278. "id": "project",
  2279. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2280. "onresize": function () { }
  2281. }, {
  2282. closecallback: function () { }
  2283. }, { "style": { "height": "36px" } }).form; //创建窗体
  2284. _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); } }
  2285. break;
  2286. case "evaluate":
  2287. _formdiv = new U.UF.UI.form(
  2288. "学生评价",
  2289. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2290. "id": "evaluate",
  2291. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2292. "onresize": function () { }
  2293. }, {
  2294. closecallback: function () { }
  2295. }, { "style": { "height": "36px" } }).form; //创建窗体
  2296. _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); } }
  2297. break;
  2298. case "notice":
  2299. _formdiv = new U.UF.UI.form(
  2300. "通知公告",
  2301. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  2302. "id": "notice",
  2303. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2304. "onresize": function () { }
  2305. }, {
  2306. closecallback: function () { }
  2307. }, { "style": { "height": "36px" } }).form; //创建窗体
  2308. _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); } }
  2309. break;
  2310. case "stuLibrary":
  2311. _formdiv = new U.UF.UI.form(
  2312. "学习资料",
  2313. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studyLibrary?userid=" + _userid + "&org=" + _org }), {
  2314. "id": "stuLibrary",
  2315. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2316. "onresize": function () { }
  2317. }, {
  2318. closecallback: function () { }
  2319. }, { "style": { "height": "36px" } }).form; //创建窗体
  2320. _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); } }
  2321. break;
  2322. case "program":
  2323. _formdiv = new U.UF.UI.form(
  2324. "编程平台",
  2325. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2326. "id": "program",
  2327. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2328. "onresize": function () { }
  2329. }, {
  2330. closecallback: function () { }
  2331. }, { "style": { "height": "36px" } }).form; //创建窗体
  2332. _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); } }
  2333. break;
  2334. case "whiteboard":
  2335. _formdiv = new U.UF.UI.form(
  2336. "电子白板",
  2337. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2338. "id": "whiteboard",
  2339. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2340. "onresize": function () { }
  2341. }, {
  2342. closecallback: function () { }
  2343. }, { "style": { "height": "36px" } }).form; //创建窗体
  2344. _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); } }
  2345. break;
  2346. case "investigation":
  2347. _formdiv = new U.UF.UI.form(
  2348. "问卷调查",
  2349. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  2350. "id": "investigation",
  2351. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2352. "onresize": function () { }
  2353. }, {
  2354. closecallback: function () { }
  2355. }, { "style": { "height": "36px" } }).form; //创建窗体
  2356. _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); } }
  2357. break;
  2358. case "mind":
  2359. _formdiv = new U.UF.UI.form(
  2360. "思维导图",
  2361. $$("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"
  2362. "id": "mind",
  2363. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2364. "onresize": function () { }
  2365. }, {
  2366. closecallback: function () { }
  2367. }, { "style": { "height": "36px" } }).form; //创建窗体
  2368. _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); } }
  2369. break;
  2370. case "doc":
  2371. // U.MD.D.I.isRoom();
  2372. _formdiv = new U.UF.UI.form(
  2373. "协同文档",
  2374. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2375. "id": "doc",
  2376. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2377. "onresize": function () { }
  2378. }, {
  2379. closecallback: function () { }
  2380. }, { "style": { "height": "36px" } }).form; //创建窗体
  2381. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2382. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2383. })
  2384. _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); } }
  2385. break;
  2386. case "study":
  2387. _formdiv = new U.UF.UI.form(
  2388. "课程中心",
  2389. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2390. "id": "study",
  2391. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2392. "onresize": function () { }
  2393. }, {
  2394. closecallback: function () { }
  2395. }, { "style": { "height": "36px" } }).form; //创建窗体
  2396. _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); } }
  2397. break;
  2398. case "mindNetwork": //好友打开
  2399. _formdiv = new U.UF.UI.form(
  2400. "思维网格",
  2401. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid + "&org=" + _org }), {
  2402. "id": "mindNetwork",
  2403. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2404. "onresize": function () { }
  2405. }, {
  2406. closecallback: function () { }
  2407. }, { "style": { "height": "36px" } }).form; //创建窗体
  2408. _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); } }
  2409. break;
  2410. case "train": //好友打开
  2411. _formdiv = new U.UF.UI.form(
  2412. "训练平台",
  2413. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2414. "id": "train",
  2415. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2416. "onresize": function () { }
  2417. }, {
  2418. closecallback: function () { }
  2419. }, { "style": { "height": "36px" } }).form; //创建窗体
  2420. _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); } }
  2421. break;
  2422. case "sys":
  2423. _formdiv = new U.UF.UI.form(
  2424. "目标管理",
  2425. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2426. "id": "sys",
  2427. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2428. "onresize": function () { }
  2429. }, {
  2430. closecallback: function () { }
  2431. }, { "style": { "height": "36px" } }).form; //创建窗体
  2432. _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); } }
  2433. break;
  2434. case "courseDesign":
  2435. _formdiv = new U.UF.UI.form(
  2436. "项目设计",
  2437. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2438. "id": "courseDesign",
  2439. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2440. "onresize": function () { }
  2441. }, {
  2442. closecallback: function () { }
  2443. }, { "style": { "height": "36px" } }).form; //创建窗体
  2444. _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); } }
  2445. break;
  2446. }
  2447. } else if (!_type) {
  2448. switch (str) {
  2449. case "my":
  2450. _formdiv = new U.UF.UI.form(
  2451. "我的资料",
  2452. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  2453. "id": "my",
  2454. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2455. "onresize": function () { }
  2456. }, {
  2457. closecallback: function () { }
  2458. }, { "style": { "height": "36px" } }).form; //创建窗体
  2459. _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); } }
  2460. break;
  2461. }
  2462. }
  2463. switch (str) {
  2464. // AIprogram2 AI体验 aihub.cocorobo.cn
  2465. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2466. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2467. case "AIprogram2": //AI体验
  2468. _formdiv = new U.UF.UI.form(
  2469. "AI体验",
  2470. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2471. "id": "AIprogram2",
  2472. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2473. "onresize": function () { }
  2474. }, {
  2475. closecallback: function () { }
  2476. }, { "style": { "height": "36px" } }).form; //创建窗体
  2477. _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); } }
  2478. break;
  2479. case "Pythonprogram": //python编程
  2480. _formdiv = new U.UF.UI.form(
  2481. "Python编程",
  2482. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2483. "id": "Pythonprogram",
  2484. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2485. "onresize": function () { }
  2486. }, {
  2487. closecallback: function () { }
  2488. }, { "style": { "height": "36px" } }).form; //创建窗体
  2489. _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); } }
  2490. break;
  2491. case "AIprogram": //ai编程
  2492. _formdiv = new U.UF.UI.form(
  2493. "AI编程平台",
  2494. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2495. "id": "AIprogram",
  2496. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2497. "onresize": function () { }
  2498. }, {
  2499. closecallback: function () { }
  2500. }, { "style": { "height": "36px" } }).form; //创建窗体
  2501. _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); } }
  2502. break;
  2503. case "CocoPi": //CocoPi
  2504. _formdiv = new U.UF.UI.form(
  2505. "CocoPi",
  2506. $$("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" }), {
  2507. "id": "CocoPi",
  2508. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2509. "onresize": function () { }
  2510. }, {
  2511. closecallback: function () { }
  2512. }, { "style": { "height": "36px" } }).form; //创建窗体
  2513. _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); } }
  2514. break;
  2515. case "car": //模拟驾驶
  2516. _formdiv = new U.UF.UI.form(
  2517. "模拟驾驶",
  2518. $$("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/" }), {
  2519. "id": "car",
  2520. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2521. "onresize": function () { }
  2522. }, {
  2523. closecallback: function () { }
  2524. }, { "style": { "height": "36px" } }).form; //创建窗体
  2525. _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); } }
  2526. break;
  2527. case "lineSearch": //路径搜索
  2528. _formdiv = new U.UF.UI.form(
  2529. "路径搜索",
  2530. $$("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/" }), {
  2531. "id": "lineSearch",
  2532. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2533. "onresize": function () { }
  2534. }, {
  2535. closecallback: function () { }
  2536. }, { "style": { "height": "36px" } }).form; //创建窗体
  2537. _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); } }
  2538. break;
  2539. case "deepLearning": //深度学习
  2540. _formdiv = new U.UF.UI.form(
  2541. "深度学习",
  2542. $$("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/#" }), {
  2543. "id": "deepLearning",
  2544. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2545. "onresize": function () { }
  2546. }, {
  2547. closecallback: function () { }
  2548. }, { "style": { "height": "36px" } }).form; //创建窗体
  2549. _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); } }
  2550. break;
  2551. case "allHistory": //深度学习
  2552. _formdiv = new U.UF.UI.form(
  2553. "全历史",
  2554. $$("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://www.allhistory.com/" }), {
  2555. "id": "allHistory",
  2556. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2557. "onresize": function () { }
  2558. }, {
  2559. closecallback: function () { }
  2560. }, { "style": { "height": "36px" } }).form; //创建窗体
  2561. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/allHistory.png)" }, "name": "全历史", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2562. break;
  2563. case "chatPDF": //ai编程
  2564. _formdiv = new U.UF.UI.form(
  2565. "chatPDF",
  2566. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2567. "id": "chatPDF",
  2568. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2569. "onresize": function () { }
  2570. }, {
  2571. closecallback: function () { }
  2572. }, { "style": { "height": "36px" } }).form; //创建窗体
  2573. _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); } }
  2574. break;
  2575. case "resources": //国家教育
  2576. _formdiv = new U.UF.UI.form(
  2577. "国家教育",
  2578. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2579. "id": "resources",
  2580. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2581. "onresize": function () { }
  2582. }, {
  2583. closecallback: function () { }
  2584. }, { "style": { "height": "36px" } }).form; //创建窗体
  2585. _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); } }
  2586. break;
  2587. case "codeEdit": //源码编辑
  2588. _formdiv = new U.UF.UI.form(
  2589. "源码编辑",
  2590. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2591. "id": "codeEdit",
  2592. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2593. "onresize": function () { }
  2594. }, {
  2595. closecallback: function () { }
  2596. }, { "style": { "height": "36px" } }).form; //创建窗体
  2597. _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); } }
  2598. break; //
  2599. case "MindMap": //MindMap
  2600. _formdiv = new U.UF.UI.form(
  2601. "MindMap",
  2602. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2603. "id": "MindMap",
  2604. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2605. "onresize": function () { }
  2606. }, {
  2607. closecallback: function () { }
  2608. }, { "style": { "height": "36px" } }).form; //创建窗体
  2609. _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); } }
  2610. break;
  2611. case "netWorkPanel": //netWorkPanel
  2612. _formdiv = new U.UF.UI.form(
  2613. "netWorkPanel",
  2614. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2615. "id": "netWorkPanel",
  2616. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2617. "onresize": function () { }
  2618. }, {
  2619. closecallback: function () { }
  2620. }, { "style": { "height": "36px" } }).form; //创建窗体
  2621. _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); } }
  2622. break;
  2623. case "GeoGebra": //GeoGebra
  2624. _formdiv = new U.UF.UI.form(
  2625. "GeoGebra",
  2626. $$("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" }), {
  2627. "id": "GeoGebra",
  2628. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2629. "onresize": function () { }
  2630. }, {
  2631. closecallback: function () { }
  2632. }, { "style": { "height": "36px" } }).form; //创建窗体
  2633. _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); } }
  2634. break;
  2635. case "translation": //翻译
  2636. _formdiv = new U.UF.UI.form(
  2637. "翻译",
  2638. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2639. "id": "translation",
  2640. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2641. "onresize": function () { }
  2642. }, {
  2643. closecallback: function () { }
  2644. }, { "style": { "height": "36px" } }).form; //创建窗体
  2645. _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); } }
  2646. break;
  2647. case "mohe": //魔盒
  2648. _formdiv = new U.UF.UI.form(
  2649. "魔盒识字",
  2650. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2651. "id": "mohe",
  2652. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2653. "onresize": function () { }
  2654. }, {
  2655. closecallback: function () { }
  2656. }, { "style": { "height": "36px" } }).form; //创建窗体
  2657. _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); } }
  2658. break;
  2659. case "24game": //24点
  2660. _formdiv = new U.UF.UI.form(
  2661. "24点",
  2662. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2663. "id": "24game",
  2664. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2665. "onresize": function () { }
  2666. }, {
  2667. closecallback: function () { }
  2668. }, { "style": { "height": "36px" } }).form; //创建窗体
  2669. _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); } }
  2670. break;
  2671. case "case":
  2672. _formdiv = new U.UF.UI.form(
  2673. "课程进展",
  2674. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesign?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2675. "id": "case",
  2676. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2677. "onresize": function () { }
  2678. }, {
  2679. closecallback: function () { }
  2680. }, { "style": { "height": "36px" } }).form; //创建窗体
  2681. _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); } }
  2682. break;
  2683. case "snf":
  2684. _formdiv = new U.UF.UI.form(
  2685. "赛诺梵",
  2686. $$("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" }), {
  2687. "id": "snf",
  2688. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2689. "onresize": function () { }
  2690. }, {
  2691. closecallback: function () { }
  2692. }, { "style": { "height": "36px" } }).form; //创建窗体
  2693. _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); } }
  2694. break;
  2695. case "hanFamily":
  2696. _formdiv = new U.UF.UI.form(
  2697. "汉字家族",
  2698. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2699. "id": "hanFamily",
  2700. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2701. "onresize": function () { }
  2702. }, {
  2703. closecallback: function () { }
  2704. }, { "style": { "height": "36px" } }).form; //创建窗体
  2705. _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); } }
  2706. break;
  2707. case "hanClassics":
  2708. _formdiv = new U.UF.UI.form(
  2709. "国学经典",
  2710. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2711. "id": "hanClassics",
  2712. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2713. "onresize": function () { }
  2714. }, {
  2715. closecallback: function () { }
  2716. }, { "style": { "height": "36px" } }).form; //创建窗体
  2717. _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); } }
  2718. break;
  2719. case "hanTraining":
  2720. _formdiv = new U.UF.UI.form(
  2721. "笔画训练",
  2722. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2723. "id": "hanTraining",
  2724. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2725. "onresize": function () { }
  2726. }, {
  2727. closecallback: function () { }
  2728. }, { "style": { "height": "36px" } }).form; //创建窗体
  2729. _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); } }
  2730. break;
  2731. case "hanClass":
  2732. _formdiv = new U.UF.UI.form(
  2733. "书法课堂",
  2734. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2735. "id": "hanClass",
  2736. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2737. "onresize": function () { }
  2738. }, {
  2739. closecallback: function () { }
  2740. }, { "style": { "height": "36px" } }).form; //创建窗体
  2741. _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); } }
  2742. break;
  2743. case "han":
  2744. _formdiv = new U.UF.UI.form(
  2745. "汉字宫",
  2746. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2747. "id": "han",
  2748. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2749. "onresize": function () { }
  2750. }, {
  2751. closecallback: function () { }
  2752. }, { "style": { "height": "36px" } }).form; //创建窗体
  2753. _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); } }
  2754. break;
  2755. case "projectGM": //课程管理
  2756. _formdiv = new U.UF.UI.form(
  2757. "课程管理",
  2758. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/courseGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2759. "id": "projectGM",
  2760. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2761. "onresize": function () { }
  2762. }, {
  2763. closecallback: function () { }
  2764. }, { "style": { "height": "36px" } }).form; //创建窗体
  2765. _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); } }
  2766. break;
  2767. case "studyGM"://课程中心
  2768. _formdiv = new U.UF.UI.form(
  2769. "课程中心",
  2770. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/indexGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2771. "id": "study",
  2772. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2773. "onresize": function () { }
  2774. }, {
  2775. closecallback: function () { }
  2776. }, { "style": { "height": "36px" } }).form; //创建窗体
  2777. _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); } }
  2778. break;
  2779. // studentGM
  2780. case "studentGM"://学生管理
  2781. _formdiv = new U.UF.UI.form(
  2782. "学生管理",
  2783. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studentGM?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  2784. "id": "studentGM",
  2785. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2786. "onresize": function () { }
  2787. }, {
  2788. closecallback: function () { }
  2789. }, { "style": { "height": "36px" } }).form; //创建窗体
  2790. _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); } }
  2791. break;
  2792. case "evaluateGM"://学生评价
  2793. _formdiv = new U.UF.UI.form(
  2794. "学生评价",
  2795. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2796. "id": "evaluateGM",
  2797. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2798. "onresize": function () { }
  2799. }, {
  2800. closecallback: function () { }
  2801. }, { "style": { "height": "36px" } }).form; //创建窗体
  2802. _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); } }
  2803. break;
  2804. // classGM
  2805. case "classGM"://班级管理
  2806. _formdiv = new U.UF.UI.form(
  2807. "班级管理",
  2808. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/classGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2809. "id": "classGM",
  2810. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2811. "onresize": function () { }
  2812. }, {
  2813. closecallback: function () { }
  2814. }, { "style": { "height": "36px" } }).form; //创建窗体
  2815. _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); } }
  2816. break;
  2817. // dataGM
  2818. case "dataGM":
  2819. _formdiv = new U.UF.UI.form(
  2820. "我的资料",
  2821. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataGM?userid=" + _userid + "&org=" + _org }), {
  2822. "id": "dataGM",
  2823. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2824. "onresize": function () { }
  2825. }, {
  2826. closecallback: function () { }
  2827. }, { "style": { "height": "36px" } }).form; //创建窗体
  2828. _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); } }
  2829. break;
  2830. // caseGM
  2831. case "caseGM"://课程进展
  2832. _formdiv = new U.UF.UI.form(
  2833. "课程进展",
  2834. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesignGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2835. "id": "caseGM",
  2836. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2837. "onresize": function () { }
  2838. }, {
  2839. closecallback: function () { }
  2840. }, { "style": { "height": "36px" } }).form; //创建窗体
  2841. _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); } }
  2842. break;
  2843. // meterialGM
  2844. case "meterialGM"://素材库
  2845. _formdiv = new U.UF.UI.form(
  2846. "素材库",
  2847. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/libraryGM?userid=" + _userid + "&org=" + _org }), {
  2848. "id": "meterialGM",
  2849. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2850. "onresize": function () { }
  2851. }, {
  2852. closecallback: function () { }
  2853. }, { "style": { "height": "36px" } }).form; //创建窗体
  2854. _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); } }
  2855. break;
  2856. // evaluateSGM
  2857. case "evaluateSGM": //我的评价
  2858. _formdiv = new U.UF.UI.form(
  2859. "我的评价",
  2860. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2861. "id": "evaluateSGM",
  2862. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2863. "onresize": function () { }
  2864. }, {
  2865. closecallback: function () { }
  2866. }, { "style": { "height": "36px" } }).form; //创建窗体
  2867. _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); } }
  2868. break;
  2869. case "jupyter": //jupyter
  2870. _formdiv = new U.UF.UI.form(
  2871. "jupyter",
  2872. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  2873. "id": "jupyter",
  2874. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2875. "onresize": function () { }
  2876. }, {
  2877. closecallback: function () { }
  2878. }, { "style": { "height": "36px" } }).form; //创建窗体
  2879. _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); } }
  2880. break;
  2881. case "number": //数字实验室
  2882. _formdiv = new U.UF.UI.form(
  2883. "数字实验室",
  2884. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  2885. "id": "number",
  2886. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2887. "onresize": function () { }
  2888. }, {
  2889. closecallback: function () { }
  2890. }, { "style": { "height": "36px" } }).form; //创建窗体
  2891. _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); } }
  2892. break;
  2893. case "studentCourse": //项目管理 学生
  2894. _formdiv = new U.UF.UI.form(
  2895. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2896. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studentCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2897. "id": "studentCourse",
  2898. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2899. "onresize": function () { }
  2900. }, {
  2901. closecallback: function () { }
  2902. }, { "style": { "height": "36px" } }).form; //创建窗体
  2903. _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); } }
  2904. break;
  2905. case "studentCourseS": //项目管理 老师
  2906. _formdiv = new U.UF.UI.form(
  2907. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2908. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/scourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2909. "id": "studentCourseS",
  2910. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2911. "onresize": function () { }
  2912. }, {
  2913. closecallback: function () { }
  2914. }, { "style": { "height": "36px" } }).form; //创建窗体
  2915. _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); } }
  2916. break;
  2917. case "studentIndex": //项目中心
  2918. _formdiv = new U.UF.UI.form(
  2919. "项目中心",
  2920. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studentIndex?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType + "&role=" + _role }), {
  2921. "id": "studentIndex",
  2922. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2923. "onresize": function () { }
  2924. }, {
  2925. closecallback: function () { }
  2926. }, { "style": { "height": "36px" } }).form; //创建窗体
  2927. _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); } }
  2928. break;
  2929. case "CaseDesignS":
  2930. _formdiv = new U.UF.UI.form(
  2931. "项目进展",
  2932. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesignS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2933. "id": "case",
  2934. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2935. "onresize": function () { }
  2936. }, {
  2937. closecallback: function () { }
  2938. }, { "style": { "height": "36px" } }).form; //创建窗体
  2939. _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); } }
  2940. break;
  2941. case "tcStudent": //腾讯学生管理
  2942. _formdiv = new U.UF.UI.form(
  2943. "学生管理",
  2944. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcStudent?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2945. "id": "tcStudent",
  2946. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2947. "onresize": function () { }
  2948. }, {
  2949. closecallback: function () { }
  2950. }, { "style": { "height": "36px" } }).form; //创建窗体
  2951. _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); } }
  2952. break;
  2953. case "tcSchool": //腾讯学校管理
  2954. _formdiv = new U.UF.UI.form(
  2955. "学校管理",
  2956. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcSchool?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2957. "id": "tcSchool",
  2958. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2959. "onresize": function () { }
  2960. }, {
  2961. closecallback: function () { }
  2962. }, { "style": { "height": "36px" } }).form; //创建窗体
  2963. _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); } }
  2964. break;
  2965. case "tcTeacher": //腾讯学校管理
  2966. _formdiv = new U.UF.UI.form(
  2967. "教师管理",
  2968. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcTeacher?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2969. "id": "tcTeacher",
  2970. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2971. "onresize": function () { }
  2972. }, {
  2973. closecallback: function () { }
  2974. }, { "style": { "height": "36px" } }).form; //创建窗体
  2975. _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); } }
  2976. break;
  2977. case "tcData": //腾讯我的资料
  2978. _formdiv = new U.UF.UI.form(
  2979. "我的资料",
  2980. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcData?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2981. "id": "tcData",
  2982. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2983. "onresize": function () { }
  2984. }, {
  2985. closecallback: function () { }
  2986. }, { "style": { "height": "36px" } }).form; //创建窗体
  2987. _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); } }
  2988. break;
  2989. case "tcNotice": //腾讯消息通知
  2990. _formdiv = new U.UF.UI.form(
  2991. "消息通知",
  2992. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcNotice?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2993. "id": "tcNotice",
  2994. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2995. "onresize": function () { }
  2996. }, {
  2997. closecallback: function () { }
  2998. }, { "style": { "height": "36px" } }).form; //创建窗体
  2999. _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); } }
  3000. break;
  3001. case "myReport": //好友打开
  3002. _formdiv = new U.UF.UI.form(
  3003. "我的评价",
  3004. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/myReport?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&classid=" + _classId }), {
  3005. "id": "myReport",
  3006. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3007. "onresize": function () { }
  3008. }, {
  3009. closecallback: function () { }
  3010. }, { "style": { "height": "36px" } }).form; //创建窗体
  3011. _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); } }
  3012. break;
  3013. case "learnAna": //好友打开
  3014. _formdiv = new U.UF.UI.form(
  3015. "学习分析",
  3016. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/learnAna?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3017. "id": "learnAna",
  3018. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3019. "onresize": function () { }
  3020. }, {
  3021. closecallback: function () { }
  3022. }, { "style": { "height": "36px" } }).form; //创建窗体
  3023. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/learnAna.png)" }, "name": "学习分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3024. break;
  3025. case "AIChat": //AI共创
  3026. _formdiv = new U.UF.UI.form(
  3027. "AI共创",
  3028. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3029. "id": "AIChat",
  3030. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3031. "onresize": function () { }
  3032. }, {
  3033. istop: true,
  3034. closecallback: function () { $("#aichat_icon").remove(); },
  3035. narrowcallback: function () {
  3036. if (!$("#aichat_icon")[0]) {
  3037. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3038. }
  3039. },
  3040. }, { "style": { "height": "36px" } }).form; //创建窗体
  3041. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI共创", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3042. break;
  3043. case "AIAnalyse": //AI共创
  3044. _formdiv = new U.UF.UI.form(
  3045. "AI分析",
  3046. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3047. "id": "AIAnalyse",
  3048. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3049. "onresize": function () { }
  3050. }, {
  3051. closecallback: function () { }
  3052. }, { "style": { "height": "36px" } }).form; //创建窗体
  3053. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3054. break;
  3055. case "studioCourse": //AI共创
  3056. _formdiv = new U.UF.UI.form(
  3057. "工作管理",
  3058. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studioCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3059. "id": "studioCourse",
  3060. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3061. "onresize": function () { }
  3062. }, {
  3063. closecallback: function () { }
  3064. }, { "style": { "height": "36px" } }).form; //创建窗体
  3065. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioCourse.png)" }, "name": "工作管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3066. break;
  3067. case "studioIndex": //AI共创
  3068. _formdiv = new U.UF.UI.form(
  3069. "工作中心",
  3070. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studioIndex?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType + "&role=" + _role }), {
  3071. "id": "studioIndex",
  3072. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3073. "onresize": function () { }
  3074. }, {
  3075. closecallback: function () { }
  3076. }, { "style": { "height": "36px" } }).form; //创建窗体
  3077. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioIndex.png)" }, "name": "工作中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3078. break;
  3079. }
  3080. //U.MD.D.I.openClick(str);
  3081. //如果有任务栏信息
  3082. if (_taskbar) {
  3083. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3084. }
  3085. }
  3086. // U.MD.D.I.openClick = function(str){
  3087. // var click = '';
  3088. // switch(str){
  3089. // case 'friend':
  3090. // click = '我的好友';
  3091. // break;
  3092. // case 'domain':
  3093. // click = '域名管理';
  3094. // break;
  3095. // case 'disk':
  3096. // click = '我的云盘';
  3097. // break;
  3098. // case 'word':
  3099. // click = 'Word';
  3100. // break;
  3101. // case 'excel':
  3102. // click = 'Execl';
  3103. // break;
  3104. // case 'txt':
  3105. // click = '文本文件';
  3106. // break;
  3107. // case 'lookupFriend':
  3108. // click = '查找好友';
  3109. // break;
  3110. // case 'ftp':
  3111. // click = 'FTP';
  3112. // break;
  3113. // case 'group':
  3114. // click = '群组';
  3115. // break;
  3116. // case 'set':
  3117. // click = '我的设置';
  3118. // break;
  3119. // case 'systemSet':
  3120. // click = '系统设置';
  3121. // break;
  3122. // case 'boomYun':
  3123. // click = '互联办公';
  3124. // break;
  3125. // case 'xz':
  3126. // click = '云端下载';
  3127. // break;
  3128. // case 'client':
  3129. // click = '有思浏览器';
  3130. // break;
  3131. // case 'backEndProgramming':
  3132. // click = '在线后台编程';
  3133. // break;
  3134. // case 'frontEndProgramming':
  3135. // click = '在线前端编程';
  3136. // break;
  3137. // default: break;
  3138. // }
  3139. // if(U.MD.D.I.Ip && click){
  3140. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3141. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3142. // })
  3143. // }
  3144. // }
  3145. /**
  3146. *函数作用:ajax简易函数,使用post格式
  3147. *@param url {data} 后台地址
  3148. *@param data {data} 参数json
  3149. *@param fn {data} 回调函数
  3150. *
  3151. */
  3152. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3153. // var xhr = new XMLHttpRequest();
  3154. // xhr.open("GET",url,true);
  3155. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3156. // xhr.onreadystatechange = function(){
  3157. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3158. // fn.call(this,xhr.responseText);
  3159. // }
  3160. // };
  3161. // xhr.send();
  3162. // }
  3163. /*判断是否是内网IP*/
  3164. // U.MD.D.I.isInnerIPFn = function(str){
  3165. // var curPageUrl = str;
  3166. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3167. // curPageUrl =curPageUrl.replace(reg1,'');
  3168. // // console.log('curPageUrl-1 '+curPageUrl);
  3169. // var reg2 = /\:+/g;//替换冒号为一点
  3170. // curPageUrl =curPageUrl.replace(reg2,'.');
  3171. // // console.log('curPageUrl-2 '+curPageUrl);
  3172. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3173. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3174. // if(curPageUrl[2] != '16'){
  3175. // return ipAddress;
  3176. // }else{
  3177. // return false;
  3178. // }
  3179. // }
  3180. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3181. // //compatibility for firefox and chrome
  3182. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3183. // var pc = new myPeerConnection({
  3184. // iceServers: []
  3185. // }),
  3186. // noop = function() {},
  3187. // localIPs = {},
  3188. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3189. // key;
  3190. // function iterateIP(ip) {
  3191. // if (!localIPs[ip]) onNewIP(ip);
  3192. // localIPs[ip] = true;
  3193. // }
  3194. // //create a bogus data channel
  3195. // pc.createDataChannel("");
  3196. // // create offer and set local description
  3197. // pc.createOffer().then(function(sdp) {
  3198. // sdp.sdp.split('\n').forEach(function(line) {
  3199. // if (line.indexOf('candidate') < 0) return;
  3200. // line.match(ipRegex).forEach(iterateIP);
  3201. // });
  3202. // pc.setLocalDescription(sdp, noop, noop);
  3203. // }).catch(function(reason) {
  3204. // // An error occurred, so handle the failure to connect
  3205. // });
  3206. // //sten for candidate events
  3207. // pc.onicecandidate = function(ice) {
  3208. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3209. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3210. // };
  3211. // }
  3212. // U.MD.D.I.getUserIpBool = function(callback){
  3213. // U.MD.D.I.getUserIP(function(ip){
  3214. // alert("Got IP! :" + ip);
  3215. // });
  3216. //}
  3217. //#endregion
  3218. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3219. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3220. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3221. _userinfo = US.userInfo, //登录用户信息
  3222. _userid = US.userInfo.userid //登录用户id
  3223. let _iframe;
  3224. let _cid = cid,
  3225. _stage = stage,
  3226. _task = task,
  3227. _tool = tool;
  3228. var _jie = $$("div", {
  3229. "style": {
  3230. "position": "absolute",
  3231. "bottom": "50px",
  3232. "right": "50px",
  3233. "zIndex": "9999",
  3234. "backgroundColor": "#2268bc",
  3235. "color": "#fff",
  3236. "padding": "12px 20px",
  3237. "cursor": "pointer",
  3238. "borderRadius": "4px",
  3239. },
  3240. "innerHTML": "提交作业"
  3241. })
  3242. let aTool = ''
  3243. let _loading = document.createElement('div')
  3244. _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;"
  3245. // _loading.id = "";
  3246. let _lchild = document.createElement('div')
  3247. let _limg = document.createElement('img')
  3248. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3249. _limg.style = "width: 26px;margin-right: 10px;"
  3250. _lchild.appendChild(_limg)
  3251. let _lspan = document.createElement('span')
  3252. _lspan.innerHTML = "上传中..."
  3253. _lchild.appendChild(_lspan)
  3254. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  3255. _loading.appendChild(_lchild)
  3256. var _box = $$('div', {
  3257. "style": {
  3258. "position": "relative",
  3259. "width": "100%",
  3260. "height": "100%",
  3261. },
  3262. })
  3263. _box.appendChild(_loading)
  3264. _box.id = str + '_loadLi'
  3265. switch (str) {
  3266. case "whiteboard":
  3267. aTool = 1;
  3268. _iframe = $$("iframe", {
  3269. "frameborder": "no",
  3270. "border": "0",
  3271. "scrolling ": "no",
  3272. "style": {
  3273. "cssText": "border:0;width:100%;height:100%"
  3274. },
  3275. "src": "https://iwb.cocorobo.cn/"
  3276. })
  3277. _box.appendChild(_iframe);
  3278. _box.appendChild(_jie);
  3279. _formdiv = new U.UF.UI.form(
  3280. "电子白板",
  3281. _box, {
  3282. "id": "whiteboard" + cid + stage + task + tool,
  3283. "style": {
  3284. "width": "90%",
  3285. "height": "90%",
  3286. "overflow": 'hidden'
  3287. },
  3288. "onresize": function () { }
  3289. }, {
  3290. closecallback: function () { }
  3291. }, {
  3292. "style": {
  3293. "height": "36px"
  3294. }
  3295. }).form; //创建窗体
  3296. _taskbar = {
  3297. "id": str + _formdiv.id,
  3298. "style": {
  3299. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3300. },
  3301. "name": "电子白板",
  3302. "forms": _formdiv,
  3303. "click": function () {
  3304. U.MD.D.I.openApplication(str, obj, info);
  3305. }
  3306. }
  3307. break;
  3308. case "mind":
  3309. aTool = 3;
  3310. _iframe = $$("iframe", {
  3311. "frameborder": "no",
  3312. "border": "0",
  3313. "scrolling ": "no",
  3314. "style": {
  3315. "cssText": "border:0;width:100%;height:100%"
  3316. },
  3317. "src": "/kityminder-editor/dist/index.html"
  3318. })
  3319. _box.appendChild(_iframe);
  3320. _box.appendChild(_jie);
  3321. _formdiv = new U.UF.UI.form(
  3322. "思维导图",
  3323. _box, { //"/jsmind/example/demo.html"
  3324. "id": "mind" + cid + stage + task + tool,
  3325. "style": {
  3326. "width": "90%",
  3327. "height": "90%",
  3328. "overflow": 'hidden'
  3329. },
  3330. "onresize": function () { }
  3331. }, {
  3332. closecallback: function () { }
  3333. }, {
  3334. "style": {
  3335. "height": "36px"
  3336. }
  3337. }).form; //创建窗体
  3338. _taskbar = {
  3339. "id": str + _formdiv.id,
  3340. "style": {
  3341. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3342. },
  3343. "name": "思维导图",
  3344. "forms": _formdiv,
  3345. "click": function () {
  3346. U.MD.D.I.openApplication(str, obj, info);
  3347. }
  3348. }
  3349. break;
  3350. case "MindMap":
  3351. aTool = 3;
  3352. _iframe = $$("iframe", {
  3353. "frameborder": "no",
  3354. "border": "0",
  3355. "scrolling ": "no",
  3356. "style": {
  3357. "cssText": "border:0;width:100%;height:100%"
  3358. },
  3359. "src": "//cloud.cocorobo.cn/mind/"
  3360. })
  3361. _box.appendChild(_iframe);
  3362. _box.appendChild(_jie);
  3363. _formdiv = new U.UF.UI.form(
  3364. "思维导图",
  3365. _box, { //"/jsmind/example/demo.html"
  3366. "id": "mind" + cid + stage + task + tool,
  3367. "style": {
  3368. "width": "90%",
  3369. "height": "90%",
  3370. "overflow": 'hidden'
  3371. },
  3372. "onresize": function () { }
  3373. }, {
  3374. closecallback: function () { }
  3375. }, {
  3376. "style": {
  3377. "height": "36px"
  3378. }
  3379. }).form; //创建窗体
  3380. _taskbar = {
  3381. "id": str + _formdiv.id,
  3382. "style": {
  3383. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3384. },
  3385. "name": "思维导图",
  3386. "forms": _formdiv,
  3387. "click": function () {
  3388. U.MD.D.I.openApplication(str, obj, info);
  3389. }
  3390. }
  3391. break;
  3392. case "doc":
  3393. aTool = 6;
  3394. _iframe = $$("iframe", {
  3395. "frameborder": "no",
  3396. "border": "0",
  3397. "scrolling ": "no",
  3398. "style": {
  3399. "cssText": "border:0;width:100%;height:100%"
  3400. },
  3401. "src": "/Office/Word/WordEditArea.htm"
  3402. })
  3403. _box.appendChild(_iframe);
  3404. _box.appendChild(_jie);
  3405. _formdiv = new U.UF.UI.form(
  3406. "协同文档",
  3407. _box, {
  3408. "id": "doc" + cid + stage + task + tool,
  3409. "style": {
  3410. "width": "90%",
  3411. "height": "90%",
  3412. "overflow": 'hidden'
  3413. },
  3414. "onresize": function () { }
  3415. }, {
  3416. closecallback: function () { }
  3417. }, {
  3418. "style": {
  3419. "height": "36px"
  3420. }
  3421. }).form; //创建窗体
  3422. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3423. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3424. })
  3425. _taskbar = {
  3426. "id": str + _formdiv.id,
  3427. "style": {
  3428. "backgroundImage": "url(/img/icon/doc.png)"
  3429. },
  3430. "name": "协同文档",
  3431. "forms": _formdiv,
  3432. "click": function () {
  3433. U.MD.D.I.openApplication(str, obj, info);
  3434. }
  3435. }
  3436. break;
  3437. case "mindNetwork": //好友打开
  3438. aTool = 7;
  3439. _iframe = $$("iframe", {
  3440. "webkitallowfullscreen": "",
  3441. "mozallowfullscreen": "",
  3442. "allowfullscreen": "",
  3443. "frameborder": "no",
  3444. "border": "0",
  3445. "scrolling ": "no",
  3446. "style": {
  3447. "cssText": "border:0; width:100%; height:100%;"
  3448. },
  3449. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3450. })
  3451. _box.appendChild(_iframe);
  3452. _box.appendChild(_jie);
  3453. _formdiv = new U.UF.UI.form(
  3454. "思维网格",
  3455. _box, {
  3456. "id": "mindNetwork" + cid + stage + task + tool,
  3457. "style": {
  3458. "width": "90%",
  3459. "height": "90%",
  3460. "overflow": 'hidden'
  3461. },
  3462. "onresize": function () { }
  3463. }, {
  3464. closecallback: function () { }
  3465. }, {
  3466. "style": {
  3467. "height": "36px"
  3468. }
  3469. }).form; //创建窗体
  3470. _taskbar = {
  3471. "id": str + _formdiv.id,
  3472. "style": {
  3473. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3474. },
  3475. "name": "思维网格",
  3476. "forms": _formdiv,
  3477. "click": function () {
  3478. U.MD.D.I.openApplication(str, obj, info);
  3479. }
  3480. }
  3481. break;
  3482. case "courseDesign":
  3483. _iframe = $$("iframe", {
  3484. "webkitallowfullscreen": "",
  3485. "mozallowfullscreen": "",
  3486. "allowfullscreen": "",
  3487. "frameborder": "no",
  3488. "border": "0",
  3489. "scrolling ": "no",
  3490. "style": {
  3491. "cssText": "border:0; width:100%; height:100%;"
  3492. },
  3493. "src": "/course-design-vue"
  3494. })
  3495. _box.appendChild(_iframe);
  3496. _box.appendChild(_jie);
  3497. _formdiv = new U.UF.UI.form(
  3498. "项目设计",
  3499. _box, {
  3500. "id": "courseDesign" + cid + stage + task + tool,
  3501. "style": {
  3502. "width": "90%",
  3503. "height": "90%",
  3504. "overflow": 'hidden'
  3505. },
  3506. "onresize": function () { }
  3507. }, {
  3508. closecallback: function () { }
  3509. }, {
  3510. "style": {
  3511. "height": "36px"
  3512. }
  3513. }).form; //创建窗体
  3514. _taskbar = {
  3515. "id": str + _formdiv.id,
  3516. "style": {
  3517. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3518. },
  3519. "name": "项目设计",
  3520. "forms": _formdiv,
  3521. "click": function () {
  3522. U.MD.D.I.openApplication(str, obj, info);
  3523. }
  3524. }
  3525. break;
  3526. }
  3527. const script1 = document.createElement("script");
  3528. script1.type = "text/javascript";
  3529. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3530. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3531. const script2 = document.createElement("script");
  3532. script2.type = "text/javascript";
  3533. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3534. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3535. const script3 = document.createElement("script");
  3536. script3.type = "text/javascript";
  3537. script3.charset = "UTF-8";
  3538. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3539. const script4 = document.createElement("script");
  3540. script4.type = "text/javascript";
  3541. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3542. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3543. if (_iframe) {
  3544. if (str == 'doc') {
  3545. _iframe = _formdiv.querySelector('iframe')
  3546. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3547. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3548. _iframe.contentWindow.document.body.appendChild(script1);
  3549. _iframe.contentWindow.document.body.appendChild(script2);
  3550. // _iframe.contentWindow.document.body.appendChild(script3);
  3551. _iframe.contentWindow.document.body.appendChild(script4);
  3552. })
  3553. if (onloadListener) {
  3554. _iframe.contentDocument.location.reload()
  3555. } else {
  3556. _iframe.contentDocument.location.reload()
  3557. }
  3558. } else if (str == 'courseDesign') {
  3559. U.UF.DL.iframeLoad(_iframe, function () {
  3560. // _iframe.contentWindow.U.MD.O.W.load();
  3561. // _iframe.contentWindow.document.body.appendChild(script1);
  3562. _iframe.contentWindow.document.body.appendChild(script2);
  3563. _iframe.contentWindow.document.body.appendChild(script4);
  3564. })
  3565. } else if (str == 'mind') {
  3566. _iframe = _formdiv.querySelector('iframe')
  3567. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3568. //
  3569. _iframe.contentWindow.document.body.appendChild(script1);
  3570. _iframe.contentWindow.document.body.appendChild(script2);
  3571. _iframe.contentWindow.document.body.appendChild(script4);
  3572. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3573. })
  3574. if (onloadListener) {
  3575. _iframe.contentDocument.location.reload()
  3576. } else {
  3577. _iframe.contentDocument.location.reload()
  3578. }
  3579. } else if (str == 'whiteboard') {
  3580. _iframe = _formdiv.querySelector('iframe')
  3581. let onloadListener = _iframe.onload = () => {
  3582. _iframe.contentWindow.document.body.appendChild(script1);
  3583. _iframe.contentWindow.document.body.appendChild(script2);
  3584. _iframe.contentWindow.document.body.appendChild(script4);
  3585. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3586. };
  3587. if (onloadListener) {
  3588. _iframe.contentDocument.location.reload()
  3589. } else {
  3590. _iframe.contentDocument.location.reload()
  3591. }
  3592. } else {
  3593. _iframe.onload = () => {
  3594. _iframe.contentWindow.document.body.appendChild(script1);
  3595. _iframe.contentWindow.document.body.appendChild(script2);
  3596. // _iframe.contentWindow.document.body.appendChild(script3);
  3597. _iframe.contentWindow.document.body.appendChild(script4);
  3598. };
  3599. }
  3600. _jie.onclick = async () => {
  3601. let text = ''
  3602. if (aTool == 1) {
  3603. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3604. } else if (aTool == 6) {
  3605. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3606. } else if (aTool == 3) {
  3607. text = await U.MD.D.I.getEditorContent(_iframe);
  3608. }
  3609. _loading.style.display = 'flex'
  3610. console.log(_loading);
  3611. var _ajs = _iframe.contentWindow.document.createElement("script");
  3612. _ajs.type = "text/javascript";
  3613. _ajs.innerHTML =
  3614. // 'console.log(' + _loading + ');\n' +
  3615. 'var _js = document.createElement("script");\n' +
  3616. '_js.type="text/javascript";\n' +
  3617. '_js.charset="UTF-8";\n' +
  3618. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3619. "_js.onload = function(){\n" +
  3620. ' var a = document.getElementsByTagName("img")\n' +
  3621. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3622. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3623. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3624. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3625. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3626. "beforeUpload_shishi(file," +
  3627. "'" +
  3628. _userid +
  3629. "'" +
  3630. ", " +
  3631. "'" +
  3632. _cid +
  3633. "'" +
  3634. ", " +
  3635. "'" +
  3636. _stage +
  3637. "'" +
  3638. ", " +
  3639. "'" +
  3640. _task +
  3641. "'" +
  3642. ", " +
  3643. "'" +
  3644. _tool +
  3645. "'" +
  3646. ", " +
  3647. "'" +
  3648. str + '_loadLi' +
  3649. "'" +
  3650. ", " +
  3651. "'" +
  3652. aTool +
  3653. "'" +
  3654. ", " +
  3655. "`" +
  3656. text +
  3657. "`" +
  3658. ")\n" +
  3659. " });\n" +
  3660. "}\n" +
  3661. "document.head.appendChild(_js);\n";
  3662. _iframe.contentWindow.document.head.appendChild(_ajs);
  3663. }
  3664. }
  3665. //U.MD.D.I.openClick(str);
  3666. //如果有任务栏信息
  3667. // if (_taskbar) {
  3668. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3669. // }
  3670. }
  3671. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  3672. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3673. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3674. _userid = student.userid, //登录用户id
  3675. _username = student.student //用户名字
  3676. let _iframe;
  3677. let _cid = cid,
  3678. _stage = stage,
  3679. _task = task,
  3680. _tool = tool;
  3681. var _jie = $$("div", {
  3682. "style": {
  3683. "position": "absolute",
  3684. "bottom": "50px",
  3685. "right": "50px",
  3686. "zIndex": "9999",
  3687. "backgroundColor": "#2268bc",
  3688. "color": "#fff",
  3689. "padding": "12px 20px",
  3690. "cursor": "pointer",
  3691. "borderRadius": "4px",
  3692. },
  3693. "innerHTML": "提交作业"
  3694. })
  3695. let aTool = ''
  3696. let _loading = document.createElement('div')
  3697. _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;"
  3698. // _loading.id = "";
  3699. let _lchild = document.createElement('div')
  3700. let _limg = document.createElement('img')
  3701. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3702. _limg.style = "width: 26px;margin-right: 10px;"
  3703. _lchild.appendChild(_limg)
  3704. let _lspan = document.createElement('span')
  3705. _lspan.innerHTML = "上传中..."
  3706. _lchild.appendChild(_lspan)
  3707. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  3708. _loading.appendChild(_lchild)
  3709. var _box = $$('div', {
  3710. "style": {
  3711. "position": "relative",
  3712. "width": "100%",
  3713. "height": "100%",
  3714. },
  3715. })
  3716. _box.appendChild(_loading)
  3717. _box.id = str + '_loadLi' + _userid
  3718. switch (str) {
  3719. case "whiteboard":
  3720. aTool = 1;
  3721. _iframe = $$("iframe", {
  3722. "frameborder": "no",
  3723. "border": "0",
  3724. "scrolling ": "no",
  3725. "style": {
  3726. "cssText": "border:0;width:100%;height:100%"
  3727. },
  3728. "src": "https://iwb.cocorobo.cn/"
  3729. })
  3730. _box.appendChild(_iframe);
  3731. _box.appendChild(_jie);
  3732. _formdiv = new U.UF.UI.form(
  3733. "电子白板-" + _username,
  3734. _box, {
  3735. "id": "whiteboard" + cid + stage + task + tool + _userid,
  3736. "style": {
  3737. "width": "90%",
  3738. "height": "90%",
  3739. "overflow": 'hidden'
  3740. },
  3741. "onresize": function () { }
  3742. }, {
  3743. closecallback: function () { }
  3744. }, {
  3745. "style": {
  3746. "height": "36px"
  3747. }
  3748. }).form; //创建窗体
  3749. _taskbar = {
  3750. "id": str + _formdiv.id,
  3751. "style": {
  3752. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3753. },
  3754. "name": "电子白板",
  3755. "forms": _formdiv,
  3756. "click": function () {
  3757. U.MD.D.I.openApplication(str, obj, info);
  3758. }
  3759. }
  3760. break;
  3761. case "mind":
  3762. aTool = 3;
  3763. _iframe = $$("iframe", {
  3764. "frameborder": "no",
  3765. "border": "0",
  3766. "scrolling ": "no",
  3767. "style": {
  3768. "cssText": "border:0;width:100%;height:100%"
  3769. },
  3770. "src": "/kityminder-editor/dist/index.html"
  3771. })
  3772. _box.appendChild(_iframe);
  3773. _box.appendChild(_jie);
  3774. _formdiv = new U.UF.UI.form(
  3775. "思维导图-" + _username,
  3776. _box, { //"/jsmind/example/demo.html"
  3777. "id": "mind" + cid + stage + task + tool + _userid,
  3778. "style": {
  3779. "width": "90%",
  3780. "height": "90%",
  3781. "overflow": 'hidden'
  3782. },
  3783. "onresize": function () { }
  3784. }, {
  3785. closecallback: function () { }
  3786. }, {
  3787. "style": {
  3788. "height": "36px"
  3789. }
  3790. }).form; //创建窗体
  3791. _taskbar = {
  3792. "id": str + _formdiv.id,
  3793. "style": {
  3794. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3795. },
  3796. "name": "思维导图",
  3797. "forms": _formdiv,
  3798. "click": function () {
  3799. U.MD.D.I.openApplication(str, obj, info);
  3800. }
  3801. }
  3802. break;
  3803. case "MindMap":
  3804. aTool = 3;
  3805. _iframe = $$("iframe", {
  3806. "frameborder": "no",
  3807. "border": "0",
  3808. "scrolling ": "no",
  3809. "style": {
  3810. "cssText": "border:0;width:100%;height:100%"
  3811. },
  3812. "src": "//cloud.cocorobo.cn/mind/"
  3813. })
  3814. _box.appendChild(_iframe);
  3815. _box.appendChild(_jie);
  3816. _formdiv = new U.UF.UI.form(
  3817. "思维导图-" + _username,
  3818. _box, { //"/jsmind/example/demo.html"
  3819. "id": "mind" + cid + stage + task + tool + _userid,
  3820. "style": {
  3821. "width": "90%",
  3822. "height": "90%",
  3823. "overflow": 'hidden'
  3824. },
  3825. "onresize": function () { }
  3826. }, {
  3827. closecallback: function () { }
  3828. }, {
  3829. "style": {
  3830. "height": "36px"
  3831. }
  3832. }).form; //创建窗体
  3833. _taskbar = {
  3834. "id": str + _formdiv.id,
  3835. "style": {
  3836. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3837. },
  3838. "name": "思维导图",
  3839. "forms": _formdiv,
  3840. "click": function () {
  3841. U.MD.D.I.openApplication(str, obj, info);
  3842. }
  3843. }
  3844. break;
  3845. case "doc":
  3846. aTool = 6;
  3847. _iframe = $$("iframe", {
  3848. "frameborder": "no",
  3849. "border": "0",
  3850. "scrolling ": "no",
  3851. "style": {
  3852. "cssText": "border:0;width:100%;height:100%"
  3853. },
  3854. "src": "/Office/Word/WordEditArea.htm"
  3855. })
  3856. _box.appendChild(_iframe);
  3857. _box.appendChild(_jie);
  3858. _formdiv = new U.UF.UI.form(
  3859. "协同文档-" + _username,
  3860. _box, {
  3861. "id": "doc" + cid + stage + task + tool + _userid,
  3862. "style": {
  3863. "width": "90%",
  3864. "height": "90%",
  3865. "overflow": 'hidden'
  3866. },
  3867. "onresize": function () { }
  3868. }, {
  3869. closecallback: function () { }
  3870. }, {
  3871. "style": {
  3872. "height": "36px"
  3873. }
  3874. }).form; //创建窗体
  3875. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3876. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3877. })
  3878. _taskbar = {
  3879. "id": str + _formdiv.id,
  3880. "style": {
  3881. "backgroundImage": "url(/img/icon/doc.png)"
  3882. },
  3883. "name": "协同文档",
  3884. "forms": _formdiv,
  3885. "click": function () {
  3886. U.MD.D.I.openApplication(str, obj, info);
  3887. }
  3888. }
  3889. break;
  3890. case "mindNetwork": //好友打开
  3891. aTool = 7;
  3892. _iframe = $$("iframe", {
  3893. "webkitallowfullscreen": "",
  3894. "mozallowfullscreen": "",
  3895. "allowfullscreen": "",
  3896. "frameborder": "no",
  3897. "border": "0",
  3898. "scrolling ": "no",
  3899. "style": {
  3900. "cssText": "border:0; width:100%; height:100%;"
  3901. },
  3902. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3903. })
  3904. _box.appendChild(_iframe);
  3905. _box.appendChild(_jie);
  3906. _formdiv = new U.UF.UI.form(
  3907. "思维网格-" + _username,
  3908. _box, {
  3909. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  3910. "style": {
  3911. "width": "90%",
  3912. "height": "90%",
  3913. "overflow": 'hidden'
  3914. },
  3915. "onresize": function () { }
  3916. }, {
  3917. closecallback: function () { }
  3918. }, {
  3919. "style": {
  3920. "height": "36px"
  3921. }
  3922. }).form; //创建窗体
  3923. _taskbar = {
  3924. "id": str + _formdiv.id,
  3925. "style": {
  3926. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3927. },
  3928. "name": "思维网格",
  3929. "forms": _formdiv,
  3930. "click": function () {
  3931. U.MD.D.I.openApplication(str, obj, info);
  3932. }
  3933. }
  3934. break;
  3935. case "courseDesign":
  3936. _iframe = $$("iframe", {
  3937. "webkitallowfullscreen": "",
  3938. "mozallowfullscreen": "",
  3939. "allowfullscreen": "",
  3940. "frameborder": "no",
  3941. "border": "0",
  3942. "scrolling ": "no",
  3943. "style": {
  3944. "cssText": "border:0; width:100%; height:100%;"
  3945. },
  3946. "src": "/course-design-vue"
  3947. })
  3948. _box.appendChild(_iframe);
  3949. _box.appendChild(_jie);
  3950. _formdiv = new U.UF.UI.form(
  3951. "项目设计-" + _username,
  3952. _box, {
  3953. "id": "courseDesign" + cid + stage + task + tool + _userid,
  3954. "style": {
  3955. "width": "90%",
  3956. "height": "90%",
  3957. "overflow": 'hidden'
  3958. },
  3959. "onresize": function () { }
  3960. }, {
  3961. closecallback: function () { }
  3962. }, {
  3963. "style": {
  3964. "height": "36px"
  3965. }
  3966. }).form; //创建窗体
  3967. _taskbar = {
  3968. "id": str + _formdiv.id,
  3969. "style": {
  3970. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3971. },
  3972. "name": "项目设计",
  3973. "forms": _formdiv,
  3974. "click": function () {
  3975. U.MD.D.I.openApplication(str, obj, info);
  3976. }
  3977. }
  3978. break;
  3979. }
  3980. const script1 = document.createElement("script");
  3981. script1.type = "text/javascript";
  3982. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3983. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3984. const script2 = document.createElement("script");
  3985. script2.type = "text/javascript";
  3986. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3987. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3988. const script3 = document.createElement("script");
  3989. script3.type = "text/javascript";
  3990. script3.charset = "UTF-8";
  3991. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3992. const script4 = document.createElement("script");
  3993. script4.type = "text/javascript";
  3994. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3995. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3996. if (_iframe) {
  3997. if (str == 'doc') {
  3998. _iframe = _formdiv.querySelector('iframe')
  3999. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4000. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4001. _iframe.contentWindow.document.body.appendChild(script1);
  4002. _iframe.contentWindow.document.body.appendChild(script2);
  4003. // _iframe.contentWindow.document.body.appendChild(script3);
  4004. _iframe.contentWindow.document.body.appendChild(script4);
  4005. })
  4006. if (onloadListener) {
  4007. _iframe.contentDocument.location.reload()
  4008. } else {
  4009. _iframe.contentDocument.location.reload()
  4010. }
  4011. } else if (str == 'courseDesign') {
  4012. U.UF.DL.iframeLoad(_iframe, function () {
  4013. // _iframe.contentWindow.U.MD.O.W.load();
  4014. // _iframe.contentWindow.document.body.appendChild(script1);
  4015. _iframe.contentWindow.document.body.appendChild(script2);
  4016. _iframe.contentWindow.document.body.appendChild(script4);
  4017. })
  4018. } else if (str == 'mind') {
  4019. _iframe = _formdiv.querySelector('iframe')
  4020. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4021. //
  4022. _iframe.contentWindow.document.body.appendChild(script1);
  4023. _iframe.contentWindow.document.body.appendChild(script2);
  4024. _iframe.contentWindow.document.body.appendChild(script4);
  4025. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4026. })
  4027. if (onloadListener) {
  4028. _iframe.contentDocument.location.reload()
  4029. } else {
  4030. _iframe.contentDocument.location.reload()
  4031. }
  4032. } else if (str == 'whiteboard') {
  4033. _iframe = _formdiv.querySelector('iframe')
  4034. let onloadListener = _iframe.onload = () => {
  4035. _iframe.contentWindow.document.body.appendChild(script1);
  4036. _iframe.contentWindow.document.body.appendChild(script2);
  4037. _iframe.contentWindow.document.body.appendChild(script4);
  4038. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4039. };
  4040. if (onloadListener) {
  4041. _iframe.contentDocument.location.reload()
  4042. } else {
  4043. _iframe.contentDocument.location.reload()
  4044. }
  4045. } else {
  4046. _iframe.onload = () => {
  4047. _iframe.contentWindow.document.body.appendChild(script1);
  4048. _iframe.contentWindow.document.body.appendChild(script2);
  4049. // _iframe.contentWindow.document.body.appendChild(script3);
  4050. _iframe.contentWindow.document.body.appendChild(script4);
  4051. };
  4052. }
  4053. _jie.onclick = async () => {
  4054. let text = ''
  4055. if (aTool == 1) {
  4056. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4057. } else if (aTool == 6) {
  4058. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4059. } else if (aTool == 3) {
  4060. text = await U.MD.D.I.getEditorContent(_iframe);
  4061. }
  4062. _loading.style.display = 'flex'
  4063. console.log(_loading);
  4064. var _ajs = _iframe.contentWindow.document.createElement("script");
  4065. _ajs.type = "text/javascript";
  4066. _ajs.innerHTML =
  4067. // 'console.log(' + _loading + ');\n' +
  4068. 'var _js = document.createElement("script");\n' +
  4069. '_js.type="text/javascript";\n' +
  4070. '_js.charset="UTF-8";\n' +
  4071. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4072. "_js.onload = function(){\n" +
  4073. ' var a = document.getElementsByTagName("img")\n' +
  4074. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4075. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4076. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4077. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4078. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4079. "beforeUpload_shishi(file," +
  4080. "'" +
  4081. _userid +
  4082. "'" +
  4083. ", " +
  4084. "'" +
  4085. _cid +
  4086. "'" +
  4087. ", " +
  4088. "'" +
  4089. _stage +
  4090. "'" +
  4091. ", " +
  4092. "'" +
  4093. _task +
  4094. "'" +
  4095. ", " +
  4096. "'" +
  4097. _tool +
  4098. "'" +
  4099. ", " +
  4100. "'" +
  4101. str + '_loadLi' + _userid +
  4102. "'" +
  4103. ", " +
  4104. "'" +
  4105. aTool +
  4106. "'" +
  4107. ", " +
  4108. "`" +
  4109. text +
  4110. "`" +
  4111. ")\n" +
  4112. " });\n" +
  4113. "}\n" +
  4114. "document.head.appendChild(_js);\n";
  4115. _iframe.contentWindow.document.head.appendChild(_ajs);
  4116. }
  4117. }
  4118. }
  4119. U.MD.D.I.getEditorContent = function (iframe) {
  4120. return new Promise((resolve, reject) => {
  4121. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  4122. console.log(content);
  4123. resolve(content)
  4124. });
  4125. });
  4126. }
  4127. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  4128. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  4129. // if (res.value[0].length > 0) {
  4130. // // resolve(res.value[0][0].text);
  4131. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  4132. // $(fileInput).val('');
  4133. // });
  4134. // }
  4135. // }, [], { "type": "GET", "withCredentials": true });
  4136. var xmlhttp;
  4137. var Mac, Sn, DeviceId
  4138. if (window.XMLHttpRequest) {
  4139. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  4140. xmlhttp = new XMLHttpRequest();
  4141. }
  4142. else {
  4143. // IE6, IE5 浏览器执行代码
  4144. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  4145. }
  4146. xmlhttp.onreadystatechange = function () {
  4147. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  4148. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  4149. // resolve(res.value[0][0].text);
  4150. if (type == '2') {
  4151. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  4152. $(fileInput).val('');
  4153. });
  4154. } else if (type == '3') {
  4155. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  4156. }
  4157. } else {
  4158. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  4159. }
  4160. }
  4161. }
  4162. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  4163. xmlhttp.send();
  4164. }
  4165. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  4166. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4167. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4168. _userinfo = US.userInfo, //登录用户信息
  4169. _userid = US.userInfo.userid //登录用户id
  4170. let _iframe;
  4171. let _cid = cid,
  4172. _stage = stage,
  4173. _task = task,
  4174. _tool = tool;
  4175. var _jie = $$("div", {
  4176. "style": {
  4177. "position": "absolute",
  4178. "bottom": "50px",
  4179. "right": "50px",
  4180. "zIndex": "9999",
  4181. "backgroundColor": "#2268bc",
  4182. "color": "#fff",
  4183. "padding": "12px 20px",
  4184. "cursor": "pointer",
  4185. "borderRadius": "4px",
  4186. },
  4187. "innerHTML": "确认并提交"
  4188. })
  4189. let aTool = ''
  4190. let _loading = document.createElement('div')
  4191. _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;"
  4192. // _loading.id = "";
  4193. let _lchild = document.createElement('div')
  4194. let _limg = document.createElement('img')
  4195. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4196. _limg.style = "width: 26px;margin-right: 10px;"
  4197. _lchild.appendChild(_limg)
  4198. let _lspan = document.createElement('span')
  4199. _lspan.innerHTML = "上传中..."
  4200. _lchild.appendChild(_lspan)
  4201. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  4202. _loading.appendChild(_lchild)
  4203. var _box = $$('div', {
  4204. "style": {
  4205. "position": "relative",
  4206. "width": "100%",
  4207. "height": "100%",
  4208. },
  4209. })
  4210. _box.appendChild(_loading)
  4211. _box.id = str + '_loadLi'
  4212. switch (str) {
  4213. case "whiteboard":
  4214. aTool = 1;
  4215. _iframe = $$("iframe", {
  4216. "frameborder": "no",
  4217. "border": "0",
  4218. "scrolling ": "no",
  4219. "style": {
  4220. "cssText": "border:0;width:100%;height:100%"
  4221. },
  4222. "src": "https://iwb.cocorobo.cn/"
  4223. })
  4224. _box.appendChild(_iframe);
  4225. _box.appendChild(_jie);
  4226. _formdiv = new U.UF.UI.form(
  4227. "电子白板",
  4228. _box, {
  4229. "id": "whiteboards" + cid + stage + task + tool,
  4230. "style": {
  4231. "width": "90%",
  4232. "height": "90%",
  4233. "overflow": 'hidden'
  4234. },
  4235. "onresize": function () { }
  4236. }, {
  4237. closecallback: function () { }
  4238. }, {
  4239. "style": {
  4240. "height": "36px"
  4241. }
  4242. }).form; //创建窗体
  4243. _taskbar = {
  4244. "id": str + _formdiv.id,
  4245. "style": {
  4246. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4247. },
  4248. "name": "电子白板",
  4249. "forms": _formdiv,
  4250. "click": function () {
  4251. U.MD.D.I.openApplication(str, obj, info);
  4252. }
  4253. }
  4254. break;
  4255. case "mind":
  4256. aTool = 3;
  4257. _iframe = $$("iframe", {
  4258. "frameborder": "no",
  4259. "border": "0",
  4260. "scrolling ": "no",
  4261. "style": {
  4262. "cssText": "border:0;width:100%;height:100%"
  4263. },
  4264. "src": "/kityminder-editor/dist/index.html"
  4265. });
  4266. _box.appendChild(_iframe);
  4267. _box.appendChild(_jie);
  4268. _formdiv = new U.UF.UI.form(
  4269. "思维导图",
  4270. _box, { //"/jsmind/example/demo.html"
  4271. "id": "minds" + cid + stage + task + tool,
  4272. "style": {
  4273. "width": "90%",
  4274. "height": "90%",
  4275. "overflow": 'hidden'
  4276. },
  4277. "onresize": function () { }
  4278. }, {
  4279. closecallback: function () { }
  4280. }, {
  4281. "style": {
  4282. "height": "36px"
  4283. }
  4284. }).form; //创建窗体
  4285. _taskbar = {
  4286. "id": str + _formdiv.id,
  4287. "style": {
  4288. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4289. },
  4290. "name": "思维导图",
  4291. "forms": _formdiv,
  4292. "click": function () {
  4293. U.MD.D.I.openApplication(str, obj, info);
  4294. }
  4295. }
  4296. break;
  4297. case "doc":
  4298. aTool = 6;
  4299. _iframe = $$("iframe", {
  4300. "frameborder": "no",
  4301. "border": "0",
  4302. "scrolling ": "no",
  4303. "style": {
  4304. "cssText": "border:0;width:100%;height:100%"
  4305. },
  4306. "src": "/Office/Word/WordEditArea.htm"
  4307. })
  4308. _box.appendChild(_iframe);
  4309. _box.appendChild(_jie);
  4310. _formdiv = new U.UF.UI.form(
  4311. "协同文档",
  4312. _box, {
  4313. "id": "docs" + cid + stage + task + tool,
  4314. "style": {
  4315. "width": "90%",
  4316. "height": "90%",
  4317. "overflow": 'hidden'
  4318. },
  4319. "onresize": function () { }
  4320. }, {
  4321. closecallback: function () { }
  4322. }, {
  4323. "style": {
  4324. "height": "36px"
  4325. }
  4326. }).form; //创建窗体
  4327. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4328. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4329. })
  4330. _taskbar = {
  4331. "id": str + _formdiv.id,
  4332. "style": {
  4333. "backgroundImage": "url(/img/icon/doc.png)"
  4334. },
  4335. "name": "协同文档",
  4336. "forms": _formdiv,
  4337. "click": function () {
  4338. U.MD.D.I.openApplication(str, obj, info);
  4339. }
  4340. }
  4341. break;
  4342. }
  4343. const script1 = document.createElement("script");
  4344. script1.type = "text/javascript";
  4345. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4346. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4347. const script2 = document.createElement("script");
  4348. script2.type = "text/javascript";
  4349. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4350. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4351. const script3 = document.createElement("script");
  4352. script3.type = "text/javascript";
  4353. script3.charset = "UTF-8";
  4354. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4355. const script4 = document.createElement("script");
  4356. script4.type = "text/javascript";
  4357. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  4358. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  4359. if (_iframe) {
  4360. if (str == 'doc') {
  4361. _iframe = _formdiv.querySelector('iframe')
  4362. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4363. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4364. _iframe.contentWindow.document.body.appendChild(script1);
  4365. _iframe.contentWindow.document.body.appendChild(script2);
  4366. // _iframe.contentWindow.document.body.appendChild(script3);
  4367. _iframe.contentWindow.document.body.appendChild(script4);
  4368. })
  4369. if (onloadListener) {
  4370. _iframe.contentDocument.location.reload()
  4371. } else {
  4372. _iframe.contentDocument.location.reload()
  4373. }
  4374. } else if (str == 'mind') {
  4375. _iframe = _formdiv.querySelector('iframe')
  4376. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4377. _iframe.contentWindow.document.body.appendChild(script1);
  4378. _iframe.contentWindow.document.body.appendChild(script2);
  4379. _iframe.contentWindow.document.body.appendChild(script4);
  4380. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  4381. })
  4382. if (onloadListener) {
  4383. _iframe.contentDocument.location.reload()
  4384. } else {
  4385. _iframe.contentDocument.location.reload()
  4386. }
  4387. } else {
  4388. _iframe.onload = () => {
  4389. _iframe.contentWindow.document.body.appendChild(script1);
  4390. _iframe.contentWindow.document.body.appendChild(script2);
  4391. // _iframe.contentWindow.document.body.appendChild(script3);
  4392. _iframe.contentWindow.document.body.appendChild(script4);
  4393. };
  4394. }
  4395. _jie.onclick = async () => {
  4396. let text = ''
  4397. if (aTool == 6) {
  4398. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4399. } else if (aTool == 3) {
  4400. text = await U.MD.D.I.getEditorContent(_iframe);
  4401. }
  4402. _loading.style.display = 'flex'
  4403. console.log(_loading);
  4404. var _ajs = _iframe.contentWindow.document.createElement("script");
  4405. _ajs.type = "text/javascript";
  4406. _ajs.innerHTML =
  4407. // 'console.log(' + _loading + ');\n' +
  4408. 'var _js = document.createElement("script");\n' +
  4409. '_js.type="text/javascript";\n' +
  4410. '_js.charset="UTF-8";\n' +
  4411. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4412. "_js.onload = function(){\n" +
  4413. ' var a = document.getElementsByTagName("img")\n' +
  4414. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4415. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4416. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4417. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4418. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4419. "beforeUpload_shishi(file," +
  4420. "'" +
  4421. _userid +
  4422. "'" +
  4423. ", " +
  4424. "'" +
  4425. _cid +
  4426. "'" +
  4427. ", " +
  4428. "'" +
  4429. _stage +
  4430. "'" +
  4431. ", " +
  4432. "'" +
  4433. _task +
  4434. "'" +
  4435. ", " +
  4436. "'" +
  4437. _tool +
  4438. "'" +
  4439. ", " +
  4440. "'" +
  4441. str + '_loadLi' +
  4442. "'" +
  4443. ", " +
  4444. "'" +
  4445. aTool +
  4446. "'" +
  4447. ", " +
  4448. "`" +
  4449. text +
  4450. "`" +
  4451. ")\n" +
  4452. " });\n" +
  4453. "}\n" +
  4454. "document.head.appendChild(_js);\n";
  4455. _iframe.contentWindow.document.head.appendChild(_ajs);
  4456. }
  4457. }
  4458. //U.MD.D.I.openClick(str);
  4459. //如果有任务栏信息
  4460. // if (_taskbar) {
  4461. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4462. // }
  4463. }
  4464. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  4465. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4466. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4467. _userinfo = US.userInfo, //登录用户信息
  4468. _userid = US.userInfo.userid //登录用户id
  4469. let _iframe;
  4470. let _cid = cid,
  4471. _stage = stage,
  4472. _task = task,
  4473. _tool = tool;
  4474. var _jie = $$("div", {
  4475. "style": {
  4476. "position": "absolute",
  4477. "bottom": "50px",
  4478. "right": "50px",
  4479. "zIndex": "9999",
  4480. "backgroundColor": "#2268bc",
  4481. "color": "#fff",
  4482. "padding": "12px 20px",
  4483. "cursor": "pointer",
  4484. "borderRadius": "4px",
  4485. },
  4486. "innerHTML": "确认并提交"
  4487. })
  4488. let aTool = ''
  4489. let _loading = document.createElement('div')
  4490. _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;"
  4491. // _loading.id = "";
  4492. let _lchild = document.createElement('div')
  4493. let _limg = document.createElement('img')
  4494. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4495. _limg.style = "width: 26px;margin-right: 10px;"
  4496. _lchild.appendChild(_limg)
  4497. let _lspan = document.createElement('span')
  4498. _lspan.innerHTML = "上传中..."
  4499. _lchild.appendChild(_lspan)
  4500. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  4501. _loading.appendChild(_lchild)
  4502. var _box = $$('div', {
  4503. "style": {
  4504. "position": "relative",
  4505. "width": "100%",
  4506. "height": "100%",
  4507. },
  4508. })
  4509. _box.appendChild(_loading)
  4510. _box.id = str + '_loadLi'
  4511. switch (str) {
  4512. case "whiteboard":
  4513. aTool = 1;
  4514. _iframe = $$("iframe", {
  4515. "frameborder": "no",
  4516. "border": "0",
  4517. "scrolling ": "no",
  4518. "style": {
  4519. "cssText": "border:0;width:100%;height:100%"
  4520. },
  4521. "src": "https://iwb.cocorobo.cn/"
  4522. })
  4523. _box.appendChild(_iframe);
  4524. _box.appendChild(_jie);
  4525. _formdiv = new U.UF.UI.form(
  4526. "电子白板",
  4527. _box, {
  4528. "id": "whiteboards" + cid + stage + task + tool,
  4529. "style": {
  4530. "width": "90%",
  4531. "height": "90%",
  4532. "overflow": 'hidden'
  4533. },
  4534. "onresize": function () { }
  4535. }, {
  4536. closecallback: function () { }
  4537. }, {
  4538. "style": {
  4539. "height": "36px"
  4540. }
  4541. }).form; //创建窗体
  4542. _taskbar = {
  4543. "id": str + _formdiv.id,
  4544. "style": {
  4545. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4546. },
  4547. "name": "电子白板",
  4548. "forms": _formdiv,
  4549. "click": function () {
  4550. U.MD.D.I.openApplication(str, obj, info);
  4551. }
  4552. }
  4553. break;
  4554. case "mind":
  4555. aTool = 3;
  4556. _iframe = $$("iframe", {
  4557. "frameborder": "no",
  4558. "border": "0",
  4559. "scrolling ": "no",
  4560. "style": {
  4561. "cssText": "border:0;width:100%;height:100%"
  4562. },
  4563. "src": "/kityminder-editor/dist/index.html"
  4564. });
  4565. _box.appendChild(_iframe);
  4566. _box.appendChild(_jie);
  4567. _formdiv = new U.UF.UI.form(
  4568. "思维导图",
  4569. _box, { //"/jsmind/example/demo.html"
  4570. "id": "minds" + cid + stage + task + tool,
  4571. "style": {
  4572. "width": "90%",
  4573. "height": "90%",
  4574. "overflow": 'hidden'
  4575. },
  4576. "onresize": function () { }
  4577. }, {
  4578. closecallback: function () { }
  4579. }, {
  4580. "style": {
  4581. "height": "36px"
  4582. }
  4583. }).form; //创建窗体
  4584. _taskbar = {
  4585. "id": str + _formdiv.id,
  4586. "style": {
  4587. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4588. },
  4589. "name": "思维导图",
  4590. "forms": _formdiv,
  4591. "click": function () {
  4592. U.MD.D.I.openApplication(str, obj, info);
  4593. }
  4594. }
  4595. break;
  4596. case "doc":
  4597. aTool = 6;
  4598. _iframe = $$("iframe", {
  4599. "frameborder": "no",
  4600. "border": "0",
  4601. "scrolling ": "no",
  4602. "style": {
  4603. "cssText": "border:0;width:100%;height:100%"
  4604. },
  4605. "src": "/Office/Word/WordEditArea.htm"
  4606. })
  4607. _box.appendChild(_iframe);
  4608. _box.appendChild(_jie);
  4609. _formdiv = new U.UF.UI.form(
  4610. "协同文档",
  4611. _box, {
  4612. "id": "docs" + cid + stage + task + tool,
  4613. "style": {
  4614. "width": "90%",
  4615. "height": "90%",
  4616. "overflow": 'hidden'
  4617. },
  4618. "onresize": function () { }
  4619. }, {
  4620. closecallback: function () { }
  4621. }, {
  4622. "style": {
  4623. "height": "36px"
  4624. }
  4625. }).form; //创建窗体
  4626. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4627. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4628. })
  4629. _taskbar = {
  4630. "id": str + _formdiv.id,
  4631. "style": {
  4632. "backgroundImage": "url(/img/icon/doc.png)"
  4633. },
  4634. "name": "协同文档",
  4635. "forms": _formdiv,
  4636. "click": function () {
  4637. U.MD.D.I.openApplication(str, obj, info);
  4638. }
  4639. }
  4640. break;
  4641. }
  4642. const script1 = document.createElement("script");
  4643. script1.type = "text/javascript";
  4644. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4645. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4646. const script2 = document.createElement("script");
  4647. script2.type = "text/javascript";
  4648. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4649. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4650. const script3 = document.createElement("script");
  4651. script3.type = "text/javascript";
  4652. script3.charset = "UTF-8";
  4653. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4654. const script4 = document.createElement("script");
  4655. script4.type = "text/javascript";
  4656. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  4657. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  4658. if (_iframe) {
  4659. if (str == 'doc') {
  4660. _iframe = _formdiv.querySelector('iframe')
  4661. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4662. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4663. _iframe.contentWindow.document.body.appendChild(script1);
  4664. _iframe.contentWindow.document.body.appendChild(script2);
  4665. // _iframe.contentWindow.document.body.appendChild(script3);
  4666. _iframe.contentWindow.document.body.appendChild(script4);
  4667. })
  4668. if (onloadListener) {
  4669. _iframe.contentDocument.location.reload()
  4670. } else {
  4671. _iframe.contentDocument.location.reload()
  4672. }
  4673. } else if (str == 'mind') {
  4674. _iframe = _formdiv.querySelector('iframe')
  4675. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4676. _iframe.contentWindow.document.body.appendChild(script1);
  4677. _iframe.contentWindow.document.body.appendChild(script2);
  4678. _iframe.contentWindow.document.body.appendChild(script4);
  4679. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  4680. })
  4681. if (onloadListener) {
  4682. _iframe.contentDocument.location.reload()
  4683. } else {
  4684. _iframe.contentDocument.location.reload()
  4685. }
  4686. } else {
  4687. _iframe.onload = () => {
  4688. _iframe.contentWindow.document.body.appendChild(script1);
  4689. _iframe.contentWindow.document.body.appendChild(script2);
  4690. // _iframe.contentWindow.document.body.appendChild(script3);
  4691. _iframe.contentWindow.document.body.appendChild(script4);
  4692. };
  4693. }
  4694. _jie.onclick = async () => {
  4695. let text = ''
  4696. if (aTool == 6) {
  4697. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4698. } else if (aTool == 3) {
  4699. text = await U.MD.D.I.getEditorContent(_iframe);
  4700. }
  4701. _loading.style.display = 'flex'
  4702. console.log(_loading);
  4703. var _ajs = _iframe.contentWindow.document.createElement("script");
  4704. _ajs.type = "text/javascript";
  4705. _ajs.innerHTML =
  4706. // 'console.log(' + _loading + ');\n' +
  4707. 'var _js = document.createElement("script");\n' +
  4708. '_js.type="text/javascript";\n' +
  4709. '_js.charset="UTF-8";\n' +
  4710. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4711. "_js.onload = function(){\n" +
  4712. ' var a = document.getElementsByTagName("img")\n' +
  4713. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4714. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4715. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4716. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4717. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4718. "beforeUpload_shishi(file," +
  4719. "'" +
  4720. _userid +
  4721. "'" +
  4722. ", " +
  4723. "'" +
  4724. _cid +
  4725. "'" +
  4726. ", " +
  4727. "'" +
  4728. _stage +
  4729. "'" +
  4730. ", " +
  4731. "'" +
  4732. _task +
  4733. "'" +
  4734. ", " +
  4735. "'" +
  4736. _tool +
  4737. "'" +
  4738. ", " +
  4739. "'" +
  4740. str + '_loadLi' +
  4741. "'" +
  4742. ", " +
  4743. "'" +
  4744. aTool +
  4745. "'" +
  4746. ", " +
  4747. "`" +
  4748. text +
  4749. "`" +
  4750. ")\n" +
  4751. " });\n" +
  4752. "}\n" +
  4753. "document.head.appendChild(_js);\n";
  4754. _iframe.contentWindow.document.head.appendChild(_ajs);
  4755. }
  4756. }
  4757. //U.MD.D.I.openClick(str);
  4758. //如果有任务栏信息
  4759. // if (_taskbar) {
  4760. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4761. // }
  4762. }
  4763. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  4764. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4765. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4766. _userinfo = US.userInfo, //登录用户信息
  4767. _userid = US.userInfo.userid //登录用户id
  4768. let _iframe;
  4769. let _cid = cid,
  4770. _stage = stage,
  4771. _task = task,
  4772. _tool = tool;
  4773. var _jie = $$("div", {
  4774. "style": {
  4775. "position": "absolute",
  4776. "bottom": "50px",
  4777. "right": "50px",
  4778. "zIndex": "9999",
  4779. "backgroundColor": "#2268bc",
  4780. "color": "#fff",
  4781. "padding": "12px 20px",
  4782. "cursor": "pointer",
  4783. "borderRadius": "4px",
  4784. },
  4785. "innerHTML": "上传模板"
  4786. })
  4787. let aTool = ''
  4788. let _loading = document.createElement('div')
  4789. _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;"
  4790. // _loading.id = "";
  4791. let _lchild = document.createElement('div')
  4792. let _limg = document.createElement('img')
  4793. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4794. _limg.style = "width: 26px;margin-right: 10px;"
  4795. _lchild.appendChild(_limg)
  4796. let _lspan = document.createElement('span')
  4797. _lspan.innerHTML = "上传中..."
  4798. _lchild.appendChild(_lspan)
  4799. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  4800. _loading.appendChild(_lchild)
  4801. var _box = $$('div', {
  4802. "style": {
  4803. "position": "relative",
  4804. "width": "100%",
  4805. "height": "100%",
  4806. },
  4807. })
  4808. _box.appendChild(_loading)
  4809. _box.id = str + '_loadLi'
  4810. switch (str) {
  4811. case "whiteboard":
  4812. aTool = 1;
  4813. _iframe = $$("iframe", {
  4814. "frameborder": "no",
  4815. "border": "0",
  4816. "scrolling ": "no",
  4817. "style": {
  4818. "cssText": "border:0;width:100%;height:100%"
  4819. },
  4820. "src": "https://iwb.cocorobo.cn/"
  4821. })
  4822. _box.appendChild(_iframe);
  4823. _box.appendChild(_jie);
  4824. _formdiv = new U.UF.UI.form(
  4825. "电子白板",
  4826. _box, {
  4827. "id": "whiteboards" + cid + stage + task + tool,
  4828. "style": {
  4829. "width": "90%",
  4830. "height": "90%",
  4831. "overflow": 'hidden'
  4832. },
  4833. "onresize": function () { }
  4834. }, {
  4835. closecallback: function () { }
  4836. }, {
  4837. "style": {
  4838. "height": "36px"
  4839. }
  4840. }).form; //创建窗体
  4841. _taskbar = {
  4842. "id": str + _formdiv.id,
  4843. "style": {
  4844. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4845. },
  4846. "name": "电子白板",
  4847. "forms": _formdiv,
  4848. "click": function () {
  4849. U.MD.D.I.openApplication(str, obj, info);
  4850. }
  4851. }
  4852. break;
  4853. case "mind":
  4854. aTool = 3;
  4855. _iframe = $$("iframe", {
  4856. "frameborder": "no",
  4857. "border": "0",
  4858. "scrolling ": "no",
  4859. "style": {
  4860. "cssText": "border:0;width:100%;height:100%"
  4861. },
  4862. "src": "/kityminder-editor/dist/index.html"
  4863. });
  4864. _box.appendChild(_iframe);
  4865. _box.appendChild(_jie);
  4866. _formdiv = new U.UF.UI.form(
  4867. "思维导图",
  4868. _box, { //"/jsmind/example/demo.html"
  4869. "id": "minds" + cid + stage + task + tool,
  4870. "style": {
  4871. "width": "90%",
  4872. "height": "90%",
  4873. "overflow": 'hidden'
  4874. },
  4875. "onresize": function () { }
  4876. }, {
  4877. closecallback: function () { }
  4878. }, {
  4879. "style": {
  4880. "height": "36px"
  4881. }
  4882. }).form; //创建窗体
  4883. _taskbar = {
  4884. "id": str + _formdiv.id,
  4885. "style": {
  4886. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4887. },
  4888. "name": "思维导图",
  4889. "forms": _formdiv,
  4890. "click": function () {
  4891. U.MD.D.I.openApplication(str, obj, info);
  4892. }
  4893. }
  4894. break;
  4895. case "doc":
  4896. aTool = 6;
  4897. _iframe = $$("iframe", {
  4898. "frameborder": "no",
  4899. "border": "0",
  4900. "scrolling ": "no",
  4901. "style": {
  4902. "cssText": "border:0;width:100%;height:100%"
  4903. },
  4904. "src": "/Office/Word/WordEditArea.htm"
  4905. })
  4906. _box.appendChild(_iframe);
  4907. _box.appendChild(_jie);
  4908. _formdiv = new U.UF.UI.form(
  4909. "协同文档",
  4910. _box, {
  4911. "id": "docs" + cid + stage + task + tool,
  4912. "style": {
  4913. "width": "90%",
  4914. "height": "90%",
  4915. "overflow": 'hidden'
  4916. },
  4917. "onresize": function () { }
  4918. }, {
  4919. closecallback: function () { }
  4920. }, {
  4921. "style": {
  4922. "height": "36px"
  4923. }
  4924. }).form; //创建窗体
  4925. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4926. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4927. })
  4928. _taskbar = {
  4929. "id": str + _formdiv.id,
  4930. "style": {
  4931. "backgroundImage": "url(/img/icon/doc.png)"
  4932. },
  4933. "name": "协同文档",
  4934. "forms": _formdiv,
  4935. "click": function () {
  4936. U.MD.D.I.openApplication(str, obj, info);
  4937. }
  4938. }
  4939. break;
  4940. }
  4941. if (_iframe) {
  4942. if (str == 'doc') {
  4943. _iframe = _formdiv.querySelector('iframe')
  4944. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4945. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4946. })
  4947. if (onloadListener) {
  4948. _iframe.contentDocument.location.reload()
  4949. } else {
  4950. _iframe.contentDocument.location.reload()
  4951. }
  4952. } else if (str == 'mind') {
  4953. _iframe = _formdiv.querySelector('iframe')
  4954. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4955. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  4956. })
  4957. if (onloadListener) {
  4958. _iframe.contentDocument.location.reload()
  4959. } else {
  4960. _iframe.contentDocument.location.reload()
  4961. }
  4962. } else if (str == 'whiteboard') {
  4963. _iframe = _formdiv.querySelector('iframe')
  4964. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4965. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  4966. })
  4967. if (onloadListener) {
  4968. _iframe.contentDocument.location.reload()
  4969. } else {
  4970. _iframe.contentDocument.location.reload()
  4971. }
  4972. } else {
  4973. _iframe.onload = () => {
  4974. };
  4975. }
  4976. _jie.onclick = async () => {
  4977. let text = ''
  4978. let type = '2'
  4979. if (aTool == 1) {
  4980. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4981. type = '3'
  4982. } else if (aTool == 6) {
  4983. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4984. type = '1'
  4985. } else if (aTool == 3) {
  4986. text = await U.MD.D.I.getEditorContent(_iframe);
  4987. type = '2'
  4988. }
  4989. _loading.style.display = 'flex'
  4990. U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading, _lspan)
  4991. }
  4992. }
  4993. //U.MD.D.I.openClick(str);
  4994. //如果有任务栏信息
  4995. // if (_taskbar) {
  4996. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4997. // }
  4998. }
  4999. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  5000. var xmlhttp;
  5001. var Mac, Sn, DeviceId
  5002. if (window.XMLHttpRequest) {
  5003. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5004. xmlhttp = new XMLHttpRequest();
  5005. }
  5006. else {
  5007. // IE6, IE5 浏览器执行代码
  5008. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5009. }
  5010. xmlhttp.onreadystatechange = function () {
  5011. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5012. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5013. // resolve(res.value[0][0].text);
  5014. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5015. $(fileInput).val('');
  5016. });
  5017. }
  5018. }
  5019. }
  5020. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5021. xmlhttp.send();
  5022. }
  5023. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  5024. var xmlhttp;
  5025. var Mac, Sn, DeviceId
  5026. if (window.XMLHttpRequest) {
  5027. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5028. xmlhttp = new XMLHttpRequest();
  5029. }
  5030. else {
  5031. // IE6, IE5 浏览器执行代码
  5032. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5033. }
  5034. xmlhttp.onreadystatechange = function () {
  5035. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5036. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5037. // resolve(res.value[0][0].text);
  5038. if (type == '2') {
  5039. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5040. $(fileInput).val('');
  5041. });
  5042. } else if (type == '3') {
  5043. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5044. }
  5045. } else {
  5046. iframe.contentWindow.h.app.updateScene({ elements: [] })
  5047. }
  5048. }
  5049. }
  5050. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5051. xmlhttp.send();
  5052. }
  5053. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  5054. var xmlhttp;
  5055. var Mac, Sn, DeviceId
  5056. if (window.XMLHttpRequest) {
  5057. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5058. xmlhttp = new XMLHttpRequest();
  5059. }
  5060. else {
  5061. // IE6, IE5 浏览器执行代码
  5062. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5063. }
  5064. xmlhttp.onreadystatechange = function () {
  5065. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5066. if (xmlhttp.response) {
  5067. // resolve(res.value[0][0].text);
  5068. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5069. // $(fileInput).val('');
  5070. // });
  5071. span.innerHTML = '上传成功'
  5072. setTimeout(() => {
  5073. loading.style.display = 'none'
  5074. }, 1000);
  5075. }
  5076. }
  5077. }
  5078. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  5079. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  5080. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  5081. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  5082. // 设置请求头,表示请求体的编码格式
  5083. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
  5084. // 设置请求体,使用url-encoded格式的数据
  5085. }