DeskTop.js 313 KB

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