DeskTop.js 370 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749
  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. ];
  443. //97c4ee8b-d010-4042-986d-e9d3c217264f
  444. //教师桌面图标的全局变量
  445. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  446. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  447. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  448. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  449. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  450. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  451. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  452. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  453. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  454. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  455. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  456. ];
  457. //福田
  458. U.MD.D.I.futianTeacherDeskIcon = [
  459. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  460. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  461. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  462. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  463. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  464. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  465. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  466. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  467. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  468. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  469. ];
  470. //福田
  471. U.MD.D.I.futianAdminDeskIcon = [
  472. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  473. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  474. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  475. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  476. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  477. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  478. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  479. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  480. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  481. ];
  482. //lotech
  483. U.MD.D.I.lotechTeacherDeskIcon = [
  484. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  485. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  486. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  487. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  488. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  489. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  490. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  491. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  492. ];
  493. //龙华中心小学教师桌面图标的全局变量
  494. U.MD.D.I.longhuateacherDeskIcon = [
  495. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  496. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  497. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  498. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  499. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  500. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  501. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  502. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  503. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  504. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  505. ];
  506. //教科院实小教师桌面图标的全局变量
  507. U.MD.D.I.siesteacherDeskIcon = [
  508. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  509. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  510. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  511. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  512. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  513. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  514. // { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  515. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  516. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  517. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  518. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  519. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  520. ];
  521. //福田
  522. U.MD.D.I.gdjgTeacherDeskIcon = [
  523. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  524. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  525. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  526. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  527. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  528. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  529. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  530. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  531. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  532. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  533. ];
  534. //福田
  535. U.MD.D.I.gdjgAdminDeskIcon = [
  536. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  537. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  538. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  539. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  540. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  541. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  542. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  543. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  544. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  545. ];
  546. //#region 桌面初始化a
  547. /**
  548. * 初始化桌面的起始函数
  549. *
  550. */
  551. U.MD.D.I.init = function () {
  552. if ($("#U_MD_D_K")[0]) {
  553. //初始化桌面图标
  554. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  555. // var clickUrl = ':12588/requestIp.php';
  556. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  557. // U.MD.D.I.Ip = data;
  558. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  559. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  560. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  561. // })
  562. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  563. // })
  564. }
  565. }
  566. /**
  567. * 模式切换
  568. *
  569. */
  570. U.MD.D.I.ModeCheck = function (type) {
  571. if (US.Config.type == type) {
  572. return
  573. }
  574. US.Config.type = type
  575. $('.U_PBL_Check .active')[0].className = ''
  576. if (type == 1) {
  577. $('.U_PBL_Check div')[0].className = 'active'
  578. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  579. } else {
  580. $('.U_PBL_Check div')[1].className = 'active'
  581. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  582. }
  583. //初始化桌面图标
  584. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  585. if(type == 2){
  586. U.MD.D.I.openApplication("project")
  587. }
  588. }
  589. /**
  590. * 隐藏任务栏
  591. *
  592. * @param {element} 桌面元素
  593. */
  594. U.MD.D.I.hiddenTaskbar = function (el) {
  595. //任务栏位置变小
  596. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  597. //桌面的位置变大
  598. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  599. }
  600. /**
  601. * 隐藏任务栏
  602. *
  603. * @param {element} 桌面元素
  604. */
  605. U.MD.D.I.hiddenTaskbarout = function (el) {
  606. //任务栏位置变小
  607. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  608. //任务栏位置变化
  609. U.selectEl(el).css({ "bottom": "-60px" });
  610. //桌面的位置变大
  611. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  612. }
  613. }
  614. /**
  615. * 初始化打印桌面图标
  616. *
  617. * @param {element} 桌面元素
  618. */
  619. U.MD.D.I.initDesktopIcons = function (el, type) {
  620. var i, //用于循环
  621. _content, //桌面图标元素
  622. _iconcontent, //桌面图标元素
  623. _frag = $$("frag"), //定义一个碎片元素
  624. _type = US.userInfo.type,
  625. _org = US.userInfo.org,
  626. _oid = US.userInfo.organizeid,
  627. _role = US.userInfo.role,
  628. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  629. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  630. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  631. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  632. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  633. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  634. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  635. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  636. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  637. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  638. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  639. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  640. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  641. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  642. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  643. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  644. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  645. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  646. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  647. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  648. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  649. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  650. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  651. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  652. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  653. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//福田
  654. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//福田
  655. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  656. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
  657. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龙华中心
  658. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  659. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  660. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  661. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  662. 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'];
  663. 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'];
  664. //清楚桌面图标
  665. el.innerHTML = "";
  666. 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") {
  667. _teacherDesktopIconInfo.push(
  668. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  669. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  670. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  671. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  672. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  673. )
  674. _easyDesktopIconInfo.push(
  675. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  676. )
  677. }
  678. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  679. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  680. if(el.Name == '项目管理'){
  681. el.Name = 'PBL项目'
  682. }
  683. return el
  684. })
  685. }
  686. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  687. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  688. return el.Name != '魔盒识字' && el.Name != '24点'
  689. })
  690. }
  691. 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) {
  692. _studentDesktopIconInfo.push(
  693. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  694. )
  695. }
  696. //循环创建桌面图标
  697. if (type == 1) {
  698. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  699. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  700. _content = $$("div", {
  701. className: "U_MD_D_KO",
  702. "onmousedown": U.UF.C.closure(function (obj) {
  703. //防止拖动图标即打开了桌面应用
  704. U.MD.D.click(this, obj);
  705. }, [_studentDesktopIconInfo[i]]),
  706. "onclick": U.UF.C.closure(function (obj) {
  707. //防止拖动图标即打开了桌面应用
  708. U.MD.D.click(this, obj);
  709. }, [_studentDesktopIconInfo[i]])
  710. }, _frag); //
  711. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  712. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  713. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  714. }
  715. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  716. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  717. _content = $$("div", {
  718. className: "U_MD_D_KO",
  719. "onmousedown": U.UF.C.closure(function (obj) {
  720. //防止拖动图标即打开了桌面应用
  721. U.MD.D.click(this, obj);
  722. }, [_studentDesktopIconInfo[i]]),
  723. "onclick": U.UF.C.closure(function (obj) {
  724. //防止拖动图标即打开了桌面应用
  725. U.MD.D.click(this, obj);
  726. }, [_studentDesktopIconInfo[i]])
  727. }, _frag); //
  728. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  729. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  730. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  731. }
  732. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  733. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  734. _content = $$("div", {
  735. className: "U_MD_D_KO",
  736. "onmousedown": U.UF.C.closure(function (obj) {
  737. //防止拖动图标即打开了桌面应用
  738. U.MD.D.click(this, obj);
  739. }, [_tcStudentDeskIconInfo[i]]),
  740. "onclick": U.UF.C.closure(function (obj) {
  741. //防止拖动图标即打开了桌面应用
  742. U.MD.D.click(this, obj);
  743. }, [_tcStudentDeskIconInfo[i]])
  744. }, _frag); //
  745. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  746. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  747. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  748. }
  749. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  750. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  751. _content = $$("div", {
  752. className: "U_MD_D_KO",
  753. "onmousedown": U.UF.C.closure(function (obj) {
  754. //防止拖动图标即打开了桌面应用
  755. U.MD.D.click(this, obj);
  756. }, [_szscStudentDeskIconInfo[i]]),
  757. "onclick": U.UF.C.closure(function (obj) {
  758. //防止拖动图标即打开了桌面应用
  759. U.MD.D.click(this, obj);
  760. }, [_szscStudentDeskIconInfo[i]])
  761. }, _frag); //
  762. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  763. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  764. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  765. }
  766. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  767. for (i = 0; i < _studentDesktopIconInfo3.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. }, [_studentDesktopIconInfo3[i]]),
  774. "onclick": U.UF.C.closure(function (obj) {
  775. //防止拖动图标即打开了桌面应用
  776. U.MD.D.click(this, obj);
  777. }, [_studentDesktopIconInfo3[i]])
  778. }, _frag); //
  779. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  780. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  781. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  782. }
  783. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  784. for (i = 0; i < _studentDesktopIconInfo2.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. }, [_studentDesktopIconInfo2[i]]),
  791. "onclick": U.UF.C.closure(function (obj) {
  792. //防止拖动图标即打开了桌面应用
  793. U.MD.D.click(this, obj);
  794. }, [_studentDesktopIconInfo2[i]])
  795. }, _frag); //
  796. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  797. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  798. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  799. }
  800. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  801. for (i = 0; i < _wanketeacherDesktopIconInfo.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. }, [_wanketeacherDesktopIconInfo[i]]),
  808. "onclick": U.UF.C.closure(function (obj) {
  809. //防止拖动图标即打开了桌面应用
  810. U.MD.D.click(this, obj);
  811. }, [_wanketeacherDesktopIconInfo[i]])
  812. }, _frag); //
  813. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  814. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  815. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  816. }
  817. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  818. for (i = 0; i < _wankeAdminDesktopIconInfo.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. }, [_wankeAdminDesktopIconInfo[i]]),
  825. "onclick": U.UF.C.closure(function (obj) {
  826. //防止拖动图标即打开了桌面应用
  827. U.MD.D.click(this, obj);
  828. }, [_wankeAdminDesktopIconInfo[i]])
  829. }, _frag); //
  830. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  831. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  832. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  833. }
  834. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  835. for (i = 0; i < _teacherDesktopIconInfo2.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. }, [_teacherDesktopIconInfo2[i]]),
  842. "onclick": U.UF.C.closure(function (obj) {
  843. //防止拖动图标即打开了桌面应用
  844. U.MD.D.click(this, obj);
  845. }, [_teacherDesktopIconInfo2[i]])
  846. }, _frag); //
  847. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  848. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  849. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  850. }
  851. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  852. for (i = 0; i < _lotechTeacherDeskIconInfo.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. }, [_lotechTeacherDeskIconInfo[i]]),
  859. "onclick": U.UF.C.closure(function (obj) {
  860. //防止拖动图标即打开了桌面应用
  861. U.MD.D.click(this, obj);
  862. }, [_lotechTeacherDeskIconInfo[i]])
  863. }, _frag); //
  864. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  865. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  866. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  867. }
  868. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  869. for (i = 0; i < _siesTeacherDeskIconInfo.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. }, [_siesTeacherDeskIconInfo[i]]),
  876. "onclick": U.UF.C.closure(function (obj) {
  877. //防止拖动图标即打开了桌面应用
  878. U.MD.D.click(this, obj);
  879. }, [_siesTeacherDeskIconInfo[i]])
  880. }, _frag); //
  881. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  882. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  883. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  884. }
  885. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  886. for (i = 0; i < _longhuaTeacherDeskIconInfo.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. }, [_longhuaTeacherDeskIconInfo[i]]),
  893. "onclick": U.UF.C.closure(function (obj) {
  894. //防止拖动图标即打开了桌面应用
  895. U.MD.D.click(this, obj);
  896. }, [_longhuaTeacherDeskIconInfo[i]])
  897. }, _frag); //
  898. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  899. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  900. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  901. }
  902. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  903. for (i = 0; i < _gdjgAdminDeskIconInfo.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. }, [_gdjgAdminDeskIconInfo[i]]),
  910. "onclick": U.UF.C.closure(function (obj) {
  911. //防止拖动图标即打开了桌面应用
  912. U.MD.D.click(this, obj);
  913. }, [_gdjgAdminDeskIconInfo[i]])
  914. }, _frag); //
  915. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  916. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  917. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  918. }
  919. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  920. for (i = 0; i < _gdjgTeacherDeskIconInfo.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. }, [_gdjgTeacherDeskIconInfo[i]]),
  927. "onclick": U.UF.C.closure(function (obj) {
  928. //防止拖动图标即打开了桌面应用
  929. U.MD.D.click(this, obj);
  930. }, [_gdjgTeacherDeskIconInfo[i]])
  931. }, _frag); //
  932. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  933. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  934. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  935. }
  936. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  937. for (i = 0; i < _futianAdminDeskIconInfo.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. }, [_futianAdminDeskIconInfo[i]]),
  944. "onclick": U.UF.C.closure(function (obj) {
  945. //防止拖动图标即打开了桌面应用
  946. U.MD.D.click(this, obj);
  947. }, [_futianAdminDeskIconInfo[i]])
  948. }, _frag); //
  949. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  950. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  951. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  952. }
  953. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  954. for (i = 0; i < _futianTeacherDeskIconInfo.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. }, [_futianTeacherDeskIconInfo[i]]),
  961. "onclick": U.UF.C.closure(function (obj) {
  962. //防止拖动图标即打开了桌面应用
  963. U.MD.D.click(this, obj);
  964. }, [_futianTeacherDeskIconInfo[i]])
  965. }, _frag); //
  966. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  967. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  968. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  969. }
  970. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  971. for (i = 0; i < _MingdeTeacherDeskIcon.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. }, [_MingdeTeacherDeskIcon[i]]),
  978. "onclick": U.UF.C.closure(function (obj) {
  979. //防止拖动图标即打开了桌面应用
  980. U.MD.D.click(this, obj);
  981. }, [_MingdeTeacherDeskIcon[i]])
  982. }, _frag); //
  983. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  984. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  985. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  986. }
  987. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  988. for (i = 0; i < _lhsAdminDesktopIconInfo.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. }, [_lhsAdminDesktopIconInfo[i]]),
  995. "onclick": U.UF.C.closure(function (obj) {
  996. //防止拖动图标即打开了桌面应用
  997. U.MD.D.click(this, obj);
  998. }, [_lhsAdminDesktopIconInfo[i]])
  999. }, _frag); //
  1000. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1001. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1002. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1003. }
  1004. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1005. for (i = 0; i < _lhsteacherDesktopIconInfo.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. }, [_lhsteacherDesktopIconInfo[i]]),
  1012. "onclick": U.UF.C.closure(function (obj) {
  1013. //防止拖动图标即打开了桌面应用
  1014. U.MD.D.click(this, obj);
  1015. }, [_lhsteacherDesktopIconInfo[i]])
  1016. }, _frag); //
  1017. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1018. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1019. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1020. }
  1021. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1022. for (i = 0; i < _zhoujiateacherDesktopIconInfo.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. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1029. "onclick": U.UF.C.closure(function (obj) {
  1030. //防止拖动图标即打开了桌面应用
  1031. U.MD.D.click(this, obj);
  1032. }, [_zhoujiateacherDesktopIconInfo[i]])
  1033. }, _frag); //
  1034. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1035. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1036. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1037. }
  1038. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1039. for (i = 0; i < _hanDeskIcon.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. }, [_hanDeskIcon[i]]),
  1046. "onclick": U.UF.C.closure(function (obj) {
  1047. //防止拖动图标即打开了桌面应用
  1048. U.MD.D.click(this, obj);
  1049. }, [_hanDeskIcon[i]])
  1050. }, _frag); //
  1051. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1052. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1053. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1054. }
  1055. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1056. for (i = 0; i < _orgStemDeskIcon.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. }, [_orgStemDeskIcon[i]]),
  1063. "onclick": U.UF.C.closure(function (obj) {
  1064. //防止拖动图标即打开了桌面应用
  1065. U.MD.D.click(this, obj);
  1066. }, [_orgStemDeskIcon[i]])
  1067. }, _frag); //
  1068. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1069. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1070. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1071. }
  1072. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1073. for (i = 0; i < _szulsDeskIcon.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. }, [_szulsDeskIcon[i]]),
  1080. "onclick": U.UF.C.closure(function (obj) {
  1081. //防止拖动图标即打开了桌面应用
  1082. U.MD.D.click(this, obj);
  1083. }, [_szulsDeskIcon[i]])
  1084. }, _frag); //
  1085. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1086. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1087. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1088. }
  1089. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1090. for (i = 0; i < _orgDesktopIconInfo.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. }, [_orgDesktopIconInfo[i]]),
  1097. "onclick": U.UF.C.closure(function (obj) {
  1098. //防止拖动图标即打开了桌面应用
  1099. U.MD.D.click(this, obj);
  1100. }, [_orgDesktopIconInfo[i]])
  1101. }, _frag); //
  1102. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1103. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1104. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1105. }
  1106. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1107. for (i = 0; i < _schoolDesktopIconInfo.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. }, [_schoolDesktopIconInfo[i]]),
  1114. "onclick": U.UF.C.closure(function (obj) {
  1115. //防止拖动图标即打开了桌面应用
  1116. U.MD.D.click(this, obj);
  1117. }, [_schoolDesktopIconInfo[i]])
  1118. }, _frag); //
  1119. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1120. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1121. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1122. }
  1123. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1124. for (i = 0; i < _GMteacherDesktopIconInfo.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. }, [_GMteacherDesktopIconInfo[i]]),
  1131. "onclick": U.UF.C.closure(function (obj) {
  1132. //防止拖动图标即打开了桌面应用
  1133. U.MD.D.click(this, obj);
  1134. }, [_GMteacherDesktopIconInfo[i]])
  1135. }, _frag); //
  1136. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1137. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1138. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1139. }
  1140. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1141. for (i = 0; i < _SONGteacherDesktopIconInfo.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. }, [_SONGteacherDesktopIconInfo[i]]),
  1148. "onclick": U.UF.C.closure(function (obj) {
  1149. //防止拖动图标即打开了桌面应用
  1150. U.MD.D.click(this, obj);
  1151. }, [_SONGteacherDesktopIconInfo[i]])
  1152. }, _frag); //
  1153. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1154. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1155. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1156. }
  1157. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1158. for (i = 0; i < _GMstudentDesktopIconInfo.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. }, [_GMstudentDesktopIconInfo[i]]),
  1165. "onclick": U.UF.C.closure(function (obj) {
  1166. //防止拖动图标即打开了桌面应用
  1167. U.MD.D.click(this, obj);
  1168. }, [_GMstudentDesktopIconInfo[i]])
  1169. }, _frag); //
  1170. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1171. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1172. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1173. }
  1174. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1175. for (i = 0; i < _tcTeacherDeskIconInfo.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. }, [_tcTeacherDeskIconInfo[i]]),
  1182. "onclick": U.UF.C.closure(function (obj) {
  1183. //防止拖动图标即打开了桌面应用
  1184. U.MD.D.click(this, obj);
  1185. }, [_tcTeacherDeskIconInfo[i]])
  1186. }, _frag); //
  1187. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1188. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1189. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1190. }
  1191. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1192. for (i = 0; i < _tcOrganizerDeskIconInfo.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. }, [_tcOrganizerDeskIconInfo[i]]),
  1199. "onclick": U.UF.C.closure(function (obj) {
  1200. //防止拖动图标即打开了桌面应用
  1201. U.MD.D.click(this, obj);
  1202. }, [_tcOrganizerDeskIconInfo[i]])
  1203. }, _frag); //
  1204. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1205. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1206. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1207. }
  1208. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1209. for (i = 0; i < _szscTeacherDeskIconInfo.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. }, [_szscTeacherDeskIconInfo[i]]),
  1216. "onclick": U.UF.C.closure(function (obj) {
  1217. //防止拖动图标即打开了桌面应用
  1218. U.MD.D.click(this, obj);
  1219. }, [_szscTeacherDeskIconInfo[i]])
  1220. }, _frag); //
  1221. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1222. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1223. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1224. }
  1225. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1226. for (i = 0; i < _szscOrganizerDeskIconInfo.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. }, [_szscOrganizerDeskIconInfo[i]]),
  1233. "onclick": U.UF.C.closure(function (obj) {
  1234. //防止拖动图标即打开了桌面应用
  1235. U.MD.D.click(this, obj);
  1236. }, [_szscOrganizerDeskIconInfo[i]])
  1237. }, _frag); //
  1238. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1239. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1240. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1241. }
  1242. } else {
  1243. for (i = 0; i < _teacherDesktopIconInfo.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. }, [_teacherDesktopIconInfo[i]]),
  1250. "onclick": U.UF.C.closure(function (obj) {
  1251. //防止拖动图标即打开了桌面应用
  1252. U.MD.D.click(this, obj);
  1253. }, [_teacherDesktopIconInfo[i]])
  1254. }, _frag); //
  1255. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1256. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1257. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1258. }
  1259. }
  1260. } else {
  1261. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1262. _content = $$("div", {
  1263. className: "U_MD_D_KO",
  1264. style: { 'width': '124px', 'height': '145px' },
  1265. "onmousedown": U.UF.C.closure(function (obj) {
  1266. //防止拖动图标即打开了桌面应用
  1267. U.MD.D.click(this, obj);
  1268. }, [_easyDesktopIconInfo[i]]),
  1269. "onclick": U.UF.C.closure(function (obj) {
  1270. //防止拖动图标即打开了桌面应用
  1271. U.MD.D.click(this, obj);
  1272. }, [_easyDesktopIconInfo[i]])
  1273. }, _frag); //
  1274. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1275. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1276. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1277. }
  1278. }
  1279. if (type == 1) {
  1280. //加载好后给图标定位
  1281. U.MD.D.iconPostion($(_frag).Child());
  1282. } else {
  1283. //加载好后给图标定位
  1284. U.MD.D.iconPostion2($(_frag).Child());
  1285. }
  1286. //把图标加载到页面
  1287. el.appendChild(_frag);
  1288. }
  1289. /**
  1290. * 显示任务栏
  1291. *
  1292. * @param {element} 桌面元素
  1293. */
  1294. U.MD.D.I.displayTaskbar = function (el) {
  1295. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1296. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1297. //任务栏位置变化
  1298. U.selectEl(el).css({ "bottom": "0px" });
  1299. //桌面位置变话
  1300. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1301. }
  1302. }
  1303. //#region 桌面图标拖动逻辑
  1304. /**
  1305. * 桌面排列图标
  1306. *
  1307. * @param {element} 桌面元素
  1308. * @param {object} 上下相距的距离
  1309. * @param {object} 左右相距的距离
  1310. * @return {object} 命名空间
  1311. */
  1312. U.MD.D.iconPostion = function (childs, top, left) {
  1313. var i; //用于循环处理
  1314. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1315. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1316. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1317. for (i = 0; i < childs.length; i++) {
  1318. //如果竖排top超过了范围处理
  1319. if (top + 95 > US.height - 10) {
  1320. //left超过了页面范围处理,则向上重叠打印处理
  1321. if ((left + 180) > US.width) {
  1322. top -= 110;
  1323. left -= 90;
  1324. }
  1325. //没有超过范围,那么left+90添加到下一个竖排打印
  1326. else {
  1327. left += 90;
  1328. top = 15;
  1329. };
  1330. }
  1331. //给图标的位置赋值
  1332. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1333. if (i < childs.length - 1) {
  1334. //页面图标每次向下加95
  1335. top += 95;
  1336. }
  1337. }
  1338. //返回最后调用的图标的位置
  1339. return [top, left];
  1340. }
  1341. /**
  1342. * 桌面排列图标
  1343. *
  1344. * @param {element} 桌面元素
  1345. * @param {object} 上下相距的距离
  1346. * @param {object} 左右相距的距离
  1347. * @return {object} 命名空间
  1348. */
  1349. U.MD.D.iconPostion2 = function (childs, top, left) {
  1350. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1351. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1352. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1353. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1354. for (i = 0; i < childs.length; i++) {
  1355. //如果竖排top超过了范围处理
  1356. if (left + 150 > US.width - 10) {
  1357. //left超过了页面范围处理,则向上重叠打印处理
  1358. if ((top + 180) > US.Height) {
  1359. top -= 150;
  1360. left -= 150;
  1361. }
  1362. //没有超过范围,那么left+90添加到下一个竖排打印
  1363. else {
  1364. top += 150;
  1365. left = ol;
  1366. };
  1367. }
  1368. //给图标的位置赋值
  1369. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1370. if (i < childs.length - 1) {
  1371. //页面图标每次向下加95
  1372. left += 150;
  1373. }
  1374. }
  1375. //返回最后调用的图标的位置
  1376. return [top, left];
  1377. }
  1378. /**
  1379. * 桌面点击事件逻辑
  1380. *
  1381. * @param {element} 桌面元素
  1382. * @param {object} 上下相距的距离
  1383. * @param {object} 左右相距的距离
  1384. * @return {object} 命名空间
  1385. */
  1386. U.MD.D.click = function (el, obj) {
  1387. var _buttonnumber = event.button; //点击的按钮的事件值
  1388. var _userinfo = US.userInfo;
  1389. U.UF.EV.stopBubble(); //阻止向上冒泡
  1390. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1391. if (_buttonnumber < 2) {
  1392. //如果是click事件的处理
  1393. if (event.type == "click") {
  1394. //如果元素在mousemove事件中没有移动则出发click事件
  1395. if (!U.MD.D.I.IsDrag) {
  1396. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1397. U.alert("请先登录您的账号!");
  1398. setTimeout(() => {
  1399. U.MD.U.L.login();
  1400. }, 2000);
  1401. } else {
  1402. //打开应用处理
  1403. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1404. }
  1405. }
  1406. }
  1407. //如果是mouse事件的处理
  1408. else {
  1409. if (US.Config.type == '1') {
  1410. //拖动处理,添加拖动和拖动结束事件
  1411. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1412. }
  1413. }
  1414. U.MD.D.I.IsDrag = false;
  1415. }
  1416. }
  1417. /**
  1418. * 拖动的处理
  1419. *
  1420. */
  1421. U.MD.D.iconMove = function () {
  1422. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1423. U.MD.D.I.IsDrag = true;
  1424. }
  1425. /**
  1426. * 拖动结束后,这里是定位处理,以网状的形式定位
  1427. *
  1428. * @param {element} 拖动的元素
  1429. * @return {object} 命名空间
  1430. */
  1431. U.MD.D.iconUp = function (el) {
  1432. var _top = 15,
  1433. _left = 20,
  1434. _margin,
  1435. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1436. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1437. if (_positioninfo["OT"] > 15) {
  1438. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1439. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1440. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1441. }
  1442. if (_positioninfo["OL"] > 20) {
  1443. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1444. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1445. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1446. }
  1447. //while循环判断么一个重叠的元素
  1448. do {
  1449. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1450. _top = _positioninfo[0] + 95; //得到定位后的top
  1451. _left = _positioninfo[1]; //得到定位后的left
  1452. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1453. }
  1454. /**
  1455. * 判断拖动后图标是否重叠
  1456. *
  1457. * @param {element} 拖动的元素
  1458. * @param {element} 桌面所有的元素
  1459. * @param {array} 拖动元素的位置
  1460. ----------[0] 上 top
  1461. ----------[1] 左 left
  1462. * @return {object} 命名空间
  1463. */
  1464. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1465. //循环所有的图标
  1466. for (var i = 0; i < childs.length; i++) {
  1467. //判断有没有和该图标诶子重叠的元素
  1468. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1469. return childs[i]; //如果有返回
  1470. }
  1471. }
  1472. }
  1473. //#endregion
  1474. //#endregion
  1475. //#region 桌面应用
  1476. /**
  1477. * 打开应用
  1478. *
  1479. * @param {string} 类型
  1480. -----------------Disk 网盘系统
  1481. -----------------PDisk 学习系统网盘
  1482. -----------------Poto 图片
  1483. -----------------Video 视频
  1484. -----------------Music 音乐
  1485. -----------------Word word
  1486. -----------------Excel excel
  1487. -----------------Txt 记事本
  1488. -----------------PB 学习系统
  1489. -----------------Blog 朋友圈系统
  1490. -----------------FTP ftp系统
  1491. -----------------Group 好友群
  1492. -----------------SY 首页系统
  1493. -----------------Set 个人设置
  1494. -----------------XSet 系统设置
  1495. -----------------App 我们所有的app
  1496. -----------------BC c.1473.cn 平台
  1497. -----------------CWeb d.1473.cn 变成平台
  1498. -----------------其他的外联系统 我们统一用iframe打开
  1499. * @param {array} 类型
  1500. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1501. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1502. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1503. 如果第一个参数为其他,则无第二个参数
  1504. * @returns {array}
  1505. */
  1506. window.addEventListener('message', function (e) { // 监听 message 事件
  1507. // alert(e.data.type);
  1508. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1509. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1510. //3是展示全部阶段 2学生 1老师 4专家
  1511. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1512. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1513. //3是展示全部阶段 2学生 1老师 4专家
  1514. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1515. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1516. //3是展示全部阶段 2学生 1老师 4专家
  1517. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1518. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1519. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1520. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1521. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1522. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1523. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1524. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1525. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1526. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1527. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1528. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1529. //3是展示全部阶段 2学生 1老师 4专家
  1530. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1531. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1532. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1533. U.MD.D.I.selectUser();
  1534. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1535. var _formel = document.getElementById("study");
  1536. U.UF.F.windowZooming(_formel);
  1537. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1538. var _formel = document.getElementById("studyDetail");
  1539. U.UF.F.windowZooming(_formel);
  1540. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1541. var _formel = document.getElementById("studyDetail");
  1542. U.UF.F.windowZooming(_formel);
  1543. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1544. var _formel = document.getElementById("studentStudy");
  1545. U.UF.F.windowZooming(_formel);
  1546. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1547. // var _formel = document.getElementById("study");
  1548. //如果最大化了,那么就把他缩小
  1549. // if (_formel.ismaximize) {
  1550. // return;
  1551. // }
  1552. // U.UF.F.windowZooming(_formel);
  1553. // U.UF.F.topWindow(_formel);
  1554. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1555. // var _formel = document.getElementById("studyDetail");
  1556. //如果最大化了,那么就把他缩小
  1557. // if (_formel.ismaximize) {
  1558. // return;
  1559. // }
  1560. // U.UF.F.windowZooming(_formel);
  1561. // U.UF.F.topWindow(_formel);
  1562. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1563. // var _formel = document.getElementById("studentStudy");
  1564. // if (_formel.ismaximize) {
  1565. // return;
  1566. // }
  1567. // U.UF.F.windowZooming(_formel);
  1568. // U.UF.F.topWindow(_formel);
  1569. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1570. var _formel = document.getElementById("study");
  1571. // if (_formel.ismaximize) {
  1572. // return;
  1573. // }
  1574. // U.UF.F.windowZooming(_formel);
  1575. U.UF.F.topWindow(_formel);
  1576. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1577. var _formel = document.getElementById("studentIndex");
  1578. U.UF.F.windowZooming(_formel);
  1579. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1580. var _formel = document.getElementById("studyDetailS");
  1581. U.UF.F.windowZooming(_formel);
  1582. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1583. var _formel = document.getElementById("studioIndex");
  1584. U.UF.F.windowZooming(_formel);
  1585. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1586. var _formel = document.getElementById("studyDetailStudio");
  1587. U.UF.F.windowZooming(_formel);
  1588. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1589. var _formel = document.getElementById("studyDetailStudio");
  1590. U.UF.F.windowZooming(_formel);
  1591. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1592. var _formel = document.getElementById("studyDetailNT");
  1593. U.UF.F.windowZooming(_formel);
  1594. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1595. var _formel = document.getElementById("studyDetailS");
  1596. U.UF.F.windowZooming(_formel);
  1597. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1598. var _formel = document.getElementById("studyDetailS");
  1599. U.UF.F.topWindow(_formel);
  1600. } else if (e.data.tools && e.data.tools == "1") {
  1601. // U.MD.D.I.openApplication("whiteboard")
  1602. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1603. } else if (e.data.tools && e.data.tools == "2") {
  1604. U.MD.D.I.openApplication("note")
  1605. } else if (e.data.tools && e.data.tools == "3") {
  1606. // U.MD.D.I.openApplication("mind")
  1607. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1608. } else if (e.data.tools && e.data.tools == "4") {
  1609. U.MD.D.I.openApplication("investigation")
  1610. } else if (e.data.tools && e.data.tools == "6") {
  1611. // U.MD.D.I.openApplication("doc")
  1612. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1613. } else if (e.data.tools && e.data.tools == "7") {
  1614. // U.MD.D.I.openApplication("mindNetwork")
  1615. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1616. } else if (e.data.tools && e.data.tools == "8") {
  1617. U.MD.D.I.openApplication("library")
  1618. } else if (e.data.tools && e.data.tools == "17") {
  1619. U.MD.D.I.openApplication("stuLibrary")
  1620. } else if (e.data.tools && e.data.tools == "18") {
  1621. U.MD.D.I.openApplication("train")
  1622. } else if (e.data.tools && e.data.tools == "21") {
  1623. U.MD.D.I.openApplication("program")
  1624. } else if (e.data.tools && e.data.tools == "22") {
  1625. U.MD.D.I.openApplication("AIprogram2")
  1626. } else if (e.data.tools && e.data.tools == "23") {
  1627. U.MD.D.I.openApplication("Pythonprogram")
  1628. } else if (e.data.tools && e.data.tools == "24") {
  1629. U.MD.D.I.openApplication("AIprogram")
  1630. } else if (e.data.tools && e.data.tools == "25") {
  1631. U.MD.D.I.openApplication("sys")
  1632. } else if (e.data.tools && e.data.tools == "26") {
  1633. // U.MD.D.I.openApplication("courseDesign")
  1634. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1635. } else if (e.data.tools && e.data.tools == "31") {
  1636. U.MD.D.I.openApplication("netWorkPanel")
  1637. } else if (e.data.tools && e.data.tools == "32") {
  1638. U.MD.D.I.openApplication("codeEdit")
  1639. } else if (e.data.tools && e.data.tools == "57") {
  1640. U.MD.D.I.openApplication("CocoPi")
  1641. } else if (e.data.tools && e.data.tools == "63") {
  1642. U.MD.D.I.openApplication("Wood")
  1643. } else if (e.data.tools && e.data.tools == "58") {
  1644. U.MD.D.I.openApplication("car")
  1645. } else if (e.data.tools && e.data.tools == "59") {
  1646. U.MD.D.I.openApplication("lineSearch")
  1647. } else if (e.data.tools && e.data.tools == "60") {
  1648. U.MD.D.I.openApplication("deepLearning")
  1649. } else if (e.data.tools && e.data.tools == "61") {
  1650. U.MD.D.I.openApplication("allHistory")
  1651. } else if (e.data.tools && e.data.tools == "28") {
  1652. U.MD.D.I.openApplication("translation")
  1653. } else if (e.data.tools && e.data.tools == "37") {
  1654. U.MD.D.I.openApplication("mohe")
  1655. } else if (e.data.tools && e.data.tools == "38") {
  1656. U.MD.D.I.openApplication("24game")
  1657. } else if (e.data.tools && e.data.tools == "39") {
  1658. U.MD.D.I.openApplication("GeoGebra")
  1659. } else if (e.data.tools && e.data.tools == "43") {
  1660. U.MD.D.I.openApplication("studentEvaluate")
  1661. } else if (e.data.tools && e.data.tools == "44") {
  1662. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1663. } else if (e.data.tools && e.data.tools == "46") {
  1664. U.MD.D.I.openApplication("project")
  1665. } else if (e.data.tools && e.data.tools == "1s") {
  1666. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1667. } else if (e.data.tools && e.data.tools == "3s") {
  1668. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1669. } else if (e.data.tools && e.data.tools == "6s") {
  1670. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1671. } else if (e.data.tools && e.data.tools == "1studio") {
  1672. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1673. } else if (e.data.tools && e.data.tools == "3studio") {
  1674. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1675. } else if (e.data.tools && e.data.tools == "6studio") {
  1676. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1677. } else if (e.data.tools && e.data.tools == "3y") {
  1678. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1679. } else if (e.data.tools && e.data.tools == "1y") {
  1680. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1681. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1682. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1683. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1684. U.MD.D.I.openApplication("AIAnalyse")
  1685. } else if (e.data.tools && e.data.tools == "1teacher") {
  1686. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1687. } else if (e.data.tools && e.data.tools == "3teacher") {
  1688. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1689. } else if (e.data.tools && e.data.tools == "7teacher") {
  1690. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1691. } else if (e.data.tools && e.data.tools == "1teacherE") {
  1692. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1693. } else if (e.data.tools && e.data.tools == "3teacherE") {
  1694. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1695. } else if (e.data.tools && e.data.tools == "1E") {
  1696. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1697. } else if (e.data.tools && e.data.tools == "3E") {
  1698. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1699. } else if (e.data.tools && e.data.tools == "57u") {
  1700. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1701. } else if (e.data.tools && e.data.tools == "57teacher") {
  1702. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1703. }
  1704. });
  1705. U.MD.D.I.selectUser = function () {
  1706. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1707. if (res.value[0].length > 0) {
  1708. US.userInfo = res.value[0][0];
  1709. $(".userName")[0].innerHTML = US.userInfo.username;
  1710. }
  1711. }, [], { "type": "GET", "withCredentials": true });
  1712. }
  1713. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1714. var _userinfo = US.userInfo, //登录用户信息
  1715. _userid = US.userInfo.userid, //登录用户id
  1716. _oid = _userinfo.organizeid,
  1717. _type = US.userInfo.type,
  1718. _org = US.userInfo.org,
  1719. _role = US.userInfo.role,
  1720. _classId = US.userInfo.classid;
  1721. if (_type == 4) {
  1722. tType = 4
  1723. }
  1724. switch (str) {
  1725. case "studyDetailNT"://无终端模式
  1726. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1727. setTimeout(() => {
  1728. U.MD.U.L.login();
  1729. }, 2000);
  1730. } else {
  1731. _formdiv = new U.UF.UI.form(
  1732. "课程详情",
  1733. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailNT?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1734. "id": "studyDetailNT",
  1735. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1736. "onresize": function () { }
  1737. }, {
  1738. closecallback: function () { }
  1739. }, { "style": { "height": "36px" } }).form; //创建窗体
  1740. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1741. break;
  1742. }
  1743. case "studyDetail":
  1744. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1745. setTimeout(() => {
  1746. U.MD.U.L.login();
  1747. }, 2000);
  1748. } else {
  1749. _formdiv = new U.UF.UI.form(
  1750. "课程详情",
  1751. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1752. "id": "studyDetail",
  1753. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1754. "onresize": function () { }
  1755. }, {
  1756. closecallback: function () { }
  1757. }, { "style": { "height": "36px" } }).form; //创建窗体
  1758. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1759. break;
  1760. }
  1761. case "studyDetailS":
  1762. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1763. setTimeout(() => {
  1764. U.MD.U.L.login();
  1765. }, 2000);
  1766. } else {
  1767. _formdiv = new U.UF.UI.form(
  1768. "项目详情",
  1769. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1770. "id": "studyDetailS",
  1771. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1772. "onresize": function () { }
  1773. }, {
  1774. closecallback: function () { }
  1775. }, { "style": { "height": "36px" } }).form; //创建窗体
  1776. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1777. break;
  1778. }
  1779. case "studyDetailStudio":
  1780. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1781. setTimeout(() => {
  1782. U.MD.U.L.login();
  1783. }, 2000);
  1784. } else {
  1785. _formdiv = new U.UF.UI.form(
  1786. "工作详情",
  1787. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailStudio?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1788. "id": "studyDetailStudio",
  1789. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1790. "onresize": function () { }
  1791. }, {
  1792. closecallback: function () { }
  1793. }, { "style": { "height": "36px" } }).form; //创建窗体
  1794. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioCourse.png)" }, "name": "工作详情", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1795. break;
  1796. }
  1797. case "studyDetailS5":
  1798. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1799. setTimeout(() => {
  1800. U.MD.U.L.login();
  1801. }, 2000);
  1802. } else {
  1803. _formdiv = new U.UF.UI.form(
  1804. "项目详情",
  1805. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studyStudentS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1806. "id": "studyDetailS",
  1807. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1808. "onresize": function () { }
  1809. }, {
  1810. closecallback: function () { }
  1811. }, { "style": { "height": "36px" } }).form; //创建窗体
  1812. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1813. break;
  1814. }
  1815. case "studyDetailGM":
  1816. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1817. setTimeout(() => {
  1818. U.MD.U.L.login();
  1819. }, 2000);
  1820. } else {
  1821. _formdiv = new U.UF.UI.form(
  1822. "课程详情",
  1823. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1824. "id": "studyDetail",
  1825. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1826. "onresize": function () { }
  1827. }, {
  1828. closecallback: function () { }
  1829. }, { "style": { "height": "36px" } }).form; //创建窗体
  1830. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1831. break;
  1832. }
  1833. case "hanUrl":
  1834. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1835. setTimeout(() => {
  1836. U.MD.U.L.login();
  1837. }, 2000);
  1838. } else {
  1839. _formdiv = new U.UF.UI.form(
  1840. "汉字宫",
  1841. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//school.hanzigon.cn/?appid=734714090237947#/material/video?grade_id=62&lesson_code=621&id=2432" }), {
  1842. "id": "hanUrl",
  1843. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1844. "onresize": function () { }
  1845. }, {
  1846. closecallback: function () { }
  1847. }, { "style": { "height": "36px" } }).form; //创建窗体
  1848. _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); } }
  1849. break;
  1850. }
  1851. }
  1852. }
  1853. U.MD.D.I.openApplication = function (str, obj, info) {
  1854. obj = obj || {};
  1855. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1856. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1857. _userinfo = US.userInfo, //登录用户信息
  1858. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1859. _oid = obj.organizeid || _userinfo.organizeid,
  1860. _type = US.userInfo.type,
  1861. _org = US.userInfo.org,
  1862. _role = US.userInfo.role,
  1863. _classId = US.userInfo.classid,
  1864. _TscreenType = 1
  1865. _screenType = 2,
  1866. _SscreenType = 3;
  1867. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1868. return;
  1869. }
  1870. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1871. switch (str) {
  1872. case "studnetProject": //好友打开
  1873. _formdiv = new U.UF.UI.form(
  1874. "我的项目",
  1875. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  1876. "id": "studnetProject",
  1877. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1878. "onresize": function () { }
  1879. }, {
  1880. closecallback: function () { }
  1881. }, { "style": { "height": "36px" } }).form; //创建窗体
  1882. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1883. break;
  1884. case "studentEvaluate": //好友打开
  1885. _formdiv = new U.UF.UI.form(
  1886. "我的评价",
  1887. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1888. "id": "studentEvaluate",
  1889. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1890. "onresize": function () { }
  1891. }, {
  1892. closecallback: function () { }
  1893. }, { "style": { "height": "36px" } }).form; //创建窗体
  1894. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1895. break;
  1896. case "my":
  1897. _formdiv = new U.UF.UI.form(
  1898. "我的资料",
  1899. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  1900. "id": "my",
  1901. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1902. "onresize": function () { }
  1903. }, {
  1904. closecallback: function () { }
  1905. }, { "style": { "height": "36px" } }).form; //创建窗体
  1906. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1907. break;
  1908. case "program":
  1909. _formdiv = new U.UF.UI.form(
  1910. "编程平台",
  1911. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1912. "id": "program",
  1913. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1914. "onresize": function () { }
  1915. }, {
  1916. closecallback: function () { }
  1917. }, { "style": { "height": "36px" } }).form; //创建窗体
  1918. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1919. break;
  1920. case "library":
  1921. _formdiv = new U.UF.UI.form(
  1922. "素材库",
  1923. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  1924. "id": "library",
  1925. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1926. "onresize": function () { }
  1927. }, {
  1928. closecallback: function () { }
  1929. }, { "style": { "height": "36px" } }).form; //创建窗体
  1930. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1931. break;
  1932. case "whiteboard":
  1933. _formdiv = new U.UF.UI.form(
  1934. "电子白板",
  1935. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1936. "id": "whiteboard",
  1937. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1938. "onresize": function () { }
  1939. }, {
  1940. closecallback: function () { }
  1941. }, { "style": { "height": "36px" } }).form; //创建窗体
  1942. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1943. break;
  1944. case "investigation":
  1945. _formdiv = new U.UF.UI.form(
  1946. "问卷调查",
  1947. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  1948. "id": "investigation",
  1949. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1950. "onresize": function () { }
  1951. }, {
  1952. closecallback: function () { }
  1953. }, { "style": { "height": "36px" } }).form; //创建窗体
  1954. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1955. break;
  1956. case "note":
  1957. _formdiv = new U.UF.UI.form(
  1958. "便签分类",
  1959. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  1960. "id": "note",
  1961. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1962. "onresize": function () { }
  1963. }, {
  1964. closecallback: function () { }
  1965. }, { "style": { "height": "36px" } }).form; //创建窗体
  1966. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1967. break;
  1968. // case "score":
  1969. // _formdiv = new U.UF.UI.form(
  1970. // "量规评分",
  1971. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  1972. // "id": "score",
  1973. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1974. // "onresize": function() {}
  1975. // }, {
  1976. // closecallback: function() {}
  1977. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1978. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1979. // break;
  1980. case "mind":
  1981. _formdiv = new U.UF.UI.form(
  1982. "思维导图",
  1983. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1984. "id": "mind",
  1985. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1986. "onresize": function () { }
  1987. }, {
  1988. closecallback: function () { }
  1989. }, { "style": { "height": "36px" } }).form; //创建窗体
  1990. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1991. break;
  1992. case "doc":
  1993. // U.MD.D.I.isRoom();
  1994. _formdiv = new U.UF.UI.form(
  1995. "协同文档",
  1996. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1997. "id": "doc",
  1998. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1999. "onresize": function () { }
  2000. }, {
  2001. closecallback: function () { }
  2002. }, { "style": { "height": "36px" } }).form; //创建窗体
  2003. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2004. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2005. // })
  2006. _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); } }
  2007. break;
  2008. case "studentStudy":
  2009. _formdiv = new U.UF.UI.form(
  2010. "课程中心",
  2011. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2012. "id": "studentStudy",
  2013. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2014. "onresize": function () { }
  2015. }, {
  2016. closecallback: function () { }
  2017. }, { "style": { "height": "36px" } }).form; //创建窗体
  2018. _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); } }
  2019. break;
  2020. case "train": //好友打开
  2021. _formdiv = new U.UF.UI.form(
  2022. "训练平台",
  2023. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2024. "id": "train",
  2025. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2026. "onresize": function () { }
  2027. }, {
  2028. closecallback: function () { }
  2029. }, { "style": { "height": "36px" } }).form; //创建窗体
  2030. _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); } }
  2031. break;
  2032. case "mindNetwork": //好友打开
  2033. _formdiv = new U.UF.UI.form(
  2034. "思维网格",
  2035. $$("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 }), {
  2036. "id": "mindNetwork",
  2037. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2038. "onresize": function () { }
  2039. }, {
  2040. closecallback: function () { }
  2041. }, { "style": { "height": "36px" } }).form; //创建窗体
  2042. _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); } }
  2043. break;
  2044. case "studentClassRoom": //好友打开
  2045. _formdiv = new U.UF.UI.form(
  2046. "实时课堂",
  2047. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/liveRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2048. "id": "studentClassRoom",
  2049. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2050. "onresize": function () { }
  2051. }, {
  2052. closecallback: function () { }
  2053. }, { "style": { "height": "36px" } }).form; //创建窗体
  2054. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2055. setTimeout(() => {
  2056. U.UF.F.windowZooming(_formdiv)
  2057. }, 0);
  2058. break;
  2059. }
  2060. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2061. switch (str) {
  2062. case "studnetProject": //好友打开
  2063. _formdiv = new U.UF.UI.form(
  2064. "我的项目",
  2065. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  2066. "id": "studnetProject",
  2067. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2068. "onresize": function () { }
  2069. }, {
  2070. closecallback: function () { }
  2071. }, { "style": { "height": "36px" } }).form; //创建窗体
  2072. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2073. break;
  2074. case "studentEvaluate": //好友打开
  2075. _formdiv = new U.UF.UI.form(
  2076. "我的评价",
  2077. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2078. "id": "studentEvaluate",
  2079. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2080. "onresize": function () { }
  2081. }, {
  2082. closecallback: function () { }
  2083. }, { "style": { "height": "36px" } }).form; //创建窗体
  2084. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2085. break;
  2086. case "my":
  2087. _formdiv = new U.UF.UI.form(
  2088. "我的资料",
  2089. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  2090. "id": "my",
  2091. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2092. "onresize": function () { }
  2093. }, {
  2094. closecallback: function () { }
  2095. }, { "style": { "height": "36px" } }).form; //创建窗体
  2096. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2097. break;
  2098. case "program":
  2099. _formdiv = new U.UF.UI.form(
  2100. "编程平台",
  2101. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2102. "id": "program",
  2103. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2104. "onresize": function () { }
  2105. }, {
  2106. closecallback: function () { }
  2107. }, { "style": { "height": "36px" } }).form; //创建窗体
  2108. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2109. break;
  2110. case "library":
  2111. _formdiv = new U.UF.UI.form(
  2112. "素材库",
  2113. $$("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 }), {
  2114. "id": "library",
  2115. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2116. "onresize": function () { }
  2117. }, {
  2118. closecallback: function () { }
  2119. }, { "style": { "height": "36px" } }).form; //创建窗体
  2120. _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); } }
  2121. break;
  2122. case "whiteboard":
  2123. _formdiv = new U.UF.UI.form(
  2124. "电子白板",
  2125. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2126. "id": "whiteboard",
  2127. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2128. "onresize": function () { }
  2129. }, {
  2130. closecallback: function () { }
  2131. }, { "style": { "height": "36px" } }).form; //创建窗体
  2132. _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); } }
  2133. break;
  2134. case "investigation":
  2135. _formdiv = new U.UF.UI.form(
  2136. "问卷调查",
  2137. $$("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 }), {
  2138. "id": "investigation",
  2139. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2140. "onresize": function () { }
  2141. }, {
  2142. closecallback: function () { }
  2143. }, { "style": { "height": "36px" } }).form; //创建窗体
  2144. _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); } }
  2145. break;
  2146. case "note":
  2147. _formdiv = new U.UF.UI.form(
  2148. "便签分类",
  2149. $$("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 }), {
  2150. "id": "note",
  2151. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2152. "onresize": function () { }
  2153. }, {
  2154. closecallback: function () { }
  2155. }, { "style": { "height": "36px" } }).form; //创建窗体
  2156. _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); } }
  2157. break;
  2158. // case "score":
  2159. // _formdiv = new U.UF.UI.form(
  2160. // "量规评分",
  2161. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2162. // "id": "score",
  2163. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2164. // "onresize": function() {}
  2165. // }, {
  2166. // closecallback: function() {}
  2167. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2168. // _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); } }
  2169. // break;
  2170. case "mind":
  2171. _formdiv = new U.UF.UI.form(
  2172. "思维导图",
  2173. $$("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"
  2174. "id": "mind",
  2175. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2176. "onresize": function () { }
  2177. }, {
  2178. closecallback: function () { }
  2179. }, { "style": { "height": "36px" } }).form; //创建窗体
  2180. _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); } }
  2181. break;
  2182. case "doc":
  2183. // U.MD.D.I.isRoom();
  2184. _formdiv = new U.UF.UI.form(
  2185. "协同文档",
  2186. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2187. "id": "doc",
  2188. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2189. "onresize": function () { }
  2190. }, {
  2191. closecallback: function () { }
  2192. }, { "style": { "height": "36px" } }).form; //创建窗体
  2193. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2194. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2195. })
  2196. _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); } }
  2197. break;
  2198. case "train": //好友打开
  2199. _formdiv = new U.UF.UI.form(
  2200. "训练平台",
  2201. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2202. "id": "train",
  2203. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2204. "onresize": function () { }
  2205. }, {
  2206. closecallback: function () { }
  2207. }, { "style": { "height": "36px" } }).form; //创建窗体
  2208. _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); } }
  2209. break;
  2210. case "studentStudy":
  2211. _formdiv = new U.UF.UI.form(
  2212. "课程中心",
  2213. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2214. "id": "studentStudy",
  2215. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2216. "onresize": function () { }
  2217. }, {
  2218. closecallback: function () { }
  2219. }, { "style": { "height": "36px" } }).form; //创建窗体
  2220. _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); } }
  2221. break;
  2222. case "mindNetwork": //好友打开
  2223. _formdiv = new U.UF.UI.form(
  2224. "思维网格",
  2225. $$("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 }), {
  2226. "id": "mindNetwork",
  2227. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2228. "onresize": function () { }
  2229. }, {
  2230. closecallback: function () { }
  2231. }, { "style": { "height": "36px" } }).form; //创建窗体
  2232. _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); } }
  2233. break;
  2234. case "studentClassRoom": //好友打开
  2235. _formdiv = new U.UF.UI.form(
  2236. "实时课堂",
  2237. $$("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 }), {
  2238. "id": "studentClassRoom",
  2239. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2240. "onresize": function () { }
  2241. }, {
  2242. closecallback: function () { }
  2243. }, { "style": { "height": "36px" } }).form; //创建窗体
  2244. _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); } }
  2245. setTimeout(() => {
  2246. U.UF.F.windowZooming(_formdiv)
  2247. }, 0);
  2248. break;
  2249. }
  2250. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2251. //选择应用处理
  2252. switch (str) {
  2253. case "project": //好友打开
  2254. _formdiv = new U.UF.UI.form(
  2255. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2256. $$("iframe", { "allow": "camera *; microphone *;display-capture;clipboard-write;clipboard-read", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "","frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2257. "id": "project",
  2258. "style": { "width": "90%", "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/project.png)" }, "name": _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2264. break;
  2265. case "student":
  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/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  2269. "id": "student",
  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/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2276. break;
  2277. case "evaluate":
  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": US.Config.bpbl + "/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2281. "id": "evaluate",
  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/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2288. break;
  2289. case "sys":
  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/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2293. "id": "sys",
  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/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2300. break;
  2301. case "courseDesign":
  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": "/course-design-vue" }), {
  2305. "id": "courseDesign",
  2306. "style": { "width": "90%", "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/courseDesign.png)" }, "name": "项目设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2312. break;
  2313. case "program":
  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": "https://x.cocorobo.cn" }), {
  2317. "id": "program",
  2318. "style": { "width": "70%", "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/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2324. break;
  2325. case "class":
  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": US.Config.bpbl + "/pbl-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2329. "id": "class",
  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/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2336. break;
  2337. case "my":
  2338. _formdiv = new U.UF.UI.form(
  2339. "我的资料",
  2340. $$("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 }), {
  2341. "id": "my",
  2342. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2343. "onresize": function () { }
  2344. }, {
  2345. closecallback: function () { }
  2346. }, { "style": { "height": "36px" } }).form; //创建窗体
  2347. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2348. break;
  2349. case "notice":
  2350. _formdiv = new U.UF.UI.form(
  2351. "通知公告",
  2352. $$("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 }), {
  2353. "id": "notice",
  2354. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2355. "onresize": function () { }
  2356. }, {
  2357. closecallback: function () { }
  2358. }, { "style": { "height": "36px" } }).form; //创建窗体
  2359. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2360. break;
  2361. case "library":
  2362. _formdiv = new U.UF.UI.form(
  2363. "素材库",
  2364. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  2365. "id": "library",
  2366. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2367. "onresize": function () { }
  2368. }, {
  2369. closecallback: function () { }
  2370. }, { "style": { "height": "36px" } }).form; //创建窗体
  2371. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2372. break;
  2373. case "whiteboard":
  2374. _formdiv = new U.UF.UI.form(
  2375. "电子白板",
  2376. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2377. "id": "whiteboard",
  2378. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2379. "onresize": function () { }
  2380. }, {
  2381. closecallback: function () { }
  2382. }, { "style": { "height": "36px" } }).form; //创建窗体
  2383. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2384. break;
  2385. case "investigation":
  2386. _formdiv = new U.UF.UI.form(
  2387. "问卷调查",
  2388. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  2389. "id": "investigation",
  2390. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2391. "onresize": function () { }
  2392. }, {
  2393. closecallback: function () { }
  2394. }, { "style": { "height": "36px" } }).form; //创建窗体
  2395. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2396. break;
  2397. case "note":
  2398. _formdiv = new U.UF.UI.form(
  2399. "便签分类",
  2400. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  2401. "id": "note",
  2402. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2403. "onresize": function () { }
  2404. }, {
  2405. closecallback: function () { }
  2406. }, { "style": { "height": "36px" } }).form; //创建窗体
  2407. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2408. break;
  2409. // case "score":
  2410. // _formdiv = new U.UF.UI.form(
  2411. // "量规评分",
  2412. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2413. // "id": "score",
  2414. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2415. // "onresize": function() {}
  2416. // }, {
  2417. // closecallback: function() {}
  2418. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2419. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2420. // break;
  2421. case "mind":
  2422. _formdiv = new U.UF.UI.form(
  2423. "思维导图",
  2424. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  2425. "id": "mind",
  2426. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2427. "onresize": function () { }
  2428. }, {
  2429. closecallback: function () { }
  2430. }, { "style": { "height": "36px" } }).form; //创建窗体
  2431. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2432. break;
  2433. case "doc":
  2434. // U.MD.D.I.isRoom();
  2435. _formdiv = new U.UF.UI.form(
  2436. "协同文档",
  2437. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2438. "id": "doc",
  2439. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2440. "onresize": function () { }
  2441. }, {
  2442. closecallback: function () { }
  2443. }, { "style": { "height": "36px" } }).form; //创建窗体
  2444. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2445. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2446. })
  2447. _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); } }
  2448. break;
  2449. case "study":
  2450. _formdiv = new U.UF.UI.form(
  2451. "课程中心",
  2452. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2453. "id": "study",
  2454. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2455. "onresize": function () { }
  2456. }, {
  2457. closecallback: function () { }
  2458. }, { "style": { "height": "36px" } }).form; //创建窗体
  2459. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2460. break;
  2461. case "mindNetwork": //好友打开
  2462. _formdiv = new U.UF.UI.form(
  2463. "思维网格",
  2464. $$("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 }), {
  2465. "id": "mindNetwork",
  2466. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2467. "onresize": function () { }
  2468. }, {
  2469. closecallback: function () { }
  2470. }, { "style": { "height": "36px" } }).form; //创建窗体
  2471. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2472. break;
  2473. case "train": //好友打开
  2474. _formdiv = new U.UF.UI.form(
  2475. "训练平台",
  2476. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2477. "id": "mindNetwork",
  2478. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2479. "onresize": function () { }
  2480. }, {
  2481. closecallback: function () { }
  2482. }, { "style": { "height": "36px" } }).form; //创建窗体
  2483. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2484. break;
  2485. case "teacherClassRoom": //好友打开
  2486. _formdiv = new U.UF.UI.form(
  2487. "实时课堂",
  2488. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/classRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2489. "id": "teacherClassRoom",
  2490. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2491. "onresize": function () { }
  2492. }, {
  2493. closecallback: function () { }
  2494. }, { "style": { "height": "36px" } }).form; //创建窗体
  2495. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2496. setTimeout(() => {
  2497. U.UF.F.windowZooming(_formdiv)
  2498. }, 0);
  2499. break;
  2500. }
  2501. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2502. switch (str) {
  2503. case "project": //好友打开
  2504. _formdiv = new U.UF.UI.form(
  2505. "课程管理",
  2506. $$("iframe", { "allow": "camera *; microphone *;display-capture;clipboard-write;clipboard-read", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "","frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2507. "id": "project",
  2508. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2509. "onresize": function () { }
  2510. }, {
  2511. closecallback: function () { }
  2512. }, { "style": { "height": "36px" } }).form; //创建窗体
  2513. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2514. break;
  2515. case "evaluate":
  2516. _formdiv = new U.UF.UI.form(
  2517. "学生评价",
  2518. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2519. "id": "evaluate",
  2520. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2521. "onresize": function () { }
  2522. }, {
  2523. closecallback: function () { }
  2524. }, { "style": { "height": "36px" } }).form; //创建窗体
  2525. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2526. break;
  2527. case "notice":
  2528. _formdiv = new U.UF.UI.form(
  2529. "通知公告",
  2530. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  2531. "id": "notice",
  2532. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2533. "onresize": function () { }
  2534. }, {
  2535. closecallback: function () { }
  2536. }, { "style": { "height": "36px" } }).form; //创建窗体
  2537. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2538. break;
  2539. case "stuLibrary":
  2540. _formdiv = new U.UF.UI.form(
  2541. "学习资料",
  2542. $$("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 }), {
  2543. "id": "stuLibrary",
  2544. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2545. "onresize": function () { }
  2546. }, {
  2547. closecallback: function () { }
  2548. }, { "style": { "height": "36px" } }).form; //创建窗体
  2549. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/stuLibrary.png)" }, "name": "学习资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2550. break;
  2551. case "program":
  2552. _formdiv = new U.UF.UI.form(
  2553. "编程平台",
  2554. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2555. "id": "program",
  2556. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2557. "onresize": function () { }
  2558. }, {
  2559. closecallback: function () { }
  2560. }, { "style": { "height": "36px" } }).form; //创建窗体
  2561. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2562. break;
  2563. case "whiteboard":
  2564. _formdiv = new U.UF.UI.form(
  2565. "电子白板",
  2566. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2567. "id": "whiteboard",
  2568. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2569. "onresize": function () { }
  2570. }, {
  2571. closecallback: function () { }
  2572. }, { "style": { "height": "36px" } }).form; //创建窗体
  2573. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2574. break;
  2575. case "investigation":
  2576. _formdiv = new U.UF.UI.form(
  2577. "问卷调查",
  2578. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  2579. "id": "investigation",
  2580. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2581. "onresize": function () { }
  2582. }, {
  2583. closecallback: function () { }
  2584. }, { "style": { "height": "36px" } }).form; //创建窗体
  2585. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2586. break;
  2587. case "mind":
  2588. _formdiv = new U.UF.UI.form(
  2589. "思维导图",
  2590. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  2591. "id": "mind",
  2592. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2593. "onresize": function () { }
  2594. }, {
  2595. closecallback: function () { }
  2596. }, { "style": { "height": "36px" } }).form; //创建窗体
  2597. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2598. break;
  2599. case "doc":
  2600. // U.MD.D.I.isRoom();
  2601. _formdiv = new U.UF.UI.form(
  2602. "协同文档",
  2603. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2604. "id": "doc",
  2605. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2606. "onresize": function () { }
  2607. }, {
  2608. closecallback: function () { }
  2609. }, { "style": { "height": "36px" } }).form; //创建窗体
  2610. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2611. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2612. })
  2613. _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); } }
  2614. break;
  2615. case "study":
  2616. _formdiv = new U.UF.UI.form(
  2617. "课程中心",
  2618. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2619. "id": "study",
  2620. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2621. "onresize": function () { }
  2622. }, {
  2623. closecallback: function () { }
  2624. }, { "style": { "height": "36px" } }).form; //创建窗体
  2625. _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); } }
  2626. break;
  2627. case "mindNetwork": //好友打开
  2628. _formdiv = new U.UF.UI.form(
  2629. "思维网格",
  2630. $$("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 }), {
  2631. "id": "mindNetwork",
  2632. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2633. "onresize": function () { }
  2634. }, {
  2635. closecallback: function () { }
  2636. }, { "style": { "height": "36px" } }).form; //创建窗体
  2637. _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); } }
  2638. break;
  2639. case "train": //好友打开
  2640. _formdiv = new U.UF.UI.form(
  2641. "训练平台",
  2642. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2643. "id": "train",
  2644. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2645. "onresize": function () { }
  2646. }, {
  2647. closecallback: function () { }
  2648. }, { "style": { "height": "36px" } }).form; //创建窗体
  2649. _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); } }
  2650. break;
  2651. case "sys":
  2652. _formdiv = new U.UF.UI.form(
  2653. "目标管理",
  2654. $$("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 }), {
  2655. "id": "sys",
  2656. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2657. "onresize": function () { }
  2658. }, {
  2659. closecallback: function () { }
  2660. }, { "style": { "height": "36px" } }).form; //创建窗体
  2661. _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); } }
  2662. break;
  2663. case "courseDesign":
  2664. _formdiv = new U.UF.UI.form(
  2665. "项目设计",
  2666. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2667. "id": "courseDesign",
  2668. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2669. "onresize": function () { }
  2670. }, {
  2671. closecallback: function () { }
  2672. }, { "style": { "height": "36px" } }).form; //创建窗体
  2673. _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); } }
  2674. break;
  2675. }
  2676. } else if (!_type) {
  2677. switch (str) {
  2678. case "my":
  2679. _formdiv = new U.UF.UI.form(
  2680. "我的资料",
  2681. $$("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 }), {
  2682. "id": "my",
  2683. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2684. "onresize": function () { }
  2685. }, {
  2686. closecallback: function () { }
  2687. }, { "style": { "height": "36px" } }).form; //创建窗体
  2688. _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); } }
  2689. break;
  2690. }
  2691. }
  2692. switch (str) {
  2693. // AIprogram2 AI体验 aihub.cocorobo.cn
  2694. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2695. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2696. case "AIprogram2": //AI体验
  2697. _formdiv = new U.UF.UI.form(
  2698. "AI体验",
  2699. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2700. "id": "AIprogram2",
  2701. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2702. "onresize": function () { }
  2703. }, {
  2704. closecallback: function () { }
  2705. }, { "style": { "height": "36px" } }).form; //创建窗体
  2706. _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); } }
  2707. break;
  2708. case "Pythonprogram": //python编程
  2709. _formdiv = new U.UF.UI.form(
  2710. "Python编程",
  2711. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2712. "id": "Pythonprogram",
  2713. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2714. "onresize": function () { }
  2715. }, {
  2716. closecallback: function () { }
  2717. }, { "style": { "height": "36px" } }).form; //创建窗体
  2718. _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); } }
  2719. break;
  2720. case "AIprogram": //ai编程
  2721. _formdiv = new U.UF.UI.form(
  2722. "AI编程平台",
  2723. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2724. "id": "AIprogram",
  2725. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2726. "onresize": function () { }
  2727. }, {
  2728. closecallback: function () { }
  2729. }, { "style": { "height": "36px" } }).form; //创建窗体
  2730. _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); } }
  2731. break;
  2732. case "CocoPi": //CocoPi
  2733. _formdiv = new U.UF.UI.form(
  2734. "CocoPi",
  2735. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://v.cocorobo.cn" }), {
  2736. "id": "CocoPi",
  2737. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2738. "onresize": function () { }
  2739. }, {
  2740. closecallback: function () { }
  2741. }, { "style": { "height": "36px" } }).form; //创建窗体
  2742. _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); } }
  2743. break;
  2744. case "Wood": //Wood
  2745. _formdiv = new U.UF.UI.form(
  2746. "海龟编程",
  2747. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://wood.codemao.cn/" }), {
  2748. "id": "Wood",
  2749. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2750. "onresize": function () { }
  2751. }, {
  2752. closecallback: function () { }
  2753. }, { "style": { "height": "36px" } }).form; //创建窗体
  2754. _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); } }
  2755. break;
  2756. case "car": //模拟驾驶
  2757. _formdiv = new U.UF.UI.form(
  2758. "模拟驾驶",
  2759. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://slowroads.io/" }), {
  2760. "id": "car",
  2761. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2762. "onresize": function () { }
  2763. }, {
  2764. closecallback: function () { }
  2765. }, { "style": { "height": "36px" } }).form; //创建窗体
  2766. _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); } }
  2767. break;
  2768. case "lineSearch": //路径搜索
  2769. _formdiv = new U.UF.UI.form(
  2770. "路径搜索",
  2771. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://qiao.github.io/PathFinding.js/visual/" }), {
  2772. "id": "lineSearch",
  2773. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2774. "onresize": function () { }
  2775. }, {
  2776. closecallback: function () { }
  2777. }, { "style": { "height": "36px" } }).form; //创建窗体
  2778. _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); } }
  2779. break;
  2780. case "deepLearning": //深度学习
  2781. _formdiv = new U.UF.UI.form(
  2782. "深度学习",
  2783. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-demos.cocorobo.cn/teachable-machine/public/#" }), {
  2784. "id": "deepLearning",
  2785. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2786. "onresize": function () { }
  2787. }, {
  2788. closecallback: function () { }
  2789. }, { "style": { "height": "36px" } }).form; //创建窗体
  2790. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/deepLearning.png)" }, "name": "深度学习", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2791. break;
  2792. case "allHistory": //深度学习
  2793. _formdiv = new U.UF.UI.form(
  2794. "全历史",
  2795. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.allhistory.com/" }), {
  2796. "id": "allHistory",
  2797. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2798. "onresize": function () { }
  2799. }, {
  2800. closecallback: function () { }
  2801. }, { "style": { "height": "36px" } }).form; //创建窗体
  2802. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/allHistory.png)" }, "name": "全历史", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2803. break;
  2804. case "chatPDF": //ai编程
  2805. _formdiv = new U.UF.UI.form(
  2806. "chatPDF",
  2807. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2808. "id": "chatPDF",
  2809. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2810. "onresize": function () { }
  2811. }, {
  2812. closecallback: function () { }
  2813. }, { "style": { "height": "36px" } }).form; //创建窗体
  2814. _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); } }
  2815. break;
  2816. case "resources": //国家教育
  2817. _formdiv = new U.UF.UI.form(
  2818. "国家教育",
  2819. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2820. "id": "resources",
  2821. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2822. "onresize": function () { }
  2823. }, {
  2824. closecallback: function () { }
  2825. }, { "style": { "height": "36px" } }).form; //创建窗体
  2826. _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); } }
  2827. break;
  2828. case "codeEdit": //源码编辑
  2829. _formdiv = new U.UF.UI.form(
  2830. "源码编辑",
  2831. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2832. "id": "codeEdit",
  2833. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2834. "onresize": function () { }
  2835. }, {
  2836. closecallback: function () { }
  2837. }, { "style": { "height": "36px" } }).form; //创建窗体
  2838. _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); } }
  2839. break; //
  2840. case "MindMap": //MindMap
  2841. _formdiv = new U.UF.UI.form(
  2842. "MindMap",
  2843. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2844. "id": "MindMap",
  2845. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2846. "onresize": function () { }
  2847. }, {
  2848. closecallback: function () { }
  2849. }, { "style": { "height": "36px" } }).form; //创建窗体
  2850. _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); } }
  2851. break;
  2852. case "netWorkPanel": //netWorkPanel
  2853. _formdiv = new U.UF.UI.form(
  2854. "netWorkPanel",
  2855. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2856. "id": "netWorkPanel",
  2857. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2858. "onresize": function () { }
  2859. }, {
  2860. closecallback: function () { }
  2861. }, { "style": { "height": "36px" } }).form; //创建窗体
  2862. _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); } }
  2863. break;
  2864. case "GeoGebra": //GeoGebra
  2865. _formdiv = new U.UF.UI.form(
  2866. "GeoGebra",
  2867. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  2868. "id": "GeoGebra",
  2869. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2870. "onresize": function () { }
  2871. }, {
  2872. closecallback: function () { }
  2873. }, { "style": { "height": "36px" } }).form; //创建窗体
  2874. _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); } }
  2875. break;
  2876. case "translation": //翻译
  2877. _formdiv = new U.UF.UI.form(
  2878. "翻译",
  2879. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2880. "id": "translation",
  2881. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2882. "onresize": function () { }
  2883. }, {
  2884. closecallback: function () { }
  2885. }, { "style": { "height": "36px" } }).form; //创建窗体
  2886. _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); } }
  2887. break;
  2888. case "mohe": //魔盒
  2889. _formdiv = new U.UF.UI.form(
  2890. "魔盒识字",
  2891. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2892. "id": "mohe",
  2893. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2894. "onresize": function () { }
  2895. }, {
  2896. closecallback: function () { }
  2897. }, { "style": { "height": "36px" } }).form; //创建窗体
  2898. _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); } }
  2899. break;
  2900. case "24game": //24点
  2901. _formdiv = new U.UF.UI.form(
  2902. "24点",
  2903. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2904. "id": "24game",
  2905. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2906. "onresize": function () { }
  2907. }, {
  2908. closecallback: function () { }
  2909. }, { "style": { "height": "36px" } }).form; //创建窗体
  2910. _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); } }
  2911. break;
  2912. case "case":
  2913. _formdiv = new U.UF.UI.form(
  2914. "课程进展",
  2915. $$("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 }), {
  2916. "id": "case",
  2917. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2918. "onresize": function () { }
  2919. }, {
  2920. closecallback: function () { }
  2921. }, { "style": { "height": "36px" } }).form; //创建窗体
  2922. _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); } }
  2923. break;
  2924. case "snf":
  2925. _formdiv = new U.UF.UI.form(
  2926. "赛诺梵",
  2927. $$("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" }), {
  2928. "id": "snf",
  2929. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2930. "onresize": function () { }
  2931. }, {
  2932. closecallback: function () { }
  2933. }, { "style": { "height": "36px" } }).form; //创建窗体
  2934. _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); } }
  2935. break;
  2936. case "hanFamily":
  2937. _formdiv = new U.UF.UI.form(
  2938. "汉字家族",
  2939. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2940. "id": "hanFamily",
  2941. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2942. "onresize": function () { }
  2943. }, {
  2944. closecallback: function () { }
  2945. }, { "style": { "height": "36px" } }).form; //创建窗体
  2946. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanFamily.png)" }, "name": "汉字家族", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2947. break;
  2948. case "hanClassics":
  2949. _formdiv = new U.UF.UI.form(
  2950. "国学经典",
  2951. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2952. "id": "hanClassics",
  2953. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2954. "onresize": function () { }
  2955. }, {
  2956. closecallback: function () { }
  2957. }, { "style": { "height": "36px" } }).form; //创建窗体
  2958. _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); } }
  2959. break;
  2960. case "hanTraining":
  2961. _formdiv = new U.UF.UI.form(
  2962. "笔画训练",
  2963. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2964. "id": "hanTraining",
  2965. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2966. "onresize": function () { }
  2967. }, {
  2968. closecallback: function () { }
  2969. }, { "style": { "height": "36px" } }).form; //创建窗体
  2970. _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); } }
  2971. break;
  2972. case "hanClass":
  2973. _formdiv = new U.UF.UI.form(
  2974. "书法课堂",
  2975. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2976. "id": "hanClass",
  2977. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2978. "onresize": function () { }
  2979. }, {
  2980. closecallback: function () { }
  2981. }, { "style": { "height": "36px" } }).form; //创建窗体
  2982. _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); } }
  2983. break;
  2984. case "han":
  2985. _formdiv = new U.UF.UI.form(
  2986. "汉字宫",
  2987. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2988. "id": "han",
  2989. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2990. "onresize": function () { }
  2991. }, {
  2992. closecallback: function () { }
  2993. }, { "style": { "height": "36px" } }).form; //创建窗体
  2994. _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); } }
  2995. break;
  2996. case "projectGM": //课程管理
  2997. _formdiv = new U.UF.UI.form(
  2998. "课程管理",
  2999. $$("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 }), {
  3000. "id": "projectGM",
  3001. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3002. "onresize": function () { }
  3003. }, {
  3004. closecallback: function () { }
  3005. }, { "style": { "height": "36px" } }).form; //创建窗体
  3006. _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); } }
  3007. break;
  3008. case "studyGM"://课程中心
  3009. _formdiv = new U.UF.UI.form(
  3010. "课程中心",
  3011. $$("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
  3012. "id": "study",
  3013. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3014. "onresize": function () { }
  3015. }, {
  3016. closecallback: function () { }
  3017. }, { "style": { "height": "36px" } }).form; //创建窗体
  3018. _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); } }
  3019. break;
  3020. // studentGM
  3021. case "studentGM"://学生管理
  3022. _formdiv = new U.UF.UI.form(
  3023. "学生管理",
  3024. $$("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 }), {
  3025. "id": "studentGM",
  3026. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3027. "onresize": function () { }
  3028. }, {
  3029. closecallback: function () { }
  3030. }, { "style": { "height": "36px" } }).form; //创建窗体
  3031. _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); } }
  3032. break;
  3033. case "evaluateGM"://学生评价
  3034. _formdiv = new U.UF.UI.form(
  3035. "学生评价",
  3036. $$("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 }), {
  3037. "id": "evaluateGM",
  3038. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3039. "onresize": function () { }
  3040. }, {
  3041. closecallback: function () { }
  3042. }, { "style": { "height": "36px" } }).form; //创建窗体
  3043. _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); } }
  3044. break;
  3045. // classGM
  3046. case "classGM"://班级管理
  3047. _formdiv = new U.UF.UI.form(
  3048. "班级管理",
  3049. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/classGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3050. "id": "classGM",
  3051. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3052. "onresize": function () { }
  3053. }, {
  3054. closecallback: function () { }
  3055. }, { "style": { "height": "36px" } }).form; //创建窗体
  3056. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3057. break;
  3058. // dataGM
  3059. case "dataGM":
  3060. _formdiv = new U.UF.UI.form(
  3061. "我的资料",
  3062. $$("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 }), {
  3063. "id": "dataGM",
  3064. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3065. "onresize": function () { }
  3066. }, {
  3067. closecallback: function () { }
  3068. }, { "style": { "height": "36px" } }).form; //创建窗体
  3069. _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); } }
  3070. break;
  3071. // caseGM
  3072. case "caseGM"://课程进展
  3073. _formdiv = new U.UF.UI.form(
  3074. "课程进展",
  3075. $$("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 }), {
  3076. "id": "caseGM",
  3077. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3078. "onresize": function () { }
  3079. }, {
  3080. closecallback: function () { }
  3081. }, { "style": { "height": "36px" } }).form; //创建窗体
  3082. _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); } }
  3083. break;
  3084. // meterialGM
  3085. case "meterialGM"://素材库
  3086. _formdiv = new U.UF.UI.form(
  3087. "素材库",
  3088. $$("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 }), {
  3089. "id": "meterialGM",
  3090. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3091. "onresize": function () { }
  3092. }, {
  3093. closecallback: function () { }
  3094. }, { "style": { "height": "36px" } }).form; //创建窗体
  3095. _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); } }
  3096. break;
  3097. // evaluateSGM
  3098. case "evaluateSGM": //我的评价
  3099. _formdiv = new U.UF.UI.form(
  3100. "我的评价",
  3101. $$("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 }), {
  3102. "id": "evaluateSGM",
  3103. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3104. "onresize": function () { }
  3105. }, {
  3106. closecallback: function () { }
  3107. }, { "style": { "height": "36px" } }).form; //创建窗体
  3108. _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); } }
  3109. break;
  3110. case "jupyter": //jupyter
  3111. _formdiv = new U.UF.UI.form(
  3112. "jupyter",
  3113. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3114. "id": "jupyter",
  3115. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3116. "onresize": function () { }
  3117. }, {
  3118. closecallback: function () { }
  3119. }, { "style": { "height": "36px" } }).form; //创建窗体
  3120. _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); } }
  3121. break;
  3122. case "number": //数字实验室
  3123. _formdiv = new U.UF.UI.form(
  3124. "数字实验室",
  3125. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3126. "id": "number",
  3127. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3128. "onresize": function () { }
  3129. }, {
  3130. closecallback: function () { }
  3131. }, { "style": { "height": "36px" } }).form; //创建窗体
  3132. _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); } }
  3133. break;
  3134. case "studentCourse": //项目管理 学生
  3135. _formdiv = new U.UF.UI.form(
  3136. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3137. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studentCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3138. "id": "studentCourse",
  3139. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3140. "onresize": function () { }
  3141. }, {
  3142. closecallback: function () { }
  3143. }, { "style": { "height": "36px" } }).form; //创建窗体
  3144. _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); } }
  3145. break;
  3146. case "studentCourseS": //项目管理 老师
  3147. _formdiv = new U.UF.UI.form(
  3148. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3149. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/scourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3150. "id": "studentCourseS",
  3151. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3152. "onresize": function () { }
  3153. }, {
  3154. closecallback: function () { }
  3155. }, { "style": { "height": "36px" } }).form; //创建窗体
  3156. _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); } }
  3157. break;
  3158. case "studentIndex": //项目中心
  3159. _formdiv = new U.UF.UI.form(
  3160. "项目中心",
  3161. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studentIndex?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType + "&role=" + _role }), {
  3162. "id": "studentIndex",
  3163. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3164. "onresize": function () { }
  3165. }, {
  3166. closecallback: function () { }
  3167. }, { "style": { "height": "36px" } }).form; //创建窗体
  3168. _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); } }
  3169. break;
  3170. case "CaseDesignS":
  3171. _formdiv = new U.UF.UI.form(
  3172. "项目进展",
  3173. $$("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 }), {
  3174. "id": "case",
  3175. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3176. "onresize": function () { }
  3177. }, {
  3178. closecallback: function () { }
  3179. }, { "style": { "height": "36px" } }).form; //创建窗体
  3180. _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); } }
  3181. break;
  3182. case "tcStudent": //腾讯学生管理
  3183. _formdiv = new U.UF.UI.form(
  3184. "学生管理",
  3185. $$("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 }), {
  3186. "id": "tcStudent",
  3187. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3188. "onresize": function () { }
  3189. }, {
  3190. closecallback: function () { }
  3191. }, { "style": { "height": "36px" } }).form; //创建窗体
  3192. _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); } }
  3193. break;
  3194. case "tcSchool": //腾讯学校管理
  3195. _formdiv = new U.UF.UI.form(
  3196. "学校管理",
  3197. $$("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 }), {
  3198. "id": "tcSchool",
  3199. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3200. "onresize": function () { }
  3201. }, {
  3202. closecallback: function () { }
  3203. }, { "style": { "height": "36px" } }).form; //创建窗体
  3204. _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); } }
  3205. break;
  3206. case "tcTeacher": //腾讯学校管理
  3207. _formdiv = new U.UF.UI.form(
  3208. "教师管理",
  3209. $$("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 }), {
  3210. "id": "tcTeacher",
  3211. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3212. "onresize": function () { }
  3213. }, {
  3214. closecallback: function () { }
  3215. }, { "style": { "height": "36px" } }).form; //创建窗体
  3216. _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); } }
  3217. break;
  3218. case "tcData": //腾讯我的资料
  3219. _formdiv = new U.UF.UI.form(
  3220. "我的资料",
  3221. $$("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 }), {
  3222. "id": "tcData",
  3223. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3224. "onresize": function () { }
  3225. }, {
  3226. closecallback: function () { }
  3227. }, { "style": { "height": "36px" } }).form; //创建窗体
  3228. _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); } }
  3229. break;
  3230. case "tcNotice": //腾讯消息通知
  3231. _formdiv = new U.UF.UI.form(
  3232. "消息通知",
  3233. $$("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 }), {
  3234. "id": "tcNotice",
  3235. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3236. "onresize": function () { }
  3237. }, {
  3238. closecallback: function () { }
  3239. }, { "style": { "height": "36px" } }).form; //创建窗体
  3240. _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); } }
  3241. break;
  3242. case "myReport": //好友打开
  3243. _formdiv = new U.UF.UI.form(
  3244. "我的评价",
  3245. $$("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 }), {
  3246. "id": "myReport",
  3247. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3248. "onresize": function () { }
  3249. }, {
  3250. closecallback: function () { }
  3251. }, { "style": { "height": "36px" } }).form; //创建窗体
  3252. _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); } }
  3253. break;
  3254. case "learnAna": //好友打开
  3255. _formdiv = new U.UF.UI.form(
  3256. "学习分析",
  3257. $$("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 }), {
  3258. "id": "learnAna",
  3259. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3260. "onresize": function () { }
  3261. }, {
  3262. closecallback: function () { }
  3263. }, { "style": { "height": "36px" } }).form; //创建窗体
  3264. _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); } }
  3265. break;
  3266. case "AIChat": //AI共创
  3267. _formdiv = new U.UF.UI.form(
  3268. "AI共创",
  3269. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3270. "id": "AIChat",
  3271. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3272. "onresize": function () { }
  3273. }, {
  3274. istop: true,
  3275. closecallback: function () { $("#aichat_icon").remove(); },
  3276. narrowcallback: function () {
  3277. if (!$("#aichat_icon")[0]) {
  3278. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3279. }
  3280. },
  3281. }, { "style": { "height": "36px" } }).form; //创建窗体
  3282. _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); } }
  3283. break;
  3284. case "AIAnalyse": //AI共创
  3285. _formdiv = new U.UF.UI.form(
  3286. "AI分析",
  3287. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3288. "id": "AIAnalyse",
  3289. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3290. "onresize": function () { }
  3291. }, {
  3292. closecallback: function () { }
  3293. }, { "style": { "height": "36px" } }).form; //创建窗体
  3294. _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); } }
  3295. break;
  3296. case "studioCourse": //AI共创
  3297. _formdiv = new U.UF.UI.form(
  3298. "工作管理",
  3299. $$("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 }), {
  3300. "id": "studioCourse",
  3301. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3302. "onresize": function () { }
  3303. }, {
  3304. closecallback: function () { }
  3305. }, { "style": { "height": "36px" } }).form; //创建窗体
  3306. _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); } }
  3307. break;
  3308. case "studioIndex": //AI共创
  3309. _formdiv = new U.UF.UI.form(
  3310. "工作中心",
  3311. $$("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 }), {
  3312. "id": "studioIndex",
  3313. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3314. "onresize": function () { }
  3315. }, {
  3316. closecallback: function () { }
  3317. }, { "style": { "height": "36px" } }).form; //创建窗体
  3318. _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); } }
  3319. break;
  3320. case "source":
  3321. _formdiv = new U.UF.UI.form(
  3322. "教学资源",
  3323. $$("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 }), {
  3324. "id": "source",
  3325. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3326. "onresize": function () { }
  3327. }, {
  3328. closecallback: function () { }
  3329. }, { "style": { "height": "36px" } }).form; //创建窗体
  3330. _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); } }
  3331. break;
  3332. }
  3333. //U.MD.D.I.openClick(str);
  3334. //如果有任务栏信息
  3335. if (_taskbar) {
  3336. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3337. }
  3338. }
  3339. // U.MD.D.I.openClick = function(str){
  3340. // var click = '';
  3341. // switch(str){
  3342. // case 'friend':
  3343. // click = '我的好友';
  3344. // break;
  3345. // case 'domain':
  3346. // click = '域名管理';
  3347. // break;
  3348. // case 'disk':
  3349. // click = '我的云盘';
  3350. // break;
  3351. // case 'word':
  3352. // click = 'Word';
  3353. // break;
  3354. // case 'excel':
  3355. // click = 'Execl';
  3356. // break;
  3357. // case 'txt':
  3358. // click = '文本文件';
  3359. // break;
  3360. // case 'lookupFriend':
  3361. // click = '查找好友';
  3362. // break;
  3363. // case 'ftp':
  3364. // click = 'FTP';
  3365. // break;
  3366. // case 'group':
  3367. // click = '群组';
  3368. // break;
  3369. // case 'set':
  3370. // click = '我的设置';
  3371. // break;
  3372. // case 'systemSet':
  3373. // click = '系统设置';
  3374. // break;
  3375. // case 'boomYun':
  3376. // click = '互联办公';
  3377. // break;
  3378. // case 'xz':
  3379. // click = '云端下载';
  3380. // break;
  3381. // case 'client':
  3382. // click = '有思浏览器';
  3383. // break;
  3384. // case 'backEndProgramming':
  3385. // click = '在线后台编程';
  3386. // break;
  3387. // case 'frontEndProgramming':
  3388. // click = '在线前端编程';
  3389. // break;
  3390. // default: break;
  3391. // }
  3392. // if(U.MD.D.I.Ip && click){
  3393. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3394. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3395. // })
  3396. // }
  3397. // }
  3398. /**
  3399. *函数作用:ajax简易函数,使用post格式
  3400. *@param url {data} 后台地址
  3401. *@param data {data} 参数json
  3402. *@param fn {data} 回调函数
  3403. *
  3404. */
  3405. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3406. // var xhr = new XMLHttpRequest();
  3407. // xhr.open("GET",url,true);
  3408. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3409. // xhr.onreadystatechange = function(){
  3410. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3411. // fn.call(this,xhr.responseText);
  3412. // }
  3413. // };
  3414. // xhr.send();
  3415. // }
  3416. /*判断是否是内网IP*/
  3417. // U.MD.D.I.isInnerIPFn = function(str){
  3418. // var curPageUrl = str;
  3419. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3420. // curPageUrl =curPageUrl.replace(reg1,'');
  3421. // // console.log('curPageUrl-1 '+curPageUrl);
  3422. // var reg2 = /\:+/g;//替换冒号为一点
  3423. // curPageUrl =curPageUrl.replace(reg2,'.');
  3424. // // console.log('curPageUrl-2 '+curPageUrl);
  3425. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3426. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3427. // if(curPageUrl[2] != '16'){
  3428. // return ipAddress;
  3429. // }else{
  3430. // return false;
  3431. // }
  3432. // }
  3433. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3434. // //compatibility for firefox and chrome
  3435. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3436. // var pc = new myPeerConnection({
  3437. // iceServers: []
  3438. // }),
  3439. // noop = function() {},
  3440. // localIPs = {},
  3441. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3442. // key;
  3443. // function iterateIP(ip) {
  3444. // if (!localIPs[ip]) onNewIP(ip);
  3445. // localIPs[ip] = true;
  3446. // }
  3447. // //create a bogus data channel
  3448. // pc.createDataChannel("");
  3449. // // create offer and set local description
  3450. // pc.createOffer().then(function(sdp) {
  3451. // sdp.sdp.split('\n').forEach(function(line) {
  3452. // if (line.indexOf('candidate') < 0) return;
  3453. // line.match(ipRegex).forEach(iterateIP);
  3454. // });
  3455. // pc.setLocalDescription(sdp, noop, noop);
  3456. // }).catch(function(reason) {
  3457. // // An error occurred, so handle the failure to connect
  3458. // });
  3459. // //sten for candidate events
  3460. // pc.onicecandidate = function(ice) {
  3461. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3462. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3463. // };
  3464. // }
  3465. // U.MD.D.I.getUserIpBool = function(callback){
  3466. // U.MD.D.I.getUserIP(function(ip){
  3467. // alert("Got IP! :" + ip);
  3468. // });
  3469. //}
  3470. //#endregion
  3471. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3472. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3473. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3474. _userinfo = US.userInfo, //登录用户信息
  3475. _userid = US.userInfo.userid //登录用户id
  3476. let _iframe;
  3477. let _cid = cid,
  3478. _stage = stage,
  3479. _task = task,
  3480. _tool = tool;
  3481. var _jie = $$("div", {
  3482. "style": {
  3483. "position": "absolute",
  3484. "bottom": "50px",
  3485. "right": "50px",
  3486. "zIndex": "9999",
  3487. "backgroundColor": "#2268bc",
  3488. "color": "#fff",
  3489. "padding": "12px 20px",
  3490. "cursor": "pointer",
  3491. "borderRadius": "4px",
  3492. },
  3493. "innerHTML": "提交作业"
  3494. })
  3495. let aTool = ''
  3496. let _loading = document.createElement('div')
  3497. _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;"
  3498. // _loading.id = "";
  3499. let _lchild = document.createElement('div')
  3500. let _limg = document.createElement('img')
  3501. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3502. _limg.style = "width: 26px;margin-right: 10px;"
  3503. _lchild.appendChild(_limg)
  3504. let _lspan = document.createElement('span')
  3505. _lspan.innerHTML = "上传中..."
  3506. _lchild.appendChild(_lspan)
  3507. _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%);"
  3508. _loading.appendChild(_lchild)
  3509. var _box = $$('div', {
  3510. "style": {
  3511. "position": "relative",
  3512. "width": "100%",
  3513. "height": "100%",
  3514. },
  3515. })
  3516. _box.appendChild(_loading)
  3517. _box.id = str + '_loadLi'
  3518. switch (str) {
  3519. case "whiteboard":
  3520. aTool = 1;
  3521. _iframe = $$("iframe", {
  3522. "frameborder": "no",
  3523. "border": "0",
  3524. "scrolling ": "no",
  3525. "style": {
  3526. "cssText": "border:0;width:100%;height:100%"
  3527. },
  3528. "src": "https://iwb.cocorobo.cn/"
  3529. })
  3530. _box.appendChild(_iframe);
  3531. _box.appendChild(_jie);
  3532. _formdiv = new U.UF.UI.form(
  3533. "电子白板",
  3534. _box, {
  3535. "id": "whiteboard" + cid + stage + task + tool,
  3536. "style": {
  3537. "width": "90%",
  3538. "height": "90%",
  3539. "overflow": 'hidden'
  3540. },
  3541. "onresize": function () { }
  3542. }, {
  3543. closecallback: function () { }
  3544. }, {
  3545. "style": {
  3546. "height": "36px"
  3547. }
  3548. }).form; //创建窗体
  3549. _taskbar = {
  3550. "id": str + _formdiv.id,
  3551. "style": {
  3552. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3553. },
  3554. "name": "电子白板",
  3555. "forms": _formdiv,
  3556. "click": function () {
  3557. U.MD.D.I.openApplication(str, obj, info);
  3558. }
  3559. }
  3560. break;
  3561. case "mind":
  3562. aTool = 3;
  3563. _iframe = $$("iframe", {
  3564. "frameborder": "no",
  3565. "border": "0",
  3566. "scrolling ": "no",
  3567. "style": {
  3568. "cssText": "border:0;width:100%;height:100%"
  3569. },
  3570. "src": "/kityminder-editor/dist/index.html"
  3571. })
  3572. _box.appendChild(_iframe);
  3573. _box.appendChild(_jie);
  3574. _formdiv = new U.UF.UI.form(
  3575. "思维导图",
  3576. _box, { //"/jsmind/example/demo.html"
  3577. "id": "mind" + cid + stage + task + tool,
  3578. "style": {
  3579. "width": "90%",
  3580. "height": "90%",
  3581. "overflow": 'hidden'
  3582. },
  3583. "onresize": function () { }
  3584. }, {
  3585. closecallback: function () { }
  3586. }, {
  3587. "style": {
  3588. "height": "36px"
  3589. }
  3590. }).form; //创建窗体
  3591. _taskbar = {
  3592. "id": str + _formdiv.id,
  3593. "style": {
  3594. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3595. },
  3596. "name": "思维导图",
  3597. "forms": _formdiv,
  3598. "click": function () {
  3599. U.MD.D.I.openApplication(str, obj, info);
  3600. }
  3601. }
  3602. break;
  3603. case "MindMap":
  3604. aTool = 3;
  3605. _iframe = $$("iframe", {
  3606. "frameborder": "no",
  3607. "border": "0",
  3608. "scrolling ": "no",
  3609. "style": {
  3610. "cssText": "border:0;width:100%;height:100%"
  3611. },
  3612. "src": "//cloud.cocorobo.cn/mind/"
  3613. })
  3614. _box.appendChild(_iframe);
  3615. _box.appendChild(_jie);
  3616. _formdiv = new U.UF.UI.form(
  3617. "思维导图",
  3618. _box, { //"/jsmind/example/demo.html"
  3619. "id": "mind" + cid + stage + task + tool,
  3620. "style": {
  3621. "width": "90%",
  3622. "height": "90%",
  3623. "overflow": 'hidden'
  3624. },
  3625. "onresize": function () { }
  3626. }, {
  3627. closecallback: function () { }
  3628. }, {
  3629. "style": {
  3630. "height": "36px"
  3631. }
  3632. }).form; //创建窗体
  3633. _taskbar = {
  3634. "id": str + _formdiv.id,
  3635. "style": {
  3636. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3637. },
  3638. "name": "思维导图",
  3639. "forms": _formdiv,
  3640. "click": function () {
  3641. U.MD.D.I.openApplication(str, obj, info);
  3642. }
  3643. }
  3644. break;
  3645. case "doc":
  3646. aTool = 6;
  3647. _iframe = $$("iframe", {
  3648. "frameborder": "no",
  3649. "border": "0",
  3650. "scrolling ": "no",
  3651. "style": {
  3652. "cssText": "border:0;width:100%;height:100%"
  3653. },
  3654. "src": "/Office/Word/WordEditArea.htm"
  3655. })
  3656. _box.appendChild(_iframe);
  3657. _box.appendChild(_jie);
  3658. _formdiv = new U.UF.UI.form(
  3659. "协同文档",
  3660. _box, {
  3661. "id": "doc" + cid + stage + task + tool,
  3662. "style": {
  3663. "width": "90%",
  3664. "height": "90%",
  3665. "overflow": 'hidden'
  3666. },
  3667. "onresize": function () { }
  3668. }, {
  3669. closecallback: function () { }
  3670. }, {
  3671. "style": {
  3672. "height": "36px"
  3673. }
  3674. }).form; //创建窗体
  3675. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3676. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3677. })
  3678. _taskbar = {
  3679. "id": str + _formdiv.id,
  3680. "style": {
  3681. "backgroundImage": "url(/img/icon/doc.png)"
  3682. },
  3683. "name": "协同文档",
  3684. "forms": _formdiv,
  3685. "click": function () {
  3686. U.MD.D.I.openApplication(str, obj, info);
  3687. }
  3688. }
  3689. break;
  3690. case "mindNetwork": //好友打开
  3691. aTool = 7;
  3692. _iframe = $$("iframe", {
  3693. "webkitallowfullscreen": "",
  3694. "mozallowfullscreen": "",
  3695. "allowfullscreen": "",
  3696. "frameborder": "no",
  3697. "border": "0",
  3698. "scrolling ": "no",
  3699. "style": {
  3700. "cssText": "border:0; width:100%; height:100%;"
  3701. },
  3702. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3703. })
  3704. _box.appendChild(_iframe);
  3705. _box.appendChild(_jie);
  3706. _formdiv = new U.UF.UI.form(
  3707. "思维网格",
  3708. _box, {
  3709. "id": "mindNetwork" + cid + stage + task + tool,
  3710. "style": {
  3711. "width": "90%",
  3712. "height": "90%",
  3713. "overflow": 'hidden'
  3714. },
  3715. "onresize": function () { }
  3716. }, {
  3717. closecallback: function () { }
  3718. }, {
  3719. "style": {
  3720. "height": "36px"
  3721. }
  3722. }).form; //创建窗体
  3723. _taskbar = {
  3724. "id": str + _formdiv.id,
  3725. "style": {
  3726. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3727. },
  3728. "name": "思维网格",
  3729. "forms": _formdiv,
  3730. "click": function () {
  3731. U.MD.D.I.openApplication(str, obj, info);
  3732. }
  3733. }
  3734. break;
  3735. case "courseDesign":
  3736. _iframe = $$("iframe", {
  3737. "webkitallowfullscreen": "",
  3738. "mozallowfullscreen": "",
  3739. "allowfullscreen": "",
  3740. "frameborder": "no",
  3741. "border": "0",
  3742. "scrolling ": "no",
  3743. "style": {
  3744. "cssText": "border:0; width:100%; height:100%;"
  3745. },
  3746. "src": "/course-design-vue"
  3747. })
  3748. _box.appendChild(_iframe);
  3749. _box.appendChild(_jie);
  3750. _formdiv = new U.UF.UI.form(
  3751. "项目设计",
  3752. _box, {
  3753. "id": "courseDesign" + cid + stage + task + tool,
  3754. "style": {
  3755. "width": "90%",
  3756. "height": "90%",
  3757. "overflow": 'hidden'
  3758. },
  3759. "onresize": function () { }
  3760. }, {
  3761. closecallback: function () { }
  3762. }, {
  3763. "style": {
  3764. "height": "36px"
  3765. }
  3766. }).form; //创建窗体
  3767. _taskbar = {
  3768. "id": str + _formdiv.id,
  3769. "style": {
  3770. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3771. },
  3772. "name": "项目设计",
  3773. "forms": _formdiv,
  3774. "click": function () {
  3775. U.MD.D.I.openApplication(str, obj, info);
  3776. }
  3777. }
  3778. break;
  3779. }
  3780. const script1 = document.createElement("script");
  3781. script1.type = "text/javascript";
  3782. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3783. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3784. const script2 = document.createElement("script");
  3785. script2.type = "text/javascript";
  3786. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3787. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3788. const script3 = document.createElement("script");
  3789. script3.type = "text/javascript";
  3790. script3.charset = "UTF-8";
  3791. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3792. const script4 = document.createElement("script");
  3793. script4.type = "text/javascript";
  3794. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3795. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3796. if (_iframe) {
  3797. if (str == 'doc') {
  3798. _iframe = _formdiv.querySelector('iframe')
  3799. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3800. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3801. _iframe.contentWindow.document.body.appendChild(script1);
  3802. _iframe.contentWindow.document.body.appendChild(script2);
  3803. // _iframe.contentWindow.document.body.appendChild(script3);
  3804. _iframe.contentWindow.document.body.appendChild(script4);
  3805. })
  3806. if (onloadListener) {
  3807. _iframe.contentDocument.location.reload()
  3808. } else {
  3809. _iframe.contentDocument.location.reload()
  3810. }
  3811. } else if (str == 'courseDesign') {
  3812. U.UF.DL.iframeLoad(_iframe, function () {
  3813. // _iframe.contentWindow.U.MD.O.W.load();
  3814. // _iframe.contentWindow.document.body.appendChild(script1);
  3815. _iframe.contentWindow.document.body.appendChild(script2);
  3816. _iframe.contentWindow.document.body.appendChild(script4);
  3817. })
  3818. } else if (str == 'mind') {
  3819. _iframe = _formdiv.querySelector('iframe')
  3820. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3821. //
  3822. _iframe.contentWindow.document.body.appendChild(script1);
  3823. _iframe.contentWindow.document.body.appendChild(script2);
  3824. _iframe.contentWindow.document.body.appendChild(script4);
  3825. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3826. })
  3827. if (onloadListener) {
  3828. _iframe.contentDocument.location.reload()
  3829. } else {
  3830. _iframe.contentDocument.location.reload()
  3831. }
  3832. } else if (str == 'whiteboard') {
  3833. _iframe = _formdiv.querySelector('iframe')
  3834. let onloadListener = _iframe.onload = () => {
  3835. _iframe.contentWindow.document.body.appendChild(script1);
  3836. _iframe.contentWindow.document.body.appendChild(script2);
  3837. _iframe.contentWindow.document.body.appendChild(script4);
  3838. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3839. };
  3840. if (onloadListener) {
  3841. _iframe.contentDocument.location.reload()
  3842. } else {
  3843. _iframe.contentDocument.location.reload()
  3844. }
  3845. } else {
  3846. _iframe.onload = () => {
  3847. _iframe.contentWindow.document.body.appendChild(script1);
  3848. _iframe.contentWindow.document.body.appendChild(script2);
  3849. // _iframe.contentWindow.document.body.appendChild(script3);
  3850. _iframe.contentWindow.document.body.appendChild(script4);
  3851. };
  3852. }
  3853. _jie.onclick = async () => {
  3854. let text = ''
  3855. if (aTool == 1) {
  3856. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3857. } else if (aTool == 6) {
  3858. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3859. } else if (aTool == 3) {
  3860. text = await U.MD.D.I.getEditorContent(_iframe);
  3861. }
  3862. _loading.style.display = 'flex'
  3863. console.log(_loading);
  3864. var _ajs = _iframe.contentWindow.document.createElement("script");
  3865. _ajs.type = "text/javascript";
  3866. _ajs.innerHTML =
  3867. // 'console.log(' + _loading + ');\n' +
  3868. 'var _js = document.createElement("script");\n' +
  3869. '_js.type="text/javascript";\n' +
  3870. '_js.charset="UTF-8";\n' +
  3871. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3872. "_js.onload = function(){\n" +
  3873. ' var a = document.getElementsByTagName("img")\n' +
  3874. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3875. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3876. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3877. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3878. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3879. "beforeUpload_shishi(file," +
  3880. "'" +
  3881. _userid +
  3882. "'" +
  3883. ", " +
  3884. "'" +
  3885. _cid +
  3886. "'" +
  3887. ", " +
  3888. "'" +
  3889. _stage +
  3890. "'" +
  3891. ", " +
  3892. "'" +
  3893. _task +
  3894. "'" +
  3895. ", " +
  3896. "'" +
  3897. _tool +
  3898. "'" +
  3899. ", " +
  3900. "'" +
  3901. str + '_loadLi' +
  3902. "'" +
  3903. ", " +
  3904. "'" +
  3905. aTool +
  3906. "'" +
  3907. ", " +
  3908. "`" +
  3909. text +
  3910. "`" +
  3911. ")\n" +
  3912. " });\n" +
  3913. "}\n" +
  3914. "document.head.appendChild(_js);\n";
  3915. _iframe.contentWindow.document.head.appendChild(_ajs);
  3916. }
  3917. }
  3918. //U.MD.D.I.openClick(str);
  3919. //如果有任务栏信息
  3920. // if (_taskbar) {
  3921. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3922. // }
  3923. }
  3924. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  3925. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3926. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3927. _userinfo = US.userInfo, //登录用户信息
  3928. _userid = US.userInfo.userid //登录用户id
  3929. let _iframe;
  3930. let _cid = cid,
  3931. _stage = stage,
  3932. _task = task,
  3933. _tool = tool;
  3934. var _jie = $$("div", {
  3935. "style": {
  3936. "position": "absolute",
  3937. "bottom": "50px",
  3938. "right": "50px",
  3939. "zIndex": "9999",
  3940. "backgroundColor": "#2268bc",
  3941. "color": "#fff",
  3942. "padding": "12px 20px",
  3943. "cursor": "pointer",
  3944. "borderRadius": "4px",
  3945. },
  3946. "innerHTML": "提交作业"
  3947. })
  3948. let aTool = ''
  3949. let _loading = document.createElement('div')
  3950. _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;"
  3951. // _loading.id = "";
  3952. let _lchild = document.createElement('div')
  3953. let _limg = document.createElement('img')
  3954. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3955. _limg.style = "width: 26px;margin-right: 10px;"
  3956. _lchild.appendChild(_limg)
  3957. let _lspan = document.createElement('span')
  3958. _lspan.innerHTML = "上传中..."
  3959. _lchild.appendChild(_lspan)
  3960. _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%);"
  3961. _loading.appendChild(_lchild)
  3962. var _box = $$('div', {
  3963. "style": {
  3964. "position": "relative",
  3965. "width": "100%",
  3966. "height": "100%",
  3967. },
  3968. })
  3969. _box.appendChild(_loading)
  3970. _box.id = str + '_loadLi'
  3971. switch (str) {
  3972. case "whiteboard":
  3973. aTool = 1;
  3974. _iframe = $$("iframe", {
  3975. "frameborder": "no",
  3976. "border": "0",
  3977. "scrolling ": "no",
  3978. "style": {
  3979. "cssText": "border:0;width:100%;height:100%"
  3980. },
  3981. "src": "https://iwb.cocorobo.cn/"
  3982. })
  3983. _box.appendChild(_iframe);
  3984. _box.appendChild(_jie);
  3985. _formdiv = new U.UF.UI.form(
  3986. "电子白板",
  3987. _box, {
  3988. "id": "whiteboard" + cid + stage + task + tool,
  3989. "style": {
  3990. "width": "90%",
  3991. "height": "90%",
  3992. "overflow": 'hidden'
  3993. },
  3994. "onresize": function () { }
  3995. }, {
  3996. closecallback: function () { }
  3997. }, {
  3998. "style": {
  3999. "height": "36px"
  4000. }
  4001. }).form; //创建窗体
  4002. _taskbar = {
  4003. "id": str + _formdiv.id,
  4004. "style": {
  4005. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4006. },
  4007. "name": "电子白板",
  4008. "forms": _formdiv,
  4009. "click": function () {
  4010. U.MD.D.I.openApplication(str, obj, info);
  4011. }
  4012. }
  4013. break;
  4014. case "mind":
  4015. aTool = 3;
  4016. _iframe = $$("iframe", {
  4017. "frameborder": "no",
  4018. "border": "0",
  4019. "scrolling ": "no",
  4020. "style": {
  4021. "cssText": "border:0;width:100%;height:100%"
  4022. },
  4023. "src": "/kityminder-editor/dist/index.html"
  4024. })
  4025. _box.appendChild(_iframe);
  4026. _box.appendChild(_jie);
  4027. _formdiv = new U.UF.UI.form(
  4028. "思维导图",
  4029. _box, { //"/jsmind/example/demo.html"
  4030. "id": "mind" + cid + stage + task + tool,
  4031. "style": {
  4032. "width": "90%",
  4033. "height": "90%",
  4034. "overflow": 'hidden'
  4035. },
  4036. "onresize": function () { }
  4037. }, {
  4038. closecallback: function () { }
  4039. }, {
  4040. "style": {
  4041. "height": "36px"
  4042. }
  4043. }).form; //创建窗体
  4044. _taskbar = {
  4045. "id": str + _formdiv.id,
  4046. "style": {
  4047. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4048. },
  4049. "name": "思维导图",
  4050. "forms": _formdiv,
  4051. "click": function () {
  4052. U.MD.D.I.openApplication(str, obj, info);
  4053. }
  4054. }
  4055. break;
  4056. case "MindMap":
  4057. aTool = 3;
  4058. _iframe = $$("iframe", {
  4059. "frameborder": "no",
  4060. "border": "0",
  4061. "scrolling ": "no",
  4062. "style": {
  4063. "cssText": "border:0;width:100%;height:100%"
  4064. },
  4065. "src": "//cloud.cocorobo.cn/mind/"
  4066. })
  4067. _box.appendChild(_iframe);
  4068. _box.appendChild(_jie);
  4069. _formdiv = new U.UF.UI.form(
  4070. "思维导图",
  4071. _box, { //"/jsmind/example/demo.html"
  4072. "id": "mind" + cid + stage + task + tool,
  4073. "style": {
  4074. "width": "90%",
  4075. "height": "90%",
  4076. "overflow": 'hidden'
  4077. },
  4078. "onresize": function () { }
  4079. }, {
  4080. closecallback: function () { }
  4081. }, {
  4082. "style": {
  4083. "height": "36px"
  4084. }
  4085. }).form; //创建窗体
  4086. _taskbar = {
  4087. "id": str + _formdiv.id,
  4088. "style": {
  4089. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4090. },
  4091. "name": "思维导图",
  4092. "forms": _formdiv,
  4093. "click": function () {
  4094. U.MD.D.I.openApplication(str, obj, info);
  4095. }
  4096. }
  4097. break;
  4098. case "doc":
  4099. aTool = 6;
  4100. _iframe = $$("iframe", {
  4101. "frameborder": "no",
  4102. "border": "0",
  4103. "scrolling ": "no",
  4104. "style": {
  4105. "cssText": "border:0;width:100%;height:100%"
  4106. },
  4107. "src": "/Office/Word/WordEditArea.htm"
  4108. })
  4109. _box.appendChild(_iframe);
  4110. _box.appendChild(_jie);
  4111. _formdiv = new U.UF.UI.form(
  4112. "协同文档",
  4113. _box, {
  4114. "id": "doc" + cid + stage + task + tool,
  4115. "style": {
  4116. "width": "90%",
  4117. "height": "90%",
  4118. "overflow": 'hidden'
  4119. },
  4120. "onresize": function () { }
  4121. }, {
  4122. closecallback: function () { }
  4123. }, {
  4124. "style": {
  4125. "height": "36px"
  4126. }
  4127. }).form; //创建窗体
  4128. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4129. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4130. })
  4131. _taskbar = {
  4132. "id": str + _formdiv.id,
  4133. "style": {
  4134. "backgroundImage": "url(/img/icon/doc.png)"
  4135. },
  4136. "name": "协同文档",
  4137. "forms": _formdiv,
  4138. "click": function () {
  4139. U.MD.D.I.openApplication(str, obj, info);
  4140. }
  4141. }
  4142. break;
  4143. case "mindNetwork": //好友打开
  4144. aTool = 7;
  4145. _iframe = $$("iframe", {
  4146. "webkitallowfullscreen": "",
  4147. "mozallowfullscreen": "",
  4148. "allowfullscreen": "",
  4149. "frameborder": "no",
  4150. "border": "0",
  4151. "scrolling ": "no",
  4152. "style": {
  4153. "cssText": "border:0; width:100%; height:100%;"
  4154. },
  4155. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4156. })
  4157. _box.appendChild(_iframe);
  4158. _box.appendChild(_jie);
  4159. _formdiv = new U.UF.UI.form(
  4160. "思维网格",
  4161. _box, {
  4162. "id": "mindNetwork" + cid + stage + task + tool,
  4163. "style": {
  4164. "width": "90%",
  4165. "height": "90%",
  4166. "overflow": 'hidden'
  4167. },
  4168. "onresize": function () { }
  4169. }, {
  4170. closecallback: function () { }
  4171. }, {
  4172. "style": {
  4173. "height": "36px"
  4174. }
  4175. }).form; //创建窗体
  4176. _taskbar = {
  4177. "id": str + _formdiv.id,
  4178. "style": {
  4179. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4180. },
  4181. "name": "思维网格",
  4182. "forms": _formdiv,
  4183. "click": function () {
  4184. U.MD.D.I.openApplication(str, obj, info);
  4185. }
  4186. }
  4187. break;
  4188. case "courseDesign":
  4189. _iframe = $$("iframe", {
  4190. "webkitallowfullscreen": "",
  4191. "mozallowfullscreen": "",
  4192. "allowfullscreen": "",
  4193. "frameborder": "no",
  4194. "border": "0",
  4195. "scrolling ": "no",
  4196. "style": {
  4197. "cssText": "border:0; width:100%; height:100%;"
  4198. },
  4199. "src": "/course-design-vue"
  4200. })
  4201. _box.appendChild(_iframe);
  4202. _box.appendChild(_jie);
  4203. _formdiv = new U.UF.UI.form(
  4204. "项目设计",
  4205. _box, {
  4206. "id": "courseDesign" + cid + stage + task + tool,
  4207. "style": {
  4208. "width": "90%",
  4209. "height": "90%",
  4210. "overflow": 'hidden'
  4211. },
  4212. "onresize": function () { }
  4213. }, {
  4214. closecallback: function () { }
  4215. }, {
  4216. "style": {
  4217. "height": "36px"
  4218. }
  4219. }).form; //创建窗体
  4220. _taskbar = {
  4221. "id": str + _formdiv.id,
  4222. "style": {
  4223. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4224. },
  4225. "name": "项目设计",
  4226. "forms": _formdiv,
  4227. "click": function () {
  4228. U.MD.D.I.openApplication(str, obj, info);
  4229. }
  4230. }
  4231. break;
  4232. }
  4233. const script1 = document.createElement("script");
  4234. script1.type = "text/javascript";
  4235. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4236. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4237. const script2 = document.createElement("script");
  4238. script2.type = "text/javascript";
  4239. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4240. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4241. const script3 = document.createElement("script");
  4242. script3.type = "text/javascript";
  4243. script3.charset = "UTF-8";
  4244. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4245. const script4 = document.createElement("script");
  4246. script4.type = "text/javascript";
  4247. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4248. script4.src = window.origin + "/js/Common/jietu2E.js";
  4249. if (_iframe) {
  4250. if (str == 'doc') {
  4251. _iframe = _formdiv.querySelector('iframe')
  4252. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4253. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4254. _iframe.contentWindow.document.body.appendChild(script1);
  4255. _iframe.contentWindow.document.body.appendChild(script2);
  4256. // _iframe.contentWindow.document.body.appendChild(script3);
  4257. _iframe.contentWindow.document.body.appendChild(script4);
  4258. })
  4259. if (onloadListener) {
  4260. _iframe.contentDocument.location.reload()
  4261. } else {
  4262. _iframe.contentDocument.location.reload()
  4263. }
  4264. } else if (str == 'courseDesign') {
  4265. U.UF.DL.iframeLoad(_iframe, function () {
  4266. // _iframe.contentWindow.U.MD.O.W.load();
  4267. // _iframe.contentWindow.document.body.appendChild(script1);
  4268. _iframe.contentWindow.document.body.appendChild(script2);
  4269. _iframe.contentWindow.document.body.appendChild(script4);
  4270. })
  4271. } else if (str == 'mind') {
  4272. _iframe = _formdiv.querySelector('iframe')
  4273. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4274. //
  4275. _iframe.contentWindow.document.body.appendChild(script1);
  4276. _iframe.contentWindow.document.body.appendChild(script2);
  4277. _iframe.contentWindow.document.body.appendChild(script4);
  4278. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4279. })
  4280. if (onloadListener) {
  4281. _iframe.contentDocument.location.reload()
  4282. } else {
  4283. _iframe.contentDocument.location.reload()
  4284. }
  4285. } else if (str == 'whiteboard') {
  4286. _iframe = _formdiv.querySelector('iframe')
  4287. let onloadListener = _iframe.onload = () => {
  4288. _iframe.contentWindow.document.body.appendChild(script1);
  4289. _iframe.contentWindow.document.body.appendChild(script2);
  4290. _iframe.contentWindow.document.body.appendChild(script4);
  4291. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4292. };
  4293. if (onloadListener) {
  4294. _iframe.contentDocument.location.reload()
  4295. } else {
  4296. _iframe.contentDocument.location.reload()
  4297. }
  4298. } else {
  4299. _iframe.onload = () => {
  4300. _iframe.contentWindow.document.body.appendChild(script1);
  4301. _iframe.contentWindow.document.body.appendChild(script2);
  4302. // _iframe.contentWindow.document.body.appendChild(script3);
  4303. _iframe.contentWindow.document.body.appendChild(script4);
  4304. };
  4305. }
  4306. _jie.onclick = async () => {
  4307. let text = ''
  4308. if (aTool == 1) {
  4309. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4310. } else if (aTool == 6) {
  4311. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4312. } else if (aTool == 3) {
  4313. text = await U.MD.D.I.getEditorContent(_iframe);
  4314. }
  4315. _loading.style.display = 'flex'
  4316. console.log(_loading);
  4317. var _ajs = _iframe.contentWindow.document.createElement("script");
  4318. _ajs.type = "text/javascript";
  4319. _ajs.innerHTML =
  4320. // 'console.log(' + _loading + ');\n' +
  4321. 'var _js = document.createElement("script");\n' +
  4322. '_js.type="text/javascript";\n' +
  4323. '_js.charset="UTF-8";\n' +
  4324. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4325. "_js.onload = function(){\n" +
  4326. ' var a = document.getElementsByTagName("img")\n' +
  4327. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4328. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4329. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4330. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4331. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4332. "beforeUpload_shishi(file," +
  4333. "'" +
  4334. _userid +
  4335. "'" +
  4336. ", " +
  4337. "'" +
  4338. _cid +
  4339. "'" +
  4340. ", " +
  4341. "'" +
  4342. _stage +
  4343. "'" +
  4344. ", " +
  4345. "'" +
  4346. _task +
  4347. "'" +
  4348. ", " +
  4349. "'" +
  4350. _tool +
  4351. "'" +
  4352. ", " +
  4353. "'" +
  4354. str + '_loadLi' +
  4355. "'" +
  4356. ", " +
  4357. "'" +
  4358. aTool +
  4359. "'" +
  4360. ", " +
  4361. "`" +
  4362. text +
  4363. "`" +
  4364. ")\n" +
  4365. " });\n" +
  4366. "}\n" +
  4367. "document.head.appendChild(_js);\n";
  4368. _iframe.contentWindow.document.head.appendChild(_ajs);
  4369. }
  4370. }
  4371. //U.MD.D.I.openClick(str);
  4372. //如果有任务栏信息
  4373. // if (_taskbar) {
  4374. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4375. // }
  4376. }
  4377. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4378. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4379. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4380. _userid = student.userid, //登录用户id
  4381. _username = student.student //用户名字
  4382. let _iframe;
  4383. let _cid = cid,
  4384. _stage = stage,
  4385. _task = task,
  4386. _tool = tool;
  4387. var _jie = $$("div", {
  4388. "style": {
  4389. "position": "absolute",
  4390. "bottom": "50px",
  4391. "right": "50px",
  4392. "zIndex": "9999",
  4393. "backgroundColor": "#2268bc",
  4394. "color": "#fff",
  4395. "padding": "12px 20px",
  4396. "cursor": "pointer",
  4397. "borderRadius": "4px",
  4398. },
  4399. "innerHTML": "提交作业"
  4400. })
  4401. let aTool = ''
  4402. let _loading = document.createElement('div')
  4403. _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;"
  4404. // _loading.id = "";
  4405. let _lchild = document.createElement('div')
  4406. let _limg = document.createElement('img')
  4407. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4408. _limg.style = "width: 26px;margin-right: 10px;"
  4409. _lchild.appendChild(_limg)
  4410. let _lspan = document.createElement('span')
  4411. _lspan.innerHTML = "上传中..."
  4412. _lchild.appendChild(_lspan)
  4413. _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%);"
  4414. _loading.appendChild(_lchild)
  4415. var _box = $$('div', {
  4416. "style": {
  4417. "position": "relative",
  4418. "width": "100%",
  4419. "height": "100%",
  4420. },
  4421. })
  4422. _box.appendChild(_loading)
  4423. _box.id = str + '_loadLi' + _userid
  4424. switch (str) {
  4425. case "whiteboard":
  4426. aTool = 1;
  4427. _iframe = $$("iframe", {
  4428. "frameborder": "no",
  4429. "border": "0",
  4430. "scrolling ": "no",
  4431. "style": {
  4432. "cssText": "border:0;width:100%;height:100%"
  4433. },
  4434. "src": "https://iwb.cocorobo.cn/"
  4435. })
  4436. _box.appendChild(_iframe);
  4437. _box.appendChild(_jie);
  4438. _formdiv = new U.UF.UI.form(
  4439. "电子白板-" + _username,
  4440. _box, {
  4441. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4442. "style": {
  4443. "width": "90%",
  4444. "height": "90%",
  4445. "overflow": 'hidden'
  4446. },
  4447. "onresize": function () { }
  4448. }, {
  4449. closecallback: function () { }
  4450. }, {
  4451. "style": {
  4452. "height": "36px"
  4453. }
  4454. }).form; //创建窗体
  4455. _taskbar = {
  4456. "id": str + _formdiv.id,
  4457. "style": {
  4458. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4459. },
  4460. "name": "电子白板",
  4461. "forms": _formdiv,
  4462. "click": function () {
  4463. U.MD.D.I.openApplication(str, obj, info);
  4464. }
  4465. }
  4466. break;
  4467. case "mind":
  4468. aTool = 3;
  4469. _iframe = $$("iframe", {
  4470. "frameborder": "no",
  4471. "border": "0",
  4472. "scrolling ": "no",
  4473. "style": {
  4474. "cssText": "border:0;width:100%;height:100%"
  4475. },
  4476. "src": "/kityminder-editor/dist/index.html"
  4477. })
  4478. _box.appendChild(_iframe);
  4479. _box.appendChild(_jie);
  4480. _formdiv = new U.UF.UI.form(
  4481. "思维导图-" + _username,
  4482. _box, { //"/jsmind/example/demo.html"
  4483. "id": "mind" + cid + stage + task + tool + _userid,
  4484. "style": {
  4485. "width": "90%",
  4486. "height": "90%",
  4487. "overflow": 'hidden'
  4488. },
  4489. "onresize": function () { }
  4490. }, {
  4491. closecallback: function () { }
  4492. }, {
  4493. "style": {
  4494. "height": "36px"
  4495. }
  4496. }).form; //创建窗体
  4497. _taskbar = {
  4498. "id": str + _formdiv.id,
  4499. "style": {
  4500. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4501. },
  4502. "name": "思维导图",
  4503. "forms": _formdiv,
  4504. "click": function () {
  4505. U.MD.D.I.openApplication(str, obj, info);
  4506. }
  4507. }
  4508. break;
  4509. case "MindMap":
  4510. aTool = 3;
  4511. _iframe = $$("iframe", {
  4512. "frameborder": "no",
  4513. "border": "0",
  4514. "scrolling ": "no",
  4515. "style": {
  4516. "cssText": "border:0;width:100%;height:100%"
  4517. },
  4518. "src": "//cloud.cocorobo.cn/mind/"
  4519. })
  4520. _box.appendChild(_iframe);
  4521. _box.appendChild(_jie);
  4522. _formdiv = new U.UF.UI.form(
  4523. "思维导图-" + _username,
  4524. _box, { //"/jsmind/example/demo.html"
  4525. "id": "mind" + cid + stage + task + tool + _userid,
  4526. "style": {
  4527. "width": "90%",
  4528. "height": "90%",
  4529. "overflow": 'hidden'
  4530. },
  4531. "onresize": function () { }
  4532. }, {
  4533. closecallback: function () { }
  4534. }, {
  4535. "style": {
  4536. "height": "36px"
  4537. }
  4538. }).form; //创建窗体
  4539. _taskbar = {
  4540. "id": str + _formdiv.id,
  4541. "style": {
  4542. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4543. },
  4544. "name": "思维导图",
  4545. "forms": _formdiv,
  4546. "click": function () {
  4547. U.MD.D.I.openApplication(str, obj, info);
  4548. }
  4549. }
  4550. break;
  4551. case "doc":
  4552. aTool = 6;
  4553. _iframe = $$("iframe", {
  4554. "frameborder": "no",
  4555. "border": "0",
  4556. "scrolling ": "no",
  4557. "style": {
  4558. "cssText": "border:0;width:100%;height:100%"
  4559. },
  4560. "src": "/Office/Word/WordEditArea.htm"
  4561. })
  4562. _box.appendChild(_iframe);
  4563. _box.appendChild(_jie);
  4564. _formdiv = new U.UF.UI.form(
  4565. "协同文档-" + _username,
  4566. _box, {
  4567. "id": "doc" + cid + stage + task + tool + _userid,
  4568. "style": {
  4569. "width": "90%",
  4570. "height": "90%",
  4571. "overflow": 'hidden'
  4572. },
  4573. "onresize": function () { }
  4574. }, {
  4575. closecallback: function () { }
  4576. }, {
  4577. "style": {
  4578. "height": "36px"
  4579. }
  4580. }).form; //创建窗体
  4581. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4582. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4583. })
  4584. _taskbar = {
  4585. "id": str + _formdiv.id,
  4586. "style": {
  4587. "backgroundImage": "url(/img/icon/doc.png)"
  4588. },
  4589. "name": "协同文档",
  4590. "forms": _formdiv,
  4591. "click": function () {
  4592. U.MD.D.I.openApplication(str, obj, info);
  4593. }
  4594. }
  4595. break;
  4596. case "mindNetwork": //好友打开
  4597. aTool = 7;
  4598. _iframe = $$("iframe", {
  4599. "webkitallowfullscreen": "",
  4600. "mozallowfullscreen": "",
  4601. "allowfullscreen": "",
  4602. "frameborder": "no",
  4603. "border": "0",
  4604. "scrolling ": "no",
  4605. "style": {
  4606. "cssText": "border:0; width:100%; height:100%;"
  4607. },
  4608. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4609. })
  4610. _box.appendChild(_iframe);
  4611. _box.appendChild(_jie);
  4612. _formdiv = new U.UF.UI.form(
  4613. "思维网格-" + _username,
  4614. _box, {
  4615. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4616. "style": {
  4617. "width": "90%",
  4618. "height": "90%",
  4619. "overflow": 'hidden'
  4620. },
  4621. "onresize": function () { }
  4622. }, {
  4623. closecallback: function () { }
  4624. }, {
  4625. "style": {
  4626. "height": "36px"
  4627. }
  4628. }).form; //创建窗体
  4629. _taskbar = {
  4630. "id": str + _formdiv.id,
  4631. "style": {
  4632. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4633. },
  4634. "name": "思维网格",
  4635. "forms": _formdiv,
  4636. "click": function () {
  4637. U.MD.D.I.openApplication(str, obj, info);
  4638. }
  4639. }
  4640. break;
  4641. case "courseDesign":
  4642. _iframe = $$("iframe", {
  4643. "webkitallowfullscreen": "",
  4644. "mozallowfullscreen": "",
  4645. "allowfullscreen": "",
  4646. "frameborder": "no",
  4647. "border": "0",
  4648. "scrolling ": "no",
  4649. "style": {
  4650. "cssText": "border:0; width:100%; height:100%;"
  4651. },
  4652. "src": "/course-design-vue"
  4653. })
  4654. _box.appendChild(_iframe);
  4655. _box.appendChild(_jie);
  4656. _formdiv = new U.UF.UI.form(
  4657. "项目设计-" + _username,
  4658. _box, {
  4659. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4660. "style": {
  4661. "width": "90%",
  4662. "height": "90%",
  4663. "overflow": 'hidden'
  4664. },
  4665. "onresize": function () { }
  4666. }, {
  4667. closecallback: function () { }
  4668. }, {
  4669. "style": {
  4670. "height": "36px"
  4671. }
  4672. }).form; //创建窗体
  4673. _taskbar = {
  4674. "id": str + _formdiv.id,
  4675. "style": {
  4676. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4677. },
  4678. "name": "项目设计",
  4679. "forms": _formdiv,
  4680. "click": function () {
  4681. U.MD.D.I.openApplication(str, obj, info);
  4682. }
  4683. }
  4684. break;
  4685. }
  4686. const script1 = document.createElement("script");
  4687. script1.type = "text/javascript";
  4688. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4689. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4690. const script2 = document.createElement("script");
  4691. script2.type = "text/javascript";
  4692. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4693. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4694. const script3 = document.createElement("script");
  4695. script3.type = "text/javascript";
  4696. script3.charset = "UTF-8";
  4697. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4698. const script4 = document.createElement("script");
  4699. script4.type = "text/javascript";
  4700. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4701. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4702. if (_iframe) {
  4703. if (str == 'doc') {
  4704. _iframe = _formdiv.querySelector('iframe')
  4705. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4706. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4707. _iframe.contentWindow.document.body.appendChild(script1);
  4708. _iframe.contentWindow.document.body.appendChild(script2);
  4709. // _iframe.contentWindow.document.body.appendChild(script3);
  4710. _iframe.contentWindow.document.body.appendChild(script4);
  4711. })
  4712. if (onloadListener) {
  4713. _iframe.contentDocument.location.reload()
  4714. } else {
  4715. _iframe.contentDocument.location.reload()
  4716. }
  4717. } else if (str == 'courseDesign') {
  4718. U.UF.DL.iframeLoad(_iframe, function () {
  4719. // _iframe.contentWindow.U.MD.O.W.load();
  4720. // _iframe.contentWindow.document.body.appendChild(script1);
  4721. _iframe.contentWindow.document.body.appendChild(script2);
  4722. _iframe.contentWindow.document.body.appendChild(script4);
  4723. })
  4724. } else if (str == 'mind') {
  4725. _iframe = _formdiv.querySelector('iframe')
  4726. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4727. //
  4728. _iframe.contentWindow.document.body.appendChild(script1);
  4729. _iframe.contentWindow.document.body.appendChild(script2);
  4730. _iframe.contentWindow.document.body.appendChild(script4);
  4731. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4732. })
  4733. if (onloadListener) {
  4734. _iframe.contentDocument.location.reload()
  4735. } else {
  4736. _iframe.contentDocument.location.reload()
  4737. }
  4738. } else if (str == 'whiteboard') {
  4739. _iframe = _formdiv.querySelector('iframe')
  4740. let onloadListener = _iframe.onload = () => {
  4741. _iframe.contentWindow.document.body.appendChild(script1);
  4742. _iframe.contentWindow.document.body.appendChild(script2);
  4743. _iframe.contentWindow.document.body.appendChild(script4);
  4744. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4745. };
  4746. if (onloadListener) {
  4747. _iframe.contentDocument.location.reload()
  4748. } else {
  4749. _iframe.contentDocument.location.reload()
  4750. }
  4751. } else {
  4752. _iframe.onload = () => {
  4753. _iframe.contentWindow.document.body.appendChild(script1);
  4754. _iframe.contentWindow.document.body.appendChild(script2);
  4755. // _iframe.contentWindow.document.body.appendChild(script3);
  4756. _iframe.contentWindow.document.body.appendChild(script4);
  4757. };
  4758. }
  4759. _jie.onclick = async () => {
  4760. let text = ''
  4761. if (aTool == 1) {
  4762. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4763. } else if (aTool == 6) {
  4764. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4765. } else if (aTool == 3) {
  4766. text = await U.MD.D.I.getEditorContent(_iframe);
  4767. }
  4768. _loading.style.display = 'flex'
  4769. console.log(_loading);
  4770. var _ajs = _iframe.contentWindow.document.createElement("script");
  4771. _ajs.type = "text/javascript";
  4772. _ajs.innerHTML =
  4773. // 'console.log(' + _loading + ');\n' +
  4774. 'var _js = document.createElement("script");\n' +
  4775. '_js.type="text/javascript";\n' +
  4776. '_js.charset="UTF-8";\n' +
  4777. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4778. "_js.onload = function(){\n" +
  4779. ' var a = document.getElementsByTagName("img")\n' +
  4780. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4781. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4782. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4783. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4784. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4785. "beforeUpload_shishi(file," +
  4786. "'" +
  4787. _userid +
  4788. "'" +
  4789. ", " +
  4790. "'" +
  4791. _cid +
  4792. "'" +
  4793. ", " +
  4794. "'" +
  4795. _stage +
  4796. "'" +
  4797. ", " +
  4798. "'" +
  4799. _task +
  4800. "'" +
  4801. ", " +
  4802. "'" +
  4803. _tool +
  4804. "'" +
  4805. ", " +
  4806. "'" +
  4807. str + '_loadLi' + _userid +
  4808. "'" +
  4809. ", " +
  4810. "'" +
  4811. aTool +
  4812. "'" +
  4813. ", " +
  4814. "`" +
  4815. text +
  4816. "`" +
  4817. ")\n" +
  4818. " });\n" +
  4819. "}\n" +
  4820. "document.head.appendChild(_js);\n";
  4821. _iframe.contentWindow.document.head.appendChild(_ajs);
  4822. }
  4823. }
  4824. }
  4825. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  4826. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4827. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4828. _userid = student.userid, //登录用户id
  4829. _username = student.student //用户名字
  4830. let _iframe;
  4831. let _cid = cid,
  4832. _stage = stage,
  4833. _task = task,
  4834. _tool = tool;
  4835. var _jie = $$("div", {
  4836. "style": {
  4837. "position": "absolute",
  4838. "bottom": "50px",
  4839. "right": "50px",
  4840. "zIndex": "9999",
  4841. "backgroundColor": "#2268bc",
  4842. "color": "#fff",
  4843. "padding": "12px 20px",
  4844. "cursor": "pointer",
  4845. "borderRadius": "4px",
  4846. },
  4847. "innerHTML": "提交作业"
  4848. })
  4849. let aTool = ''
  4850. let _loading = document.createElement('div')
  4851. _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;"
  4852. // _loading.id = "";
  4853. let _lchild = document.createElement('div')
  4854. let _limg = document.createElement('img')
  4855. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4856. _limg.style = "width: 26px;margin-right: 10px;"
  4857. _lchild.appendChild(_limg)
  4858. let _lspan = document.createElement('span')
  4859. _lspan.innerHTML = "上传中..."
  4860. _lchild.appendChild(_lspan)
  4861. _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%);"
  4862. _loading.appendChild(_lchild)
  4863. var _box = $$('div', {
  4864. "style": {
  4865. "position": "relative",
  4866. "width": "100%",
  4867. "height": "100%",
  4868. },
  4869. })
  4870. _box.appendChild(_loading)
  4871. _box.id = str + '_loadLi' + _userid
  4872. switch (str) {
  4873. case "whiteboard":
  4874. aTool = 1;
  4875. _iframe = $$("iframe", {
  4876. "frameborder": "no",
  4877. "border": "0",
  4878. "scrolling ": "no",
  4879. "style": {
  4880. "cssText": "border:0;width:100%;height:100%"
  4881. },
  4882. "src": "https://iwb.cocorobo.cn/"
  4883. })
  4884. _box.appendChild(_iframe);
  4885. _box.appendChild(_jie);
  4886. _formdiv = new U.UF.UI.form(
  4887. "电子白板-" + _username,
  4888. _box, {
  4889. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4890. "style": {
  4891. "width": "90%",
  4892. "height": "90%",
  4893. "overflow": 'hidden'
  4894. },
  4895. "onresize": function () { }
  4896. }, {
  4897. closecallback: function () { }
  4898. }, {
  4899. "style": {
  4900. "height": "36px"
  4901. }
  4902. }).form; //创建窗体
  4903. _taskbar = {
  4904. "id": str + _formdiv.id,
  4905. "style": {
  4906. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4907. },
  4908. "name": "电子白板",
  4909. "forms": _formdiv,
  4910. "click": function () {
  4911. U.MD.D.I.openApplication(str, obj, info);
  4912. }
  4913. }
  4914. break;
  4915. case "mind":
  4916. aTool = 3;
  4917. _iframe = $$("iframe", {
  4918. "frameborder": "no",
  4919. "border": "0",
  4920. "scrolling ": "no",
  4921. "style": {
  4922. "cssText": "border:0;width:100%;height:100%"
  4923. },
  4924. "src": "/kityminder-editor/dist/index.html"
  4925. })
  4926. _box.appendChild(_iframe);
  4927. _box.appendChild(_jie);
  4928. _formdiv = new U.UF.UI.form(
  4929. "思维导图-" + _username,
  4930. _box, { //"/jsmind/example/demo.html"
  4931. "id": "mind" + cid + stage + task + tool + _userid,
  4932. "style": {
  4933. "width": "90%",
  4934. "height": "90%",
  4935. "overflow": 'hidden'
  4936. },
  4937. "onresize": function () { }
  4938. }, {
  4939. closecallback: function () { }
  4940. }, {
  4941. "style": {
  4942. "height": "36px"
  4943. }
  4944. }).form; //创建窗体
  4945. _taskbar = {
  4946. "id": str + _formdiv.id,
  4947. "style": {
  4948. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4949. },
  4950. "name": "思维导图",
  4951. "forms": _formdiv,
  4952. "click": function () {
  4953. U.MD.D.I.openApplication(str, obj, info);
  4954. }
  4955. }
  4956. break;
  4957. case "MindMap":
  4958. aTool = 3;
  4959. _iframe = $$("iframe", {
  4960. "frameborder": "no",
  4961. "border": "0",
  4962. "scrolling ": "no",
  4963. "style": {
  4964. "cssText": "border:0;width:100%;height:100%"
  4965. },
  4966. "src": "//cloud.cocorobo.cn/mind/"
  4967. })
  4968. _box.appendChild(_iframe);
  4969. _box.appendChild(_jie);
  4970. _formdiv = new U.UF.UI.form(
  4971. "思维导图-" + _username,
  4972. _box, { //"/jsmind/example/demo.html"
  4973. "id": "mind" + cid + stage + task + tool + _userid,
  4974. "style": {
  4975. "width": "90%",
  4976. "height": "90%",
  4977. "overflow": 'hidden'
  4978. },
  4979. "onresize": function () { }
  4980. }, {
  4981. closecallback: function () { }
  4982. }, {
  4983. "style": {
  4984. "height": "36px"
  4985. }
  4986. }).form; //创建窗体
  4987. _taskbar = {
  4988. "id": str + _formdiv.id,
  4989. "style": {
  4990. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4991. },
  4992. "name": "思维导图",
  4993. "forms": _formdiv,
  4994. "click": function () {
  4995. U.MD.D.I.openApplication(str, obj, info);
  4996. }
  4997. }
  4998. break;
  4999. case "doc":
  5000. aTool = 6;
  5001. _iframe = $$("iframe", {
  5002. "frameborder": "no",
  5003. "border": "0",
  5004. "scrolling ": "no",
  5005. "style": {
  5006. "cssText": "border:0;width:100%;height:100%"
  5007. },
  5008. "src": "/Office/Word/WordEditArea.htm"
  5009. })
  5010. _box.appendChild(_iframe);
  5011. _box.appendChild(_jie);
  5012. _formdiv = new U.UF.UI.form(
  5013. "协同文档-" + _username,
  5014. _box, {
  5015. "id": "doc" + cid + stage + task + tool + _userid,
  5016. "style": {
  5017. "width": "90%",
  5018. "height": "90%",
  5019. "overflow": 'hidden'
  5020. },
  5021. "onresize": function () { }
  5022. }, {
  5023. closecallback: function () { }
  5024. }, {
  5025. "style": {
  5026. "height": "36px"
  5027. }
  5028. }).form; //创建窗体
  5029. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5030. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5031. })
  5032. _taskbar = {
  5033. "id": str + _formdiv.id,
  5034. "style": {
  5035. "backgroundImage": "url(/img/icon/doc.png)"
  5036. },
  5037. "name": "协同文档",
  5038. "forms": _formdiv,
  5039. "click": function () {
  5040. U.MD.D.I.openApplication(str, obj, info);
  5041. }
  5042. }
  5043. break;
  5044. case "mindNetwork": //好友打开
  5045. aTool = 7;
  5046. _iframe = $$("iframe", {
  5047. "webkitallowfullscreen": "",
  5048. "mozallowfullscreen": "",
  5049. "allowfullscreen": "",
  5050. "frameborder": "no",
  5051. "border": "0",
  5052. "scrolling ": "no",
  5053. "style": {
  5054. "cssText": "border:0; width:100%; height:100%;"
  5055. },
  5056. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5057. })
  5058. _box.appendChild(_iframe);
  5059. _box.appendChild(_jie);
  5060. _formdiv = new U.UF.UI.form(
  5061. "思维网格-" + _username,
  5062. _box, {
  5063. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5064. "style": {
  5065. "width": "90%",
  5066. "height": "90%",
  5067. "overflow": 'hidden'
  5068. },
  5069. "onresize": function () { }
  5070. }, {
  5071. closecallback: function () { }
  5072. }, {
  5073. "style": {
  5074. "height": "36px"
  5075. }
  5076. }).form; //创建窗体
  5077. _taskbar = {
  5078. "id": str + _formdiv.id,
  5079. "style": {
  5080. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5081. },
  5082. "name": "思维网格",
  5083. "forms": _formdiv,
  5084. "click": function () {
  5085. U.MD.D.I.openApplication(str, obj, info);
  5086. }
  5087. }
  5088. break;
  5089. case "courseDesign":
  5090. _iframe = $$("iframe", {
  5091. "webkitallowfullscreen": "",
  5092. "mozallowfullscreen": "",
  5093. "allowfullscreen": "",
  5094. "frameborder": "no",
  5095. "border": "0",
  5096. "scrolling ": "no",
  5097. "style": {
  5098. "cssText": "border:0; width:100%; height:100%;"
  5099. },
  5100. "src": "/course-design-vue"
  5101. })
  5102. _box.appendChild(_iframe);
  5103. _box.appendChild(_jie);
  5104. _formdiv = new U.UF.UI.form(
  5105. "项目设计-" + _username,
  5106. _box, {
  5107. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5108. "style": {
  5109. "width": "90%",
  5110. "height": "90%",
  5111. "overflow": 'hidden'
  5112. },
  5113. "onresize": function () { }
  5114. }, {
  5115. closecallback: function () { }
  5116. }, {
  5117. "style": {
  5118. "height": "36px"
  5119. }
  5120. }).form; //创建窗体
  5121. _taskbar = {
  5122. "id": str + _formdiv.id,
  5123. "style": {
  5124. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5125. },
  5126. "name": "项目设计",
  5127. "forms": _formdiv,
  5128. "click": function () {
  5129. U.MD.D.I.openApplication(str, obj, info);
  5130. }
  5131. }
  5132. break;
  5133. }
  5134. const script1 = document.createElement("script");
  5135. script1.type = "text/javascript";
  5136. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5137. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5138. const script2 = document.createElement("script");
  5139. script2.type = "text/javascript";
  5140. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5141. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5142. const script3 = document.createElement("script");
  5143. script3.type = "text/javascript";
  5144. script3.charset = "UTF-8";
  5145. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5146. const script4 = document.createElement("script");
  5147. script4.type = "text/javascript";
  5148. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5149. script4.src = window.origin + "/js/Common/jietu2E.js";
  5150. if (_iframe) {
  5151. if (str == 'doc') {
  5152. _iframe = _formdiv.querySelector('iframe')
  5153. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5154. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5155. _iframe.contentWindow.document.body.appendChild(script1);
  5156. _iframe.contentWindow.document.body.appendChild(script2);
  5157. // _iframe.contentWindow.document.body.appendChild(script3);
  5158. _iframe.contentWindow.document.body.appendChild(script4);
  5159. })
  5160. if (onloadListener) {
  5161. _iframe.contentDocument.location.reload()
  5162. } else {
  5163. _iframe.contentDocument.location.reload()
  5164. }
  5165. } else if (str == 'courseDesign') {
  5166. U.UF.DL.iframeLoad(_iframe, function () {
  5167. // _iframe.contentWindow.U.MD.O.W.load();
  5168. // _iframe.contentWindow.document.body.appendChild(script1);
  5169. _iframe.contentWindow.document.body.appendChild(script2);
  5170. _iframe.contentWindow.document.body.appendChild(script4);
  5171. })
  5172. } else if (str == 'mind') {
  5173. _iframe = _formdiv.querySelector('iframe')
  5174. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5175. //
  5176. _iframe.contentWindow.document.body.appendChild(script1);
  5177. _iframe.contentWindow.document.body.appendChild(script2);
  5178. _iframe.contentWindow.document.body.appendChild(script4);
  5179. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5180. })
  5181. if (onloadListener) {
  5182. _iframe.contentDocument.location.reload()
  5183. } else {
  5184. _iframe.contentDocument.location.reload()
  5185. }
  5186. } else if (str == 'whiteboard') {
  5187. _iframe = _formdiv.querySelector('iframe')
  5188. let onloadListener = _iframe.onload = () => {
  5189. _iframe.contentWindow.document.body.appendChild(script1);
  5190. _iframe.contentWindow.document.body.appendChild(script2);
  5191. _iframe.contentWindow.document.body.appendChild(script4);
  5192. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5193. };
  5194. if (onloadListener) {
  5195. _iframe.contentDocument.location.reload()
  5196. } else {
  5197. _iframe.contentDocument.location.reload()
  5198. }
  5199. } else {
  5200. _iframe.onload = () => {
  5201. _iframe.contentWindow.document.body.appendChild(script1);
  5202. _iframe.contentWindow.document.body.appendChild(script2);
  5203. // _iframe.contentWindow.document.body.appendChild(script3);
  5204. _iframe.contentWindow.document.body.appendChild(script4);
  5205. };
  5206. }
  5207. _jie.onclick = async () => {
  5208. let text = ''
  5209. if (aTool == 1) {
  5210. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5211. } else if (aTool == 6) {
  5212. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5213. } else if (aTool == 3) {
  5214. text = await U.MD.D.I.getEditorContent(_iframe);
  5215. }
  5216. _loading.style.display = 'flex'
  5217. console.log(_loading);
  5218. var _ajs = _iframe.contentWindow.document.createElement("script");
  5219. _ajs.type = "text/javascript";
  5220. _ajs.innerHTML =
  5221. // 'console.log(' + _loading + ');\n' +
  5222. 'var _js = document.createElement("script");\n' +
  5223. '_js.type="text/javascript";\n' +
  5224. '_js.charset="UTF-8";\n' +
  5225. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5226. "_js.onload = function(){\n" +
  5227. ' var a = document.getElementsByTagName("img")\n' +
  5228. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5229. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5230. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5231. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5232. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5233. "beforeUpload_shishi(file," +
  5234. "'" +
  5235. _userid +
  5236. "'" +
  5237. ", " +
  5238. "'" +
  5239. _cid +
  5240. "'" +
  5241. ", " +
  5242. "'" +
  5243. _stage +
  5244. "'" +
  5245. ", " +
  5246. "'" +
  5247. _task +
  5248. "'" +
  5249. ", " +
  5250. "'" +
  5251. _tool +
  5252. "'" +
  5253. ", " +
  5254. "'" +
  5255. str + '_loadLi' + _userid +
  5256. "'" +
  5257. ", " +
  5258. "'" +
  5259. aTool +
  5260. "'" +
  5261. ", " +
  5262. "`" +
  5263. text +
  5264. "`" +
  5265. ")\n" +
  5266. " });\n" +
  5267. "}\n" +
  5268. "document.head.appendChild(_js);\n";
  5269. _iframe.contentWindow.document.head.appendChild(_ajs);
  5270. }
  5271. }
  5272. }
  5273. U.MD.D.I.getEditorContent = function (iframe) {
  5274. return new Promise((resolve, reject) => {
  5275. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5276. console.log(content);
  5277. resolve(content)
  5278. });
  5279. });
  5280. }
  5281. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5282. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5283. // if (res.value[0].length > 0) {
  5284. // // resolve(res.value[0][0].text);
  5285. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5286. // $(fileInput).val('');
  5287. // });
  5288. // }
  5289. // }, [], { "type": "GET", "withCredentials": true });
  5290. var xmlhttp;
  5291. var Mac, Sn, DeviceId
  5292. if (window.XMLHttpRequest) {
  5293. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5294. xmlhttp = new XMLHttpRequest();
  5295. }
  5296. else {
  5297. // IE6, IE5 浏览器执行代码
  5298. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5299. }
  5300. xmlhttp.onreadystatechange = function () {
  5301. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5302. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5303. // resolve(res.value[0][0].text);
  5304. if (type == '2') {
  5305. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5306. $(fileInput).val('');
  5307. });
  5308. } else if (type == '3') {
  5309. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5310. }
  5311. } else {
  5312. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5313. }
  5314. }
  5315. }
  5316. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5317. xmlhttp.send();
  5318. }
  5319. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5320. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5321. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5322. _userinfo = US.userInfo, //登录用户信息
  5323. _userid = US.userInfo.userid //登录用户id
  5324. let _iframe;
  5325. let _cid = cid,
  5326. _stage = stage,
  5327. _task = task,
  5328. _tool = tool;
  5329. var _jie = $$("div", {
  5330. "style": {
  5331. "position": "absolute",
  5332. "bottom": "50px",
  5333. "right": "50px",
  5334. "zIndex": "9999",
  5335. "backgroundColor": "#2268bc",
  5336. "color": "#fff",
  5337. "padding": "12px 20px",
  5338. "cursor": "pointer",
  5339. "borderRadius": "4px",
  5340. },
  5341. "innerHTML": "确认并提交"
  5342. })
  5343. let aTool = ''
  5344. let _loading = document.createElement('div')
  5345. _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;"
  5346. // _loading.id = "";
  5347. let _lchild = document.createElement('div')
  5348. let _limg = document.createElement('img')
  5349. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5350. _limg.style = "width: 26px;margin-right: 10px;"
  5351. _lchild.appendChild(_limg)
  5352. let _lspan = document.createElement('span')
  5353. _lspan.innerHTML = "上传中..."
  5354. _lchild.appendChild(_lspan)
  5355. _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%);"
  5356. _loading.appendChild(_lchild)
  5357. var _box = $$('div', {
  5358. "style": {
  5359. "position": "relative",
  5360. "width": "100%",
  5361. "height": "100%",
  5362. },
  5363. })
  5364. _box.appendChild(_loading)
  5365. _box.id = str + '_loadLi'
  5366. switch (str) {
  5367. case "whiteboard":
  5368. aTool = 1;
  5369. _iframe = $$("iframe", {
  5370. "frameborder": "no",
  5371. "border": "0",
  5372. "scrolling ": "no",
  5373. "style": {
  5374. "cssText": "border:0;width:100%;height:100%"
  5375. },
  5376. "src": "https://iwb.cocorobo.cn/"
  5377. })
  5378. _box.appendChild(_iframe);
  5379. _box.appendChild(_jie);
  5380. _formdiv = new U.UF.UI.form(
  5381. "电子白板",
  5382. _box, {
  5383. "id": "whiteboards" + cid + stage + task + tool,
  5384. "style": {
  5385. "width": "90%",
  5386. "height": "90%",
  5387. "overflow": 'hidden'
  5388. },
  5389. "onresize": function () { }
  5390. }, {
  5391. closecallback: function () { }
  5392. }, {
  5393. "style": {
  5394. "height": "36px"
  5395. }
  5396. }).form; //创建窗体
  5397. _taskbar = {
  5398. "id": str + _formdiv.id,
  5399. "style": {
  5400. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5401. },
  5402. "name": "电子白板",
  5403. "forms": _formdiv,
  5404. "click": function () {
  5405. U.MD.D.I.openApplication(str, obj, info);
  5406. }
  5407. }
  5408. break;
  5409. case "mind":
  5410. aTool = 3;
  5411. _iframe = $$("iframe", {
  5412. "frameborder": "no",
  5413. "border": "0",
  5414. "scrolling ": "no",
  5415. "style": {
  5416. "cssText": "border:0;width:100%;height:100%"
  5417. },
  5418. "src": "/kityminder-editor/dist/index.html"
  5419. });
  5420. _box.appendChild(_iframe);
  5421. _box.appendChild(_jie);
  5422. _formdiv = new U.UF.UI.form(
  5423. "思维导图",
  5424. _box, { //"/jsmind/example/demo.html"
  5425. "id": "minds" + cid + stage + task + tool,
  5426. "style": {
  5427. "width": "90%",
  5428. "height": "90%",
  5429. "overflow": 'hidden'
  5430. },
  5431. "onresize": function () { }
  5432. }, {
  5433. closecallback: function () { }
  5434. }, {
  5435. "style": {
  5436. "height": "36px"
  5437. }
  5438. }).form; //创建窗体
  5439. _taskbar = {
  5440. "id": str + _formdiv.id,
  5441. "style": {
  5442. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5443. },
  5444. "name": "思维导图",
  5445. "forms": _formdiv,
  5446. "click": function () {
  5447. U.MD.D.I.openApplication(str, obj, info);
  5448. }
  5449. }
  5450. break;
  5451. case "doc":
  5452. aTool = 6;
  5453. _iframe = $$("iframe", {
  5454. "frameborder": "no",
  5455. "border": "0",
  5456. "scrolling ": "no",
  5457. "style": {
  5458. "cssText": "border:0;width:100%;height:100%"
  5459. },
  5460. "src": "/Office/Word/WordEditArea.htm"
  5461. })
  5462. _box.appendChild(_iframe);
  5463. _box.appendChild(_jie);
  5464. _formdiv = new U.UF.UI.form(
  5465. "协同文档",
  5466. _box, {
  5467. "id": "docs" + cid + stage + task + tool,
  5468. "style": {
  5469. "width": "90%",
  5470. "height": "90%",
  5471. "overflow": 'hidden'
  5472. },
  5473. "onresize": function () { }
  5474. }, {
  5475. closecallback: function () { }
  5476. }, {
  5477. "style": {
  5478. "height": "36px"
  5479. }
  5480. }).form; //创建窗体
  5481. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5482. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5483. })
  5484. _taskbar = {
  5485. "id": str + _formdiv.id,
  5486. "style": {
  5487. "backgroundImage": "url(/img/icon/doc.png)"
  5488. },
  5489. "name": "协同文档",
  5490. "forms": _formdiv,
  5491. "click": function () {
  5492. U.MD.D.I.openApplication(str, obj, info);
  5493. }
  5494. }
  5495. break;
  5496. }
  5497. const script1 = document.createElement("script");
  5498. script1.type = "text/javascript";
  5499. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5500. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5501. const script2 = document.createElement("script");
  5502. script2.type = "text/javascript";
  5503. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5504. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5505. const script3 = document.createElement("script");
  5506. script3.type = "text/javascript";
  5507. script3.charset = "UTF-8";
  5508. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5509. const script4 = document.createElement("script");
  5510. script4.type = "text/javascript";
  5511. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5512. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5513. if (_iframe) {
  5514. if (str == 'doc') {
  5515. _iframe = _formdiv.querySelector('iframe')
  5516. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5517. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5518. _iframe.contentWindow.document.body.appendChild(script1);
  5519. _iframe.contentWindow.document.body.appendChild(script2);
  5520. // _iframe.contentWindow.document.body.appendChild(script3);
  5521. _iframe.contentWindow.document.body.appendChild(script4);
  5522. })
  5523. if (onloadListener) {
  5524. _iframe.contentDocument.location.reload()
  5525. } else {
  5526. _iframe.contentDocument.location.reload()
  5527. }
  5528. } else if (str == 'mind') {
  5529. _iframe = _formdiv.querySelector('iframe')
  5530. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5531. _iframe.contentWindow.document.body.appendChild(script1);
  5532. _iframe.contentWindow.document.body.appendChild(script2);
  5533. _iframe.contentWindow.document.body.appendChild(script4);
  5534. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5535. })
  5536. if (onloadListener) {
  5537. _iframe.contentDocument.location.reload()
  5538. } else {
  5539. _iframe.contentDocument.location.reload()
  5540. }
  5541. } else {
  5542. _iframe.onload = () => {
  5543. _iframe.contentWindow.document.body.appendChild(script1);
  5544. _iframe.contentWindow.document.body.appendChild(script2);
  5545. // _iframe.contentWindow.document.body.appendChild(script3);
  5546. _iframe.contentWindow.document.body.appendChild(script4);
  5547. };
  5548. }
  5549. _jie.onclick = async () => {
  5550. let text = ''
  5551. if (aTool == 6) {
  5552. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5553. } else if (aTool == 3) {
  5554. text = await U.MD.D.I.getEditorContent(_iframe);
  5555. }
  5556. _loading.style.display = 'flex'
  5557. console.log(_loading);
  5558. var _ajs = _iframe.contentWindow.document.createElement("script");
  5559. _ajs.type = "text/javascript";
  5560. _ajs.innerHTML =
  5561. // 'console.log(' + _loading + ');\n' +
  5562. 'var _js = document.createElement("script");\n' +
  5563. '_js.type="text/javascript";\n' +
  5564. '_js.charset="UTF-8";\n' +
  5565. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5566. "_js.onload = function(){\n" +
  5567. ' var a = document.getElementsByTagName("img")\n' +
  5568. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5569. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5570. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5571. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5572. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5573. "beforeUpload_shishi(file," +
  5574. "'" +
  5575. _userid +
  5576. "'" +
  5577. ", " +
  5578. "'" +
  5579. _cid +
  5580. "'" +
  5581. ", " +
  5582. "'" +
  5583. _stage +
  5584. "'" +
  5585. ", " +
  5586. "'" +
  5587. _task +
  5588. "'" +
  5589. ", " +
  5590. "'" +
  5591. _tool +
  5592. "'" +
  5593. ", " +
  5594. "'" +
  5595. str + '_loadLi' +
  5596. "'" +
  5597. ", " +
  5598. "'" +
  5599. aTool +
  5600. "'" +
  5601. ", " +
  5602. "`" +
  5603. text +
  5604. "`" +
  5605. ")\n" +
  5606. " });\n" +
  5607. "}\n" +
  5608. "document.head.appendChild(_js);\n";
  5609. _iframe.contentWindow.document.head.appendChild(_ajs);
  5610. }
  5611. }
  5612. //U.MD.D.I.openClick(str);
  5613. //如果有任务栏信息
  5614. // if (_taskbar) {
  5615. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5616. // }
  5617. }
  5618. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  5619. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5620. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5621. _userinfo = US.userInfo, //登录用户信息
  5622. _userid = US.userInfo.userid //登录用户id
  5623. let _iframe;
  5624. let _cid = cid,
  5625. _stage = stage,
  5626. _task = task,
  5627. _tool = tool;
  5628. var _jie = $$("div", {
  5629. "style": {
  5630. "position": "absolute",
  5631. "bottom": "50px",
  5632. "right": "50px",
  5633. "zIndex": "9999",
  5634. "backgroundColor": "#2268bc",
  5635. "color": "#fff",
  5636. "padding": "12px 20px",
  5637. "cursor": "pointer",
  5638. "borderRadius": "4px",
  5639. },
  5640. "innerHTML": "确认并提交"
  5641. })
  5642. let aTool = ''
  5643. let _loading = document.createElement('div')
  5644. _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;"
  5645. // _loading.id = "";
  5646. let _lchild = document.createElement('div')
  5647. let _limg = document.createElement('img')
  5648. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5649. _limg.style = "width: 26px;margin-right: 10px;"
  5650. _lchild.appendChild(_limg)
  5651. let _lspan = document.createElement('span')
  5652. _lspan.innerHTML = "上传中..."
  5653. _lchild.appendChild(_lspan)
  5654. _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%);"
  5655. _loading.appendChild(_lchild)
  5656. var _box = $$('div', {
  5657. "style": {
  5658. "position": "relative",
  5659. "width": "100%",
  5660. "height": "100%",
  5661. },
  5662. })
  5663. _box.appendChild(_loading)
  5664. _box.id = str + '_loadLi'
  5665. switch (str) {
  5666. case "whiteboard":
  5667. aTool = 1;
  5668. _iframe = $$("iframe", {
  5669. "frameborder": "no",
  5670. "border": "0",
  5671. "scrolling ": "no",
  5672. "style": {
  5673. "cssText": "border:0;width:100%;height:100%"
  5674. },
  5675. "src": "https://iwb.cocorobo.cn/"
  5676. })
  5677. _box.appendChild(_iframe);
  5678. _box.appendChild(_jie);
  5679. _formdiv = new U.UF.UI.form(
  5680. "电子白板",
  5681. _box, {
  5682. "id": "whiteboards" + cid + stage + task + tool,
  5683. "style": {
  5684. "width": "90%",
  5685. "height": "90%",
  5686. "overflow": 'hidden'
  5687. },
  5688. "onresize": function () { }
  5689. }, {
  5690. closecallback: function () { }
  5691. }, {
  5692. "style": {
  5693. "height": "36px"
  5694. }
  5695. }).form; //创建窗体
  5696. _taskbar = {
  5697. "id": str + _formdiv.id,
  5698. "style": {
  5699. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5700. },
  5701. "name": "电子白板",
  5702. "forms": _formdiv,
  5703. "click": function () {
  5704. U.MD.D.I.openApplication(str, obj, info);
  5705. }
  5706. }
  5707. break;
  5708. case "mind":
  5709. aTool = 3;
  5710. _iframe = $$("iframe", {
  5711. "frameborder": "no",
  5712. "border": "0",
  5713. "scrolling ": "no",
  5714. "style": {
  5715. "cssText": "border:0;width:100%;height:100%"
  5716. },
  5717. "src": "/kityminder-editor/dist/index.html"
  5718. });
  5719. _box.appendChild(_iframe);
  5720. _box.appendChild(_jie);
  5721. _formdiv = new U.UF.UI.form(
  5722. "思维导图",
  5723. _box, { //"/jsmind/example/demo.html"
  5724. "id": "minds" + cid + stage + task + tool,
  5725. "style": {
  5726. "width": "90%",
  5727. "height": "90%",
  5728. "overflow": 'hidden'
  5729. },
  5730. "onresize": function () { }
  5731. }, {
  5732. closecallback: function () { }
  5733. }, {
  5734. "style": {
  5735. "height": "36px"
  5736. }
  5737. }).form; //创建窗体
  5738. _taskbar = {
  5739. "id": str + _formdiv.id,
  5740. "style": {
  5741. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5742. },
  5743. "name": "思维导图",
  5744. "forms": _formdiv,
  5745. "click": function () {
  5746. U.MD.D.I.openApplication(str, obj, info);
  5747. }
  5748. }
  5749. break;
  5750. case "doc":
  5751. aTool = 6;
  5752. _iframe = $$("iframe", {
  5753. "frameborder": "no",
  5754. "border": "0",
  5755. "scrolling ": "no",
  5756. "style": {
  5757. "cssText": "border:0;width:100%;height:100%"
  5758. },
  5759. "src": "/Office/Word/WordEditArea.htm"
  5760. })
  5761. _box.appendChild(_iframe);
  5762. _box.appendChild(_jie);
  5763. _formdiv = new U.UF.UI.form(
  5764. "协同文档",
  5765. _box, {
  5766. "id": "docs" + cid + stage + task + tool,
  5767. "style": {
  5768. "width": "90%",
  5769. "height": "90%",
  5770. "overflow": 'hidden'
  5771. },
  5772. "onresize": function () { }
  5773. }, {
  5774. closecallback: function () { }
  5775. }, {
  5776. "style": {
  5777. "height": "36px"
  5778. }
  5779. }).form; //创建窗体
  5780. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5781. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5782. })
  5783. _taskbar = {
  5784. "id": str + _formdiv.id,
  5785. "style": {
  5786. "backgroundImage": "url(/img/icon/doc.png)"
  5787. },
  5788. "name": "协同文档",
  5789. "forms": _formdiv,
  5790. "click": function () {
  5791. U.MD.D.I.openApplication(str, obj, info);
  5792. }
  5793. }
  5794. break;
  5795. }
  5796. const script1 = document.createElement("script");
  5797. script1.type = "text/javascript";
  5798. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5799. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5800. const script2 = document.createElement("script");
  5801. script2.type = "text/javascript";
  5802. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5803. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5804. const script3 = document.createElement("script");
  5805. script3.type = "text/javascript";
  5806. script3.charset = "UTF-8";
  5807. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5808. const script4 = document.createElement("script");
  5809. script4.type = "text/javascript";
  5810. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5811. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  5812. if (_iframe) {
  5813. if (str == 'doc') {
  5814. _iframe = _formdiv.querySelector('iframe')
  5815. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5816. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5817. _iframe.contentWindow.document.body.appendChild(script1);
  5818. _iframe.contentWindow.document.body.appendChild(script2);
  5819. // _iframe.contentWindow.document.body.appendChild(script3);
  5820. _iframe.contentWindow.document.body.appendChild(script4);
  5821. })
  5822. if (onloadListener) {
  5823. _iframe.contentDocument.location.reload()
  5824. } else {
  5825. _iframe.contentDocument.location.reload()
  5826. }
  5827. } else if (str == 'mind') {
  5828. _iframe = _formdiv.querySelector('iframe')
  5829. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5830. _iframe.contentWindow.document.body.appendChild(script1);
  5831. _iframe.contentWindow.document.body.appendChild(script2);
  5832. _iframe.contentWindow.document.body.appendChild(script4);
  5833. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5834. })
  5835. if (onloadListener) {
  5836. _iframe.contentDocument.location.reload()
  5837. } else {
  5838. _iframe.contentDocument.location.reload()
  5839. }
  5840. } else {
  5841. _iframe.onload = () => {
  5842. _iframe.contentWindow.document.body.appendChild(script1);
  5843. _iframe.contentWindow.document.body.appendChild(script2);
  5844. // _iframe.contentWindow.document.body.appendChild(script3);
  5845. _iframe.contentWindow.document.body.appendChild(script4);
  5846. };
  5847. }
  5848. _jie.onclick = async () => {
  5849. let text = ''
  5850. if (aTool == 6) {
  5851. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5852. } else if (aTool == 3) {
  5853. text = await U.MD.D.I.getEditorContent(_iframe);
  5854. }
  5855. _loading.style.display = 'flex'
  5856. console.log(_loading);
  5857. var _ajs = _iframe.contentWindow.document.createElement("script");
  5858. _ajs.type = "text/javascript";
  5859. _ajs.innerHTML =
  5860. // 'console.log(' + _loading + ');\n' +
  5861. 'var _js = document.createElement("script");\n' +
  5862. '_js.type="text/javascript";\n' +
  5863. '_js.charset="UTF-8";\n' +
  5864. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5865. "_js.onload = function(){\n" +
  5866. ' var a = document.getElementsByTagName("img")\n' +
  5867. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5868. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5869. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5870. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5871. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5872. "beforeUpload_shishi(file," +
  5873. "'" +
  5874. _userid +
  5875. "'" +
  5876. ", " +
  5877. "'" +
  5878. _cid +
  5879. "'" +
  5880. ", " +
  5881. "'" +
  5882. _stage +
  5883. "'" +
  5884. ", " +
  5885. "'" +
  5886. _task +
  5887. "'" +
  5888. ", " +
  5889. "'" +
  5890. _tool +
  5891. "'" +
  5892. ", " +
  5893. "'" +
  5894. str + '_loadLi' +
  5895. "'" +
  5896. ", " +
  5897. "'" +
  5898. aTool +
  5899. "'" +
  5900. ", " +
  5901. "`" +
  5902. text +
  5903. "`" +
  5904. ")\n" +
  5905. " });\n" +
  5906. "}\n" +
  5907. "document.head.appendChild(_js);\n";
  5908. _iframe.contentWindow.document.head.appendChild(_ajs);
  5909. }
  5910. }
  5911. //U.MD.D.I.openClick(str);
  5912. //如果有任务栏信息
  5913. // if (_taskbar) {
  5914. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5915. // }
  5916. }
  5917. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  5918. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5919. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5920. _userinfo = US.userInfo, //登录用户信息
  5921. _userid = US.userInfo.userid //登录用户id
  5922. let _iframe;
  5923. let _cid = cid,
  5924. _stage = stage,
  5925. _task = task,
  5926. _tool = tool;
  5927. var _jie = $$("div", {
  5928. "style": {
  5929. "position": "absolute",
  5930. "bottom": "50px",
  5931. "right": "50px",
  5932. "zIndex": "9999",
  5933. "backgroundColor": "#2268bc",
  5934. "color": "#fff",
  5935. "padding": "12px 20px",
  5936. "cursor": "pointer",
  5937. "borderRadius": "4px",
  5938. },
  5939. "innerHTML": "上传模板"
  5940. })
  5941. let aTool = ''
  5942. let _loading = document.createElement('div')
  5943. _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;"
  5944. // _loading.id = "";
  5945. let _lchild = document.createElement('div')
  5946. let _limg = document.createElement('img')
  5947. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5948. _limg.style = "width: 26px;margin-right: 10px;"
  5949. _lchild.appendChild(_limg)
  5950. let _lspan = document.createElement('span')
  5951. _lspan.innerHTML = "上传中..."
  5952. _lchild.appendChild(_lspan)
  5953. _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%);"
  5954. _loading.appendChild(_lchild)
  5955. var _box = $$('div', {
  5956. "style": {
  5957. "position": "relative",
  5958. "width": "100%",
  5959. "height": "100%",
  5960. },
  5961. })
  5962. _box.appendChild(_loading)
  5963. _box.id = str + '_loadLi'
  5964. switch (str) {
  5965. case "whiteboard":
  5966. aTool = 1;
  5967. _iframe = $$("iframe", {
  5968. "frameborder": "no",
  5969. "border": "0",
  5970. "scrolling ": "no",
  5971. "style": {
  5972. "cssText": "border:0;width:100%;height:100%"
  5973. },
  5974. "src": "https://iwb.cocorobo.cn/"
  5975. })
  5976. _box.appendChild(_iframe);
  5977. _box.appendChild(_jie);
  5978. _formdiv = new U.UF.UI.form(
  5979. "电子白板",
  5980. _box, {
  5981. "id": "whiteboards" + cid + stage + task + tool,
  5982. "style": {
  5983. "width": "90%",
  5984. "height": "90%",
  5985. "overflow": 'hidden'
  5986. },
  5987. "onresize": function () { }
  5988. }, {
  5989. closecallback: function () { }
  5990. }, {
  5991. "style": {
  5992. "height": "36px"
  5993. }
  5994. }).form; //创建窗体
  5995. _taskbar = {
  5996. "id": str + _formdiv.id,
  5997. "style": {
  5998. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5999. },
  6000. "name": "电子白板",
  6001. "forms": _formdiv,
  6002. "click": function () {
  6003. U.MD.D.I.openApplication(str, obj, info);
  6004. }
  6005. }
  6006. break;
  6007. case "mind":
  6008. aTool = 3;
  6009. _iframe = $$("iframe", {
  6010. "frameborder": "no",
  6011. "border": "0",
  6012. "scrolling ": "no",
  6013. "style": {
  6014. "cssText": "border:0;width:100%;height:100%"
  6015. },
  6016. "src": "/kityminder-editor/dist/index.html"
  6017. });
  6018. _box.appendChild(_iframe);
  6019. _box.appendChild(_jie);
  6020. _formdiv = new U.UF.UI.form(
  6021. "思维导图",
  6022. _box, { //"/jsmind/example/demo.html"
  6023. "id": "minds" + cid + stage + task + tool,
  6024. "style": {
  6025. "width": "90%",
  6026. "height": "90%",
  6027. "overflow": 'hidden'
  6028. },
  6029. "onresize": function () { }
  6030. }, {
  6031. closecallback: function () { }
  6032. }, {
  6033. "style": {
  6034. "height": "36px"
  6035. }
  6036. }).form; //创建窗体
  6037. _taskbar = {
  6038. "id": str + _formdiv.id,
  6039. "style": {
  6040. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6041. },
  6042. "name": "思维导图",
  6043. "forms": _formdiv,
  6044. "click": function () {
  6045. U.MD.D.I.openApplication(str, obj, info);
  6046. }
  6047. }
  6048. break;
  6049. case "doc":
  6050. aTool = 6;
  6051. _iframe = $$("iframe", {
  6052. "frameborder": "no",
  6053. "border": "0",
  6054. "scrolling ": "no",
  6055. "style": {
  6056. "cssText": "border:0;width:100%;height:100%"
  6057. },
  6058. "src": "/Office/Word/WordEditArea.htm"
  6059. })
  6060. _box.appendChild(_iframe);
  6061. _box.appendChild(_jie);
  6062. _formdiv = new U.UF.UI.form(
  6063. "协同文档",
  6064. _box, {
  6065. "id": "docs" + cid + stage + task + tool,
  6066. "style": {
  6067. "width": "90%",
  6068. "height": "90%",
  6069. "overflow": 'hidden'
  6070. },
  6071. "onresize": function () { }
  6072. }, {
  6073. closecallback: function () { }
  6074. }, {
  6075. "style": {
  6076. "height": "36px"
  6077. }
  6078. }).form; //创建窗体
  6079. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6080. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6081. })
  6082. _taskbar = {
  6083. "id": str + _formdiv.id,
  6084. "style": {
  6085. "backgroundImage": "url(/img/icon/doc.png)"
  6086. },
  6087. "name": "协同文档",
  6088. "forms": _formdiv,
  6089. "click": function () {
  6090. U.MD.D.I.openApplication(str, obj, info);
  6091. }
  6092. }
  6093. break;
  6094. }
  6095. if (_iframe) {
  6096. if (str == 'doc') {
  6097. _iframe = _formdiv.querySelector('iframe')
  6098. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6099. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6100. })
  6101. if (onloadListener) {
  6102. _iframe.contentDocument.location.reload()
  6103. } else {
  6104. _iframe.contentDocument.location.reload()
  6105. }
  6106. } else if (str == 'mind') {
  6107. _iframe = _formdiv.querySelector('iframe')
  6108. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6109. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6110. })
  6111. if (onloadListener) {
  6112. _iframe.contentDocument.location.reload()
  6113. } else {
  6114. _iframe.contentDocument.location.reload()
  6115. }
  6116. } else if (str == 'whiteboard') {
  6117. _iframe = _formdiv.querySelector('iframe')
  6118. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6119. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6120. })
  6121. if (onloadListener) {
  6122. _iframe.contentDocument.location.reload()
  6123. } else {
  6124. _iframe.contentDocument.location.reload()
  6125. }
  6126. } else {
  6127. _iframe.onload = () => {
  6128. };
  6129. }
  6130. _jie.onclick = async () => {
  6131. let text = ''
  6132. let type = '2'
  6133. if (aTool == 1) {
  6134. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6135. type = '3'
  6136. } else if (aTool == 6) {
  6137. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6138. type = '1'
  6139. } else if (aTool == 3) {
  6140. text = await U.MD.D.I.getEditorContent(_iframe);
  6141. type = '2'
  6142. }
  6143. _loading.style.display = 'flex'
  6144. U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading, _lspan)
  6145. }
  6146. }
  6147. //U.MD.D.I.openClick(str);
  6148. //如果有任务栏信息
  6149. // if (_taskbar) {
  6150. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6151. // }
  6152. }
  6153. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6154. var xmlhttp;
  6155. var Mac, Sn, DeviceId
  6156. if (window.XMLHttpRequest) {
  6157. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6158. xmlhttp = new XMLHttpRequest();
  6159. }
  6160. else {
  6161. // IE6, IE5 浏览器执行代码
  6162. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6163. }
  6164. xmlhttp.onreadystatechange = function () {
  6165. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6166. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6167. // resolve(res.value[0][0].text);
  6168. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6169. $(fileInput).val('');
  6170. });
  6171. }
  6172. }
  6173. }
  6174. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6175. xmlhttp.send();
  6176. }
  6177. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6178. var xmlhttp;
  6179. var Mac, Sn, DeviceId
  6180. if (window.XMLHttpRequest) {
  6181. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6182. xmlhttp = new XMLHttpRequest();
  6183. }
  6184. else {
  6185. // IE6, IE5 浏览器执行代码
  6186. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6187. }
  6188. xmlhttp.onreadystatechange = function () {
  6189. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6190. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6191. // resolve(res.value[0][0].text);
  6192. if (type == '2') {
  6193. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6194. $(fileInput).val('');
  6195. });
  6196. } else if (type == '3') {
  6197. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6198. }
  6199. } else {
  6200. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6201. }
  6202. }
  6203. }
  6204. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6205. xmlhttp.send();
  6206. }
  6207. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6208. var xmlhttp;
  6209. var Mac, Sn, DeviceId
  6210. if (window.XMLHttpRequest) {
  6211. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6212. xmlhttp = new XMLHttpRequest();
  6213. }
  6214. else {
  6215. // IE6, IE5 浏览器执行代码
  6216. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6217. }
  6218. xmlhttp.onreadystatechange = function () {
  6219. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6220. if (xmlhttp.response) {
  6221. // resolve(res.value[0][0].text);
  6222. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6223. // $(fileInput).val('');
  6224. // });
  6225. span.innerHTML = '上传成功'
  6226. setTimeout(() => {
  6227. loading.style.display = 'none'
  6228. }, 1000);
  6229. }
  6230. }
  6231. }
  6232. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6233. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6234. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6235. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6236. // 设置请求头,表示请求体的编码格式
  6237. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
  6238. // 设置请求体,使用url-encoded格式的数据
  6239. }
  6240. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  6241. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6242. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6243. _userinfo = US.userInfo, //登录用户信息
  6244. _userid = US.userInfo.userid //登录用户id
  6245. let _iframe;
  6246. let _cid = cid,
  6247. _stage = stage,
  6248. _task = task,
  6249. _tool = tool;
  6250. var _jie = $$("div", {
  6251. "style": {
  6252. "position": "absolute",
  6253. "bottom": "50px",
  6254. "right": "50px",
  6255. "zIndex": "9999",
  6256. "backgroundColor": "#2268bc",
  6257. "color": "#fff",
  6258. "padding": "12px 20px",
  6259. "cursor": "pointer",
  6260. "borderRadius": "4px",
  6261. },
  6262. "innerHTML": "提交作业"
  6263. })
  6264. let aTool = ''
  6265. let _loading = document.createElement('div')
  6266. _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;"
  6267. // _loading.id = "";
  6268. let _lchild = document.createElement('div')
  6269. let _limg = document.createElement('img')
  6270. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6271. _limg.style = "width: 26px;margin-right: 10px;"
  6272. _lchild.appendChild(_limg)
  6273. let _lspan = document.createElement('span')
  6274. _lspan.innerHTML = "上传中..."
  6275. _lchild.appendChild(_lspan)
  6276. _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%);"
  6277. _loading.appendChild(_lchild)
  6278. var _box = $$('div', {
  6279. "style": {
  6280. "position": "relative",
  6281. "width": "100%",
  6282. "height": "100%",
  6283. },
  6284. })
  6285. _box.appendChild(_loading)
  6286. _box.id = str + '_loadLi'
  6287. switch (str) {
  6288. case "CocoPi":
  6289. aTool = 57;
  6290. _iframe = $$("iframe", {
  6291. "frameborder": "no",
  6292. "border": "0",
  6293. "scrolling ": "no",
  6294. "style": {
  6295. "cssText": "border:0;width:100%;height:100%"
  6296. },
  6297. "src": "https://beta.v.cocorobo.cn/"
  6298. })
  6299. _box.appendChild(_iframe);
  6300. _box.appendChild(_jie);
  6301. _formdiv = new U.UF.UI.form(
  6302. "CocoPi",
  6303. _box, {
  6304. "id": "CocoPi" + cid + stage + task + tool,
  6305. "style": {
  6306. "width": "90%",
  6307. "height": "90%",
  6308. "overflow": 'hidden'
  6309. },
  6310. "onresize": function () { }
  6311. }, {
  6312. closecallback: function () { }
  6313. }, {
  6314. "style": {
  6315. "height": "36px"
  6316. }
  6317. }).form; //创建窗体
  6318. _taskbar = {
  6319. "id": str + _formdiv.id,
  6320. "style": {
  6321. "backgroundImage": "url(/img/icon/cocopi.png)"
  6322. },
  6323. "name": "CocoPi",
  6324. "forms": _formdiv,
  6325. "click": function () {
  6326. U.MD.D.I.openApplication(str, obj, info);
  6327. }
  6328. }
  6329. break;
  6330. }
  6331. if (_iframe) {
  6332. if (str == 'CocoPi') {
  6333. _iframe = _formdiv.querySelector('iframe')
  6334. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6335. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6336. })
  6337. if (onloadListener) {
  6338. _iframe.contentDocument.location.reload()
  6339. } else {
  6340. _iframe.contentDocument.location.reload()
  6341. }
  6342. }
  6343. _jie.onclick = async () => {
  6344. let text = ''
  6345. if (aTool == 57) {
  6346. text = _iframe.contentWindow.getLoadXmlStr()
  6347. }
  6348. _loading.style.display = 'flex'
  6349. console.log(_loading);
  6350. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6351. _loading.style.display = 'none'
  6352. let _div = document.createElement('div')
  6353. _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;"
  6354. let _inner = document.createElement('div')
  6355. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6356. _inner.innerHTML = "上传成功"
  6357. _div.appendChild(_inner)
  6358. _iframe.contentWindow.window.document.body.appendChild(_div)
  6359. _div.onclick = () => {
  6360. _iframe.contentWindow.window.document.body.removeChild(_div)
  6361. }
  6362. setTimeout(() => {
  6363. _iframe.contentWindow.window.document.body.removeChild(_div)
  6364. }, 1000);
  6365. }, [], { "type": "POST", "withCredentials": true });
  6366. }
  6367. }
  6368. }
  6369. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  6370. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6371. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6372. _userid = student.userid, //登录用户id
  6373. _username = student.student //用户名字
  6374. let _iframe;
  6375. let _cid = cid,
  6376. _stage = stage,
  6377. _task = task,
  6378. _tool = tool;
  6379. var _jie = $$("div", {
  6380. "style": {
  6381. "position": "absolute",
  6382. "bottom": "50px",
  6383. "right": "50px",
  6384. "zIndex": "9999",
  6385. "backgroundColor": "#2268bc",
  6386. "color": "#fff",
  6387. "padding": "12px 20px",
  6388. "cursor": "pointer",
  6389. "borderRadius": "4px",
  6390. },
  6391. "innerHTML": "提交作业"
  6392. })
  6393. let aTool = ''
  6394. let _loading = document.createElement('div')
  6395. _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;"
  6396. // _loading.id = "";
  6397. let _lchild = document.createElement('div')
  6398. let _limg = document.createElement('img')
  6399. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6400. _limg.style = "width: 26px;margin-right: 10px;"
  6401. _lchild.appendChild(_limg)
  6402. let _lspan = document.createElement('span')
  6403. _lspan.innerHTML = "上传中..."
  6404. _lchild.appendChild(_lspan)
  6405. _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%);"
  6406. _loading.appendChild(_lchild)
  6407. var _box = $$('div', {
  6408. "style": {
  6409. "position": "relative",
  6410. "width": "100%",
  6411. "height": "100%",
  6412. },
  6413. })
  6414. _box.appendChild(_loading)
  6415. _box.id = str + '_loadLi'
  6416. switch (str) {
  6417. case "CocoPi":
  6418. aTool = 57;
  6419. _iframe = $$("iframe", {
  6420. "frameborder": "no",
  6421. "border": "0",
  6422. "scrolling ": "no",
  6423. "style": {
  6424. "cssText": "border:0;width:100%;height:100%"
  6425. },
  6426. "src": "https://beta.v.cocorobo.cn/"
  6427. })
  6428. _box.appendChild(_iframe);
  6429. _box.appendChild(_jie);
  6430. _formdiv = new U.UF.UI.form(
  6431. "CocoPi-" + _username,
  6432. _box, {
  6433. "id": "CocoPi" + cid + stage + task + tool + _userid,
  6434. "style": {
  6435. "width": "90%",
  6436. "height": "90%",
  6437. "overflow": 'hidden'
  6438. },
  6439. "onresize": function () { }
  6440. }, {
  6441. closecallback: function () { }
  6442. }, {
  6443. "style": {
  6444. "height": "36px"
  6445. }
  6446. }).form; //创建窗体
  6447. _taskbar = {
  6448. "id": str + _formdiv.id,
  6449. "style": {
  6450. "backgroundImage": "url(/img/icon/cocopi.png)"
  6451. },
  6452. "name": "CocoPi",
  6453. "forms": _formdiv,
  6454. "click": function () {
  6455. U.MD.D.I.openApplication(str, obj, info);
  6456. }
  6457. }
  6458. break;
  6459. }
  6460. if (_iframe) {
  6461. if (str == 'CocoPi') {
  6462. _iframe = _formdiv.querySelector('iframe')
  6463. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6464. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6465. })
  6466. if (onloadListener) {
  6467. _iframe.contentDocument.location.reload()
  6468. } else {
  6469. _iframe.contentDocument.location.reload()
  6470. }
  6471. }
  6472. _jie.onclick = async () => {
  6473. let text = ''
  6474. if (aTool == 57) {
  6475. text = _iframe.contentWindow.getLoadXmlStr()
  6476. }
  6477. _loading.style.display = 'flex'
  6478. console.log(_loading);
  6479. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6480. _loading.style.display = 'none'
  6481. let _div = document.createElement('div')
  6482. _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;"
  6483. let _inner = document.createElement('div')
  6484. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6485. _inner.innerHTML = "上传成功"
  6486. _div.appendChild(_inner)
  6487. _iframe.contentWindow.window.document.body.appendChild(_div)
  6488. _div.onclick = () => {
  6489. _iframe.contentWindow.window.document.body.removeChild(_div)
  6490. }
  6491. setTimeout(() => {
  6492. _iframe.contentWindow.window.document.body.removeChild(_div)
  6493. }, 1000);
  6494. }, [], { "type": "POST", "withCredentials": true });
  6495. }
  6496. }
  6497. }
  6498. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  6499. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  6500. if (res.value[0].length > 0) {
  6501. if (atool == 57) {
  6502. iframe.contentWindow.loadingXml(res.value[0][0].content)
  6503. }
  6504. } else {
  6505. if (atool == 57) {
  6506. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6507. }
  6508. }
  6509. }, [], { "type": "POST", "withCredentials": true });
  6510. }