DeskTop.js 387 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977
  1. /*
  2. 此处为桌面系统启动应用区域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面应用处理
  5. //判断图片是否在拖拽,如果是拖拽图标的过程是不会打开图片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教师桌面图标的全局变量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  17. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  18. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  19. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  20. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  21. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  22. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  23. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  24. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  25. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  26. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  27. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  28. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  29. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  30. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  31. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  32. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  33. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  34. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  35. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  36. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  37. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  38. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  39. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  40. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  41. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  42. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  43. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  44. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  45. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  46. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  47. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  48. ];
  49. //极简模式
  50. U.MD.D.I.easyDeskIcon = [
  51. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  52. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  55. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  56. ];
  57. //教师桌面图标的全局变量
  58. U.MD.D.I.teacherDeskIcon2 = [
  59. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  60. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  61. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  62. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  63. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  64. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  65. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  66. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  67. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  68. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  69. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  70. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  71. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  72. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  73. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  74. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  75. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  76. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  77. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  78. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  79. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  80. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  81. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  82. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  83. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  84. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  85. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  86. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  87. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  88. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  89. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  90. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  91. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  92. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  93. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  94. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  95. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  96. ];
  97. U.MD.D.I.studentDeskIcon = [
  98. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  99. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  100. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  101. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  102. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  103. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  104. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  105. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  106. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  107. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  108. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  109. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  110. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  111. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  112. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  113. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  114. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  115. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  116. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  117. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  118. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  119. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  120. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  121. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  122. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  123. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  124. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  125. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  126. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  127. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  128. ];
  129. U.MD.D.I.studentDeskIcon2 = [
  130. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  131. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  132. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  133. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  134. ]
  135. U.MD.D.I.studentDeskIcon3 = [
  136. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  137. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  138. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  139. ]
  140. U.MD.D.I.schoolDeskIcon = [
  141. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  142. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  144. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  145. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  146. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  147. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  148. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  149. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  150. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  151. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  152. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  153. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  154. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  155. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  156. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  157. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  158. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  159. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  160. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  161. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  162. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  163. ];
  164. U.MD.D.I.orgDeskIcon = [
  165. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  166. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  167. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  168. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  169. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  170. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  171. ];
  172. U.MD.D.I.orgStemDeskIcon = [
  173. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  174. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  175. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  176. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  177. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  178. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  179. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  180. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  181. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  182. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  183. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  184. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  185. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  186. ];
  187. U.MD.D.I.szulsDeskIcon = [
  188. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  189. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  190. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  191. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  192. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  193. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  194. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  195. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  196. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  197. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  198. ];
  199. U.MD.D.I.hanDeskIcon = [
  200. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  201. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  202. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  203. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  204. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  205. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  206. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  207. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  208. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  209. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  210. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  211. ];
  212. U.MD.D.I.GMteacherDeskIcon = [
  213. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  214. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  215. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  216. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  217. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  218. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  219. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  220. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  221. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  222. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  223. ];
  224. U.MD.D.I.GMstudentDeskIcon = [
  225. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  226. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  227. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  228. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  229. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  230. ];
  231. //北师大
  232. U.MD.D.I.BSDNSteacherDeskIcon = [
  233. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  234. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  235. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  236. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  237. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  238. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  239. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  240. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  241. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  242. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  243. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  244. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  245. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  246. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  247. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  248. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  249. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  250. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  251. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  252. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  253. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  254. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  255. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  256. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  257. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  258. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  259. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  260. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  261. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  262. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  263. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  264. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  265. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  266. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  267. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  268. ];
  269. //松山湖
  270. U.MD.D.I.SONGteacherDeskIcon = [
  271. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  272. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  273. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  274. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  275. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  276. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  277. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  278. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  279. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  280. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  281. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  282. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  283. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  284. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  285. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  286. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  287. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  288. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  289. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  290. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  291. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  292. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  293. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  294. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  295. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  296. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  297. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  298. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  299. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  300. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  301. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  302. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  303. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  304. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  305. ];
  306. U.MD.D.I.tcStudentDeskIcon = [
  307. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  308. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  309. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  310. ];
  311. U.MD.D.I.tcTeacherDeskIcon = [
  312. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  313. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  314. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  315. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  316. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  317. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  318. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  319. ];
  320. U.MD.D.I.tcOrganizerDeskIcon = [
  321. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  322. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  323. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  324. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  325. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  326. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  327. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  328. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  329. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  330. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  331. ];
  332. U.MD.D.I.szscStudentDeskIcon = [
  333. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  334. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  335. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. ];
  338. U.MD.D.I.szscTeacherDeskIcon = [
  339. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  340. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  341. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  342. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  343. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  344. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  345. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  346. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  347. ];
  348. U.MD.D.I.szscOrganizerDeskIcon = [
  349. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  350. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  351. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  352. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  353. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  354. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  355. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  356. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  357. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  358. ];
  359. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  360. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  361. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  362. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  363. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  364. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  365. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  366. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  367. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  368. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  369. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  370. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  371. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  372. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  373. ];
  374. U.MD.D.I.wankeAdminDeskIcon = [
  375. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  376. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  377. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  378. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  379. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  380. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  381. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  382. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  383. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  384. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  385. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  386. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  387. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  388. ];
  389. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  390. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  391. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  392. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  393. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  394. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  395. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  396. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  397. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  398. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  399. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  400. ];
  401. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  402. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  403. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  404. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  405. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  406. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  407. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  408. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  409. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  410. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  411. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  412. ];
  413. //明德教师桌面图标的全局变量
  414. U.MD.D.I.MingdeTeacherDeskIcon = [
  415. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  416. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  417. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  418. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  419. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  420. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  421. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  422. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  423. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  424. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  425. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  426. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  427. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  428. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  429. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  430. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  431. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  432. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  433. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  434. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  435. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  436. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  437. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  438. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  439. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  440. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  441. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  442. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  443. ];
  444. //97c4ee8b-d010-4042-986d-e9d3c217264f
  445. //教师桌面图标的全局变量
  446. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  447. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  448. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  449. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  450. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  451. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  452. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  453. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  454. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  455. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  456. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  457. ];
  458. //福田
  459. U.MD.D.I.futianTeacherDeskIcon = [
  460. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  461. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  462. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  463. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  464. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  465. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  466. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  467. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  468. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  469. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  470. ];
  471. //福田
  472. U.MD.D.I.futianAdminDeskIcon = [
  473. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  474. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  475. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  476. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  477. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  478. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  479. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  480. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  481. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  482. ];
  483. //lotech
  484. U.MD.D.I.lotechTeacherDeskIcon = [
  485. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  486. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  487. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  488. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  489. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  490. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  491. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  492. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  493. ];
  494. //龙华中心小学教师桌面图标的全局变量
  495. U.MD.D.I.longhuateacherDeskIcon = [
  496. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  497. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  498. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  499. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  500. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  501. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  502. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  503. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  504. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  505. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  506. ];
  507. //教科院实小教师桌面图标的全局变量
  508. U.MD.D.I.siesteacherDeskIcon = [
  509. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  510. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  511. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  512. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  513. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  514. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  515. // { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  516. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  517. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  518. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  519. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  520. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  521. ];
  522. //福田
  523. U.MD.D.I.gdjgTeacherDeskIcon = [
  524. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  525. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  526. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  527. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  528. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  529. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  530. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  531. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  532. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  533. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  534. ];
  535. //gdjg
  536. U.MD.D.I.gdjgAdminDeskIcon = [
  537. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  538. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  539. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  540. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  541. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  542. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  543. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  544. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  545. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  546. ];
  547. //hk
  548. U.MD.D.I.hkteacherDeskIcon = [
  549. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  550. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  551. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  552. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  553. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  554. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  555. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  556. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  557. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  558. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  559. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  560. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  561. ];
  562. //hk
  563. U.MD.D.I.hkStudentDeskIcon = [
  564. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  565. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  566. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  567. ];
  568. //云海
  569. U.MD.D.I.yunhaiTeacherDeskIcon = [
  570. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  571. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  572. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  573. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  574. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  575. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  576. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  577. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  578. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  579. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  580. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  581. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  582. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  583. ];
  584. //福田
  585. U.MD.D.I.heyuanTeacherDeskIcon = [
  586. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  587. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  588. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  589. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  590. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  591. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  592. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  593. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  594. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  595. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  596. ];
  597. //福田
  598. U.MD.D.I.heyuanAdminDeskIcon = [
  599. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  600. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  601. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  602. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  603. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  604. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  605. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  606. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  607. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  608. ];
  609. //#region 桌面初始化a
  610. /**
  611. * 初始化桌面的起始函数
  612. *
  613. */
  614. U.MD.D.I.init = function () {
  615. if ($("#U_MD_D_K")[0]) {
  616. //初始化桌面图标
  617. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  618. // var clickUrl = ':12588/requestIp.php';
  619. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  620. // U.MD.D.I.Ip = data;
  621. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  622. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  623. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  624. // })
  625. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  626. // })
  627. }
  628. }
  629. /**
  630. * 模式切换
  631. *
  632. */
  633. U.MD.D.I.ModeCheck = function (type) {
  634. if (US.Config.type == type) {
  635. return
  636. }
  637. US.Config.type = type
  638. $('.U_PBL_Check .active')[0].className = ''
  639. if (type == 1) {
  640. $('.U_PBL_Check div')[0].className = 'active'
  641. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  642. } else {
  643. $('.U_PBL_Check div')[1].className = 'active'
  644. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  645. }
  646. //初始化桌面图标
  647. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  648. if(type == 2){
  649. U.MD.D.I.openApplication("project")
  650. }
  651. }
  652. /**
  653. * 隐藏任务栏
  654. *
  655. * @param {element} 桌面元素
  656. */
  657. U.MD.D.I.hiddenTaskbar = function (el) {
  658. //任务栏位置变小
  659. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  660. //桌面的位置变大
  661. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  662. }
  663. /**
  664. * 隐藏任务栏
  665. *
  666. * @param {element} 桌面元素
  667. */
  668. U.MD.D.I.hiddenTaskbarout = function (el) {
  669. //任务栏位置变小
  670. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  671. //任务栏位置变化
  672. U.selectEl(el).css({ "bottom": "-60px" });
  673. //桌面的位置变大
  674. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  675. }
  676. }
  677. /**
  678. * 初始化打印桌面图标
  679. *
  680. * @param {element} 桌面元素
  681. */
  682. U.MD.D.I.initDesktopIcons = function (el, type) {
  683. var i, //用于循环
  684. _content, //桌面图标元素
  685. _iconcontent, //桌面图标元素
  686. _frag = $$("frag"), //定义一个碎片元素
  687. _type = US.userInfo.type,
  688. _org = US.userInfo.org,
  689. _oid = US.userInfo.organizeid,
  690. _role = US.userInfo.role,
  691. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  692. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  693. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  694. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  695. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  696. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  697. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  698. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  699. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  700. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  701. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  702. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  703. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  704. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  705. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  706. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  707. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  708. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  709. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  710. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  711. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  712. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  713. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  714. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  715. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  716. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon,//福田
  717. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon,//福田
  718. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//
  719. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//
  720. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  721. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
  722. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龙华中心
  723. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  724. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon,//hk
  725. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon,//hk
  726. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon,//云海
  727. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  728. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  729. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  730. 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','ea2a8c65-f38c-11ed-91d8-005056b86db5','4c686762-1d0a-11ed-8c78-005056b86db5','b1095a3c-1d06-4ac8-854f-7c0d97f4ab41'];
  731. 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','e632b86c-f89d-11ed-91d8-005056b86db5','b50cf65a-001c-11ee-91d8-005056b86db5','578de748-05d2-11ee-91d8-005056b86db5'];
  732. //清楚桌面图标
  733. el.innerHTML = "";
  734. 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") {
  735. _teacherDesktopIconInfo.push(
  736. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  737. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  738. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  739. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  740. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  741. )
  742. _easyDesktopIconInfo.push(
  743. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  744. )
  745. }
  746. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  747. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  748. if(el.Name == '项目管理'){
  749. el.Name = 'PBL项目'
  750. }
  751. return el
  752. })
  753. }
  754. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  755. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  756. return el.Name != '魔盒识字' && el.Name != '24点'
  757. })
  758. }
  759. 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) {
  760. _studentDesktopIconInfo.push(
  761. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  762. )
  763. }
  764. //循环创建桌面图标
  765. if (type == 1) {
  766. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  767. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  768. _content = $$("div", {
  769. className: "U_MD_D_KO",
  770. "onmousedown": U.UF.C.closure(function (obj) {
  771. //防止拖动图标即打开了桌面应用
  772. U.MD.D.click(this, obj);
  773. }, [_studentDesktopIconInfo[i]]),
  774. "onclick": U.UF.C.closure(function (obj) {
  775. //防止拖动图标即打开了桌面应用
  776. U.MD.D.click(this, obj);
  777. }, [_studentDesktopIconInfo[i]])
  778. }, _frag); //
  779. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  780. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  781. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  782. }
  783. }else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  784. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  785. _content = $$("div", {
  786. className: "U_MD_D_KO",
  787. "onmousedown": U.UF.C.closure(function (obj) {
  788. //防止拖动图标即打开了桌面应用
  789. U.MD.D.click(this, obj);
  790. }, [_hkStudentDeskIconInfo[i]]),
  791. "onclick": U.UF.C.closure(function (obj) {
  792. //防止拖动图标即打开了桌面应用
  793. U.MD.D.click(this, obj);
  794. }, [_hkStudentDeskIconInfo[i]])
  795. }, _frag); //
  796. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  797. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  798. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  799. }
  800. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  801. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  802. _content = $$("div", {
  803. className: "U_MD_D_KO",
  804. "onmousedown": U.UF.C.closure(function (obj) {
  805. //防止拖动图标即打开了桌面应用
  806. U.MD.D.click(this, obj);
  807. }, [_studentDesktopIconInfo[i]]),
  808. "onclick": U.UF.C.closure(function (obj) {
  809. //防止拖动图标即打开了桌面应用
  810. U.MD.D.click(this, obj);
  811. }, [_studentDesktopIconInfo[i]])
  812. }, _frag); //
  813. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  814. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  815. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  816. }
  817. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  818. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  819. _content = $$("div", {
  820. className: "U_MD_D_KO",
  821. "onmousedown": U.UF.C.closure(function (obj) {
  822. //防止拖动图标即打开了桌面应用
  823. U.MD.D.click(this, obj);
  824. }, [_tcStudentDeskIconInfo[i]]),
  825. "onclick": U.UF.C.closure(function (obj) {
  826. //防止拖动图标即打开了桌面应用
  827. U.MD.D.click(this, obj);
  828. }, [_tcStudentDeskIconInfo[i]])
  829. }, _frag); //
  830. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  831. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  832. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  833. }
  834. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  835. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  836. _content = $$("div", {
  837. className: "U_MD_D_KO",
  838. "onmousedown": U.UF.C.closure(function (obj) {
  839. //防止拖动图标即打开了桌面应用
  840. U.MD.D.click(this, obj);
  841. }, [_szscStudentDeskIconInfo[i]]),
  842. "onclick": U.UF.C.closure(function (obj) {
  843. //防止拖动图标即打开了桌面应用
  844. U.MD.D.click(this, obj);
  845. }, [_szscStudentDeskIconInfo[i]])
  846. }, _frag); //
  847. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  848. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  849. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  850. }
  851. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  852. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  853. _content = $$("div", {
  854. className: "U_MD_D_KO",
  855. "onmousedown": U.UF.C.closure(function (obj) {
  856. //防止拖动图标即打开了桌面应用
  857. U.MD.D.click(this, obj);
  858. }, [_studentDesktopIconInfo3[i]]),
  859. "onclick": U.UF.C.closure(function (obj) {
  860. //防止拖动图标即打开了桌面应用
  861. U.MD.D.click(this, obj);
  862. }, [_studentDesktopIconInfo3[i]])
  863. }, _frag); //
  864. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  865. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  866. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  867. }
  868. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  869. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  870. _content = $$("div", {
  871. className: "U_MD_D_KO",
  872. "onmousedown": U.UF.C.closure(function (obj) {
  873. //防止拖动图标即打开了桌面应用
  874. U.MD.D.click(this, obj);
  875. }, [_studentDesktopIconInfo2[i]]),
  876. "onclick": U.UF.C.closure(function (obj) {
  877. //防止拖动图标即打开了桌面应用
  878. U.MD.D.click(this, obj);
  879. }, [_studentDesktopIconInfo2[i]])
  880. }, _frag); //
  881. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  882. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  883. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  884. }
  885. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  886. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  887. _content = $$("div", {
  888. className: "U_MD_D_KO",
  889. "onmousedown": U.UF.C.closure(function (obj) {
  890. //防止拖动图标即打开了桌面应用
  891. U.MD.D.click(this, obj);
  892. }, [_wanketeacherDesktopIconInfo[i]]),
  893. "onclick": U.UF.C.closure(function (obj) {
  894. //防止拖动图标即打开了桌面应用
  895. U.MD.D.click(this, obj);
  896. }, [_wanketeacherDesktopIconInfo[i]])
  897. }, _frag); //
  898. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  899. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  900. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  901. }
  902. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  903. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  904. _content = $$("div", {
  905. className: "U_MD_D_KO",
  906. "onmousedown": U.UF.C.closure(function (obj) {
  907. //防止拖动图标即打开了桌面应用
  908. U.MD.D.click(this, obj);
  909. }, [_wankeAdminDesktopIconInfo[i]]),
  910. "onclick": U.UF.C.closure(function (obj) {
  911. //防止拖动图标即打开了桌面应用
  912. U.MD.D.click(this, obj);
  913. }, [_wankeAdminDesktopIconInfo[i]])
  914. }, _frag); //
  915. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  916. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  917. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  918. }
  919. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  920. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  921. _content = $$("div", {
  922. className: "U_MD_D_KO",
  923. "onmousedown": U.UF.C.closure(function (obj) {
  924. //防止拖动图标即打开了桌面应用
  925. U.MD.D.click(this, obj);
  926. }, [_teacherDesktopIconInfo2[i]]),
  927. "onclick": U.UF.C.closure(function (obj) {
  928. //防止拖动图标即打开了桌面应用
  929. U.MD.D.click(this, obj);
  930. }, [_teacherDesktopIconInfo2[i]])
  931. }, _frag); //
  932. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  933. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  934. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  935. }
  936. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  937. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  938. _content = $$("div", {
  939. className: "U_MD_D_KO",
  940. "onmousedown": U.UF.C.closure(function (obj) {
  941. //防止拖动图标即打开了桌面应用
  942. U.MD.D.click(this, obj);
  943. }, [_lotechTeacherDeskIconInfo[i]]),
  944. "onclick": U.UF.C.closure(function (obj) {
  945. //防止拖动图标即打开了桌面应用
  946. U.MD.D.click(this, obj);
  947. }, [_lotechTeacherDeskIconInfo[i]])
  948. }, _frag); //
  949. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  950. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  951. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  952. }
  953. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  954. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  955. _content = $$("div", {
  956. className: "U_MD_D_KO",
  957. "onmousedown": U.UF.C.closure(function (obj) {
  958. //防止拖动图标即打开了桌面应用
  959. U.MD.D.click(this, obj);
  960. }, [_siesTeacherDeskIconInfo[i]]),
  961. "onclick": U.UF.C.closure(function (obj) {
  962. //防止拖动图标即打开了桌面应用
  963. U.MD.D.click(this, obj);
  964. }, [_siesTeacherDeskIconInfo[i]])
  965. }, _frag); //
  966. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  967. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  968. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  969. }
  970. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  971. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  972. _content = $$("div", {
  973. className: "U_MD_D_KO",
  974. "onmousedown": U.UF.C.closure(function (obj) {
  975. //防止拖动图标即打开了桌面应用
  976. U.MD.D.click(this, obj);
  977. }, [_longhuaTeacherDeskIconInfo[i]]),
  978. "onclick": U.UF.C.closure(function (obj) {
  979. //防止拖动图标即打开了桌面应用
  980. U.MD.D.click(this, obj);
  981. }, [_longhuaTeacherDeskIconInfo[i]])
  982. }, _frag); //
  983. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  984. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  985. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  986. }
  987. }else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  988. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  989. _content = $$("div", {
  990. className: "U_MD_D_KO",
  991. "onmousedown": U.UF.C.closure(function (obj) {
  992. //防止拖动图标即打开了桌面应用
  993. U.MD.D.click(this, obj);
  994. }, [_yunhaiTeacherDeskIconInfo[i]]),
  995. "onclick": U.UF.C.closure(function (obj) {
  996. //防止拖动图标即打开了桌面应用
  997. U.MD.D.click(this, obj);
  998. }, [_yunhaiTeacherDeskIconInfo[i]])
  999. }, _frag); //
  1000. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1001. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1002. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1003. }//_hkStudentDeskIconInfo
  1004. }else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1005. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1006. _content = $$("div", {
  1007. className: "U_MD_D_KO",
  1008. "onmousedown": U.UF.C.closure(function (obj) {
  1009. //防止拖动图标即打开了桌面应用
  1010. U.MD.D.click(this, obj);
  1011. }, [_hkTeacherDeskIconInfo[i]]),
  1012. "onclick": U.UF.C.closure(function (obj) {
  1013. //防止拖动图标即打开了桌面应用
  1014. U.MD.D.click(this, obj);
  1015. }, [_hkTeacherDeskIconInfo[i]])
  1016. }, _frag); //
  1017. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1018. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1019. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1020. }
  1021. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1022. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1023. _content = $$("div", {
  1024. className: "U_MD_D_KO",
  1025. "onmousedown": U.UF.C.closure(function (obj) {
  1026. //防止拖动图标即打开了桌面应用
  1027. U.MD.D.click(this, obj);
  1028. }, [_gdjgAdminDeskIconInfo[i]]),
  1029. "onclick": U.UF.C.closure(function (obj) {
  1030. //防止拖动图标即打开了桌面应用
  1031. U.MD.D.click(this, obj);
  1032. }, [_gdjgAdminDeskIconInfo[i]])
  1033. }, _frag); //
  1034. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1035. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1036. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1037. }
  1038. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1039. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1040. _content = $$("div", {
  1041. className: "U_MD_D_KO",
  1042. "onmousedown": U.UF.C.closure(function (obj) {
  1043. //防止拖动图标即打开了桌面应用
  1044. U.MD.D.click(this, obj);
  1045. }, [_gdjgTeacherDeskIconInfo[i]]),
  1046. "onclick": U.UF.C.closure(function (obj) {
  1047. //防止拖动图标即打开了桌面应用
  1048. U.MD.D.click(this, obj);
  1049. }, [_gdjgTeacherDeskIconInfo[i]])
  1050. }, _frag); //
  1051. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1052. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1053. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1054. }
  1055. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1056. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1057. _content = $$("div", {
  1058. className: "U_MD_D_KO",
  1059. "onmousedown": U.UF.C.closure(function (obj) {
  1060. //防止拖动图标即打开了桌面应用
  1061. U.MD.D.click(this, obj);
  1062. }, [_heyuannAdminDeskIconInfo[i]]),
  1063. "onclick": U.UF.C.closure(function (obj) {
  1064. //防止拖动图标即打开了桌面应用
  1065. U.MD.D.click(this, obj);
  1066. }, [_heyuannAdminDeskIconInfo[i]])
  1067. }, _frag); //
  1068. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1069. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1070. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1071. }
  1072. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1073. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1074. _content = $$("div", {
  1075. className: "U_MD_D_KO",
  1076. "onmousedown": U.UF.C.closure(function (obj) {
  1077. //防止拖动图标即打开了桌面应用
  1078. U.MD.D.click(this, obj);
  1079. }, [_heyuanTeacherDeskIconInfo[i]]),
  1080. "onclick": U.UF.C.closure(function (obj) {
  1081. //防止拖动图标即打开了桌面应用
  1082. U.MD.D.click(this, obj);
  1083. }, [_heyuanTeacherDeskIconInfo[i]])
  1084. }, _frag); //
  1085. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1086. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1087. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1088. }
  1089. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1090. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1091. _content = $$("div", {
  1092. className: "U_MD_D_KO",
  1093. "onmousedown": U.UF.C.closure(function (obj) {
  1094. //防止拖动图标即打开了桌面应用
  1095. U.MD.D.click(this, obj);
  1096. }, [_futianAdminDeskIconInfo[i]]),
  1097. "onclick": U.UF.C.closure(function (obj) {
  1098. //防止拖动图标即打开了桌面应用
  1099. U.MD.D.click(this, obj);
  1100. }, [_futianAdminDeskIconInfo[i]])
  1101. }, _frag); //
  1102. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1103. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1104. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1105. }
  1106. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1107. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1108. _content = $$("div", {
  1109. className: "U_MD_D_KO",
  1110. "onmousedown": U.UF.C.closure(function (obj) {
  1111. //防止拖动图标即打开了桌面应用
  1112. U.MD.D.click(this, obj);
  1113. }, [_futianTeacherDeskIconInfo[i]]),
  1114. "onclick": U.UF.C.closure(function (obj) {
  1115. //防止拖动图标即打开了桌面应用
  1116. U.MD.D.click(this, obj);
  1117. }, [_futianTeacherDeskIconInfo[i]])
  1118. }, _frag); //
  1119. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1120. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1121. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1122. }
  1123. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1124. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1125. _content = $$("div", {
  1126. className: "U_MD_D_KO",
  1127. "onmousedown": U.UF.C.closure(function (obj) {
  1128. //防止拖动图标即打开了桌面应用
  1129. U.MD.D.click(this, obj);
  1130. }, [_MingdeTeacherDeskIcon[i]]),
  1131. "onclick": U.UF.C.closure(function (obj) {
  1132. //防止拖动图标即打开了桌面应用
  1133. U.MD.D.click(this, obj);
  1134. }, [_MingdeTeacherDeskIcon[i]])
  1135. }, _frag); //
  1136. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1137. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1138. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1139. }
  1140. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1141. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1142. _content = $$("div", {
  1143. className: "U_MD_D_KO",
  1144. "onmousedown": U.UF.C.closure(function (obj) {
  1145. //防止拖动图标即打开了桌面应用
  1146. U.MD.D.click(this, obj);
  1147. }, [_lhsAdminDesktopIconInfo[i]]),
  1148. "onclick": U.UF.C.closure(function (obj) {
  1149. //防止拖动图标即打开了桌面应用
  1150. U.MD.D.click(this, obj);
  1151. }, [_lhsAdminDesktopIconInfo[i]])
  1152. }, _frag); //
  1153. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1154. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1155. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1156. }
  1157. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1158. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1159. _content = $$("div", {
  1160. className: "U_MD_D_KO",
  1161. "onmousedown": U.UF.C.closure(function (obj) {
  1162. //防止拖动图标即打开了桌面应用
  1163. U.MD.D.click(this, obj);
  1164. }, [_lhsteacherDesktopIconInfo[i]]),
  1165. "onclick": U.UF.C.closure(function (obj) {
  1166. //防止拖动图标即打开了桌面应用
  1167. U.MD.D.click(this, obj);
  1168. }, [_lhsteacherDesktopIconInfo[i]])
  1169. }, _frag); //
  1170. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1171. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1172. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1173. }
  1174. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1175. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1176. _content = $$("div", {
  1177. className: "U_MD_D_KO",
  1178. "onmousedown": U.UF.C.closure(function (obj) {
  1179. //防止拖动图标即打开了桌面应用
  1180. U.MD.D.click(this, obj);
  1181. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1182. "onclick": U.UF.C.closure(function (obj) {
  1183. //防止拖动图标即打开了桌面应用
  1184. U.MD.D.click(this, obj);
  1185. }, [_zhoujiateacherDesktopIconInfo[i]])
  1186. }, _frag); //
  1187. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1188. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1189. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1190. }
  1191. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1192. for (i = 0; i < _hanDeskIcon.length; i++) {
  1193. _content = $$("div", {
  1194. className: "U_MD_D_KO",
  1195. "onmousedown": U.UF.C.closure(function (obj) {
  1196. //防止拖动图标即打开了桌面应用
  1197. U.MD.D.click(this, obj);
  1198. }, [_hanDeskIcon[i]]),
  1199. "onclick": U.UF.C.closure(function (obj) {
  1200. //防止拖动图标即打开了桌面应用
  1201. U.MD.D.click(this, obj);
  1202. }, [_hanDeskIcon[i]])
  1203. }, _frag); //
  1204. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1205. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1206. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1207. }
  1208. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1209. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1210. _content = $$("div", {
  1211. className: "U_MD_D_KO",
  1212. "onmousedown": U.UF.C.closure(function (obj) {
  1213. //防止拖动图标即打开了桌面应用
  1214. U.MD.D.click(this, obj);
  1215. }, [_orgStemDeskIcon[i]]),
  1216. "onclick": U.UF.C.closure(function (obj) {
  1217. //防止拖动图标即打开了桌面应用
  1218. U.MD.D.click(this, obj);
  1219. }, [_orgStemDeskIcon[i]])
  1220. }, _frag); //
  1221. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1222. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1223. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1224. }
  1225. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1226. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1227. _content = $$("div", {
  1228. className: "U_MD_D_KO",
  1229. "onmousedown": U.UF.C.closure(function (obj) {
  1230. //防止拖动图标即打开了桌面应用
  1231. U.MD.D.click(this, obj);
  1232. }, [_szulsDeskIcon[i]]),
  1233. "onclick": U.UF.C.closure(function (obj) {
  1234. //防止拖动图标即打开了桌面应用
  1235. U.MD.D.click(this, obj);
  1236. }, [_szulsDeskIcon[i]])
  1237. }, _frag); //
  1238. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1239. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1240. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1241. }
  1242. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1243. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1244. _content = $$("div", {
  1245. className: "U_MD_D_KO",
  1246. "onmousedown": U.UF.C.closure(function (obj) {
  1247. //防止拖动图标即打开了桌面应用
  1248. U.MD.D.click(this, obj);
  1249. }, [_orgDesktopIconInfo[i]]),
  1250. "onclick": U.UF.C.closure(function (obj) {
  1251. //防止拖动图标即打开了桌面应用
  1252. U.MD.D.click(this, obj);
  1253. }, [_orgDesktopIconInfo[i]])
  1254. }, _frag); //
  1255. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1256. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1257. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1258. }
  1259. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1260. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1261. _content = $$("div", {
  1262. className: "U_MD_D_KO",
  1263. "onmousedown": U.UF.C.closure(function (obj) {
  1264. //防止拖动图标即打开了桌面应用
  1265. U.MD.D.click(this, obj);
  1266. }, [_schoolDesktopIconInfo[i]]),
  1267. "onclick": U.UF.C.closure(function (obj) {
  1268. //防止拖动图标即打开了桌面应用
  1269. U.MD.D.click(this, obj);
  1270. }, [_schoolDesktopIconInfo[i]])
  1271. }, _frag); //
  1272. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1273. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1274. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1275. }
  1276. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1277. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1278. _content = $$("div", {
  1279. className: "U_MD_D_KO",
  1280. "onmousedown": U.UF.C.closure(function (obj) {
  1281. //防止拖动图标即打开了桌面应用
  1282. U.MD.D.click(this, obj);
  1283. }, [_GMteacherDesktopIconInfo[i]]),
  1284. "onclick": U.UF.C.closure(function (obj) {
  1285. //防止拖动图标即打开了桌面应用
  1286. U.MD.D.click(this, obj);
  1287. }, [_GMteacherDesktopIconInfo[i]])
  1288. }, _frag); //
  1289. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1290. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1291. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1292. }
  1293. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1294. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1295. _content = $$("div", {
  1296. className: "U_MD_D_KO",
  1297. "onmousedown": U.UF.C.closure(function (obj) {
  1298. //防止拖动图标即打开了桌面应用
  1299. U.MD.D.click(this, obj);
  1300. }, [_SONGteacherDesktopIconInfo[i]]),
  1301. "onclick": U.UF.C.closure(function (obj) {
  1302. //防止拖动图标即打开了桌面应用
  1303. U.MD.D.click(this, obj);
  1304. }, [_SONGteacherDesktopIconInfo[i]])
  1305. }, _frag); //
  1306. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1307. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1308. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1309. }
  1310. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1311. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1312. _content = $$("div", {
  1313. className: "U_MD_D_KO",
  1314. "onmousedown": U.UF.C.closure(function (obj) {
  1315. //防止拖动图标即打开了桌面应用
  1316. U.MD.D.click(this, obj);
  1317. }, [_GMstudentDesktopIconInfo[i]]),
  1318. "onclick": U.UF.C.closure(function (obj) {
  1319. //防止拖动图标即打开了桌面应用
  1320. U.MD.D.click(this, obj);
  1321. }, [_GMstudentDesktopIconInfo[i]])
  1322. }, _frag); //
  1323. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1324. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1325. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1326. }
  1327. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1328. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1329. _content = $$("div", {
  1330. className: "U_MD_D_KO",
  1331. "onmousedown": U.UF.C.closure(function (obj) {
  1332. //防止拖动图标即打开了桌面应用
  1333. U.MD.D.click(this, obj);
  1334. }, [_tcTeacherDeskIconInfo[i]]),
  1335. "onclick": U.UF.C.closure(function (obj) {
  1336. //防止拖动图标即打开了桌面应用
  1337. U.MD.D.click(this, obj);
  1338. }, [_tcTeacherDeskIconInfo[i]])
  1339. }, _frag); //
  1340. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1341. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1342. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1343. }
  1344. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1345. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1346. _content = $$("div", {
  1347. className: "U_MD_D_KO",
  1348. "onmousedown": U.UF.C.closure(function (obj) {
  1349. //防止拖动图标即打开了桌面应用
  1350. U.MD.D.click(this, obj);
  1351. }, [_tcOrganizerDeskIconInfo[i]]),
  1352. "onclick": U.UF.C.closure(function (obj) {
  1353. //防止拖动图标即打开了桌面应用
  1354. U.MD.D.click(this, obj);
  1355. }, [_tcOrganizerDeskIconInfo[i]])
  1356. }, _frag); //
  1357. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1358. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1359. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1360. }
  1361. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1362. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1363. _content = $$("div", {
  1364. className: "U_MD_D_KO",
  1365. "onmousedown": U.UF.C.closure(function (obj) {
  1366. //防止拖动图标即打开了桌面应用
  1367. U.MD.D.click(this, obj);
  1368. }, [_szscTeacherDeskIconInfo[i]]),
  1369. "onclick": U.UF.C.closure(function (obj) {
  1370. //防止拖动图标即打开了桌面应用
  1371. U.MD.D.click(this, obj);
  1372. }, [_szscTeacherDeskIconInfo[i]])
  1373. }, _frag); //
  1374. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1375. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1376. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1377. }
  1378. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1379. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1380. _content = $$("div", {
  1381. className: "U_MD_D_KO",
  1382. "onmousedown": U.UF.C.closure(function (obj) {
  1383. //防止拖动图标即打开了桌面应用
  1384. U.MD.D.click(this, obj);
  1385. }, [_szscOrganizerDeskIconInfo[i]]),
  1386. "onclick": U.UF.C.closure(function (obj) {
  1387. //防止拖动图标即打开了桌面应用
  1388. U.MD.D.click(this, obj);
  1389. }, [_szscOrganizerDeskIconInfo[i]])
  1390. }, _frag); //
  1391. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1392. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1393. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1394. }
  1395. } else {
  1396. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1397. _content = $$("div", {
  1398. className: "U_MD_D_KO",
  1399. "onmousedown": U.UF.C.closure(function (obj) {
  1400. //防止拖动图标即打开了桌面应用
  1401. U.MD.D.click(this, obj);
  1402. }, [_teacherDesktopIconInfo[i]]),
  1403. "onclick": U.UF.C.closure(function (obj) {
  1404. //防止拖动图标即打开了桌面应用
  1405. U.MD.D.click(this, obj);
  1406. }, [_teacherDesktopIconInfo[i]])
  1407. }, _frag); //
  1408. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1409. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1410. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1411. }
  1412. }
  1413. } else {
  1414. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1415. _content = $$("div", {
  1416. className: "U_MD_D_KO",
  1417. style: { 'width': '124px', 'height': '145px' },
  1418. "onmousedown": U.UF.C.closure(function (obj) {
  1419. //防止拖动图标即打开了桌面应用
  1420. U.MD.D.click(this, obj);
  1421. }, [_easyDesktopIconInfo[i]]),
  1422. "onclick": U.UF.C.closure(function (obj) {
  1423. //防止拖动图标即打开了桌面应用
  1424. U.MD.D.click(this, obj);
  1425. }, [_easyDesktopIconInfo[i]])
  1426. }, _frag); //
  1427. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1428. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1429. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1430. }
  1431. }
  1432. if (type == 1) {
  1433. //加载好后给图标定位
  1434. U.MD.D.iconPostion($(_frag).Child());
  1435. } else {
  1436. //加载好后给图标定位
  1437. U.MD.D.iconPostion2($(_frag).Child());
  1438. }
  1439. //把图标加载到页面
  1440. el.appendChild(_frag);
  1441. }
  1442. /**
  1443. * 显示任务栏
  1444. *
  1445. * @param {element} 桌面元素
  1446. */
  1447. U.MD.D.I.displayTaskbar = function (el) {
  1448. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1449. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1450. //任务栏位置变化
  1451. U.selectEl(el).css({ "bottom": "0px" });
  1452. //桌面位置变话
  1453. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1454. }
  1455. }
  1456. //#region 桌面图标拖动逻辑
  1457. /**
  1458. * 桌面排列图标
  1459. *
  1460. * @param {element} 桌面元素
  1461. * @param {object} 上下相距的距离
  1462. * @param {object} 左右相距的距离
  1463. * @return {object} 命名空间
  1464. */
  1465. U.MD.D.iconPostion = function (childs, top, left) {
  1466. var i; //用于循环处理
  1467. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1468. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1469. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1470. for (i = 0; i < childs.length; i++) {
  1471. //如果竖排top超过了范围处理
  1472. if (top + 95 > US.height - 10) {
  1473. //left超过了页面范围处理,则向上重叠打印处理
  1474. if ((left + 180) > US.width) {
  1475. top -= 110;
  1476. left -= 90;
  1477. }
  1478. //没有超过范围,那么left+90添加到下一个竖排打印
  1479. else {
  1480. left += 90;
  1481. top = 15;
  1482. };
  1483. }
  1484. //给图标的位置赋值
  1485. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1486. if (i < childs.length - 1) {
  1487. //页面图标每次向下加95
  1488. top += 95;
  1489. }
  1490. }
  1491. //返回最后调用的图标的位置
  1492. return [top, left];
  1493. }
  1494. /**
  1495. * 桌面排列图标
  1496. *
  1497. * @param {element} 桌面元素
  1498. * @param {object} 上下相距的距离
  1499. * @param {object} 左右相距的距离
  1500. * @return {object} 命名空间
  1501. */
  1502. U.MD.D.iconPostion2 = function (childs, top, left) {
  1503. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1504. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1505. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1506. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1507. for (i = 0; i < childs.length; i++) {
  1508. //如果竖排top超过了范围处理
  1509. if (left + 150 > US.width - 10) {
  1510. //left超过了页面范围处理,则向上重叠打印处理
  1511. if ((top + 180) > US.Height) {
  1512. top -= 150;
  1513. left -= 150;
  1514. }
  1515. //没有超过范围,那么left+90添加到下一个竖排打印
  1516. else {
  1517. top += 150;
  1518. left = ol;
  1519. };
  1520. }
  1521. //给图标的位置赋值
  1522. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1523. if (i < childs.length - 1) {
  1524. //页面图标每次向下加95
  1525. left += 150;
  1526. }
  1527. }
  1528. //返回最后调用的图标的位置
  1529. return [top, left];
  1530. }
  1531. /**
  1532. * 桌面点击事件逻辑
  1533. *
  1534. * @param {element} 桌面元素
  1535. * @param {object} 上下相距的距离
  1536. * @param {object} 左右相距的距离
  1537. * @return {object} 命名空间
  1538. */
  1539. U.MD.D.click = function (el, obj) {
  1540. var _buttonnumber = event.button; //点击的按钮的事件值
  1541. var _userinfo = US.userInfo;
  1542. U.UF.EV.stopBubble(); //阻止向上冒泡
  1543. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1544. if (_buttonnumber < 2) {
  1545. //如果是click事件的处理
  1546. if (event.type == "click") {
  1547. //如果元素在mousemove事件中没有移动则出发click事件
  1548. if (!U.MD.D.I.IsDrag) {
  1549. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1550. U.alert("请先登录您的账号!");
  1551. setTimeout(() => {
  1552. U.MD.U.L.login();
  1553. }, 2000);
  1554. } else {
  1555. //打开应用处理
  1556. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1557. }
  1558. }
  1559. }
  1560. //如果是mouse事件的处理
  1561. else {
  1562. if (US.Config.type == '1') {
  1563. //拖动处理,添加拖动和拖动结束事件
  1564. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1565. }
  1566. }
  1567. U.MD.D.I.IsDrag = false;
  1568. }
  1569. }
  1570. /**
  1571. * 拖动的处理
  1572. *
  1573. */
  1574. U.MD.D.iconMove = function () {
  1575. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1576. U.MD.D.I.IsDrag = true;
  1577. }
  1578. /**
  1579. * 拖动结束后,这里是定位处理,以网状的形式定位
  1580. *
  1581. * @param {element} 拖动的元素
  1582. * @return {object} 命名空间
  1583. */
  1584. U.MD.D.iconUp = function (el) {
  1585. var _top = 15,
  1586. _left = 20,
  1587. _margin,
  1588. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1589. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1590. if (_positioninfo["OT"] > 15) {
  1591. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1592. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1593. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1594. }
  1595. if (_positioninfo["OL"] > 20) {
  1596. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1597. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1598. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1599. }
  1600. //while循环判断么一个重叠的元素
  1601. do {
  1602. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1603. _top = _positioninfo[0] + 95; //得到定位后的top
  1604. _left = _positioninfo[1]; //得到定位后的left
  1605. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1606. }
  1607. /**
  1608. * 判断拖动后图标是否重叠
  1609. *
  1610. * @param {element} 拖动的元素
  1611. * @param {element} 桌面所有的元素
  1612. * @param {array} 拖动元素的位置
  1613. ----------[0] 上 top
  1614. ----------[1] 左 left
  1615. * @return {object} 命名空间
  1616. */
  1617. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1618. //循环所有的图标
  1619. for (var i = 0; i < childs.length; i++) {
  1620. //判断有没有和该图标诶子重叠的元素
  1621. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1622. return childs[i]; //如果有返回
  1623. }
  1624. }
  1625. }
  1626. //#endregion
  1627. //#endregion
  1628. //#region 桌面应用
  1629. /**
  1630. * 打开应用
  1631. *
  1632. * @param {string} 类型
  1633. -----------------Disk 网盘系统
  1634. -----------------PDisk 学习系统网盘
  1635. -----------------Poto 图片
  1636. -----------------Video 视频
  1637. -----------------Music 音乐
  1638. -----------------Word word
  1639. -----------------Excel excel
  1640. -----------------Txt 记事本
  1641. -----------------PB 学习系统
  1642. -----------------Blog 朋友圈系统
  1643. -----------------FTP ftp系统
  1644. -----------------Group 好友群
  1645. -----------------SY 首页系统
  1646. -----------------Set 个人设置
  1647. -----------------XSet 系统设置
  1648. -----------------App 我们所有的app
  1649. -----------------BC c.1473.cn 平台
  1650. -----------------CWeb d.1473.cn 变成平台
  1651. -----------------其他的外联系统 我们统一用iframe打开
  1652. * @param {array} 类型
  1653. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1654. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1655. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1656. 如果第一个参数为其他,则无第二个参数
  1657. * @returns {array}
  1658. */
  1659. window.addEventListener('message', function (e) { // 监听 message 事件
  1660. // alert(e.data.type);
  1661. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1662. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1663. //3是展示全部阶段 2学生 1老师 4专家
  1664. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1665. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1666. //3是展示全部阶段 2学生 1老师 4专家
  1667. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1668. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1669. //3是展示全部阶段 2学生 1老师 4专家
  1670. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1671. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1672. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1673. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1674. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1675. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1676. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1677. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1678. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1679. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1680. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1681. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1682. //3是展示全部阶段 2学生 1老师 4专家
  1683. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1684. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1685. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1686. U.MD.D.I.selectUser();
  1687. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1688. var _formel = document.getElementById("study");
  1689. U.UF.F.windowZooming(_formel);
  1690. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1691. var _formel = document.getElementById("studyDetail");
  1692. U.UF.F.windowZooming(_formel);
  1693. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1694. var _formel = document.getElementById("studyDetail");
  1695. U.UF.F.windowZooming(_formel);
  1696. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1697. var _formel = document.getElementById("studentStudy");
  1698. U.UF.F.windowZooming(_formel);
  1699. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1700. // var _formel = document.getElementById("study");
  1701. //如果最大化了,那么就把他缩小
  1702. // if (_formel.ismaximize) {
  1703. // return;
  1704. // }
  1705. // U.UF.F.windowZooming(_formel);
  1706. // U.UF.F.topWindow(_formel);
  1707. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1708. // var _formel = document.getElementById("studyDetail");
  1709. //如果最大化了,那么就把他缩小
  1710. // if (_formel.ismaximize) {
  1711. // return;
  1712. // }
  1713. // U.UF.F.windowZooming(_formel);
  1714. // U.UF.F.topWindow(_formel);
  1715. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1716. // var _formel = document.getElementById("studentStudy");
  1717. // if (_formel.ismaximize) {
  1718. // return;
  1719. // }
  1720. // U.UF.F.windowZooming(_formel);
  1721. // U.UF.F.topWindow(_formel);
  1722. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1723. var _formel = document.getElementById("study");
  1724. // if (_formel.ismaximize) {
  1725. // return;
  1726. // }
  1727. // U.UF.F.windowZooming(_formel);
  1728. U.UF.F.topWindow(_formel);
  1729. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1730. var _formel = document.getElementById("studentIndex");
  1731. U.UF.F.windowZooming(_formel);
  1732. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1733. var _formel = document.getElementById("studyDetailS");
  1734. U.UF.F.windowZooming(_formel);
  1735. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1736. var _formel = document.getElementById("studioIndex");
  1737. U.UF.F.windowZooming(_formel);
  1738. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1739. var _formel = document.getElementById("studyDetailStudio");
  1740. U.UF.F.windowZooming(_formel);
  1741. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1742. var _formel = document.getElementById("studyDetailStudio");
  1743. U.UF.F.windowZooming(_formel);
  1744. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1745. var _formel = document.getElementById("studyDetailNT");
  1746. U.UF.F.windowZooming(_formel);
  1747. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1748. var _formel = document.getElementById("studyDetailS");
  1749. U.UF.F.windowZooming(_formel);
  1750. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1751. var _formel = document.getElementById("studyDetailS");
  1752. U.UF.F.topWindow(_formel);
  1753. } else if (e.data.tools && e.data.tools == "1") {
  1754. // U.MD.D.I.openApplication("whiteboard")
  1755. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1756. } else if (e.data.tools && e.data.tools == "2") {
  1757. U.MD.D.I.openApplication("note")
  1758. } else if (e.data.tools && e.data.tools == "3") {
  1759. // U.MD.D.I.openApplication("mind")
  1760. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1761. } else if (e.data.tools && e.data.tools == "4") {
  1762. U.MD.D.I.openApplication("investigation")
  1763. } else if (e.data.tools && e.data.tools == "6") {
  1764. // U.MD.D.I.openApplication("doc")
  1765. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1766. } else if (e.data.tools && e.data.tools == "7") {
  1767. // U.MD.D.I.openApplication("mindNetwork")
  1768. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1769. } else if (e.data.tools && e.data.tools == "8") {
  1770. U.MD.D.I.openApplication("library")
  1771. } else if (e.data.tools && e.data.tools == "17") {
  1772. U.MD.D.I.openApplication("stuLibrary")
  1773. } else if (e.data.tools && e.data.tools == "18") {
  1774. U.MD.D.I.openApplication("train")
  1775. } else if (e.data.tools && e.data.tools == "21") {
  1776. U.MD.D.I.openApplication("program")
  1777. } else if (e.data.tools && e.data.tools == "22") {
  1778. U.MD.D.I.openApplication("AIprogram2")
  1779. } else if (e.data.tools && e.data.tools == "23") {
  1780. U.MD.D.I.openApplication("Pythonprogram")
  1781. } else if (e.data.tools && e.data.tools == "24") {
  1782. U.MD.D.I.openApplication("AIprogram")
  1783. } else if (e.data.tools && e.data.tools == "25") {
  1784. U.MD.D.I.openApplication("sys")
  1785. } else if (e.data.tools && e.data.tools == "26") {
  1786. // U.MD.D.I.openApplication("courseDesign")
  1787. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1788. } else if (e.data.tools && e.data.tools == "31") {
  1789. U.MD.D.I.openApplication("netWorkPanel")
  1790. } else if (e.data.tools && e.data.tools == "32") {
  1791. U.MD.D.I.openApplication("codeEdit")
  1792. } else if (e.data.tools && e.data.tools == "57") {
  1793. U.MD.D.I.openApplication("CocoPi")
  1794. } else if (e.data.tools && e.data.tools == "63") {
  1795. U.MD.D.I.openApplication("Wood")
  1796. } else if (e.data.tools && e.data.tools == "58") {
  1797. U.MD.D.I.openApplication("car")
  1798. } else if (e.data.tools && e.data.tools == "59") {
  1799. U.MD.D.I.openApplication("lineSearch")
  1800. } else if (e.data.tools && e.data.tools == "60") {
  1801. U.MD.D.I.openApplication("deepLearning")
  1802. } else if (e.data.tools && e.data.tools == "61") {
  1803. U.MD.D.I.openApplication("allHistory")
  1804. } else if (e.data.tools && e.data.tools == "28") {
  1805. U.MD.D.I.openApplication("translation")
  1806. } else if (e.data.tools && e.data.tools == "37") {
  1807. U.MD.D.I.openApplication("mohe")
  1808. } else if (e.data.tools && e.data.tools == "38") {
  1809. U.MD.D.I.openApplication("24game")
  1810. } else if (e.data.tools && e.data.tools == "39") {
  1811. U.MD.D.I.openApplication("GeoGebra")
  1812. } else if (e.data.tools && e.data.tools == "43") {
  1813. U.MD.D.I.openApplication("studentEvaluate")
  1814. } else if (e.data.tools && e.data.tools == "44") {
  1815. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1816. } else if (e.data.tools && e.data.tools == "46") {
  1817. U.MD.D.I.openApplication("project")
  1818. } else if (e.data.tools && e.data.tools == "1s") {
  1819. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1820. } else if (e.data.tools && e.data.tools == "3s") {
  1821. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1822. } else if (e.data.tools && e.data.tools == "6s") {
  1823. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1824. } else if (e.data.tools && e.data.tools == "1studio") {
  1825. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1826. } else if (e.data.tools && e.data.tools == "3studio") {
  1827. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1828. } else if (e.data.tools && e.data.tools == "6studio") {
  1829. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1830. } else if (e.data.tools && e.data.tools == "3y") {
  1831. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1832. } else if (e.data.tools && e.data.tools == "1y") {
  1833. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1834. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1835. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1836. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1837. U.MD.D.I.openApplication("AIAnalyse")
  1838. } else if (e.data.tools && e.data.tools == "1teacher") {
  1839. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1840. } else if (e.data.tools && e.data.tools == "3teacher") {
  1841. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1842. } else if (e.data.tools && e.data.tools == "7teacher") {
  1843. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1844. } else if (e.data.tools && e.data.tools == "1teacherE") {
  1845. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1846. } else if (e.data.tools && e.data.tools == "3teacherE") {
  1847. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1848. } else if (e.data.tools && e.data.tools == "1E") {
  1849. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1850. } else if (e.data.tools && e.data.tools == "3E") {
  1851. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1852. } else if (e.data.tools && e.data.tools == "57y") {
  1853. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1854. } else if (e.data.tools && e.data.tools == "57u") {
  1855. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1856. } else if (e.data.tools && e.data.tools == "57teacher") {
  1857. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1858. }
  1859. });
  1860. U.MD.D.I.selectUser = function () {
  1861. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1862. if (res.value[0].length > 0) {
  1863. US.userInfo = res.value[0][0];
  1864. $(".userName")[0].innerHTML = US.userInfo.username;
  1865. }
  1866. }, [], { "type": "GET", "withCredentials": true });
  1867. }
  1868. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1869. var _userinfo = US.userInfo, //登录用户信息
  1870. _userid = US.userInfo.userid, //登录用户id
  1871. _oid = _userinfo.organizeid,
  1872. _type = US.userInfo.type,
  1873. _org = US.userInfo.org,
  1874. _role = US.userInfo.role,
  1875. _classId = US.userInfo.classid;
  1876. if (_type == 4) {
  1877. tType = 4
  1878. }
  1879. switch (str) {
  1880. case "studyDetailNT"://无终端模式
  1881. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1882. setTimeout(() => {
  1883. U.MD.U.L.login();
  1884. }, 2000);
  1885. } else {
  1886. _formdiv = new U.UF.UI.form(
  1887. "课程详情",
  1888. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  1889. "id": "studyDetailNT",
  1890. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1891. "onresize": function () { }
  1892. }, {
  1893. closecallback: function () { }
  1894. }, { "style": { "height": "36px" } }).form; //创建窗体
  1895. _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); } }
  1896. break;
  1897. }
  1898. case "studyDetail":
  1899. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1900. setTimeout(() => {
  1901. U.MD.U.L.login();
  1902. }, 2000);
  1903. } else {
  1904. _formdiv = new U.UF.UI.form(
  1905. "课程详情",
  1906. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  1907. "id": "studyDetail",
  1908. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1909. "onresize": function () { }
  1910. }, {
  1911. closecallback: function () { }
  1912. }, { "style": { "height": "36px" } }).form; //创建窗体
  1913. _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); } }
  1914. break;
  1915. }
  1916. case "studyDetailS":
  1917. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1918. setTimeout(() => {
  1919. U.MD.U.L.login();
  1920. }, 2000);
  1921. } else {
  1922. _formdiv = new U.UF.UI.form(
  1923. "项目详情",
  1924. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  1925. "id": "studyDetailS",
  1926. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1927. "onresize": function () { }
  1928. }, {
  1929. closecallback: function () { }
  1930. }, { "style": { "height": "36px" } }).form; //创建窗体
  1931. _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); } }
  1932. break;
  1933. }
  1934. case "studyDetailStudio":
  1935. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1936. setTimeout(() => {
  1937. U.MD.U.L.login();
  1938. }, 2000);
  1939. } else {
  1940. _formdiv = new U.UF.UI.form(
  1941. "工作详情",
  1942. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  1943. "id": "studyDetailStudio",
  1944. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1945. "onresize": function () { }
  1946. }, {
  1947. closecallback: function () { }
  1948. }, { "style": { "height": "36px" } }).form; //创建窗体
  1949. _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); } }
  1950. break;
  1951. }
  1952. case "studyDetailS5":
  1953. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1954. setTimeout(() => {
  1955. U.MD.U.L.login();
  1956. }, 2000);
  1957. } else {
  1958. _formdiv = new U.UF.UI.form(
  1959. "项目详情",
  1960. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  1961. "id": "studyDetailS",
  1962. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1963. "onresize": function () { }
  1964. }, {
  1965. closecallback: function () { }
  1966. }, { "style": { "height": "36px" } }).form; //创建窗体
  1967. _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); } }
  1968. break;
  1969. }
  1970. case "studyDetailGM":
  1971. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1972. setTimeout(() => {
  1973. U.MD.U.L.login();
  1974. }, 2000);
  1975. } else {
  1976. _formdiv = new U.UF.UI.form(
  1977. "课程详情",
  1978. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  1979. "id": "studyDetail",
  1980. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1981. "onresize": function () { }
  1982. }, {
  1983. closecallback: function () { }
  1984. }, { "style": { "height": "36px" } }).form; //创建窗体
  1985. _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); } }
  1986. break;
  1987. }
  1988. case "hanUrl":
  1989. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1990. setTimeout(() => {
  1991. U.MD.U.L.login();
  1992. }, 2000);
  1993. } else {
  1994. _formdiv = new U.UF.UI.form(
  1995. "汉字宫",
  1996. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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" }), {
  1997. "id": "hanUrl",
  1998. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1999. "onresize": function () { }
  2000. }, {
  2001. closecallback: function () { }
  2002. }, { "style": { "height": "36px" } }).form; //创建窗体
  2003. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2004. break;
  2005. }
  2006. }
  2007. }
  2008. U.MD.D.I.openApplication = function (str, obj, info) {
  2009. obj = obj || {};
  2010. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2011. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2012. _userinfo = US.userInfo, //登录用户信息
  2013. _userid = obj.userid || US.userInfo.userid, //登录用户id
  2014. _oid = obj.organizeid || _userinfo.organizeid,
  2015. _type = US.userInfo.type,
  2016. _org = US.userInfo.org,
  2017. _role = US.userInfo.role,
  2018. _classId = US.userInfo.classid,
  2019. _TscreenType = 1
  2020. _screenType = 2,
  2021. _SscreenType = 3;
  2022. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2023. return;
  2024. }
  2025. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2026. switch (str) {
  2027. case "studnetProject": //好友打开
  2028. _formdiv = new U.UF.UI.form(
  2029. "我的项目",
  2030. $$("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 }), {
  2031. "id": "studnetProject",
  2032. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2033. "onresize": function () { }
  2034. }, {
  2035. closecallback: function () { }
  2036. }, { "style": { "height": "36px" } }).form; //创建窗体
  2037. _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); } }
  2038. break;
  2039. case "studentEvaluate": //好友打开
  2040. _formdiv = new U.UF.UI.form(
  2041. "我的评价",
  2042. $$("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 }), {
  2043. "id": "studentEvaluate",
  2044. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2045. "onresize": function () { }
  2046. }, {
  2047. closecallback: function () { }
  2048. }, { "style": { "height": "36px" } }).form; //创建窗体
  2049. _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); } }
  2050. break;
  2051. case "my":
  2052. _formdiv = new U.UF.UI.form(
  2053. "我的资料",
  2054. $$("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 }), {
  2055. "id": "my",
  2056. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2057. "onresize": function () { }
  2058. }, {
  2059. closecallback: function () { }
  2060. }, { "style": { "height": "36px" } }).form; //创建窗体
  2061. _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); } }
  2062. break;
  2063. case "program":
  2064. _formdiv = new U.UF.UI.form(
  2065. "编程平台",
  2066. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2067. "id": "program",
  2068. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2069. "onresize": function () { }
  2070. }, {
  2071. closecallback: function () { }
  2072. }, { "style": { "height": "36px" } }).form; //创建窗体
  2073. _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); } }
  2074. break;
  2075. case "library":
  2076. _formdiv = new U.UF.UI.form(
  2077. "素材库",
  2078. $$("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 }), {
  2079. "id": "library",
  2080. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2081. "onresize": function () { }
  2082. }, {
  2083. closecallback: function () { }
  2084. }, { "style": { "height": "36px" } }).form; //创建窗体
  2085. _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); } }
  2086. break;
  2087. case "whiteboard":
  2088. _formdiv = new U.UF.UI.form(
  2089. "电子白板",
  2090. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2091. "id": "whiteboard",
  2092. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2093. "onresize": function () { }
  2094. }, {
  2095. closecallback: function () { }
  2096. }, { "style": { "height": "36px" } }).form; //创建窗体
  2097. _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); } }
  2098. break;
  2099. case "investigation":
  2100. _formdiv = new U.UF.UI.form(
  2101. "问卷调查",
  2102. $$("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 }), {
  2103. "id": "investigation",
  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/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2110. break;
  2111. case "note":
  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/#/note?userid=" + _userid + "&org=" + _org }), {
  2115. "id": "note",
  2116. "style": { "width": "20%", "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/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2122. break;
  2123. // case "score":
  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 + "" }), {
  2127. // "id": "score",
  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/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2134. // break;
  2135. case "mind":
  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": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  2139. "id": "mind",
  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/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2146. break;
  2147. case "doc":
  2148. // U.MD.D.I.isRoom();
  2149. _formdiv = new U.UF.UI.form(
  2150. "协同文档",
  2151. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2152. "id": "doc",
  2153. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2154. "onresize": function () { }
  2155. }, {
  2156. closecallback: function () { }
  2157. }, { "style": { "height": "36px" } }).form; //创建窗体
  2158. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2159. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2160. // })
  2161. _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); } }
  2162. break;
  2163. case "studentStudy":
  2164. _formdiv = new U.UF.UI.form(
  2165. "课程中心",
  2166. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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
  2167. "id": "studentStudy",
  2168. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2169. "onresize": function () { }
  2170. }, {
  2171. closecallback: function () { }
  2172. }, { "style": { "height": "36px" } }).form; //创建窗体
  2173. _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); } }
  2174. break;
  2175. case "train": //好友打开
  2176. _formdiv = new U.UF.UI.form(
  2177. "训练平台",
  2178. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2179. "id": "train",
  2180. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2181. "onresize": function () { }
  2182. }, {
  2183. closecallback: function () { }
  2184. }, { "style": { "height": "36px" } }).form; //创建窗体
  2185. _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); } }
  2186. break;
  2187. case "mindNetwork": //好友打开
  2188. _formdiv = new U.UF.UI.form(
  2189. "思维网格",
  2190. $$("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 }), {
  2191. "id": "mindNetwork",
  2192. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2193. "onresize": function () { }
  2194. }, {
  2195. closecallback: function () { }
  2196. }, { "style": { "height": "36px" } }).form; //创建窗体
  2197. _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); } }
  2198. break;
  2199. case "studentClassRoom": //好友打开
  2200. _formdiv = new U.UF.UI.form(
  2201. "实时课堂",
  2202. $$("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 }), {
  2203. "id": "studentClassRoom",
  2204. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2205. "onresize": function () { }
  2206. }, {
  2207. closecallback: function () { }
  2208. }, { "style": { "height": "36px" } }).form; //创建窗体
  2209. _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); } }
  2210. setTimeout(() => {
  2211. U.UF.F.windowZooming(_formdiv)
  2212. }, 0);
  2213. break;
  2214. }
  2215. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2216. switch (str) {
  2217. case "studnetProject": //好友打开
  2218. _formdiv = new U.UF.UI.form(
  2219. "我的项目",
  2220. $$("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 }), {
  2221. "id": "studnetProject",
  2222. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2223. "onresize": function () { }
  2224. }, {
  2225. closecallback: function () { }
  2226. }, { "style": { "height": "36px" } }).form; //创建窗体
  2227. _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); } }
  2228. break;
  2229. case "studentEvaluate": //好友打开
  2230. _formdiv = new U.UF.UI.form(
  2231. "我的评价",
  2232. $$("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 }), {
  2233. "id": "studentEvaluate",
  2234. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2235. "onresize": function () { }
  2236. }, {
  2237. closecallback: function () { }
  2238. }, { "style": { "height": "36px" } }).form; //创建窗体
  2239. _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); } }
  2240. break;
  2241. case "my":
  2242. _formdiv = new U.UF.UI.form(
  2243. "我的资料",
  2244. $$("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 }), {
  2245. "id": "my",
  2246. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2247. "onresize": function () { }
  2248. }, {
  2249. closecallback: function () { }
  2250. }, { "style": { "height": "36px" } }).form; //创建窗体
  2251. _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); } }
  2252. break;
  2253. case "program":
  2254. _formdiv = new U.UF.UI.form(
  2255. "编程平台",
  2256. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2257. "id": "program",
  2258. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2259. "onresize": function () { }
  2260. }, {
  2261. closecallback: function () { }
  2262. }, { "style": { "height": "36px" } }).form; //创建窗体
  2263. _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); } }
  2264. break;
  2265. case "library":
  2266. _formdiv = new U.UF.UI.form(
  2267. "素材库",
  2268. $$("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 }), {
  2269. "id": "library",
  2270. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2271. "onresize": function () { }
  2272. }, {
  2273. closecallback: function () { }
  2274. }, { "style": { "height": "36px" } }).form; //创建窗体
  2275. _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); } }
  2276. break;
  2277. case "whiteboard":
  2278. _formdiv = new U.UF.UI.form(
  2279. "电子白板",
  2280. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2281. "id": "whiteboard",
  2282. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2283. "onresize": function () { }
  2284. }, {
  2285. closecallback: function () { }
  2286. }, { "style": { "height": "36px" } }).form; //创建窗体
  2287. _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); } }
  2288. break;
  2289. case "investigation":
  2290. _formdiv = new U.UF.UI.form(
  2291. "问卷调查",
  2292. $$("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 }), {
  2293. "id": "investigation",
  2294. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2295. "onresize": function () { }
  2296. }, {
  2297. closecallback: function () { }
  2298. }, { "style": { "height": "36px" } }).form; //创建窗体
  2299. _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); } }
  2300. break;
  2301. case "note":
  2302. _formdiv = new U.UF.UI.form(
  2303. "便签分类",
  2304. $$("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 }), {
  2305. "id": "note",
  2306. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2307. "onresize": function () { }
  2308. }, {
  2309. closecallback: function () { }
  2310. }, { "style": { "height": "36px" } }).form; //创建窗体
  2311. _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); } }
  2312. break;
  2313. // case "score":
  2314. // _formdiv = new U.UF.UI.form(
  2315. // "量规评分",
  2316. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2317. // "id": "score",
  2318. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2319. // "onresize": function() {}
  2320. // }, {
  2321. // closecallback: function() {}
  2322. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2323. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2324. // break;
  2325. case "mind":
  2326. _formdiv = new U.UF.UI.form(
  2327. "思维导图",
  2328. $$("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"
  2329. "id": "mind",
  2330. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2331. "onresize": function () { }
  2332. }, {
  2333. closecallback: function () { }
  2334. }, { "style": { "height": "36px" } }).form; //创建窗体
  2335. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2336. break;
  2337. case "doc":
  2338. // U.MD.D.I.isRoom();
  2339. _formdiv = new U.UF.UI.form(
  2340. "协同文档",
  2341. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2342. "id": "doc",
  2343. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2344. "onresize": function () { }
  2345. }, {
  2346. closecallback: function () { }
  2347. }, { "style": { "height": "36px" } }).form; //创建窗体
  2348. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2349. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2350. })
  2351. _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); } }
  2352. break;
  2353. case "train": //好友打开
  2354. _formdiv = new U.UF.UI.form(
  2355. "训练平台",
  2356. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2357. "id": "train",
  2358. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2359. "onresize": function () { }
  2360. }, {
  2361. closecallback: function () { }
  2362. }, { "style": { "height": "36px" } }).form; //创建窗体
  2363. _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); } }
  2364. break;
  2365. case "studentStudy":
  2366. _formdiv = new U.UF.UI.form(
  2367. "课程中心",
  2368. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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
  2369. "id": "studentStudy",
  2370. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2371. "onresize": function () { }
  2372. }, {
  2373. closecallback: function () { }
  2374. }, { "style": { "height": "36px" } }).form; //创建窗体
  2375. _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); } }
  2376. break;
  2377. case "mindNetwork": //好友打开
  2378. _formdiv = new U.UF.UI.form(
  2379. "思维网格",
  2380. $$("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 }), {
  2381. "id": "mindNetwork",
  2382. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2383. "onresize": function () { }
  2384. }, {
  2385. closecallback: function () { }
  2386. }, { "style": { "height": "36px" } }).form; //创建窗体
  2387. _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); } }
  2388. break;
  2389. case "studentClassRoom": //好友打开
  2390. _formdiv = new U.UF.UI.form(
  2391. "实时课堂",
  2392. $$("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 }), {
  2393. "id": "studentClassRoom",
  2394. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2395. "onresize": function () { }
  2396. }, {
  2397. closecallback: function () { }
  2398. }, { "style": { "height": "36px" } }).form; //创建窗体
  2399. _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); } }
  2400. setTimeout(() => {
  2401. U.UF.F.windowZooming(_formdiv)
  2402. }, 0);
  2403. break;
  2404. }
  2405. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2406. //选择应用处理
  2407. switch (str) {
  2408. case "project": //好友打开
  2409. _formdiv = new U.UF.UI.form(
  2410. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2411. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;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 }), {
  2412. "id": "project",
  2413. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2414. "onresize": function () { }
  2415. }, {
  2416. closecallback: function () { }
  2417. }, { "style": { "height": "36px" } }).form; //创建窗体
  2418. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2419. break;
  2420. case "student":
  2421. _formdiv = new U.UF.UI.form(
  2422. "学生管理",
  2423. $$("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 }), {
  2424. "id": "student",
  2425. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2426. "onresize": function () { }
  2427. }, {
  2428. closecallback: function () { }
  2429. }, { "style": { "height": "36px" } }).form; //创建窗体
  2430. _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); } }
  2431. break;
  2432. case "evaluate":
  2433. _formdiv = new U.UF.UI.form(
  2434. "学生评价",
  2435. $$("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 }), {
  2436. "id": "evaluate",
  2437. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2438. "onresize": function () { }
  2439. }, {
  2440. closecallback: function () { }
  2441. }, { "style": { "height": "36px" } }).form; //创建窗体
  2442. _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); } }
  2443. break;
  2444. case "sys":
  2445. _formdiv = new U.UF.UI.form(
  2446. "目标管理",
  2447. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2448. "id": "sys",
  2449. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2450. "onresize": function () { }
  2451. }, {
  2452. closecallback: function () { }
  2453. }, { "style": { "height": "36px" } }).form; //创建窗体
  2454. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2455. break;
  2456. case "courseDesign":
  2457. _formdiv = new U.UF.UI.form(
  2458. "项目设计",
  2459. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2460. "id": "courseDesign",
  2461. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2462. "onresize": function () { }
  2463. }, {
  2464. closecallback: function () { }
  2465. }, { "style": { "height": "36px" } }).form; //创建窗体
  2466. _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); } }
  2467. break;
  2468. case "program":
  2469. _formdiv = new U.UF.UI.form(
  2470. "编程平台",
  2471. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2472. "id": "program",
  2473. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2474. "onresize": function () { }
  2475. }, {
  2476. closecallback: function () { }
  2477. }, { "style": { "height": "36px" } }).form; //创建窗体
  2478. _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); } }
  2479. break;
  2480. case "class":
  2481. _formdiv = new U.UF.UI.form(
  2482. "班级管理",
  2483. $$("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 }), {
  2484. "id": "class",
  2485. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2486. "onresize": function () { }
  2487. }, {
  2488. closecallback: function () { }
  2489. }, { "style": { "height": "36px" } }).form; //创建窗体
  2490. _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); } }
  2491. break;
  2492. case "my":
  2493. _formdiv = new U.UF.UI.form(
  2494. "我的资料",
  2495. $$("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 }), {
  2496. "id": "my",
  2497. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2498. "onresize": function () { }
  2499. }, {
  2500. closecallback: function () { }
  2501. }, { "style": { "height": "36px" } }).form; //创建窗体
  2502. _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); } }
  2503. break;
  2504. case "notice":
  2505. _formdiv = new U.UF.UI.form(
  2506. "通知公告",
  2507. $$("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 }), {
  2508. "id": "notice",
  2509. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2510. "onresize": function () { }
  2511. }, {
  2512. closecallback: function () { }
  2513. }, { "style": { "height": "36px" } }).form; //创建窗体
  2514. _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); } }
  2515. break;
  2516. case "library":
  2517. _formdiv = new U.UF.UI.form(
  2518. "素材库",
  2519. $$("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 }), {
  2520. "id": "library",
  2521. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2522. "onresize": function () { }
  2523. }, {
  2524. closecallback: function () { }
  2525. }, { "style": { "height": "36px" } }).form; //创建窗体
  2526. _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); } }
  2527. break;
  2528. case "whiteboard":
  2529. _formdiv = new U.UF.UI.form(
  2530. "电子白板",
  2531. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2532. "id": "whiteboard",
  2533. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2534. "onresize": function () { }
  2535. }, {
  2536. closecallback: function () { }
  2537. }, { "style": { "height": "36px" } }).form; //创建窗体
  2538. _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); } }
  2539. break;
  2540. case "investigation":
  2541. _formdiv = new U.UF.UI.form(
  2542. "问卷调查",
  2543. $$("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 }), {
  2544. "id": "investigation",
  2545. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2546. "onresize": function () { }
  2547. }, {
  2548. closecallback: function () { }
  2549. }, { "style": { "height": "36px" } }).form; //创建窗体
  2550. _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); } }
  2551. break;
  2552. case "note":
  2553. _formdiv = new U.UF.UI.form(
  2554. "便签分类",
  2555. $$("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 }), {
  2556. "id": "note",
  2557. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2558. "onresize": function () { }
  2559. }, {
  2560. closecallback: function () { }
  2561. }, { "style": { "height": "36px" } }).form; //创建窗体
  2562. _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); } }
  2563. break;
  2564. // case "score":
  2565. // _formdiv = new U.UF.UI.form(
  2566. // "量规评分",
  2567. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2568. // "id": "score",
  2569. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2570. // "onresize": function() {}
  2571. // }, {
  2572. // closecallback: function() {}
  2573. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2574. // _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); } }
  2575. // break;
  2576. case "mind":
  2577. _formdiv = new U.UF.UI.form(
  2578. "思维导图",
  2579. $$("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"
  2580. "id": "mind",
  2581. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2582. "onresize": function () { }
  2583. }, {
  2584. closecallback: function () { }
  2585. }, { "style": { "height": "36px" } }).form; //创建窗体
  2586. _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); } }
  2587. break;
  2588. case "doc":
  2589. // U.MD.D.I.isRoom();
  2590. _formdiv = new U.UF.UI.form(
  2591. "协同文档",
  2592. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2593. "id": "doc",
  2594. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2595. "onresize": function () { }
  2596. }, {
  2597. closecallback: function () { }
  2598. }, { "style": { "height": "36px" } }).form; //创建窗体
  2599. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2600. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2601. })
  2602. _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); } }
  2603. break;
  2604. case "study":
  2605. _formdiv = new U.UF.UI.form(
  2606. "课程中心",
  2607. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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
  2608. "id": "study",
  2609. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2610. "onresize": function () { }
  2611. }, {
  2612. closecallback: function () { }
  2613. }, { "style": { "height": "36px" } }).form; //创建窗体
  2614. _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); } }
  2615. break;
  2616. case "mindNetwork": //好友打开
  2617. _formdiv = new U.UF.UI.form(
  2618. "思维网格",
  2619. $$("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 }), {
  2620. "id": "mindNetwork",
  2621. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2622. "onresize": function () { }
  2623. }, {
  2624. closecallback: function () { }
  2625. }, { "style": { "height": "36px" } }).form; //创建窗体
  2626. _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); } }
  2627. break;
  2628. case "train": //好友打开
  2629. _formdiv = new U.UF.UI.form(
  2630. "训练平台",
  2631. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2632. "id": "mindNetwork",
  2633. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2634. "onresize": function () { }
  2635. }, {
  2636. closecallback: function () { }
  2637. }, { "style": { "height": "36px" } }).form; //创建窗体
  2638. _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); } }
  2639. break;
  2640. case "teacherClassRoom": //好友打开
  2641. _formdiv = new U.UF.UI.form(
  2642. "实时课堂",
  2643. $$("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 }), {
  2644. "id": "teacherClassRoom",
  2645. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2646. "onresize": function () { }
  2647. }, {
  2648. closecallback: function () { }
  2649. }, { "style": { "height": "36px" } }).form; //创建窗体
  2650. _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); } }
  2651. setTimeout(() => {
  2652. U.UF.F.windowZooming(_formdiv)
  2653. }, 0);
  2654. break;
  2655. }
  2656. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2657. switch (str) {
  2658. case "project": //好友打开
  2659. _formdiv = new U.UF.UI.form(
  2660. "课程管理",
  2661. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;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 }), {
  2662. "id": "project",
  2663. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2664. "onresize": function () { }
  2665. }, {
  2666. closecallback: function () { }
  2667. }, { "style": { "height": "36px" } }).form; //创建窗体
  2668. _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); } }
  2669. break;
  2670. case "evaluate":
  2671. _formdiv = new U.UF.UI.form(
  2672. "学生评价",
  2673. $$("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 }), {
  2674. "id": "evaluate",
  2675. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2676. "onresize": function () { }
  2677. }, {
  2678. closecallback: function () { }
  2679. }, { "style": { "height": "36px" } }).form; //创建窗体
  2680. _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); } }
  2681. break;
  2682. case "notice":
  2683. _formdiv = new U.UF.UI.form(
  2684. "通知公告",
  2685. $$("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 }), {
  2686. "id": "notice",
  2687. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2688. "onresize": function () { }
  2689. }, {
  2690. closecallback: function () { }
  2691. }, { "style": { "height": "36px" } }).form; //创建窗体
  2692. _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); } }
  2693. break;
  2694. case "stuLibrary":
  2695. _formdiv = new U.UF.UI.form(
  2696. "学习资料",
  2697. $$("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 }), {
  2698. "id": "stuLibrary",
  2699. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2700. "onresize": function () { }
  2701. }, {
  2702. closecallback: function () { }
  2703. }, { "style": { "height": "36px" } }).form; //创建窗体
  2704. _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); } }
  2705. break;
  2706. case "program":
  2707. _formdiv = new U.UF.UI.form(
  2708. "编程平台",
  2709. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2710. "id": "program",
  2711. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2712. "onresize": function () { }
  2713. }, {
  2714. closecallback: function () { }
  2715. }, { "style": { "height": "36px" } }).form; //创建窗体
  2716. _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); } }
  2717. break;
  2718. case "whiteboard":
  2719. _formdiv = new U.UF.UI.form(
  2720. "电子白板",
  2721. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2722. "id": "whiteboard",
  2723. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2724. "onresize": function () { }
  2725. }, {
  2726. closecallback: function () { }
  2727. }, { "style": { "height": "36px" } }).form; //创建窗体
  2728. _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); } }
  2729. break;
  2730. case "investigation":
  2731. _formdiv = new U.UF.UI.form(
  2732. "问卷调查",
  2733. $$("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 }), {
  2734. "id": "investigation",
  2735. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2736. "onresize": function () { }
  2737. }, {
  2738. closecallback: function () { }
  2739. }, { "style": { "height": "36px" } }).form; //创建窗体
  2740. _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); } }
  2741. break;
  2742. case "mind":
  2743. _formdiv = new U.UF.UI.form(
  2744. "思维导图",
  2745. $$("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"
  2746. "id": "mind",
  2747. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2748. "onresize": function () { }
  2749. }, {
  2750. closecallback: function () { }
  2751. }, { "style": { "height": "36px" } }).form; //创建窗体
  2752. _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); } }
  2753. break;
  2754. case "doc":
  2755. // U.MD.D.I.isRoom();
  2756. _formdiv = new U.UF.UI.form(
  2757. "协同文档",
  2758. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2759. "id": "doc",
  2760. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2761. "onresize": function () { }
  2762. }, {
  2763. closecallback: function () { }
  2764. }, { "style": { "height": "36px" } }).form; //创建窗体
  2765. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2766. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2767. })
  2768. _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); } }
  2769. break;
  2770. case "study":
  2771. _formdiv = new U.UF.UI.form(
  2772. "课程中心",
  2773. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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
  2774. "id": "study",
  2775. "style": { "width": "100%", "height": "100%", "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/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2781. break;
  2782. case "mindNetwork": //好友打开
  2783. _formdiv = new U.UF.UI.form(
  2784. "思维网格",
  2785. $$("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 }), {
  2786. "id": "mindNetwork",
  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/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2793. break;
  2794. case "train": //好友打开
  2795. _formdiv = new U.UF.UI.form(
  2796. "训练平台",
  2797. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2798. "id": "train",
  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/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2805. break;
  2806. case "sys":
  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": US.Config.bpbl + "/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2810. "id": "sys",
  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/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2817. break;
  2818. case "courseDesign":
  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": "/course-design-vue" }), {
  2822. "id": "courseDesign",
  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/courseDesign.png)" }, "name": "项目设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2829. break;
  2830. }
  2831. } else if (!_type) {
  2832. switch (str) {
  2833. case "my":
  2834. _formdiv = new U.UF.UI.form(
  2835. "我的资料",
  2836. $$("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 }), {
  2837. "id": "my",
  2838. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2839. "onresize": function () { }
  2840. }, {
  2841. closecallback: function () { }
  2842. }, { "style": { "height": "36px" } }).form; //创建窗体
  2843. _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); } }
  2844. break;
  2845. }
  2846. }
  2847. switch (str) {
  2848. // AIprogram2 AI体验 aihub.cocorobo.cn
  2849. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2850. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2851. case "AIprogram2": //AI体验
  2852. _formdiv = new U.UF.UI.form(
  2853. "AI体验",
  2854. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2855. "id": "AIprogram2",
  2856. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2857. "onresize": function () { }
  2858. }, {
  2859. closecallback: function () { }
  2860. }, { "style": { "height": "36px" } }).form; //创建窗体
  2861. _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); } }
  2862. break;
  2863. case "Pythonprogram": //python编程
  2864. _formdiv = new U.UF.UI.form(
  2865. "Python编程",
  2866. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2867. "id": "Pythonprogram",
  2868. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2869. "onresize": function () { }
  2870. }, {
  2871. closecallback: function () { }
  2872. }, { "style": { "height": "36px" } }).form; //创建窗体
  2873. _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); } }
  2874. break;
  2875. case "AIprogram": //ai编程
  2876. _formdiv = new U.UF.UI.form(
  2877. "AI编程平台",
  2878. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2879. "id": "AIprogram",
  2880. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2881. "onresize": function () { }
  2882. }, {
  2883. closecallback: function () { }
  2884. }, { "style": { "height": "36px" } }).form; //创建窗体
  2885. _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); } }
  2886. break;
  2887. case "CocoPi": //CocoPi
  2888. _formdiv = new U.UF.UI.form(
  2889. "CocoPi",
  2890. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://v.cocorobo.cn" }), {
  2891. "id": "CocoPi",
  2892. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2893. "onresize": function () { }
  2894. }, {
  2895. closecallback: function () { }
  2896. }, { "style": { "height": "36px" } }).form; //创建窗体
  2897. _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); } }
  2898. break;
  2899. case "Wood": //Wood
  2900. _formdiv = new U.UF.UI.form(
  2901. "海龟编程",
  2902. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://wood.codemao.cn/" }), {
  2903. "id": "Wood",
  2904. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2905. "onresize": function () { }
  2906. }, {
  2907. closecallback: function () { }
  2908. }, { "style": { "height": "36px" } }).form; //创建窗体
  2909. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Wood.png)" }, "name": "海龟编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2910. break;
  2911. case "car": //模拟驾驶
  2912. _formdiv = new U.UF.UI.form(
  2913. "模拟驾驶",
  2914. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://slowroads.io/" }), {
  2915. "id": "car",
  2916. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2917. "onresize": function () { }
  2918. }, {
  2919. closecallback: function () { }
  2920. }, { "style": { "height": "36px" } }).form; //创建窗体
  2921. _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); } }
  2922. break;
  2923. case "lineSearch": //路径搜索
  2924. _formdiv = new U.UF.UI.form(
  2925. "路径搜索",
  2926. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;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/" }), {
  2927. "id": "lineSearch",
  2928. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2929. "onresize": function () { }
  2930. }, {
  2931. closecallback: function () { }
  2932. }, { "style": { "height": "36px" } }).form; //创建窗体
  2933. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/lineSearch.png)" }, "name": "路径搜索", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2934. break;
  2935. case "deepLearning": //深度学习
  2936. _formdiv = new U.UF.UI.form(
  2937. "深度学习",
  2938. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;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/#" }), {
  2939. "id": "deepLearning",
  2940. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2941. "onresize": function () { }
  2942. }, {
  2943. closecallback: function () { }
  2944. }, { "style": { "height": "36px" } }).form; //创建窗体
  2945. _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); } }
  2946. break;
  2947. case "allHistory": //深度学习
  2948. _formdiv = new U.UF.UI.form(
  2949. "全历史",
  2950. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.allhistory.com/" }), {
  2951. "id": "allHistory",
  2952. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2953. "onresize": function () { }
  2954. }, {
  2955. closecallback: function () { }
  2956. }, { "style": { "height": "36px" } }).form; //创建窗体
  2957. _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); } }
  2958. break;
  2959. case "chatPDF": //ai编程
  2960. _formdiv = new U.UF.UI.form(
  2961. "chatPDF",
  2962. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2963. "id": "chatPDF",
  2964. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2965. "onresize": function () { }
  2966. }, {
  2967. closecallback: function () { }
  2968. }, { "style": { "height": "36px" } }).form; //创建窗体
  2969. _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); } }
  2970. break;
  2971. case "resources": //国家教育
  2972. _formdiv = new U.UF.UI.form(
  2973. "国家教育",
  2974. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2975. "id": "resources",
  2976. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2977. "onresize": function () { }
  2978. }, {
  2979. closecallback: function () { }
  2980. }, { "style": { "height": "36px" } }).form; //创建窗体
  2981. _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); } }
  2982. break;
  2983. case "codeEdit": //源码编辑
  2984. _formdiv = new U.UF.UI.form(
  2985. "源码编辑",
  2986. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2987. "id": "codeEdit",
  2988. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2989. "onresize": function () { }
  2990. }, {
  2991. closecallback: function () { }
  2992. }, { "style": { "height": "36px" } }).form; //创建窗体
  2993. _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); } }
  2994. break; //
  2995. case "MindMap": //MindMap
  2996. _formdiv = new U.UF.UI.form(
  2997. "MindMap",
  2998. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2999. "id": "MindMap",
  3000. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3001. "onresize": function () { }
  3002. }, {
  3003. closecallback: function () { }
  3004. }, { "style": { "height": "36px" } }).form; //创建窗体
  3005. _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); } }
  3006. break;
  3007. case "netWorkPanel": //netWorkPanel
  3008. _formdiv = new U.UF.UI.form(
  3009. "netWorkPanel",
  3010. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3011. "id": "netWorkPanel",
  3012. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3013. "onresize": function () { }
  3014. }, {
  3015. closecallback: function () { }
  3016. }, { "style": { "height": "36px" } }).form; //创建窗体
  3017. _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); } }
  3018. break;
  3019. case "GeoGebra": //GeoGebra
  3020. _formdiv = new U.UF.UI.form(
  3021. "GeoGebra",
  3022. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  3023. "id": "GeoGebra",
  3024. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3025. "onresize": function () { }
  3026. }, {
  3027. closecallback: function () { }
  3028. }, { "style": { "height": "36px" } }).form; //创建窗体
  3029. _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); } }
  3030. break;
  3031. case "translation": //翻译
  3032. _formdiv = new U.UF.UI.form(
  3033. "翻译",
  3034. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3035. "id": "translation",
  3036. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3037. "onresize": function () { }
  3038. }, {
  3039. closecallback: function () { }
  3040. }, { "style": { "height": "36px" } }).form; //创建窗体
  3041. _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); } }
  3042. break;
  3043. case "mohe": //魔盒
  3044. _formdiv = new U.UF.UI.form(
  3045. "魔盒识字",
  3046. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3047. "id": "mohe",
  3048. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3049. "onresize": function () { }
  3050. }, {
  3051. closecallback: function () { }
  3052. }, { "style": { "height": "36px" } }).form; //创建窗体
  3053. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mohe.png)" }, "name": "魔盒识字", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3054. break;
  3055. case "24game": //24点
  3056. _formdiv = new U.UF.UI.form(
  3057. "24点",
  3058. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3059. "id": "24game",
  3060. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3061. "onresize": function () { }
  3062. }, {
  3063. closecallback: function () { }
  3064. }, { "style": { "height": "36px" } }).form; //创建窗体
  3065. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/24game.png)" }, "name": "24点", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3066. break;
  3067. case "case":
  3068. _formdiv = new U.UF.UI.form(
  3069. "课程进展",
  3070. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesign?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3071. "id": "case",
  3072. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3073. "onresize": function () { }
  3074. }, {
  3075. closecallback: function () { }
  3076. }, { "style": { "height": "36px" } }).form; //创建窗体
  3077. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/case.png)" }, "name": "课程进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3078. break;
  3079. case "snf":
  3080. _formdiv = new U.UF.UI.form(
  3081. "赛诺梵",
  3082. $$("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" }), {
  3083. "id": "snf",
  3084. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3085. "onresize": function () { }
  3086. }, {
  3087. closecallback: function () { }
  3088. }, { "style": { "height": "36px" } }).form; //创建窗体
  3089. _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); } }
  3090. break;
  3091. case "hanFamily":
  3092. _formdiv = new U.UF.UI.form(
  3093. "汉字家族",
  3094. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3095. "id": "hanFamily",
  3096. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3097. "onresize": function () { }
  3098. }, {
  3099. closecallback: function () { }
  3100. }, { "style": { "height": "36px" } }).form; //创建窗体
  3101. _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); } }
  3102. break;
  3103. case "hanClassics":
  3104. _formdiv = new U.UF.UI.form(
  3105. "国学经典",
  3106. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3107. "id": "hanClassics",
  3108. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3109. "onresize": function () { }
  3110. }, {
  3111. closecallback: function () { }
  3112. }, { "style": { "height": "36px" } }).form; //创建窗体
  3113. _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); } }
  3114. break;
  3115. case "hanTraining":
  3116. _formdiv = new U.UF.UI.form(
  3117. "笔画训练",
  3118. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3119. "id": "hanTraining",
  3120. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3121. "onresize": function () { }
  3122. }, {
  3123. closecallback: function () { }
  3124. }, { "style": { "height": "36px" } }).form; //创建窗体
  3125. _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); } }
  3126. break;
  3127. case "hanClass":
  3128. _formdiv = new U.UF.UI.form(
  3129. "书法课堂",
  3130. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3131. "id": "hanClass",
  3132. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3133. "onresize": function () { }
  3134. }, {
  3135. closecallback: function () { }
  3136. }, { "style": { "height": "36px" } }).form; //创建窗体
  3137. _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); } }
  3138. break;
  3139. case "han":
  3140. _formdiv = new U.UF.UI.form(
  3141. "汉字宫",
  3142. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3143. "id": "han",
  3144. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3145. "onresize": function () { }
  3146. }, {
  3147. closecallback: function () { }
  3148. }, { "style": { "height": "36px" } }).form; //创建窗体
  3149. _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); } }
  3150. break;
  3151. case "projectGM": //课程管理
  3152. _formdiv = new U.UF.UI.form(
  3153. "课程管理",
  3154. $$("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 }), {
  3155. "id": "projectGM",
  3156. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3157. "onresize": function () { }
  3158. }, {
  3159. closecallback: function () { }
  3160. }, { "style": { "height": "36px" } }).form; //创建窗体
  3161. _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); } }
  3162. break;
  3163. case "studyGM"://课程中心
  3164. _formdiv = new U.UF.UI.form(
  3165. "课程中心",
  3166. $$("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
  3167. "id": "study",
  3168. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3169. "onresize": function () { }
  3170. }, {
  3171. closecallback: function () { }
  3172. }, { "style": { "height": "36px" } }).form; //创建窗体
  3173. _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); } }
  3174. break;
  3175. // studentGM
  3176. case "studentGM"://学生管理
  3177. _formdiv = new U.UF.UI.form(
  3178. "学生管理",
  3179. $$("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 }), {
  3180. "id": "studentGM",
  3181. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3182. "onresize": function () { }
  3183. }, {
  3184. closecallback: function () { }
  3185. }, { "style": { "height": "36px" } }).form; //创建窗体
  3186. _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); } }
  3187. break;
  3188. case "evaluateGM"://学生评价
  3189. _formdiv = new U.UF.UI.form(
  3190. "学生评价",
  3191. $$("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 }), {
  3192. "id": "evaluateGM",
  3193. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3194. "onresize": function () { }
  3195. }, {
  3196. closecallback: function () { }
  3197. }, { "style": { "height": "36px" } }).form; //创建窗体
  3198. _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); } }
  3199. break;
  3200. // classGM
  3201. case "classGM"://班级管理
  3202. _formdiv = new U.UF.UI.form(
  3203. "班级管理",
  3204. $$("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 }), {
  3205. "id": "classGM",
  3206. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3207. "onresize": function () { }
  3208. }, {
  3209. closecallback: function () { }
  3210. }, { "style": { "height": "36px" } }).form; //创建窗体
  3211. _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); } }
  3212. break;
  3213. // dataGM
  3214. case "dataGM":
  3215. _formdiv = new U.UF.UI.form(
  3216. "我的资料",
  3217. $$("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 }), {
  3218. "id": "dataGM",
  3219. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3220. "onresize": function () { }
  3221. }, {
  3222. closecallback: function () { }
  3223. }, { "style": { "height": "36px" } }).form; //创建窗体
  3224. _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); } }
  3225. break;
  3226. // caseGM
  3227. case "caseGM"://课程进展
  3228. _formdiv = new U.UF.UI.form(
  3229. "课程进展",
  3230. $$("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 }), {
  3231. "id": "caseGM",
  3232. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3233. "onresize": function () { }
  3234. }, {
  3235. closecallback: function () { }
  3236. }, { "style": { "height": "36px" } }).form; //创建窗体
  3237. _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); } }
  3238. break;
  3239. // meterialGM
  3240. case "meterialGM"://素材库
  3241. _formdiv = new U.UF.UI.form(
  3242. "素材库",
  3243. $$("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 }), {
  3244. "id": "meterialGM",
  3245. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3246. "onresize": function () { }
  3247. }, {
  3248. closecallback: function () { }
  3249. }, { "style": { "height": "36px" } }).form; //创建窗体
  3250. _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); } }
  3251. break;
  3252. // evaluateSGM
  3253. case "evaluateSGM": //我的评价
  3254. _formdiv = new U.UF.UI.form(
  3255. "我的评价",
  3256. $$("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 }), {
  3257. "id": "evaluateSGM",
  3258. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3259. "onresize": function () { }
  3260. }, {
  3261. closecallback: function () { }
  3262. }, { "style": { "height": "36px" } }).form; //创建窗体
  3263. _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); } }
  3264. break;
  3265. case "jupyter": //jupyter
  3266. _formdiv = new U.UF.UI.form(
  3267. "jupyter",
  3268. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3269. "id": "jupyter",
  3270. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3271. "onresize": function () { }
  3272. }, {
  3273. closecallback: function () { }
  3274. }, { "style": { "height": "36px" } }).form; //创建窗体
  3275. _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); } }
  3276. break;
  3277. case "number": //数字实验室
  3278. _formdiv = new U.UF.UI.form(
  3279. "数字实验室",
  3280. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3281. "id": "number",
  3282. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3283. "onresize": function () { }
  3284. }, {
  3285. closecallback: function () { }
  3286. }, { "style": { "height": "36px" } }).form; //创建窗体
  3287. _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); } }
  3288. break;
  3289. case "studentCourse": //项目管理 学生
  3290. _formdiv = new U.UF.UI.form(
  3291. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3292. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  3293. "id": "studentCourse",
  3294. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3295. "onresize": function () { }
  3296. }, {
  3297. closecallback: function () { }
  3298. }, { "style": { "height": "36px" } }).form; //创建窗体
  3299. _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); } }
  3300. break;
  3301. case "studentCourseS": //项目管理 老师
  3302. _formdiv = new U.UF.UI.form(
  3303. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3304. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  3305. "id": "studentCourseS",
  3306. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3307. "onresize": function () { }
  3308. }, {
  3309. closecallback: function () { }
  3310. }, { "style": { "height": "36px" } }).form; //创建窗体
  3311. _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); } }
  3312. break;
  3313. case "studentIndex": //项目中心
  3314. _formdiv = new U.UF.UI.form(
  3315. "项目中心",
  3316. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  3317. "id": "studentIndex",
  3318. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3319. "onresize": function () { }
  3320. }, {
  3321. closecallback: function () { }
  3322. }, { "style": { "height": "36px" } }).form; //创建窗体
  3323. _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); } }
  3324. break;
  3325. case "CaseDesignS":
  3326. _formdiv = new U.UF.UI.form(
  3327. "项目进展",
  3328. $$("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 }), {
  3329. "id": "case",
  3330. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3331. "onresize": function () { }
  3332. }, {
  3333. closecallback: function () { }
  3334. }, { "style": { "height": "36px" } }).form; //创建窗体
  3335. _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); } }
  3336. break;
  3337. case "tcStudent": //腾讯学生管理
  3338. _formdiv = new U.UF.UI.form(
  3339. "学生管理",
  3340. $$("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 }), {
  3341. "id": "tcStudent",
  3342. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3343. "onresize": function () { }
  3344. }, {
  3345. closecallback: function () { }
  3346. }, { "style": { "height": "36px" } }).form; //创建窗体
  3347. _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); } }
  3348. break;
  3349. case "tcSchool": //腾讯学校管理
  3350. _formdiv = new U.UF.UI.form(
  3351. "学校管理",
  3352. $$("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 }), {
  3353. "id": "tcSchool",
  3354. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3355. "onresize": function () { }
  3356. }, {
  3357. closecallback: function () { }
  3358. }, { "style": { "height": "36px" } }).form; //创建窗体
  3359. _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); } }
  3360. break;
  3361. case "tcTeacher": //腾讯学校管理
  3362. _formdiv = new U.UF.UI.form(
  3363. "教师管理",
  3364. $$("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 }), {
  3365. "id": "tcTeacher",
  3366. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3367. "onresize": function () { }
  3368. }, {
  3369. closecallback: function () { }
  3370. }, { "style": { "height": "36px" } }).form; //创建窗体
  3371. _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); } }
  3372. break;
  3373. case "tcData": //腾讯我的资料
  3374. _formdiv = new U.UF.UI.form(
  3375. "我的资料",
  3376. $$("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 }), {
  3377. "id": "tcData",
  3378. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3379. "onresize": function () { }
  3380. }, {
  3381. closecallback: function () { }
  3382. }, { "style": { "height": "36px" } }).form; //创建窗体
  3383. _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); } }
  3384. break;
  3385. case "tcNotice": //腾讯消息通知
  3386. _formdiv = new U.UF.UI.form(
  3387. "消息通知",
  3388. $$("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 }), {
  3389. "id": "tcNotice",
  3390. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3391. "onresize": function () { }
  3392. }, {
  3393. closecallback: function () { }
  3394. }, { "style": { "height": "36px" } }).form; //创建窗体
  3395. _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); } }
  3396. break;
  3397. case "myReport": //好友打开
  3398. _formdiv = new U.UF.UI.form(
  3399. "我的评价",
  3400. $$("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 }), {
  3401. "id": "myReport",
  3402. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3403. "onresize": function () { }
  3404. }, {
  3405. closecallback: function () { }
  3406. }, { "style": { "height": "36px" } }).form; //创建窗体
  3407. _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); } }
  3408. break;
  3409. case "learnAna": //好友打开
  3410. _formdiv = new U.UF.UI.form(
  3411. "学习分析",
  3412. $$("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 }), {
  3413. "id": "learnAna",
  3414. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3415. "onresize": function () { }
  3416. }, {
  3417. closecallback: function () { }
  3418. }, { "style": { "height": "36px" } }).form; //创建窗体
  3419. _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); } }
  3420. break;
  3421. case "AIChat": //AI共创
  3422. _formdiv = new U.UF.UI.form(
  3423. "AI共创",
  3424. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3425. "id": "AIChat",
  3426. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3427. "onresize": function () { }
  3428. }, {
  3429. istop: true,
  3430. closecallback: function () { $("#aichat_icon").remove(); },
  3431. narrowcallback: function () {
  3432. if (!$("#aichat_icon")[0]) {
  3433. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3434. }
  3435. },
  3436. }, { "style": { "height": "36px" } }).form; //创建窗体
  3437. _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); } }
  3438. break;
  3439. case "AIAnalyse": //AI共创
  3440. _formdiv = new U.UF.UI.form(
  3441. "AI分析",
  3442. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3443. "id": "AIAnalyse",
  3444. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3445. "onresize": function () { }
  3446. }, {
  3447. closecallback: function () { }
  3448. }, { "style": { "height": "36px" } }).form; //创建窗体
  3449. _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); } }
  3450. break;
  3451. case "studioCourse": //AI共创
  3452. _formdiv = new U.UF.UI.form(
  3453. "工作管理",
  3454. $$("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 }), {
  3455. "id": "studioCourse",
  3456. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3457. "onresize": function () { }
  3458. }, {
  3459. closecallback: function () { }
  3460. }, { "style": { "height": "36px" } }).form; //创建窗体
  3461. _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); } }
  3462. break;
  3463. case "studioIndex": //AI共创
  3464. _formdiv = new U.UF.UI.form(
  3465. "工作中心",
  3466. $$("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 }), {
  3467. "id": "studioIndex",
  3468. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3469. "onresize": function () { }
  3470. }, {
  3471. closecallback: function () { }
  3472. }, { "style": { "height": "36px" } }).form; //创建窗体
  3473. _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); } }
  3474. break;
  3475. case "source":
  3476. _formdiv = new U.UF.UI.form(
  3477. "教学资源",
  3478. $$("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 }), {
  3479. "id": "source",
  3480. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3481. "onresize": function () { }
  3482. }, {
  3483. closecallback: function () { }
  3484. }, { "style": { "height": "36px" } }).form; //创建窗体
  3485. _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); } }
  3486. break;
  3487. }
  3488. //U.MD.D.I.openClick(str);
  3489. //如果有任务栏信息
  3490. if (_taskbar) {
  3491. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3492. }
  3493. }
  3494. // U.MD.D.I.openClick = function(str){
  3495. // var click = '';
  3496. // switch(str){
  3497. // case 'friend':
  3498. // click = '我的好友';
  3499. // break;
  3500. // case 'domain':
  3501. // click = '域名管理';
  3502. // break;
  3503. // case 'disk':
  3504. // click = '我的云盘';
  3505. // break;
  3506. // case 'word':
  3507. // click = 'Word';
  3508. // break;
  3509. // case 'excel':
  3510. // click = 'Execl';
  3511. // break;
  3512. // case 'txt':
  3513. // click = '文本文件';
  3514. // break;
  3515. // case 'lookupFriend':
  3516. // click = '查找好友';
  3517. // break;
  3518. // case 'ftp':
  3519. // click = 'FTP';
  3520. // break;
  3521. // case 'group':
  3522. // click = '群组';
  3523. // break;
  3524. // case 'set':
  3525. // click = '我的设置';
  3526. // break;
  3527. // case 'systemSet':
  3528. // click = '系统设置';
  3529. // break;
  3530. // case 'boomYun':
  3531. // click = '互联办公';
  3532. // break;
  3533. // case 'xz':
  3534. // click = '云端下载';
  3535. // break;
  3536. // case 'client':
  3537. // click = '有思浏览器';
  3538. // break;
  3539. // case 'backEndProgramming':
  3540. // click = '在线后台编程';
  3541. // break;
  3542. // case 'frontEndProgramming':
  3543. // click = '在线前端编程';
  3544. // break;
  3545. // default: break;
  3546. // }
  3547. // if(U.MD.D.I.Ip && click){
  3548. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3549. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3550. // })
  3551. // }
  3552. // }
  3553. /**
  3554. *函数作用:ajax简易函数,使用post格式
  3555. *@param url {data} 后台地址
  3556. *@param data {data} 参数json
  3557. *@param fn {data} 回调函数
  3558. *
  3559. */
  3560. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3561. // var xhr = new XMLHttpRequest();
  3562. // xhr.open("GET",url,true);
  3563. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3564. // xhr.onreadystatechange = function(){
  3565. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3566. // fn.call(this,xhr.responseText);
  3567. // }
  3568. // };
  3569. // xhr.send();
  3570. // }
  3571. /*判断是否是内网IP*/
  3572. // U.MD.D.I.isInnerIPFn = function(str){
  3573. // var curPageUrl = str;
  3574. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3575. // curPageUrl =curPageUrl.replace(reg1,'');
  3576. // // console.log('curPageUrl-1 '+curPageUrl);
  3577. // var reg2 = /\:+/g;//替换冒号为一点
  3578. // curPageUrl =curPageUrl.replace(reg2,'.');
  3579. // // console.log('curPageUrl-2 '+curPageUrl);
  3580. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3581. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3582. // if(curPageUrl[2] != '16'){
  3583. // return ipAddress;
  3584. // }else{
  3585. // return false;
  3586. // }
  3587. // }
  3588. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3589. // //compatibility for firefox and chrome
  3590. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3591. // var pc = new myPeerConnection({
  3592. // iceServers: []
  3593. // }),
  3594. // noop = function() {},
  3595. // localIPs = {},
  3596. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3597. // key;
  3598. // function iterateIP(ip) {
  3599. // if (!localIPs[ip]) onNewIP(ip);
  3600. // localIPs[ip] = true;
  3601. // }
  3602. // //create a bogus data channel
  3603. // pc.createDataChannel("");
  3604. // // create offer and set local description
  3605. // pc.createOffer().then(function(sdp) {
  3606. // sdp.sdp.split('\n').forEach(function(line) {
  3607. // if (line.indexOf('candidate') < 0) return;
  3608. // line.match(ipRegex).forEach(iterateIP);
  3609. // });
  3610. // pc.setLocalDescription(sdp, noop, noop);
  3611. // }).catch(function(reason) {
  3612. // // An error occurred, so handle the failure to connect
  3613. // });
  3614. // //sten for candidate events
  3615. // pc.onicecandidate = function(ice) {
  3616. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3617. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3618. // };
  3619. // }
  3620. // U.MD.D.I.getUserIpBool = function(callback){
  3621. // U.MD.D.I.getUserIP(function(ip){
  3622. // alert("Got IP! :" + ip);
  3623. // });
  3624. //}
  3625. //#endregion
  3626. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3627. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3628. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3629. _userinfo = US.userInfo, //登录用户信息
  3630. _userid = US.userInfo.userid //登录用户id
  3631. let _iframe;
  3632. let _cid = cid,
  3633. _stage = stage,
  3634. _task = task,
  3635. _tool = tool;
  3636. var _jie = $$("div", {
  3637. "style": {
  3638. "position": "absolute",
  3639. "bottom": "50px",
  3640. "right": "50px",
  3641. "zIndex": "9999",
  3642. "backgroundColor": "#2268bc",
  3643. "color": "#fff",
  3644. "padding": "12px 20px",
  3645. "cursor": "pointer",
  3646. "borderRadius": "4px",
  3647. },
  3648. "innerHTML": "提交作业"
  3649. })
  3650. let aTool = ''
  3651. let _loading = document.createElement('div')
  3652. _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;"
  3653. // _loading.id = "";
  3654. let _lchild = document.createElement('div')
  3655. let _limg = document.createElement('img')
  3656. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3657. _limg.style = "width: 26px;margin-right: 10px;"
  3658. _lchild.appendChild(_limg)
  3659. let _lspan = document.createElement('span')
  3660. _lspan.innerHTML = "上传中..."
  3661. _lchild.appendChild(_lspan)
  3662. _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%);"
  3663. _loading.appendChild(_lchild)
  3664. var _box = $$('div', {
  3665. "style": {
  3666. "position": "relative",
  3667. "width": "100%",
  3668. "height": "100%",
  3669. },
  3670. })
  3671. _box.appendChild(_loading)
  3672. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool+_userid
  3673. switch (str) {
  3674. case "whiteboard":
  3675. aTool = 1;
  3676. _iframe = $$("iframe", {
  3677. "frameborder": "no",
  3678. "border": "0",
  3679. "scrolling ": "no",
  3680. "style": {
  3681. "cssText": "border:0;width:100%;height:100%"
  3682. },
  3683. "src": "https://iwb.cocorobo.cn/"
  3684. })
  3685. _box.appendChild(_iframe);
  3686. _box.appendChild(_jie);
  3687. _formdiv = new U.UF.UI.form(
  3688. "电子白板",
  3689. _box, {
  3690. "id": "whiteboard" + cid + stage + task + tool,
  3691. "style": {
  3692. "width": "90%",
  3693. "height": "90%",
  3694. "overflow": 'hidden'
  3695. },
  3696. "onresize": function () { }
  3697. }, {
  3698. closecallback: function () { }
  3699. }, {
  3700. "style": {
  3701. "height": "36px"
  3702. }
  3703. }).form; //创建窗体
  3704. _taskbar = {
  3705. "id": str + _formdiv.id,
  3706. "style": {
  3707. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3708. },
  3709. "name": "电子白板",
  3710. "forms": _formdiv,
  3711. "click": function () {
  3712. U.MD.D.I.openApplication(str, obj, info);
  3713. }
  3714. }
  3715. break;
  3716. case "mind":
  3717. aTool = 3;
  3718. _iframe = $$("iframe", {
  3719. "frameborder": "no",
  3720. "border": "0",
  3721. "scrolling ": "no",
  3722. "style": {
  3723. "cssText": "border:0;width:100%;height:100%"
  3724. },
  3725. "src": "/kityminder-editor/dist/index.html"
  3726. })
  3727. _box.appendChild(_iframe);
  3728. _box.appendChild(_jie);
  3729. _formdiv = new U.UF.UI.form(
  3730. "思维导图",
  3731. _box, { //"/jsmind/example/demo.html"
  3732. "id": "mind" + cid + stage + task + tool,
  3733. "style": {
  3734. "width": "90%",
  3735. "height": "90%",
  3736. "overflow": 'hidden'
  3737. },
  3738. "onresize": function () { }
  3739. }, {
  3740. closecallback: function () { }
  3741. }, {
  3742. "style": {
  3743. "height": "36px"
  3744. }
  3745. }).form; //创建窗体
  3746. _taskbar = {
  3747. "id": str + _formdiv.id,
  3748. "style": {
  3749. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3750. },
  3751. "name": "思维导图",
  3752. "forms": _formdiv,
  3753. "click": function () {
  3754. U.MD.D.I.openApplication(str, obj, info);
  3755. }
  3756. }
  3757. break;
  3758. case "MindMap":
  3759. aTool = 3;
  3760. _iframe = $$("iframe", {
  3761. "frameborder": "no",
  3762. "border": "0",
  3763. "scrolling ": "no",
  3764. "style": {
  3765. "cssText": "border:0;width:100%;height:100%"
  3766. },
  3767. "src": "//cloud.cocorobo.cn/mind/"
  3768. })
  3769. _box.appendChild(_iframe);
  3770. _box.appendChild(_jie);
  3771. _formdiv = new U.UF.UI.form(
  3772. "思维导图",
  3773. _box, { //"/jsmind/example/demo.html"
  3774. "id": "mind" + cid + stage + task + tool,
  3775. "style": {
  3776. "width": "90%",
  3777. "height": "90%",
  3778. "overflow": 'hidden'
  3779. },
  3780. "onresize": function () { }
  3781. }, {
  3782. closecallback: function () { }
  3783. }, {
  3784. "style": {
  3785. "height": "36px"
  3786. }
  3787. }).form; //创建窗体
  3788. _taskbar = {
  3789. "id": str + _formdiv.id,
  3790. "style": {
  3791. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3792. },
  3793. "name": "思维导图",
  3794. "forms": _formdiv,
  3795. "click": function () {
  3796. U.MD.D.I.openApplication(str, obj, info);
  3797. }
  3798. }
  3799. break;
  3800. case "doc":
  3801. aTool = 6;
  3802. _iframe = $$("iframe", {
  3803. "frameborder": "no",
  3804. "border": "0",
  3805. "scrolling ": "no",
  3806. "style": {
  3807. "cssText": "border:0;width:100%;height:100%"
  3808. },
  3809. "src": "/Office/Word/WordEditArea.htm"
  3810. })
  3811. _box.appendChild(_iframe);
  3812. _box.appendChild(_jie);
  3813. _formdiv = new U.UF.UI.form(
  3814. "协同文档",
  3815. _box, {
  3816. "id": "doc" + cid + stage + task + tool,
  3817. "style": {
  3818. "width": "90%",
  3819. "height": "90%",
  3820. "overflow": 'hidden'
  3821. },
  3822. "onresize": function () { }
  3823. }, {
  3824. closecallback: function () { }
  3825. }, {
  3826. "style": {
  3827. "height": "36px"
  3828. }
  3829. }).form; //创建窗体
  3830. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3831. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3832. })
  3833. _taskbar = {
  3834. "id": str + _formdiv.id,
  3835. "style": {
  3836. "backgroundImage": "url(/img/icon/doc.png)"
  3837. },
  3838. "name": "协同文档",
  3839. "forms": _formdiv,
  3840. "click": function () {
  3841. U.MD.D.I.openApplication(str, obj, info);
  3842. }
  3843. }
  3844. break;
  3845. case "mindNetwork": //好友打开
  3846. aTool = 7;
  3847. _iframe = $$("iframe", {
  3848. "webkitallowfullscreen": "",
  3849. "mozallowfullscreen": "",
  3850. "allowfullscreen": "",
  3851. "frameborder": "no",
  3852. "border": "0",
  3853. "scrolling ": "no",
  3854. "style": {
  3855. "cssText": "border:0; width:100%; height:100%;"
  3856. },
  3857. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3858. })
  3859. _box.appendChild(_iframe);
  3860. _box.appendChild(_jie);
  3861. _formdiv = new U.UF.UI.form(
  3862. "思维网格",
  3863. _box, {
  3864. "id": "mindNetwork" + cid + stage + task + tool,
  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/mindNetwork.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 "courseDesign":
  3891. _iframe = $$("iframe", {
  3892. "webkitallowfullscreen": "",
  3893. "mozallowfullscreen": "",
  3894. "allowfullscreen": "",
  3895. "frameborder": "no",
  3896. "border": "0",
  3897. "scrolling ": "no",
  3898. "style": {
  3899. "cssText": "border:0; width:100%; height:100%;"
  3900. },
  3901. "src": "/course-design-vue"
  3902. })
  3903. _box.appendChild(_iframe);
  3904. _box.appendChild(_jie);
  3905. _formdiv = new U.UF.UI.form(
  3906. "项目设计",
  3907. _box, {
  3908. "id": "courseDesign" + cid + stage + task + tool,
  3909. "style": {
  3910. "width": "90%",
  3911. "height": "90%",
  3912. "overflow": 'hidden'
  3913. },
  3914. "onresize": function () { }
  3915. }, {
  3916. closecallback: function () { }
  3917. }, {
  3918. "style": {
  3919. "height": "36px"
  3920. }
  3921. }).form; //创建窗体
  3922. _taskbar = {
  3923. "id": str + _formdiv.id,
  3924. "style": {
  3925. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3926. },
  3927. "name": "项目设计",
  3928. "forms": _formdiv,
  3929. "click": function () {
  3930. U.MD.D.I.openApplication(str, obj, info);
  3931. }
  3932. }
  3933. break;
  3934. }
  3935. const script1 = document.createElement("script");
  3936. script1.type = "text/javascript";
  3937. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3938. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3939. const script2 = document.createElement("script");
  3940. script2.type = "text/javascript";
  3941. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3942. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3943. const script3 = document.createElement("script");
  3944. script3.type = "text/javascript";
  3945. script3.charset = "UTF-8";
  3946. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3947. const script4 = document.createElement("script");
  3948. script4.type = "text/javascript";
  3949. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3950. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3951. if (_iframe) {
  3952. if (str == 'doc') {
  3953. _iframe = _formdiv.querySelector('iframe')
  3954. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3955. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3956. _iframe.contentWindow.document.body.appendChild(script1);
  3957. _iframe.contentWindow.document.body.appendChild(script2);
  3958. // _iframe.contentWindow.document.body.appendChild(script3);
  3959. _iframe.contentWindow.document.body.appendChild(script4);
  3960. })
  3961. if (onloadListener) {
  3962. _iframe.contentDocument.location.reload()
  3963. } else {
  3964. _iframe.contentDocument.location.reload()
  3965. }
  3966. } else if (str == 'courseDesign') {
  3967. U.UF.DL.iframeLoad(_iframe, function () {
  3968. // _iframe.contentWindow.U.MD.O.W.load();
  3969. // _iframe.contentWindow.document.body.appendChild(script1);
  3970. _iframe.contentWindow.document.body.appendChild(script2);
  3971. _iframe.contentWindow.document.body.appendChild(script4);
  3972. })
  3973. } else if (str == 'mind') {
  3974. _iframe = _formdiv.querySelector('iframe')
  3975. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3976. //
  3977. _iframe.contentWindow.document.body.appendChild(script1);
  3978. _iframe.contentWindow.document.body.appendChild(script2);
  3979. _iframe.contentWindow.document.body.appendChild(script4);
  3980. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3981. })
  3982. if (onloadListener) {
  3983. _iframe.contentDocument.location.reload()
  3984. } else {
  3985. _iframe.contentDocument.location.reload()
  3986. }
  3987. } else if (str == 'whiteboard') {
  3988. _iframe = _formdiv.querySelector('iframe')
  3989. let onloadListener = _iframe.onload = () => {
  3990. _iframe.contentWindow.document.body.appendChild(script1);
  3991. _iframe.contentWindow.document.body.appendChild(script2);
  3992. _iframe.contentWindow.document.body.appendChild(script4);
  3993. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3994. };
  3995. if (onloadListener) {
  3996. _iframe.contentDocument.location.reload()
  3997. } else {
  3998. _iframe.contentDocument.location.reload()
  3999. }
  4000. } else {
  4001. _iframe.onload = () => {
  4002. _iframe.contentWindow.document.body.appendChild(script1);
  4003. _iframe.contentWindow.document.body.appendChild(script2);
  4004. // _iframe.contentWindow.document.body.appendChild(script3);
  4005. _iframe.contentWindow.document.body.appendChild(script4);
  4006. };
  4007. }
  4008. _jie.onclick = async () => {
  4009. let text = ''
  4010. if (aTool == 1) {
  4011. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4012. } else if (aTool == 6) {
  4013. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4014. } else if (aTool == 3) {
  4015. text = await U.MD.D.I.getEditorContent(_iframe);
  4016. }
  4017. _loading.style.display = 'flex'
  4018. console.log(_loading);
  4019. var _ajs = _iframe.contentWindow.document.createElement("script");
  4020. _ajs.type = "text/javascript";
  4021. _ajs.innerHTML =
  4022. // 'console.log(' + _loading + ');\n' +
  4023. 'var _js = document.createElement("script");\n' +
  4024. '_js.type="text/javascript";\n' +
  4025. '_js.charset="UTF-8";\n' +
  4026. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4027. "_js.onload = function(){\n" +
  4028. ' var a = document.getElementsByTagName("img")\n' +
  4029. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4030. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4031. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4032. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4033. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4034. "beforeUpload_shishi(file," +
  4035. "'" +
  4036. _userid +
  4037. "'" +
  4038. ", " +
  4039. "'" +
  4040. _cid +
  4041. "'" +
  4042. ", " +
  4043. "'" +
  4044. _stage +
  4045. "'" +
  4046. ", " +
  4047. "'" +
  4048. _task +
  4049. "'" +
  4050. ", " +
  4051. "'" +
  4052. _tool +
  4053. "'" +
  4054. ", " +
  4055. "'" +
  4056. (str + '_loadLi_Jie' + cid + stage + task + tool+_userid) +
  4057. "'" +
  4058. ", " +
  4059. "'" +
  4060. aTool +
  4061. "'" +
  4062. ", " +
  4063. "`" +
  4064. text +
  4065. "`" +
  4066. ")\n" +
  4067. " });\n" +
  4068. "}\n" +
  4069. "document.head.appendChild(_js);\n";
  4070. _iframe.contentWindow.document.head.appendChild(_ajs);
  4071. }
  4072. }
  4073. //U.MD.D.I.openClick(str);
  4074. //如果有任务栏信息
  4075. // if (_taskbar) {
  4076. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4077. // }
  4078. }
  4079. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4080. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4081. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4082. _userinfo = US.userInfo, //登录用户信息
  4083. _userid = US.userInfo.userid //登录用户id
  4084. let _iframe;
  4085. let _cid = cid,
  4086. _stage = stage,
  4087. _task = task,
  4088. _tool = tool;
  4089. var _jie = $$("div", {
  4090. "style": {
  4091. "position": "absolute",
  4092. "bottom": "50px",
  4093. "right": "50px",
  4094. "zIndex": "9999",
  4095. "backgroundColor": "#2268bc",
  4096. "color": "#fff",
  4097. "padding": "12px 20px",
  4098. "cursor": "pointer",
  4099. "borderRadius": "4px",
  4100. },
  4101. "innerHTML": "提交作业"
  4102. })
  4103. let aTool = ''
  4104. let _loading = document.createElement('div')
  4105. _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;"
  4106. // _loading.id = "";
  4107. let _lchild = document.createElement('div')
  4108. let _limg = document.createElement('img')
  4109. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4110. _limg.style = "width: 26px;margin-right: 10px;"
  4111. _lchild.appendChild(_limg)
  4112. let _lspan = document.createElement('span')
  4113. _lspan.innerHTML = "上传中..."
  4114. _lchild.appendChild(_lspan)
  4115. _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%);"
  4116. _loading.appendChild(_lchild)
  4117. var _box = $$('div', {
  4118. "style": {
  4119. "position": "relative",
  4120. "width": "100%",
  4121. "height": "100%",
  4122. },
  4123. })
  4124. _box.appendChild(_loading)
  4125. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool+_userid
  4126. switch (str) {
  4127. case "whiteboard":
  4128. aTool = 1;
  4129. _iframe = $$("iframe", {
  4130. "frameborder": "no",
  4131. "border": "0",
  4132. "scrolling ": "no",
  4133. "style": {
  4134. "cssText": "border:0;width:100%;height:100%"
  4135. },
  4136. "src": "https://iwb.cocorobo.cn/"
  4137. })
  4138. _box.appendChild(_iframe);
  4139. _box.appendChild(_jie);
  4140. _formdiv = new U.UF.UI.form(
  4141. "电子白板",
  4142. _box, {
  4143. "id": "whiteboard" + cid + stage + task + tool,
  4144. "style": {
  4145. "width": "90%",
  4146. "height": "90%",
  4147. "overflow": 'hidden'
  4148. },
  4149. "onresize": function () { }
  4150. }, {
  4151. closecallback: function () { }
  4152. }, {
  4153. "style": {
  4154. "height": "36px"
  4155. }
  4156. }).form; //创建窗体
  4157. _taskbar = {
  4158. "id": str + _formdiv.id,
  4159. "style": {
  4160. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4161. },
  4162. "name": "电子白板",
  4163. "forms": _formdiv,
  4164. "click": function () {
  4165. U.MD.D.I.openApplication(str, obj, info);
  4166. }
  4167. }
  4168. break;
  4169. case "mind":
  4170. aTool = 3;
  4171. _iframe = $$("iframe", {
  4172. "frameborder": "no",
  4173. "border": "0",
  4174. "scrolling ": "no",
  4175. "style": {
  4176. "cssText": "border:0;width:100%;height:100%"
  4177. },
  4178. "src": "/kityminder-editor/dist/index.html"
  4179. })
  4180. _box.appendChild(_iframe);
  4181. _box.appendChild(_jie);
  4182. _formdiv = new U.UF.UI.form(
  4183. "思维导图",
  4184. _box, { //"/jsmind/example/demo.html"
  4185. "id": "mind" + cid + stage + task + tool,
  4186. "style": {
  4187. "width": "90%",
  4188. "height": "90%",
  4189. "overflow": 'hidden'
  4190. },
  4191. "onresize": function () { }
  4192. }, {
  4193. closecallback: function () { }
  4194. }, {
  4195. "style": {
  4196. "height": "36px"
  4197. }
  4198. }).form; //创建窗体
  4199. _taskbar = {
  4200. "id": str + _formdiv.id,
  4201. "style": {
  4202. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4203. },
  4204. "name": "思维导图",
  4205. "forms": _formdiv,
  4206. "click": function () {
  4207. U.MD.D.I.openApplication(str, obj, info);
  4208. }
  4209. }
  4210. break;
  4211. case "MindMap":
  4212. aTool = 3;
  4213. _iframe = $$("iframe", {
  4214. "frameborder": "no",
  4215. "border": "0",
  4216. "scrolling ": "no",
  4217. "style": {
  4218. "cssText": "border:0;width:100%;height:100%"
  4219. },
  4220. "src": "//cloud.cocorobo.cn/mind/"
  4221. })
  4222. _box.appendChild(_iframe);
  4223. _box.appendChild(_jie);
  4224. _formdiv = new U.UF.UI.form(
  4225. "思维导图",
  4226. _box, { //"/jsmind/example/demo.html"
  4227. "id": "mind" + cid + stage + task + tool,
  4228. "style": {
  4229. "width": "90%",
  4230. "height": "90%",
  4231. "overflow": 'hidden'
  4232. },
  4233. "onresize": function () { }
  4234. }, {
  4235. closecallback: function () { }
  4236. }, {
  4237. "style": {
  4238. "height": "36px"
  4239. }
  4240. }).form; //创建窗体
  4241. _taskbar = {
  4242. "id": str + _formdiv.id,
  4243. "style": {
  4244. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4245. },
  4246. "name": "思维导图",
  4247. "forms": _formdiv,
  4248. "click": function () {
  4249. U.MD.D.I.openApplication(str, obj, info);
  4250. }
  4251. }
  4252. break;
  4253. case "doc":
  4254. aTool = 6;
  4255. _iframe = $$("iframe", {
  4256. "frameborder": "no",
  4257. "border": "0",
  4258. "scrolling ": "no",
  4259. "style": {
  4260. "cssText": "border:0;width:100%;height:100%"
  4261. },
  4262. "src": "/Office/Word/WordEditArea.htm"
  4263. })
  4264. _box.appendChild(_iframe);
  4265. _box.appendChild(_jie);
  4266. _formdiv = new U.UF.UI.form(
  4267. "协同文档",
  4268. _box, {
  4269. "id": "doc" + cid + stage + task + tool,
  4270. "style": {
  4271. "width": "90%",
  4272. "height": "90%",
  4273. "overflow": 'hidden'
  4274. },
  4275. "onresize": function () { }
  4276. }, {
  4277. closecallback: function () { }
  4278. }, {
  4279. "style": {
  4280. "height": "36px"
  4281. }
  4282. }).form; //创建窗体
  4283. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4284. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4285. })
  4286. _taskbar = {
  4287. "id": str + _formdiv.id,
  4288. "style": {
  4289. "backgroundImage": "url(/img/icon/doc.png)"
  4290. },
  4291. "name": "协同文档",
  4292. "forms": _formdiv,
  4293. "click": function () {
  4294. U.MD.D.I.openApplication(str, obj, info);
  4295. }
  4296. }
  4297. break;
  4298. case "mindNetwork": //好友打开
  4299. aTool = 7;
  4300. _iframe = $$("iframe", {
  4301. "webkitallowfullscreen": "",
  4302. "mozallowfullscreen": "",
  4303. "allowfullscreen": "",
  4304. "frameborder": "no",
  4305. "border": "0",
  4306. "scrolling ": "no",
  4307. "style": {
  4308. "cssText": "border:0; width:100%; height:100%;"
  4309. },
  4310. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4311. })
  4312. _box.appendChild(_iframe);
  4313. _box.appendChild(_jie);
  4314. _formdiv = new U.UF.UI.form(
  4315. "思维网格",
  4316. _box, {
  4317. "id": "mindNetwork" + cid + stage + task + tool,
  4318. "style": {
  4319. "width": "90%",
  4320. "height": "90%",
  4321. "overflow": 'hidden'
  4322. },
  4323. "onresize": function () { }
  4324. }, {
  4325. closecallback: function () { }
  4326. }, {
  4327. "style": {
  4328. "height": "36px"
  4329. }
  4330. }).form; //创建窗体
  4331. _taskbar = {
  4332. "id": str + _formdiv.id,
  4333. "style": {
  4334. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4335. },
  4336. "name": "思维网格",
  4337. "forms": _formdiv,
  4338. "click": function () {
  4339. U.MD.D.I.openApplication(str, obj, info);
  4340. }
  4341. }
  4342. break;
  4343. case "courseDesign":
  4344. _iframe = $$("iframe", {
  4345. "webkitallowfullscreen": "",
  4346. "mozallowfullscreen": "",
  4347. "allowfullscreen": "",
  4348. "frameborder": "no",
  4349. "border": "0",
  4350. "scrolling ": "no",
  4351. "style": {
  4352. "cssText": "border:0; width:100%; height:100%;"
  4353. },
  4354. "src": "/course-design-vue"
  4355. })
  4356. _box.appendChild(_iframe);
  4357. _box.appendChild(_jie);
  4358. _formdiv = new U.UF.UI.form(
  4359. "项目设计",
  4360. _box, {
  4361. "id": "courseDesign" + cid + stage + task + tool,
  4362. "style": {
  4363. "width": "90%",
  4364. "height": "90%",
  4365. "overflow": 'hidden'
  4366. },
  4367. "onresize": function () { }
  4368. }, {
  4369. closecallback: function () { }
  4370. }, {
  4371. "style": {
  4372. "height": "36px"
  4373. }
  4374. }).form; //创建窗体
  4375. _taskbar = {
  4376. "id": str + _formdiv.id,
  4377. "style": {
  4378. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4379. },
  4380. "name": "项目设计",
  4381. "forms": _formdiv,
  4382. "click": function () {
  4383. U.MD.D.I.openApplication(str, obj, info);
  4384. }
  4385. }
  4386. break;
  4387. }
  4388. const script1 = document.createElement("script");
  4389. script1.type = "text/javascript";
  4390. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4391. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4392. const script2 = document.createElement("script");
  4393. script2.type = "text/javascript";
  4394. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4395. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4396. const script3 = document.createElement("script");
  4397. script3.type = "text/javascript";
  4398. script3.charset = "UTF-8";
  4399. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4400. const script4 = document.createElement("script");
  4401. script4.type = "text/javascript";
  4402. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4403. script4.src = window.origin + "/js/Common/jietu2E.js";
  4404. if (_iframe) {
  4405. if (str == 'doc') {
  4406. _iframe = _formdiv.querySelector('iframe')
  4407. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4408. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4409. _iframe.contentWindow.document.body.appendChild(script1);
  4410. _iframe.contentWindow.document.body.appendChild(script2);
  4411. // _iframe.contentWindow.document.body.appendChild(script3);
  4412. _iframe.contentWindow.document.body.appendChild(script4);
  4413. })
  4414. if (onloadListener) {
  4415. _iframe.contentDocument.location.reload()
  4416. } else {
  4417. _iframe.contentDocument.location.reload()
  4418. }
  4419. } else if (str == 'courseDesign') {
  4420. U.UF.DL.iframeLoad(_iframe, function () {
  4421. // _iframe.contentWindow.U.MD.O.W.load();
  4422. // _iframe.contentWindow.document.body.appendChild(script1);
  4423. _iframe.contentWindow.document.body.appendChild(script2);
  4424. _iframe.contentWindow.document.body.appendChild(script4);
  4425. })
  4426. } else if (str == 'mind') {
  4427. _iframe = _formdiv.querySelector('iframe')
  4428. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4429. //
  4430. _iframe.contentWindow.document.body.appendChild(script1);
  4431. _iframe.contentWindow.document.body.appendChild(script2);
  4432. _iframe.contentWindow.document.body.appendChild(script4);
  4433. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4434. })
  4435. if (onloadListener) {
  4436. _iframe.contentDocument.location.reload()
  4437. } else {
  4438. _iframe.contentDocument.location.reload()
  4439. }
  4440. } else if (str == 'whiteboard') {
  4441. _iframe = _formdiv.querySelector('iframe')
  4442. let onloadListener = _iframe.onload = () => {
  4443. _iframe.contentWindow.document.body.appendChild(script1);
  4444. _iframe.contentWindow.document.body.appendChild(script2);
  4445. _iframe.contentWindow.document.body.appendChild(script4);
  4446. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4447. };
  4448. if (onloadListener) {
  4449. _iframe.contentDocument.location.reload()
  4450. } else {
  4451. _iframe.contentDocument.location.reload()
  4452. }
  4453. } else {
  4454. _iframe.onload = () => {
  4455. _iframe.contentWindow.document.body.appendChild(script1);
  4456. _iframe.contentWindow.document.body.appendChild(script2);
  4457. // _iframe.contentWindow.document.body.appendChild(script3);
  4458. _iframe.contentWindow.document.body.appendChild(script4);
  4459. };
  4460. }
  4461. _jie.onclick = async () => {
  4462. let text = ''
  4463. if (aTool == 1) {
  4464. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4465. } else if (aTool == 6) {
  4466. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4467. } else if (aTool == 3) {
  4468. text = await U.MD.D.I.getEditorContent(_iframe);
  4469. }
  4470. _loading.style.display = 'flex'
  4471. console.log(_loading);
  4472. var _ajs = _iframe.contentWindow.document.createElement("script");
  4473. _ajs.type = "text/javascript";
  4474. _ajs.innerHTML =
  4475. // 'console.log(' + _loading + ');\n' +
  4476. 'var _js = document.createElement("script");\n' +
  4477. '_js.type="text/javascript";\n' +
  4478. '_js.charset="UTF-8";\n' +
  4479. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4480. "_js.onload = function(){\n" +
  4481. ' var a = document.getElementsByTagName("img")\n' +
  4482. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4483. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4484. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4485. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4486. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4487. "beforeUpload_shishi(file," +
  4488. "'" +
  4489. _userid +
  4490. "'" +
  4491. ", " +
  4492. "'" +
  4493. _cid +
  4494. "'" +
  4495. ", " +
  4496. "'" +
  4497. _stage +
  4498. "'" +
  4499. ", " +
  4500. "'" +
  4501. _task +
  4502. "'" +
  4503. ", " +
  4504. "'" +
  4505. _tool +
  4506. "'" +
  4507. ", " +
  4508. "'" +
  4509. (str + '_loadLi_JieE' + cid + stage + task + tool+_userid) +
  4510. "'" +
  4511. ", " +
  4512. "'" +
  4513. aTool +
  4514. "'" +
  4515. ", " +
  4516. "`" +
  4517. text +
  4518. "`" +
  4519. ")\n" +
  4520. " });\n" +
  4521. "}\n" +
  4522. "document.head.appendChild(_js);\n";
  4523. _iframe.contentWindow.document.head.appendChild(_ajs);
  4524. }
  4525. }
  4526. //U.MD.D.I.openClick(str);
  4527. //如果有任务栏信息
  4528. // if (_taskbar) {
  4529. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4530. // }
  4531. }
  4532. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4533. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4534. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4535. _userid = student.userid, //登录用户id
  4536. _username = student.student //用户名字
  4537. let _iframe;
  4538. let _cid = cid,
  4539. _stage = stage,
  4540. _task = task,
  4541. _tool = tool;
  4542. var _jie = $$("div", {
  4543. "style": {
  4544. "position": "absolute",
  4545. "bottom": "50px",
  4546. "right": "50px",
  4547. "zIndex": "9999",
  4548. "backgroundColor": "#2268bc",
  4549. "color": "#fff",
  4550. "padding": "12px 20px",
  4551. "cursor": "pointer",
  4552. "borderRadius": "4px",
  4553. },
  4554. "innerHTML": "提交作业"
  4555. })
  4556. let aTool = ''
  4557. let _loading = document.createElement('div')
  4558. _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;"
  4559. // _loading.id = "";
  4560. let _lchild = document.createElement('div')
  4561. let _limg = document.createElement('img')
  4562. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4563. _limg.style = "width: 26px;margin-right: 10px;"
  4564. _lchild.appendChild(_limg)
  4565. let _lspan = document.createElement('span')
  4566. _lspan.innerHTML = "上传中..."
  4567. _lchild.appendChild(_lspan)
  4568. _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%);"
  4569. _loading.appendChild(_lchild)
  4570. var _box = $$('div', {
  4571. "style": {
  4572. "position": "relative",
  4573. "width": "100%",
  4574. "height": "100%",
  4575. },
  4576. })
  4577. _box.appendChild(_loading)
  4578. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid
  4579. switch (str) {
  4580. case "whiteboard":
  4581. aTool = 1;
  4582. _iframe = $$("iframe", {
  4583. "frameborder": "no",
  4584. "border": "0",
  4585. "scrolling ": "no",
  4586. "style": {
  4587. "cssText": "border:0;width:100%;height:100%"
  4588. },
  4589. "src": "https://iwb.cocorobo.cn/"
  4590. })
  4591. _box.appendChild(_iframe);
  4592. _box.appendChild(_jie);
  4593. _formdiv = new U.UF.UI.form(
  4594. "电子白板-" + _username,
  4595. _box, {
  4596. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4597. "style": {
  4598. "width": "90%",
  4599. "height": "90%",
  4600. "overflow": 'hidden'
  4601. },
  4602. "onresize": function () { }
  4603. }, {
  4604. closecallback: function () { }
  4605. }, {
  4606. "style": {
  4607. "height": "36px"
  4608. }
  4609. }).form; //创建窗体
  4610. _taskbar = {
  4611. "id": str + _formdiv.id,
  4612. "style": {
  4613. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4614. },
  4615. "name": "电子白板",
  4616. "forms": _formdiv,
  4617. "click": function () {
  4618. U.MD.D.I.openApplication(str, obj, info);
  4619. }
  4620. }
  4621. break;
  4622. case "mind":
  4623. aTool = 3;
  4624. _iframe = $$("iframe", {
  4625. "frameborder": "no",
  4626. "border": "0",
  4627. "scrolling ": "no",
  4628. "style": {
  4629. "cssText": "border:0;width:100%;height:100%"
  4630. },
  4631. "src": "/kityminder-editor/dist/index.html"
  4632. })
  4633. _box.appendChild(_iframe);
  4634. _box.appendChild(_jie);
  4635. _formdiv = new U.UF.UI.form(
  4636. "思维导图-" + _username,
  4637. _box, { //"/jsmind/example/demo.html"
  4638. "id": "mind" + cid + stage + task + tool + _userid,
  4639. "style": {
  4640. "width": "90%",
  4641. "height": "90%",
  4642. "overflow": 'hidden'
  4643. },
  4644. "onresize": function () { }
  4645. }, {
  4646. closecallback: function () { }
  4647. }, {
  4648. "style": {
  4649. "height": "36px"
  4650. }
  4651. }).form; //创建窗体
  4652. _taskbar = {
  4653. "id": str + _formdiv.id,
  4654. "style": {
  4655. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4656. },
  4657. "name": "思维导图",
  4658. "forms": _formdiv,
  4659. "click": function () {
  4660. U.MD.D.I.openApplication(str, obj, info);
  4661. }
  4662. }
  4663. break;
  4664. case "MindMap":
  4665. aTool = 3;
  4666. _iframe = $$("iframe", {
  4667. "frameborder": "no",
  4668. "border": "0",
  4669. "scrolling ": "no",
  4670. "style": {
  4671. "cssText": "border:0;width:100%;height:100%"
  4672. },
  4673. "src": "//cloud.cocorobo.cn/mind/"
  4674. })
  4675. _box.appendChild(_iframe);
  4676. _box.appendChild(_jie);
  4677. _formdiv = new U.UF.UI.form(
  4678. "思维导图-" + _username,
  4679. _box, { //"/jsmind/example/demo.html"
  4680. "id": "mind" + cid + stage + task + tool + _userid,
  4681. "style": {
  4682. "width": "90%",
  4683. "height": "90%",
  4684. "overflow": 'hidden'
  4685. },
  4686. "onresize": function () { }
  4687. }, {
  4688. closecallback: function () { }
  4689. }, {
  4690. "style": {
  4691. "height": "36px"
  4692. }
  4693. }).form; //创建窗体
  4694. _taskbar = {
  4695. "id": str + _formdiv.id,
  4696. "style": {
  4697. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4698. },
  4699. "name": "思维导图",
  4700. "forms": _formdiv,
  4701. "click": function () {
  4702. U.MD.D.I.openApplication(str, obj, info);
  4703. }
  4704. }
  4705. break;
  4706. case "doc":
  4707. aTool = 6;
  4708. _iframe = $$("iframe", {
  4709. "frameborder": "no",
  4710. "border": "0",
  4711. "scrolling ": "no",
  4712. "style": {
  4713. "cssText": "border:0;width:100%;height:100%"
  4714. },
  4715. "src": "/Office/Word/WordEditArea.htm"
  4716. })
  4717. _box.appendChild(_iframe);
  4718. _box.appendChild(_jie);
  4719. _formdiv = new U.UF.UI.form(
  4720. "协同文档-" + _username,
  4721. _box, {
  4722. "id": "doc" + cid + stage + task + tool + _userid,
  4723. "style": {
  4724. "width": "90%",
  4725. "height": "90%",
  4726. "overflow": 'hidden'
  4727. },
  4728. "onresize": function () { }
  4729. }, {
  4730. closecallback: function () { }
  4731. }, {
  4732. "style": {
  4733. "height": "36px"
  4734. }
  4735. }).form; //创建窗体
  4736. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4737. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4738. })
  4739. _taskbar = {
  4740. "id": str + _formdiv.id,
  4741. "style": {
  4742. "backgroundImage": "url(/img/icon/doc.png)"
  4743. },
  4744. "name": "协同文档",
  4745. "forms": _formdiv,
  4746. "click": function () {
  4747. U.MD.D.I.openApplication(str, obj, info);
  4748. }
  4749. }
  4750. break;
  4751. case "mindNetwork": //好友打开
  4752. aTool = 7;
  4753. _iframe = $$("iframe", {
  4754. "webkitallowfullscreen": "",
  4755. "mozallowfullscreen": "",
  4756. "allowfullscreen": "",
  4757. "frameborder": "no",
  4758. "border": "0",
  4759. "scrolling ": "no",
  4760. "style": {
  4761. "cssText": "border:0; width:100%; height:100%;"
  4762. },
  4763. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4764. })
  4765. _box.appendChild(_iframe);
  4766. _box.appendChild(_jie);
  4767. _formdiv = new U.UF.UI.form(
  4768. "思维网格-" + _username,
  4769. _box, {
  4770. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4771. "style": {
  4772. "width": "90%",
  4773. "height": "90%",
  4774. "overflow": 'hidden'
  4775. },
  4776. "onresize": function () { }
  4777. }, {
  4778. closecallback: function () { }
  4779. }, {
  4780. "style": {
  4781. "height": "36px"
  4782. }
  4783. }).form; //创建窗体
  4784. _taskbar = {
  4785. "id": str + _formdiv.id,
  4786. "style": {
  4787. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4788. },
  4789. "name": "思维网格",
  4790. "forms": _formdiv,
  4791. "click": function () {
  4792. U.MD.D.I.openApplication(str, obj, info);
  4793. }
  4794. }
  4795. break;
  4796. case "courseDesign":
  4797. _iframe = $$("iframe", {
  4798. "webkitallowfullscreen": "",
  4799. "mozallowfullscreen": "",
  4800. "allowfullscreen": "",
  4801. "frameborder": "no",
  4802. "border": "0",
  4803. "scrolling ": "no",
  4804. "style": {
  4805. "cssText": "border:0; width:100%; height:100%;"
  4806. },
  4807. "src": "/course-design-vue"
  4808. })
  4809. _box.appendChild(_iframe);
  4810. _box.appendChild(_jie);
  4811. _formdiv = new U.UF.UI.form(
  4812. "项目设计-" + _username,
  4813. _box, {
  4814. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4815. "style": {
  4816. "width": "90%",
  4817. "height": "90%",
  4818. "overflow": 'hidden'
  4819. },
  4820. "onresize": function () { }
  4821. }, {
  4822. closecallback: function () { }
  4823. }, {
  4824. "style": {
  4825. "height": "36px"
  4826. }
  4827. }).form; //创建窗体
  4828. _taskbar = {
  4829. "id": str + _formdiv.id,
  4830. "style": {
  4831. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4832. },
  4833. "name": "项目设计",
  4834. "forms": _formdiv,
  4835. "click": function () {
  4836. U.MD.D.I.openApplication(str, obj, info);
  4837. }
  4838. }
  4839. break;
  4840. }
  4841. const script1 = document.createElement("script");
  4842. script1.type = "text/javascript";
  4843. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4844. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4845. const script2 = document.createElement("script");
  4846. script2.type = "text/javascript";
  4847. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4848. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4849. const script3 = document.createElement("script");
  4850. script3.type = "text/javascript";
  4851. script3.charset = "UTF-8";
  4852. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4853. const script4 = document.createElement("script");
  4854. script4.type = "text/javascript";
  4855. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4856. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4857. if (_iframe) {
  4858. if (str == 'doc') {
  4859. _iframe = _formdiv.querySelector('iframe')
  4860. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4861. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4862. _iframe.contentWindow.document.body.appendChild(script1);
  4863. _iframe.contentWindow.document.body.appendChild(script2);
  4864. // _iframe.contentWindow.document.body.appendChild(script3);
  4865. _iframe.contentWindow.document.body.appendChild(script4);
  4866. })
  4867. if (onloadListener) {
  4868. _iframe.contentDocument.location.reload()
  4869. } else {
  4870. _iframe.contentDocument.location.reload()
  4871. }
  4872. } else if (str == 'courseDesign') {
  4873. U.UF.DL.iframeLoad(_iframe, function () {
  4874. // _iframe.contentWindow.U.MD.O.W.load();
  4875. // _iframe.contentWindow.document.body.appendChild(script1);
  4876. _iframe.contentWindow.document.body.appendChild(script2);
  4877. _iframe.contentWindow.document.body.appendChild(script4);
  4878. })
  4879. } else if (str == 'mind') {
  4880. _iframe = _formdiv.querySelector('iframe')
  4881. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4882. //
  4883. _iframe.contentWindow.document.body.appendChild(script1);
  4884. _iframe.contentWindow.document.body.appendChild(script2);
  4885. _iframe.contentWindow.document.body.appendChild(script4);
  4886. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4887. })
  4888. if (onloadListener) {
  4889. _iframe.contentDocument.location.reload()
  4890. } else {
  4891. _iframe.contentDocument.location.reload()
  4892. }
  4893. } else if (str == 'whiteboard') {
  4894. _iframe = _formdiv.querySelector('iframe')
  4895. let onloadListener = _iframe.onload = () => {
  4896. _iframe.contentWindow.document.body.appendChild(script1);
  4897. _iframe.contentWindow.document.body.appendChild(script2);
  4898. _iframe.contentWindow.document.body.appendChild(script4);
  4899. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4900. };
  4901. if (onloadListener) {
  4902. _iframe.contentDocument.location.reload()
  4903. } else {
  4904. _iframe.contentDocument.location.reload()
  4905. }
  4906. } else {
  4907. _iframe.onload = () => {
  4908. _iframe.contentWindow.document.body.appendChild(script1);
  4909. _iframe.contentWindow.document.body.appendChild(script2);
  4910. // _iframe.contentWindow.document.body.appendChild(script3);
  4911. _iframe.contentWindow.document.body.appendChild(script4);
  4912. };
  4913. }
  4914. _jie.onclick = async () => {
  4915. let text = ''
  4916. if (aTool == 1) {
  4917. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4918. } else if (aTool == 6) {
  4919. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4920. } else if (aTool == 3) {
  4921. text = await U.MD.D.I.getEditorContent(_iframe);
  4922. }
  4923. _loading.style.display = 'flex'
  4924. console.log(_loading);
  4925. var _ajs = _iframe.contentWindow.document.createElement("script");
  4926. _ajs.type = "text/javascript";
  4927. _ajs.innerHTML =
  4928. // 'console.log(' + _loading + ');\n' +
  4929. 'var _js = document.createElement("script");\n' +
  4930. '_js.type="text/javascript";\n' +
  4931. '_js.charset="UTF-8";\n' +
  4932. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4933. "_js.onload = function(){\n" +
  4934. ' var a = document.getElementsByTagName("img")\n' +
  4935. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4936. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4937. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4938. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4939. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4940. "beforeUpload_shishi(file," +
  4941. "'" +
  4942. _userid +
  4943. "'" +
  4944. ", " +
  4945. "'" +
  4946. _cid +
  4947. "'" +
  4948. ", " +
  4949. "'" +
  4950. _stage +
  4951. "'" +
  4952. ", " +
  4953. "'" +
  4954. _task +
  4955. "'" +
  4956. ", " +
  4957. "'" +
  4958. _tool +
  4959. "'" +
  4960. ", " +
  4961. "'" +
  4962. (str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid) +
  4963. "'" +
  4964. ", " +
  4965. "'" +
  4966. aTool +
  4967. "'" +
  4968. ", " +
  4969. "`" +
  4970. text +
  4971. "`" +
  4972. ")\n" +
  4973. " });\n" +
  4974. "}\n" +
  4975. "document.head.appendChild(_js);\n";
  4976. _iframe.contentWindow.document.head.appendChild(_ajs);
  4977. }
  4978. }
  4979. }
  4980. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  4981. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4982. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4983. _userid = student.userid, //登录用户id
  4984. _username = student.student //用户名字
  4985. let _iframe;
  4986. let _cid = cid,
  4987. _stage = stage,
  4988. _task = task,
  4989. _tool = tool;
  4990. var _jie = $$("div", {
  4991. "style": {
  4992. "position": "absolute",
  4993. "bottom": "50px",
  4994. "right": "50px",
  4995. "zIndex": "9999",
  4996. "backgroundColor": "#2268bc",
  4997. "color": "#fff",
  4998. "padding": "12px 20px",
  4999. "cursor": "pointer",
  5000. "borderRadius": "4px",
  5001. },
  5002. "innerHTML": "提交作业"
  5003. })
  5004. let aTool = ''
  5005. let _loading = document.createElement('div')
  5006. _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;"
  5007. // _loading.id = "";
  5008. let _lchild = document.createElement('div')
  5009. let _limg = document.createElement('img')
  5010. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5011. _limg.style = "width: 26px;margin-right: 10px;"
  5012. _lchild.appendChild(_limg)
  5013. let _lspan = document.createElement('span')
  5014. _lspan.innerHTML = "上传中..."
  5015. _lchild.appendChild(_lspan)
  5016. _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%);"
  5017. _loading.appendChild(_lchild)
  5018. var _box = $$('div', {
  5019. "style": {
  5020. "position": "relative",
  5021. "width": "100%",
  5022. "height": "100%",
  5023. },
  5024. })
  5025. _box.appendChild(_loading)
  5026. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5027. switch (str) {
  5028. case "whiteboard":
  5029. aTool = 1;
  5030. _iframe = $$("iframe", {
  5031. "frameborder": "no",
  5032. "border": "0",
  5033. "scrolling ": "no",
  5034. "style": {
  5035. "cssText": "border:0;width:100%;height:100%"
  5036. },
  5037. "src": "https://iwb.cocorobo.cn/"
  5038. })
  5039. _box.appendChild(_iframe);
  5040. _box.appendChild(_jie);
  5041. _formdiv = new U.UF.UI.form(
  5042. "电子白板-" + _username,
  5043. _box, {
  5044. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5045. "style": {
  5046. "width": "90%",
  5047. "height": "90%",
  5048. "overflow": 'hidden'
  5049. },
  5050. "onresize": function () { }
  5051. }, {
  5052. closecallback: function () { }
  5053. }, {
  5054. "style": {
  5055. "height": "36px"
  5056. }
  5057. }).form; //创建窗体
  5058. _taskbar = {
  5059. "id": str + _formdiv.id,
  5060. "style": {
  5061. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5062. },
  5063. "name": "电子白板",
  5064. "forms": _formdiv,
  5065. "click": function () {
  5066. U.MD.D.I.openApplication(str, obj, info);
  5067. }
  5068. }
  5069. break;
  5070. case "mind":
  5071. aTool = 3;
  5072. _iframe = $$("iframe", {
  5073. "frameborder": "no",
  5074. "border": "0",
  5075. "scrolling ": "no",
  5076. "style": {
  5077. "cssText": "border:0;width:100%;height:100%"
  5078. },
  5079. "src": "/kityminder-editor/dist/index.html"
  5080. })
  5081. _box.appendChild(_iframe);
  5082. _box.appendChild(_jie);
  5083. _formdiv = new U.UF.UI.form(
  5084. "思维导图-" + _username,
  5085. _box, { //"/jsmind/example/demo.html"
  5086. "id": "mind" + cid + stage + task + tool + _userid,
  5087. "style": {
  5088. "width": "90%",
  5089. "height": "90%",
  5090. "overflow": 'hidden'
  5091. },
  5092. "onresize": function () { }
  5093. }, {
  5094. closecallback: function () { }
  5095. }, {
  5096. "style": {
  5097. "height": "36px"
  5098. }
  5099. }).form; //创建窗体
  5100. _taskbar = {
  5101. "id": str + _formdiv.id,
  5102. "style": {
  5103. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5104. },
  5105. "name": "思维导图",
  5106. "forms": _formdiv,
  5107. "click": function () {
  5108. U.MD.D.I.openApplication(str, obj, info);
  5109. }
  5110. }
  5111. break;
  5112. case "MindMap":
  5113. aTool = 3;
  5114. _iframe = $$("iframe", {
  5115. "frameborder": "no",
  5116. "border": "0",
  5117. "scrolling ": "no",
  5118. "style": {
  5119. "cssText": "border:0;width:100%;height:100%"
  5120. },
  5121. "src": "//cloud.cocorobo.cn/mind/"
  5122. })
  5123. _box.appendChild(_iframe);
  5124. _box.appendChild(_jie);
  5125. _formdiv = new U.UF.UI.form(
  5126. "思维导图-" + _username,
  5127. _box, { //"/jsmind/example/demo.html"
  5128. "id": "mind" + cid + stage + task + tool + _userid,
  5129. "style": {
  5130. "width": "90%",
  5131. "height": "90%",
  5132. "overflow": 'hidden'
  5133. },
  5134. "onresize": function () { }
  5135. }, {
  5136. closecallback: function () { }
  5137. }, {
  5138. "style": {
  5139. "height": "36px"
  5140. }
  5141. }).form; //创建窗体
  5142. _taskbar = {
  5143. "id": str + _formdiv.id,
  5144. "style": {
  5145. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5146. },
  5147. "name": "思维导图",
  5148. "forms": _formdiv,
  5149. "click": function () {
  5150. U.MD.D.I.openApplication(str, obj, info);
  5151. }
  5152. }
  5153. break;
  5154. case "doc":
  5155. aTool = 6;
  5156. _iframe = $$("iframe", {
  5157. "frameborder": "no",
  5158. "border": "0",
  5159. "scrolling ": "no",
  5160. "style": {
  5161. "cssText": "border:0;width:100%;height:100%"
  5162. },
  5163. "src": "/Office/Word/WordEditArea.htm"
  5164. })
  5165. _box.appendChild(_iframe);
  5166. _box.appendChild(_jie);
  5167. _formdiv = new U.UF.UI.form(
  5168. "协同文档-" + _username,
  5169. _box, {
  5170. "id": "doc" + cid + stage + task + tool + _userid,
  5171. "style": {
  5172. "width": "90%",
  5173. "height": "90%",
  5174. "overflow": 'hidden'
  5175. },
  5176. "onresize": function () { }
  5177. }, {
  5178. closecallback: function () { }
  5179. }, {
  5180. "style": {
  5181. "height": "36px"
  5182. }
  5183. }).form; //创建窗体
  5184. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5185. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5186. })
  5187. _taskbar = {
  5188. "id": str + _formdiv.id,
  5189. "style": {
  5190. "backgroundImage": "url(/img/icon/doc.png)"
  5191. },
  5192. "name": "协同文档",
  5193. "forms": _formdiv,
  5194. "click": function () {
  5195. U.MD.D.I.openApplication(str, obj, info);
  5196. }
  5197. }
  5198. break;
  5199. case "mindNetwork": //好友打开
  5200. aTool = 7;
  5201. _iframe = $$("iframe", {
  5202. "webkitallowfullscreen": "",
  5203. "mozallowfullscreen": "",
  5204. "allowfullscreen": "",
  5205. "frameborder": "no",
  5206. "border": "0",
  5207. "scrolling ": "no",
  5208. "style": {
  5209. "cssText": "border:0; width:100%; height:100%;"
  5210. },
  5211. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5212. })
  5213. _box.appendChild(_iframe);
  5214. _box.appendChild(_jie);
  5215. _formdiv = new U.UF.UI.form(
  5216. "思维网格-" + _username,
  5217. _box, {
  5218. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5219. "style": {
  5220. "width": "90%",
  5221. "height": "90%",
  5222. "overflow": 'hidden'
  5223. },
  5224. "onresize": function () { }
  5225. }, {
  5226. closecallback: function () { }
  5227. }, {
  5228. "style": {
  5229. "height": "36px"
  5230. }
  5231. }).form; //创建窗体
  5232. _taskbar = {
  5233. "id": str + _formdiv.id,
  5234. "style": {
  5235. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5236. },
  5237. "name": "思维网格",
  5238. "forms": _formdiv,
  5239. "click": function () {
  5240. U.MD.D.I.openApplication(str, obj, info);
  5241. }
  5242. }
  5243. break;
  5244. case "courseDesign":
  5245. _iframe = $$("iframe", {
  5246. "webkitallowfullscreen": "",
  5247. "mozallowfullscreen": "",
  5248. "allowfullscreen": "",
  5249. "frameborder": "no",
  5250. "border": "0",
  5251. "scrolling ": "no",
  5252. "style": {
  5253. "cssText": "border:0; width:100%; height:100%;"
  5254. },
  5255. "src": "/course-design-vue"
  5256. })
  5257. _box.appendChild(_iframe);
  5258. _box.appendChild(_jie);
  5259. _formdiv = new U.UF.UI.form(
  5260. "项目设计-" + _username,
  5261. _box, {
  5262. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5263. "style": {
  5264. "width": "90%",
  5265. "height": "90%",
  5266. "overflow": 'hidden'
  5267. },
  5268. "onresize": function () { }
  5269. }, {
  5270. closecallback: function () { }
  5271. }, {
  5272. "style": {
  5273. "height": "36px"
  5274. }
  5275. }).form; //创建窗体
  5276. _taskbar = {
  5277. "id": str + _formdiv.id,
  5278. "style": {
  5279. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5280. },
  5281. "name": "项目设计",
  5282. "forms": _formdiv,
  5283. "click": function () {
  5284. U.MD.D.I.openApplication(str, obj, info);
  5285. }
  5286. }
  5287. break;
  5288. }
  5289. const script1 = document.createElement("script");
  5290. script1.type = "text/javascript";
  5291. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5292. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5293. const script2 = document.createElement("script");
  5294. script2.type = "text/javascript";
  5295. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5296. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5297. const script3 = document.createElement("script");
  5298. script3.type = "text/javascript";
  5299. script3.charset = "UTF-8";
  5300. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5301. const script4 = document.createElement("script");
  5302. script4.type = "text/javascript";
  5303. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5304. script4.src = window.origin + "/js/Common/jietu2E.js";
  5305. if (_iframe) {
  5306. if (str == 'doc') {
  5307. _iframe = _formdiv.querySelector('iframe')
  5308. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5309. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5310. _iframe.contentWindow.document.body.appendChild(script1);
  5311. _iframe.contentWindow.document.body.appendChild(script2);
  5312. // _iframe.contentWindow.document.body.appendChild(script3);
  5313. _iframe.contentWindow.document.body.appendChild(script4);
  5314. })
  5315. if (onloadListener) {
  5316. _iframe.contentDocument.location.reload()
  5317. } else {
  5318. _iframe.contentDocument.location.reload()
  5319. }
  5320. } else if (str == 'courseDesign') {
  5321. U.UF.DL.iframeLoad(_iframe, function () {
  5322. // _iframe.contentWindow.U.MD.O.W.load();
  5323. // _iframe.contentWindow.document.body.appendChild(script1);
  5324. _iframe.contentWindow.document.body.appendChild(script2);
  5325. _iframe.contentWindow.document.body.appendChild(script4);
  5326. })
  5327. } else if (str == 'mind') {
  5328. _iframe = _formdiv.querySelector('iframe')
  5329. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5330. //
  5331. _iframe.contentWindow.document.body.appendChild(script1);
  5332. _iframe.contentWindow.document.body.appendChild(script2);
  5333. _iframe.contentWindow.document.body.appendChild(script4);
  5334. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5335. })
  5336. if (onloadListener) {
  5337. _iframe.contentDocument.location.reload()
  5338. } else {
  5339. _iframe.contentDocument.location.reload()
  5340. }
  5341. } else if (str == 'whiteboard') {
  5342. _iframe = _formdiv.querySelector('iframe')
  5343. let onloadListener = _iframe.onload = () => {
  5344. _iframe.contentWindow.document.body.appendChild(script1);
  5345. _iframe.contentWindow.document.body.appendChild(script2);
  5346. _iframe.contentWindow.document.body.appendChild(script4);
  5347. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5348. };
  5349. if (onloadListener) {
  5350. _iframe.contentDocument.location.reload()
  5351. } else {
  5352. _iframe.contentDocument.location.reload()
  5353. }
  5354. } else {
  5355. _iframe.onload = () => {
  5356. _iframe.contentWindow.document.body.appendChild(script1);
  5357. _iframe.contentWindow.document.body.appendChild(script2);
  5358. // _iframe.contentWindow.document.body.appendChild(script3);
  5359. _iframe.contentWindow.document.body.appendChild(script4);
  5360. };
  5361. }
  5362. _jie.onclick = async () => {
  5363. let text = ''
  5364. if (aTool == 1) {
  5365. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5366. } else if (aTool == 6) {
  5367. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5368. } else if (aTool == 3) {
  5369. text = await U.MD.D.I.getEditorContent(_iframe);
  5370. }
  5371. _loading.style.display = 'flex'
  5372. console.log(_loading);
  5373. var _ajs = _iframe.contentWindow.document.createElement("script");
  5374. _ajs.type = "text/javascript";
  5375. _ajs.innerHTML =
  5376. // 'console.log(' + _loading + ');\n' +
  5377. 'var _js = document.createElement("script");\n' +
  5378. '_js.type="text/javascript";\n' +
  5379. '_js.charset="UTF-8";\n' +
  5380. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5381. "_js.onload = function(){\n" +
  5382. ' var a = document.getElementsByTagName("img")\n' +
  5383. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5384. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5385. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5386. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5387. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5388. "beforeUpload_shishi(file," +
  5389. "'" +
  5390. _userid +
  5391. "'" +
  5392. ", " +
  5393. "'" +
  5394. _cid +
  5395. "'" +
  5396. ", " +
  5397. "'" +
  5398. _stage +
  5399. "'" +
  5400. ", " +
  5401. "'" +
  5402. _task +
  5403. "'" +
  5404. ", " +
  5405. "'" +
  5406. _tool +
  5407. "'" +
  5408. ", " +
  5409. "'" +
  5410. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool+_userid) +
  5411. "'" +
  5412. ", " +
  5413. "'" +
  5414. aTool +
  5415. "'" +
  5416. ", " +
  5417. "`" +
  5418. text +
  5419. "`" +
  5420. ")\n" +
  5421. " });\n" +
  5422. "}\n" +
  5423. "document.head.appendChild(_js);\n";
  5424. _iframe.contentWindow.document.head.appendChild(_ajs);
  5425. }
  5426. }
  5427. }
  5428. U.MD.D.I.getEditorContent = function (iframe) {
  5429. return new Promise((resolve, reject) => {
  5430. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5431. console.log(content);
  5432. resolve(content)
  5433. });
  5434. });
  5435. }
  5436. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5437. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5438. // if (res.value[0].length > 0) {
  5439. // // resolve(res.value[0][0].text);
  5440. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5441. // $(fileInput).val('');
  5442. // });
  5443. // }
  5444. // }, [], { "type": "GET", "withCredentials": true });
  5445. var xmlhttp;
  5446. var Mac, Sn, DeviceId
  5447. if (window.XMLHttpRequest) {
  5448. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5449. xmlhttp = new XMLHttpRequest();
  5450. }
  5451. else {
  5452. // IE6, IE5 浏览器执行代码
  5453. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5454. }
  5455. xmlhttp.onreadystatechange = function () {
  5456. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5457. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5458. // resolve(res.value[0][0].text);
  5459. if (type == '2') {
  5460. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  5461. } else if (type == '3') {
  5462. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5463. }
  5464. } else {
  5465. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5466. }
  5467. }
  5468. }
  5469. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5470. xmlhttp.send();
  5471. }
  5472. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5473. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5474. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5475. _userinfo = US.userInfo, //登录用户信息
  5476. _userid = US.userInfo.userid //登录用户id
  5477. let _iframe;
  5478. let _cid = cid,
  5479. _stage = stage,
  5480. _task = task,
  5481. _tool = tool;
  5482. var _jie = $$("div", {
  5483. "style": {
  5484. "position": "absolute",
  5485. "bottom": "50px",
  5486. "right": "50px",
  5487. "zIndex": "9999",
  5488. "backgroundColor": "#2268bc",
  5489. "color": "#fff",
  5490. "padding": "12px 20px",
  5491. "cursor": "pointer",
  5492. "borderRadius": "4px",
  5493. },
  5494. "innerHTML": "确认并提交"
  5495. })
  5496. let aTool = ''
  5497. let _loading = document.createElement('div')
  5498. _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;"
  5499. // _loading.id = "";
  5500. let _lchild = document.createElement('div')
  5501. let _limg = document.createElement('img')
  5502. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5503. _limg.style = "width: 26px;margin-right: 10px;"
  5504. _lchild.appendChild(_limg)
  5505. let _lspan = document.createElement('span')
  5506. _lspan.innerHTML = "上传中..."
  5507. _lchild.appendChild(_lspan)
  5508. _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%);"
  5509. _loading.appendChild(_lchild)
  5510. var _box = $$('div', {
  5511. "style": {
  5512. "position": "relative",
  5513. "width": "100%",
  5514. "height": "100%",
  5515. },
  5516. })
  5517. _box.appendChild(_loading)
  5518. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool+_userid
  5519. switch (str) {
  5520. case "whiteboard":
  5521. aTool = 1;
  5522. _iframe = $$("iframe", {
  5523. "frameborder": "no",
  5524. "border": "0",
  5525. "scrolling ": "no",
  5526. "style": {
  5527. "cssText": "border:0;width:100%;height:100%"
  5528. },
  5529. "src": "https://iwb.cocorobo.cn/"
  5530. })
  5531. _box.appendChild(_iframe);
  5532. _box.appendChild(_jie);
  5533. _formdiv = new U.UF.UI.form(
  5534. "电子白板",
  5535. _box, {
  5536. "id": "whiteboards" + cid + stage + task + tool,
  5537. "style": {
  5538. "width": "90%",
  5539. "height": "90%",
  5540. "overflow": 'hidden'
  5541. },
  5542. "onresize": function () { }
  5543. }, {
  5544. closecallback: function () { }
  5545. }, {
  5546. "style": {
  5547. "height": "36px"
  5548. }
  5549. }).form; //创建窗体
  5550. _taskbar = {
  5551. "id": str + _formdiv.id,
  5552. "style": {
  5553. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5554. },
  5555. "name": "电子白板",
  5556. "forms": _formdiv,
  5557. "click": function () {
  5558. U.MD.D.I.openApplication(str, obj, info);
  5559. }
  5560. }
  5561. break;
  5562. case "mind":
  5563. aTool = 3;
  5564. _iframe = $$("iframe", {
  5565. "frameborder": "no",
  5566. "border": "0",
  5567. "scrolling ": "no",
  5568. "style": {
  5569. "cssText": "border:0;width:100%;height:100%"
  5570. },
  5571. "src": "/kityminder-editor/dist/index.html"
  5572. });
  5573. _box.appendChild(_iframe);
  5574. _box.appendChild(_jie);
  5575. _formdiv = new U.UF.UI.form(
  5576. "思维导图",
  5577. _box, { //"/jsmind/example/demo.html"
  5578. "id": "minds" + cid + stage + task + tool,
  5579. "style": {
  5580. "width": "90%",
  5581. "height": "90%",
  5582. "overflow": 'hidden'
  5583. },
  5584. "onresize": function () { }
  5585. }, {
  5586. closecallback: function () { }
  5587. }, {
  5588. "style": {
  5589. "height": "36px"
  5590. }
  5591. }).form; //创建窗体
  5592. _taskbar = {
  5593. "id": str + _formdiv.id,
  5594. "style": {
  5595. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5596. },
  5597. "name": "思维导图",
  5598. "forms": _formdiv,
  5599. "click": function () {
  5600. U.MD.D.I.openApplication(str, obj, info);
  5601. }
  5602. }
  5603. break;
  5604. case "doc":
  5605. aTool = 6;
  5606. _iframe = $$("iframe", {
  5607. "frameborder": "no",
  5608. "border": "0",
  5609. "scrolling ": "no",
  5610. "style": {
  5611. "cssText": "border:0;width:100%;height:100%"
  5612. },
  5613. "src": "/Office/Word/WordEditArea.htm"
  5614. })
  5615. _box.appendChild(_iframe);
  5616. _box.appendChild(_jie);
  5617. _formdiv = new U.UF.UI.form(
  5618. "协同文档",
  5619. _box, {
  5620. "id": "docs" + cid + stage + task + tool,
  5621. "style": {
  5622. "width": "90%",
  5623. "height": "90%",
  5624. "overflow": 'hidden'
  5625. },
  5626. "onresize": function () { }
  5627. }, {
  5628. closecallback: function () { }
  5629. }, {
  5630. "style": {
  5631. "height": "36px"
  5632. }
  5633. }).form; //创建窗体
  5634. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5635. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5636. })
  5637. _taskbar = {
  5638. "id": str + _formdiv.id,
  5639. "style": {
  5640. "backgroundImage": "url(/img/icon/doc.png)"
  5641. },
  5642. "name": "协同文档",
  5643. "forms": _formdiv,
  5644. "click": function () {
  5645. U.MD.D.I.openApplication(str, obj, info);
  5646. }
  5647. }
  5648. break;
  5649. }
  5650. const script1 = document.createElement("script");
  5651. script1.type = "text/javascript";
  5652. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5653. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5654. const script2 = document.createElement("script");
  5655. script2.type = "text/javascript";
  5656. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5657. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5658. const script3 = document.createElement("script");
  5659. script3.type = "text/javascript";
  5660. script3.charset = "UTF-8";
  5661. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5662. const script4 = document.createElement("script");
  5663. script4.type = "text/javascript";
  5664. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5665. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5666. if (_iframe) {
  5667. if (str == 'doc') {
  5668. _iframe = _formdiv.querySelector('iframe')
  5669. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5670. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5671. _iframe.contentWindow.document.body.appendChild(script1);
  5672. _iframe.contentWindow.document.body.appendChild(script2);
  5673. // _iframe.contentWindow.document.body.appendChild(script3);
  5674. _iframe.contentWindow.document.body.appendChild(script4);
  5675. })
  5676. if (onloadListener) {
  5677. _iframe.contentDocument.location.reload()
  5678. } else {
  5679. _iframe.contentDocument.location.reload()
  5680. }
  5681. } else if (str == 'mind') {
  5682. _iframe = _formdiv.querySelector('iframe')
  5683. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5684. _iframe.contentWindow.document.body.appendChild(script1);
  5685. _iframe.contentWindow.document.body.appendChild(script2);
  5686. _iframe.contentWindow.document.body.appendChild(script4);
  5687. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5688. })
  5689. if (onloadListener) {
  5690. _iframe.contentDocument.location.reload()
  5691. } else {
  5692. _iframe.contentDocument.location.reload()
  5693. }
  5694. } else {
  5695. _iframe.onload = () => {
  5696. _iframe.contentWindow.document.body.appendChild(script1);
  5697. _iframe.contentWindow.document.body.appendChild(script2);
  5698. // _iframe.contentWindow.document.body.appendChild(script3);
  5699. _iframe.contentWindow.document.body.appendChild(script4);
  5700. };
  5701. }
  5702. _jie.onclick = async () => {
  5703. let text = ''
  5704. if (aTool == 6) {
  5705. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5706. } else if (aTool == 3) {
  5707. text = await U.MD.D.I.getEditorContent(_iframe);
  5708. }
  5709. _loading.style.display = 'flex'
  5710. console.log(_loading);
  5711. var _ajs = _iframe.contentWindow.document.createElement("script");
  5712. _ajs.type = "text/javascript";
  5713. _ajs.innerHTML =
  5714. // 'console.log(' + _loading + ');\n' +
  5715. 'var _js = document.createElement("script");\n' +
  5716. '_js.type="text/javascript";\n' +
  5717. '_js.charset="UTF-8";\n' +
  5718. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5719. "_js.onload = function(){\n" +
  5720. ' var a = document.getElementsByTagName("img")\n' +
  5721. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5722. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5723. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5724. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5725. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5726. "beforeUpload_shishi(file," +
  5727. "'" +
  5728. _userid +
  5729. "'" +
  5730. ", " +
  5731. "'" +
  5732. _cid +
  5733. "'" +
  5734. ", " +
  5735. "'" +
  5736. _stage +
  5737. "'" +
  5738. ", " +
  5739. "'" +
  5740. _task +
  5741. "'" +
  5742. ", " +
  5743. "'" +
  5744. _tool +
  5745. "'" +
  5746. ", " +
  5747. "'" +
  5748. (str + '_loadLi_JieS' + cid + stage + task + tool+_userid) +
  5749. "'" +
  5750. ", " +
  5751. "'" +
  5752. aTool +
  5753. "'" +
  5754. ", " +
  5755. "`" +
  5756. text +
  5757. "`" +
  5758. ")\n" +
  5759. " });\n" +
  5760. "}\n" +
  5761. "document.head.appendChild(_js);\n";
  5762. _iframe.contentWindow.document.head.appendChild(_ajs);
  5763. }
  5764. }
  5765. //U.MD.D.I.openClick(str);
  5766. //如果有任务栏信息
  5767. // if (_taskbar) {
  5768. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5769. // }
  5770. }
  5771. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  5772. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5773. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5774. _userinfo = US.userInfo, //登录用户信息
  5775. _userid = US.userInfo.userid //登录用户id
  5776. let _iframe;
  5777. let _cid = cid,
  5778. _stage = stage,
  5779. _task = task,
  5780. _tool = tool;
  5781. var _jie = $$("div", {
  5782. "style": {
  5783. "position": "absolute",
  5784. "bottom": "50px",
  5785. "right": "50px",
  5786. "zIndex": "9999",
  5787. "backgroundColor": "#2268bc",
  5788. "color": "#fff",
  5789. "padding": "12px 20px",
  5790. "cursor": "pointer",
  5791. "borderRadius": "4px",
  5792. },
  5793. "innerHTML": "确认并提交"
  5794. })
  5795. let aTool = ''
  5796. let _loading = document.createElement('div')
  5797. _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;"
  5798. // _loading.id = "";
  5799. let _lchild = document.createElement('div')
  5800. let _limg = document.createElement('img')
  5801. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5802. _limg.style = "width: 26px;margin-right: 10px;"
  5803. _lchild.appendChild(_limg)
  5804. let _lspan = document.createElement('span')
  5805. _lspan.innerHTML = "上传中..."
  5806. _lchild.appendChild(_lspan)
  5807. _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%);"
  5808. _loading.appendChild(_lchild)
  5809. var _box = $$('div', {
  5810. "style": {
  5811. "position": "relative",
  5812. "width": "100%",
  5813. "height": "100%",
  5814. },
  5815. })
  5816. _box.appendChild(_loading)
  5817. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid
  5818. switch (str) {
  5819. case "whiteboard":
  5820. aTool = 1;
  5821. _iframe = $$("iframe", {
  5822. "frameborder": "no",
  5823. "border": "0",
  5824. "scrolling ": "no",
  5825. "style": {
  5826. "cssText": "border:0;width:100%;height:100%"
  5827. },
  5828. "src": "https://iwb.cocorobo.cn/"
  5829. })
  5830. _box.appendChild(_iframe);
  5831. _box.appendChild(_jie);
  5832. _formdiv = new U.UF.UI.form(
  5833. "电子白板",
  5834. _box, {
  5835. "id": "whiteboards" + cid + stage + task + tool,
  5836. "style": {
  5837. "width": "90%",
  5838. "height": "90%",
  5839. "overflow": 'hidden'
  5840. },
  5841. "onresize": function () { }
  5842. }, {
  5843. closecallback: function () { }
  5844. }, {
  5845. "style": {
  5846. "height": "36px"
  5847. }
  5848. }).form; //创建窗体
  5849. _taskbar = {
  5850. "id": str + _formdiv.id,
  5851. "style": {
  5852. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5853. },
  5854. "name": "电子白板",
  5855. "forms": _formdiv,
  5856. "click": function () {
  5857. U.MD.D.I.openApplication(str, obj, info);
  5858. }
  5859. }
  5860. break;
  5861. case "mind":
  5862. aTool = 3;
  5863. _iframe = $$("iframe", {
  5864. "frameborder": "no",
  5865. "border": "0",
  5866. "scrolling ": "no",
  5867. "style": {
  5868. "cssText": "border:0;width:100%;height:100%"
  5869. },
  5870. "src": "/kityminder-editor/dist/index.html"
  5871. });
  5872. _box.appendChild(_iframe);
  5873. _box.appendChild(_jie);
  5874. _formdiv = new U.UF.UI.form(
  5875. "思维导图",
  5876. _box, { //"/jsmind/example/demo.html"
  5877. "id": "minds" + cid + stage + task + tool,
  5878. "style": {
  5879. "width": "90%",
  5880. "height": "90%",
  5881. "overflow": 'hidden'
  5882. },
  5883. "onresize": function () { }
  5884. }, {
  5885. closecallback: function () { }
  5886. }, {
  5887. "style": {
  5888. "height": "36px"
  5889. }
  5890. }).form; //创建窗体
  5891. _taskbar = {
  5892. "id": str + _formdiv.id,
  5893. "style": {
  5894. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5895. },
  5896. "name": "思维导图",
  5897. "forms": _formdiv,
  5898. "click": function () {
  5899. U.MD.D.I.openApplication(str, obj, info);
  5900. }
  5901. }
  5902. break;
  5903. case "doc":
  5904. aTool = 6;
  5905. _iframe = $$("iframe", {
  5906. "frameborder": "no",
  5907. "border": "0",
  5908. "scrolling ": "no",
  5909. "style": {
  5910. "cssText": "border:0;width:100%;height:100%"
  5911. },
  5912. "src": "/Office/Word/WordEditArea.htm"
  5913. })
  5914. _box.appendChild(_iframe);
  5915. _box.appendChild(_jie);
  5916. _formdiv = new U.UF.UI.form(
  5917. "协同文档",
  5918. _box, {
  5919. "id": "docs" + cid + stage + task + tool,
  5920. "style": {
  5921. "width": "90%",
  5922. "height": "90%",
  5923. "overflow": 'hidden'
  5924. },
  5925. "onresize": function () { }
  5926. }, {
  5927. closecallback: function () { }
  5928. }, {
  5929. "style": {
  5930. "height": "36px"
  5931. }
  5932. }).form; //创建窗体
  5933. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5934. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5935. })
  5936. _taskbar = {
  5937. "id": str + _formdiv.id,
  5938. "style": {
  5939. "backgroundImage": "url(/img/icon/doc.png)"
  5940. },
  5941. "name": "协同文档",
  5942. "forms": _formdiv,
  5943. "click": function () {
  5944. U.MD.D.I.openApplication(str, obj, info);
  5945. }
  5946. }
  5947. break;
  5948. }
  5949. const script1 = document.createElement("script");
  5950. script1.type = "text/javascript";
  5951. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5952. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5953. const script2 = document.createElement("script");
  5954. script2.type = "text/javascript";
  5955. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5956. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5957. const script3 = document.createElement("script");
  5958. script3.type = "text/javascript";
  5959. script3.charset = "UTF-8";
  5960. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5961. const script4 = document.createElement("script");
  5962. script4.type = "text/javascript";
  5963. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5964. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  5965. if (_iframe) {
  5966. if (str == 'doc') {
  5967. _iframe = _formdiv.querySelector('iframe')
  5968. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5969. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5970. _iframe.contentWindow.document.body.appendChild(script1);
  5971. _iframe.contentWindow.document.body.appendChild(script2);
  5972. // _iframe.contentWindow.document.body.appendChild(script3);
  5973. _iframe.contentWindow.document.body.appendChild(script4);
  5974. })
  5975. if (onloadListener) {
  5976. _iframe.contentDocument.location.reload()
  5977. } else {
  5978. _iframe.contentDocument.location.reload()
  5979. }
  5980. } else if (str == 'mind') {
  5981. _iframe = _formdiv.querySelector('iframe')
  5982. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5983. _iframe.contentWindow.document.body.appendChild(script1);
  5984. _iframe.contentWindow.document.body.appendChild(script2);
  5985. _iframe.contentWindow.document.body.appendChild(script4);
  5986. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5987. })
  5988. if (onloadListener) {
  5989. _iframe.contentDocument.location.reload()
  5990. } else {
  5991. _iframe.contentDocument.location.reload()
  5992. }
  5993. } else {
  5994. _iframe.onload = () => {
  5995. _iframe.contentWindow.document.body.appendChild(script1);
  5996. _iframe.contentWindow.document.body.appendChild(script2);
  5997. // _iframe.contentWindow.document.body.appendChild(script3);
  5998. _iframe.contentWindow.document.body.appendChild(script4);
  5999. };
  6000. }
  6001. _jie.onclick = async () => {
  6002. let text = ''
  6003. if (aTool == 6) {
  6004. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6005. } else if (aTool == 3) {
  6006. text = await U.MD.D.I.getEditorContent(_iframe);
  6007. }
  6008. _loading.style.display = 'flex'
  6009. console.log(_loading);
  6010. var _ajs = _iframe.contentWindow.document.createElement("script");
  6011. _ajs.type = "text/javascript";
  6012. _ajs.innerHTML =
  6013. // 'console.log(' + _loading + ');\n' +
  6014. 'var _js = document.createElement("script");\n' +
  6015. '_js.type="text/javascript";\n' +
  6016. '_js.charset="UTF-8";\n' +
  6017. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  6018. "_js.onload = function(){\n" +
  6019. ' var a = document.getElementsByTagName("img")\n' +
  6020. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6021. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6022. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6023. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6024. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  6025. "beforeUpload_shishi(file," +
  6026. "'" +
  6027. _userid +
  6028. "'" +
  6029. ", " +
  6030. "'" +
  6031. _cid +
  6032. "'" +
  6033. ", " +
  6034. "'" +
  6035. _stage +
  6036. "'" +
  6037. ", " +
  6038. "'" +
  6039. _task +
  6040. "'" +
  6041. ", " +
  6042. "'" +
  6043. _tool +
  6044. "'" +
  6045. ", " +
  6046. "'" +
  6047. (str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid) +
  6048. "'" +
  6049. ", " +
  6050. "'" +
  6051. aTool +
  6052. "'" +
  6053. ", " +
  6054. "`" +
  6055. text +
  6056. "`" +
  6057. ")\n" +
  6058. " });\n" +
  6059. "}\n" +
  6060. "document.head.appendChild(_js);\n";
  6061. _iframe.contentWindow.document.head.appendChild(_ajs);
  6062. }
  6063. }
  6064. //U.MD.D.I.openClick(str);
  6065. //如果有任务栏信息
  6066. // if (_taskbar) {
  6067. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6068. // }
  6069. }
  6070. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6071. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6072. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6073. _userinfo = US.userInfo, //登录用户信息
  6074. _userid = US.userInfo.userid //登录用户id
  6075. let _iframe;
  6076. let _cid = cid,
  6077. _stage = stage,
  6078. _task = task,
  6079. _tool = tool;
  6080. var _jie = $$("div", {
  6081. "style": {
  6082. "position": "absolute",
  6083. "bottom": "50px",
  6084. "right": "50px",
  6085. "zIndex": "9999",
  6086. "backgroundColor": "#2268bc",
  6087. "color": "#fff",
  6088. "padding": "12px 20px",
  6089. "cursor": "pointer",
  6090. "borderRadius": "4px",
  6091. },
  6092. "innerHTML": "上传模板"
  6093. })
  6094. let aTool = ''
  6095. let _loading = document.createElement('div')
  6096. _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;"
  6097. // _loading.id = "";
  6098. let _lchild = document.createElement('div')
  6099. let _limg = document.createElement('img')
  6100. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6101. _limg.style = "width: 26px;margin-right: 10px;"
  6102. _lchild.appendChild(_limg)
  6103. let _lspan = document.createElement('span')
  6104. _lspan.innerHTML = "上传中..."
  6105. _lchild.appendChild(_lspan)
  6106. _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%);"
  6107. _loading.appendChild(_lchild)
  6108. var _box = $$('div', {
  6109. "style": {
  6110. "position": "relative",
  6111. "width": "100%",
  6112. "height": "100%",
  6113. },
  6114. })
  6115. _box.appendChild(_loading)
  6116. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool+_userid
  6117. switch (str) {
  6118. case "whiteboard":
  6119. aTool = 1;
  6120. _iframe = $$("iframe", {
  6121. "frameborder": "no",
  6122. "border": "0",
  6123. "scrolling ": "no",
  6124. "style": {
  6125. "cssText": "border:0;width:100%;height:100%"
  6126. },
  6127. "src": "https://iwb.cocorobo.cn/"
  6128. })
  6129. _box.appendChild(_iframe);
  6130. _box.appendChild(_jie);
  6131. _formdiv = new U.UF.UI.form(
  6132. "电子白板",
  6133. _box, {
  6134. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6135. "style": {
  6136. "width": "90%",
  6137. "height": "90%",
  6138. "overflow": 'hidden'
  6139. },
  6140. "onresize": function () { }
  6141. }, {
  6142. closecallback: function () { }
  6143. }, {
  6144. "style": {
  6145. "height": "36px"
  6146. }
  6147. }).form; //创建窗体
  6148. _taskbar = {
  6149. "id": str + _formdiv.id,
  6150. "style": {
  6151. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6152. },
  6153. "name": "电子白板",
  6154. "forms": _formdiv,
  6155. "click": function () {
  6156. U.MD.D.I.openApplication(str, obj, info);
  6157. }
  6158. }
  6159. break;
  6160. case "mind":
  6161. aTool = 3;
  6162. _iframe = $$("iframe", {
  6163. "frameborder": "no",
  6164. "border": "0",
  6165. "scrolling ": "no",
  6166. "style": {
  6167. "cssText": "border:0;width:100%;height:100%"
  6168. },
  6169. "src": "/kityminder-editor/dist/index.html"
  6170. });
  6171. _box.appendChild(_iframe);
  6172. _box.appendChild(_jie);
  6173. _formdiv = new U.UF.UI.form(
  6174. "思维导图",
  6175. _box, { //"/jsmind/example/demo.html"
  6176. "id": "minds_Yu" + cid + stage + task + tool,
  6177. "style": {
  6178. "width": "90%",
  6179. "height": "90%",
  6180. "overflow": 'hidden'
  6181. },
  6182. "onresize": function () { }
  6183. }, {
  6184. closecallback: function () { }
  6185. }, {
  6186. "style": {
  6187. "height": "36px"
  6188. }
  6189. }).form; //创建窗体
  6190. _taskbar = {
  6191. "id": str + _formdiv.id,
  6192. "style": {
  6193. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6194. },
  6195. "name": "思维导图",
  6196. "forms": _formdiv,
  6197. "click": function () {
  6198. U.MD.D.I.openApplication(str, obj, info);
  6199. }
  6200. }
  6201. break;
  6202. case "doc":
  6203. aTool = 6;
  6204. _iframe = $$("iframe", {
  6205. "frameborder": "no",
  6206. "border": "0",
  6207. "scrolling ": "no",
  6208. "style": {
  6209. "cssText": "border:0;width:100%;height:100%"
  6210. },
  6211. "src": "/Office/Word/WordEditArea.htm"
  6212. })
  6213. _box.appendChild(_iframe);
  6214. _box.appendChild(_jie);
  6215. _formdiv = new U.UF.UI.form(
  6216. "协同文档",
  6217. _box, {
  6218. "id": "docs_Yu" + cid + stage + task + tool,
  6219. "style": {
  6220. "width": "90%",
  6221. "height": "90%",
  6222. "overflow": 'hidden'
  6223. },
  6224. "onresize": function () { }
  6225. }, {
  6226. closecallback: function () { }
  6227. }, {
  6228. "style": {
  6229. "height": "36px"
  6230. }
  6231. }).form; //创建窗体
  6232. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6233. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6234. })
  6235. _taskbar = {
  6236. "id": str + _formdiv.id,
  6237. "style": {
  6238. "backgroundImage": "url(/img/icon/doc.png)"
  6239. },
  6240. "name": "协同文档",
  6241. "forms": _formdiv,
  6242. "click": function () {
  6243. U.MD.D.I.openApplication(str, obj, info);
  6244. }
  6245. }
  6246. break;
  6247. case "CocoPi":
  6248. aTool = 57;
  6249. _iframe = $$("iframe", {
  6250. "allowpaymentrequest":"allowpaymentrequest",
  6251. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6252. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6253. "frameborder": "no",
  6254. "border": "0",
  6255. "scrolling ": "no",
  6256. "style": {
  6257. "cssText": "border:0;width:100%;height:100%"
  6258. },
  6259. "src": "https://beta.v.cocorobo.cn/"
  6260. })
  6261. _box.appendChild(_iframe);
  6262. _box.appendChild(_jie);
  6263. _formdiv = new U.UF.UI.form(
  6264. "CocoPi",
  6265. _box, {
  6266. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6267. "style": {
  6268. "width": "90%",
  6269. "height": "90%",
  6270. "overflow": 'hidden'
  6271. },
  6272. "onresize": function () { }
  6273. }, {
  6274. closecallback: function () { }
  6275. }, {
  6276. "style": {
  6277. "height": "36px"
  6278. }
  6279. }).form; //创建窗体
  6280. _taskbar = {
  6281. "id": str + _formdiv.id,
  6282. "style": {
  6283. "backgroundImage": "url(/img/icon/cocopi.png)"
  6284. },
  6285. "name": "CocoPi",
  6286. "forms": _formdiv,
  6287. "click": function () {
  6288. U.MD.D.I.openApplication(str, obj, info);
  6289. }
  6290. }
  6291. break;
  6292. }
  6293. if (_iframe) {
  6294. if (str == 'doc') {
  6295. _iframe = _formdiv.querySelector('iframe')
  6296. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6297. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6298. })
  6299. if (onloadListener) {
  6300. _iframe.contentDocument.location.reload()
  6301. } else {
  6302. _iframe.contentDocument.location.reload()
  6303. }
  6304. } else if (str == 'mind') {
  6305. _iframe = _formdiv.querySelector('iframe')
  6306. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6307. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6308. })
  6309. if (onloadListener) {
  6310. _iframe.contentDocument.location.reload()
  6311. } else {
  6312. _iframe.contentDocument.location.reload()
  6313. }
  6314. } else if (str == 'whiteboard') {
  6315. _iframe = _formdiv.querySelector('iframe')
  6316. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6317. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6318. })
  6319. if (onloadListener) {
  6320. _iframe.contentDocument.location.reload()
  6321. } else {
  6322. _iframe.contentDocument.location.reload()
  6323. }
  6324. } else if (str == 'CocoPi') {
  6325. _iframe = _formdiv.querySelector('iframe')
  6326. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6327. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6328. })
  6329. if (onloadListener) {
  6330. _iframe.contentDocument.location.reload()
  6331. } else {
  6332. _iframe.contentDocument.location.reload()
  6333. }
  6334. } else {
  6335. _iframe.onload = () => {
  6336. };
  6337. }
  6338. _jie.onclick = async () => {
  6339. let text = ''
  6340. let type = '2'
  6341. if (aTool == 1) {
  6342. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6343. type = '3'
  6344. } else if (aTool == 6) {
  6345. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6346. type = '1'
  6347. } else if (aTool == 3) {
  6348. text = await U.MD.D.I.getEditorContent(_iframe);
  6349. type = '2'
  6350. } else if (aTool == 57) {
  6351. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6352. type = '4'
  6353. }
  6354. _loading.style.display = 'flex'
  6355. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6356. }
  6357. }
  6358. //U.MD.D.I.openClick(str);
  6359. //如果有任务栏信息
  6360. // if (_taskbar) {
  6361. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6362. // }
  6363. }
  6364. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6365. var xmlhttp;
  6366. var Mac, Sn, DeviceId
  6367. if (window.XMLHttpRequest) {
  6368. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6369. xmlhttp = new XMLHttpRequest();
  6370. }
  6371. else {
  6372. // IE6, IE5 浏览器执行代码
  6373. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6374. }
  6375. xmlhttp.onreadystatechange = function () {
  6376. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6377. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6378. // resolve(res.value[0][0].text);
  6379. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6380. }
  6381. }
  6382. }
  6383. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6384. xmlhttp.send();
  6385. }
  6386. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6387. var xmlhttp;
  6388. var Mac, Sn, DeviceId
  6389. if (window.XMLHttpRequest) {
  6390. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6391. xmlhttp = new XMLHttpRequest();
  6392. }
  6393. else {
  6394. // IE6, IE5 浏览器执行代码
  6395. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6396. }
  6397. xmlhttp.onreadystatechange = function () {
  6398. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6399. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6400. // resolve(res.value[0][0].text);
  6401. if (type == '2') {
  6402. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6403. } else if (type == '3') {
  6404. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6405. } else if (type == '4') {
  6406. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  6407. }
  6408. } else {
  6409. if (type == '2') {
  6410. iframe.contentWindow.editor.minder.importData('json', '')
  6411. } else if (type == '3') {
  6412. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6413. } else if (type == '4') {
  6414. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6415. }
  6416. }
  6417. }
  6418. }
  6419. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6420. xmlhttp.send();
  6421. }
  6422. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6423. var xmlhttp;
  6424. var Mac, Sn, DeviceId
  6425. if (window.XMLHttpRequest) {
  6426. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6427. xmlhttp = new XMLHttpRequest();
  6428. }
  6429. else {
  6430. // IE6, IE5 浏览器执行代码
  6431. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6432. }
  6433. xmlhttp.onreadystatechange = function () {
  6434. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6435. if (xmlhttp.response) {
  6436. // resolve(res.value[0][0].text);
  6437. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6438. // $(fileInput).val('');
  6439. // });
  6440. span.innerHTML = '上传成功'
  6441. setTimeout(() => {
  6442. loading.style.display = 'none'
  6443. }, 1000);
  6444. }
  6445. }
  6446. }
  6447. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6448. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6449. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6450. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6451. // 设置请求头,表示请求体的编码格式
  6452. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  6453. // 设置请求体,使用url-encoded格式的数据
  6454. }
  6455. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  6456. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6457. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6458. _userinfo = US.userInfo, //登录用户信息
  6459. _userid = US.userInfo.userid //登录用户id
  6460. let _iframe;
  6461. let _cid = cid,
  6462. _stage = stage,
  6463. _task = task,
  6464. _tool = tool;
  6465. var _jie = $$("div", {
  6466. "style": {
  6467. "position": "absolute",
  6468. "bottom": "50px",
  6469. "right": "50px",
  6470. "zIndex": "9999",
  6471. "backgroundColor": "#2268bc",
  6472. "color": "#fff",
  6473. "padding": "12px 20px",
  6474. "cursor": "pointer",
  6475. "borderRadius": "4px",
  6476. },
  6477. "innerHTML": "提交作业"
  6478. })
  6479. let aTool = ''
  6480. let _loading = document.createElement('div')
  6481. _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;"
  6482. // _loading.id = "";
  6483. let _lchild = document.createElement('div')
  6484. let _limg = document.createElement('img')
  6485. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6486. _limg.style = "width: 26px;margin-right: 10px;"
  6487. _lchild.appendChild(_limg)
  6488. let _lspan = document.createElement('span')
  6489. _lspan.innerHTML = "上传中..."
  6490. _lchild.appendChild(_lspan)
  6491. _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%);"
  6492. _loading.appendChild(_lchild)
  6493. var _box = $$('div', {
  6494. "style": {
  6495. "position": "relative",
  6496. "width": "100%",
  6497. "height": "100%",
  6498. },
  6499. })
  6500. _box.appendChild(_loading)
  6501. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool+_userid
  6502. switch (str) {
  6503. case "CocoPi":
  6504. aTool = 57;
  6505. _iframe = $$("iframe", {
  6506. "allowpaymentrequest":"allowpaymentrequest",
  6507. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6508. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6509. "frameborder": "no",
  6510. "border": "0",
  6511. "scrolling ": "no",
  6512. "style": {
  6513. "cssText": "border:0;width:100%;height:100%"
  6514. },
  6515. "src": "https://beta.v.cocorobo.cn/"
  6516. })
  6517. _box.appendChild(_iframe);
  6518. _box.appendChild(_jie);
  6519. _formdiv = new U.UF.UI.form(
  6520. "CocoPi",
  6521. _box, {
  6522. "id": "CocoPi_Upload" + cid + stage + task + tool,
  6523. "style": {
  6524. "width": "90%",
  6525. "height": "90%",
  6526. "overflow": 'hidden'
  6527. },
  6528. "onresize": function () { }
  6529. }, {
  6530. closecallback: function () { }
  6531. }, {
  6532. "style": {
  6533. "height": "36px"
  6534. }
  6535. }).form; //创建窗体
  6536. _taskbar = {
  6537. "id": str + _formdiv.id,
  6538. "style": {
  6539. "backgroundImage": "url(/img/icon/cocopi.png)"
  6540. },
  6541. "name": "CocoPi",
  6542. "forms": _formdiv,
  6543. "click": function () {
  6544. U.MD.D.I.openApplication(str, obj, info);
  6545. }
  6546. }
  6547. break;
  6548. }
  6549. if (_iframe) {
  6550. if (str == 'CocoPi') {
  6551. _iframe = _formdiv.querySelector('iframe')
  6552. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6553. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6554. })
  6555. if (onloadListener) {
  6556. _iframe.contentDocument.location.reload()
  6557. } else {
  6558. _iframe.contentDocument.location.reload()
  6559. }
  6560. }
  6561. _jie.onclick = async () => {
  6562. let text = ''
  6563. if (aTool == 57) {
  6564. text = _iframe.contentWindow.getLoadXmlStr()
  6565. }
  6566. _loading.style.display = 'flex'
  6567. console.log(_loading);
  6568. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6569. _loading.style.display = 'none'
  6570. let _div = document.createElement('div')
  6571. _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
  6572. let _inner = document.createElement('div')
  6573. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6574. _inner.innerHTML = "上传成功"
  6575. _div.appendChild(_inner)
  6576. _iframe.contentWindow.window.document.body.appendChild(_div)
  6577. _div.onclick = () => {
  6578. _iframe.contentWindow.window.document.body.removeChild(_div)
  6579. }
  6580. setTimeout(() => {
  6581. _iframe.contentWindow.window.document.body.removeChild(_div)
  6582. }, 1000);
  6583. }, [], { "type": "POST", "withCredentials": true });
  6584. }
  6585. }
  6586. }
  6587. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  6588. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6589. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6590. _userid = student.userid, //登录用户id
  6591. _username = student.student //用户名字
  6592. let _iframe;
  6593. let _cid = cid,
  6594. _stage = stage,
  6595. _task = task,
  6596. _tool = tool;
  6597. var _jie = $$("div", {
  6598. "style": {
  6599. "position": "absolute",
  6600. "bottom": "50px",
  6601. "right": "50px",
  6602. "zIndex": "9999",
  6603. "backgroundColor": "#2268bc",
  6604. "color": "#fff",
  6605. "padding": "12px 20px",
  6606. "cursor": "pointer",
  6607. "borderRadius": "4px",
  6608. },
  6609. "innerHTML": "提交作业"
  6610. })
  6611. let aTool = ''
  6612. let _loading = document.createElement('div')
  6613. _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;"
  6614. // _loading.id = "";
  6615. let _lchild = document.createElement('div')
  6616. let _limg = document.createElement('img')
  6617. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6618. _limg.style = "width: 26px;margin-right: 10px;"
  6619. _lchild.appendChild(_limg)
  6620. let _lspan = document.createElement('span')
  6621. _lspan.innerHTML = "上传中..."
  6622. _lchild.appendChild(_lspan)
  6623. _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%);"
  6624. _loading.appendChild(_lchild)
  6625. var _box = $$('div', {
  6626. "style": {
  6627. "position": "relative",
  6628. "width": "100%",
  6629. "height": "100%",
  6630. },
  6631. })
  6632. _box.appendChild(_loading)
  6633. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool+_userid
  6634. switch (str) {
  6635. case "CocoPi":
  6636. aTool = 57;
  6637. _iframe = $$("iframe", {
  6638. "allowpaymentrequest":"allowpaymentrequest",
  6639. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6640. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6641. "frameborder": "no",
  6642. "border": "0",
  6643. "scrolling ": "no",
  6644. "style": {
  6645. "cssText": "border:0;width:100%;height:100%"
  6646. },
  6647. "src": "https://beta.v.cocorobo.cn/"
  6648. })
  6649. _box.appendChild(_iframe);
  6650. _box.appendChild(_jie);
  6651. _formdiv = new U.UF.UI.form(
  6652. "CocoPi-" + _username,
  6653. _box, {
  6654. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  6655. "style": {
  6656. "width": "90%",
  6657. "height": "90%",
  6658. "overflow": 'hidden'
  6659. },
  6660. "onresize": function () { }
  6661. }, {
  6662. closecallback: function () { }
  6663. }, {
  6664. "style": {
  6665. "height": "36px"
  6666. }
  6667. }).form; //创建窗体
  6668. _taskbar = {
  6669. "id": str + _formdiv.id,
  6670. "style": {
  6671. "backgroundImage": "url(/img/icon/cocopi.png)"
  6672. },
  6673. "name": "CocoPi",
  6674. "forms": _formdiv,
  6675. "click": function () {
  6676. U.MD.D.I.openApplication(str, obj, info);
  6677. }
  6678. }
  6679. break;
  6680. }
  6681. if (_iframe) {
  6682. if (str == 'CocoPi') {
  6683. _iframe = _formdiv.querySelector('iframe')
  6684. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6685. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6686. })
  6687. if (onloadListener) {
  6688. _iframe.contentDocument.location.reload()
  6689. } else {
  6690. _iframe.contentDocument.location.reload()
  6691. }
  6692. }
  6693. _jie.onclick = async () => {
  6694. let text = ''
  6695. if (aTool == 57) {
  6696. text = _iframe.contentWindow.getLoadXmlStr()
  6697. }
  6698. _loading.style.display = 'flex'
  6699. console.log(_loading);
  6700. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6701. _loading.style.display = 'none'
  6702. let _div = document.createElement('div')
  6703. _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
  6704. let _inner = document.createElement('div')
  6705. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6706. _inner.innerHTML = "上传成功"
  6707. _div.appendChild(_inner)
  6708. _iframe.contentWindow.window.document.body.appendChild(_div)
  6709. _div.onclick = () => {
  6710. _iframe.contentWindow.window.document.body.removeChild(_div)
  6711. }
  6712. setTimeout(() => {
  6713. _iframe.contentWindow.window.document.body.removeChild(_div)
  6714. }, 1000);
  6715. }, [], { "type": "POST", "withCredentials": true });
  6716. }
  6717. }
  6718. }
  6719. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  6720. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  6721. if (res.value[0].length > 0) {
  6722. if (atool == 57) {
  6723. iframe.contentWindow.loadingXml(res.value[0][0].content)
  6724. }
  6725. } else {
  6726. if (atool == 57) {
  6727. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  6728. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6729. }
  6730. }
  6731. }, [], { "type": "POST", "withCredentials": true });
  6732. }