DeskTop.js 365 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611
  1. /*
  2. 此处为桌面系统启动应用区域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面应用处理
  5. //判断图片是否在拖拽,如果是拖拽图标的过程是不会打开图片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教师桌面图标的全局变量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  17. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  18. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  19. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  20. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  21. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  22. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  23. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  24. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  25. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  26. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  27. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  28. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  29. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  30. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  31. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  32. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  33. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  34. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  35. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  36. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  37. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  38. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  39. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  40. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  41. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  42. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  43. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  44. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  45. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  46. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  47. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  48. ];
  49. //极简模式
  50. U.MD.D.I.easyDeskIcon = [
  51. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  52. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  55. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  56. ];
  57. //教师桌面图标的全局变量
  58. U.MD.D.I.teacherDeskIcon2 = [
  59. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  60. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  61. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  62. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  63. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  64. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  65. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  66. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  67. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  68. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  69. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  70. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  71. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  72. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  73. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  74. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  75. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  76. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  77. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  78. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  79. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  80. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  81. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  82. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  83. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  84. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  85. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  86. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  87. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  88. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  89. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  90. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  91. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  92. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  93. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  94. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  95. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  96. ];
  97. U.MD.D.I.studentDeskIcon = [
  98. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  99. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  100. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  101. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  102. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  103. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  104. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  105. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  106. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  107. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  108. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  109. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  110. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  111. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  112. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  113. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  114. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  115. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  116. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  117. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  118. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  119. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  120. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  121. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  122. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  123. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  124. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  125. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  126. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  127. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  128. ];
  129. U.MD.D.I.studentDeskIcon2 = [
  130. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  131. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  132. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  133. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  134. ]
  135. U.MD.D.I.studentDeskIcon3 = [
  136. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  137. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  138. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  139. ]
  140. U.MD.D.I.schoolDeskIcon = [
  141. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  142. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  144. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  145. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  146. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  147. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  148. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  149. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  150. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  151. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  152. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  153. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  154. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  155. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  156. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  157. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  158. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  159. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  160. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  161. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  162. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  163. ];
  164. U.MD.D.I.orgDeskIcon = [
  165. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  166. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  167. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  168. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  169. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  170. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  171. ];
  172. U.MD.D.I.orgStemDeskIcon = [
  173. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  174. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  175. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  176. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  177. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  178. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  179. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  180. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  181. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  182. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  183. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  184. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  185. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  186. ];
  187. U.MD.D.I.szulsDeskIcon = [
  188. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  189. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  190. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  191. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  192. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  193. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  194. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  195. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  196. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  197. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  198. ];
  199. U.MD.D.I.hanDeskIcon = [
  200. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  201. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  202. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  203. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  204. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  205. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  206. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  207. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  208. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  209. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  210. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  211. ];
  212. U.MD.D.I.GMteacherDeskIcon = [
  213. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  214. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  215. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  216. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  217. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  218. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  219. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  220. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  221. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  222. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  223. ];
  224. U.MD.D.I.GMstudentDeskIcon = [
  225. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  226. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  227. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  228. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  229. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  230. ];
  231. //北师大
  232. U.MD.D.I.BSDNSteacherDeskIcon = [
  233. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  234. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  235. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  236. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  237. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  238. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  239. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  240. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  241. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  242. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  243. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  244. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  245. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  246. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  247. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  248. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  249. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  250. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  251. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  252. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  253. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  254. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  255. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  256. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  257. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  258. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  259. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  260. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  261. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  262. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  263. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  264. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  265. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  266. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  267. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  268. ];
  269. //松山湖
  270. U.MD.D.I.SONGteacherDeskIcon = [
  271. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  272. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  273. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  274. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  275. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  276. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  277. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  278. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  279. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  280. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  281. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  282. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  283. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  284. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  285. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  286. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  287. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  288. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  289. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  290. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  291. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  292. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  293. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  294. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  295. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  296. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  297. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  298. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  299. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  300. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  301. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  302. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  303. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  304. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  305. ];
  306. U.MD.D.I.tcStudentDeskIcon = [
  307. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  308. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  309. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  310. ];
  311. U.MD.D.I.tcTeacherDeskIcon = [
  312. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  313. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  314. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  315. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  316. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  317. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  318. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  319. ];
  320. U.MD.D.I.tcOrganizerDeskIcon = [
  321. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  322. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  323. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  324. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  325. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  326. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  327. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  328. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  329. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  330. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  331. ];
  332. U.MD.D.I.szscStudentDeskIcon = [
  333. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  334. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  335. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. ];
  338. U.MD.D.I.szscTeacherDeskIcon = [
  339. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  340. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  341. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  342. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  343. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  344. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  345. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  346. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  347. ];
  348. U.MD.D.I.szscOrganizerDeskIcon = [
  349. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  350. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  351. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  352. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  353. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  354. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  355. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  356. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  357. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  358. ];
  359. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  360. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  361. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  362. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  363. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  364. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  365. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  366. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  367. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  368. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  369. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  370. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  371. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  372. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  373. ];
  374. U.MD.D.I.wankeAdminDeskIcon = [
  375. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  376. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  377. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  378. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  379. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  380. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  381. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  382. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  383. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  384. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  385. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  386. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  387. ];
  388. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  389. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  390. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  391. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  392. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  393. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  394. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  395. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  396. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  397. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  398. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  399. ];
  400. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  401. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  402. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  403. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  404. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  405. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  406. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  407. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  408. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  409. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  410. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  411. ];
  412. //明德教师桌面图标的全局变量
  413. U.MD.D.I.MingdeTeacherDeskIcon = [
  414. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  415. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  416. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  417. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  418. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  419. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  420. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  421. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  422. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  423. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  424. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  425. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  426. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  427. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  428. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  429. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  430. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  431. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  432. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  433. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  434. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  435. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  436. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  437. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  438. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  439. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  440. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  441. ];
  442. //97c4ee8b-d010-4042-986d-e9d3c217264f
  443. //教师桌面图标的全局变量
  444. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  445. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  446. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  447. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  448. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  449. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  450. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  451. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  452. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  453. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  454. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  455. ];
  456. //福田
  457. U.MD.D.I.futianTeacherDeskIcon = [
  458. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  459. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  460. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  461. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  462. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  463. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  464. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  465. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  466. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  467. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  468. ];
  469. //福田
  470. U.MD.D.I.futianAdminDeskIcon = [
  471. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  472. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  473. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  474. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  475. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  476. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  477. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  478. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  479. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  480. ];
  481. //lotech
  482. U.MD.D.I.lotechTeacherDeskIcon = [
  483. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  484. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  485. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  486. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  487. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  488. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  489. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  490. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  491. ];
  492. //龙华中心小学教师桌面图标的全局变量
  493. U.MD.D.I.longhuateacherDeskIcon = [
  494. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  495. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  496. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  497. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  498. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  499. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  500. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  501. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  502. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  503. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  504. ];
  505. //教科院实小教师桌面图标的全局变量
  506. U.MD.D.I.siesteacherDeskIcon = [
  507. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  508. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  509. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  510. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  511. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  512. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  513. // { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  514. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  515. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  516. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  517. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  518. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  519. ];
  520. //福田
  521. U.MD.D.I.gdjgTeacherDeskIcon = [
  522. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  523. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  524. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  525. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  526. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  527. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  528. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  529. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  530. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  531. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  532. ];
  533. //福田
  534. U.MD.D.I.gdjgAdminDeskIcon = [
  535. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  536. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  537. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  538. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  539. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  540. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  541. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  542. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  543. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  544. ];
  545. //#region 桌面初始化a
  546. /**
  547. * 初始化桌面的起始函数
  548. *
  549. */
  550. U.MD.D.I.init = function () {
  551. if ($("#U_MD_D_K")[0]) {
  552. //初始化桌面图标
  553. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  554. // var clickUrl = ':12588/requestIp.php';
  555. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  556. // U.MD.D.I.Ip = data;
  557. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  558. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  559. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  560. // })
  561. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  562. // })
  563. }
  564. }
  565. /**
  566. * 模式切换
  567. *
  568. */
  569. U.MD.D.I.ModeCheck = function (type) {
  570. if (US.Config.type == type) {
  571. return
  572. }
  573. US.Config.type = type
  574. $('.U_PBL_Check .active')[0].className = ''
  575. if (type == 1) {
  576. $('.U_PBL_Check div')[0].className = 'active'
  577. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  578. } else {
  579. $('.U_PBL_Check div')[1].className = 'active'
  580. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  581. }
  582. //初始化桌面图标
  583. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  584. if(type == 2){
  585. U.MD.D.I.openApplication("project")
  586. }
  587. }
  588. /**
  589. * 隐藏任务栏
  590. *
  591. * @param {element} 桌面元素
  592. */
  593. U.MD.D.I.hiddenTaskbar = function (el) {
  594. //任务栏位置变小
  595. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  596. //桌面的位置变大
  597. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  598. }
  599. /**
  600. * 隐藏任务栏
  601. *
  602. * @param {element} 桌面元素
  603. */
  604. U.MD.D.I.hiddenTaskbarout = function (el) {
  605. //任务栏位置变小
  606. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  607. //任务栏位置变化
  608. U.selectEl(el).css({ "bottom": "-60px" });
  609. //桌面的位置变大
  610. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  611. }
  612. }
  613. /**
  614. * 初始化打印桌面图标
  615. *
  616. * @param {element} 桌面元素
  617. */
  618. U.MD.D.I.initDesktopIcons = function (el, type) {
  619. var i, //用于循环
  620. _content, //桌面图标元素
  621. _iconcontent, //桌面图标元素
  622. _frag = $$("frag"), //定义一个碎片元素
  623. _type = US.userInfo.type,
  624. _org = US.userInfo.org,
  625. _oid = US.userInfo.organizeid,
  626. _role = US.userInfo.role,
  627. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  628. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  629. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  630. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  631. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  632. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  633. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  634. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  635. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  636. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  637. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  638. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  639. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  640. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  641. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  642. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  643. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  644. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  645. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  646. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  647. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  648. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  649. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  650. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  651. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  652. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//福田
  653. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//福田
  654. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  655. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
  656. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龙华中心
  657. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  658. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  659. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  660. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  661. 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'];
  662. 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'];
  663. //清楚桌面图标
  664. el.innerHTML = "";
  665. 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") {
  666. _teacherDesktopIconInfo.push(
  667. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  668. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  669. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  670. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  671. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  672. )
  673. _easyDesktopIconInfo.push(
  674. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  675. )
  676. }
  677. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  678. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  679. if(el.Name == '项目管理'){
  680. el.Name = 'PBL项目'
  681. }
  682. return el
  683. })
  684. }
  685. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  686. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  687. return el.Name != '魔盒识字' && el.Name != '24点'
  688. })
  689. }
  690. 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) {
  691. _studentDesktopIconInfo.push(
  692. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  693. )
  694. }
  695. //循环创建桌面图标
  696. if (type == 1) {
  697. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  698. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  699. _content = $$("div", {
  700. className: "U_MD_D_KO",
  701. "onmousedown": U.UF.C.closure(function (obj) {
  702. //防止拖动图标即打开了桌面应用
  703. U.MD.D.click(this, obj);
  704. }, [_studentDesktopIconInfo[i]]),
  705. "onclick": U.UF.C.closure(function (obj) {
  706. //防止拖动图标即打开了桌面应用
  707. U.MD.D.click(this, obj);
  708. }, [_studentDesktopIconInfo[i]])
  709. }, _frag); //
  710. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  711. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  712. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  713. }
  714. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  715. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  716. _content = $$("div", {
  717. className: "U_MD_D_KO",
  718. "onmousedown": U.UF.C.closure(function (obj) {
  719. //防止拖动图标即打开了桌面应用
  720. U.MD.D.click(this, obj);
  721. }, [_studentDesktopIconInfo[i]]),
  722. "onclick": U.UF.C.closure(function (obj) {
  723. //防止拖动图标即打开了桌面应用
  724. U.MD.D.click(this, obj);
  725. }, [_studentDesktopIconInfo[i]])
  726. }, _frag); //
  727. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  728. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  729. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  730. }
  731. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  732. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  733. _content = $$("div", {
  734. className: "U_MD_D_KO",
  735. "onmousedown": U.UF.C.closure(function (obj) {
  736. //防止拖动图标即打开了桌面应用
  737. U.MD.D.click(this, obj);
  738. }, [_tcStudentDeskIconInfo[i]]),
  739. "onclick": U.UF.C.closure(function (obj) {
  740. //防止拖动图标即打开了桌面应用
  741. U.MD.D.click(this, obj);
  742. }, [_tcStudentDeskIconInfo[i]])
  743. }, _frag); //
  744. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  745. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  746. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  747. }
  748. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  749. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  750. _content = $$("div", {
  751. className: "U_MD_D_KO",
  752. "onmousedown": U.UF.C.closure(function (obj) {
  753. //防止拖动图标即打开了桌面应用
  754. U.MD.D.click(this, obj);
  755. }, [_szscStudentDeskIconInfo[i]]),
  756. "onclick": U.UF.C.closure(function (obj) {
  757. //防止拖动图标即打开了桌面应用
  758. U.MD.D.click(this, obj);
  759. }, [_szscStudentDeskIconInfo[i]])
  760. }, _frag); //
  761. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  762. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  763. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  764. }
  765. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  766. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  767. _content = $$("div", {
  768. className: "U_MD_D_KO",
  769. "onmousedown": U.UF.C.closure(function (obj) {
  770. //防止拖动图标即打开了桌面应用
  771. U.MD.D.click(this, obj);
  772. }, [_studentDesktopIconInfo3[i]]),
  773. "onclick": U.UF.C.closure(function (obj) {
  774. //防止拖动图标即打开了桌面应用
  775. U.MD.D.click(this, obj);
  776. }, [_studentDesktopIconInfo3[i]])
  777. }, _frag); //
  778. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  779. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  780. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  781. }
  782. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  783. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  784. _content = $$("div", {
  785. className: "U_MD_D_KO",
  786. "onmousedown": U.UF.C.closure(function (obj) {
  787. //防止拖动图标即打开了桌面应用
  788. U.MD.D.click(this, obj);
  789. }, [_studentDesktopIconInfo2[i]]),
  790. "onclick": U.UF.C.closure(function (obj) {
  791. //防止拖动图标即打开了桌面应用
  792. U.MD.D.click(this, obj);
  793. }, [_studentDesktopIconInfo2[i]])
  794. }, _frag); //
  795. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  796. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  797. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  798. }
  799. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  800. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  801. _content = $$("div", {
  802. className: "U_MD_D_KO",
  803. "onmousedown": U.UF.C.closure(function (obj) {
  804. //防止拖动图标即打开了桌面应用
  805. U.MD.D.click(this, obj);
  806. }, [_wanketeacherDesktopIconInfo[i]]),
  807. "onclick": U.UF.C.closure(function (obj) {
  808. //防止拖动图标即打开了桌面应用
  809. U.MD.D.click(this, obj);
  810. }, [_wanketeacherDesktopIconInfo[i]])
  811. }, _frag); //
  812. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  813. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  814. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  815. }
  816. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  817. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  818. _content = $$("div", {
  819. className: "U_MD_D_KO",
  820. "onmousedown": U.UF.C.closure(function (obj) {
  821. //防止拖动图标即打开了桌面应用
  822. U.MD.D.click(this, obj);
  823. }, [_wankeAdminDesktopIconInfo[i]]),
  824. "onclick": U.UF.C.closure(function (obj) {
  825. //防止拖动图标即打开了桌面应用
  826. U.MD.D.click(this, obj);
  827. }, [_wankeAdminDesktopIconInfo[i]])
  828. }, _frag); //
  829. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  830. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  831. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  832. }
  833. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  834. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  835. _content = $$("div", {
  836. className: "U_MD_D_KO",
  837. "onmousedown": U.UF.C.closure(function (obj) {
  838. //防止拖动图标即打开了桌面应用
  839. U.MD.D.click(this, obj);
  840. }, [_teacherDesktopIconInfo2[i]]),
  841. "onclick": U.UF.C.closure(function (obj) {
  842. //防止拖动图标即打开了桌面应用
  843. U.MD.D.click(this, obj);
  844. }, [_teacherDesktopIconInfo2[i]])
  845. }, _frag); //
  846. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  847. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  848. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  849. }
  850. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  851. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  852. _content = $$("div", {
  853. className: "U_MD_D_KO",
  854. "onmousedown": U.UF.C.closure(function (obj) {
  855. //防止拖动图标即打开了桌面应用
  856. U.MD.D.click(this, obj);
  857. }, [_lotechTeacherDeskIconInfo[i]]),
  858. "onclick": U.UF.C.closure(function (obj) {
  859. //防止拖动图标即打开了桌面应用
  860. U.MD.D.click(this, obj);
  861. }, [_lotechTeacherDeskIconInfo[i]])
  862. }, _frag); //
  863. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  864. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  865. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  866. }
  867. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  868. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  869. _content = $$("div", {
  870. className: "U_MD_D_KO",
  871. "onmousedown": U.UF.C.closure(function (obj) {
  872. //防止拖动图标即打开了桌面应用
  873. U.MD.D.click(this, obj);
  874. }, [_siesTeacherDeskIconInfo[i]]),
  875. "onclick": U.UF.C.closure(function (obj) {
  876. //防止拖动图标即打开了桌面应用
  877. U.MD.D.click(this, obj);
  878. }, [_siesTeacherDeskIconInfo[i]])
  879. }, _frag); //
  880. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  881. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  882. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  883. }
  884. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  885. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  886. _content = $$("div", {
  887. className: "U_MD_D_KO",
  888. "onmousedown": U.UF.C.closure(function (obj) {
  889. //防止拖动图标即打开了桌面应用
  890. U.MD.D.click(this, obj);
  891. }, [_longhuaTeacherDeskIconInfo[i]]),
  892. "onclick": U.UF.C.closure(function (obj) {
  893. //防止拖动图标即打开了桌面应用
  894. U.MD.D.click(this, obj);
  895. }, [_longhuaTeacherDeskIconInfo[i]])
  896. }, _frag); //
  897. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  898. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  899. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  900. }
  901. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  902. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  903. _content = $$("div", {
  904. className: "U_MD_D_KO",
  905. "onmousedown": U.UF.C.closure(function (obj) {
  906. //防止拖动图标即打开了桌面应用
  907. U.MD.D.click(this, obj);
  908. }, [_gdjgAdminDeskIconInfo[i]]),
  909. "onclick": U.UF.C.closure(function (obj) {
  910. //防止拖动图标即打开了桌面应用
  911. U.MD.D.click(this, obj);
  912. }, [_gdjgAdminDeskIconInfo[i]])
  913. }, _frag); //
  914. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  915. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  916. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  917. }
  918. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  919. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  920. _content = $$("div", {
  921. className: "U_MD_D_KO",
  922. "onmousedown": U.UF.C.closure(function (obj) {
  923. //防止拖动图标即打开了桌面应用
  924. U.MD.D.click(this, obj);
  925. }, [_gdjgTeacherDeskIconInfo[i]]),
  926. "onclick": U.UF.C.closure(function (obj) {
  927. //防止拖动图标即打开了桌面应用
  928. U.MD.D.click(this, obj);
  929. }, [_gdjgTeacherDeskIconInfo[i]])
  930. }, _frag); //
  931. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  932. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  933. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  934. }
  935. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  936. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  937. _content = $$("div", {
  938. className: "U_MD_D_KO",
  939. "onmousedown": U.UF.C.closure(function (obj) {
  940. //防止拖动图标即打开了桌面应用
  941. U.MD.D.click(this, obj);
  942. }, [_futianAdminDeskIconInfo[i]]),
  943. "onclick": U.UF.C.closure(function (obj) {
  944. //防止拖动图标即打开了桌面应用
  945. U.MD.D.click(this, obj);
  946. }, [_futianAdminDeskIconInfo[i]])
  947. }, _frag); //
  948. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  949. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  950. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  951. }
  952. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  953. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  954. _content = $$("div", {
  955. className: "U_MD_D_KO",
  956. "onmousedown": U.UF.C.closure(function (obj) {
  957. //防止拖动图标即打开了桌面应用
  958. U.MD.D.click(this, obj);
  959. }, [_futianTeacherDeskIconInfo[i]]),
  960. "onclick": U.UF.C.closure(function (obj) {
  961. //防止拖动图标即打开了桌面应用
  962. U.MD.D.click(this, obj);
  963. }, [_futianTeacherDeskIconInfo[i]])
  964. }, _frag); //
  965. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  966. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  967. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  968. }
  969. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  970. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  971. _content = $$("div", {
  972. className: "U_MD_D_KO",
  973. "onmousedown": U.UF.C.closure(function (obj) {
  974. //防止拖动图标即打开了桌面应用
  975. U.MD.D.click(this, obj);
  976. }, [_MingdeTeacherDeskIcon[i]]),
  977. "onclick": U.UF.C.closure(function (obj) {
  978. //防止拖动图标即打开了桌面应用
  979. U.MD.D.click(this, obj);
  980. }, [_MingdeTeacherDeskIcon[i]])
  981. }, _frag); //
  982. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  983. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  984. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  985. }
  986. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  987. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  988. _content = $$("div", {
  989. className: "U_MD_D_KO",
  990. "onmousedown": U.UF.C.closure(function (obj) {
  991. //防止拖动图标即打开了桌面应用
  992. U.MD.D.click(this, obj);
  993. }, [_lhsAdminDesktopIconInfo[i]]),
  994. "onclick": U.UF.C.closure(function (obj) {
  995. //防止拖动图标即打开了桌面应用
  996. U.MD.D.click(this, obj);
  997. }, [_lhsAdminDesktopIconInfo[i]])
  998. }, _frag); //
  999. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1000. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1001. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1002. }
  1003. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1004. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1005. _content = $$("div", {
  1006. className: "U_MD_D_KO",
  1007. "onmousedown": U.UF.C.closure(function (obj) {
  1008. //防止拖动图标即打开了桌面应用
  1009. U.MD.D.click(this, obj);
  1010. }, [_lhsteacherDesktopIconInfo[i]]),
  1011. "onclick": U.UF.C.closure(function (obj) {
  1012. //防止拖动图标即打开了桌面应用
  1013. U.MD.D.click(this, obj);
  1014. }, [_lhsteacherDesktopIconInfo[i]])
  1015. }, _frag); //
  1016. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1017. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1018. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1019. }
  1020. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1021. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1022. _content = $$("div", {
  1023. className: "U_MD_D_KO",
  1024. "onmousedown": U.UF.C.closure(function (obj) {
  1025. //防止拖动图标即打开了桌面应用
  1026. U.MD.D.click(this, obj);
  1027. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1028. "onclick": U.UF.C.closure(function (obj) {
  1029. //防止拖动图标即打开了桌面应用
  1030. U.MD.D.click(this, obj);
  1031. }, [_zhoujiateacherDesktopIconInfo[i]])
  1032. }, _frag); //
  1033. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1034. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1035. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1036. }
  1037. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1038. for (i = 0; i < _hanDeskIcon.length; i++) {
  1039. _content = $$("div", {
  1040. className: "U_MD_D_KO",
  1041. "onmousedown": U.UF.C.closure(function (obj) {
  1042. //防止拖动图标即打开了桌面应用
  1043. U.MD.D.click(this, obj);
  1044. }, [_hanDeskIcon[i]]),
  1045. "onclick": U.UF.C.closure(function (obj) {
  1046. //防止拖动图标即打开了桌面应用
  1047. U.MD.D.click(this, obj);
  1048. }, [_hanDeskIcon[i]])
  1049. }, _frag); //
  1050. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1051. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1052. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1053. }
  1054. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1055. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1056. _content = $$("div", {
  1057. className: "U_MD_D_KO",
  1058. "onmousedown": U.UF.C.closure(function (obj) {
  1059. //防止拖动图标即打开了桌面应用
  1060. U.MD.D.click(this, obj);
  1061. }, [_orgStemDeskIcon[i]]),
  1062. "onclick": U.UF.C.closure(function (obj) {
  1063. //防止拖动图标即打开了桌面应用
  1064. U.MD.D.click(this, obj);
  1065. }, [_orgStemDeskIcon[i]])
  1066. }, _frag); //
  1067. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1068. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1069. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1070. }
  1071. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1072. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1073. _content = $$("div", {
  1074. className: "U_MD_D_KO",
  1075. "onmousedown": U.UF.C.closure(function (obj) {
  1076. //防止拖动图标即打开了桌面应用
  1077. U.MD.D.click(this, obj);
  1078. }, [_szulsDeskIcon[i]]),
  1079. "onclick": U.UF.C.closure(function (obj) {
  1080. //防止拖动图标即打开了桌面应用
  1081. U.MD.D.click(this, obj);
  1082. }, [_szulsDeskIcon[i]])
  1083. }, _frag); //
  1084. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1085. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1086. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1087. }
  1088. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1089. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1090. _content = $$("div", {
  1091. className: "U_MD_D_KO",
  1092. "onmousedown": U.UF.C.closure(function (obj) {
  1093. //防止拖动图标即打开了桌面应用
  1094. U.MD.D.click(this, obj);
  1095. }, [_orgDesktopIconInfo[i]]),
  1096. "onclick": U.UF.C.closure(function (obj) {
  1097. //防止拖动图标即打开了桌面应用
  1098. U.MD.D.click(this, obj);
  1099. }, [_orgDesktopIconInfo[i]])
  1100. }, _frag); //
  1101. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1102. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1103. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1104. }
  1105. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1106. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1107. _content = $$("div", {
  1108. className: "U_MD_D_KO",
  1109. "onmousedown": U.UF.C.closure(function (obj) {
  1110. //防止拖动图标即打开了桌面应用
  1111. U.MD.D.click(this, obj);
  1112. }, [_schoolDesktopIconInfo[i]]),
  1113. "onclick": U.UF.C.closure(function (obj) {
  1114. //防止拖动图标即打开了桌面应用
  1115. U.MD.D.click(this, obj);
  1116. }, [_schoolDesktopIconInfo[i]])
  1117. }, _frag); //
  1118. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1119. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1120. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1121. }
  1122. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1123. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1124. _content = $$("div", {
  1125. className: "U_MD_D_KO",
  1126. "onmousedown": U.UF.C.closure(function (obj) {
  1127. //防止拖动图标即打开了桌面应用
  1128. U.MD.D.click(this, obj);
  1129. }, [_GMteacherDesktopIconInfo[i]]),
  1130. "onclick": U.UF.C.closure(function (obj) {
  1131. //防止拖动图标即打开了桌面应用
  1132. U.MD.D.click(this, obj);
  1133. }, [_GMteacherDesktopIconInfo[i]])
  1134. }, _frag); //
  1135. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1136. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1137. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1138. }
  1139. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1140. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1141. _content = $$("div", {
  1142. className: "U_MD_D_KO",
  1143. "onmousedown": U.UF.C.closure(function (obj) {
  1144. //防止拖动图标即打开了桌面应用
  1145. U.MD.D.click(this, obj);
  1146. }, [_SONGteacherDesktopIconInfo[i]]),
  1147. "onclick": U.UF.C.closure(function (obj) {
  1148. //防止拖动图标即打开了桌面应用
  1149. U.MD.D.click(this, obj);
  1150. }, [_SONGteacherDesktopIconInfo[i]])
  1151. }, _frag); //
  1152. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1153. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1154. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1155. }
  1156. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1157. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1158. _content = $$("div", {
  1159. className: "U_MD_D_KO",
  1160. "onmousedown": U.UF.C.closure(function (obj) {
  1161. //防止拖动图标即打开了桌面应用
  1162. U.MD.D.click(this, obj);
  1163. }, [_GMstudentDesktopIconInfo[i]]),
  1164. "onclick": U.UF.C.closure(function (obj) {
  1165. //防止拖动图标即打开了桌面应用
  1166. U.MD.D.click(this, obj);
  1167. }, [_GMstudentDesktopIconInfo[i]])
  1168. }, _frag); //
  1169. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1170. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1171. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1172. }
  1173. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1174. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1175. _content = $$("div", {
  1176. className: "U_MD_D_KO",
  1177. "onmousedown": U.UF.C.closure(function (obj) {
  1178. //防止拖动图标即打开了桌面应用
  1179. U.MD.D.click(this, obj);
  1180. }, [_tcTeacherDeskIconInfo[i]]),
  1181. "onclick": U.UF.C.closure(function (obj) {
  1182. //防止拖动图标即打开了桌面应用
  1183. U.MD.D.click(this, obj);
  1184. }, [_tcTeacherDeskIconInfo[i]])
  1185. }, _frag); //
  1186. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1187. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1188. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1189. }
  1190. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1191. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1192. _content = $$("div", {
  1193. className: "U_MD_D_KO",
  1194. "onmousedown": U.UF.C.closure(function (obj) {
  1195. //防止拖动图标即打开了桌面应用
  1196. U.MD.D.click(this, obj);
  1197. }, [_tcOrganizerDeskIconInfo[i]]),
  1198. "onclick": U.UF.C.closure(function (obj) {
  1199. //防止拖动图标即打开了桌面应用
  1200. U.MD.D.click(this, obj);
  1201. }, [_tcOrganizerDeskIconInfo[i]])
  1202. }, _frag); //
  1203. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1204. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1205. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1206. }
  1207. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1208. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1209. _content = $$("div", {
  1210. className: "U_MD_D_KO",
  1211. "onmousedown": U.UF.C.closure(function (obj) {
  1212. //防止拖动图标即打开了桌面应用
  1213. U.MD.D.click(this, obj);
  1214. }, [_szscTeacherDeskIconInfo[i]]),
  1215. "onclick": U.UF.C.closure(function (obj) {
  1216. //防止拖动图标即打开了桌面应用
  1217. U.MD.D.click(this, obj);
  1218. }, [_szscTeacherDeskIconInfo[i]])
  1219. }, _frag); //
  1220. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1221. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1222. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1223. }
  1224. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1225. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1226. _content = $$("div", {
  1227. className: "U_MD_D_KO",
  1228. "onmousedown": U.UF.C.closure(function (obj) {
  1229. //防止拖动图标即打开了桌面应用
  1230. U.MD.D.click(this, obj);
  1231. }, [_szscOrganizerDeskIconInfo[i]]),
  1232. "onclick": U.UF.C.closure(function (obj) {
  1233. //防止拖动图标即打开了桌面应用
  1234. U.MD.D.click(this, obj);
  1235. }, [_szscOrganizerDeskIconInfo[i]])
  1236. }, _frag); //
  1237. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1238. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1239. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1240. }
  1241. } else {
  1242. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1243. _content = $$("div", {
  1244. className: "U_MD_D_KO",
  1245. "onmousedown": U.UF.C.closure(function (obj) {
  1246. //防止拖动图标即打开了桌面应用
  1247. U.MD.D.click(this, obj);
  1248. }, [_teacherDesktopIconInfo[i]]),
  1249. "onclick": U.UF.C.closure(function (obj) {
  1250. //防止拖动图标即打开了桌面应用
  1251. U.MD.D.click(this, obj);
  1252. }, [_teacherDesktopIconInfo[i]])
  1253. }, _frag); //
  1254. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1255. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1256. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1257. }
  1258. }
  1259. } else {
  1260. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1261. _content = $$("div", {
  1262. className: "U_MD_D_KO",
  1263. style: { 'width': '124px', 'height': '145px' },
  1264. "onmousedown": U.UF.C.closure(function (obj) {
  1265. //防止拖动图标即打开了桌面应用
  1266. U.MD.D.click(this, obj);
  1267. }, [_easyDesktopIconInfo[i]]),
  1268. "onclick": U.UF.C.closure(function (obj) {
  1269. //防止拖动图标即打开了桌面应用
  1270. U.MD.D.click(this, obj);
  1271. }, [_easyDesktopIconInfo[i]])
  1272. }, _frag); //
  1273. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1274. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1275. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1276. }
  1277. }
  1278. if (type == 1) {
  1279. //加载好后给图标定位
  1280. U.MD.D.iconPostion($(_frag).Child());
  1281. } else {
  1282. //加载好后给图标定位
  1283. U.MD.D.iconPostion2($(_frag).Child());
  1284. }
  1285. //把图标加载到页面
  1286. el.appendChild(_frag);
  1287. }
  1288. /**
  1289. * 显示任务栏
  1290. *
  1291. * @param {element} 桌面元素
  1292. */
  1293. U.MD.D.I.displayTaskbar = function (el) {
  1294. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1295. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1296. //任务栏位置变化
  1297. U.selectEl(el).css({ "bottom": "0px" });
  1298. //桌面位置变话
  1299. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1300. }
  1301. }
  1302. //#region 桌面图标拖动逻辑
  1303. /**
  1304. * 桌面排列图标
  1305. *
  1306. * @param {element} 桌面元素
  1307. * @param {object} 上下相距的距离
  1308. * @param {object} 左右相距的距离
  1309. * @return {object} 命名空间
  1310. */
  1311. U.MD.D.iconPostion = function (childs, top, left) {
  1312. var i; //用于循环处理
  1313. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1314. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1315. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1316. for (i = 0; i < childs.length; i++) {
  1317. //如果竖排top超过了范围处理
  1318. if (top + 95 > US.height - 10) {
  1319. //left超过了页面范围处理,则向上重叠打印处理
  1320. if ((left + 180) > US.width) {
  1321. top -= 110;
  1322. left -= 90;
  1323. }
  1324. //没有超过范围,那么left+90添加到下一个竖排打印
  1325. else {
  1326. left += 90;
  1327. top = 15;
  1328. };
  1329. }
  1330. //给图标的位置赋值
  1331. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1332. if (i < childs.length - 1) {
  1333. //页面图标每次向下加95
  1334. top += 95;
  1335. }
  1336. }
  1337. //返回最后调用的图标的位置
  1338. return [top, left];
  1339. }
  1340. /**
  1341. * 桌面排列图标
  1342. *
  1343. * @param {element} 桌面元素
  1344. * @param {object} 上下相距的距离
  1345. * @param {object} 左右相距的距离
  1346. * @return {object} 命名空间
  1347. */
  1348. U.MD.D.iconPostion2 = function (childs, top, left) {
  1349. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1350. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1351. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1352. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1353. for (i = 0; i < childs.length; i++) {
  1354. //如果竖排top超过了范围处理
  1355. if (left + 150 > US.width - 10) {
  1356. //left超过了页面范围处理,则向上重叠打印处理
  1357. if ((top + 180) > US.Height) {
  1358. top -= 150;
  1359. left -= 150;
  1360. }
  1361. //没有超过范围,那么left+90添加到下一个竖排打印
  1362. else {
  1363. top += 150;
  1364. left = ol;
  1365. };
  1366. }
  1367. //给图标的位置赋值
  1368. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1369. if (i < childs.length - 1) {
  1370. //页面图标每次向下加95
  1371. left += 150;
  1372. }
  1373. }
  1374. //返回最后调用的图标的位置
  1375. return [top, left];
  1376. }
  1377. /**
  1378. * 桌面点击事件逻辑
  1379. *
  1380. * @param {element} 桌面元素
  1381. * @param {object} 上下相距的距离
  1382. * @param {object} 左右相距的距离
  1383. * @return {object} 命名空间
  1384. */
  1385. U.MD.D.click = function (el, obj) {
  1386. var _buttonnumber = event.button; //点击的按钮的事件值
  1387. var _userinfo = US.userInfo;
  1388. U.UF.EV.stopBubble(); //阻止向上冒泡
  1389. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1390. if (_buttonnumber < 2) {
  1391. //如果是click事件的处理
  1392. if (event.type == "click") {
  1393. //如果元素在mousemove事件中没有移动则出发click事件
  1394. if (!U.MD.D.I.IsDrag) {
  1395. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1396. U.alert("请先登录您的账号!");
  1397. setTimeout(() => {
  1398. U.MD.U.L.login();
  1399. }, 2000);
  1400. } else {
  1401. //打开应用处理
  1402. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1403. }
  1404. }
  1405. }
  1406. //如果是mouse事件的处理
  1407. else {
  1408. if (US.Config.type == '1') {
  1409. //拖动处理,添加拖动和拖动结束事件
  1410. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1411. }
  1412. }
  1413. U.MD.D.I.IsDrag = false;
  1414. }
  1415. }
  1416. /**
  1417. * 拖动的处理
  1418. *
  1419. */
  1420. U.MD.D.iconMove = function () {
  1421. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1422. U.MD.D.I.IsDrag = true;
  1423. }
  1424. /**
  1425. * 拖动结束后,这里是定位处理,以网状的形式定位
  1426. *
  1427. * @param {element} 拖动的元素
  1428. * @return {object} 命名空间
  1429. */
  1430. U.MD.D.iconUp = function (el) {
  1431. var _top = 15,
  1432. _left = 20,
  1433. _margin,
  1434. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1435. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1436. if (_positioninfo["OT"] > 15) {
  1437. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1438. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1439. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1440. }
  1441. if (_positioninfo["OL"] > 20) {
  1442. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1443. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1444. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1445. }
  1446. //while循环判断么一个重叠的元素
  1447. do {
  1448. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1449. _top = _positioninfo[0] + 95; //得到定位后的top
  1450. _left = _positioninfo[1]; //得到定位后的left
  1451. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1452. }
  1453. /**
  1454. * 判断拖动后图标是否重叠
  1455. *
  1456. * @param {element} 拖动的元素
  1457. * @param {element} 桌面所有的元素
  1458. * @param {array} 拖动元素的位置
  1459. ----------[0] 上 top
  1460. ----------[1] 左 left
  1461. * @return {object} 命名空间
  1462. */
  1463. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1464. //循环所有的图标
  1465. for (var i = 0; i < childs.length; i++) {
  1466. //判断有没有和该图标诶子重叠的元素
  1467. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1468. return childs[i]; //如果有返回
  1469. }
  1470. }
  1471. }
  1472. //#endregion
  1473. //#endregion
  1474. //#region 桌面应用
  1475. /**
  1476. * 打开应用
  1477. *
  1478. * @param {string} 类型
  1479. -----------------Disk 网盘系统
  1480. -----------------PDisk 学习系统网盘
  1481. -----------------Poto 图片
  1482. -----------------Video 视频
  1483. -----------------Music 音乐
  1484. -----------------Word word
  1485. -----------------Excel excel
  1486. -----------------Txt 记事本
  1487. -----------------PB 学习系统
  1488. -----------------Blog 朋友圈系统
  1489. -----------------FTP ftp系统
  1490. -----------------Group 好友群
  1491. -----------------SY 首页系统
  1492. -----------------Set 个人设置
  1493. -----------------XSet 系统设置
  1494. -----------------App 我们所有的app
  1495. -----------------BC c.1473.cn 平台
  1496. -----------------CWeb d.1473.cn 变成平台
  1497. -----------------其他的外联系统 我们统一用iframe打开
  1498. * @param {array} 类型
  1499. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1500. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1501. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1502. 如果第一个参数为其他,则无第二个参数
  1503. * @returns {array}
  1504. */
  1505. window.addEventListener('message', function (e) { // 监听 message 事件
  1506. // alert(e.data.type);
  1507. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1508. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1509. //3是展示全部阶段 2学生 1老师 4专家
  1510. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1511. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1512. //3是展示全部阶段 2学生 1老师 4专家
  1513. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1514. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1515. //3是展示全部阶段 2学生 1老师 4专家
  1516. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1517. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1518. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1519. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1520. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1521. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1522. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1523. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1524. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1525. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1526. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1527. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1528. //3是展示全部阶段 2学生 1老师 4专家
  1529. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1530. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1531. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1532. U.MD.D.I.selectUser();
  1533. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1534. var _formel = document.getElementById("study");
  1535. U.UF.F.windowZooming(_formel);
  1536. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1537. var _formel = document.getElementById("studyDetail");
  1538. U.UF.F.windowZooming(_formel);
  1539. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1540. var _formel = document.getElementById("studyDetail");
  1541. U.UF.F.windowZooming(_formel);
  1542. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1543. var _formel = document.getElementById("studentStudy");
  1544. U.UF.F.windowZooming(_formel);
  1545. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1546. // var _formel = document.getElementById("study");
  1547. //如果最大化了,那么就把他缩小
  1548. // if (_formel.ismaximize) {
  1549. // return;
  1550. // }
  1551. // U.UF.F.windowZooming(_formel);
  1552. // U.UF.F.topWindow(_formel);
  1553. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1554. // var _formel = document.getElementById("studyDetail");
  1555. //如果最大化了,那么就把他缩小
  1556. // if (_formel.ismaximize) {
  1557. // return;
  1558. // }
  1559. // U.UF.F.windowZooming(_formel);
  1560. // U.UF.F.topWindow(_formel);
  1561. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1562. // var _formel = document.getElementById("studentStudy");
  1563. // if (_formel.ismaximize) {
  1564. // return;
  1565. // }
  1566. // U.UF.F.windowZooming(_formel);
  1567. // U.UF.F.topWindow(_formel);
  1568. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1569. var _formel = document.getElementById("study");
  1570. // if (_formel.ismaximize) {
  1571. // return;
  1572. // }
  1573. // U.UF.F.windowZooming(_formel);
  1574. U.UF.F.topWindow(_formel);
  1575. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1576. var _formel = document.getElementById("studentIndex");
  1577. U.UF.F.windowZooming(_formel);
  1578. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1579. var _formel = document.getElementById("studyDetailS");
  1580. U.UF.F.windowZooming(_formel);
  1581. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1582. var _formel = document.getElementById("studioIndex");
  1583. U.UF.F.windowZooming(_formel);
  1584. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1585. var _formel = document.getElementById("studyDetailStudio");
  1586. U.UF.F.windowZooming(_formel);
  1587. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1588. var _formel = document.getElementById("studyDetailStudio");
  1589. U.UF.F.windowZooming(_formel);
  1590. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1591. var _formel = document.getElementById("studyDetailNT");
  1592. U.UF.F.windowZooming(_formel);
  1593. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1594. var _formel = document.getElementById("studyDetailS");
  1595. U.UF.F.windowZooming(_formel);
  1596. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1597. var _formel = document.getElementById("studyDetailS");
  1598. U.UF.F.topWindow(_formel);
  1599. } else if (e.data.tools && e.data.tools == "1") {
  1600. // U.MD.D.I.openApplication("whiteboard")
  1601. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1602. } else if (e.data.tools && e.data.tools == "2") {
  1603. U.MD.D.I.openApplication("note")
  1604. } else if (e.data.tools && e.data.tools == "3") {
  1605. // U.MD.D.I.openApplication("mind")
  1606. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1607. } else if (e.data.tools && e.data.tools == "4") {
  1608. U.MD.D.I.openApplication("investigation")
  1609. } else if (e.data.tools && e.data.tools == "6") {
  1610. // U.MD.D.I.openApplication("doc")
  1611. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1612. } else if (e.data.tools && e.data.tools == "7") {
  1613. // U.MD.D.I.openApplication("mindNetwork")
  1614. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1615. } else if (e.data.tools && e.data.tools == "8") {
  1616. U.MD.D.I.openApplication("library")
  1617. } else if (e.data.tools && e.data.tools == "17") {
  1618. U.MD.D.I.openApplication("stuLibrary")
  1619. } else if (e.data.tools && e.data.tools == "18") {
  1620. U.MD.D.I.openApplication("train")
  1621. } else if (e.data.tools && e.data.tools == "21") {
  1622. U.MD.D.I.openApplication("program")
  1623. } else if (e.data.tools && e.data.tools == "22") {
  1624. U.MD.D.I.openApplication("AIprogram2")
  1625. } else if (e.data.tools && e.data.tools == "23") {
  1626. U.MD.D.I.openApplication("Pythonprogram")
  1627. } else if (e.data.tools && e.data.tools == "24") {
  1628. U.MD.D.I.openApplication("AIprogram")
  1629. } else if (e.data.tools && e.data.tools == "25") {
  1630. U.MD.D.I.openApplication("sys")
  1631. } else if (e.data.tools && e.data.tools == "26") {
  1632. // U.MD.D.I.openApplication("courseDesign")
  1633. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1634. } else if (e.data.tools && e.data.tools == "31") {
  1635. U.MD.D.I.openApplication("netWorkPanel")
  1636. } else if (e.data.tools && e.data.tools == "32") {
  1637. U.MD.D.I.openApplication("codeEdit")
  1638. } else if (e.data.tools && e.data.tools == "57") {
  1639. U.MD.D.I.openApplication("CocoPi")
  1640. } else if (e.data.tools && e.data.tools == "63") {
  1641. U.MD.D.I.openApplication("Wood")
  1642. } else if (e.data.tools && e.data.tools == "58") {
  1643. U.MD.D.I.openApplication("car")
  1644. } else if (e.data.tools && e.data.tools == "59") {
  1645. U.MD.D.I.openApplication("lineSearch")
  1646. } else if (e.data.tools && e.data.tools == "60") {
  1647. U.MD.D.I.openApplication("deepLearning")
  1648. } else if (e.data.tools && e.data.tools == "61") {
  1649. U.MD.D.I.openApplication("allHistory")
  1650. } else if (e.data.tools && e.data.tools == "28") {
  1651. U.MD.D.I.openApplication("translation")
  1652. } else if (e.data.tools && e.data.tools == "37") {
  1653. U.MD.D.I.openApplication("mohe")
  1654. } else if (e.data.tools && e.data.tools == "38") {
  1655. U.MD.D.I.openApplication("24game")
  1656. } else if (e.data.tools && e.data.tools == "39") {
  1657. U.MD.D.I.openApplication("GeoGebra")
  1658. } else if (e.data.tools && e.data.tools == "43") {
  1659. U.MD.D.I.openApplication("studentEvaluate")
  1660. } else if (e.data.tools && e.data.tools == "44") {
  1661. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1662. } else if (e.data.tools && e.data.tools == "46") {
  1663. U.MD.D.I.openApplication("project")
  1664. } else if (e.data.tools && e.data.tools == "1s") {
  1665. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1666. } else if (e.data.tools && e.data.tools == "3s") {
  1667. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1668. } else if (e.data.tools && e.data.tools == "6s") {
  1669. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1670. } else if (e.data.tools && e.data.tools == "1studio") {
  1671. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1672. } else if (e.data.tools && e.data.tools == "3studio") {
  1673. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1674. } else if (e.data.tools && e.data.tools == "6studio") {
  1675. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1676. } else if (e.data.tools && e.data.tools == "3y") {
  1677. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1678. } else if (e.data.tools && e.data.tools == "1y") {
  1679. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1680. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1681. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1682. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1683. U.MD.D.I.openApplication("AIAnalyse")
  1684. } else if (e.data.tools && e.data.tools == "1teacher") {
  1685. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1686. } else if (e.data.tools && e.data.tools == "3teacher") {
  1687. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1688. } else if (e.data.tools && e.data.tools == "7teacher") {
  1689. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1690. } else if (e.data.tools && e.data.tools == "1teacherE") {
  1691. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1692. } else if (e.data.tools && e.data.tools == "3teacherE") {
  1693. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1694. } else if (e.data.tools && e.data.tools == "1E") {
  1695. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1696. } else if (e.data.tools && e.data.tools == "3E") {
  1697. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1698. } else if (e.data.tools && e.data.tools == "57u") {
  1699. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1700. } else if (e.data.tools && e.data.tools == "57u") {
  1701. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1702. }
  1703. });
  1704. U.MD.D.I.selectUser = function () {
  1705. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1706. if (res.value[0].length > 0) {
  1707. US.userInfo = res.value[0][0];
  1708. $(".userName")[0].innerHTML = US.userInfo.username;
  1709. }
  1710. }, [], { "type": "GET", "withCredentials": true });
  1711. }
  1712. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1713. var _userinfo = US.userInfo, //登录用户信息
  1714. _userid = US.userInfo.userid, //登录用户id
  1715. _oid = _userinfo.organizeid,
  1716. _type = US.userInfo.type,
  1717. _org = US.userInfo.org,
  1718. _role = US.userInfo.role,
  1719. _classId = US.userInfo.classid;
  1720. if (_type == 4) {
  1721. tType = 4
  1722. }
  1723. switch (str) {
  1724. case "studyDetailNT"://无终端模式
  1725. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1726. setTimeout(() => {
  1727. U.MD.U.L.login();
  1728. }, 2000);
  1729. } else {
  1730. _formdiv = new U.UF.UI.form(
  1731. "课程详情",
  1732. $$("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 }), {
  1733. "id": "studyDetailNT",
  1734. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1735. "onresize": function () { }
  1736. }, {
  1737. closecallback: function () { }
  1738. }, { "style": { "height": "36px" } }).form; //创建窗体
  1739. _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); } }
  1740. break;
  1741. }
  1742. case "studyDetail":
  1743. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1744. setTimeout(() => {
  1745. U.MD.U.L.login();
  1746. }, 2000);
  1747. } else {
  1748. _formdiv = new U.UF.UI.form(
  1749. "课程详情",
  1750. $$("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 }), {
  1751. "id": "studyDetail",
  1752. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1753. "onresize": function () { }
  1754. }, {
  1755. closecallback: function () { }
  1756. }, { "style": { "height": "36px" } }).form; //创建窗体
  1757. _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); } }
  1758. break;
  1759. }
  1760. case "studyDetailS":
  1761. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1762. setTimeout(() => {
  1763. U.MD.U.L.login();
  1764. }, 2000);
  1765. } else {
  1766. _formdiv = new U.UF.UI.form(
  1767. "项目详情",
  1768. $$("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 }), {
  1769. "id": "studyDetailS",
  1770. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1771. "onresize": function () { }
  1772. }, {
  1773. closecallback: function () { }
  1774. }, { "style": { "height": "36px" } }).form; //创建窗体
  1775. _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); } }
  1776. break;
  1777. }
  1778. case "studyDetailStudio":
  1779. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1780. setTimeout(() => {
  1781. U.MD.U.L.login();
  1782. }, 2000);
  1783. } else {
  1784. _formdiv = new U.UF.UI.form(
  1785. "工作详情",
  1786. $$("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 }), {
  1787. "id": "studyDetailStudio",
  1788. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1789. "onresize": function () { }
  1790. }, {
  1791. closecallback: function () { }
  1792. }, { "style": { "height": "36px" } }).form; //创建窗体
  1793. _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); } }
  1794. break;
  1795. }
  1796. case "studyDetailS5":
  1797. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1798. setTimeout(() => {
  1799. U.MD.U.L.login();
  1800. }, 2000);
  1801. } else {
  1802. _formdiv = new U.UF.UI.form(
  1803. "项目详情",
  1804. $$("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 }), {
  1805. "id": "studyDetailS",
  1806. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1807. "onresize": function () { }
  1808. }, {
  1809. closecallback: function () { }
  1810. }, { "style": { "height": "36px" } }).form; //创建窗体
  1811. _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); } }
  1812. break;
  1813. }
  1814. case "studyDetailGM":
  1815. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1816. setTimeout(() => {
  1817. U.MD.U.L.login();
  1818. }, 2000);
  1819. } else {
  1820. _formdiv = new U.UF.UI.form(
  1821. "课程详情",
  1822. $$("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 }), {
  1823. "id": "studyDetail",
  1824. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1825. "onresize": function () { }
  1826. }, {
  1827. closecallback: function () { }
  1828. }, { "style": { "height": "36px" } }).form; //创建窗体
  1829. _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); } }
  1830. break;
  1831. }
  1832. case "hanUrl":
  1833. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1834. setTimeout(() => {
  1835. U.MD.U.L.login();
  1836. }, 2000);
  1837. } else {
  1838. _formdiv = new U.UF.UI.form(
  1839. "汉字宫",
  1840. $$("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" }), {
  1841. "id": "hanUrl",
  1842. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1843. "onresize": function () { }
  1844. }, {
  1845. closecallback: function () { }
  1846. }, { "style": { "height": "36px" } }).form; //创建窗体
  1847. _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); } }
  1848. break;
  1849. }
  1850. }
  1851. }
  1852. U.MD.D.I.openApplication = function (str, obj, info) {
  1853. obj = obj || {};
  1854. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1855. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1856. _userinfo = US.userInfo, //登录用户信息
  1857. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1858. _oid = obj.organizeid || _userinfo.organizeid,
  1859. _type = US.userInfo.type,
  1860. _org = US.userInfo.org,
  1861. _role = US.userInfo.role,
  1862. _classId = US.userInfo.classid,
  1863. _TscreenType = 1
  1864. _screenType = 2,
  1865. _SscreenType = 3;
  1866. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1867. return;
  1868. }
  1869. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1870. switch (str) {
  1871. case "studnetProject": //好友打开
  1872. _formdiv = new U.UF.UI.form(
  1873. "我的项目",
  1874. $$("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 }), {
  1875. "id": "studnetProject",
  1876. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1877. "onresize": function () { }
  1878. }, {
  1879. closecallback: function () { }
  1880. }, { "style": { "height": "36px" } }).form; //创建窗体
  1881. _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); } }
  1882. break;
  1883. case "studentEvaluate": //好友打开
  1884. _formdiv = new U.UF.UI.form(
  1885. "我的评价",
  1886. $$("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 }), {
  1887. "id": "studentEvaluate",
  1888. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1889. "onresize": function () { }
  1890. }, {
  1891. closecallback: function () { }
  1892. }, { "style": { "height": "36px" } }).form; //创建窗体
  1893. _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); } }
  1894. break;
  1895. case "my":
  1896. _formdiv = new U.UF.UI.form(
  1897. "我的资料",
  1898. $$("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 }), {
  1899. "id": "my",
  1900. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1901. "onresize": function () { }
  1902. }, {
  1903. closecallback: function () { }
  1904. }, { "style": { "height": "36px" } }).form; //创建窗体
  1905. _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); } }
  1906. break;
  1907. case "program":
  1908. _formdiv = new U.UF.UI.form(
  1909. "编程平台",
  1910. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1911. "id": "program",
  1912. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1913. "onresize": function () { }
  1914. }, {
  1915. closecallback: function () { }
  1916. }, { "style": { "height": "36px" } }).form; //创建窗体
  1917. _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); } }
  1918. break;
  1919. case "library":
  1920. _formdiv = new U.UF.UI.form(
  1921. "素材库",
  1922. $$("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 }), {
  1923. "id": "library",
  1924. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1925. "onresize": function () { }
  1926. }, {
  1927. closecallback: function () { }
  1928. }, { "style": { "height": "36px" } }).form; //创建窗体
  1929. _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); } }
  1930. break;
  1931. case "whiteboard":
  1932. _formdiv = new U.UF.UI.form(
  1933. "电子白板",
  1934. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1935. "id": "whiteboard",
  1936. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1937. "onresize": function () { }
  1938. }, {
  1939. closecallback: function () { }
  1940. }, { "style": { "height": "36px" } }).form; //创建窗体
  1941. _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); } }
  1942. break;
  1943. case "investigation":
  1944. _formdiv = new U.UF.UI.form(
  1945. "问卷调查",
  1946. $$("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 }), {
  1947. "id": "investigation",
  1948. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1949. "onresize": function () { }
  1950. }, {
  1951. closecallback: function () { }
  1952. }, { "style": { "height": "36px" } }).form; //创建窗体
  1953. _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); } }
  1954. break;
  1955. case "note":
  1956. _formdiv = new U.UF.UI.form(
  1957. "便签分类",
  1958. $$("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 }), {
  1959. "id": "note",
  1960. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1961. "onresize": function () { }
  1962. }, {
  1963. closecallback: function () { }
  1964. }, { "style": { "height": "36px" } }).form; //创建窗体
  1965. _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); } }
  1966. break;
  1967. // case "score":
  1968. // _formdiv = new U.UF.UI.form(
  1969. // "量规评分",
  1970. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  1971. // "id": "score",
  1972. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1973. // "onresize": function() {}
  1974. // }, {
  1975. // closecallback: function() {}
  1976. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1977. // _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); } }
  1978. // break;
  1979. case "mind":
  1980. _formdiv = new U.UF.UI.form(
  1981. "思维导图",
  1982. $$("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"
  1983. "id": "mind",
  1984. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1985. "onresize": function () { }
  1986. }, {
  1987. closecallback: function () { }
  1988. }, { "style": { "height": "36px" } }).form; //创建窗体
  1989. _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); } }
  1990. break;
  1991. case "doc":
  1992. // U.MD.D.I.isRoom();
  1993. _formdiv = new U.UF.UI.form(
  1994. "协同文档",
  1995. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1996. "id": "doc",
  1997. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1998. "onresize": function () { }
  1999. }, {
  2000. closecallback: function () { }
  2001. }, { "style": { "height": "36px" } }).form; //创建窗体
  2002. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2003. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2004. // })
  2005. _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); } }
  2006. break;
  2007. case "studentStudy":
  2008. _formdiv = new U.UF.UI.form(
  2009. "课程中心",
  2010. $$("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
  2011. "id": "studentStudy",
  2012. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2013. "onresize": function () { }
  2014. }, {
  2015. closecallback: function () { }
  2016. }, { "style": { "height": "36px" } }).form; //创建窗体
  2017. _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); } }
  2018. break;
  2019. case "train": //好友打开
  2020. _formdiv = new U.UF.UI.form(
  2021. "训练平台",
  2022. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2023. "id": "train",
  2024. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2025. "onresize": function () { }
  2026. }, {
  2027. closecallback: function () { }
  2028. }, { "style": { "height": "36px" } }).form; //创建窗体
  2029. _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); } }
  2030. break;
  2031. case "mindNetwork": //好友打开
  2032. _formdiv = new U.UF.UI.form(
  2033. "思维网格",
  2034. $$("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 }), {
  2035. "id": "mindNetwork",
  2036. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2037. "onresize": function () { }
  2038. }, {
  2039. closecallback: function () { }
  2040. }, { "style": { "height": "36px" } }).form; //创建窗体
  2041. _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); } }
  2042. break;
  2043. case "studentClassRoom": //好友打开
  2044. _formdiv = new U.UF.UI.form(
  2045. "实时课堂",
  2046. $$("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 }), {
  2047. "id": "studentClassRoom",
  2048. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2049. "onresize": function () { }
  2050. }, {
  2051. closecallback: function () { }
  2052. }, { "style": { "height": "36px" } }).form; //创建窗体
  2053. _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); } }
  2054. setTimeout(() => {
  2055. U.UF.F.windowZooming(_formdiv)
  2056. }, 0);
  2057. break;
  2058. }
  2059. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2060. switch (str) {
  2061. case "studnetProject": //好友打开
  2062. _formdiv = new U.UF.UI.form(
  2063. "我的项目",
  2064. $$("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 }), {
  2065. "id": "studnetProject",
  2066. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2067. "onresize": function () { }
  2068. }, {
  2069. closecallback: function () { }
  2070. }, { "style": { "height": "36px" } }).form; //创建窗体
  2071. _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); } }
  2072. break;
  2073. case "studentEvaluate": //好友打开
  2074. _formdiv = new U.UF.UI.form(
  2075. "我的评价",
  2076. $$("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 }), {
  2077. "id": "studentEvaluate",
  2078. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2079. "onresize": function () { }
  2080. }, {
  2081. closecallback: function () { }
  2082. }, { "style": { "height": "36px" } }).form; //创建窗体
  2083. _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); } }
  2084. break;
  2085. case "my":
  2086. _formdiv = new U.UF.UI.form(
  2087. "我的资料",
  2088. $$("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 }), {
  2089. "id": "my",
  2090. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2091. "onresize": function () { }
  2092. }, {
  2093. closecallback: function () { }
  2094. }, { "style": { "height": "36px" } }).form; //创建窗体
  2095. _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); } }
  2096. break;
  2097. case "program":
  2098. _formdiv = new U.UF.UI.form(
  2099. "编程平台",
  2100. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2101. "id": "program",
  2102. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2103. "onresize": function () { }
  2104. }, {
  2105. closecallback: function () { }
  2106. }, { "style": { "height": "36px" } }).form; //创建窗体
  2107. _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); } }
  2108. break;
  2109. case "library":
  2110. _formdiv = new U.UF.UI.form(
  2111. "素材库",
  2112. $$("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 }), {
  2113. "id": "library",
  2114. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2115. "onresize": function () { }
  2116. }, {
  2117. closecallback: function () { }
  2118. }, { "style": { "height": "36px" } }).form; //创建窗体
  2119. _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); } }
  2120. break;
  2121. case "whiteboard":
  2122. _formdiv = new U.UF.UI.form(
  2123. "电子白板",
  2124. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2125. "id": "whiteboard",
  2126. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2127. "onresize": function () { }
  2128. }, {
  2129. closecallback: function () { }
  2130. }, { "style": { "height": "36px" } }).form; //创建窗体
  2131. _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); } }
  2132. break;
  2133. case "investigation":
  2134. _formdiv = new U.UF.UI.form(
  2135. "问卷调查",
  2136. $$("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 }), {
  2137. "id": "investigation",
  2138. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2139. "onresize": function () { }
  2140. }, {
  2141. closecallback: function () { }
  2142. }, { "style": { "height": "36px" } }).form; //创建窗体
  2143. _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); } }
  2144. break;
  2145. case "note":
  2146. _formdiv = new U.UF.UI.form(
  2147. "便签分类",
  2148. $$("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 }), {
  2149. "id": "note",
  2150. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2151. "onresize": function () { }
  2152. }, {
  2153. closecallback: function () { }
  2154. }, { "style": { "height": "36px" } }).form; //创建窗体
  2155. _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); } }
  2156. break;
  2157. // case "score":
  2158. // _formdiv = new U.UF.UI.form(
  2159. // "量规评分",
  2160. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2161. // "id": "score",
  2162. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2163. // "onresize": function() {}
  2164. // }, {
  2165. // closecallback: function() {}
  2166. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2167. // _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); } }
  2168. // break;
  2169. case "mind":
  2170. _formdiv = new U.UF.UI.form(
  2171. "思维导图",
  2172. $$("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"
  2173. "id": "mind",
  2174. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2175. "onresize": function () { }
  2176. }, {
  2177. closecallback: function () { }
  2178. }, { "style": { "height": "36px" } }).form; //创建窗体
  2179. _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); } }
  2180. break;
  2181. case "doc":
  2182. // U.MD.D.I.isRoom();
  2183. _formdiv = new U.UF.UI.form(
  2184. "协同文档",
  2185. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2186. "id": "doc",
  2187. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2188. "onresize": function () { }
  2189. }, {
  2190. closecallback: function () { }
  2191. }, { "style": { "height": "36px" } }).form; //创建窗体
  2192. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2193. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2194. })
  2195. _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); } }
  2196. break;
  2197. case "train": //好友打开
  2198. _formdiv = new U.UF.UI.form(
  2199. "训练平台",
  2200. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2201. "id": "train",
  2202. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2203. "onresize": function () { }
  2204. }, {
  2205. closecallback: function () { }
  2206. }, { "style": { "height": "36px" } }).form; //创建窗体
  2207. _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); } }
  2208. break;
  2209. case "studentStudy":
  2210. _formdiv = new U.UF.UI.form(
  2211. "课程中心",
  2212. $$("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
  2213. "id": "studentStudy",
  2214. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2215. "onresize": function () { }
  2216. }, {
  2217. closecallback: function () { }
  2218. }, { "style": { "height": "36px" } }).form; //创建窗体
  2219. _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); } }
  2220. break;
  2221. case "mindNetwork": //好友打开
  2222. _formdiv = new U.UF.UI.form(
  2223. "思维网格",
  2224. $$("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 }), {
  2225. "id": "mindNetwork",
  2226. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2227. "onresize": function () { }
  2228. }, {
  2229. closecallback: function () { }
  2230. }, { "style": { "height": "36px" } }).form; //创建窗体
  2231. _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); } }
  2232. break;
  2233. case "studentClassRoom": //好友打开
  2234. _formdiv = new U.UF.UI.form(
  2235. "实时课堂",
  2236. $$("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 }), {
  2237. "id": "studentClassRoom",
  2238. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2239. "onresize": function () { }
  2240. }, {
  2241. closecallback: function () { }
  2242. }, { "style": { "height": "36px" } }).form; //创建窗体
  2243. _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); } }
  2244. setTimeout(() => {
  2245. U.UF.F.windowZooming(_formdiv)
  2246. }, 0);
  2247. break;
  2248. }
  2249. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2250. //选择应用处理
  2251. switch (str) {
  2252. case "project": //好友打开
  2253. _formdiv = new U.UF.UI.form(
  2254. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2255. $$("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 }), {
  2256. "id": "project",
  2257. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2258. "onresize": function () { }
  2259. }, {
  2260. closecallback: function () { }
  2261. }, { "style": { "height": "36px" } }).form; //创建窗体
  2262. _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); } }
  2263. break;
  2264. case "student":
  2265. _formdiv = new U.UF.UI.form(
  2266. "学生管理",
  2267. $$("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 }), {
  2268. "id": "student",
  2269. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2270. "onresize": function () { }
  2271. }, {
  2272. closecallback: function () { }
  2273. }, { "style": { "height": "36px" } }).form; //创建窗体
  2274. _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); } }
  2275. break;
  2276. case "evaluate":
  2277. _formdiv = new U.UF.UI.form(
  2278. "学生评价",
  2279. $$("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 }), {
  2280. "id": "evaluate",
  2281. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2282. "onresize": function () { }
  2283. }, {
  2284. closecallback: function () { }
  2285. }, { "style": { "height": "36px" } }).form; //创建窗体
  2286. _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); } }
  2287. break;
  2288. case "sys":
  2289. _formdiv = new U.UF.UI.form(
  2290. "目标管理",
  2291. $$("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 }), {
  2292. "id": "sys",
  2293. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2294. "onresize": function () { }
  2295. }, {
  2296. closecallback: function () { }
  2297. }, { "style": { "height": "36px" } }).form; //创建窗体
  2298. _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); } }
  2299. break;
  2300. case "courseDesign":
  2301. _formdiv = new U.UF.UI.form(
  2302. "项目设计",
  2303. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2304. "id": "courseDesign",
  2305. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2306. "onresize": function () { }
  2307. }, {
  2308. closecallback: function () { }
  2309. }, { "style": { "height": "36px" } }).form; //创建窗体
  2310. _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); } }
  2311. break;
  2312. case "program":
  2313. _formdiv = new U.UF.UI.form(
  2314. "编程平台",
  2315. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2316. "id": "program",
  2317. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2318. "onresize": function () { }
  2319. }, {
  2320. closecallback: function () { }
  2321. }, { "style": { "height": "36px" } }).form; //创建窗体
  2322. _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); } }
  2323. break;
  2324. case "class":
  2325. _formdiv = new U.UF.UI.form(
  2326. "班级管理",
  2327. $$("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 }), {
  2328. "id": "class",
  2329. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2330. "onresize": function () { }
  2331. }, {
  2332. closecallback: function () { }
  2333. }, { "style": { "height": "36px" } }).form; //创建窗体
  2334. _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); } }
  2335. break;
  2336. case "my":
  2337. _formdiv = new U.UF.UI.form(
  2338. "我的资料",
  2339. $$("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 }), {
  2340. "id": "my",
  2341. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2342. "onresize": function () { }
  2343. }, {
  2344. closecallback: function () { }
  2345. }, { "style": { "height": "36px" } }).form; //创建窗体
  2346. _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); } }
  2347. break;
  2348. case "notice":
  2349. _formdiv = new U.UF.UI.form(
  2350. "通知公告",
  2351. $$("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 }), {
  2352. "id": "notice",
  2353. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2354. "onresize": function () { }
  2355. }, {
  2356. closecallback: function () { }
  2357. }, { "style": { "height": "36px" } }).form; //创建窗体
  2358. _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); } }
  2359. break;
  2360. case "library":
  2361. _formdiv = new U.UF.UI.form(
  2362. "素材库",
  2363. $$("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 }), {
  2364. "id": "library",
  2365. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2366. "onresize": function () { }
  2367. }, {
  2368. closecallback: function () { }
  2369. }, { "style": { "height": "36px" } }).form; //创建窗体
  2370. _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); } }
  2371. break;
  2372. case "whiteboard":
  2373. _formdiv = new U.UF.UI.form(
  2374. "电子白板",
  2375. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2376. "id": "whiteboard",
  2377. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2378. "onresize": function () { }
  2379. }, {
  2380. closecallback: function () { }
  2381. }, { "style": { "height": "36px" } }).form; //创建窗体
  2382. _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); } }
  2383. break;
  2384. case "investigation":
  2385. _formdiv = new U.UF.UI.form(
  2386. "问卷调查",
  2387. $$("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 }), {
  2388. "id": "investigation",
  2389. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2390. "onresize": function () { }
  2391. }, {
  2392. closecallback: function () { }
  2393. }, { "style": { "height": "36px" } }).form; //创建窗体
  2394. _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); } }
  2395. break;
  2396. case "note":
  2397. _formdiv = new U.UF.UI.form(
  2398. "便签分类",
  2399. $$("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 }), {
  2400. "id": "note",
  2401. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2402. "onresize": function () { }
  2403. }, {
  2404. closecallback: function () { }
  2405. }, { "style": { "height": "36px" } }).form; //创建窗体
  2406. _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); } }
  2407. break;
  2408. // case "score":
  2409. // _formdiv = new U.UF.UI.form(
  2410. // "量规评分",
  2411. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2412. // "id": "score",
  2413. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2414. // "onresize": function() {}
  2415. // }, {
  2416. // closecallback: function() {}
  2417. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2418. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2419. // break;
  2420. case "mind":
  2421. _formdiv = new U.UF.UI.form(
  2422. "思维导图",
  2423. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  2424. "id": "mind",
  2425. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2426. "onresize": function () { }
  2427. }, {
  2428. closecallback: function () { }
  2429. }, { "style": { "height": "36px" } }).form; //创建窗体
  2430. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2431. break;
  2432. case "doc":
  2433. // U.MD.D.I.isRoom();
  2434. _formdiv = new U.UF.UI.form(
  2435. "协同文档",
  2436. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2437. "id": "doc",
  2438. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2439. "onresize": function () { }
  2440. }, {
  2441. closecallback: function () { }
  2442. }, { "style": { "height": "36px" } }).form; //创建窗体
  2443. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2444. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2445. })
  2446. _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); } }
  2447. break;
  2448. case "study":
  2449. _formdiv = new U.UF.UI.form(
  2450. "课程中心",
  2451. $$("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
  2452. "id": "study",
  2453. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2454. "onresize": function () { }
  2455. }, {
  2456. closecallback: function () { }
  2457. }, { "style": { "height": "36px" } }).form; //创建窗体
  2458. _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); } }
  2459. break;
  2460. case "mindNetwork": //好友打开
  2461. _formdiv = new U.UF.UI.form(
  2462. "思维网格",
  2463. $$("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 }), {
  2464. "id": "mindNetwork",
  2465. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2466. "onresize": function () { }
  2467. }, {
  2468. closecallback: function () { }
  2469. }, { "style": { "height": "36px" } }).form; //创建窗体
  2470. _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); } }
  2471. break;
  2472. case "train": //好友打开
  2473. _formdiv = new U.UF.UI.form(
  2474. "训练平台",
  2475. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2476. "id": "mindNetwork",
  2477. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2478. "onresize": function () { }
  2479. }, {
  2480. closecallback: function () { }
  2481. }, { "style": { "height": "36px" } }).form; //创建窗体
  2482. _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); } }
  2483. break;
  2484. case "teacherClassRoom": //好友打开
  2485. _formdiv = new U.UF.UI.form(
  2486. "实时课堂",
  2487. $$("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 }), {
  2488. "id": "teacherClassRoom",
  2489. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2490. "onresize": function () { }
  2491. }, {
  2492. closecallback: function () { }
  2493. }, { "style": { "height": "36px" } }).form; //创建窗体
  2494. _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); } }
  2495. setTimeout(() => {
  2496. U.UF.F.windowZooming(_formdiv)
  2497. }, 0);
  2498. break;
  2499. }
  2500. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2501. switch (str) {
  2502. case "project": //好友打开
  2503. _formdiv = new U.UF.UI.form(
  2504. "课程管理",
  2505. $$("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 }), {
  2506. "id": "project",
  2507. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2508. "onresize": function () { }
  2509. }, {
  2510. closecallback: function () { }
  2511. }, { "style": { "height": "36px" } }).form; //创建窗体
  2512. _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); } }
  2513. break;
  2514. case "evaluate":
  2515. _formdiv = new U.UF.UI.form(
  2516. "学生评价",
  2517. $$("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 }), {
  2518. "id": "evaluate",
  2519. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2520. "onresize": function () { }
  2521. }, {
  2522. closecallback: function () { }
  2523. }, { "style": { "height": "36px" } }).form; //创建窗体
  2524. _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); } }
  2525. break;
  2526. case "notice":
  2527. _formdiv = new U.UF.UI.form(
  2528. "通知公告",
  2529. $$("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 }), {
  2530. "id": "notice",
  2531. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2532. "onresize": function () { }
  2533. }, {
  2534. closecallback: function () { }
  2535. }, { "style": { "height": "36px" } }).form; //创建窗体
  2536. _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); } }
  2537. break;
  2538. case "stuLibrary":
  2539. _formdiv = new U.UF.UI.form(
  2540. "学习资料",
  2541. $$("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 }), {
  2542. "id": "stuLibrary",
  2543. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2544. "onresize": function () { }
  2545. }, {
  2546. closecallback: function () { }
  2547. }, { "style": { "height": "36px" } }).form; //创建窗体
  2548. _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); } }
  2549. break;
  2550. case "program":
  2551. _formdiv = new U.UF.UI.form(
  2552. "编程平台",
  2553. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2554. "id": "program",
  2555. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2556. "onresize": function () { }
  2557. }, {
  2558. closecallback: function () { }
  2559. }, { "style": { "height": "36px" } }).form; //创建窗体
  2560. _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); } }
  2561. break;
  2562. case "whiteboard":
  2563. _formdiv = new U.UF.UI.form(
  2564. "电子白板",
  2565. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2566. "id": "whiteboard",
  2567. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2568. "onresize": function () { }
  2569. }, {
  2570. closecallback: function () { }
  2571. }, { "style": { "height": "36px" } }).form; //创建窗体
  2572. _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); } }
  2573. break;
  2574. case "investigation":
  2575. _formdiv = new U.UF.UI.form(
  2576. "问卷调查",
  2577. $$("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 }), {
  2578. "id": "investigation",
  2579. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2580. "onresize": function () { }
  2581. }, {
  2582. closecallback: function () { }
  2583. }, { "style": { "height": "36px" } }).form; //创建窗体
  2584. _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); } }
  2585. break;
  2586. case "mind":
  2587. _formdiv = new U.UF.UI.form(
  2588. "思维导图",
  2589. $$("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"
  2590. "id": "mind",
  2591. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2592. "onresize": function () { }
  2593. }, {
  2594. closecallback: function () { }
  2595. }, { "style": { "height": "36px" } }).form; //创建窗体
  2596. _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); } }
  2597. break;
  2598. case "doc":
  2599. // U.MD.D.I.isRoom();
  2600. _formdiv = new U.UF.UI.form(
  2601. "协同文档",
  2602. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2603. "id": "doc",
  2604. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2605. "onresize": function () { }
  2606. }, {
  2607. closecallback: function () { }
  2608. }, { "style": { "height": "36px" } }).form; //创建窗体
  2609. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2610. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2611. })
  2612. _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); } }
  2613. break;
  2614. case "study":
  2615. _formdiv = new U.UF.UI.form(
  2616. "课程中心",
  2617. $$("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
  2618. "id": "study",
  2619. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2620. "onresize": function () { }
  2621. }, {
  2622. closecallback: function () { }
  2623. }, { "style": { "height": "36px" } }).form; //创建窗体
  2624. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2625. break;
  2626. case "mindNetwork": //好友打开
  2627. _formdiv = new U.UF.UI.form(
  2628. "思维网格",
  2629. $$("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 }), {
  2630. "id": "mindNetwork",
  2631. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2632. "onresize": function () { }
  2633. }, {
  2634. closecallback: function () { }
  2635. }, { "style": { "height": "36px" } }).form; //创建窗体
  2636. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2637. break;
  2638. case "train": //好友打开
  2639. _formdiv = new U.UF.UI.form(
  2640. "训练平台",
  2641. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2642. "id": "train",
  2643. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2644. "onresize": function () { }
  2645. }, {
  2646. closecallback: function () { }
  2647. }, { "style": { "height": "36px" } }).form; //创建窗体
  2648. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2649. break;
  2650. case "sys":
  2651. _formdiv = new U.UF.UI.form(
  2652. "目标管理",
  2653. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2654. "id": "sys",
  2655. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2656. "onresize": function () { }
  2657. }, {
  2658. closecallback: function () { }
  2659. }, { "style": { "height": "36px" } }).form; //创建窗体
  2660. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2661. break;
  2662. case "courseDesign":
  2663. _formdiv = new U.UF.UI.form(
  2664. "项目设计",
  2665. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2666. "id": "courseDesign",
  2667. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2668. "onresize": function () { }
  2669. }, {
  2670. closecallback: function () { }
  2671. }, { "style": { "height": "36px" } }).form; //创建窗体
  2672. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "项目设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2673. break;
  2674. }
  2675. } else if (!_type) {
  2676. switch (str) {
  2677. case "my":
  2678. _formdiv = new U.UF.UI.form(
  2679. "我的资料",
  2680. $$("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 }), {
  2681. "id": "my",
  2682. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2683. "onresize": function () { }
  2684. }, {
  2685. closecallback: function () { }
  2686. }, { "style": { "height": "36px" } }).form; //创建窗体
  2687. _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); } }
  2688. break;
  2689. }
  2690. }
  2691. switch (str) {
  2692. // AIprogram2 AI体验 aihub.cocorobo.cn
  2693. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2694. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2695. case "AIprogram2": //AI体验
  2696. _formdiv = new U.UF.UI.form(
  2697. "AI体验",
  2698. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2699. "id": "AIprogram2",
  2700. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2701. "onresize": function () { }
  2702. }, {
  2703. closecallback: function () { }
  2704. }, { "style": { "height": "36px" } }).form; //创建窗体
  2705. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram2.png)" }, "name": "AI体验", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2706. break;
  2707. case "Pythonprogram": //python编程
  2708. _formdiv = new U.UF.UI.form(
  2709. "Python编程",
  2710. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2711. "id": "Pythonprogram",
  2712. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2713. "onresize": function () { }
  2714. }, {
  2715. closecallback: function () { }
  2716. }, { "style": { "height": "36px" } }).form; //创建窗体
  2717. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Pythonprogram.png)" }, "name": "Python编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2718. break;
  2719. case "AIprogram": //ai编程
  2720. _formdiv = new U.UF.UI.form(
  2721. "AI编程平台",
  2722. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2723. "id": "AIprogram",
  2724. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2725. "onresize": function () { }
  2726. }, {
  2727. closecallback: function () { }
  2728. }, { "style": { "height": "36px" } }).form; //创建窗体
  2729. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram.png)" }, "name": "AI编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2730. break;
  2731. case "CocoPi": //CocoPi
  2732. _formdiv = new U.UF.UI.form(
  2733. "CocoPi",
  2734. $$("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" }), {
  2735. "id": "CocoPi",
  2736. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2737. "onresize": function () { }
  2738. }, {
  2739. closecallback: function () { }
  2740. }, { "style": { "height": "36px" } }).form; //创建窗体
  2741. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/cocopi.png)" }, "name": "CocoPi", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2742. break;
  2743. case "Wood": //Wood
  2744. _formdiv = new U.UF.UI.form(
  2745. "海龟编程",
  2746. $$("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/" }), {
  2747. "id": "Wood",
  2748. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2749. "onresize": function () { }
  2750. }, {
  2751. closecallback: function () { }
  2752. }, { "style": { "height": "36px" } }).form; //创建窗体
  2753. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Wood.png)" }, "name": "海龟编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2754. break;
  2755. case "car": //模拟驾驶
  2756. _formdiv = new U.UF.UI.form(
  2757. "模拟驾驶",
  2758. $$("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/" }), {
  2759. "id": "car",
  2760. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2761. "onresize": function () { }
  2762. }, {
  2763. closecallback: function () { }
  2764. }, { "style": { "height": "36px" } }).form; //创建窗体
  2765. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/car.png)" }, "name": "模拟驾驶", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2766. break;
  2767. case "lineSearch": //路径搜索
  2768. _formdiv = new U.UF.UI.form(
  2769. "路径搜索",
  2770. $$("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/" }), {
  2771. "id": "lineSearch",
  2772. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2773. "onresize": function () { }
  2774. }, {
  2775. closecallback: function () { }
  2776. }, { "style": { "height": "36px" } }).form; //创建窗体
  2777. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/lineSearch.png)" }, "name": "路径搜索", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2778. break;
  2779. case "deepLearning": //深度学习
  2780. _formdiv = new U.UF.UI.form(
  2781. "深度学习",
  2782. $$("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/#" }), {
  2783. "id": "deepLearning",
  2784. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2785. "onresize": function () { }
  2786. }, {
  2787. closecallback: function () { }
  2788. }, { "style": { "height": "36px" } }).form; //创建窗体
  2789. _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); } }
  2790. break;
  2791. case "allHistory": //深度学习
  2792. _formdiv = new U.UF.UI.form(
  2793. "全历史",
  2794. $$("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/" }), {
  2795. "id": "allHistory",
  2796. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2797. "onresize": function () { }
  2798. }, {
  2799. closecallback: function () { }
  2800. }, { "style": { "height": "36px" } }).form; //创建窗体
  2801. _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); } }
  2802. break;
  2803. case "chatPDF": //ai编程
  2804. _formdiv = new U.UF.UI.form(
  2805. "chatPDF",
  2806. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2807. "id": "chatPDF",
  2808. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2809. "onresize": function () { }
  2810. }, {
  2811. closecallback: function () { }
  2812. }, { "style": { "height": "36px" } }).form; //创建窗体
  2813. _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); } }
  2814. break;
  2815. case "resources": //国家教育
  2816. _formdiv = new U.UF.UI.form(
  2817. "国家教育",
  2818. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2819. "id": "resources",
  2820. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2821. "onresize": function () { }
  2822. }, {
  2823. closecallback: function () { }
  2824. }, { "style": { "height": "36px" } }).form; //创建窗体
  2825. _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); } }
  2826. break;
  2827. case "codeEdit": //源码编辑
  2828. _formdiv = new U.UF.UI.form(
  2829. "源码编辑",
  2830. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2831. "id": "codeEdit",
  2832. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2833. "onresize": function () { }
  2834. }, {
  2835. closecallback: function () { }
  2836. }, { "style": { "height": "36px" } }).form; //创建窗体
  2837. _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); } }
  2838. break; //
  2839. case "MindMap": //MindMap
  2840. _formdiv = new U.UF.UI.form(
  2841. "MindMap",
  2842. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2843. "id": "MindMap",
  2844. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2845. "onresize": function () { }
  2846. }, {
  2847. closecallback: function () { }
  2848. }, { "style": { "height": "36px" } }).form; //创建窗体
  2849. _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); } }
  2850. break;
  2851. case "netWorkPanel": //netWorkPanel
  2852. _formdiv = new U.UF.UI.form(
  2853. "netWorkPanel",
  2854. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2855. "id": "netWorkPanel",
  2856. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2857. "onresize": function () { }
  2858. }, {
  2859. closecallback: function () { }
  2860. }, { "style": { "height": "36px" } }).form; //创建窗体
  2861. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/netWorkPanel.png)" }, "name": "netWorkPanel", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2862. break;
  2863. case "GeoGebra": //GeoGebra
  2864. _formdiv = new U.UF.UI.form(
  2865. "GeoGebra",
  2866. $$("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" }), {
  2867. "id": "GeoGebra",
  2868. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2869. "onresize": function () { }
  2870. }, {
  2871. closecallback: function () { }
  2872. }, { "style": { "height": "36px" } }).form; //创建窗体
  2873. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/GeoGebra.png)" }, "name": "GeoGebra", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2874. break;
  2875. case "translation": //翻译
  2876. _formdiv = new U.UF.UI.form(
  2877. "翻译",
  2878. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2879. "id": "translation",
  2880. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2881. "onresize": function () { }
  2882. }, {
  2883. closecallback: function () { }
  2884. }, { "style": { "height": "36px" } }).form; //创建窗体
  2885. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/translation.png)" }, "name": "翻译", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2886. break;
  2887. case "mohe": //魔盒
  2888. _formdiv = new U.UF.UI.form(
  2889. "魔盒识字",
  2890. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2891. "id": "mohe",
  2892. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2893. "onresize": function () { }
  2894. }, {
  2895. closecallback: function () { }
  2896. }, { "style": { "height": "36px" } }).form; //创建窗体
  2897. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mohe.png)" }, "name": "魔盒识字", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2898. break;
  2899. case "24game": //24点
  2900. _formdiv = new U.UF.UI.form(
  2901. "24点",
  2902. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2903. "id": "24game",
  2904. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2905. "onresize": function () { }
  2906. }, {
  2907. closecallback: function () { }
  2908. }, { "style": { "height": "36px" } }).form; //创建窗体
  2909. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/24game.png)" }, "name": "24点", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2910. break;
  2911. case "case":
  2912. _formdiv = new U.UF.UI.form(
  2913. "课程进展",
  2914. $$("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 }), {
  2915. "id": "case",
  2916. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2917. "onresize": function () { }
  2918. }, {
  2919. closecallback: function () { }
  2920. }, { "style": { "height": "36px" } }).form; //创建窗体
  2921. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/case.png)" }, "name": "课程进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2922. break;
  2923. case "snf":
  2924. _formdiv = new U.UF.UI.form(
  2925. "赛诺梵",
  2926. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//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" }), {
  2927. "id": "snf",
  2928. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2929. "onresize": function () { }
  2930. }, {
  2931. closecallback: function () { }
  2932. }, { "style": { "height": "36px" } }).form; //创建窗体
  2933. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/snf.png)" }, "name": "赛诺梵", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2934. break;
  2935. case "hanFamily":
  2936. _formdiv = new U.UF.UI.form(
  2937. "汉字家族",
  2938. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2939. "id": "hanFamily",
  2940. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2941. "onresize": function () { }
  2942. }, {
  2943. closecallback: function () { }
  2944. }, { "style": { "height": "36px" } }).form; //创建窗体
  2945. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanFamily.png)" }, "name": "汉字家族", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2946. break;
  2947. case "hanClassics":
  2948. _formdiv = new U.UF.UI.form(
  2949. "国学经典",
  2950. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2951. "id": "hanClassics",
  2952. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2953. "onresize": function () { }
  2954. }, {
  2955. closecallback: function () { }
  2956. }, { "style": { "height": "36px" } }).form; //创建窗体
  2957. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClassics.png)" }, "name": "国学经典", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2958. break;
  2959. case "hanTraining":
  2960. _formdiv = new U.UF.UI.form(
  2961. "笔画训练",
  2962. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2963. "id": "hanTraining",
  2964. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2965. "onresize": function () { }
  2966. }, {
  2967. closecallback: function () { }
  2968. }, { "style": { "height": "36px" } }).form; //创建窗体
  2969. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanTraining.png)" }, "name": "笔画训练", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2970. break;
  2971. case "hanClass":
  2972. _formdiv = new U.UF.UI.form(
  2973. "书法课堂",
  2974. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2975. "id": "hanClass",
  2976. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2977. "onresize": function () { }
  2978. }, {
  2979. closecallback: function () { }
  2980. }, { "style": { "height": "36px" } }).form; //创建窗体
  2981. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "书法课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2982. break;
  2983. case "han":
  2984. _formdiv = new U.UF.UI.form(
  2985. "汉字宫",
  2986. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2987. "id": "han",
  2988. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2989. "onresize": function () { }
  2990. }, {
  2991. closecallback: function () { }
  2992. }, { "style": { "height": "36px" } }).form; //创建窗体
  2993. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/han.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2994. break;
  2995. case "projectGM": //课程管理
  2996. _formdiv = new U.UF.UI.form(
  2997. "课程管理",
  2998. $$("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 }), {
  2999. "id": "projectGM",
  3000. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3001. "onresize": function () { }
  3002. }, {
  3003. closecallback: function () { }
  3004. }, { "style": { "height": "36px" } }).form; //创建窗体
  3005. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/courseMange.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3006. break;
  3007. case "studyGM"://课程中心
  3008. _formdiv = new U.UF.UI.form(
  3009. "课程中心",
  3010. $$("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
  3011. "id": "study",
  3012. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3013. "onresize": function () { }
  3014. }, {
  3015. closecallback: function () { }
  3016. }, { "style": { "height": "36px" } }).form; //创建窗体
  3017. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3018. break;
  3019. // studentGM
  3020. case "studentGM"://学生管理
  3021. _formdiv = new U.UF.UI.form(
  3022. "学生管理",
  3023. $$("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 }), {
  3024. "id": "studentGM",
  3025. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3026. "onresize": function () { }
  3027. }, {
  3028. closecallback: function () { }
  3029. }, { "style": { "height": "36px" } }).form; //创建窗体
  3030. _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); } }
  3031. break;
  3032. case "evaluateGM"://学生评价
  3033. _formdiv = new U.UF.UI.form(
  3034. "学生评价",
  3035. $$("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 }), {
  3036. "id": "evaluateGM",
  3037. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3038. "onresize": function () { }
  3039. }, {
  3040. closecallback: function () { }
  3041. }, { "style": { "height": "36px" } }).form; //创建窗体
  3042. _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); } }
  3043. break;
  3044. // classGM
  3045. case "classGM"://班级管理
  3046. _formdiv = new U.UF.UI.form(
  3047. "班级管理",
  3048. $$("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 }), {
  3049. "id": "classGM",
  3050. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3051. "onresize": function () { }
  3052. }, {
  3053. closecallback: function () { }
  3054. }, { "style": { "height": "36px" } }).form; //创建窗体
  3055. _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); } }
  3056. break;
  3057. // dataGM
  3058. case "dataGM":
  3059. _formdiv = new U.UF.UI.form(
  3060. "我的资料",
  3061. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataGM?userid=" + _userid + "&org=" + _org }), {
  3062. "id": "dataGM",
  3063. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3064. "onresize": function () { }
  3065. }, {
  3066. closecallback: function () { }
  3067. }, { "style": { "height": "36px" } }).form; //创建窗体
  3068. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/data.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3069. break;
  3070. // caseGM
  3071. case "caseGM"://课程进展
  3072. _formdiv = new U.UF.UI.form(
  3073. "课程进展",
  3074. $$("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 }), {
  3075. "id": "caseGM",
  3076. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3077. "onresize": function () { }
  3078. }, {
  3079. closecallback: function () { }
  3080. }, { "style": { "height": "36px" } }).form; //创建窗体
  3081. _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); } }
  3082. break;
  3083. // meterialGM
  3084. case "meterialGM"://素材库
  3085. _formdiv = new U.UF.UI.form(
  3086. "素材库",
  3087. $$("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 }), {
  3088. "id": "meterialGM",
  3089. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3090. "onresize": function () { }
  3091. }, {
  3092. closecallback: function () { }
  3093. }, { "style": { "height": "36px" } }).form; //创建窗体
  3094. _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); } }
  3095. break;
  3096. // evaluateSGM
  3097. case "evaluateSGM": //我的评价
  3098. _formdiv = new U.UF.UI.form(
  3099. "我的评价",
  3100. $$("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 }), {
  3101. "id": "evaluateSGM",
  3102. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3103. "onresize": function () { }
  3104. }, {
  3105. closecallback: function () { }
  3106. }, { "style": { "height": "36px" } }).form; //创建窗体
  3107. _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); } }
  3108. break;
  3109. case "jupyter": //jupyter
  3110. _formdiv = new U.UF.UI.form(
  3111. "jupyter",
  3112. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3113. "id": "jupyter",
  3114. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3115. "onresize": function () { }
  3116. }, {
  3117. closecallback: function () { }
  3118. }, { "style": { "height": "36px" } }).form; //创建窗体
  3119. _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); } }
  3120. break;
  3121. case "number": //数字实验室
  3122. _formdiv = new U.UF.UI.form(
  3123. "数字实验室",
  3124. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3125. "id": "number",
  3126. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3127. "onresize": function () { }
  3128. }, {
  3129. closecallback: function () { }
  3130. }, { "style": { "height": "36px" } }).form; //创建窗体
  3131. _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); } }
  3132. break;
  3133. case "studentCourse": //项目管理 学生
  3134. _formdiv = new U.UF.UI.form(
  3135. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3136. $$("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 }), {
  3137. "id": "studentCourse",
  3138. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3139. "onresize": function () { }
  3140. }, {
  3141. closecallback: function () { }
  3142. }, { "style": { "height": "36px" } }).form; //创建窗体
  3143. _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); } }
  3144. break;
  3145. case "studentCourseS": //项目管理 老师
  3146. _formdiv = new U.UF.UI.form(
  3147. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3148. $$("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 }), {
  3149. "id": "studentCourseS",
  3150. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3151. "onresize": function () { }
  3152. }, {
  3153. closecallback: function () { }
  3154. }, { "style": { "height": "36px" } }).form; //创建窗体
  3155. _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); } }
  3156. break;
  3157. case "studentIndex": //项目中心
  3158. _formdiv = new U.UF.UI.form(
  3159. "项目中心",
  3160. $$("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 }), {
  3161. "id": "studentIndex",
  3162. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3163. "onresize": function () { }
  3164. }, {
  3165. closecallback: function () { }
  3166. }, { "style": { "height": "36px" } }).form; //创建窗体
  3167. _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); } }
  3168. break;
  3169. case "CaseDesignS":
  3170. _formdiv = new U.UF.UI.form(
  3171. "项目进展",
  3172. $$("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 }), {
  3173. "id": "case",
  3174. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3175. "onresize": function () { }
  3176. }, {
  3177. closecallback: function () { }
  3178. }, { "style": { "height": "36px" } }).form; //创建窗体
  3179. _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); } }
  3180. break;
  3181. case "tcStudent": //腾讯学生管理
  3182. _formdiv = new U.UF.UI.form(
  3183. "学生管理",
  3184. $$("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 }), {
  3185. "id": "tcStudent",
  3186. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3187. "onresize": function () { }
  3188. }, {
  3189. closecallback: function () { }
  3190. }, { "style": { "height": "36px" } }).form; //创建窗体
  3191. _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); } }
  3192. break;
  3193. case "tcSchool": //腾讯学校管理
  3194. _formdiv = new U.UF.UI.form(
  3195. "学校管理",
  3196. $$("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 }), {
  3197. "id": "tcSchool",
  3198. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3199. "onresize": function () { }
  3200. }, {
  3201. closecallback: function () { }
  3202. }, { "style": { "height": "36px" } }).form; //创建窗体
  3203. _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); } }
  3204. break;
  3205. case "tcTeacher": //腾讯学校管理
  3206. _formdiv = new U.UF.UI.form(
  3207. "教师管理",
  3208. $$("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 }), {
  3209. "id": "tcTeacher",
  3210. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3211. "onresize": function () { }
  3212. }, {
  3213. closecallback: function () { }
  3214. }, { "style": { "height": "36px" } }).form; //创建窗体
  3215. _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); } }
  3216. break;
  3217. case "tcData": //腾讯我的资料
  3218. _formdiv = new U.UF.UI.form(
  3219. "我的资料",
  3220. $$("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 }), {
  3221. "id": "tcData",
  3222. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3223. "onresize": function () { }
  3224. }, {
  3225. closecallback: function () { }
  3226. }, { "style": { "height": "36px" } }).form; //创建窗体
  3227. _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); } }
  3228. break;
  3229. case "tcNotice": //腾讯消息通知
  3230. _formdiv = new U.UF.UI.form(
  3231. "消息通知",
  3232. $$("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 }), {
  3233. "id": "tcNotice",
  3234. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3235. "onresize": function () { }
  3236. }, {
  3237. closecallback: function () { }
  3238. }, { "style": { "height": "36px" } }).form; //创建窗体
  3239. _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); } }
  3240. break;
  3241. case "myReport": //好友打开
  3242. _formdiv = new U.UF.UI.form(
  3243. "我的评价",
  3244. $$("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 }), {
  3245. "id": "myReport",
  3246. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3247. "onresize": function () { }
  3248. }, {
  3249. closecallback: function () { }
  3250. }, { "style": { "height": "36px" } }).form; //创建窗体
  3251. _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); } }
  3252. break;
  3253. case "learnAna": //好友打开
  3254. _formdiv = new U.UF.UI.form(
  3255. "学习分析",
  3256. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/learnAna?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3257. "id": "learnAna",
  3258. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3259. "onresize": function () { }
  3260. }, {
  3261. closecallback: function () { }
  3262. }, { "style": { "height": "36px" } }).form; //创建窗体
  3263. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/learnAna.png)" }, "name": "学习分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3264. break;
  3265. case "AIChat": //AI共创
  3266. _formdiv = new U.UF.UI.form(
  3267. "AI共创",
  3268. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3269. "id": "AIChat",
  3270. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3271. "onresize": function () { }
  3272. }, {
  3273. istop: true,
  3274. closecallback: function () { $("#aichat_icon").remove(); },
  3275. narrowcallback: function () {
  3276. if (!$("#aichat_icon")[0]) {
  3277. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3278. }
  3279. },
  3280. }, { "style": { "height": "36px" } }).form; //创建窗体
  3281. _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); } }
  3282. break;
  3283. case "AIAnalyse": //AI共创
  3284. _formdiv = new U.UF.UI.form(
  3285. "AI分析",
  3286. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3287. "id": "AIAnalyse",
  3288. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3289. "onresize": function () { }
  3290. }, {
  3291. closecallback: function () { }
  3292. }, { "style": { "height": "36px" } }).form; //创建窗体
  3293. _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); } }
  3294. break;
  3295. case "studioCourse": //AI共创
  3296. _formdiv = new U.UF.UI.form(
  3297. "工作管理",
  3298. $$("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 }), {
  3299. "id": "studioCourse",
  3300. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3301. "onresize": function () { }
  3302. }, {
  3303. closecallback: function () { }
  3304. }, { "style": { "height": "36px" } }).form; //创建窗体
  3305. _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); } }
  3306. break;
  3307. case "studioIndex": //AI共创
  3308. _formdiv = new U.UF.UI.form(
  3309. "工作中心",
  3310. $$("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 }), {
  3311. "id": "studioIndex",
  3312. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3313. "onresize": function () { }
  3314. }, {
  3315. closecallback: function () { }
  3316. }, { "style": { "height": "36px" } }).form; //创建窗体
  3317. _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); } }
  3318. break;
  3319. case "source":
  3320. _formdiv = new U.UF.UI.form(
  3321. "教学资源",
  3322. $$("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 }), {
  3323. "id": "source",
  3324. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3325. "onresize": function () { }
  3326. }, {
  3327. closecallback: function () { }
  3328. }, { "style": { "height": "36px" } }).form; //创建窗体
  3329. _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); } }
  3330. break;
  3331. }
  3332. //U.MD.D.I.openClick(str);
  3333. //如果有任务栏信息
  3334. if (_taskbar) {
  3335. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3336. }
  3337. }
  3338. // U.MD.D.I.openClick = function(str){
  3339. // var click = '';
  3340. // switch(str){
  3341. // case 'friend':
  3342. // click = '我的好友';
  3343. // break;
  3344. // case 'domain':
  3345. // click = '域名管理';
  3346. // break;
  3347. // case 'disk':
  3348. // click = '我的云盘';
  3349. // break;
  3350. // case 'word':
  3351. // click = 'Word';
  3352. // break;
  3353. // case 'excel':
  3354. // click = 'Execl';
  3355. // break;
  3356. // case 'txt':
  3357. // click = '文本文件';
  3358. // break;
  3359. // case 'lookupFriend':
  3360. // click = '查找好友';
  3361. // break;
  3362. // case 'ftp':
  3363. // click = 'FTP';
  3364. // break;
  3365. // case 'group':
  3366. // click = '群组';
  3367. // break;
  3368. // case 'set':
  3369. // click = '我的设置';
  3370. // break;
  3371. // case 'systemSet':
  3372. // click = '系统设置';
  3373. // break;
  3374. // case 'boomYun':
  3375. // click = '互联办公';
  3376. // break;
  3377. // case 'xz':
  3378. // click = '云端下载';
  3379. // break;
  3380. // case 'client':
  3381. // click = '有思浏览器';
  3382. // break;
  3383. // case 'backEndProgramming':
  3384. // click = '在线后台编程';
  3385. // break;
  3386. // case 'frontEndProgramming':
  3387. // click = '在线前端编程';
  3388. // break;
  3389. // default: break;
  3390. // }
  3391. // if(U.MD.D.I.Ip && click){
  3392. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3393. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3394. // })
  3395. // }
  3396. // }
  3397. /**
  3398. *函数作用:ajax简易函数,使用post格式
  3399. *@param url {data} 后台地址
  3400. *@param data {data} 参数json
  3401. *@param fn {data} 回调函数
  3402. *
  3403. */
  3404. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3405. // var xhr = new XMLHttpRequest();
  3406. // xhr.open("GET",url,true);
  3407. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3408. // xhr.onreadystatechange = function(){
  3409. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3410. // fn.call(this,xhr.responseText);
  3411. // }
  3412. // };
  3413. // xhr.send();
  3414. // }
  3415. /*判断是否是内网IP*/
  3416. // U.MD.D.I.isInnerIPFn = function(str){
  3417. // var curPageUrl = str;
  3418. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3419. // curPageUrl =curPageUrl.replace(reg1,'');
  3420. // // console.log('curPageUrl-1 '+curPageUrl);
  3421. // var reg2 = /\:+/g;//替换冒号为一点
  3422. // curPageUrl =curPageUrl.replace(reg2,'.');
  3423. // // console.log('curPageUrl-2 '+curPageUrl);
  3424. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3425. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3426. // if(curPageUrl[2] != '16'){
  3427. // return ipAddress;
  3428. // }else{
  3429. // return false;
  3430. // }
  3431. // }
  3432. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3433. // //compatibility for firefox and chrome
  3434. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3435. // var pc = new myPeerConnection({
  3436. // iceServers: []
  3437. // }),
  3438. // noop = function() {},
  3439. // localIPs = {},
  3440. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3441. // key;
  3442. // function iterateIP(ip) {
  3443. // if (!localIPs[ip]) onNewIP(ip);
  3444. // localIPs[ip] = true;
  3445. // }
  3446. // //create a bogus data channel
  3447. // pc.createDataChannel("");
  3448. // // create offer and set local description
  3449. // pc.createOffer().then(function(sdp) {
  3450. // sdp.sdp.split('\n').forEach(function(line) {
  3451. // if (line.indexOf('candidate') < 0) return;
  3452. // line.match(ipRegex).forEach(iterateIP);
  3453. // });
  3454. // pc.setLocalDescription(sdp, noop, noop);
  3455. // }).catch(function(reason) {
  3456. // // An error occurred, so handle the failure to connect
  3457. // });
  3458. // //sten for candidate events
  3459. // pc.onicecandidate = function(ice) {
  3460. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3461. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3462. // };
  3463. // }
  3464. // U.MD.D.I.getUserIpBool = function(callback){
  3465. // U.MD.D.I.getUserIP(function(ip){
  3466. // alert("Got IP! :" + ip);
  3467. // });
  3468. //}
  3469. //#endregion
  3470. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3471. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3472. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3473. _userinfo = US.userInfo, //登录用户信息
  3474. _userid = US.userInfo.userid //登录用户id
  3475. let _iframe;
  3476. let _cid = cid,
  3477. _stage = stage,
  3478. _task = task,
  3479. _tool = tool;
  3480. var _jie = $$("div", {
  3481. "style": {
  3482. "position": "absolute",
  3483. "bottom": "50px",
  3484. "right": "50px",
  3485. "zIndex": "9999",
  3486. "backgroundColor": "#2268bc",
  3487. "color": "#fff",
  3488. "padding": "12px 20px",
  3489. "cursor": "pointer",
  3490. "borderRadius": "4px",
  3491. },
  3492. "innerHTML": "提交作业"
  3493. })
  3494. let aTool = ''
  3495. let _loading = document.createElement('div')
  3496. _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;"
  3497. // _loading.id = "";
  3498. let _lchild = document.createElement('div')
  3499. let _limg = document.createElement('img')
  3500. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3501. _limg.style = "width: 26px;margin-right: 10px;"
  3502. _lchild.appendChild(_limg)
  3503. let _lspan = document.createElement('span')
  3504. _lspan.innerHTML = "上传中..."
  3505. _lchild.appendChild(_lspan)
  3506. _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%);"
  3507. _loading.appendChild(_lchild)
  3508. var _box = $$('div', {
  3509. "style": {
  3510. "position": "relative",
  3511. "width": "100%",
  3512. "height": "100%",
  3513. },
  3514. })
  3515. _box.appendChild(_loading)
  3516. _box.id = str + '_loadLi'
  3517. switch (str) {
  3518. case "whiteboard":
  3519. aTool = 1;
  3520. _iframe = $$("iframe", {
  3521. "frameborder": "no",
  3522. "border": "0",
  3523. "scrolling ": "no",
  3524. "style": {
  3525. "cssText": "border:0;width:100%;height:100%"
  3526. },
  3527. "src": "https://iwb.cocorobo.cn/"
  3528. })
  3529. _box.appendChild(_iframe);
  3530. _box.appendChild(_jie);
  3531. _formdiv = new U.UF.UI.form(
  3532. "电子白板",
  3533. _box, {
  3534. "id": "whiteboard" + cid + stage + task + tool,
  3535. "style": {
  3536. "width": "90%",
  3537. "height": "90%",
  3538. "overflow": 'hidden'
  3539. },
  3540. "onresize": function () { }
  3541. }, {
  3542. closecallback: function () { }
  3543. }, {
  3544. "style": {
  3545. "height": "36px"
  3546. }
  3547. }).form; //创建窗体
  3548. _taskbar = {
  3549. "id": str + _formdiv.id,
  3550. "style": {
  3551. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3552. },
  3553. "name": "电子白板",
  3554. "forms": _formdiv,
  3555. "click": function () {
  3556. U.MD.D.I.openApplication(str, obj, info);
  3557. }
  3558. }
  3559. break;
  3560. case "mind":
  3561. aTool = 3;
  3562. _iframe = $$("iframe", {
  3563. "frameborder": "no",
  3564. "border": "0",
  3565. "scrolling ": "no",
  3566. "style": {
  3567. "cssText": "border:0;width:100%;height:100%"
  3568. },
  3569. "src": "/kityminder-editor/dist/index.html"
  3570. })
  3571. _box.appendChild(_iframe);
  3572. _box.appendChild(_jie);
  3573. _formdiv = new U.UF.UI.form(
  3574. "思维导图",
  3575. _box, { //"/jsmind/example/demo.html"
  3576. "id": "mind" + cid + stage + task + tool,
  3577. "style": {
  3578. "width": "90%",
  3579. "height": "90%",
  3580. "overflow": 'hidden'
  3581. },
  3582. "onresize": function () { }
  3583. }, {
  3584. closecallback: function () { }
  3585. }, {
  3586. "style": {
  3587. "height": "36px"
  3588. }
  3589. }).form; //创建窗体
  3590. _taskbar = {
  3591. "id": str + _formdiv.id,
  3592. "style": {
  3593. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3594. },
  3595. "name": "思维导图",
  3596. "forms": _formdiv,
  3597. "click": function () {
  3598. U.MD.D.I.openApplication(str, obj, info);
  3599. }
  3600. }
  3601. break;
  3602. case "MindMap":
  3603. aTool = 3;
  3604. _iframe = $$("iframe", {
  3605. "frameborder": "no",
  3606. "border": "0",
  3607. "scrolling ": "no",
  3608. "style": {
  3609. "cssText": "border:0;width:100%;height:100%"
  3610. },
  3611. "src": "//cloud.cocorobo.cn/mind/"
  3612. })
  3613. _box.appendChild(_iframe);
  3614. _box.appendChild(_jie);
  3615. _formdiv = new U.UF.UI.form(
  3616. "思维导图",
  3617. _box, { //"/jsmind/example/demo.html"
  3618. "id": "mind" + cid + stage + task + tool,
  3619. "style": {
  3620. "width": "90%",
  3621. "height": "90%",
  3622. "overflow": 'hidden'
  3623. },
  3624. "onresize": function () { }
  3625. }, {
  3626. closecallback: function () { }
  3627. }, {
  3628. "style": {
  3629. "height": "36px"
  3630. }
  3631. }).form; //创建窗体
  3632. _taskbar = {
  3633. "id": str + _formdiv.id,
  3634. "style": {
  3635. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3636. },
  3637. "name": "思维导图",
  3638. "forms": _formdiv,
  3639. "click": function () {
  3640. U.MD.D.I.openApplication(str, obj, info);
  3641. }
  3642. }
  3643. break;
  3644. case "doc":
  3645. aTool = 6;
  3646. _iframe = $$("iframe", {
  3647. "frameborder": "no",
  3648. "border": "0",
  3649. "scrolling ": "no",
  3650. "style": {
  3651. "cssText": "border:0;width:100%;height:100%"
  3652. },
  3653. "src": "/Office/Word/WordEditArea.htm"
  3654. })
  3655. _box.appendChild(_iframe);
  3656. _box.appendChild(_jie);
  3657. _formdiv = new U.UF.UI.form(
  3658. "协同文档",
  3659. _box, {
  3660. "id": "doc" + cid + stage + task + tool,
  3661. "style": {
  3662. "width": "90%",
  3663. "height": "90%",
  3664. "overflow": 'hidden'
  3665. },
  3666. "onresize": function () { }
  3667. }, {
  3668. closecallback: function () { }
  3669. }, {
  3670. "style": {
  3671. "height": "36px"
  3672. }
  3673. }).form; //创建窗体
  3674. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3675. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3676. })
  3677. _taskbar = {
  3678. "id": str + _formdiv.id,
  3679. "style": {
  3680. "backgroundImage": "url(/img/icon/doc.png)"
  3681. },
  3682. "name": "协同文档",
  3683. "forms": _formdiv,
  3684. "click": function () {
  3685. U.MD.D.I.openApplication(str, obj, info);
  3686. }
  3687. }
  3688. break;
  3689. case "mindNetwork": //好友打开
  3690. aTool = 7;
  3691. _iframe = $$("iframe", {
  3692. "webkitallowfullscreen": "",
  3693. "mozallowfullscreen": "",
  3694. "allowfullscreen": "",
  3695. "frameborder": "no",
  3696. "border": "0",
  3697. "scrolling ": "no",
  3698. "style": {
  3699. "cssText": "border:0; width:100%; height:100%;"
  3700. },
  3701. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3702. })
  3703. _box.appendChild(_iframe);
  3704. _box.appendChild(_jie);
  3705. _formdiv = new U.UF.UI.form(
  3706. "思维网格",
  3707. _box, {
  3708. "id": "mindNetwork" + cid + stage + task + tool,
  3709. "style": {
  3710. "width": "90%",
  3711. "height": "90%",
  3712. "overflow": 'hidden'
  3713. },
  3714. "onresize": function () { }
  3715. }, {
  3716. closecallback: function () { }
  3717. }, {
  3718. "style": {
  3719. "height": "36px"
  3720. }
  3721. }).form; //创建窗体
  3722. _taskbar = {
  3723. "id": str + _formdiv.id,
  3724. "style": {
  3725. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3726. },
  3727. "name": "思维网格",
  3728. "forms": _formdiv,
  3729. "click": function () {
  3730. U.MD.D.I.openApplication(str, obj, info);
  3731. }
  3732. }
  3733. break;
  3734. case "courseDesign":
  3735. _iframe = $$("iframe", {
  3736. "webkitallowfullscreen": "",
  3737. "mozallowfullscreen": "",
  3738. "allowfullscreen": "",
  3739. "frameborder": "no",
  3740. "border": "0",
  3741. "scrolling ": "no",
  3742. "style": {
  3743. "cssText": "border:0; width:100%; height:100%;"
  3744. },
  3745. "src": "/course-design-vue"
  3746. })
  3747. _box.appendChild(_iframe);
  3748. _box.appendChild(_jie);
  3749. _formdiv = new U.UF.UI.form(
  3750. "项目设计",
  3751. _box, {
  3752. "id": "courseDesign" + cid + stage + task + tool,
  3753. "style": {
  3754. "width": "90%",
  3755. "height": "90%",
  3756. "overflow": 'hidden'
  3757. },
  3758. "onresize": function () { }
  3759. }, {
  3760. closecallback: function () { }
  3761. }, {
  3762. "style": {
  3763. "height": "36px"
  3764. }
  3765. }).form; //创建窗体
  3766. _taskbar = {
  3767. "id": str + _formdiv.id,
  3768. "style": {
  3769. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3770. },
  3771. "name": "项目设计",
  3772. "forms": _formdiv,
  3773. "click": function () {
  3774. U.MD.D.I.openApplication(str, obj, info);
  3775. }
  3776. }
  3777. break;
  3778. }
  3779. const script1 = document.createElement("script");
  3780. script1.type = "text/javascript";
  3781. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3782. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3783. const script2 = document.createElement("script");
  3784. script2.type = "text/javascript";
  3785. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3786. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3787. const script3 = document.createElement("script");
  3788. script3.type = "text/javascript";
  3789. script3.charset = "UTF-8";
  3790. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3791. const script4 = document.createElement("script");
  3792. script4.type = "text/javascript";
  3793. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3794. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3795. if (_iframe) {
  3796. if (str == 'doc') {
  3797. _iframe = _formdiv.querySelector('iframe')
  3798. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3799. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3800. _iframe.contentWindow.document.body.appendChild(script1);
  3801. _iframe.contentWindow.document.body.appendChild(script2);
  3802. // _iframe.contentWindow.document.body.appendChild(script3);
  3803. _iframe.contentWindow.document.body.appendChild(script4);
  3804. })
  3805. if (onloadListener) {
  3806. _iframe.contentDocument.location.reload()
  3807. } else {
  3808. _iframe.contentDocument.location.reload()
  3809. }
  3810. } else if (str == 'courseDesign') {
  3811. U.UF.DL.iframeLoad(_iframe, function () {
  3812. // _iframe.contentWindow.U.MD.O.W.load();
  3813. // _iframe.contentWindow.document.body.appendChild(script1);
  3814. _iframe.contentWindow.document.body.appendChild(script2);
  3815. _iframe.contentWindow.document.body.appendChild(script4);
  3816. })
  3817. } else if (str == 'mind') {
  3818. _iframe = _formdiv.querySelector('iframe')
  3819. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3820. //
  3821. _iframe.contentWindow.document.body.appendChild(script1);
  3822. _iframe.contentWindow.document.body.appendChild(script2);
  3823. _iframe.contentWindow.document.body.appendChild(script4);
  3824. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3825. })
  3826. if (onloadListener) {
  3827. _iframe.contentDocument.location.reload()
  3828. } else {
  3829. _iframe.contentDocument.location.reload()
  3830. }
  3831. } else if (str == 'whiteboard') {
  3832. _iframe = _formdiv.querySelector('iframe')
  3833. let onloadListener = _iframe.onload = () => {
  3834. _iframe.contentWindow.document.body.appendChild(script1);
  3835. _iframe.contentWindow.document.body.appendChild(script2);
  3836. _iframe.contentWindow.document.body.appendChild(script4);
  3837. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3838. };
  3839. if (onloadListener) {
  3840. _iframe.contentDocument.location.reload()
  3841. } else {
  3842. _iframe.contentDocument.location.reload()
  3843. }
  3844. } else {
  3845. _iframe.onload = () => {
  3846. _iframe.contentWindow.document.body.appendChild(script1);
  3847. _iframe.contentWindow.document.body.appendChild(script2);
  3848. // _iframe.contentWindow.document.body.appendChild(script3);
  3849. _iframe.contentWindow.document.body.appendChild(script4);
  3850. };
  3851. }
  3852. _jie.onclick = async () => {
  3853. let text = ''
  3854. if (aTool == 1) {
  3855. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3856. } else if (aTool == 6) {
  3857. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3858. } else if (aTool == 3) {
  3859. text = await U.MD.D.I.getEditorContent(_iframe);
  3860. }
  3861. _loading.style.display = 'flex'
  3862. console.log(_loading);
  3863. var _ajs = _iframe.contentWindow.document.createElement("script");
  3864. _ajs.type = "text/javascript";
  3865. _ajs.innerHTML =
  3866. // 'console.log(' + _loading + ');\n' +
  3867. 'var _js = document.createElement("script");\n' +
  3868. '_js.type="text/javascript";\n' +
  3869. '_js.charset="UTF-8";\n' +
  3870. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3871. "_js.onload = function(){\n" +
  3872. ' var a = document.getElementsByTagName("img")\n' +
  3873. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3874. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3875. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3876. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3877. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3878. "beforeUpload_shishi(file," +
  3879. "'" +
  3880. _userid +
  3881. "'" +
  3882. ", " +
  3883. "'" +
  3884. _cid +
  3885. "'" +
  3886. ", " +
  3887. "'" +
  3888. _stage +
  3889. "'" +
  3890. ", " +
  3891. "'" +
  3892. _task +
  3893. "'" +
  3894. ", " +
  3895. "'" +
  3896. _tool +
  3897. "'" +
  3898. ", " +
  3899. "'" +
  3900. str + '_loadLi' +
  3901. "'" +
  3902. ", " +
  3903. "'" +
  3904. aTool +
  3905. "'" +
  3906. ", " +
  3907. "`" +
  3908. text +
  3909. "`" +
  3910. ")\n" +
  3911. " });\n" +
  3912. "}\n" +
  3913. "document.head.appendChild(_js);\n";
  3914. _iframe.contentWindow.document.head.appendChild(_ajs);
  3915. }
  3916. }
  3917. //U.MD.D.I.openClick(str);
  3918. //如果有任务栏信息
  3919. // if (_taskbar) {
  3920. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3921. // }
  3922. }
  3923. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  3924. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3925. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3926. _userinfo = US.userInfo, //登录用户信息
  3927. _userid = US.userInfo.userid //登录用户id
  3928. let _iframe;
  3929. let _cid = cid,
  3930. _stage = stage,
  3931. _task = task,
  3932. _tool = tool;
  3933. var _jie = $$("div", {
  3934. "style": {
  3935. "position": "absolute",
  3936. "bottom": "50px",
  3937. "right": "50px",
  3938. "zIndex": "9999",
  3939. "backgroundColor": "#2268bc",
  3940. "color": "#fff",
  3941. "padding": "12px 20px",
  3942. "cursor": "pointer",
  3943. "borderRadius": "4px",
  3944. },
  3945. "innerHTML": "提交作业"
  3946. })
  3947. let aTool = ''
  3948. let _loading = document.createElement('div')
  3949. _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;"
  3950. // _loading.id = "";
  3951. let _lchild = document.createElement('div')
  3952. let _limg = document.createElement('img')
  3953. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3954. _limg.style = "width: 26px;margin-right: 10px;"
  3955. _lchild.appendChild(_limg)
  3956. let _lspan = document.createElement('span')
  3957. _lspan.innerHTML = "上传中..."
  3958. _lchild.appendChild(_lspan)
  3959. _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%);"
  3960. _loading.appendChild(_lchild)
  3961. var _box = $$('div', {
  3962. "style": {
  3963. "position": "relative",
  3964. "width": "100%",
  3965. "height": "100%",
  3966. },
  3967. })
  3968. _box.appendChild(_loading)
  3969. _box.id = str + '_loadLi'
  3970. switch (str) {
  3971. case "whiteboard":
  3972. aTool = 1;
  3973. _iframe = $$("iframe", {
  3974. "frameborder": "no",
  3975. "border": "0",
  3976. "scrolling ": "no",
  3977. "style": {
  3978. "cssText": "border:0;width:100%;height:100%"
  3979. },
  3980. "src": "https://iwb.cocorobo.cn/"
  3981. })
  3982. _box.appendChild(_iframe);
  3983. _box.appendChild(_jie);
  3984. _formdiv = new U.UF.UI.form(
  3985. "电子白板",
  3986. _box, {
  3987. "id": "whiteboard" + cid + stage + task + tool,
  3988. "style": {
  3989. "width": "90%",
  3990. "height": "90%",
  3991. "overflow": 'hidden'
  3992. },
  3993. "onresize": function () { }
  3994. }, {
  3995. closecallback: function () { }
  3996. }, {
  3997. "style": {
  3998. "height": "36px"
  3999. }
  4000. }).form; //创建窗体
  4001. _taskbar = {
  4002. "id": str + _formdiv.id,
  4003. "style": {
  4004. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4005. },
  4006. "name": "电子白板",
  4007. "forms": _formdiv,
  4008. "click": function () {
  4009. U.MD.D.I.openApplication(str, obj, info);
  4010. }
  4011. }
  4012. break;
  4013. case "mind":
  4014. aTool = 3;
  4015. _iframe = $$("iframe", {
  4016. "frameborder": "no",
  4017. "border": "0",
  4018. "scrolling ": "no",
  4019. "style": {
  4020. "cssText": "border:0;width:100%;height:100%"
  4021. },
  4022. "src": "/kityminder-editor/dist/index.html"
  4023. })
  4024. _box.appendChild(_iframe);
  4025. _box.appendChild(_jie);
  4026. _formdiv = new U.UF.UI.form(
  4027. "思维导图",
  4028. _box, { //"/jsmind/example/demo.html"
  4029. "id": "mind" + cid + stage + task + tool,
  4030. "style": {
  4031. "width": "90%",
  4032. "height": "90%",
  4033. "overflow": 'hidden'
  4034. },
  4035. "onresize": function () { }
  4036. }, {
  4037. closecallback: function () { }
  4038. }, {
  4039. "style": {
  4040. "height": "36px"
  4041. }
  4042. }).form; //创建窗体
  4043. _taskbar = {
  4044. "id": str + _formdiv.id,
  4045. "style": {
  4046. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4047. },
  4048. "name": "思维导图",
  4049. "forms": _formdiv,
  4050. "click": function () {
  4051. U.MD.D.I.openApplication(str, obj, info);
  4052. }
  4053. }
  4054. break;
  4055. case "MindMap":
  4056. aTool = 3;
  4057. _iframe = $$("iframe", {
  4058. "frameborder": "no",
  4059. "border": "0",
  4060. "scrolling ": "no",
  4061. "style": {
  4062. "cssText": "border:0;width:100%;height:100%"
  4063. },
  4064. "src": "//cloud.cocorobo.cn/mind/"
  4065. })
  4066. _box.appendChild(_iframe);
  4067. _box.appendChild(_jie);
  4068. _formdiv = new U.UF.UI.form(
  4069. "思维导图",
  4070. _box, { //"/jsmind/example/demo.html"
  4071. "id": "mind" + cid + stage + task + tool,
  4072. "style": {
  4073. "width": "90%",
  4074. "height": "90%",
  4075. "overflow": 'hidden'
  4076. },
  4077. "onresize": function () { }
  4078. }, {
  4079. closecallback: function () { }
  4080. }, {
  4081. "style": {
  4082. "height": "36px"
  4083. }
  4084. }).form; //创建窗体
  4085. _taskbar = {
  4086. "id": str + _formdiv.id,
  4087. "style": {
  4088. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4089. },
  4090. "name": "思维导图",
  4091. "forms": _formdiv,
  4092. "click": function () {
  4093. U.MD.D.I.openApplication(str, obj, info);
  4094. }
  4095. }
  4096. break;
  4097. case "doc":
  4098. aTool = 6;
  4099. _iframe = $$("iframe", {
  4100. "frameborder": "no",
  4101. "border": "0",
  4102. "scrolling ": "no",
  4103. "style": {
  4104. "cssText": "border:0;width:100%;height:100%"
  4105. },
  4106. "src": "/Office/Word/WordEditArea.htm"
  4107. })
  4108. _box.appendChild(_iframe);
  4109. _box.appendChild(_jie);
  4110. _formdiv = new U.UF.UI.form(
  4111. "协同文档",
  4112. _box, {
  4113. "id": "doc" + cid + stage + task + tool,
  4114. "style": {
  4115. "width": "90%",
  4116. "height": "90%",
  4117. "overflow": 'hidden'
  4118. },
  4119. "onresize": function () { }
  4120. }, {
  4121. closecallback: function () { }
  4122. }, {
  4123. "style": {
  4124. "height": "36px"
  4125. }
  4126. }).form; //创建窗体
  4127. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4128. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4129. })
  4130. _taskbar = {
  4131. "id": str + _formdiv.id,
  4132. "style": {
  4133. "backgroundImage": "url(/img/icon/doc.png)"
  4134. },
  4135. "name": "协同文档",
  4136. "forms": _formdiv,
  4137. "click": function () {
  4138. U.MD.D.I.openApplication(str, obj, info);
  4139. }
  4140. }
  4141. break;
  4142. case "mindNetwork": //好友打开
  4143. aTool = 7;
  4144. _iframe = $$("iframe", {
  4145. "webkitallowfullscreen": "",
  4146. "mozallowfullscreen": "",
  4147. "allowfullscreen": "",
  4148. "frameborder": "no",
  4149. "border": "0",
  4150. "scrolling ": "no",
  4151. "style": {
  4152. "cssText": "border:0; width:100%; height:100%;"
  4153. },
  4154. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4155. })
  4156. _box.appendChild(_iframe);
  4157. _box.appendChild(_jie);
  4158. _formdiv = new U.UF.UI.form(
  4159. "思维网格",
  4160. _box, {
  4161. "id": "mindNetwork" + cid + stage + task + tool,
  4162. "style": {
  4163. "width": "90%",
  4164. "height": "90%",
  4165. "overflow": 'hidden'
  4166. },
  4167. "onresize": function () { }
  4168. }, {
  4169. closecallback: function () { }
  4170. }, {
  4171. "style": {
  4172. "height": "36px"
  4173. }
  4174. }).form; //创建窗体
  4175. _taskbar = {
  4176. "id": str + _formdiv.id,
  4177. "style": {
  4178. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4179. },
  4180. "name": "思维网格",
  4181. "forms": _formdiv,
  4182. "click": function () {
  4183. U.MD.D.I.openApplication(str, obj, info);
  4184. }
  4185. }
  4186. break;
  4187. case "courseDesign":
  4188. _iframe = $$("iframe", {
  4189. "webkitallowfullscreen": "",
  4190. "mozallowfullscreen": "",
  4191. "allowfullscreen": "",
  4192. "frameborder": "no",
  4193. "border": "0",
  4194. "scrolling ": "no",
  4195. "style": {
  4196. "cssText": "border:0; width:100%; height:100%;"
  4197. },
  4198. "src": "/course-design-vue"
  4199. })
  4200. _box.appendChild(_iframe);
  4201. _box.appendChild(_jie);
  4202. _formdiv = new U.UF.UI.form(
  4203. "项目设计",
  4204. _box, {
  4205. "id": "courseDesign" + cid + stage + task + tool,
  4206. "style": {
  4207. "width": "90%",
  4208. "height": "90%",
  4209. "overflow": 'hidden'
  4210. },
  4211. "onresize": function () { }
  4212. }, {
  4213. closecallback: function () { }
  4214. }, {
  4215. "style": {
  4216. "height": "36px"
  4217. }
  4218. }).form; //创建窗体
  4219. _taskbar = {
  4220. "id": str + _formdiv.id,
  4221. "style": {
  4222. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4223. },
  4224. "name": "项目设计",
  4225. "forms": _formdiv,
  4226. "click": function () {
  4227. U.MD.D.I.openApplication(str, obj, info);
  4228. }
  4229. }
  4230. break;
  4231. }
  4232. const script1 = document.createElement("script");
  4233. script1.type = "text/javascript";
  4234. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4235. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4236. const script2 = document.createElement("script");
  4237. script2.type = "text/javascript";
  4238. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4239. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4240. const script3 = document.createElement("script");
  4241. script3.type = "text/javascript";
  4242. script3.charset = "UTF-8";
  4243. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4244. const script4 = document.createElement("script");
  4245. script4.type = "text/javascript";
  4246. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4247. script4.src = window.origin + "/js/Common/jietu2E.js";
  4248. if (_iframe) {
  4249. if (str == 'doc') {
  4250. _iframe = _formdiv.querySelector('iframe')
  4251. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4252. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4253. _iframe.contentWindow.document.body.appendChild(script1);
  4254. _iframe.contentWindow.document.body.appendChild(script2);
  4255. // _iframe.contentWindow.document.body.appendChild(script3);
  4256. _iframe.contentWindow.document.body.appendChild(script4);
  4257. })
  4258. if (onloadListener) {
  4259. _iframe.contentDocument.location.reload()
  4260. } else {
  4261. _iframe.contentDocument.location.reload()
  4262. }
  4263. } else if (str == 'courseDesign') {
  4264. U.UF.DL.iframeLoad(_iframe, function () {
  4265. // _iframe.contentWindow.U.MD.O.W.load();
  4266. // _iframe.contentWindow.document.body.appendChild(script1);
  4267. _iframe.contentWindow.document.body.appendChild(script2);
  4268. _iframe.contentWindow.document.body.appendChild(script4);
  4269. })
  4270. } else if (str == 'mind') {
  4271. _iframe = _formdiv.querySelector('iframe')
  4272. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4273. //
  4274. _iframe.contentWindow.document.body.appendChild(script1);
  4275. _iframe.contentWindow.document.body.appendChild(script2);
  4276. _iframe.contentWindow.document.body.appendChild(script4);
  4277. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4278. })
  4279. if (onloadListener) {
  4280. _iframe.contentDocument.location.reload()
  4281. } else {
  4282. _iframe.contentDocument.location.reload()
  4283. }
  4284. } else if (str == 'whiteboard') {
  4285. _iframe = _formdiv.querySelector('iframe')
  4286. let onloadListener = _iframe.onload = () => {
  4287. _iframe.contentWindow.document.body.appendChild(script1);
  4288. _iframe.contentWindow.document.body.appendChild(script2);
  4289. _iframe.contentWindow.document.body.appendChild(script4);
  4290. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4291. };
  4292. if (onloadListener) {
  4293. _iframe.contentDocument.location.reload()
  4294. } else {
  4295. _iframe.contentDocument.location.reload()
  4296. }
  4297. } else {
  4298. _iframe.onload = () => {
  4299. _iframe.contentWindow.document.body.appendChild(script1);
  4300. _iframe.contentWindow.document.body.appendChild(script2);
  4301. // _iframe.contentWindow.document.body.appendChild(script3);
  4302. _iframe.contentWindow.document.body.appendChild(script4);
  4303. };
  4304. }
  4305. _jie.onclick = async () => {
  4306. let text = ''
  4307. if (aTool == 1) {
  4308. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4309. } else if (aTool == 6) {
  4310. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4311. } else if (aTool == 3) {
  4312. text = await U.MD.D.I.getEditorContent(_iframe);
  4313. }
  4314. _loading.style.display = 'flex'
  4315. console.log(_loading);
  4316. var _ajs = _iframe.contentWindow.document.createElement("script");
  4317. _ajs.type = "text/javascript";
  4318. _ajs.innerHTML =
  4319. // 'console.log(' + _loading + ');\n' +
  4320. 'var _js = document.createElement("script");\n' +
  4321. '_js.type="text/javascript";\n' +
  4322. '_js.charset="UTF-8";\n' +
  4323. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4324. "_js.onload = function(){\n" +
  4325. ' var a = document.getElementsByTagName("img")\n' +
  4326. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4327. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4328. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4329. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4330. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4331. "beforeUpload_shishi(file," +
  4332. "'" +
  4333. _userid +
  4334. "'" +
  4335. ", " +
  4336. "'" +
  4337. _cid +
  4338. "'" +
  4339. ", " +
  4340. "'" +
  4341. _stage +
  4342. "'" +
  4343. ", " +
  4344. "'" +
  4345. _task +
  4346. "'" +
  4347. ", " +
  4348. "'" +
  4349. _tool +
  4350. "'" +
  4351. ", " +
  4352. "'" +
  4353. str + '_loadLi' +
  4354. "'" +
  4355. ", " +
  4356. "'" +
  4357. aTool +
  4358. "'" +
  4359. ", " +
  4360. "`" +
  4361. text +
  4362. "`" +
  4363. ")\n" +
  4364. " });\n" +
  4365. "}\n" +
  4366. "document.head.appendChild(_js);\n";
  4367. _iframe.contentWindow.document.head.appendChild(_ajs);
  4368. }
  4369. }
  4370. //U.MD.D.I.openClick(str);
  4371. //如果有任务栏信息
  4372. // if (_taskbar) {
  4373. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4374. // }
  4375. }
  4376. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4377. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4378. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4379. _userid = student.userid, //登录用户id
  4380. _username = student.student //用户名字
  4381. let _iframe;
  4382. let _cid = cid,
  4383. _stage = stage,
  4384. _task = task,
  4385. _tool = tool;
  4386. var _jie = $$("div", {
  4387. "style": {
  4388. "position": "absolute",
  4389. "bottom": "50px",
  4390. "right": "50px",
  4391. "zIndex": "9999",
  4392. "backgroundColor": "#2268bc",
  4393. "color": "#fff",
  4394. "padding": "12px 20px",
  4395. "cursor": "pointer",
  4396. "borderRadius": "4px",
  4397. },
  4398. "innerHTML": "提交作业"
  4399. })
  4400. let aTool = ''
  4401. let _loading = document.createElement('div')
  4402. _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;"
  4403. // _loading.id = "";
  4404. let _lchild = document.createElement('div')
  4405. let _limg = document.createElement('img')
  4406. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4407. _limg.style = "width: 26px;margin-right: 10px;"
  4408. _lchild.appendChild(_limg)
  4409. let _lspan = document.createElement('span')
  4410. _lspan.innerHTML = "上传中..."
  4411. _lchild.appendChild(_lspan)
  4412. _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%);"
  4413. _loading.appendChild(_lchild)
  4414. var _box = $$('div', {
  4415. "style": {
  4416. "position": "relative",
  4417. "width": "100%",
  4418. "height": "100%",
  4419. },
  4420. })
  4421. _box.appendChild(_loading)
  4422. _box.id = str + '_loadLi' + _userid
  4423. switch (str) {
  4424. case "whiteboard":
  4425. aTool = 1;
  4426. _iframe = $$("iframe", {
  4427. "frameborder": "no",
  4428. "border": "0",
  4429. "scrolling ": "no",
  4430. "style": {
  4431. "cssText": "border:0;width:100%;height:100%"
  4432. },
  4433. "src": "https://iwb.cocorobo.cn/"
  4434. })
  4435. _box.appendChild(_iframe);
  4436. _box.appendChild(_jie);
  4437. _formdiv = new U.UF.UI.form(
  4438. "电子白板-" + _username,
  4439. _box, {
  4440. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4441. "style": {
  4442. "width": "90%",
  4443. "height": "90%",
  4444. "overflow": 'hidden'
  4445. },
  4446. "onresize": function () { }
  4447. }, {
  4448. closecallback: function () { }
  4449. }, {
  4450. "style": {
  4451. "height": "36px"
  4452. }
  4453. }).form; //创建窗体
  4454. _taskbar = {
  4455. "id": str + _formdiv.id,
  4456. "style": {
  4457. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4458. },
  4459. "name": "电子白板",
  4460. "forms": _formdiv,
  4461. "click": function () {
  4462. U.MD.D.I.openApplication(str, obj, info);
  4463. }
  4464. }
  4465. break;
  4466. case "mind":
  4467. aTool = 3;
  4468. _iframe = $$("iframe", {
  4469. "frameborder": "no",
  4470. "border": "0",
  4471. "scrolling ": "no",
  4472. "style": {
  4473. "cssText": "border:0;width:100%;height:100%"
  4474. },
  4475. "src": "/kityminder-editor/dist/index.html"
  4476. })
  4477. _box.appendChild(_iframe);
  4478. _box.appendChild(_jie);
  4479. _formdiv = new U.UF.UI.form(
  4480. "思维导图-" + _username,
  4481. _box, { //"/jsmind/example/demo.html"
  4482. "id": "mind" + cid + stage + task + tool + _userid,
  4483. "style": {
  4484. "width": "90%",
  4485. "height": "90%",
  4486. "overflow": 'hidden'
  4487. },
  4488. "onresize": function () { }
  4489. }, {
  4490. closecallback: function () { }
  4491. }, {
  4492. "style": {
  4493. "height": "36px"
  4494. }
  4495. }).form; //创建窗体
  4496. _taskbar = {
  4497. "id": str + _formdiv.id,
  4498. "style": {
  4499. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4500. },
  4501. "name": "思维导图",
  4502. "forms": _formdiv,
  4503. "click": function () {
  4504. U.MD.D.I.openApplication(str, obj, info);
  4505. }
  4506. }
  4507. break;
  4508. case "MindMap":
  4509. aTool = 3;
  4510. _iframe = $$("iframe", {
  4511. "frameborder": "no",
  4512. "border": "0",
  4513. "scrolling ": "no",
  4514. "style": {
  4515. "cssText": "border:0;width:100%;height:100%"
  4516. },
  4517. "src": "//cloud.cocorobo.cn/mind/"
  4518. })
  4519. _box.appendChild(_iframe);
  4520. _box.appendChild(_jie);
  4521. _formdiv = new U.UF.UI.form(
  4522. "思维导图-" + _username,
  4523. _box, { //"/jsmind/example/demo.html"
  4524. "id": "mind" + cid + stage + task + tool + _userid,
  4525. "style": {
  4526. "width": "90%",
  4527. "height": "90%",
  4528. "overflow": 'hidden'
  4529. },
  4530. "onresize": function () { }
  4531. }, {
  4532. closecallback: function () { }
  4533. }, {
  4534. "style": {
  4535. "height": "36px"
  4536. }
  4537. }).form; //创建窗体
  4538. _taskbar = {
  4539. "id": str + _formdiv.id,
  4540. "style": {
  4541. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4542. },
  4543. "name": "思维导图",
  4544. "forms": _formdiv,
  4545. "click": function () {
  4546. U.MD.D.I.openApplication(str, obj, info);
  4547. }
  4548. }
  4549. break;
  4550. case "doc":
  4551. aTool = 6;
  4552. _iframe = $$("iframe", {
  4553. "frameborder": "no",
  4554. "border": "0",
  4555. "scrolling ": "no",
  4556. "style": {
  4557. "cssText": "border:0;width:100%;height:100%"
  4558. },
  4559. "src": "/Office/Word/WordEditArea.htm"
  4560. })
  4561. _box.appendChild(_iframe);
  4562. _box.appendChild(_jie);
  4563. _formdiv = new U.UF.UI.form(
  4564. "协同文档-" + _username,
  4565. _box, {
  4566. "id": "doc" + cid + stage + task + tool + _userid,
  4567. "style": {
  4568. "width": "90%",
  4569. "height": "90%",
  4570. "overflow": 'hidden'
  4571. },
  4572. "onresize": function () { }
  4573. }, {
  4574. closecallback: function () { }
  4575. }, {
  4576. "style": {
  4577. "height": "36px"
  4578. }
  4579. }).form; //创建窗体
  4580. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4581. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4582. })
  4583. _taskbar = {
  4584. "id": str + _formdiv.id,
  4585. "style": {
  4586. "backgroundImage": "url(/img/icon/doc.png)"
  4587. },
  4588. "name": "协同文档",
  4589. "forms": _formdiv,
  4590. "click": function () {
  4591. U.MD.D.I.openApplication(str, obj, info);
  4592. }
  4593. }
  4594. break;
  4595. case "mindNetwork": //好友打开
  4596. aTool = 7;
  4597. _iframe = $$("iframe", {
  4598. "webkitallowfullscreen": "",
  4599. "mozallowfullscreen": "",
  4600. "allowfullscreen": "",
  4601. "frameborder": "no",
  4602. "border": "0",
  4603. "scrolling ": "no",
  4604. "style": {
  4605. "cssText": "border:0; width:100%; height:100%;"
  4606. },
  4607. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4608. })
  4609. _box.appendChild(_iframe);
  4610. _box.appendChild(_jie);
  4611. _formdiv = new U.UF.UI.form(
  4612. "思维网格-" + _username,
  4613. _box, {
  4614. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4615. "style": {
  4616. "width": "90%",
  4617. "height": "90%",
  4618. "overflow": 'hidden'
  4619. },
  4620. "onresize": function () { }
  4621. }, {
  4622. closecallback: function () { }
  4623. }, {
  4624. "style": {
  4625. "height": "36px"
  4626. }
  4627. }).form; //创建窗体
  4628. _taskbar = {
  4629. "id": str + _formdiv.id,
  4630. "style": {
  4631. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4632. },
  4633. "name": "思维网格",
  4634. "forms": _formdiv,
  4635. "click": function () {
  4636. U.MD.D.I.openApplication(str, obj, info);
  4637. }
  4638. }
  4639. break;
  4640. case "courseDesign":
  4641. _iframe = $$("iframe", {
  4642. "webkitallowfullscreen": "",
  4643. "mozallowfullscreen": "",
  4644. "allowfullscreen": "",
  4645. "frameborder": "no",
  4646. "border": "0",
  4647. "scrolling ": "no",
  4648. "style": {
  4649. "cssText": "border:0; width:100%; height:100%;"
  4650. },
  4651. "src": "/course-design-vue"
  4652. })
  4653. _box.appendChild(_iframe);
  4654. _box.appendChild(_jie);
  4655. _formdiv = new U.UF.UI.form(
  4656. "项目设计-" + _username,
  4657. _box, {
  4658. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4659. "style": {
  4660. "width": "90%",
  4661. "height": "90%",
  4662. "overflow": 'hidden'
  4663. },
  4664. "onresize": function () { }
  4665. }, {
  4666. closecallback: function () { }
  4667. }, {
  4668. "style": {
  4669. "height": "36px"
  4670. }
  4671. }).form; //创建窗体
  4672. _taskbar = {
  4673. "id": str + _formdiv.id,
  4674. "style": {
  4675. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4676. },
  4677. "name": "项目设计",
  4678. "forms": _formdiv,
  4679. "click": function () {
  4680. U.MD.D.I.openApplication(str, obj, info);
  4681. }
  4682. }
  4683. break;
  4684. }
  4685. const script1 = document.createElement("script");
  4686. script1.type = "text/javascript";
  4687. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4688. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4689. const script2 = document.createElement("script");
  4690. script2.type = "text/javascript";
  4691. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4692. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4693. const script3 = document.createElement("script");
  4694. script3.type = "text/javascript";
  4695. script3.charset = "UTF-8";
  4696. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4697. const script4 = document.createElement("script");
  4698. script4.type = "text/javascript";
  4699. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4700. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4701. if (_iframe) {
  4702. if (str == 'doc') {
  4703. _iframe = _formdiv.querySelector('iframe')
  4704. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4705. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4706. _iframe.contentWindow.document.body.appendChild(script1);
  4707. _iframe.contentWindow.document.body.appendChild(script2);
  4708. // _iframe.contentWindow.document.body.appendChild(script3);
  4709. _iframe.contentWindow.document.body.appendChild(script4);
  4710. })
  4711. if (onloadListener) {
  4712. _iframe.contentDocument.location.reload()
  4713. } else {
  4714. _iframe.contentDocument.location.reload()
  4715. }
  4716. } else if (str == 'courseDesign') {
  4717. U.UF.DL.iframeLoad(_iframe, function () {
  4718. // _iframe.contentWindow.U.MD.O.W.load();
  4719. // _iframe.contentWindow.document.body.appendChild(script1);
  4720. _iframe.contentWindow.document.body.appendChild(script2);
  4721. _iframe.contentWindow.document.body.appendChild(script4);
  4722. })
  4723. } else if (str == 'mind') {
  4724. _iframe = _formdiv.querySelector('iframe')
  4725. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4726. //
  4727. _iframe.contentWindow.document.body.appendChild(script1);
  4728. _iframe.contentWindow.document.body.appendChild(script2);
  4729. _iframe.contentWindow.document.body.appendChild(script4);
  4730. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4731. })
  4732. if (onloadListener) {
  4733. _iframe.contentDocument.location.reload()
  4734. } else {
  4735. _iframe.contentDocument.location.reload()
  4736. }
  4737. } else if (str == 'whiteboard') {
  4738. _iframe = _formdiv.querySelector('iframe')
  4739. let onloadListener = _iframe.onload = () => {
  4740. _iframe.contentWindow.document.body.appendChild(script1);
  4741. _iframe.contentWindow.document.body.appendChild(script2);
  4742. _iframe.contentWindow.document.body.appendChild(script4);
  4743. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4744. };
  4745. if (onloadListener) {
  4746. _iframe.contentDocument.location.reload()
  4747. } else {
  4748. _iframe.contentDocument.location.reload()
  4749. }
  4750. } else {
  4751. _iframe.onload = () => {
  4752. _iframe.contentWindow.document.body.appendChild(script1);
  4753. _iframe.contentWindow.document.body.appendChild(script2);
  4754. // _iframe.contentWindow.document.body.appendChild(script3);
  4755. _iframe.contentWindow.document.body.appendChild(script4);
  4756. };
  4757. }
  4758. _jie.onclick = async () => {
  4759. let text = ''
  4760. if (aTool == 1) {
  4761. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4762. } else if (aTool == 6) {
  4763. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4764. } else if (aTool == 3) {
  4765. text = await U.MD.D.I.getEditorContent(_iframe);
  4766. }
  4767. _loading.style.display = 'flex'
  4768. console.log(_loading);
  4769. var _ajs = _iframe.contentWindow.document.createElement("script");
  4770. _ajs.type = "text/javascript";
  4771. _ajs.innerHTML =
  4772. // 'console.log(' + _loading + ');\n' +
  4773. 'var _js = document.createElement("script");\n' +
  4774. '_js.type="text/javascript";\n' +
  4775. '_js.charset="UTF-8";\n' +
  4776. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4777. "_js.onload = function(){\n" +
  4778. ' var a = document.getElementsByTagName("img")\n' +
  4779. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4780. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4781. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4782. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4783. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4784. "beforeUpload_shishi(file," +
  4785. "'" +
  4786. _userid +
  4787. "'" +
  4788. ", " +
  4789. "'" +
  4790. _cid +
  4791. "'" +
  4792. ", " +
  4793. "'" +
  4794. _stage +
  4795. "'" +
  4796. ", " +
  4797. "'" +
  4798. _task +
  4799. "'" +
  4800. ", " +
  4801. "'" +
  4802. _tool +
  4803. "'" +
  4804. ", " +
  4805. "'" +
  4806. str + '_loadLi' + _userid +
  4807. "'" +
  4808. ", " +
  4809. "'" +
  4810. aTool +
  4811. "'" +
  4812. ", " +
  4813. "`" +
  4814. text +
  4815. "`" +
  4816. ")\n" +
  4817. " });\n" +
  4818. "}\n" +
  4819. "document.head.appendChild(_js);\n";
  4820. _iframe.contentWindow.document.head.appendChild(_ajs);
  4821. }
  4822. }
  4823. }
  4824. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  4825. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4826. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4827. _userid = student.userid, //登录用户id
  4828. _username = student.student //用户名字
  4829. let _iframe;
  4830. let _cid = cid,
  4831. _stage = stage,
  4832. _task = task,
  4833. _tool = tool;
  4834. var _jie = $$("div", {
  4835. "style": {
  4836. "position": "absolute",
  4837. "bottom": "50px",
  4838. "right": "50px",
  4839. "zIndex": "9999",
  4840. "backgroundColor": "#2268bc",
  4841. "color": "#fff",
  4842. "padding": "12px 20px",
  4843. "cursor": "pointer",
  4844. "borderRadius": "4px",
  4845. },
  4846. "innerHTML": "提交作业"
  4847. })
  4848. let aTool = ''
  4849. let _loading = document.createElement('div')
  4850. _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;"
  4851. // _loading.id = "";
  4852. let _lchild = document.createElement('div')
  4853. let _limg = document.createElement('img')
  4854. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4855. _limg.style = "width: 26px;margin-right: 10px;"
  4856. _lchild.appendChild(_limg)
  4857. let _lspan = document.createElement('span')
  4858. _lspan.innerHTML = "上传中..."
  4859. _lchild.appendChild(_lspan)
  4860. _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%);"
  4861. _loading.appendChild(_lchild)
  4862. var _box = $$('div', {
  4863. "style": {
  4864. "position": "relative",
  4865. "width": "100%",
  4866. "height": "100%",
  4867. },
  4868. })
  4869. _box.appendChild(_loading)
  4870. _box.id = str + '_loadLi' + _userid
  4871. switch (str) {
  4872. case "whiteboard":
  4873. aTool = 1;
  4874. _iframe = $$("iframe", {
  4875. "frameborder": "no",
  4876. "border": "0",
  4877. "scrolling ": "no",
  4878. "style": {
  4879. "cssText": "border:0;width:100%;height:100%"
  4880. },
  4881. "src": "https://iwb.cocorobo.cn/"
  4882. })
  4883. _box.appendChild(_iframe);
  4884. _box.appendChild(_jie);
  4885. _formdiv = new U.UF.UI.form(
  4886. "电子白板-" + _username,
  4887. _box, {
  4888. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4889. "style": {
  4890. "width": "90%",
  4891. "height": "90%",
  4892. "overflow": 'hidden'
  4893. },
  4894. "onresize": function () { }
  4895. }, {
  4896. closecallback: function () { }
  4897. }, {
  4898. "style": {
  4899. "height": "36px"
  4900. }
  4901. }).form; //创建窗体
  4902. _taskbar = {
  4903. "id": str + _formdiv.id,
  4904. "style": {
  4905. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4906. },
  4907. "name": "电子白板",
  4908. "forms": _formdiv,
  4909. "click": function () {
  4910. U.MD.D.I.openApplication(str, obj, info);
  4911. }
  4912. }
  4913. break;
  4914. case "mind":
  4915. aTool = 3;
  4916. _iframe = $$("iframe", {
  4917. "frameborder": "no",
  4918. "border": "0",
  4919. "scrolling ": "no",
  4920. "style": {
  4921. "cssText": "border:0;width:100%;height:100%"
  4922. },
  4923. "src": "/kityminder-editor/dist/index.html"
  4924. })
  4925. _box.appendChild(_iframe);
  4926. _box.appendChild(_jie);
  4927. _formdiv = new U.UF.UI.form(
  4928. "思维导图-" + _username,
  4929. _box, { //"/jsmind/example/demo.html"
  4930. "id": "mind" + cid + stage + task + tool + _userid,
  4931. "style": {
  4932. "width": "90%",
  4933. "height": "90%",
  4934. "overflow": 'hidden'
  4935. },
  4936. "onresize": function () { }
  4937. }, {
  4938. closecallback: function () { }
  4939. }, {
  4940. "style": {
  4941. "height": "36px"
  4942. }
  4943. }).form; //创建窗体
  4944. _taskbar = {
  4945. "id": str + _formdiv.id,
  4946. "style": {
  4947. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4948. },
  4949. "name": "思维导图",
  4950. "forms": _formdiv,
  4951. "click": function () {
  4952. U.MD.D.I.openApplication(str, obj, info);
  4953. }
  4954. }
  4955. break;
  4956. case "MindMap":
  4957. aTool = 3;
  4958. _iframe = $$("iframe", {
  4959. "frameborder": "no",
  4960. "border": "0",
  4961. "scrolling ": "no",
  4962. "style": {
  4963. "cssText": "border:0;width:100%;height:100%"
  4964. },
  4965. "src": "//cloud.cocorobo.cn/mind/"
  4966. })
  4967. _box.appendChild(_iframe);
  4968. _box.appendChild(_jie);
  4969. _formdiv = new U.UF.UI.form(
  4970. "思维导图-" + _username,
  4971. _box, { //"/jsmind/example/demo.html"
  4972. "id": "mind" + cid + stage + task + tool + _userid,
  4973. "style": {
  4974. "width": "90%",
  4975. "height": "90%",
  4976. "overflow": 'hidden'
  4977. },
  4978. "onresize": function () { }
  4979. }, {
  4980. closecallback: function () { }
  4981. }, {
  4982. "style": {
  4983. "height": "36px"
  4984. }
  4985. }).form; //创建窗体
  4986. _taskbar = {
  4987. "id": str + _formdiv.id,
  4988. "style": {
  4989. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4990. },
  4991. "name": "思维导图",
  4992. "forms": _formdiv,
  4993. "click": function () {
  4994. U.MD.D.I.openApplication(str, obj, info);
  4995. }
  4996. }
  4997. break;
  4998. case "doc":
  4999. aTool = 6;
  5000. _iframe = $$("iframe", {
  5001. "frameborder": "no",
  5002. "border": "0",
  5003. "scrolling ": "no",
  5004. "style": {
  5005. "cssText": "border:0;width:100%;height:100%"
  5006. },
  5007. "src": "/Office/Word/WordEditArea.htm"
  5008. })
  5009. _box.appendChild(_iframe);
  5010. _box.appendChild(_jie);
  5011. _formdiv = new U.UF.UI.form(
  5012. "协同文档-" + _username,
  5013. _box, {
  5014. "id": "doc" + cid + stage + task + tool + _userid,
  5015. "style": {
  5016. "width": "90%",
  5017. "height": "90%",
  5018. "overflow": 'hidden'
  5019. },
  5020. "onresize": function () { }
  5021. }, {
  5022. closecallback: function () { }
  5023. }, {
  5024. "style": {
  5025. "height": "36px"
  5026. }
  5027. }).form; //创建窗体
  5028. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5029. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5030. })
  5031. _taskbar = {
  5032. "id": str + _formdiv.id,
  5033. "style": {
  5034. "backgroundImage": "url(/img/icon/doc.png)"
  5035. },
  5036. "name": "协同文档",
  5037. "forms": _formdiv,
  5038. "click": function () {
  5039. U.MD.D.I.openApplication(str, obj, info);
  5040. }
  5041. }
  5042. break;
  5043. case "mindNetwork": //好友打开
  5044. aTool = 7;
  5045. _iframe = $$("iframe", {
  5046. "webkitallowfullscreen": "",
  5047. "mozallowfullscreen": "",
  5048. "allowfullscreen": "",
  5049. "frameborder": "no",
  5050. "border": "0",
  5051. "scrolling ": "no",
  5052. "style": {
  5053. "cssText": "border:0; width:100%; height:100%;"
  5054. },
  5055. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5056. })
  5057. _box.appendChild(_iframe);
  5058. _box.appendChild(_jie);
  5059. _formdiv = new U.UF.UI.form(
  5060. "思维网格-" + _username,
  5061. _box, {
  5062. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5063. "style": {
  5064. "width": "90%",
  5065. "height": "90%",
  5066. "overflow": 'hidden'
  5067. },
  5068. "onresize": function () { }
  5069. }, {
  5070. closecallback: function () { }
  5071. }, {
  5072. "style": {
  5073. "height": "36px"
  5074. }
  5075. }).form; //创建窗体
  5076. _taskbar = {
  5077. "id": str + _formdiv.id,
  5078. "style": {
  5079. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5080. },
  5081. "name": "思维网格",
  5082. "forms": _formdiv,
  5083. "click": function () {
  5084. U.MD.D.I.openApplication(str, obj, info);
  5085. }
  5086. }
  5087. break;
  5088. case "courseDesign":
  5089. _iframe = $$("iframe", {
  5090. "webkitallowfullscreen": "",
  5091. "mozallowfullscreen": "",
  5092. "allowfullscreen": "",
  5093. "frameborder": "no",
  5094. "border": "0",
  5095. "scrolling ": "no",
  5096. "style": {
  5097. "cssText": "border:0; width:100%; height:100%;"
  5098. },
  5099. "src": "/course-design-vue"
  5100. })
  5101. _box.appendChild(_iframe);
  5102. _box.appendChild(_jie);
  5103. _formdiv = new U.UF.UI.form(
  5104. "项目设计-" + _username,
  5105. _box, {
  5106. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5107. "style": {
  5108. "width": "90%",
  5109. "height": "90%",
  5110. "overflow": 'hidden'
  5111. },
  5112. "onresize": function () { }
  5113. }, {
  5114. closecallback: function () { }
  5115. }, {
  5116. "style": {
  5117. "height": "36px"
  5118. }
  5119. }).form; //创建窗体
  5120. _taskbar = {
  5121. "id": str + _formdiv.id,
  5122. "style": {
  5123. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5124. },
  5125. "name": "项目设计",
  5126. "forms": _formdiv,
  5127. "click": function () {
  5128. U.MD.D.I.openApplication(str, obj, info);
  5129. }
  5130. }
  5131. break;
  5132. }
  5133. const script1 = document.createElement("script");
  5134. script1.type = "text/javascript";
  5135. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5136. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5137. const script2 = document.createElement("script");
  5138. script2.type = "text/javascript";
  5139. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5140. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5141. const script3 = document.createElement("script");
  5142. script3.type = "text/javascript";
  5143. script3.charset = "UTF-8";
  5144. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5145. const script4 = document.createElement("script");
  5146. script4.type = "text/javascript";
  5147. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5148. script4.src = window.origin + "/js/Common/jietu2E.js";
  5149. if (_iframe) {
  5150. if (str == 'doc') {
  5151. _iframe = _formdiv.querySelector('iframe')
  5152. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5153. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5154. _iframe.contentWindow.document.body.appendChild(script1);
  5155. _iframe.contentWindow.document.body.appendChild(script2);
  5156. // _iframe.contentWindow.document.body.appendChild(script3);
  5157. _iframe.contentWindow.document.body.appendChild(script4);
  5158. })
  5159. if (onloadListener) {
  5160. _iframe.contentDocument.location.reload()
  5161. } else {
  5162. _iframe.contentDocument.location.reload()
  5163. }
  5164. } else if (str == 'courseDesign') {
  5165. U.UF.DL.iframeLoad(_iframe, function () {
  5166. // _iframe.contentWindow.U.MD.O.W.load();
  5167. // _iframe.contentWindow.document.body.appendChild(script1);
  5168. _iframe.contentWindow.document.body.appendChild(script2);
  5169. _iframe.contentWindow.document.body.appendChild(script4);
  5170. })
  5171. } else if (str == 'mind') {
  5172. _iframe = _formdiv.querySelector('iframe')
  5173. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5174. //
  5175. _iframe.contentWindow.document.body.appendChild(script1);
  5176. _iframe.contentWindow.document.body.appendChild(script2);
  5177. _iframe.contentWindow.document.body.appendChild(script4);
  5178. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5179. })
  5180. if (onloadListener) {
  5181. _iframe.contentDocument.location.reload()
  5182. } else {
  5183. _iframe.contentDocument.location.reload()
  5184. }
  5185. } else if (str == 'whiteboard') {
  5186. _iframe = _formdiv.querySelector('iframe')
  5187. let onloadListener = _iframe.onload = () => {
  5188. _iframe.contentWindow.document.body.appendChild(script1);
  5189. _iframe.contentWindow.document.body.appendChild(script2);
  5190. _iframe.contentWindow.document.body.appendChild(script4);
  5191. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5192. };
  5193. if (onloadListener) {
  5194. _iframe.contentDocument.location.reload()
  5195. } else {
  5196. _iframe.contentDocument.location.reload()
  5197. }
  5198. } else {
  5199. _iframe.onload = () => {
  5200. _iframe.contentWindow.document.body.appendChild(script1);
  5201. _iframe.contentWindow.document.body.appendChild(script2);
  5202. // _iframe.contentWindow.document.body.appendChild(script3);
  5203. _iframe.contentWindow.document.body.appendChild(script4);
  5204. };
  5205. }
  5206. _jie.onclick = async () => {
  5207. let text = ''
  5208. if (aTool == 1) {
  5209. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5210. } else if (aTool == 6) {
  5211. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5212. } else if (aTool == 3) {
  5213. text = await U.MD.D.I.getEditorContent(_iframe);
  5214. }
  5215. _loading.style.display = 'flex'
  5216. console.log(_loading);
  5217. var _ajs = _iframe.contentWindow.document.createElement("script");
  5218. _ajs.type = "text/javascript";
  5219. _ajs.innerHTML =
  5220. // 'console.log(' + _loading + ');\n' +
  5221. 'var _js = document.createElement("script");\n' +
  5222. '_js.type="text/javascript";\n' +
  5223. '_js.charset="UTF-8";\n' +
  5224. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5225. "_js.onload = function(){\n" +
  5226. ' var a = document.getElementsByTagName("img")\n' +
  5227. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5228. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5229. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5230. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5231. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5232. "beforeUpload_shishi(file," +
  5233. "'" +
  5234. _userid +
  5235. "'" +
  5236. ", " +
  5237. "'" +
  5238. _cid +
  5239. "'" +
  5240. ", " +
  5241. "'" +
  5242. _stage +
  5243. "'" +
  5244. ", " +
  5245. "'" +
  5246. _task +
  5247. "'" +
  5248. ", " +
  5249. "'" +
  5250. _tool +
  5251. "'" +
  5252. ", " +
  5253. "'" +
  5254. str + '_loadLi' + _userid +
  5255. "'" +
  5256. ", " +
  5257. "'" +
  5258. aTool +
  5259. "'" +
  5260. ", " +
  5261. "`" +
  5262. text +
  5263. "`" +
  5264. ")\n" +
  5265. " });\n" +
  5266. "}\n" +
  5267. "document.head.appendChild(_js);\n";
  5268. _iframe.contentWindow.document.head.appendChild(_ajs);
  5269. }
  5270. }
  5271. }
  5272. U.MD.D.I.getEditorContent = function (iframe) {
  5273. return new Promise((resolve, reject) => {
  5274. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5275. console.log(content);
  5276. resolve(content)
  5277. });
  5278. });
  5279. }
  5280. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5281. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5282. // if (res.value[0].length > 0) {
  5283. // // resolve(res.value[0][0].text);
  5284. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5285. // $(fileInput).val('');
  5286. // });
  5287. // }
  5288. // }, [], { "type": "GET", "withCredentials": true });
  5289. var xmlhttp;
  5290. var Mac, Sn, DeviceId
  5291. if (window.XMLHttpRequest) {
  5292. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5293. xmlhttp = new XMLHttpRequest();
  5294. }
  5295. else {
  5296. // IE6, IE5 浏览器执行代码
  5297. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5298. }
  5299. xmlhttp.onreadystatechange = function () {
  5300. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5301. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5302. // resolve(res.value[0][0].text);
  5303. if (type == '2') {
  5304. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5305. $(fileInput).val('');
  5306. });
  5307. } else if (type == '3') {
  5308. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5309. }
  5310. } else {
  5311. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5312. }
  5313. }
  5314. }
  5315. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5316. xmlhttp.send();
  5317. }
  5318. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5319. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5320. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5321. _userinfo = US.userInfo, //登录用户信息
  5322. _userid = US.userInfo.userid //登录用户id
  5323. let _iframe;
  5324. let _cid = cid,
  5325. _stage = stage,
  5326. _task = task,
  5327. _tool = tool;
  5328. var _jie = $$("div", {
  5329. "style": {
  5330. "position": "absolute",
  5331. "bottom": "50px",
  5332. "right": "50px",
  5333. "zIndex": "9999",
  5334. "backgroundColor": "#2268bc",
  5335. "color": "#fff",
  5336. "padding": "12px 20px",
  5337. "cursor": "pointer",
  5338. "borderRadius": "4px",
  5339. },
  5340. "innerHTML": "确认并提交"
  5341. })
  5342. let aTool = ''
  5343. let _loading = document.createElement('div')
  5344. _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;"
  5345. // _loading.id = "";
  5346. let _lchild = document.createElement('div')
  5347. let _limg = document.createElement('img')
  5348. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5349. _limg.style = "width: 26px;margin-right: 10px;"
  5350. _lchild.appendChild(_limg)
  5351. let _lspan = document.createElement('span')
  5352. _lspan.innerHTML = "上传中..."
  5353. _lchild.appendChild(_lspan)
  5354. _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%);"
  5355. _loading.appendChild(_lchild)
  5356. var _box = $$('div', {
  5357. "style": {
  5358. "position": "relative",
  5359. "width": "100%",
  5360. "height": "100%",
  5361. },
  5362. })
  5363. _box.appendChild(_loading)
  5364. _box.id = str + '_loadLi'
  5365. switch (str) {
  5366. case "whiteboard":
  5367. aTool = 1;
  5368. _iframe = $$("iframe", {
  5369. "frameborder": "no",
  5370. "border": "0",
  5371. "scrolling ": "no",
  5372. "style": {
  5373. "cssText": "border:0;width:100%;height:100%"
  5374. },
  5375. "src": "https://iwb.cocorobo.cn/"
  5376. })
  5377. _box.appendChild(_iframe);
  5378. _box.appendChild(_jie);
  5379. _formdiv = new U.UF.UI.form(
  5380. "电子白板",
  5381. _box, {
  5382. "id": "whiteboards" + cid + stage + task + tool,
  5383. "style": {
  5384. "width": "90%",
  5385. "height": "90%",
  5386. "overflow": 'hidden'
  5387. },
  5388. "onresize": function () { }
  5389. }, {
  5390. closecallback: function () { }
  5391. }, {
  5392. "style": {
  5393. "height": "36px"
  5394. }
  5395. }).form; //创建窗体
  5396. _taskbar = {
  5397. "id": str + _formdiv.id,
  5398. "style": {
  5399. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5400. },
  5401. "name": "电子白板",
  5402. "forms": _formdiv,
  5403. "click": function () {
  5404. U.MD.D.I.openApplication(str, obj, info);
  5405. }
  5406. }
  5407. break;
  5408. case "mind":
  5409. aTool = 3;
  5410. _iframe = $$("iframe", {
  5411. "frameborder": "no",
  5412. "border": "0",
  5413. "scrolling ": "no",
  5414. "style": {
  5415. "cssText": "border:0;width:100%;height:100%"
  5416. },
  5417. "src": "/kityminder-editor/dist/index.html"
  5418. });
  5419. _box.appendChild(_iframe);
  5420. _box.appendChild(_jie);
  5421. _formdiv = new U.UF.UI.form(
  5422. "思维导图",
  5423. _box, { //"/jsmind/example/demo.html"
  5424. "id": "minds" + cid + stage + task + tool,
  5425. "style": {
  5426. "width": "90%",
  5427. "height": "90%",
  5428. "overflow": 'hidden'
  5429. },
  5430. "onresize": function () { }
  5431. }, {
  5432. closecallback: function () { }
  5433. }, {
  5434. "style": {
  5435. "height": "36px"
  5436. }
  5437. }).form; //创建窗体
  5438. _taskbar = {
  5439. "id": str + _formdiv.id,
  5440. "style": {
  5441. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5442. },
  5443. "name": "思维导图",
  5444. "forms": _formdiv,
  5445. "click": function () {
  5446. U.MD.D.I.openApplication(str, obj, info);
  5447. }
  5448. }
  5449. break;
  5450. case "doc":
  5451. aTool = 6;
  5452. _iframe = $$("iframe", {
  5453. "frameborder": "no",
  5454. "border": "0",
  5455. "scrolling ": "no",
  5456. "style": {
  5457. "cssText": "border:0;width:100%;height:100%"
  5458. },
  5459. "src": "/Office/Word/WordEditArea.htm"
  5460. })
  5461. _box.appendChild(_iframe);
  5462. _box.appendChild(_jie);
  5463. _formdiv = new U.UF.UI.form(
  5464. "协同文档",
  5465. _box, {
  5466. "id": "docs" + cid + stage + task + tool,
  5467. "style": {
  5468. "width": "90%",
  5469. "height": "90%",
  5470. "overflow": 'hidden'
  5471. },
  5472. "onresize": function () { }
  5473. }, {
  5474. closecallback: function () { }
  5475. }, {
  5476. "style": {
  5477. "height": "36px"
  5478. }
  5479. }).form; //创建窗体
  5480. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5481. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5482. })
  5483. _taskbar = {
  5484. "id": str + _formdiv.id,
  5485. "style": {
  5486. "backgroundImage": "url(/img/icon/doc.png)"
  5487. },
  5488. "name": "协同文档",
  5489. "forms": _formdiv,
  5490. "click": function () {
  5491. U.MD.D.I.openApplication(str, obj, info);
  5492. }
  5493. }
  5494. break;
  5495. }
  5496. const script1 = document.createElement("script");
  5497. script1.type = "text/javascript";
  5498. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5499. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5500. const script2 = document.createElement("script");
  5501. script2.type = "text/javascript";
  5502. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5503. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5504. const script3 = document.createElement("script");
  5505. script3.type = "text/javascript";
  5506. script3.charset = "UTF-8";
  5507. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5508. const script4 = document.createElement("script");
  5509. script4.type = "text/javascript";
  5510. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5511. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5512. if (_iframe) {
  5513. if (str == 'doc') {
  5514. _iframe = _formdiv.querySelector('iframe')
  5515. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5516. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5517. _iframe.contentWindow.document.body.appendChild(script1);
  5518. _iframe.contentWindow.document.body.appendChild(script2);
  5519. // _iframe.contentWindow.document.body.appendChild(script3);
  5520. _iframe.contentWindow.document.body.appendChild(script4);
  5521. })
  5522. if (onloadListener) {
  5523. _iframe.contentDocument.location.reload()
  5524. } else {
  5525. _iframe.contentDocument.location.reload()
  5526. }
  5527. } else if (str == 'mind') {
  5528. _iframe = _formdiv.querySelector('iframe')
  5529. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5530. _iframe.contentWindow.document.body.appendChild(script1);
  5531. _iframe.contentWindow.document.body.appendChild(script2);
  5532. _iframe.contentWindow.document.body.appendChild(script4);
  5533. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5534. })
  5535. if (onloadListener) {
  5536. _iframe.contentDocument.location.reload()
  5537. } else {
  5538. _iframe.contentDocument.location.reload()
  5539. }
  5540. } else {
  5541. _iframe.onload = () => {
  5542. _iframe.contentWindow.document.body.appendChild(script1);
  5543. _iframe.contentWindow.document.body.appendChild(script2);
  5544. // _iframe.contentWindow.document.body.appendChild(script3);
  5545. _iframe.contentWindow.document.body.appendChild(script4);
  5546. };
  5547. }
  5548. _jie.onclick = async () => {
  5549. let text = ''
  5550. if (aTool == 6) {
  5551. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5552. } else if (aTool == 3) {
  5553. text = await U.MD.D.I.getEditorContent(_iframe);
  5554. }
  5555. _loading.style.display = 'flex'
  5556. console.log(_loading);
  5557. var _ajs = _iframe.contentWindow.document.createElement("script");
  5558. _ajs.type = "text/javascript";
  5559. _ajs.innerHTML =
  5560. // 'console.log(' + _loading + ');\n' +
  5561. 'var _js = document.createElement("script");\n' +
  5562. '_js.type="text/javascript";\n' +
  5563. '_js.charset="UTF-8";\n' +
  5564. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5565. "_js.onload = function(){\n" +
  5566. ' var a = document.getElementsByTagName("img")\n' +
  5567. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5568. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5569. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5570. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5571. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5572. "beforeUpload_shishi(file," +
  5573. "'" +
  5574. _userid +
  5575. "'" +
  5576. ", " +
  5577. "'" +
  5578. _cid +
  5579. "'" +
  5580. ", " +
  5581. "'" +
  5582. _stage +
  5583. "'" +
  5584. ", " +
  5585. "'" +
  5586. _task +
  5587. "'" +
  5588. ", " +
  5589. "'" +
  5590. _tool +
  5591. "'" +
  5592. ", " +
  5593. "'" +
  5594. str + '_loadLi' +
  5595. "'" +
  5596. ", " +
  5597. "'" +
  5598. aTool +
  5599. "'" +
  5600. ", " +
  5601. "`" +
  5602. text +
  5603. "`" +
  5604. ")\n" +
  5605. " });\n" +
  5606. "}\n" +
  5607. "document.head.appendChild(_js);\n";
  5608. _iframe.contentWindow.document.head.appendChild(_ajs);
  5609. }
  5610. }
  5611. //U.MD.D.I.openClick(str);
  5612. //如果有任务栏信息
  5613. // if (_taskbar) {
  5614. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5615. // }
  5616. }
  5617. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  5618. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5619. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5620. _userinfo = US.userInfo, //登录用户信息
  5621. _userid = US.userInfo.userid //登录用户id
  5622. let _iframe;
  5623. let _cid = cid,
  5624. _stage = stage,
  5625. _task = task,
  5626. _tool = tool;
  5627. var _jie = $$("div", {
  5628. "style": {
  5629. "position": "absolute",
  5630. "bottom": "50px",
  5631. "right": "50px",
  5632. "zIndex": "9999",
  5633. "backgroundColor": "#2268bc",
  5634. "color": "#fff",
  5635. "padding": "12px 20px",
  5636. "cursor": "pointer",
  5637. "borderRadius": "4px",
  5638. },
  5639. "innerHTML": "确认并提交"
  5640. })
  5641. let aTool = ''
  5642. let _loading = document.createElement('div')
  5643. _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;"
  5644. // _loading.id = "";
  5645. let _lchild = document.createElement('div')
  5646. let _limg = document.createElement('img')
  5647. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5648. _limg.style = "width: 26px;margin-right: 10px;"
  5649. _lchild.appendChild(_limg)
  5650. let _lspan = document.createElement('span')
  5651. _lspan.innerHTML = "上传中..."
  5652. _lchild.appendChild(_lspan)
  5653. _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%);"
  5654. _loading.appendChild(_lchild)
  5655. var _box = $$('div', {
  5656. "style": {
  5657. "position": "relative",
  5658. "width": "100%",
  5659. "height": "100%",
  5660. },
  5661. })
  5662. _box.appendChild(_loading)
  5663. _box.id = str + '_loadLi'
  5664. switch (str) {
  5665. case "whiteboard":
  5666. aTool = 1;
  5667. _iframe = $$("iframe", {
  5668. "frameborder": "no",
  5669. "border": "0",
  5670. "scrolling ": "no",
  5671. "style": {
  5672. "cssText": "border:0;width:100%;height:100%"
  5673. },
  5674. "src": "https://iwb.cocorobo.cn/"
  5675. })
  5676. _box.appendChild(_iframe);
  5677. _box.appendChild(_jie);
  5678. _formdiv = new U.UF.UI.form(
  5679. "电子白板",
  5680. _box, {
  5681. "id": "whiteboards" + cid + stage + task + tool,
  5682. "style": {
  5683. "width": "90%",
  5684. "height": "90%",
  5685. "overflow": 'hidden'
  5686. },
  5687. "onresize": function () { }
  5688. }, {
  5689. closecallback: function () { }
  5690. }, {
  5691. "style": {
  5692. "height": "36px"
  5693. }
  5694. }).form; //创建窗体
  5695. _taskbar = {
  5696. "id": str + _formdiv.id,
  5697. "style": {
  5698. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5699. },
  5700. "name": "电子白板",
  5701. "forms": _formdiv,
  5702. "click": function () {
  5703. U.MD.D.I.openApplication(str, obj, info);
  5704. }
  5705. }
  5706. break;
  5707. case "mind":
  5708. aTool = 3;
  5709. _iframe = $$("iframe", {
  5710. "frameborder": "no",
  5711. "border": "0",
  5712. "scrolling ": "no",
  5713. "style": {
  5714. "cssText": "border:0;width:100%;height:100%"
  5715. },
  5716. "src": "/kityminder-editor/dist/index.html"
  5717. });
  5718. _box.appendChild(_iframe);
  5719. _box.appendChild(_jie);
  5720. _formdiv = new U.UF.UI.form(
  5721. "思维导图",
  5722. _box, { //"/jsmind/example/demo.html"
  5723. "id": "minds" + cid + stage + task + tool,
  5724. "style": {
  5725. "width": "90%",
  5726. "height": "90%",
  5727. "overflow": 'hidden'
  5728. },
  5729. "onresize": function () { }
  5730. }, {
  5731. closecallback: function () { }
  5732. }, {
  5733. "style": {
  5734. "height": "36px"
  5735. }
  5736. }).form; //创建窗体
  5737. _taskbar = {
  5738. "id": str + _formdiv.id,
  5739. "style": {
  5740. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5741. },
  5742. "name": "思维导图",
  5743. "forms": _formdiv,
  5744. "click": function () {
  5745. U.MD.D.I.openApplication(str, obj, info);
  5746. }
  5747. }
  5748. break;
  5749. case "doc":
  5750. aTool = 6;
  5751. _iframe = $$("iframe", {
  5752. "frameborder": "no",
  5753. "border": "0",
  5754. "scrolling ": "no",
  5755. "style": {
  5756. "cssText": "border:0;width:100%;height:100%"
  5757. },
  5758. "src": "/Office/Word/WordEditArea.htm"
  5759. })
  5760. _box.appendChild(_iframe);
  5761. _box.appendChild(_jie);
  5762. _formdiv = new U.UF.UI.form(
  5763. "协同文档",
  5764. _box, {
  5765. "id": "docs" + cid + stage + task + tool,
  5766. "style": {
  5767. "width": "90%",
  5768. "height": "90%",
  5769. "overflow": 'hidden'
  5770. },
  5771. "onresize": function () { }
  5772. }, {
  5773. closecallback: function () { }
  5774. }, {
  5775. "style": {
  5776. "height": "36px"
  5777. }
  5778. }).form; //创建窗体
  5779. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5780. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5781. })
  5782. _taskbar = {
  5783. "id": str + _formdiv.id,
  5784. "style": {
  5785. "backgroundImage": "url(/img/icon/doc.png)"
  5786. },
  5787. "name": "协同文档",
  5788. "forms": _formdiv,
  5789. "click": function () {
  5790. U.MD.D.I.openApplication(str, obj, info);
  5791. }
  5792. }
  5793. break;
  5794. }
  5795. const script1 = document.createElement("script");
  5796. script1.type = "text/javascript";
  5797. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5798. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5799. const script2 = document.createElement("script");
  5800. script2.type = "text/javascript";
  5801. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5802. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5803. const script3 = document.createElement("script");
  5804. script3.type = "text/javascript";
  5805. script3.charset = "UTF-8";
  5806. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5807. const script4 = document.createElement("script");
  5808. script4.type = "text/javascript";
  5809. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5810. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  5811. if (_iframe) {
  5812. if (str == 'doc') {
  5813. _iframe = _formdiv.querySelector('iframe')
  5814. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5815. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5816. _iframe.contentWindow.document.body.appendChild(script1);
  5817. _iframe.contentWindow.document.body.appendChild(script2);
  5818. // _iframe.contentWindow.document.body.appendChild(script3);
  5819. _iframe.contentWindow.document.body.appendChild(script4);
  5820. })
  5821. if (onloadListener) {
  5822. _iframe.contentDocument.location.reload()
  5823. } else {
  5824. _iframe.contentDocument.location.reload()
  5825. }
  5826. } else if (str == 'mind') {
  5827. _iframe = _formdiv.querySelector('iframe')
  5828. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5829. _iframe.contentWindow.document.body.appendChild(script1);
  5830. _iframe.contentWindow.document.body.appendChild(script2);
  5831. _iframe.contentWindow.document.body.appendChild(script4);
  5832. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5833. })
  5834. if (onloadListener) {
  5835. _iframe.contentDocument.location.reload()
  5836. } else {
  5837. _iframe.contentDocument.location.reload()
  5838. }
  5839. } else {
  5840. _iframe.onload = () => {
  5841. _iframe.contentWindow.document.body.appendChild(script1);
  5842. _iframe.contentWindow.document.body.appendChild(script2);
  5843. // _iframe.contentWindow.document.body.appendChild(script3);
  5844. _iframe.contentWindow.document.body.appendChild(script4);
  5845. };
  5846. }
  5847. _jie.onclick = async () => {
  5848. let text = ''
  5849. if (aTool == 6) {
  5850. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5851. } else if (aTool == 3) {
  5852. text = await U.MD.D.I.getEditorContent(_iframe);
  5853. }
  5854. _loading.style.display = 'flex'
  5855. console.log(_loading);
  5856. var _ajs = _iframe.contentWindow.document.createElement("script");
  5857. _ajs.type = "text/javascript";
  5858. _ajs.innerHTML =
  5859. // 'console.log(' + _loading + ');\n' +
  5860. 'var _js = document.createElement("script");\n' +
  5861. '_js.type="text/javascript";\n' +
  5862. '_js.charset="UTF-8";\n' +
  5863. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5864. "_js.onload = function(){\n" +
  5865. ' var a = document.getElementsByTagName("img")\n' +
  5866. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5867. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5868. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5869. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5870. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5871. "beforeUpload_shishi(file," +
  5872. "'" +
  5873. _userid +
  5874. "'" +
  5875. ", " +
  5876. "'" +
  5877. _cid +
  5878. "'" +
  5879. ", " +
  5880. "'" +
  5881. _stage +
  5882. "'" +
  5883. ", " +
  5884. "'" +
  5885. _task +
  5886. "'" +
  5887. ", " +
  5888. "'" +
  5889. _tool +
  5890. "'" +
  5891. ", " +
  5892. "'" +
  5893. str + '_loadLi' +
  5894. "'" +
  5895. ", " +
  5896. "'" +
  5897. aTool +
  5898. "'" +
  5899. ", " +
  5900. "`" +
  5901. text +
  5902. "`" +
  5903. ")\n" +
  5904. " });\n" +
  5905. "}\n" +
  5906. "document.head.appendChild(_js);\n";
  5907. _iframe.contentWindow.document.head.appendChild(_ajs);
  5908. }
  5909. }
  5910. //U.MD.D.I.openClick(str);
  5911. //如果有任务栏信息
  5912. // if (_taskbar) {
  5913. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5914. // }
  5915. }
  5916. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  5917. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5918. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5919. _userinfo = US.userInfo, //登录用户信息
  5920. _userid = US.userInfo.userid //登录用户id
  5921. let _iframe;
  5922. let _cid = cid,
  5923. _stage = stage,
  5924. _task = task,
  5925. _tool = tool;
  5926. var _jie = $$("div", {
  5927. "style": {
  5928. "position": "absolute",
  5929. "bottom": "50px",
  5930. "right": "50px",
  5931. "zIndex": "9999",
  5932. "backgroundColor": "#2268bc",
  5933. "color": "#fff",
  5934. "padding": "12px 20px",
  5935. "cursor": "pointer",
  5936. "borderRadius": "4px",
  5937. },
  5938. "innerHTML": "上传模板"
  5939. })
  5940. let aTool = ''
  5941. let _loading = document.createElement('div')
  5942. _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;"
  5943. // _loading.id = "";
  5944. let _lchild = document.createElement('div')
  5945. let _limg = document.createElement('img')
  5946. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5947. _limg.style = "width: 26px;margin-right: 10px;"
  5948. _lchild.appendChild(_limg)
  5949. let _lspan = document.createElement('span')
  5950. _lspan.innerHTML = "上传中..."
  5951. _lchild.appendChild(_lspan)
  5952. _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%);"
  5953. _loading.appendChild(_lchild)
  5954. var _box = $$('div', {
  5955. "style": {
  5956. "position": "relative",
  5957. "width": "100%",
  5958. "height": "100%",
  5959. },
  5960. })
  5961. _box.appendChild(_loading)
  5962. _box.id = str + '_loadLi'
  5963. switch (str) {
  5964. case "whiteboard":
  5965. aTool = 1;
  5966. _iframe = $$("iframe", {
  5967. "frameborder": "no",
  5968. "border": "0",
  5969. "scrolling ": "no",
  5970. "style": {
  5971. "cssText": "border:0;width:100%;height:100%"
  5972. },
  5973. "src": "https://iwb.cocorobo.cn/"
  5974. })
  5975. _box.appendChild(_iframe);
  5976. _box.appendChild(_jie);
  5977. _formdiv = new U.UF.UI.form(
  5978. "电子白板",
  5979. _box, {
  5980. "id": "whiteboards" + cid + stage + task + tool,
  5981. "style": {
  5982. "width": "90%",
  5983. "height": "90%",
  5984. "overflow": 'hidden'
  5985. },
  5986. "onresize": function () { }
  5987. }, {
  5988. closecallback: function () { }
  5989. }, {
  5990. "style": {
  5991. "height": "36px"
  5992. }
  5993. }).form; //创建窗体
  5994. _taskbar = {
  5995. "id": str + _formdiv.id,
  5996. "style": {
  5997. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5998. },
  5999. "name": "电子白板",
  6000. "forms": _formdiv,
  6001. "click": function () {
  6002. U.MD.D.I.openApplication(str, obj, info);
  6003. }
  6004. }
  6005. break;
  6006. case "mind":
  6007. aTool = 3;
  6008. _iframe = $$("iframe", {
  6009. "frameborder": "no",
  6010. "border": "0",
  6011. "scrolling ": "no",
  6012. "style": {
  6013. "cssText": "border:0;width:100%;height:100%"
  6014. },
  6015. "src": "/kityminder-editor/dist/index.html"
  6016. });
  6017. _box.appendChild(_iframe);
  6018. _box.appendChild(_jie);
  6019. _formdiv = new U.UF.UI.form(
  6020. "思维导图",
  6021. _box, { //"/jsmind/example/demo.html"
  6022. "id": "minds" + cid + stage + task + tool,
  6023. "style": {
  6024. "width": "90%",
  6025. "height": "90%",
  6026. "overflow": 'hidden'
  6027. },
  6028. "onresize": function () { }
  6029. }, {
  6030. closecallback: function () { }
  6031. }, {
  6032. "style": {
  6033. "height": "36px"
  6034. }
  6035. }).form; //创建窗体
  6036. _taskbar = {
  6037. "id": str + _formdiv.id,
  6038. "style": {
  6039. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6040. },
  6041. "name": "思维导图",
  6042. "forms": _formdiv,
  6043. "click": function () {
  6044. U.MD.D.I.openApplication(str, obj, info);
  6045. }
  6046. }
  6047. break;
  6048. case "doc":
  6049. aTool = 6;
  6050. _iframe = $$("iframe", {
  6051. "frameborder": "no",
  6052. "border": "0",
  6053. "scrolling ": "no",
  6054. "style": {
  6055. "cssText": "border:0;width:100%;height:100%"
  6056. },
  6057. "src": "/Office/Word/WordEditArea.htm"
  6058. })
  6059. _box.appendChild(_iframe);
  6060. _box.appendChild(_jie);
  6061. _formdiv = new U.UF.UI.form(
  6062. "协同文档",
  6063. _box, {
  6064. "id": "docs" + cid + stage + task + tool,
  6065. "style": {
  6066. "width": "90%",
  6067. "height": "90%",
  6068. "overflow": 'hidden'
  6069. },
  6070. "onresize": function () { }
  6071. }, {
  6072. closecallback: function () { }
  6073. }, {
  6074. "style": {
  6075. "height": "36px"
  6076. }
  6077. }).form; //创建窗体
  6078. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6079. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6080. })
  6081. _taskbar = {
  6082. "id": str + _formdiv.id,
  6083. "style": {
  6084. "backgroundImage": "url(/img/icon/doc.png)"
  6085. },
  6086. "name": "协同文档",
  6087. "forms": _formdiv,
  6088. "click": function () {
  6089. U.MD.D.I.openApplication(str, obj, info);
  6090. }
  6091. }
  6092. break;
  6093. }
  6094. if (_iframe) {
  6095. if (str == 'doc') {
  6096. _iframe = _formdiv.querySelector('iframe')
  6097. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6098. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6099. })
  6100. if (onloadListener) {
  6101. _iframe.contentDocument.location.reload()
  6102. } else {
  6103. _iframe.contentDocument.location.reload()
  6104. }
  6105. } else if (str == 'mind') {
  6106. _iframe = _formdiv.querySelector('iframe')
  6107. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6108. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6109. })
  6110. if (onloadListener) {
  6111. _iframe.contentDocument.location.reload()
  6112. } else {
  6113. _iframe.contentDocument.location.reload()
  6114. }
  6115. } else if (str == 'whiteboard') {
  6116. _iframe = _formdiv.querySelector('iframe')
  6117. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6118. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6119. })
  6120. if (onloadListener) {
  6121. _iframe.contentDocument.location.reload()
  6122. } else {
  6123. _iframe.contentDocument.location.reload()
  6124. }
  6125. } else {
  6126. _iframe.onload = () => {
  6127. };
  6128. }
  6129. _jie.onclick = async () => {
  6130. let text = ''
  6131. let type = '2'
  6132. if (aTool == 1) {
  6133. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6134. type = '3'
  6135. } else if (aTool == 6) {
  6136. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6137. type = '1'
  6138. } else if (aTool == 3) {
  6139. text = await U.MD.D.I.getEditorContent(_iframe);
  6140. type = '2'
  6141. }
  6142. _loading.style.display = 'flex'
  6143. U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading, _lspan)
  6144. }
  6145. }
  6146. //U.MD.D.I.openClick(str);
  6147. //如果有任务栏信息
  6148. // if (_taskbar) {
  6149. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6150. // }
  6151. }
  6152. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6153. var xmlhttp;
  6154. var Mac, Sn, DeviceId
  6155. if (window.XMLHttpRequest) {
  6156. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6157. xmlhttp = new XMLHttpRequest();
  6158. }
  6159. else {
  6160. // IE6, IE5 浏览器执行代码
  6161. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6162. }
  6163. xmlhttp.onreadystatechange = function () {
  6164. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6165. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6166. // resolve(res.value[0][0].text);
  6167. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6168. $(fileInput).val('');
  6169. });
  6170. }
  6171. }
  6172. }
  6173. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6174. xmlhttp.send();
  6175. }
  6176. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6177. var xmlhttp;
  6178. var Mac, Sn, DeviceId
  6179. if (window.XMLHttpRequest) {
  6180. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6181. xmlhttp = new XMLHttpRequest();
  6182. }
  6183. else {
  6184. // IE6, IE5 浏览器执行代码
  6185. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6186. }
  6187. xmlhttp.onreadystatechange = function () {
  6188. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6189. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6190. // resolve(res.value[0][0].text);
  6191. if (type == '2') {
  6192. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6193. $(fileInput).val('');
  6194. });
  6195. } else if (type == '3') {
  6196. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6197. }
  6198. } else {
  6199. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6200. }
  6201. }
  6202. }
  6203. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6204. xmlhttp.send();
  6205. }
  6206. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6207. var xmlhttp;
  6208. var Mac, Sn, DeviceId
  6209. if (window.XMLHttpRequest) {
  6210. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6211. xmlhttp = new XMLHttpRequest();
  6212. }
  6213. else {
  6214. // IE6, IE5 浏览器执行代码
  6215. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6216. }
  6217. xmlhttp.onreadystatechange = function () {
  6218. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6219. if (xmlhttp.response) {
  6220. // resolve(res.value[0][0].text);
  6221. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6222. // $(fileInput).val('');
  6223. // });
  6224. span.innerHTML = '上传成功'
  6225. setTimeout(() => {
  6226. loading.style.display = 'none'
  6227. }, 1000);
  6228. }
  6229. }
  6230. }
  6231. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6232. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6233. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6234. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6235. // 设置请求头,表示请求体的编码格式
  6236. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
  6237. // 设置请求体,使用url-encoded格式的数据
  6238. }
  6239. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  6240. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6241. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6242. _userinfo = US.userInfo, //登录用户信息
  6243. _userid = US.userInfo.userid //登录用户id
  6244. let _iframe;
  6245. let _cid = cid,
  6246. _stage = stage,
  6247. _task = task,
  6248. _tool = tool;
  6249. var _jie = $$("div", {
  6250. "style": {
  6251. "position": "absolute",
  6252. "bottom": "50px",
  6253. "right": "50px",
  6254. "zIndex": "9999",
  6255. "backgroundColor": "#2268bc",
  6256. "color": "#fff",
  6257. "padding": "12px 20px",
  6258. "cursor": "pointer",
  6259. "borderRadius": "4px",
  6260. },
  6261. "innerHTML": "提交作业"
  6262. })
  6263. let aTool = ''
  6264. let _loading = document.createElement('div')
  6265. _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;"
  6266. // _loading.id = "";
  6267. let _lchild = document.createElement('div')
  6268. let _limg = document.createElement('img')
  6269. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6270. _limg.style = "width: 26px;margin-right: 10px;"
  6271. _lchild.appendChild(_limg)
  6272. let _lspan = document.createElement('span')
  6273. _lspan.innerHTML = "上传中..."
  6274. _lchild.appendChild(_lspan)
  6275. _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%);"
  6276. _loading.appendChild(_lchild)
  6277. var _box = $$('div', {
  6278. "style": {
  6279. "position": "relative",
  6280. "width": "100%",
  6281. "height": "100%",
  6282. },
  6283. })
  6284. _box.appendChild(_loading)
  6285. _box.id = str + '_loadLi'
  6286. switch (str) {
  6287. case "CocoPi":
  6288. aTool = 57;
  6289. _iframe = $$("iframe", {
  6290. "frameborder": "no",
  6291. "border": "0",
  6292. "scrolling ": "no",
  6293. "style": {
  6294. "cssText": "border:0;width:100%;height:100%"
  6295. },
  6296. "src": "https://beta.v.cocorobo.cn/"
  6297. })
  6298. _box.appendChild(_iframe);
  6299. _box.appendChild(_jie);
  6300. _formdiv = new U.UF.UI.form(
  6301. "CocoPi",
  6302. _box, {
  6303. "id": "CocoPi" + cid + stage + task + tool,
  6304. "style": {
  6305. "width": "90%",
  6306. "height": "90%",
  6307. "overflow": 'hidden'
  6308. },
  6309. "onresize": function () { }
  6310. }, {
  6311. closecallback: function () { }
  6312. }, {
  6313. "style": {
  6314. "height": "36px"
  6315. }
  6316. }).form; //创建窗体
  6317. _taskbar = {
  6318. "id": str + _formdiv.id,
  6319. "style": {
  6320. "backgroundImage": "url(/img/icon/cocopi.png)"
  6321. },
  6322. "name": "CocoPi",
  6323. "forms": _formdiv,
  6324. "click": function () {
  6325. U.MD.D.I.openApplication(str, obj, info);
  6326. }
  6327. }
  6328. break;
  6329. }
  6330. if (_iframe) {
  6331. if (str == 'cocoPi') {
  6332. _iframe = _formdiv.querySelector('iframe')
  6333. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6334. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, _iframe)
  6335. })
  6336. if (onloadListener) {
  6337. _iframe.contentDocument.location.reload()
  6338. } else {
  6339. _iframe.contentDocument.location.reload()
  6340. }
  6341. }
  6342. _jie.onclick = async () => {
  6343. let text = ''
  6344. if (aTool == 57) {
  6345. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].getLoadXmlStr()
  6346. }
  6347. _loading.style.display = 'flex'
  6348. console.log(_loading);
  6349. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6350. _loading.style.display = 'none'
  6351. let _div = document.createElement('div')
  6352. _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;"
  6353. let _inner = document.createElement('div')
  6354. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6355. _inner.innerHTML = "截图上传成功"
  6356. _div.appendChild(_inner)
  6357. contentWindow.window.document.body.appendChild(_div)
  6358. _div.onclick = () => {
  6359. contentWindow.window.document.body.removeChild(_div)
  6360. }
  6361. setTimeout(() => {
  6362. contentWindow.window.document.body.removeChild(_div)
  6363. }, 1000);
  6364. }, [], { "type": "GET", "withCredentials": true });
  6365. }
  6366. }
  6367. }
  6368. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, type, iframe) {
  6369. U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  6370. if (res.value[0].length > 0) {
  6371. // resolve(res.value[0][0].text);
  6372. iframe.loadingXml(res.value[0][0].text)
  6373. }
  6374. }, [], { "type": "GET", "withCredentials": true });
  6375. }