DeskTop.js 349 KB

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