DeskTop.js 310 KB

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