DeskTop.js 351 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368
  1. /*
  2. 此处为桌面系统启动应用区域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面应用处理
  5. //判断图片是否在拖拽,如果是拖拽图标的过程是不会打开图片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教师桌面图标的全局变量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  17. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  18. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  19. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  20. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  21. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  22. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  23. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  24. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  25. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  26. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  27. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  28. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  29. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  30. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  31. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  32. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  33. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  34. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  35. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  36. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  37. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  38. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  39. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  40. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  41. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  42. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  43. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  44. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  45. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  46. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  47. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  48. ];
  49. //极简模式
  50. U.MD.D.I.easyDeskIcon = [
  51. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  52. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  55. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  56. ];
  57. //教师桌面图标的全局变量
  58. U.MD.D.I.teacherDeskIcon2 = [
  59. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  60. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  61. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  62. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  63. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  64. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  65. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  66. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  67. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  68. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  69. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  70. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  71. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  72. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  73. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  74. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  75. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  76. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  77. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  78. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  79. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  80. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  81. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  82. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  83. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  84. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  85. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  86. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  87. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  88. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  89. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  90. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  91. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  92. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  93. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  94. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  95. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  96. ];
  97. U.MD.D.I.studentDeskIcon = [
  98. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  99. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  100. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  101. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  102. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  103. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  104. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  105. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  106. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  107. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  108. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  109. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  110. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  111. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  112. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  113. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  114. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  115. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  116. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  117. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  118. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  119. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  120. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  121. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  122. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  123. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  124. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  125. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  126. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  127. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  128. ];
  129. U.MD.D.I.studentDeskIcon2 = [
  130. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  131. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  132. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  133. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  134. ]
  135. U.MD.D.I.studentDeskIcon3 = [
  136. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  137. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  138. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  139. ]
  140. U.MD.D.I.schoolDeskIcon = [
  141. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  142. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  144. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  145. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  146. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  147. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  148. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  149. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  150. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  151. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  152. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  153. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  154. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  155. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  156. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  157. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  158. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  159. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  160. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  161. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  162. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  163. ];
  164. U.MD.D.I.orgDeskIcon = [
  165. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  166. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  167. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  168. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  169. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  170. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  171. ];
  172. U.MD.D.I.orgStemDeskIcon = [
  173. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  174. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  175. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  176. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  177. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  178. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  179. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  180. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  181. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  182. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  183. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  184. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  185. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  186. ];
  187. U.MD.D.I.szulsDeskIcon = [
  188. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  189. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  190. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  191. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  192. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  193. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  194. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  195. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  196. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  197. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  198. ];
  199. U.MD.D.I.hanDeskIcon = [
  200. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  201. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  202. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  203. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  204. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  205. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  206. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  207. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  208. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  209. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  210. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  211. ];
  212. U.MD.D.I.GMteacherDeskIcon = [
  213. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  214. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  215. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  216. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  217. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  218. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  219. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  220. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  221. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  222. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  223. ];
  224. U.MD.D.I.GMstudentDeskIcon = [
  225. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  226. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  227. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  228. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  229. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  230. ];
  231. //北师大
  232. U.MD.D.I.BSDNSteacherDeskIcon = [
  233. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  234. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  235. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  236. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  237. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  238. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  239. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  240. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  241. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  242. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  243. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  244. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  245. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  246. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  247. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  248. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  249. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  250. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  251. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  252. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  253. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  254. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  255. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  256. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  257. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  258. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  259. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  260. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  261. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  262. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  263. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  264. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  265. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  266. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  267. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  268. ];
  269. //松山湖
  270. U.MD.D.I.SONGteacherDeskIcon = [
  271. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  272. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  273. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  274. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  275. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  276. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  277. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  278. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  279. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  280. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  281. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  282. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  283. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  284. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  285. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  286. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  287. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  288. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  289. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  290. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  291. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  292. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  293. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  294. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  295. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  296. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  297. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  298. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  299. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  300. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  301. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  302. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  303. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  304. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  305. ];
  306. U.MD.D.I.tcStudentDeskIcon = [
  307. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  308. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  309. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  310. ];
  311. U.MD.D.I.tcTeacherDeskIcon = [
  312. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  313. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  314. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  315. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  316. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  317. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  318. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  319. ];
  320. U.MD.D.I.tcOrganizerDeskIcon = [
  321. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  322. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  323. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  324. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  325. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  326. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  327. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  328. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  329. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  330. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  331. ];
  332. U.MD.D.I.szscStudentDeskIcon = [
  333. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  334. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  335. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. ];
  338. U.MD.D.I.szscTeacherDeskIcon = [
  339. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  340. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  341. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  342. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  343. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  344. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  345. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  346. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  347. ];
  348. U.MD.D.I.szscOrganizerDeskIcon = [
  349. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  350. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  351. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  352. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  353. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  354. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  355. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  356. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  357. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  358. ];
  359. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  360. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  361. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  362. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  363. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  364. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  365. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  366. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  367. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  368. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  369. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  370. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  371. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  372. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  373. ];
  374. U.MD.D.I.wankeAdminDeskIcon = [
  375. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  376. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  377. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  378. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  379. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  380. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  381. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  382. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  383. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  384. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  385. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  386. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  387. ];
  388. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  389. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  390. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  391. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  392. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  393. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  394. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  395. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  396. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  397. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  398. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  399. ];
  400. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  401. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  402. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  403. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  404. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  405. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  406. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  407. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  408. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  409. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  410. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  411. ];
  412. //明德教师桌面图标的全局变量
  413. U.MD.D.I.MingdeTeacherDeskIcon = [
  414. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  415. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  416. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  417. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  418. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  419. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  420. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  421. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  422. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  423. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  424. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  425. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  426. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  427. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  428. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  429. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  430. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  431. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  432. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  433. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  434. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  435. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  436. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  437. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  438. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  439. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  440. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  441. ];
  442. //97c4ee8b-d010-4042-986d-e9d3c217264f
  443. //教师桌面图标的全局变量
  444. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  445. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  446. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  447. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  448. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  449. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  450. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  451. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  452. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  453. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  454. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  455. ];
  456. //福田
  457. U.MD.D.I.futianTeacherDeskIcon = [
  458. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  459. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  460. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  461. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  462. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  463. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  464. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  465. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  466. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  467. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  468. ];
  469. //福田
  470. U.MD.D.I.futianAdminDeskIcon = [
  471. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  472. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  473. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  474. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  475. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  476. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  477. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  478. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  479. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  480. ];
  481. //lotech
  482. U.MD.D.I.lotechTeacherDeskIcon = [
  483. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  484. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  485. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  486. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  487. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  488. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  489. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  490. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  491. ];
  492. //龙华中心小学教师桌面图标的全局变量
  493. U.MD.D.I.longhuateacherDeskIcon = [
  494. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  495. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  496. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  497. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  498. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  499. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  500. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  501. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  502. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  503. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  504. ];
  505. //#region 桌面初始化a
  506. /**
  507. * 初始化桌面的起始函数
  508. *
  509. */
  510. U.MD.D.I.init = function () {
  511. if ($("#U_MD_D_K")[0]) {
  512. //初始化桌面图标
  513. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  514. // var clickUrl = ':12588/requestIp.php';
  515. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  516. // U.MD.D.I.Ip = data;
  517. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  518. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  519. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  520. // })
  521. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  522. // })
  523. }
  524. }
  525. /**
  526. * 模式切换
  527. *
  528. */
  529. U.MD.D.I.ModeCheck = function (type) {
  530. if (US.Config.type == type) {
  531. return
  532. }
  533. US.Config.type = type
  534. $('.U_PBL_Check .active')[0].className = ''
  535. if (type == 1) {
  536. $('.U_PBL_Check div')[0].className = 'active'
  537. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  538. } else {
  539. $('.U_PBL_Check div')[1].className = 'active'
  540. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  541. }
  542. //初始化桌面图标
  543. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  544. }
  545. /**
  546. * 隐藏任务栏
  547. *
  548. * @param {element} 桌面元素
  549. */
  550. U.MD.D.I.hiddenTaskbar = function (el) {
  551. //任务栏位置变小
  552. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  553. //桌面的位置变大
  554. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  555. }
  556. /**
  557. * 隐藏任务栏
  558. *
  559. * @param {element} 桌面元素
  560. */
  561. U.MD.D.I.hiddenTaskbarout = function (el) {
  562. //任务栏位置变小
  563. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  564. //任务栏位置变化
  565. U.selectEl(el).css({ "bottom": "-60px" });
  566. //桌面的位置变大
  567. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  568. }
  569. }
  570. /**
  571. * 初始化打印桌面图标
  572. *
  573. * @param {element} 桌面元素
  574. */
  575. U.MD.D.I.initDesktopIcons = function (el, type) {
  576. var i, //用于循环
  577. _content, //桌面图标元素
  578. _iconcontent, //桌面图标元素
  579. _frag = $$("frag"), //定义一个碎片元素
  580. _type = US.userInfo.type,
  581. _org = US.userInfo.org,
  582. _oid = US.userInfo.organizeid,
  583. _role = US.userInfo.role,
  584. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  585. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  586. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  587. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  588. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  589. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  590. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  591. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  592. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  593. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  594. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  595. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  596. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  597. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  598. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  599. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  600. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  601. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  602. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  603. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  604. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  605. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  606. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  607. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  608. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  609. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  610. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//lotech
  611. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  612. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  613. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  614. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  615. var _oidA = ['69893dca-1d47-11ed-8c78-005056b86db5', "91305d49-01ba-11ed-8c78-005056b86db5", "d9db3320-503a-11ed-8c78-005056b86db5", "05b62310-8cda-11ed-b13d-005056b86db5", '1c3b9def-8fbe-11ed-b13d-005056b86db5', '91305d49-01ba-11ed-8c78-005056b86db4','ea2a8c65-f38c-11ed-91d8-005056b86db5'];
  616. 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'];
  617. //清楚桌面图标
  618. el.innerHTML = "";
  619. 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") {
  620. _teacherDesktopIconInfo.push(
  621. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  622. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  623. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  624. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  625. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  626. )
  627. _easyDesktopIconInfo.push(
  628. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  629. )
  630. }
  631. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  632. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  633. if(el.Name == '项目管理'){
  634. el.Name = 'PBL项目'
  635. }
  636. return el
  637. })
  638. }
  639. if (_oid == '4c686762-1d0a-11ed-8c78-005056b86db5') {
  640. _teacherDesktopIconInfo.push(
  641. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  642. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  643. )
  644. }
  645. if (_oid != '4c686762-1d0a-11ed-8c78-005056b86db5' && _oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  646. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  647. return el.Name != '魔盒识字' && el.Name != '24点'
  648. })
  649. }
  650. 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) {
  651. _studentDesktopIconInfo.push(
  652. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  653. )
  654. }
  655. //循环创建桌面图标
  656. if (type == 1) {
  657. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  658. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  659. _content = $$("div", {
  660. className: "U_MD_D_KO",
  661. "onmousedown": U.UF.C.closure(function (obj) {
  662. //防止拖动图标即打开了桌面应用
  663. U.MD.D.click(this, obj);
  664. }, [_studentDesktopIconInfo[i]]),
  665. "onclick": U.UF.C.closure(function (obj) {
  666. //防止拖动图标即打开了桌面应用
  667. U.MD.D.click(this, obj);
  668. }, [_studentDesktopIconInfo[i]])
  669. }, _frag); //
  670. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  671. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  672. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  673. }
  674. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  675. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  676. _content = $$("div", {
  677. className: "U_MD_D_KO",
  678. "onmousedown": U.UF.C.closure(function (obj) {
  679. //防止拖动图标即打开了桌面应用
  680. U.MD.D.click(this, obj);
  681. }, [_studentDesktopIconInfo[i]]),
  682. "onclick": U.UF.C.closure(function (obj) {
  683. //防止拖动图标即打开了桌面应用
  684. U.MD.D.click(this, obj);
  685. }, [_studentDesktopIconInfo[i]])
  686. }, _frag); //
  687. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  688. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  689. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  690. }
  691. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  692. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  693. _content = $$("div", {
  694. className: "U_MD_D_KO",
  695. "onmousedown": U.UF.C.closure(function (obj) {
  696. //防止拖动图标即打开了桌面应用
  697. U.MD.D.click(this, obj);
  698. }, [_tcStudentDeskIconInfo[i]]),
  699. "onclick": U.UF.C.closure(function (obj) {
  700. //防止拖动图标即打开了桌面应用
  701. U.MD.D.click(this, obj);
  702. }, [_tcStudentDeskIconInfo[i]])
  703. }, _frag); //
  704. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  705. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  706. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  707. }
  708. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  709. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  710. _content = $$("div", {
  711. className: "U_MD_D_KO",
  712. "onmousedown": U.UF.C.closure(function (obj) {
  713. //防止拖动图标即打开了桌面应用
  714. U.MD.D.click(this, obj);
  715. }, [_szscStudentDeskIconInfo[i]]),
  716. "onclick": U.UF.C.closure(function (obj) {
  717. //防止拖动图标即打开了桌面应用
  718. U.MD.D.click(this, obj);
  719. }, [_szscStudentDeskIconInfo[i]])
  720. }, _frag); //
  721. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  722. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  723. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  724. }
  725. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  726. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  727. _content = $$("div", {
  728. className: "U_MD_D_KO",
  729. "onmousedown": U.UF.C.closure(function (obj) {
  730. //防止拖动图标即打开了桌面应用
  731. U.MD.D.click(this, obj);
  732. }, [_studentDesktopIconInfo3[i]]),
  733. "onclick": U.UF.C.closure(function (obj) {
  734. //防止拖动图标即打开了桌面应用
  735. U.MD.D.click(this, obj);
  736. }, [_studentDesktopIconInfo3[i]])
  737. }, _frag); //
  738. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  739. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  740. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  741. }
  742. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  743. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  744. _content = $$("div", {
  745. className: "U_MD_D_KO",
  746. "onmousedown": U.UF.C.closure(function (obj) {
  747. //防止拖动图标即打开了桌面应用
  748. U.MD.D.click(this, obj);
  749. }, [_studentDesktopIconInfo2[i]]),
  750. "onclick": U.UF.C.closure(function (obj) {
  751. //防止拖动图标即打开了桌面应用
  752. U.MD.D.click(this, obj);
  753. }, [_studentDesktopIconInfo2[i]])
  754. }, _frag); //
  755. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  756. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  757. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  758. }
  759. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  760. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  761. _content = $$("div", {
  762. className: "U_MD_D_KO",
  763. "onmousedown": U.UF.C.closure(function (obj) {
  764. //防止拖动图标即打开了桌面应用
  765. U.MD.D.click(this, obj);
  766. }, [_wanketeacherDesktopIconInfo[i]]),
  767. "onclick": U.UF.C.closure(function (obj) {
  768. //防止拖动图标即打开了桌面应用
  769. U.MD.D.click(this, obj);
  770. }, [_wanketeacherDesktopIconInfo[i]])
  771. }, _frag); //
  772. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  773. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  774. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  775. }
  776. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  777. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  778. _content = $$("div", {
  779. className: "U_MD_D_KO",
  780. "onmousedown": U.UF.C.closure(function (obj) {
  781. //防止拖动图标即打开了桌面应用
  782. U.MD.D.click(this, obj);
  783. }, [_wankeAdminDesktopIconInfo[i]]),
  784. "onclick": U.UF.C.closure(function (obj) {
  785. //防止拖动图标即打开了桌面应用
  786. U.MD.D.click(this, obj);
  787. }, [_wankeAdminDesktopIconInfo[i]])
  788. }, _frag); //
  789. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  790. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  791. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  792. }
  793. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  794. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  795. _content = $$("div", {
  796. className: "U_MD_D_KO",
  797. "onmousedown": U.UF.C.closure(function (obj) {
  798. //防止拖动图标即打开了桌面应用
  799. U.MD.D.click(this, obj);
  800. }, [_teacherDesktopIconInfo2[i]]),
  801. "onclick": U.UF.C.closure(function (obj) {
  802. //防止拖动图标即打开了桌面应用
  803. U.MD.D.click(this, obj);
  804. }, [_teacherDesktopIconInfo2[i]])
  805. }, _frag); //
  806. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  807. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  808. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  809. }
  810. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  811. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  812. _content = $$("div", {
  813. className: "U_MD_D_KO",
  814. "onmousedown": U.UF.C.closure(function (obj) {
  815. //防止拖动图标即打开了桌面应用
  816. U.MD.D.click(this, obj);
  817. }, [_lotechTeacherDeskIconInfo[i]]),
  818. "onclick": U.UF.C.closure(function (obj) {
  819. //防止拖动图标即打开了桌面应用
  820. U.MD.D.click(this, obj);
  821. }, [_lotechTeacherDeskIconInfo[i]])
  822. }, _frag); //
  823. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  824. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  825. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  826. }
  827. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  828. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  829. _content = $$("div", {
  830. className: "U_MD_D_KO",
  831. "onmousedown": U.UF.C.closure(function (obj) {
  832. //防止拖动图标即打开了桌面应用
  833. U.MD.D.click(this, obj);
  834. }, [_longhuaTeacherDeskIconInfo[i]]),
  835. "onclick": U.UF.C.closure(function (obj) {
  836. //防止拖动图标即打开了桌面应用
  837. U.MD.D.click(this, obj);
  838. }, [_longhuaTeacherDeskIconInfo[i]])
  839. }, _frag); //
  840. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  841. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  842. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  843. }
  844. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  845. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  846. _content = $$("div", {
  847. className: "U_MD_D_KO",
  848. "onmousedown": U.UF.C.closure(function (obj) {
  849. //防止拖动图标即打开了桌面应用
  850. U.MD.D.click(this, obj);
  851. }, [_futianAdminDeskIconInfo[i]]),
  852. "onclick": U.UF.C.closure(function (obj) {
  853. //防止拖动图标即打开了桌面应用
  854. U.MD.D.click(this, obj);
  855. }, [_futianAdminDeskIconInfo[i]])
  856. }, _frag); //
  857. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  858. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  859. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  860. }
  861. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  862. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  863. _content = $$("div", {
  864. className: "U_MD_D_KO",
  865. "onmousedown": U.UF.C.closure(function (obj) {
  866. //防止拖动图标即打开了桌面应用
  867. U.MD.D.click(this, obj);
  868. }, [_futianTeacherDeskIconInfo[i]]),
  869. "onclick": U.UF.C.closure(function (obj) {
  870. //防止拖动图标即打开了桌面应用
  871. U.MD.D.click(this, obj);
  872. }, [_futianTeacherDeskIconInfo[i]])
  873. }, _frag); //
  874. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  875. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  876. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  877. }
  878. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  879. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  880. _content = $$("div", {
  881. className: "U_MD_D_KO",
  882. "onmousedown": U.UF.C.closure(function (obj) {
  883. //防止拖动图标即打开了桌面应用
  884. U.MD.D.click(this, obj);
  885. }, [_MingdeTeacherDeskIcon[i]]),
  886. "onclick": U.UF.C.closure(function (obj) {
  887. //防止拖动图标即打开了桌面应用
  888. U.MD.D.click(this, obj);
  889. }, [_MingdeTeacherDeskIcon[i]])
  890. }, _frag); //
  891. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  892. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  893. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  894. }
  895. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  896. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  897. _content = $$("div", {
  898. className: "U_MD_D_KO",
  899. "onmousedown": U.UF.C.closure(function (obj) {
  900. //防止拖动图标即打开了桌面应用
  901. U.MD.D.click(this, obj);
  902. }, [_lhsAdminDesktopIconInfo[i]]),
  903. "onclick": U.UF.C.closure(function (obj) {
  904. //防止拖动图标即打开了桌面应用
  905. U.MD.D.click(this, obj);
  906. }, [_lhsAdminDesktopIconInfo[i]])
  907. }, _frag); //
  908. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  909. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  910. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  911. }
  912. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  913. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  914. _content = $$("div", {
  915. className: "U_MD_D_KO",
  916. "onmousedown": U.UF.C.closure(function (obj) {
  917. //防止拖动图标即打开了桌面应用
  918. U.MD.D.click(this, obj);
  919. }, [_lhsteacherDesktopIconInfo[i]]),
  920. "onclick": U.UF.C.closure(function (obj) {
  921. //防止拖动图标即打开了桌面应用
  922. U.MD.D.click(this, obj);
  923. }, [_lhsteacherDesktopIconInfo[i]])
  924. }, _frag); //
  925. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  926. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  927. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  928. }
  929. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  930. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  931. _content = $$("div", {
  932. className: "U_MD_D_KO",
  933. "onmousedown": U.UF.C.closure(function (obj) {
  934. //防止拖动图标即打开了桌面应用
  935. U.MD.D.click(this, obj);
  936. }, [_zhoujiateacherDesktopIconInfo[i]]),
  937. "onclick": U.UF.C.closure(function (obj) {
  938. //防止拖动图标即打开了桌面应用
  939. U.MD.D.click(this, obj);
  940. }, [_zhoujiateacherDesktopIconInfo[i]])
  941. }, _frag); //
  942. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  943. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  944. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  945. }
  946. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  947. for (i = 0; i < _hanDeskIcon.length; i++) {
  948. _content = $$("div", {
  949. className: "U_MD_D_KO",
  950. "onmousedown": U.UF.C.closure(function (obj) {
  951. //防止拖动图标即打开了桌面应用
  952. U.MD.D.click(this, obj);
  953. }, [_hanDeskIcon[i]]),
  954. "onclick": U.UF.C.closure(function (obj) {
  955. //防止拖动图标即打开了桌面应用
  956. U.MD.D.click(this, obj);
  957. }, [_hanDeskIcon[i]])
  958. }, _frag); //
  959. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  960. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  961. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  962. }
  963. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  964. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  965. _content = $$("div", {
  966. className: "U_MD_D_KO",
  967. "onmousedown": U.UF.C.closure(function (obj) {
  968. //防止拖动图标即打开了桌面应用
  969. U.MD.D.click(this, obj);
  970. }, [_orgStemDeskIcon[i]]),
  971. "onclick": U.UF.C.closure(function (obj) {
  972. //防止拖动图标即打开了桌面应用
  973. U.MD.D.click(this, obj);
  974. }, [_orgStemDeskIcon[i]])
  975. }, _frag); //
  976. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  977. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  978. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  979. }
  980. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  981. for (i = 0; i < _szulsDeskIcon.length; i++) {
  982. _content = $$("div", {
  983. className: "U_MD_D_KO",
  984. "onmousedown": U.UF.C.closure(function (obj) {
  985. //防止拖动图标即打开了桌面应用
  986. U.MD.D.click(this, obj);
  987. }, [_szulsDeskIcon[i]]),
  988. "onclick": U.UF.C.closure(function (obj) {
  989. //防止拖动图标即打开了桌面应用
  990. U.MD.D.click(this, obj);
  991. }, [_szulsDeskIcon[i]])
  992. }, _frag); //
  993. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  994. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  995. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  996. }
  997. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  998. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  999. _content = $$("div", {
  1000. className: "U_MD_D_KO",
  1001. "onmousedown": U.UF.C.closure(function (obj) {
  1002. //防止拖动图标即打开了桌面应用
  1003. U.MD.D.click(this, obj);
  1004. }, [_orgDesktopIconInfo[i]]),
  1005. "onclick": U.UF.C.closure(function (obj) {
  1006. //防止拖动图标即打开了桌面应用
  1007. U.MD.D.click(this, obj);
  1008. }, [_orgDesktopIconInfo[i]])
  1009. }, _frag); //
  1010. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1011. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1012. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1013. }
  1014. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1015. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1016. _content = $$("div", {
  1017. className: "U_MD_D_KO",
  1018. "onmousedown": U.UF.C.closure(function (obj) {
  1019. //防止拖动图标即打开了桌面应用
  1020. U.MD.D.click(this, obj);
  1021. }, [_schoolDesktopIconInfo[i]]),
  1022. "onclick": U.UF.C.closure(function (obj) {
  1023. //防止拖动图标即打开了桌面应用
  1024. U.MD.D.click(this, obj);
  1025. }, [_schoolDesktopIconInfo[i]])
  1026. }, _frag); //
  1027. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1028. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1029. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1030. }
  1031. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1032. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1033. _content = $$("div", {
  1034. className: "U_MD_D_KO",
  1035. "onmousedown": U.UF.C.closure(function (obj) {
  1036. //防止拖动图标即打开了桌面应用
  1037. U.MD.D.click(this, obj);
  1038. }, [_GMteacherDesktopIconInfo[i]]),
  1039. "onclick": U.UF.C.closure(function (obj) {
  1040. //防止拖动图标即打开了桌面应用
  1041. U.MD.D.click(this, obj);
  1042. }, [_GMteacherDesktopIconInfo[i]])
  1043. }, _frag); //
  1044. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1045. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1046. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1047. }
  1048. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1049. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1050. _content = $$("div", {
  1051. className: "U_MD_D_KO",
  1052. "onmousedown": U.UF.C.closure(function (obj) {
  1053. //防止拖动图标即打开了桌面应用
  1054. U.MD.D.click(this, obj);
  1055. }, [_SONGteacherDesktopIconInfo[i]]),
  1056. "onclick": U.UF.C.closure(function (obj) {
  1057. //防止拖动图标即打开了桌面应用
  1058. U.MD.D.click(this, obj);
  1059. }, [_SONGteacherDesktopIconInfo[i]])
  1060. }, _frag); //
  1061. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1062. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1063. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1064. }
  1065. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1066. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1067. _content = $$("div", {
  1068. className: "U_MD_D_KO",
  1069. "onmousedown": U.UF.C.closure(function (obj) {
  1070. //防止拖动图标即打开了桌面应用
  1071. U.MD.D.click(this, obj);
  1072. }, [_GMstudentDesktopIconInfo[i]]),
  1073. "onclick": U.UF.C.closure(function (obj) {
  1074. //防止拖动图标即打开了桌面应用
  1075. U.MD.D.click(this, obj);
  1076. }, [_GMstudentDesktopIconInfo[i]])
  1077. }, _frag); //
  1078. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1079. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1080. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1081. }
  1082. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1083. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1084. _content = $$("div", {
  1085. className: "U_MD_D_KO",
  1086. "onmousedown": U.UF.C.closure(function (obj) {
  1087. //防止拖动图标即打开了桌面应用
  1088. U.MD.D.click(this, obj);
  1089. }, [_tcTeacherDeskIconInfo[i]]),
  1090. "onclick": U.UF.C.closure(function (obj) {
  1091. //防止拖动图标即打开了桌面应用
  1092. U.MD.D.click(this, obj);
  1093. }, [_tcTeacherDeskIconInfo[i]])
  1094. }, _frag); //
  1095. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1096. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1097. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1098. }
  1099. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1100. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1101. _content = $$("div", {
  1102. className: "U_MD_D_KO",
  1103. "onmousedown": U.UF.C.closure(function (obj) {
  1104. //防止拖动图标即打开了桌面应用
  1105. U.MD.D.click(this, obj);
  1106. }, [_tcOrganizerDeskIconInfo[i]]),
  1107. "onclick": U.UF.C.closure(function (obj) {
  1108. //防止拖动图标即打开了桌面应用
  1109. U.MD.D.click(this, obj);
  1110. }, [_tcOrganizerDeskIconInfo[i]])
  1111. }, _frag); //
  1112. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1113. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1114. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1115. }
  1116. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1117. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1118. _content = $$("div", {
  1119. className: "U_MD_D_KO",
  1120. "onmousedown": U.UF.C.closure(function (obj) {
  1121. //防止拖动图标即打开了桌面应用
  1122. U.MD.D.click(this, obj);
  1123. }, [_szscTeacherDeskIconInfo[i]]),
  1124. "onclick": U.UF.C.closure(function (obj) {
  1125. //防止拖动图标即打开了桌面应用
  1126. U.MD.D.click(this, obj);
  1127. }, [_szscTeacherDeskIconInfo[i]])
  1128. }, _frag); //
  1129. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1130. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1131. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1132. }
  1133. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1134. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1135. _content = $$("div", {
  1136. className: "U_MD_D_KO",
  1137. "onmousedown": U.UF.C.closure(function (obj) {
  1138. //防止拖动图标即打开了桌面应用
  1139. U.MD.D.click(this, obj);
  1140. }, [_szscOrganizerDeskIconInfo[i]]),
  1141. "onclick": U.UF.C.closure(function (obj) {
  1142. //防止拖动图标即打开了桌面应用
  1143. U.MD.D.click(this, obj);
  1144. }, [_szscOrganizerDeskIconInfo[i]])
  1145. }, _frag); //
  1146. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1147. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1148. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1149. }
  1150. } else {
  1151. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1152. _content = $$("div", {
  1153. className: "U_MD_D_KO",
  1154. "onmousedown": U.UF.C.closure(function (obj) {
  1155. //防止拖动图标即打开了桌面应用
  1156. U.MD.D.click(this, obj);
  1157. }, [_teacherDesktopIconInfo[i]]),
  1158. "onclick": U.UF.C.closure(function (obj) {
  1159. //防止拖动图标即打开了桌面应用
  1160. U.MD.D.click(this, obj);
  1161. }, [_teacherDesktopIconInfo[i]])
  1162. }, _frag); //
  1163. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1164. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1165. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1166. }
  1167. }
  1168. } else {
  1169. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1170. _content = $$("div", {
  1171. className: "U_MD_D_KO",
  1172. style: { 'width': '124px', 'height': '145px' },
  1173. "onmousedown": U.UF.C.closure(function (obj) {
  1174. //防止拖动图标即打开了桌面应用
  1175. U.MD.D.click(this, obj);
  1176. }, [_easyDesktopIconInfo[i]]),
  1177. "onclick": U.UF.C.closure(function (obj) {
  1178. //防止拖动图标即打开了桌面应用
  1179. U.MD.D.click(this, obj);
  1180. }, [_easyDesktopIconInfo[i]])
  1181. }, _frag); //
  1182. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1183. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1184. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1185. }
  1186. }
  1187. if (type == 1) {
  1188. //加载好后给图标定位
  1189. U.MD.D.iconPostion($(_frag).Child());
  1190. } else {
  1191. //加载好后给图标定位
  1192. U.MD.D.iconPostion2($(_frag).Child());
  1193. }
  1194. //把图标加载到页面
  1195. el.appendChild(_frag);
  1196. }
  1197. /**
  1198. * 显示任务栏
  1199. *
  1200. * @param {element} 桌面元素
  1201. */
  1202. U.MD.D.I.displayTaskbar = function (el) {
  1203. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1204. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1205. //任务栏位置变化
  1206. U.selectEl(el).css({ "bottom": "0px" });
  1207. //桌面位置变话
  1208. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1209. }
  1210. }
  1211. //#region 桌面图标拖动逻辑
  1212. /**
  1213. * 桌面排列图标
  1214. *
  1215. * @param {element} 桌面元素
  1216. * @param {object} 上下相距的距离
  1217. * @param {object} 左右相距的距离
  1218. * @return {object} 命名空间
  1219. */
  1220. U.MD.D.iconPostion = function (childs, top, left) {
  1221. var i; //用于循环处理
  1222. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1223. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1224. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1225. for (i = 0; i < childs.length; i++) {
  1226. //如果竖排top超过了范围处理
  1227. if (top + 95 > US.height - 10) {
  1228. //left超过了页面范围处理,则向上重叠打印处理
  1229. if ((left + 180) > US.width) {
  1230. top -= 110;
  1231. left -= 90;
  1232. }
  1233. //没有超过范围,那么left+90添加到下一个竖排打印
  1234. else {
  1235. left += 90;
  1236. top = 15;
  1237. };
  1238. }
  1239. //给图标的位置赋值
  1240. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1241. if (i < childs.length - 1) {
  1242. //页面图标每次向下加95
  1243. top += 95;
  1244. }
  1245. }
  1246. //返回最后调用的图标的位置
  1247. return [top, left];
  1248. }
  1249. /**
  1250. * 桌面排列图标
  1251. *
  1252. * @param {element} 桌面元素
  1253. * @param {object} 上下相距的距离
  1254. * @param {object} 左右相距的距离
  1255. * @return {object} 命名空间
  1256. */
  1257. U.MD.D.iconPostion2 = function (childs, top, left) {
  1258. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1259. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1260. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1261. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1262. for (i = 0; i < childs.length; i++) {
  1263. //如果竖排top超过了范围处理
  1264. if (left + 150 > US.width - 10) {
  1265. //left超过了页面范围处理,则向上重叠打印处理
  1266. if ((top + 180) > US.Height) {
  1267. top -= 150;
  1268. left -= 150;
  1269. }
  1270. //没有超过范围,那么left+90添加到下一个竖排打印
  1271. else {
  1272. top += 150;
  1273. left = ol;
  1274. };
  1275. }
  1276. //给图标的位置赋值
  1277. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1278. if (i < childs.length - 1) {
  1279. //页面图标每次向下加95
  1280. left += 150;
  1281. }
  1282. }
  1283. //返回最后调用的图标的位置
  1284. return [top, left];
  1285. }
  1286. /**
  1287. * 桌面点击事件逻辑
  1288. *
  1289. * @param {element} 桌面元素
  1290. * @param {object} 上下相距的距离
  1291. * @param {object} 左右相距的距离
  1292. * @return {object} 命名空间
  1293. */
  1294. U.MD.D.click = function (el, obj) {
  1295. var _buttonnumber = event.button; //点击的按钮的事件值
  1296. var _userinfo = US.userInfo;
  1297. U.UF.EV.stopBubble(); //阻止向上冒泡
  1298. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1299. if (_buttonnumber < 2) {
  1300. //如果是click事件的处理
  1301. if (event.type == "click") {
  1302. //如果元素在mousemove事件中没有移动则出发click事件
  1303. if (!U.MD.D.I.IsDrag) {
  1304. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1305. U.alert("请先登录您的账号!");
  1306. setTimeout(() => {
  1307. U.MD.U.L.login();
  1308. }, 2000);
  1309. } else {
  1310. //打开应用处理
  1311. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1312. }
  1313. }
  1314. }
  1315. //如果是mouse事件的处理
  1316. else {
  1317. if (US.Config.type == '1') {
  1318. //拖动处理,添加拖动和拖动结束事件
  1319. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1320. }
  1321. }
  1322. U.MD.D.I.IsDrag = false;
  1323. }
  1324. }
  1325. /**
  1326. * 拖动的处理
  1327. *
  1328. */
  1329. U.MD.D.iconMove = function () {
  1330. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1331. U.MD.D.I.IsDrag = true;
  1332. }
  1333. /**
  1334. * 拖动结束后,这里是定位处理,以网状的形式定位
  1335. *
  1336. * @param {element} 拖动的元素
  1337. * @return {object} 命名空间
  1338. */
  1339. U.MD.D.iconUp = function (el) {
  1340. var _top = 15,
  1341. _left = 20,
  1342. _margin,
  1343. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1344. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1345. if (_positioninfo["OT"] > 15) {
  1346. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1347. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1348. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1349. }
  1350. if (_positioninfo["OL"] > 20) {
  1351. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1352. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1353. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1354. }
  1355. //while循环判断么一个重叠的元素
  1356. do {
  1357. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1358. _top = _positioninfo[0] + 95; //得到定位后的top
  1359. _left = _positioninfo[1]; //得到定位后的left
  1360. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1361. }
  1362. /**
  1363. * 判断拖动后图标是否重叠
  1364. *
  1365. * @param {element} 拖动的元素
  1366. * @param {element} 桌面所有的元素
  1367. * @param {array} 拖动元素的位置
  1368. ----------[0] 上 top
  1369. ----------[1] 左 left
  1370. * @return {object} 命名空间
  1371. */
  1372. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1373. //循环所有的图标
  1374. for (var i = 0; i < childs.length; i++) {
  1375. //判断有没有和该图标诶子重叠的元素
  1376. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1377. return childs[i]; //如果有返回
  1378. }
  1379. }
  1380. }
  1381. //#endregion
  1382. //#endregion
  1383. //#region 桌面应用
  1384. /**
  1385. * 打开应用
  1386. *
  1387. * @param {string} 类型
  1388. -----------------Disk 网盘系统
  1389. -----------------PDisk 学习系统网盘
  1390. -----------------Poto 图片
  1391. -----------------Video 视频
  1392. -----------------Music 音乐
  1393. -----------------Word word
  1394. -----------------Excel excel
  1395. -----------------Txt 记事本
  1396. -----------------PB 学习系统
  1397. -----------------Blog 朋友圈系统
  1398. -----------------FTP ftp系统
  1399. -----------------Group 好友群
  1400. -----------------SY 首页系统
  1401. -----------------Set 个人设置
  1402. -----------------XSet 系统设置
  1403. -----------------App 我们所有的app
  1404. -----------------BC c.1473.cn 平台
  1405. -----------------CWeb d.1473.cn 变成平台
  1406. -----------------其他的外联系统 我们统一用iframe打开
  1407. * @param {array} 类型
  1408. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1409. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1410. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1411. 如果第一个参数为其他,则无第二个参数
  1412. * @returns {array}
  1413. */
  1414. window.addEventListener('message', function (e) { // 监听 message 事件
  1415. // alert(e.data.type);
  1416. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1417. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1418. //3是展示全部阶段 2学生 1老师 4专家
  1419. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1420. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1421. //3是展示全部阶段 2学生 1老师 4专家
  1422. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1423. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1424. //3是展示全部阶段 2学生 1老师 4专家
  1425. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1426. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1427. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1428. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1429. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1430. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1431. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1432. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1433. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1434. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1435. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1436. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1437. //3是展示全部阶段 2学生 1老师 4专家
  1438. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1439. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1440. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1441. U.MD.D.I.selectUser();
  1442. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1443. var _formel = document.getElementById("study");
  1444. U.UF.F.windowZooming(_formel);
  1445. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1446. var _formel = document.getElementById("studyDetail");
  1447. U.UF.F.windowZooming(_formel);
  1448. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1449. var _formel = document.getElementById("studyDetail");
  1450. U.UF.F.windowZooming(_formel);
  1451. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1452. var _formel = document.getElementById("studentStudy");
  1453. U.UF.F.windowZooming(_formel);
  1454. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1455. // var _formel = document.getElementById("study");
  1456. //如果最大化了,那么就把他缩小
  1457. // if (_formel.ismaximize) {
  1458. // return;
  1459. // }
  1460. // U.UF.F.windowZooming(_formel);
  1461. // U.UF.F.topWindow(_formel);
  1462. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1463. // var _formel = document.getElementById("studyDetail");
  1464. //如果最大化了,那么就把他缩小
  1465. // if (_formel.ismaximize) {
  1466. // return;
  1467. // }
  1468. // U.UF.F.windowZooming(_formel);
  1469. // U.UF.F.topWindow(_formel);
  1470. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1471. // var _formel = document.getElementById("studentStudy");
  1472. // if (_formel.ismaximize) {
  1473. // return;
  1474. // }
  1475. // U.UF.F.windowZooming(_formel);
  1476. // U.UF.F.topWindow(_formel);
  1477. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1478. var _formel = document.getElementById("study");
  1479. // if (_formel.ismaximize) {
  1480. // return;
  1481. // }
  1482. // U.UF.F.windowZooming(_formel);
  1483. U.UF.F.topWindow(_formel);
  1484. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1485. var _formel = document.getElementById("studentIndex");
  1486. U.UF.F.windowZooming(_formel);
  1487. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1488. var _formel = document.getElementById("studyDetailS");
  1489. U.UF.F.windowZooming(_formel);
  1490. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1491. var _formel = document.getElementById("studioIndex");
  1492. U.UF.F.windowZooming(_formel);
  1493. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1494. var _formel = document.getElementById("studyDetailStudio");
  1495. U.UF.F.windowZooming(_formel);
  1496. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1497. var _formel = document.getElementById("studyDetailStudio");
  1498. U.UF.F.windowZooming(_formel);
  1499. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1500. var _formel = document.getElementById("studyDetailNT");
  1501. U.UF.F.windowZooming(_formel);
  1502. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1503. var _formel = document.getElementById("studyDetailS");
  1504. U.UF.F.windowZooming(_formel);
  1505. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1506. var _formel = document.getElementById("studyDetailS");
  1507. U.UF.F.topWindow(_formel);
  1508. } else if (e.data.tools && e.data.tools == "1") {
  1509. // U.MD.D.I.openApplication("whiteboard")
  1510. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1511. } else if (e.data.tools && e.data.tools == "2") {
  1512. U.MD.D.I.openApplication("note")
  1513. } else if (e.data.tools && e.data.tools == "3") {
  1514. // U.MD.D.I.openApplication("mind")
  1515. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1516. } else if (e.data.tools && e.data.tools == "4") {
  1517. U.MD.D.I.openApplication("investigation")
  1518. } else if (e.data.tools && e.data.tools == "6") {
  1519. // U.MD.D.I.openApplication("doc")
  1520. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1521. } else if (e.data.tools && e.data.tools == "7") {
  1522. // U.MD.D.I.openApplication("mindNetwork")
  1523. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1524. } else if (e.data.tools && e.data.tools == "8") {
  1525. U.MD.D.I.openApplication("library")
  1526. } else if (e.data.tools && e.data.tools == "17") {
  1527. U.MD.D.I.openApplication("stuLibrary")
  1528. } else if (e.data.tools && e.data.tools == "18") {
  1529. U.MD.D.I.openApplication("train")
  1530. } else if (e.data.tools && e.data.tools == "21") {
  1531. U.MD.D.I.openApplication("program")
  1532. } else if (e.data.tools && e.data.tools == "22") {
  1533. U.MD.D.I.openApplication("AIprogram2")
  1534. } else if (e.data.tools && e.data.tools == "23") {
  1535. U.MD.D.I.openApplication("Pythonprogram")
  1536. } else if (e.data.tools && e.data.tools == "24") {
  1537. U.MD.D.I.openApplication("AIprogram")
  1538. } else if (e.data.tools && e.data.tools == "25") {
  1539. U.MD.D.I.openApplication("sys")
  1540. } else if (e.data.tools && e.data.tools == "26") {
  1541. // U.MD.D.I.openApplication("courseDesign")
  1542. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1543. } else if (e.data.tools && e.data.tools == "31") {
  1544. U.MD.D.I.openApplication("netWorkPanel")
  1545. } else if (e.data.tools && e.data.tools == "32") {
  1546. U.MD.D.I.openApplication("codeEdit")
  1547. } else if (e.data.tools && e.data.tools == "57") {
  1548. U.MD.D.I.openApplication("CocoPi")
  1549. } else if (e.data.tools && e.data.tools == "63") {
  1550. U.MD.D.I.openApplication("Wood")
  1551. } else if (e.data.tools && e.data.tools == "58") {
  1552. U.MD.D.I.openApplication("car")
  1553. } else if (e.data.tools && e.data.tools == "59") {
  1554. U.MD.D.I.openApplication("lineSearch")
  1555. } else if (e.data.tools && e.data.tools == "60") {
  1556. U.MD.D.I.openApplication("deepLearning")
  1557. } else if (e.data.tools && e.data.tools == "61") {
  1558. U.MD.D.I.openApplication("allHistory")
  1559. } else if (e.data.tools && e.data.tools == "28") {
  1560. U.MD.D.I.openApplication("translation")
  1561. } else if (e.data.tools && e.data.tools == "37") {
  1562. U.MD.D.I.openApplication("mohe")
  1563. } else if (e.data.tools && e.data.tools == "38") {
  1564. U.MD.D.I.openApplication("24game")
  1565. } else if (e.data.tools && e.data.tools == "39") {
  1566. U.MD.D.I.openApplication("GeoGebra")
  1567. } else if (e.data.tools && e.data.tools == "43") {
  1568. U.MD.D.I.openApplication("studentEvaluate")
  1569. } else if (e.data.tools && e.data.tools == "44") {
  1570. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1571. } else if (e.data.tools && e.data.tools == "46") {
  1572. U.MD.D.I.openApplication("project")
  1573. } else if (e.data.tools && e.data.tools == "1s") {
  1574. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1575. } else if (e.data.tools && e.data.tools == "3s") {
  1576. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1577. } else if (e.data.tools && e.data.tools == "6s") {
  1578. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1579. } else if (e.data.tools && e.data.tools == "1studio") {
  1580. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1581. } else if (e.data.tools && e.data.tools == "3studio") {
  1582. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1583. } else if (e.data.tools && e.data.tools == "6studio") {
  1584. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1585. } else if (e.data.tools && e.data.tools == "3y") {
  1586. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1587. } else if (e.data.tools && e.data.tools == "1y") {
  1588. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1589. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1590. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1591. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1592. U.MD.D.I.openApplication("AIAnalyse")
  1593. } else if (e.data.tools && e.data.tools == "1teacher") {
  1594. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1595. } else if (e.data.tools && e.data.tools == "3teacher") {
  1596. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1597. } else if (e.data.tools && e.data.tools == "7teacher") {
  1598. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1599. } else if (e.data.tools && e.data.tools == "1teacherE") {
  1600. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1601. } else if (e.data.tools && e.data.tools == "3teacherE") {
  1602. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1603. } else if (e.data.tools && e.data.tools == "1E") {
  1604. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1605. } else if (e.data.tools && e.data.tools == "3E") {
  1606. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1607. }
  1608. });
  1609. U.MD.D.I.selectUser = function () {
  1610. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1611. if (res.value[0].length > 0) {
  1612. US.userInfo = res.value[0][0];
  1613. $(".userName")[0].innerHTML = US.userInfo.username;
  1614. }
  1615. }, [], { "type": "GET", "withCredentials": true });
  1616. }
  1617. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1618. var _userinfo = US.userInfo, //登录用户信息
  1619. _userid = US.userInfo.userid, //登录用户id
  1620. _oid = _userinfo.organizeid,
  1621. _type = US.userInfo.type,
  1622. _org = US.userInfo.org,
  1623. _role = US.userInfo.role,
  1624. _classId = US.userInfo.classid;
  1625. if (_type == 4) {
  1626. tType = 4
  1627. }
  1628. switch (str) {
  1629. case "studyDetailNT"://无终端模式
  1630. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1631. setTimeout(() => {
  1632. U.MD.U.L.login();
  1633. }, 2000);
  1634. } else {
  1635. _formdiv = new U.UF.UI.form(
  1636. "课程详情",
  1637. $$("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 }), {
  1638. "id": "studyDetailNT",
  1639. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1640. "onresize": function () { }
  1641. }, {
  1642. closecallback: function () { }
  1643. }, { "style": { "height": "36px" } }).form; //创建窗体
  1644. _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); } }
  1645. break;
  1646. }
  1647. case "studyDetail":
  1648. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1649. setTimeout(() => {
  1650. U.MD.U.L.login();
  1651. }, 2000);
  1652. } else {
  1653. _formdiv = new U.UF.UI.form(
  1654. "课程详情",
  1655. $$("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 }), {
  1656. "id": "studyDetail",
  1657. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1658. "onresize": function () { }
  1659. }, {
  1660. closecallback: function () { }
  1661. }, { "style": { "height": "36px" } }).form; //创建窗体
  1662. _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); } }
  1663. break;
  1664. }
  1665. case "studyDetailS":
  1666. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1667. setTimeout(() => {
  1668. U.MD.U.L.login();
  1669. }, 2000);
  1670. } else {
  1671. _formdiv = new U.UF.UI.form(
  1672. "项目详情",
  1673. $$("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 }), {
  1674. "id": "studyDetailS",
  1675. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1676. "onresize": function () { }
  1677. }, {
  1678. closecallback: function () { }
  1679. }, { "style": { "height": "36px" } }).form; //创建窗体
  1680. _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); } }
  1681. break;
  1682. }
  1683. case "studyDetailStudio":
  1684. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1685. setTimeout(() => {
  1686. U.MD.U.L.login();
  1687. }, 2000);
  1688. } else {
  1689. _formdiv = new U.UF.UI.form(
  1690. "工作详情",
  1691. $$("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 }), {
  1692. "id": "studyDetailStudio",
  1693. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1694. "onresize": function () { }
  1695. }, {
  1696. closecallback: function () { }
  1697. }, { "style": { "height": "36px" } }).form; //创建窗体
  1698. _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); } }
  1699. break;
  1700. }
  1701. case "studyDetailS5":
  1702. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1703. setTimeout(() => {
  1704. U.MD.U.L.login();
  1705. }, 2000);
  1706. } else {
  1707. _formdiv = new U.UF.UI.form(
  1708. "项目详情",
  1709. $$("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 }), {
  1710. "id": "studyDetailS",
  1711. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1712. "onresize": function () { }
  1713. }, {
  1714. closecallback: function () { }
  1715. }, { "style": { "height": "36px" } }).form; //创建窗体
  1716. _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); } }
  1717. break;
  1718. }
  1719. case "studyDetailGM":
  1720. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1721. setTimeout(() => {
  1722. U.MD.U.L.login();
  1723. }, 2000);
  1724. } else {
  1725. _formdiv = new U.UF.UI.form(
  1726. "课程详情",
  1727. $$("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 }), {
  1728. "id": "studyDetail",
  1729. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1730. "onresize": function () { }
  1731. }, {
  1732. closecallback: function () { }
  1733. }, { "style": { "height": "36px" } }).form; //创建窗体
  1734. _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); } }
  1735. break;
  1736. }
  1737. case "hanUrl":
  1738. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1739. setTimeout(() => {
  1740. U.MD.U.L.login();
  1741. }, 2000);
  1742. } else {
  1743. _formdiv = new U.UF.UI.form(
  1744. "汉字宫",
  1745. $$("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" }), {
  1746. "id": "hanUrl",
  1747. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1748. "onresize": function () { }
  1749. }, {
  1750. closecallback: function () { }
  1751. }, { "style": { "height": "36px" } }).form; //创建窗体
  1752. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1753. break;
  1754. }
  1755. }
  1756. }
  1757. U.MD.D.I.openApplication = function (str, obj, info) {
  1758. obj = obj || {};
  1759. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1760. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1761. _userinfo = US.userInfo, //登录用户信息
  1762. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1763. _oid = obj.organizeid || _userinfo.organizeid,
  1764. _type = US.userInfo.type,
  1765. _org = US.userInfo.org,
  1766. _role = US.userInfo.role,
  1767. _classId = US.userInfo.classid,
  1768. _TscreenType = 1
  1769. _screenType = 2,
  1770. _SscreenType = 3;
  1771. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1772. return;
  1773. }
  1774. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1775. switch (str) {
  1776. case "studnetProject": //好友打开
  1777. _formdiv = new U.UF.UI.form(
  1778. "我的项目",
  1779. $$("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 }), {
  1780. "id": "studnetProject",
  1781. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1782. "onresize": function () { }
  1783. }, {
  1784. closecallback: function () { }
  1785. }, { "style": { "height": "36px" } }).form; //创建窗体
  1786. _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); } }
  1787. break;
  1788. case "studentEvaluate": //好友打开
  1789. _formdiv = new U.UF.UI.form(
  1790. "我的评价",
  1791. $$("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 }), {
  1792. "id": "studentEvaluate",
  1793. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1794. "onresize": function () { }
  1795. }, {
  1796. closecallback: function () { }
  1797. }, { "style": { "height": "36px" } }).form; //创建窗体
  1798. _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); } }
  1799. break;
  1800. case "my":
  1801. _formdiv = new U.UF.UI.form(
  1802. "我的资料",
  1803. $$("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 }), {
  1804. "id": "my",
  1805. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1806. "onresize": function () { }
  1807. }, {
  1808. closecallback: function () { }
  1809. }, { "style": { "height": "36px" } }).form; //创建窗体
  1810. _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); } }
  1811. break;
  1812. case "program":
  1813. _formdiv = new U.UF.UI.form(
  1814. "编程平台",
  1815. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1816. "id": "program",
  1817. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1818. "onresize": function () { }
  1819. }, {
  1820. closecallback: function () { }
  1821. }, { "style": { "height": "36px" } }).form; //创建窗体
  1822. _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); } }
  1823. break;
  1824. case "library":
  1825. _formdiv = new U.UF.UI.form(
  1826. "素材库",
  1827. $$("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 }), {
  1828. "id": "library",
  1829. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1830. "onresize": function () { }
  1831. }, {
  1832. closecallback: function () { }
  1833. }, { "style": { "height": "36px" } }).form; //创建窗体
  1834. _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); } }
  1835. break;
  1836. case "whiteboard":
  1837. _formdiv = new U.UF.UI.form(
  1838. "电子白板",
  1839. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1840. "id": "whiteboard",
  1841. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1842. "onresize": function () { }
  1843. }, {
  1844. closecallback: function () { }
  1845. }, { "style": { "height": "36px" } }).form; //创建窗体
  1846. _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); } }
  1847. break;
  1848. case "investigation":
  1849. _formdiv = new U.UF.UI.form(
  1850. "问卷调查",
  1851. $$("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 }), {
  1852. "id": "investigation",
  1853. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1854. "onresize": function () { }
  1855. }, {
  1856. closecallback: function () { }
  1857. }, { "style": { "height": "36px" } }).form; //创建窗体
  1858. _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); } }
  1859. break;
  1860. case "note":
  1861. _formdiv = new U.UF.UI.form(
  1862. "便签分类",
  1863. $$("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 }), {
  1864. "id": "note",
  1865. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1866. "onresize": function () { }
  1867. }, {
  1868. closecallback: function () { }
  1869. }, { "style": { "height": "36px" } }).form; //创建窗体
  1870. _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); } }
  1871. break;
  1872. // case "score":
  1873. // _formdiv = new U.UF.UI.form(
  1874. // "量规评分",
  1875. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  1876. // "id": "score",
  1877. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1878. // "onresize": function() {}
  1879. // }, {
  1880. // closecallback: function() {}
  1881. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1882. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1883. // break;
  1884. case "mind":
  1885. _formdiv = new U.UF.UI.form(
  1886. "思维导图",
  1887. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1888. "id": "mind",
  1889. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1890. "onresize": function () { }
  1891. }, {
  1892. closecallback: function () { }
  1893. }, { "style": { "height": "36px" } }).form; //创建窗体
  1894. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1895. break;
  1896. case "doc":
  1897. // U.MD.D.I.isRoom();
  1898. _formdiv = new U.UF.UI.form(
  1899. "协同文档",
  1900. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1901. "id": "doc",
  1902. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1903. "onresize": function () { }
  1904. }, {
  1905. closecallback: function () { }
  1906. }, { "style": { "height": "36px" } }).form; //创建窗体
  1907. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1908. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1909. // })
  1910. _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); } }
  1911. break;
  1912. case "studentStudy":
  1913. _formdiv = new U.UF.UI.form(
  1914. "课程中心",
  1915. $$("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
  1916. "id": "studentStudy",
  1917. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1918. "onresize": function () { }
  1919. }, {
  1920. closecallback: function () { }
  1921. }, { "style": { "height": "36px" } }).form; //创建窗体
  1922. _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); } }
  1923. break;
  1924. case "train": //好友打开
  1925. _formdiv = new U.UF.UI.form(
  1926. "训练平台",
  1927. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1928. "id": "train",
  1929. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1930. "onresize": function () { }
  1931. }, {
  1932. closecallback: function () { }
  1933. }, { "style": { "height": "36px" } }).form; //创建窗体
  1934. _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); } }
  1935. break;
  1936. case "mindNetwork": //好友打开
  1937. _formdiv = new U.UF.UI.form(
  1938. "思维网格",
  1939. $$("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 }), {
  1940. "id": "mindNetwork",
  1941. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1942. "onresize": function () { }
  1943. }, {
  1944. closecallback: function () { }
  1945. }, { "style": { "height": "36px" } }).form; //创建窗体
  1946. _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); } }
  1947. break;
  1948. case "studentClassRoom": //好友打开
  1949. _formdiv = new U.UF.UI.form(
  1950. "实时课堂",
  1951. $$("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 }), {
  1952. "id": "studentClassRoom",
  1953. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1954. "onresize": function () { }
  1955. }, {
  1956. closecallback: function () { }
  1957. }, { "style": { "height": "36px" } }).form; //创建窗体
  1958. _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); } }
  1959. setTimeout(() => {
  1960. U.UF.F.windowZooming(_formdiv)
  1961. }, 0);
  1962. break;
  1963. }
  1964. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1965. switch (str) {
  1966. case "studnetProject": //好友打开
  1967. _formdiv = new U.UF.UI.form(
  1968. "我的项目",
  1969. $$("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 }), {
  1970. "id": "studnetProject",
  1971. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1972. "onresize": function () { }
  1973. }, {
  1974. closecallback: function () { }
  1975. }, { "style": { "height": "36px" } }).form; //创建窗体
  1976. _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); } }
  1977. break;
  1978. case "studentEvaluate": //好友打开
  1979. _formdiv = new U.UF.UI.form(
  1980. "我的评价",
  1981. $$("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 }), {
  1982. "id": "studentEvaluate",
  1983. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1984. "onresize": function () { }
  1985. }, {
  1986. closecallback: function () { }
  1987. }, { "style": { "height": "36px" } }).form; //创建窗体
  1988. _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); } }
  1989. break;
  1990. case "my":
  1991. _formdiv = new U.UF.UI.form(
  1992. "我的资料",
  1993. $$("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 }), {
  1994. "id": "my",
  1995. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1996. "onresize": function () { }
  1997. }, {
  1998. closecallback: function () { }
  1999. }, { "style": { "height": "36px" } }).form; //创建窗体
  2000. _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); } }
  2001. break;
  2002. case "program":
  2003. _formdiv = new U.UF.UI.form(
  2004. "编程平台",
  2005. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2006. "id": "program",
  2007. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2008. "onresize": function () { }
  2009. }, {
  2010. closecallback: function () { }
  2011. }, { "style": { "height": "36px" } }).form; //创建窗体
  2012. _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); } }
  2013. break;
  2014. case "library":
  2015. _formdiv = new U.UF.UI.form(
  2016. "素材库",
  2017. $$("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 }), {
  2018. "id": "library",
  2019. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2020. "onresize": function () { }
  2021. }, {
  2022. closecallback: function () { }
  2023. }, { "style": { "height": "36px" } }).form; //创建窗体
  2024. _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); } }
  2025. break;
  2026. case "whiteboard":
  2027. _formdiv = new U.UF.UI.form(
  2028. "电子白板",
  2029. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2030. "id": "whiteboard",
  2031. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2032. "onresize": function () { }
  2033. }, {
  2034. closecallback: function () { }
  2035. }, { "style": { "height": "36px" } }).form; //创建窗体
  2036. _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); } }
  2037. break;
  2038. case "investigation":
  2039. _formdiv = new U.UF.UI.form(
  2040. "问卷调查",
  2041. $$("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 }), {
  2042. "id": "investigation",
  2043. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2044. "onresize": function () { }
  2045. }, {
  2046. closecallback: function () { }
  2047. }, { "style": { "height": "36px" } }).form; //创建窗体
  2048. _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); } }
  2049. break;
  2050. case "note":
  2051. _formdiv = new U.UF.UI.form(
  2052. "便签分类",
  2053. $$("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 }), {
  2054. "id": "note",
  2055. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2056. "onresize": function () { }
  2057. }, {
  2058. closecallback: function () { }
  2059. }, { "style": { "height": "36px" } }).form; //创建窗体
  2060. _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); } }
  2061. break;
  2062. // case "score":
  2063. // _formdiv = new U.UF.UI.form(
  2064. // "量规评分",
  2065. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2066. // "id": "score",
  2067. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2068. // "onresize": function() {}
  2069. // }, {
  2070. // closecallback: function() {}
  2071. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2072. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2073. // break;
  2074. case "mind":
  2075. _formdiv = new U.UF.UI.form(
  2076. "思维导图",
  2077. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  2078. "id": "mind",
  2079. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2080. "onresize": function () { }
  2081. }, {
  2082. closecallback: function () { }
  2083. }, { "style": { "height": "36px" } }).form; //创建窗体
  2084. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2085. break;
  2086. case "doc":
  2087. // U.MD.D.I.isRoom();
  2088. _formdiv = new U.UF.UI.form(
  2089. "协同文档",
  2090. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2091. "id": "doc",
  2092. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2093. "onresize": function () { }
  2094. }, {
  2095. closecallback: function () { }
  2096. }, { "style": { "height": "36px" } }).form; //创建窗体
  2097. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2098. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2099. })
  2100. _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); } }
  2101. break;
  2102. case "train": //好友打开
  2103. _formdiv = new U.UF.UI.form(
  2104. "训练平台",
  2105. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2106. "id": "train",
  2107. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2108. "onresize": function () { }
  2109. }, {
  2110. closecallback: function () { }
  2111. }, { "style": { "height": "36px" } }).form; //创建窗体
  2112. _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); } }
  2113. break;
  2114. case "studentStudy":
  2115. _formdiv = new U.UF.UI.form(
  2116. "课程中心",
  2117. $$("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
  2118. "id": "studentStudy",
  2119. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2120. "onresize": function () { }
  2121. }, {
  2122. closecallback: function () { }
  2123. }, { "style": { "height": "36px" } }).form; //创建窗体
  2124. _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); } }
  2125. break;
  2126. case "mindNetwork": //好友打开
  2127. _formdiv = new U.UF.UI.form(
  2128. "思维网格",
  2129. $$("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 }), {
  2130. "id": "mindNetwork",
  2131. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2132. "onresize": function () { }
  2133. }, {
  2134. closecallback: function () { }
  2135. }, { "style": { "height": "36px" } }).form; //创建窗体
  2136. _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); } }
  2137. break;
  2138. case "studentClassRoom": //好友打开
  2139. _formdiv = new U.UF.UI.form(
  2140. "实时课堂",
  2141. $$("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 }), {
  2142. "id": "studentClassRoom",
  2143. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2144. "onresize": function () { }
  2145. }, {
  2146. closecallback: function () { }
  2147. }, { "style": { "height": "36px" } }).form; //创建窗体
  2148. _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); } }
  2149. setTimeout(() => {
  2150. U.UF.F.windowZooming(_formdiv)
  2151. }, 0);
  2152. break;
  2153. }
  2154. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2155. //选择应用处理
  2156. switch (str) {
  2157. case "project": //好友打开
  2158. _formdiv = new U.UF.UI.form(
  2159. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2160. $$("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 }), {
  2161. "id": "project",
  2162. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2163. "onresize": function () { }
  2164. }, {
  2165. closecallback: function () { }
  2166. }, { "style": { "height": "36px" } }).form; //创建窗体
  2167. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2168. break;
  2169. case "student":
  2170. _formdiv = new U.UF.UI.form(
  2171. "学生管理",
  2172. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  2173. "id": "student",
  2174. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2175. "onresize": function () { }
  2176. }, {
  2177. closecallback: function () { }
  2178. }, { "style": { "height": "36px" } }).form; //创建窗体
  2179. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2180. break;
  2181. case "evaluate":
  2182. _formdiv = new U.UF.UI.form(
  2183. "学生评价",
  2184. $$("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 }), {
  2185. "id": "evaluate",
  2186. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2187. "onresize": function () { }
  2188. }, {
  2189. closecallback: function () { }
  2190. }, { "style": { "height": "36px" } }).form; //创建窗体
  2191. _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); } }
  2192. break;
  2193. case "sys":
  2194. _formdiv = new U.UF.UI.form(
  2195. "目标管理",
  2196. $$("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 }), {
  2197. "id": "sys",
  2198. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2199. "onresize": function () { }
  2200. }, {
  2201. closecallback: function () { }
  2202. }, { "style": { "height": "36px" } }).form; //创建窗体
  2203. _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); } }
  2204. break;
  2205. case "courseDesign":
  2206. _formdiv = new U.UF.UI.form(
  2207. "项目设计",
  2208. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2209. "id": "courseDesign",
  2210. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2211. "onresize": function () { }
  2212. }, {
  2213. closecallback: function () { }
  2214. }, { "style": { "height": "36px" } }).form; //创建窗体
  2215. _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); } }
  2216. break;
  2217. case "program":
  2218. _formdiv = new U.UF.UI.form(
  2219. "编程平台",
  2220. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2221. "id": "program",
  2222. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2223. "onresize": function () { }
  2224. }, {
  2225. closecallback: function () { }
  2226. }, { "style": { "height": "36px" } }).form; //创建窗体
  2227. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2228. break;
  2229. case "class":
  2230. _formdiv = new U.UF.UI.form(
  2231. "班级管理",
  2232. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2233. "id": "class",
  2234. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2235. "onresize": function () { }
  2236. }, {
  2237. closecallback: function () { }
  2238. }, { "style": { "height": "36px" } }).form; //创建窗体
  2239. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2240. break;
  2241. case "my":
  2242. _formdiv = new U.UF.UI.form(
  2243. "我的资料",
  2244. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  2245. "id": "my",
  2246. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2247. "onresize": function () { }
  2248. }, {
  2249. closecallback: function () { }
  2250. }, { "style": { "height": "36px" } }).form; //创建窗体
  2251. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2252. break;
  2253. case "notice":
  2254. _formdiv = new U.UF.UI.form(
  2255. "通知公告",
  2256. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  2257. "id": "notice",
  2258. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2259. "onresize": function () { }
  2260. }, {
  2261. closecallback: function () { }
  2262. }, { "style": { "height": "36px" } }).form; //创建窗体
  2263. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2264. break;
  2265. case "library":
  2266. _formdiv = new U.UF.UI.form(
  2267. "素材库",
  2268. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  2269. "id": "library",
  2270. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2271. "onresize": function () { }
  2272. }, {
  2273. closecallback: function () { }
  2274. }, { "style": { "height": "36px" } }).form; //创建窗体
  2275. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2276. break;
  2277. case "whiteboard":
  2278. _formdiv = new U.UF.UI.form(
  2279. "电子白板",
  2280. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2281. "id": "whiteboard",
  2282. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2283. "onresize": function () { }
  2284. }, {
  2285. closecallback: function () { }
  2286. }, { "style": { "height": "36px" } }).form; //创建窗体
  2287. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2288. break;
  2289. case "investigation":
  2290. _formdiv = new U.UF.UI.form(
  2291. "问卷调查",
  2292. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  2293. "id": "investigation",
  2294. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2295. "onresize": function () { }
  2296. }, {
  2297. closecallback: function () { }
  2298. }, { "style": { "height": "36px" } }).form; //创建窗体
  2299. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2300. break;
  2301. case "note":
  2302. _formdiv = new U.UF.UI.form(
  2303. "便签分类",
  2304. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  2305. "id": "note",
  2306. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2307. "onresize": function () { }
  2308. }, {
  2309. closecallback: function () { }
  2310. }, { "style": { "height": "36px" } }).form; //创建窗体
  2311. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2312. break;
  2313. // case "score":
  2314. // _formdiv = new U.UF.UI.form(
  2315. // "量规评分",
  2316. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2317. // "id": "score",
  2318. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2319. // "onresize": function() {}
  2320. // }, {
  2321. // closecallback: function() {}
  2322. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2323. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2324. // break;
  2325. case "mind":
  2326. _formdiv = new U.UF.UI.form(
  2327. "思维导图",
  2328. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  2329. "id": "mind",
  2330. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2331. "onresize": function () { }
  2332. }, {
  2333. closecallback: function () { }
  2334. }, { "style": { "height": "36px" } }).form; //创建窗体
  2335. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2336. break;
  2337. case "doc":
  2338. // U.MD.D.I.isRoom();
  2339. _formdiv = new U.UF.UI.form(
  2340. "协同文档",
  2341. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2342. "id": "doc",
  2343. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2344. "onresize": function () { }
  2345. }, {
  2346. closecallback: function () { }
  2347. }, { "style": { "height": "36px" } }).form; //创建窗体
  2348. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2349. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2350. })
  2351. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/doc.png)" }, "name": "协同文档", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2352. break;
  2353. case "study":
  2354. _formdiv = new U.UF.UI.form(
  2355. "课程中心",
  2356. $$("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
  2357. "id": "study",
  2358. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2359. "onresize": function () { }
  2360. }, {
  2361. closecallback: function () { }
  2362. }, { "style": { "height": "36px" } }).form; //创建窗体
  2363. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2364. break;
  2365. case "mindNetwork": //好友打开
  2366. _formdiv = new U.UF.UI.form(
  2367. "思维网格",
  2368. $$("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 }), {
  2369. "id": "mindNetwork",
  2370. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2371. "onresize": function () { }
  2372. }, {
  2373. closecallback: function () { }
  2374. }, { "style": { "height": "36px" } }).form; //创建窗体
  2375. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2376. break;
  2377. case "train": //好友打开
  2378. _formdiv = new U.UF.UI.form(
  2379. "训练平台",
  2380. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2381. "id": "mindNetwork",
  2382. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2383. "onresize": function () { }
  2384. }, {
  2385. closecallback: function () { }
  2386. }, { "style": { "height": "36px" } }).form; //创建窗体
  2387. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2388. break;
  2389. case "teacherClassRoom": //好友打开
  2390. _formdiv = new U.UF.UI.form(
  2391. "实时课堂",
  2392. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/classRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2393. "id": "teacherClassRoom",
  2394. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2395. "onresize": function () { }
  2396. }, {
  2397. closecallback: function () { }
  2398. }, { "style": { "height": "36px" } }).form; //创建窗体
  2399. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2400. setTimeout(() => {
  2401. U.UF.F.windowZooming(_formdiv)
  2402. }, 0);
  2403. break;
  2404. }
  2405. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2406. switch (str) {
  2407. case "project": //好友打开
  2408. _formdiv = new U.UF.UI.form(
  2409. "课程管理",
  2410. $$("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 }), {
  2411. "id": "project",
  2412. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2413. "onresize": function () { }
  2414. }, {
  2415. closecallback: function () { }
  2416. }, { "style": { "height": "36px" } }).form; //创建窗体
  2417. _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); } }
  2418. break;
  2419. case "evaluate":
  2420. _formdiv = new U.UF.UI.form(
  2421. "学生评价",
  2422. $$("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 }), {
  2423. "id": "evaluate",
  2424. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2425. "onresize": function () { }
  2426. }, {
  2427. closecallback: function () { }
  2428. }, { "style": { "height": "36px" } }).form; //创建窗体
  2429. _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); } }
  2430. break;
  2431. case "notice":
  2432. _formdiv = new U.UF.UI.form(
  2433. "通知公告",
  2434. $$("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 }), {
  2435. "id": "notice",
  2436. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2437. "onresize": function () { }
  2438. }, {
  2439. closecallback: function () { }
  2440. }, { "style": { "height": "36px" } }).form; //创建窗体
  2441. _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); } }
  2442. break;
  2443. case "stuLibrary":
  2444. _formdiv = new U.UF.UI.form(
  2445. "学习资料",
  2446. $$("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 }), {
  2447. "id": "stuLibrary",
  2448. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2449. "onresize": function () { }
  2450. }, {
  2451. closecallback: function () { }
  2452. }, { "style": { "height": "36px" } }).form; //创建窗体
  2453. _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); } }
  2454. break;
  2455. case "program":
  2456. _formdiv = new U.UF.UI.form(
  2457. "编程平台",
  2458. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2459. "id": "program",
  2460. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2461. "onresize": function () { }
  2462. }, {
  2463. closecallback: function () { }
  2464. }, { "style": { "height": "36px" } }).form; //创建窗体
  2465. _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); } }
  2466. break;
  2467. case "whiteboard":
  2468. _formdiv = new U.UF.UI.form(
  2469. "电子白板",
  2470. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2471. "id": "whiteboard",
  2472. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2473. "onresize": function () { }
  2474. }, {
  2475. closecallback: function () { }
  2476. }, { "style": { "height": "36px" } }).form; //创建窗体
  2477. _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); } }
  2478. break;
  2479. case "investigation":
  2480. _formdiv = new U.UF.UI.form(
  2481. "问卷调查",
  2482. $$("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 }), {
  2483. "id": "investigation",
  2484. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2485. "onresize": function () { }
  2486. }, {
  2487. closecallback: function () { }
  2488. }, { "style": { "height": "36px" } }).form; //创建窗体
  2489. _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); } }
  2490. break;
  2491. case "mind":
  2492. _formdiv = new U.UF.UI.form(
  2493. "思维导图",
  2494. $$("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"
  2495. "id": "mind",
  2496. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2497. "onresize": function () { }
  2498. }, {
  2499. closecallback: function () { }
  2500. }, { "style": { "height": "36px" } }).form; //创建窗体
  2501. _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); } }
  2502. break;
  2503. case "doc":
  2504. // U.MD.D.I.isRoom();
  2505. _formdiv = new U.UF.UI.form(
  2506. "协同文档",
  2507. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2508. "id": "doc",
  2509. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2510. "onresize": function () { }
  2511. }, {
  2512. closecallback: function () { }
  2513. }, { "style": { "height": "36px" } }).form; //创建窗体
  2514. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2515. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2516. })
  2517. _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); } }
  2518. break;
  2519. case "study":
  2520. _formdiv = new U.UF.UI.form(
  2521. "课程中心",
  2522. $$("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
  2523. "id": "study",
  2524. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2525. "onresize": function () { }
  2526. }, {
  2527. closecallback: function () { }
  2528. }, { "style": { "height": "36px" } }).form; //创建窗体
  2529. _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); } }
  2530. break;
  2531. case "mindNetwork": //好友打开
  2532. _formdiv = new U.UF.UI.form(
  2533. "思维网格",
  2534. $$("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 }), {
  2535. "id": "mindNetwork",
  2536. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2537. "onresize": function () { }
  2538. }, {
  2539. closecallback: function () { }
  2540. }, { "style": { "height": "36px" } }).form; //创建窗体
  2541. _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); } }
  2542. break;
  2543. case "train": //好友打开
  2544. _formdiv = new U.UF.UI.form(
  2545. "训练平台",
  2546. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2547. "id": "train",
  2548. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2549. "onresize": function () { }
  2550. }, {
  2551. closecallback: function () { }
  2552. }, { "style": { "height": "36px" } }).form; //创建窗体
  2553. _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); } }
  2554. break;
  2555. case "sys":
  2556. _formdiv = new U.UF.UI.form(
  2557. "目标管理",
  2558. $$("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 }), {
  2559. "id": "sys",
  2560. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2561. "onresize": function () { }
  2562. }, {
  2563. closecallback: function () { }
  2564. }, { "style": { "height": "36px" } }).form; //创建窗体
  2565. _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); } }
  2566. break;
  2567. case "courseDesign":
  2568. _formdiv = new U.UF.UI.form(
  2569. "项目设计",
  2570. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2571. "id": "courseDesign",
  2572. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2573. "onresize": function () { }
  2574. }, {
  2575. closecallback: function () { }
  2576. }, { "style": { "height": "36px" } }).form; //创建窗体
  2577. _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); } }
  2578. break;
  2579. }
  2580. } else if (!_type) {
  2581. switch (str) {
  2582. case "my":
  2583. _formdiv = new U.UF.UI.form(
  2584. "我的资料",
  2585. $$("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 }), {
  2586. "id": "my",
  2587. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2588. "onresize": function () { }
  2589. }, {
  2590. closecallback: function () { }
  2591. }, { "style": { "height": "36px" } }).form; //创建窗体
  2592. _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); } }
  2593. break;
  2594. }
  2595. }
  2596. switch (str) {
  2597. // AIprogram2 AI体验 aihub.cocorobo.cn
  2598. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2599. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2600. case "AIprogram2": //AI体验
  2601. _formdiv = new U.UF.UI.form(
  2602. "AI体验",
  2603. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2604. "id": "AIprogram2",
  2605. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2606. "onresize": function () { }
  2607. }, {
  2608. closecallback: function () { }
  2609. }, { "style": { "height": "36px" } }).form; //创建窗体
  2610. _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); } }
  2611. break;
  2612. case "Pythonprogram": //python编程
  2613. _formdiv = new U.UF.UI.form(
  2614. "Python编程",
  2615. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2616. "id": "Pythonprogram",
  2617. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2618. "onresize": function () { }
  2619. }, {
  2620. closecallback: function () { }
  2621. }, { "style": { "height": "36px" } }).form; //创建窗体
  2622. _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); } }
  2623. break;
  2624. case "AIprogram": //ai编程
  2625. _formdiv = new U.UF.UI.form(
  2626. "AI编程平台",
  2627. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2628. "id": "AIprogram",
  2629. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2630. "onresize": function () { }
  2631. }, {
  2632. closecallback: function () { }
  2633. }, { "style": { "height": "36px" } }).form; //创建窗体
  2634. _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); } }
  2635. break;
  2636. case "CocoPi": //CocoPi
  2637. _formdiv = new U.UF.UI.form(
  2638. "CocoPi",
  2639. $$("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" }), {
  2640. "id": "CocoPi",
  2641. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2642. "onresize": function () { }
  2643. }, {
  2644. closecallback: function () { }
  2645. }, { "style": { "height": "36px" } }).form; //创建窗体
  2646. _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); } }
  2647. break;
  2648. case "Wood": //Wood
  2649. _formdiv = new U.UF.UI.form(
  2650. "海龟编程",
  2651. $$("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/" }), {
  2652. "id": "Wood",
  2653. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2654. "onresize": function () { }
  2655. }, {
  2656. closecallback: function () { }
  2657. }, { "style": { "height": "36px" } }).form; //创建窗体
  2658. _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); } }
  2659. break;
  2660. case "car": //模拟驾驶
  2661. _formdiv = new U.UF.UI.form(
  2662. "模拟驾驶",
  2663. $$("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/" }), {
  2664. "id": "car",
  2665. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2666. "onresize": function () { }
  2667. }, {
  2668. closecallback: function () { }
  2669. }, { "style": { "height": "36px" } }).form; //创建窗体
  2670. _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); } }
  2671. break;
  2672. case "lineSearch": //路径搜索
  2673. _formdiv = new U.UF.UI.form(
  2674. "路径搜索",
  2675. $$("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/" }), {
  2676. "id": "lineSearch",
  2677. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2678. "onresize": function () { }
  2679. }, {
  2680. closecallback: function () { }
  2681. }, { "style": { "height": "36px" } }).form; //创建窗体
  2682. _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); } }
  2683. break;
  2684. case "deepLearning": //深度学习
  2685. _formdiv = new U.UF.UI.form(
  2686. "深度学习",
  2687. $$("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/#" }), {
  2688. "id": "deepLearning",
  2689. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2690. "onresize": function () { }
  2691. }, {
  2692. closecallback: function () { }
  2693. }, { "style": { "height": "36px" } }).form; //创建窗体
  2694. _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); } }
  2695. break;
  2696. case "allHistory": //深度学习
  2697. _formdiv = new U.UF.UI.form(
  2698. "全历史",
  2699. $$("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/" }), {
  2700. "id": "allHistory",
  2701. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2702. "onresize": function () { }
  2703. }, {
  2704. closecallback: function () { }
  2705. }, { "style": { "height": "36px" } }).form; //创建窗体
  2706. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/allHistory.png)" }, "name": "全历史", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2707. break;
  2708. case "chatPDF": //ai编程
  2709. _formdiv = new U.UF.UI.form(
  2710. "chatPDF",
  2711. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2712. "id": "chatPDF",
  2713. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2714. "onresize": function () { }
  2715. }, {
  2716. closecallback: function () { }
  2717. }, { "style": { "height": "36px" } }).form; //创建窗体
  2718. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/chatPDF.png)" }, "name": "chatPDF", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2719. break;
  2720. case "resources": //国家教育
  2721. _formdiv = new U.UF.UI.form(
  2722. "国家教育",
  2723. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2724. "id": "resources",
  2725. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2726. "onresize": function () { }
  2727. }, {
  2728. closecallback: function () { }
  2729. }, { "style": { "height": "36px" } }).form; //创建窗体
  2730. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/resources.png)" }, "name": "国家教育", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2731. break;
  2732. case "codeEdit": //源码编辑
  2733. _formdiv = new U.UF.UI.form(
  2734. "源码编辑",
  2735. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2736. "id": "codeEdit",
  2737. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2738. "onresize": function () { }
  2739. }, {
  2740. closecallback: function () { }
  2741. }, { "style": { "height": "36px" } }).form; //创建窗体
  2742. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/code.png)" }, "name": "源码编辑", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2743. break; //
  2744. case "MindMap": //MindMap
  2745. _formdiv = new U.UF.UI.form(
  2746. "MindMap",
  2747. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2748. "id": "MindMap",
  2749. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2750. "onresize": function () { }
  2751. }, {
  2752. closecallback: function () { }
  2753. }, { "style": { "height": "36px" } }).form; //创建窗体
  2754. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/MIndMap.png)" }, "name": "MindMap", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2755. break;
  2756. case "netWorkPanel": //netWorkPanel
  2757. _formdiv = new U.UF.UI.form(
  2758. "netWorkPanel",
  2759. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2760. "id": "netWorkPanel",
  2761. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2762. "onresize": function () { }
  2763. }, {
  2764. closecallback: function () { }
  2765. }, { "style": { "height": "36px" } }).form; //创建窗体
  2766. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/netWorkPanel.png)" }, "name": "netWorkPanel", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2767. break;
  2768. case "GeoGebra": //GeoGebra
  2769. _formdiv = new U.UF.UI.form(
  2770. "GeoGebra",
  2771. $$("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" }), {
  2772. "id": "GeoGebra",
  2773. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2774. "onresize": function () { }
  2775. }, {
  2776. closecallback: function () { }
  2777. }, { "style": { "height": "36px" } }).form; //创建窗体
  2778. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/GeoGebra.png)" }, "name": "GeoGebra", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2779. break;
  2780. case "translation": //翻译
  2781. _formdiv = new U.UF.UI.form(
  2782. "翻译",
  2783. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2784. "id": "translation",
  2785. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2786. "onresize": function () { }
  2787. }, {
  2788. closecallback: function () { }
  2789. }, { "style": { "height": "36px" } }).form; //创建窗体
  2790. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/translation.png)" }, "name": "翻译", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2791. break;
  2792. case "mohe": //魔盒
  2793. _formdiv = new U.UF.UI.form(
  2794. "魔盒识字",
  2795. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2796. "id": "mohe",
  2797. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2798. "onresize": function () { }
  2799. }, {
  2800. closecallback: function () { }
  2801. }, { "style": { "height": "36px" } }).form; //创建窗体
  2802. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mohe.png)" }, "name": "魔盒识字", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2803. break;
  2804. case "24game": //24点
  2805. _formdiv = new U.UF.UI.form(
  2806. "24点",
  2807. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2808. "id": "24game",
  2809. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2810. "onresize": function () { }
  2811. }, {
  2812. closecallback: function () { }
  2813. }, { "style": { "height": "36px" } }).form; //创建窗体
  2814. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/24game.png)" }, "name": "24点", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2815. break;
  2816. case "case":
  2817. _formdiv = new U.UF.UI.form(
  2818. "课程进展",
  2819. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesign?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2820. "id": "case",
  2821. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2822. "onresize": function () { }
  2823. }, {
  2824. closecallback: function () { }
  2825. }, { "style": { "height": "36px" } }).form; //创建窗体
  2826. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/case.png)" }, "name": "课程进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2827. break;
  2828. case "snf":
  2829. _formdiv = new U.UF.UI.form(
  2830. "赛诺梵",
  2831. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//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" }), {
  2832. "id": "snf",
  2833. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2834. "onresize": function () { }
  2835. }, {
  2836. closecallback: function () { }
  2837. }, { "style": { "height": "36px" } }).form; //创建窗体
  2838. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/snf.png)" }, "name": "赛诺梵", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2839. break;
  2840. case "hanFamily":
  2841. _formdiv = new U.UF.UI.form(
  2842. "汉字家族",
  2843. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2844. "id": "hanFamily",
  2845. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2846. "onresize": function () { }
  2847. }, {
  2848. closecallback: function () { }
  2849. }, { "style": { "height": "36px" } }).form; //创建窗体
  2850. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanFamily.png)" }, "name": "汉字家族", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2851. break;
  2852. case "hanClassics":
  2853. _formdiv = new U.UF.UI.form(
  2854. "国学经典",
  2855. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2856. "id": "hanClassics",
  2857. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2858. "onresize": function () { }
  2859. }, {
  2860. closecallback: function () { }
  2861. }, { "style": { "height": "36px" } }).form; //创建窗体
  2862. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClassics.png)" }, "name": "国学经典", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2863. break;
  2864. case "hanTraining":
  2865. _formdiv = new U.UF.UI.form(
  2866. "笔画训练",
  2867. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2868. "id": "hanTraining",
  2869. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2870. "onresize": function () { }
  2871. }, {
  2872. closecallback: function () { }
  2873. }, { "style": { "height": "36px" } }).form; //创建窗体
  2874. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanTraining.png)" }, "name": "笔画训练", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2875. break;
  2876. case "hanClass":
  2877. _formdiv = new U.UF.UI.form(
  2878. "书法课堂",
  2879. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2880. "id": "hanClass",
  2881. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2882. "onresize": function () { }
  2883. }, {
  2884. closecallback: function () { }
  2885. }, { "style": { "height": "36px" } }).form; //创建窗体
  2886. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "书法课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2887. break;
  2888. case "han":
  2889. _formdiv = new U.UF.UI.form(
  2890. "汉字宫",
  2891. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2892. "id": "han",
  2893. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2894. "onresize": function () { }
  2895. }, {
  2896. closecallback: function () { }
  2897. }, { "style": { "height": "36px" } }).form; //创建窗体
  2898. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/han.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2899. break;
  2900. case "projectGM": //课程管理
  2901. _formdiv = new U.UF.UI.form(
  2902. "课程管理",
  2903. $$("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 }), {
  2904. "id": "projectGM",
  2905. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2906. "onresize": function () { }
  2907. }, {
  2908. closecallback: function () { }
  2909. }, { "style": { "height": "36px" } }).form; //创建窗体
  2910. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/courseMange.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2911. break;
  2912. case "studyGM"://课程中心
  2913. _formdiv = new U.UF.UI.form(
  2914. "课程中心",
  2915. $$("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
  2916. "id": "study",
  2917. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2918. "onresize": function () { }
  2919. }, {
  2920. closecallback: function () { }
  2921. }, { "style": { "height": "36px" } }).form; //创建窗体
  2922. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2923. break;
  2924. // studentGM
  2925. case "studentGM"://学生管理
  2926. _formdiv = new U.UF.UI.form(
  2927. "学生管理",
  2928. $$("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 }), {
  2929. "id": "studentGM",
  2930. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2931. "onresize": function () { }
  2932. }, {
  2933. closecallback: function () { }
  2934. }, { "style": { "height": "36px" } }).form; //创建窗体
  2935. _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); } }
  2936. break;
  2937. case "evaluateGM"://学生评价
  2938. _formdiv = new U.UF.UI.form(
  2939. "学生评价",
  2940. $$("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 }), {
  2941. "id": "evaluateGM",
  2942. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2943. "onresize": function () { }
  2944. }, {
  2945. closecallback: function () { }
  2946. }, { "style": { "height": "36px" } }).form; //创建窗体
  2947. _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); } }
  2948. break;
  2949. // classGM
  2950. case "classGM"://班级管理
  2951. _formdiv = new U.UF.UI.form(
  2952. "班级管理",
  2953. $$("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 }), {
  2954. "id": "classGM",
  2955. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2956. "onresize": function () { }
  2957. }, {
  2958. closecallback: function () { }
  2959. }, { "style": { "height": "36px" } }).form; //创建窗体
  2960. _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); } }
  2961. break;
  2962. // dataGM
  2963. case "dataGM":
  2964. _formdiv = new U.UF.UI.form(
  2965. "我的资料",
  2966. $$("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 }), {
  2967. "id": "dataGM",
  2968. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2969. "onresize": function () { }
  2970. }, {
  2971. closecallback: function () { }
  2972. }, { "style": { "height": "36px" } }).form; //创建窗体
  2973. _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); } }
  2974. break;
  2975. // caseGM
  2976. case "caseGM"://课程进展
  2977. _formdiv = new U.UF.UI.form(
  2978. "课程进展",
  2979. $$("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 }), {
  2980. "id": "caseGM",
  2981. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2982. "onresize": function () { }
  2983. }, {
  2984. closecallback: function () { }
  2985. }, { "style": { "height": "36px" } }).form; //创建窗体
  2986. _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); } }
  2987. break;
  2988. // meterialGM
  2989. case "meterialGM"://素材库
  2990. _formdiv = new U.UF.UI.form(
  2991. "素材库",
  2992. $$("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 }), {
  2993. "id": "meterialGM",
  2994. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2995. "onresize": function () { }
  2996. }, {
  2997. closecallback: function () { }
  2998. }, { "style": { "height": "36px" } }).form; //创建窗体
  2999. _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); } }
  3000. break;
  3001. // evaluateSGM
  3002. case "evaluateSGM": //我的评价
  3003. _formdiv = new U.UF.UI.form(
  3004. "我的评价",
  3005. $$("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 }), {
  3006. "id": "evaluateSGM",
  3007. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3008. "onresize": function () { }
  3009. }, {
  3010. closecallback: function () { }
  3011. }, { "style": { "height": "36px" } }).form; //创建窗体
  3012. _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); } }
  3013. break;
  3014. case "jupyter": //jupyter
  3015. _formdiv = new U.UF.UI.form(
  3016. "jupyter",
  3017. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3018. "id": "jupyter",
  3019. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3020. "onresize": function () { }
  3021. }, {
  3022. closecallback: function () { }
  3023. }, { "style": { "height": "36px" } }).form; //创建窗体
  3024. _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); } }
  3025. break;
  3026. case "number": //数字实验室
  3027. _formdiv = new U.UF.UI.form(
  3028. "数字实验室",
  3029. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3030. "id": "number",
  3031. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3032. "onresize": function () { }
  3033. }, {
  3034. closecallback: function () { }
  3035. }, { "style": { "height": "36px" } }).form; //创建窗体
  3036. _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); } }
  3037. break;
  3038. case "studentCourse": //项目管理 学生
  3039. _formdiv = new U.UF.UI.form(
  3040. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3041. $$("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 }), {
  3042. "id": "studentCourse",
  3043. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3044. "onresize": function () { }
  3045. }, {
  3046. closecallback: function () { }
  3047. }, { "style": { "height": "36px" } }).form; //创建窗体
  3048. _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); } }
  3049. break;
  3050. case "studentCourseS": //项目管理 老师
  3051. _formdiv = new U.UF.UI.form(
  3052. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3053. $$("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 }), {
  3054. "id": "studentCourseS",
  3055. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3056. "onresize": function () { }
  3057. }, {
  3058. closecallback: function () { }
  3059. }, { "style": { "height": "36px" } }).form; //创建窗体
  3060. _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); } }
  3061. break;
  3062. case "studentIndex": //项目中心
  3063. _formdiv = new U.UF.UI.form(
  3064. "项目中心",
  3065. $$("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 }), {
  3066. "id": "studentIndex",
  3067. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3068. "onresize": function () { }
  3069. }, {
  3070. closecallback: function () { }
  3071. }, { "style": { "height": "36px" } }).form; //创建窗体
  3072. _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); } }
  3073. break;
  3074. case "CaseDesignS":
  3075. _formdiv = new U.UF.UI.form(
  3076. "项目进展",
  3077. $$("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 }), {
  3078. "id": "case",
  3079. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3080. "onresize": function () { }
  3081. }, {
  3082. closecallback: function () { }
  3083. }, { "style": { "height": "36px" } }).form; //创建窗体
  3084. _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); } }
  3085. break;
  3086. case "tcStudent": //腾讯学生管理
  3087. _formdiv = new U.UF.UI.form(
  3088. "学生管理",
  3089. $$("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 }), {
  3090. "id": "tcStudent",
  3091. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3092. "onresize": function () { }
  3093. }, {
  3094. closecallback: function () { }
  3095. }, { "style": { "height": "36px" } }).form; //创建窗体
  3096. _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); } }
  3097. break;
  3098. case "tcSchool": //腾讯学校管理
  3099. _formdiv = new U.UF.UI.form(
  3100. "学校管理",
  3101. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcSchool?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3102. "id": "tcSchool",
  3103. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3104. "onresize": function () { }
  3105. }, {
  3106. closecallback: function () { }
  3107. }, { "style": { "height": "36px" } }).form; //创建窗体
  3108. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/school.png)" }, "name": "学校管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3109. break;
  3110. case "tcTeacher": //腾讯学校管理
  3111. _formdiv = new U.UF.UI.form(
  3112. "教师管理",
  3113. $$("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 }), {
  3114. "id": "tcTeacher",
  3115. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3116. "onresize": function () { }
  3117. }, {
  3118. closecallback: function () { }
  3119. }, { "style": { "height": "36px" } }).form; //创建窗体
  3120. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/teacher.png)" }, "name": "教师管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3121. break;
  3122. case "tcData": //腾讯我的资料
  3123. _formdiv = new U.UF.UI.form(
  3124. "我的资料",
  3125. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcData?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3126. "id": "tcData",
  3127. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3128. "onresize": function () { }
  3129. }, {
  3130. closecallback: function () { }
  3131. }, { "style": { "height": "36px" } }).form; //创建窗体
  3132. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3133. break;
  3134. case "tcNotice": //腾讯消息通知
  3135. _formdiv = new U.UF.UI.form(
  3136. "消息通知",
  3137. $$("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 }), {
  3138. "id": "tcNotice",
  3139. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3140. "onresize": function () { }
  3141. }, {
  3142. closecallback: function () { }
  3143. }, { "style": { "height": "36px" } }).form; //创建窗体
  3144. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "消息通知", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3145. break;
  3146. case "myReport": //好友打开
  3147. _formdiv = new U.UF.UI.form(
  3148. "我的评价",
  3149. $$("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 }), {
  3150. "id": "myReport",
  3151. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3152. "onresize": function () { }
  3153. }, {
  3154. closecallback: function () { }
  3155. }, { "style": { "height": "36px" } }).form; //创建窗体
  3156. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3157. break;
  3158. case "learnAna": //好友打开
  3159. _formdiv = new U.UF.UI.form(
  3160. "学习分析",
  3161. $$("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 }), {
  3162. "id": "learnAna",
  3163. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3164. "onresize": function () { }
  3165. }, {
  3166. closecallback: function () { }
  3167. }, { "style": { "height": "36px" } }).form; //创建窗体
  3168. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/learnAna.png)" }, "name": "学习分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3169. break;
  3170. case "AIChat": //AI共创
  3171. _formdiv = new U.UF.UI.form(
  3172. "AI共创",
  3173. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3174. "id": "AIChat",
  3175. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3176. "onresize": function () { }
  3177. }, {
  3178. istop: true,
  3179. closecallback: function () { $("#aichat_icon").remove(); },
  3180. narrowcallback: function () {
  3181. if (!$("#aichat_icon")[0]) {
  3182. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3183. }
  3184. },
  3185. }, { "style": { "height": "36px" } }).form; //创建窗体
  3186. _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); } }
  3187. break;
  3188. case "AIAnalyse": //AI共创
  3189. _formdiv = new U.UF.UI.form(
  3190. "AI分析",
  3191. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3192. "id": "AIAnalyse",
  3193. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3194. "onresize": function () { }
  3195. }, {
  3196. closecallback: function () { }
  3197. }, { "style": { "height": "36px" } }).form; //创建窗体
  3198. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3199. break;
  3200. case "studioCourse": //AI共创
  3201. _formdiv = new U.UF.UI.form(
  3202. "工作管理",
  3203. $$("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 }), {
  3204. "id": "studioCourse",
  3205. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3206. "onresize": function () { }
  3207. }, {
  3208. closecallback: function () { }
  3209. }, { "style": { "height": "36px" } }).form; //创建窗体
  3210. _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); } }
  3211. break;
  3212. case "studioIndex": //AI共创
  3213. _formdiv = new U.UF.UI.form(
  3214. "工作中心",
  3215. $$("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 }), {
  3216. "id": "studioIndex",
  3217. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3218. "onresize": function () { }
  3219. }, {
  3220. closecallback: function () { }
  3221. }, { "style": { "height": "36px" } }).form; //创建窗体
  3222. _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); } }
  3223. break;
  3224. case "source":
  3225. _formdiv = new U.UF.UI.form(
  3226. "教学资源",
  3227. $$("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 }), {
  3228. "id": "source",
  3229. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3230. "onresize": function () { }
  3231. }, {
  3232. closecallback: function () { }
  3233. }, { "style": { "height": "36px" } }).form; //创建窗体
  3234. _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); } }
  3235. break;
  3236. }
  3237. //U.MD.D.I.openClick(str);
  3238. //如果有任务栏信息
  3239. if (_taskbar) {
  3240. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3241. }
  3242. }
  3243. // U.MD.D.I.openClick = function(str){
  3244. // var click = '';
  3245. // switch(str){
  3246. // case 'friend':
  3247. // click = '我的好友';
  3248. // break;
  3249. // case 'domain':
  3250. // click = '域名管理';
  3251. // break;
  3252. // case 'disk':
  3253. // click = '我的云盘';
  3254. // break;
  3255. // case 'word':
  3256. // click = 'Word';
  3257. // break;
  3258. // case 'excel':
  3259. // click = 'Execl';
  3260. // break;
  3261. // case 'txt':
  3262. // click = '文本文件';
  3263. // break;
  3264. // case 'lookupFriend':
  3265. // click = '查找好友';
  3266. // break;
  3267. // case 'ftp':
  3268. // click = 'FTP';
  3269. // break;
  3270. // case 'group':
  3271. // click = '群组';
  3272. // break;
  3273. // case 'set':
  3274. // click = '我的设置';
  3275. // break;
  3276. // case 'systemSet':
  3277. // click = '系统设置';
  3278. // break;
  3279. // case 'boomYun':
  3280. // click = '互联办公';
  3281. // break;
  3282. // case 'xz':
  3283. // click = '云端下载';
  3284. // break;
  3285. // case 'client':
  3286. // click = '有思浏览器';
  3287. // break;
  3288. // case 'backEndProgramming':
  3289. // click = '在线后台编程';
  3290. // break;
  3291. // case 'frontEndProgramming':
  3292. // click = '在线前端编程';
  3293. // break;
  3294. // default: break;
  3295. // }
  3296. // if(U.MD.D.I.Ip && click){
  3297. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3298. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3299. // })
  3300. // }
  3301. // }
  3302. /**
  3303. *函数作用:ajax简易函数,使用post格式
  3304. *@param url {data} 后台地址
  3305. *@param data {data} 参数json
  3306. *@param fn {data} 回调函数
  3307. *
  3308. */
  3309. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3310. // var xhr = new XMLHttpRequest();
  3311. // xhr.open("GET",url,true);
  3312. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3313. // xhr.onreadystatechange = function(){
  3314. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3315. // fn.call(this,xhr.responseText);
  3316. // }
  3317. // };
  3318. // xhr.send();
  3319. // }
  3320. /*判断是否是内网IP*/
  3321. // U.MD.D.I.isInnerIPFn = function(str){
  3322. // var curPageUrl = str;
  3323. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3324. // curPageUrl =curPageUrl.replace(reg1,'');
  3325. // // console.log('curPageUrl-1 '+curPageUrl);
  3326. // var reg2 = /\:+/g;//替换冒号为一点
  3327. // curPageUrl =curPageUrl.replace(reg2,'.');
  3328. // // console.log('curPageUrl-2 '+curPageUrl);
  3329. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3330. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3331. // if(curPageUrl[2] != '16'){
  3332. // return ipAddress;
  3333. // }else{
  3334. // return false;
  3335. // }
  3336. // }
  3337. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3338. // //compatibility for firefox and chrome
  3339. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3340. // var pc = new myPeerConnection({
  3341. // iceServers: []
  3342. // }),
  3343. // noop = function() {},
  3344. // localIPs = {},
  3345. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3346. // key;
  3347. // function iterateIP(ip) {
  3348. // if (!localIPs[ip]) onNewIP(ip);
  3349. // localIPs[ip] = true;
  3350. // }
  3351. // //create a bogus data channel
  3352. // pc.createDataChannel("");
  3353. // // create offer and set local description
  3354. // pc.createOffer().then(function(sdp) {
  3355. // sdp.sdp.split('\n').forEach(function(line) {
  3356. // if (line.indexOf('candidate') < 0) return;
  3357. // line.match(ipRegex).forEach(iterateIP);
  3358. // });
  3359. // pc.setLocalDescription(sdp, noop, noop);
  3360. // }).catch(function(reason) {
  3361. // // An error occurred, so handle the failure to connect
  3362. // });
  3363. // //sten for candidate events
  3364. // pc.onicecandidate = function(ice) {
  3365. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3366. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3367. // };
  3368. // }
  3369. // U.MD.D.I.getUserIpBool = function(callback){
  3370. // U.MD.D.I.getUserIP(function(ip){
  3371. // alert("Got IP! :" + ip);
  3372. // });
  3373. //}
  3374. //#endregion
  3375. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3376. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3377. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3378. _userinfo = US.userInfo, //登录用户信息
  3379. _userid = US.userInfo.userid //登录用户id
  3380. let _iframe;
  3381. let _cid = cid,
  3382. _stage = stage,
  3383. _task = task,
  3384. _tool = tool;
  3385. var _jie = $$("div", {
  3386. "style": {
  3387. "position": "absolute",
  3388. "bottom": "50px",
  3389. "right": "50px",
  3390. "zIndex": "9999",
  3391. "backgroundColor": "#2268bc",
  3392. "color": "#fff",
  3393. "padding": "12px 20px",
  3394. "cursor": "pointer",
  3395. "borderRadius": "4px",
  3396. },
  3397. "innerHTML": "提交作业"
  3398. })
  3399. let aTool = ''
  3400. let _loading = document.createElement('div')
  3401. _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;"
  3402. // _loading.id = "";
  3403. let _lchild = document.createElement('div')
  3404. let _limg = document.createElement('img')
  3405. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3406. _limg.style = "width: 26px;margin-right: 10px;"
  3407. _lchild.appendChild(_limg)
  3408. let _lspan = document.createElement('span')
  3409. _lspan.innerHTML = "上传中..."
  3410. _lchild.appendChild(_lspan)
  3411. _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%);"
  3412. _loading.appendChild(_lchild)
  3413. var _box = $$('div', {
  3414. "style": {
  3415. "position": "relative",
  3416. "width": "100%",
  3417. "height": "100%",
  3418. },
  3419. })
  3420. _box.appendChild(_loading)
  3421. _box.id = str + '_loadLi'
  3422. switch (str) {
  3423. case "whiteboard":
  3424. aTool = 1;
  3425. _iframe = $$("iframe", {
  3426. "frameborder": "no",
  3427. "border": "0",
  3428. "scrolling ": "no",
  3429. "style": {
  3430. "cssText": "border:0;width:100%;height:100%"
  3431. },
  3432. "src": "https://iwb.cocorobo.cn/"
  3433. })
  3434. _box.appendChild(_iframe);
  3435. _box.appendChild(_jie);
  3436. _formdiv = new U.UF.UI.form(
  3437. "电子白板",
  3438. _box, {
  3439. "id": "whiteboard" + cid + stage + task + tool,
  3440. "style": {
  3441. "width": "90%",
  3442. "height": "90%",
  3443. "overflow": 'hidden'
  3444. },
  3445. "onresize": function () { }
  3446. }, {
  3447. closecallback: function () { }
  3448. }, {
  3449. "style": {
  3450. "height": "36px"
  3451. }
  3452. }).form; //创建窗体
  3453. _taskbar = {
  3454. "id": str + _formdiv.id,
  3455. "style": {
  3456. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3457. },
  3458. "name": "电子白板",
  3459. "forms": _formdiv,
  3460. "click": function () {
  3461. U.MD.D.I.openApplication(str, obj, info);
  3462. }
  3463. }
  3464. break;
  3465. case "mind":
  3466. aTool = 3;
  3467. _iframe = $$("iframe", {
  3468. "frameborder": "no",
  3469. "border": "0",
  3470. "scrolling ": "no",
  3471. "style": {
  3472. "cssText": "border:0;width:100%;height:100%"
  3473. },
  3474. "src": "/kityminder-editor/dist/index.html"
  3475. })
  3476. _box.appendChild(_iframe);
  3477. _box.appendChild(_jie);
  3478. _formdiv = new U.UF.UI.form(
  3479. "思维导图",
  3480. _box, { //"/jsmind/example/demo.html"
  3481. "id": "mind" + cid + stage + task + tool,
  3482. "style": {
  3483. "width": "90%",
  3484. "height": "90%",
  3485. "overflow": 'hidden'
  3486. },
  3487. "onresize": function () { }
  3488. }, {
  3489. closecallback: function () { }
  3490. }, {
  3491. "style": {
  3492. "height": "36px"
  3493. }
  3494. }).form; //创建窗体
  3495. _taskbar = {
  3496. "id": str + _formdiv.id,
  3497. "style": {
  3498. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3499. },
  3500. "name": "思维导图",
  3501. "forms": _formdiv,
  3502. "click": function () {
  3503. U.MD.D.I.openApplication(str, obj, info);
  3504. }
  3505. }
  3506. break;
  3507. case "MindMap":
  3508. aTool = 3;
  3509. _iframe = $$("iframe", {
  3510. "frameborder": "no",
  3511. "border": "0",
  3512. "scrolling ": "no",
  3513. "style": {
  3514. "cssText": "border:0;width:100%;height:100%"
  3515. },
  3516. "src": "//cloud.cocorobo.cn/mind/"
  3517. })
  3518. _box.appendChild(_iframe);
  3519. _box.appendChild(_jie);
  3520. _formdiv = new U.UF.UI.form(
  3521. "思维导图",
  3522. _box, { //"/jsmind/example/demo.html"
  3523. "id": "mind" + cid + stage + task + tool,
  3524. "style": {
  3525. "width": "90%",
  3526. "height": "90%",
  3527. "overflow": 'hidden'
  3528. },
  3529. "onresize": function () { }
  3530. }, {
  3531. closecallback: function () { }
  3532. }, {
  3533. "style": {
  3534. "height": "36px"
  3535. }
  3536. }).form; //创建窗体
  3537. _taskbar = {
  3538. "id": str + _formdiv.id,
  3539. "style": {
  3540. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3541. },
  3542. "name": "思维导图",
  3543. "forms": _formdiv,
  3544. "click": function () {
  3545. U.MD.D.I.openApplication(str, obj, info);
  3546. }
  3547. }
  3548. break;
  3549. case "doc":
  3550. aTool = 6;
  3551. _iframe = $$("iframe", {
  3552. "frameborder": "no",
  3553. "border": "0",
  3554. "scrolling ": "no",
  3555. "style": {
  3556. "cssText": "border:0;width:100%;height:100%"
  3557. },
  3558. "src": "/Office/Word/WordEditArea.htm"
  3559. })
  3560. _box.appendChild(_iframe);
  3561. _box.appendChild(_jie);
  3562. _formdiv = new U.UF.UI.form(
  3563. "协同文档",
  3564. _box, {
  3565. "id": "doc" + cid + stage + task + tool,
  3566. "style": {
  3567. "width": "90%",
  3568. "height": "90%",
  3569. "overflow": 'hidden'
  3570. },
  3571. "onresize": function () { }
  3572. }, {
  3573. closecallback: function () { }
  3574. }, {
  3575. "style": {
  3576. "height": "36px"
  3577. }
  3578. }).form; //创建窗体
  3579. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3580. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3581. })
  3582. _taskbar = {
  3583. "id": str + _formdiv.id,
  3584. "style": {
  3585. "backgroundImage": "url(/img/icon/doc.png)"
  3586. },
  3587. "name": "协同文档",
  3588. "forms": _formdiv,
  3589. "click": function () {
  3590. U.MD.D.I.openApplication(str, obj, info);
  3591. }
  3592. }
  3593. break;
  3594. case "mindNetwork": //好友打开
  3595. aTool = 7;
  3596. _iframe = $$("iframe", {
  3597. "webkitallowfullscreen": "",
  3598. "mozallowfullscreen": "",
  3599. "allowfullscreen": "",
  3600. "frameborder": "no",
  3601. "border": "0",
  3602. "scrolling ": "no",
  3603. "style": {
  3604. "cssText": "border:0; width:100%; height:100%;"
  3605. },
  3606. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3607. })
  3608. _box.appendChild(_iframe);
  3609. _box.appendChild(_jie);
  3610. _formdiv = new U.UF.UI.form(
  3611. "思维网格",
  3612. _box, {
  3613. "id": "mindNetwork" + cid + stage + task + tool,
  3614. "style": {
  3615. "width": "90%",
  3616. "height": "90%",
  3617. "overflow": 'hidden'
  3618. },
  3619. "onresize": function () { }
  3620. }, {
  3621. closecallback: function () { }
  3622. }, {
  3623. "style": {
  3624. "height": "36px"
  3625. }
  3626. }).form; //创建窗体
  3627. _taskbar = {
  3628. "id": str + _formdiv.id,
  3629. "style": {
  3630. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3631. },
  3632. "name": "思维网格",
  3633. "forms": _formdiv,
  3634. "click": function () {
  3635. U.MD.D.I.openApplication(str, obj, info);
  3636. }
  3637. }
  3638. break;
  3639. case "courseDesign":
  3640. _iframe = $$("iframe", {
  3641. "webkitallowfullscreen": "",
  3642. "mozallowfullscreen": "",
  3643. "allowfullscreen": "",
  3644. "frameborder": "no",
  3645. "border": "0",
  3646. "scrolling ": "no",
  3647. "style": {
  3648. "cssText": "border:0; width:100%; height:100%;"
  3649. },
  3650. "src": "/course-design-vue"
  3651. })
  3652. _box.appendChild(_iframe);
  3653. _box.appendChild(_jie);
  3654. _formdiv = new U.UF.UI.form(
  3655. "项目设计",
  3656. _box, {
  3657. "id": "courseDesign" + cid + stage + task + tool,
  3658. "style": {
  3659. "width": "90%",
  3660. "height": "90%",
  3661. "overflow": 'hidden'
  3662. },
  3663. "onresize": function () { }
  3664. }, {
  3665. closecallback: function () { }
  3666. }, {
  3667. "style": {
  3668. "height": "36px"
  3669. }
  3670. }).form; //创建窗体
  3671. _taskbar = {
  3672. "id": str + _formdiv.id,
  3673. "style": {
  3674. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3675. },
  3676. "name": "项目设计",
  3677. "forms": _formdiv,
  3678. "click": function () {
  3679. U.MD.D.I.openApplication(str, obj, info);
  3680. }
  3681. }
  3682. break;
  3683. }
  3684. const script1 = document.createElement("script");
  3685. script1.type = "text/javascript";
  3686. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3687. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3688. const script2 = document.createElement("script");
  3689. script2.type = "text/javascript";
  3690. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3691. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3692. const script3 = document.createElement("script");
  3693. script3.type = "text/javascript";
  3694. script3.charset = "UTF-8";
  3695. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3696. const script4 = document.createElement("script");
  3697. script4.type = "text/javascript";
  3698. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3699. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3700. if (_iframe) {
  3701. if (str == 'doc') {
  3702. _iframe = _formdiv.querySelector('iframe')
  3703. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3704. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3705. _iframe.contentWindow.document.body.appendChild(script1);
  3706. _iframe.contentWindow.document.body.appendChild(script2);
  3707. // _iframe.contentWindow.document.body.appendChild(script3);
  3708. _iframe.contentWindow.document.body.appendChild(script4);
  3709. })
  3710. if (onloadListener) {
  3711. _iframe.contentDocument.location.reload()
  3712. } else {
  3713. _iframe.contentDocument.location.reload()
  3714. }
  3715. } else if (str == 'courseDesign') {
  3716. U.UF.DL.iframeLoad(_iframe, function () {
  3717. // _iframe.contentWindow.U.MD.O.W.load();
  3718. // _iframe.contentWindow.document.body.appendChild(script1);
  3719. _iframe.contentWindow.document.body.appendChild(script2);
  3720. _iframe.contentWindow.document.body.appendChild(script4);
  3721. })
  3722. } else if (str == 'mind') {
  3723. _iframe = _formdiv.querySelector('iframe')
  3724. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3725. //
  3726. _iframe.contentWindow.document.body.appendChild(script1);
  3727. _iframe.contentWindow.document.body.appendChild(script2);
  3728. _iframe.contentWindow.document.body.appendChild(script4);
  3729. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3730. })
  3731. if (onloadListener) {
  3732. _iframe.contentDocument.location.reload()
  3733. } else {
  3734. _iframe.contentDocument.location.reload()
  3735. }
  3736. } else if (str == 'whiteboard') {
  3737. _iframe = _formdiv.querySelector('iframe')
  3738. let onloadListener = _iframe.onload = () => {
  3739. _iframe.contentWindow.document.body.appendChild(script1);
  3740. _iframe.contentWindow.document.body.appendChild(script2);
  3741. _iframe.contentWindow.document.body.appendChild(script4);
  3742. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3743. };
  3744. if (onloadListener) {
  3745. _iframe.contentDocument.location.reload()
  3746. } else {
  3747. _iframe.contentDocument.location.reload()
  3748. }
  3749. } else {
  3750. _iframe.onload = () => {
  3751. _iframe.contentWindow.document.body.appendChild(script1);
  3752. _iframe.contentWindow.document.body.appendChild(script2);
  3753. // _iframe.contentWindow.document.body.appendChild(script3);
  3754. _iframe.contentWindow.document.body.appendChild(script4);
  3755. };
  3756. }
  3757. _jie.onclick = async () => {
  3758. let text = ''
  3759. if (aTool == 1) {
  3760. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3761. } else if (aTool == 6) {
  3762. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3763. } else if (aTool == 3) {
  3764. text = await U.MD.D.I.getEditorContent(_iframe);
  3765. }
  3766. _loading.style.display = 'flex'
  3767. console.log(_loading);
  3768. var _ajs = _iframe.contentWindow.document.createElement("script");
  3769. _ajs.type = "text/javascript";
  3770. _ajs.innerHTML =
  3771. // 'console.log(' + _loading + ');\n' +
  3772. 'var _js = document.createElement("script");\n' +
  3773. '_js.type="text/javascript";\n' +
  3774. '_js.charset="UTF-8";\n' +
  3775. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3776. "_js.onload = function(){\n" +
  3777. ' var a = document.getElementsByTagName("img")\n' +
  3778. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3779. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3780. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3781. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3782. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3783. "beforeUpload_shishi(file," +
  3784. "'" +
  3785. _userid +
  3786. "'" +
  3787. ", " +
  3788. "'" +
  3789. _cid +
  3790. "'" +
  3791. ", " +
  3792. "'" +
  3793. _stage +
  3794. "'" +
  3795. ", " +
  3796. "'" +
  3797. _task +
  3798. "'" +
  3799. ", " +
  3800. "'" +
  3801. _tool +
  3802. "'" +
  3803. ", " +
  3804. "'" +
  3805. str + '_loadLi' +
  3806. "'" +
  3807. ", " +
  3808. "'" +
  3809. aTool +
  3810. "'" +
  3811. ", " +
  3812. "`" +
  3813. text +
  3814. "`" +
  3815. ")\n" +
  3816. " });\n" +
  3817. "}\n" +
  3818. "document.head.appendChild(_js);\n";
  3819. _iframe.contentWindow.document.head.appendChild(_ajs);
  3820. }
  3821. }
  3822. //U.MD.D.I.openClick(str);
  3823. //如果有任务栏信息
  3824. // if (_taskbar) {
  3825. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3826. // }
  3827. }
  3828. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  3829. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3830. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3831. _userinfo = US.userInfo, //登录用户信息
  3832. _userid = US.userInfo.userid //登录用户id
  3833. let _iframe;
  3834. let _cid = cid,
  3835. _stage = stage,
  3836. _task = task,
  3837. _tool = tool;
  3838. var _jie = $$("div", {
  3839. "style": {
  3840. "position": "absolute",
  3841. "bottom": "50px",
  3842. "right": "50px",
  3843. "zIndex": "9999",
  3844. "backgroundColor": "#2268bc",
  3845. "color": "#fff",
  3846. "padding": "12px 20px",
  3847. "cursor": "pointer",
  3848. "borderRadius": "4px",
  3849. },
  3850. "innerHTML": "提交作业"
  3851. })
  3852. let aTool = ''
  3853. let _loading = document.createElement('div')
  3854. _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;"
  3855. // _loading.id = "";
  3856. let _lchild = document.createElement('div')
  3857. let _limg = document.createElement('img')
  3858. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3859. _limg.style = "width: 26px;margin-right: 10px;"
  3860. _lchild.appendChild(_limg)
  3861. let _lspan = document.createElement('span')
  3862. _lspan.innerHTML = "上传中..."
  3863. _lchild.appendChild(_lspan)
  3864. _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%);"
  3865. _loading.appendChild(_lchild)
  3866. var _box = $$('div', {
  3867. "style": {
  3868. "position": "relative",
  3869. "width": "100%",
  3870. "height": "100%",
  3871. },
  3872. })
  3873. _box.appendChild(_loading)
  3874. _box.id = str + '_loadLi'
  3875. switch (str) {
  3876. case "whiteboard":
  3877. aTool = 1;
  3878. _iframe = $$("iframe", {
  3879. "frameborder": "no",
  3880. "border": "0",
  3881. "scrolling ": "no",
  3882. "style": {
  3883. "cssText": "border:0;width:100%;height:100%"
  3884. },
  3885. "src": "https://iwb.cocorobo.cn/"
  3886. })
  3887. _box.appendChild(_iframe);
  3888. _box.appendChild(_jie);
  3889. _formdiv = new U.UF.UI.form(
  3890. "电子白板",
  3891. _box, {
  3892. "id": "whiteboard" + cid + stage + task + tool,
  3893. "style": {
  3894. "width": "90%",
  3895. "height": "90%",
  3896. "overflow": 'hidden'
  3897. },
  3898. "onresize": function () { }
  3899. }, {
  3900. closecallback: function () { }
  3901. }, {
  3902. "style": {
  3903. "height": "36px"
  3904. }
  3905. }).form; //创建窗体
  3906. _taskbar = {
  3907. "id": str + _formdiv.id,
  3908. "style": {
  3909. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3910. },
  3911. "name": "电子白板",
  3912. "forms": _formdiv,
  3913. "click": function () {
  3914. U.MD.D.I.openApplication(str, obj, info);
  3915. }
  3916. }
  3917. break;
  3918. case "mind":
  3919. aTool = 3;
  3920. _iframe = $$("iframe", {
  3921. "frameborder": "no",
  3922. "border": "0",
  3923. "scrolling ": "no",
  3924. "style": {
  3925. "cssText": "border:0;width:100%;height:100%"
  3926. },
  3927. "src": "/kityminder-editor/dist/index.html"
  3928. })
  3929. _box.appendChild(_iframe);
  3930. _box.appendChild(_jie);
  3931. _formdiv = new U.UF.UI.form(
  3932. "思维导图",
  3933. _box, { //"/jsmind/example/demo.html"
  3934. "id": "mind" + cid + stage + task + tool,
  3935. "style": {
  3936. "width": "90%",
  3937. "height": "90%",
  3938. "overflow": 'hidden'
  3939. },
  3940. "onresize": function () { }
  3941. }, {
  3942. closecallback: function () { }
  3943. }, {
  3944. "style": {
  3945. "height": "36px"
  3946. }
  3947. }).form; //创建窗体
  3948. _taskbar = {
  3949. "id": str + _formdiv.id,
  3950. "style": {
  3951. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3952. },
  3953. "name": "思维导图",
  3954. "forms": _formdiv,
  3955. "click": function () {
  3956. U.MD.D.I.openApplication(str, obj, info);
  3957. }
  3958. }
  3959. break;
  3960. case "MindMap":
  3961. aTool = 3;
  3962. _iframe = $$("iframe", {
  3963. "frameborder": "no",
  3964. "border": "0",
  3965. "scrolling ": "no",
  3966. "style": {
  3967. "cssText": "border:0;width:100%;height:100%"
  3968. },
  3969. "src": "//cloud.cocorobo.cn/mind/"
  3970. })
  3971. _box.appendChild(_iframe);
  3972. _box.appendChild(_jie);
  3973. _formdiv = new U.UF.UI.form(
  3974. "思维导图",
  3975. _box, { //"/jsmind/example/demo.html"
  3976. "id": "mind" + cid + stage + task + tool,
  3977. "style": {
  3978. "width": "90%",
  3979. "height": "90%",
  3980. "overflow": 'hidden'
  3981. },
  3982. "onresize": function () { }
  3983. }, {
  3984. closecallback: function () { }
  3985. }, {
  3986. "style": {
  3987. "height": "36px"
  3988. }
  3989. }).form; //创建窗体
  3990. _taskbar = {
  3991. "id": str + _formdiv.id,
  3992. "style": {
  3993. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3994. },
  3995. "name": "思维导图",
  3996. "forms": _formdiv,
  3997. "click": function () {
  3998. U.MD.D.I.openApplication(str, obj, info);
  3999. }
  4000. }
  4001. break;
  4002. case "doc":
  4003. aTool = 6;
  4004. _iframe = $$("iframe", {
  4005. "frameborder": "no",
  4006. "border": "0",
  4007. "scrolling ": "no",
  4008. "style": {
  4009. "cssText": "border:0;width:100%;height:100%"
  4010. },
  4011. "src": "/Office/Word/WordEditArea.htm"
  4012. })
  4013. _box.appendChild(_iframe);
  4014. _box.appendChild(_jie);
  4015. _formdiv = new U.UF.UI.form(
  4016. "协同文档",
  4017. _box, {
  4018. "id": "doc" + cid + stage + task + tool,
  4019. "style": {
  4020. "width": "90%",
  4021. "height": "90%",
  4022. "overflow": 'hidden'
  4023. },
  4024. "onresize": function () { }
  4025. }, {
  4026. closecallback: function () { }
  4027. }, {
  4028. "style": {
  4029. "height": "36px"
  4030. }
  4031. }).form; //创建窗体
  4032. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4033. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4034. })
  4035. _taskbar = {
  4036. "id": str + _formdiv.id,
  4037. "style": {
  4038. "backgroundImage": "url(/img/icon/doc.png)"
  4039. },
  4040. "name": "协同文档",
  4041. "forms": _formdiv,
  4042. "click": function () {
  4043. U.MD.D.I.openApplication(str, obj, info);
  4044. }
  4045. }
  4046. break;
  4047. case "mindNetwork": //好友打开
  4048. aTool = 7;
  4049. _iframe = $$("iframe", {
  4050. "webkitallowfullscreen": "",
  4051. "mozallowfullscreen": "",
  4052. "allowfullscreen": "",
  4053. "frameborder": "no",
  4054. "border": "0",
  4055. "scrolling ": "no",
  4056. "style": {
  4057. "cssText": "border:0; width:100%; height:100%;"
  4058. },
  4059. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4060. })
  4061. _box.appendChild(_iframe);
  4062. _box.appendChild(_jie);
  4063. _formdiv = new U.UF.UI.form(
  4064. "思维网格",
  4065. _box, {
  4066. "id": "mindNetwork" + cid + stage + task + tool,
  4067. "style": {
  4068. "width": "90%",
  4069. "height": "90%",
  4070. "overflow": 'hidden'
  4071. },
  4072. "onresize": function () { }
  4073. }, {
  4074. closecallback: function () { }
  4075. }, {
  4076. "style": {
  4077. "height": "36px"
  4078. }
  4079. }).form; //创建窗体
  4080. _taskbar = {
  4081. "id": str + _formdiv.id,
  4082. "style": {
  4083. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4084. },
  4085. "name": "思维网格",
  4086. "forms": _formdiv,
  4087. "click": function () {
  4088. U.MD.D.I.openApplication(str, obj, info);
  4089. }
  4090. }
  4091. break;
  4092. case "courseDesign":
  4093. _iframe = $$("iframe", {
  4094. "webkitallowfullscreen": "",
  4095. "mozallowfullscreen": "",
  4096. "allowfullscreen": "",
  4097. "frameborder": "no",
  4098. "border": "0",
  4099. "scrolling ": "no",
  4100. "style": {
  4101. "cssText": "border:0; width:100%; height:100%;"
  4102. },
  4103. "src": "/course-design-vue"
  4104. })
  4105. _box.appendChild(_iframe);
  4106. _box.appendChild(_jie);
  4107. _formdiv = new U.UF.UI.form(
  4108. "项目设计",
  4109. _box, {
  4110. "id": "courseDesign" + cid + stage + task + tool,
  4111. "style": {
  4112. "width": "90%",
  4113. "height": "90%",
  4114. "overflow": 'hidden'
  4115. },
  4116. "onresize": function () { }
  4117. }, {
  4118. closecallback: function () { }
  4119. }, {
  4120. "style": {
  4121. "height": "36px"
  4122. }
  4123. }).form; //创建窗体
  4124. _taskbar = {
  4125. "id": str + _formdiv.id,
  4126. "style": {
  4127. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4128. },
  4129. "name": "项目设计",
  4130. "forms": _formdiv,
  4131. "click": function () {
  4132. U.MD.D.I.openApplication(str, obj, info);
  4133. }
  4134. }
  4135. break;
  4136. }
  4137. const script1 = document.createElement("script");
  4138. script1.type = "text/javascript";
  4139. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4140. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4141. const script2 = document.createElement("script");
  4142. script2.type = "text/javascript";
  4143. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4144. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4145. const script3 = document.createElement("script");
  4146. script3.type = "text/javascript";
  4147. script3.charset = "UTF-8";
  4148. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4149. const script4 = document.createElement("script");
  4150. script4.type = "text/javascript";
  4151. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4152. script4.src = window.origin + "/js/Common/jietu2E.js";
  4153. if (_iframe) {
  4154. if (str == 'doc') {
  4155. _iframe = _formdiv.querySelector('iframe')
  4156. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4157. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4158. _iframe.contentWindow.document.body.appendChild(script1);
  4159. _iframe.contentWindow.document.body.appendChild(script2);
  4160. // _iframe.contentWindow.document.body.appendChild(script3);
  4161. _iframe.contentWindow.document.body.appendChild(script4);
  4162. })
  4163. if (onloadListener) {
  4164. _iframe.contentDocument.location.reload()
  4165. } else {
  4166. _iframe.contentDocument.location.reload()
  4167. }
  4168. } else if (str == 'courseDesign') {
  4169. U.UF.DL.iframeLoad(_iframe, function () {
  4170. // _iframe.contentWindow.U.MD.O.W.load();
  4171. // _iframe.contentWindow.document.body.appendChild(script1);
  4172. _iframe.contentWindow.document.body.appendChild(script2);
  4173. _iframe.contentWindow.document.body.appendChild(script4);
  4174. })
  4175. } else if (str == 'mind') {
  4176. _iframe = _formdiv.querySelector('iframe')
  4177. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4178. //
  4179. _iframe.contentWindow.document.body.appendChild(script1);
  4180. _iframe.contentWindow.document.body.appendChild(script2);
  4181. _iframe.contentWindow.document.body.appendChild(script4);
  4182. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4183. })
  4184. if (onloadListener) {
  4185. _iframe.contentDocument.location.reload()
  4186. } else {
  4187. _iframe.contentDocument.location.reload()
  4188. }
  4189. } else if (str == 'whiteboard') {
  4190. _iframe = _formdiv.querySelector('iframe')
  4191. let onloadListener = _iframe.onload = () => {
  4192. _iframe.contentWindow.document.body.appendChild(script1);
  4193. _iframe.contentWindow.document.body.appendChild(script2);
  4194. _iframe.contentWindow.document.body.appendChild(script4);
  4195. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4196. };
  4197. if (onloadListener) {
  4198. _iframe.contentDocument.location.reload()
  4199. } else {
  4200. _iframe.contentDocument.location.reload()
  4201. }
  4202. } else {
  4203. _iframe.onload = () => {
  4204. _iframe.contentWindow.document.body.appendChild(script1);
  4205. _iframe.contentWindow.document.body.appendChild(script2);
  4206. // _iframe.contentWindow.document.body.appendChild(script3);
  4207. _iframe.contentWindow.document.body.appendChild(script4);
  4208. };
  4209. }
  4210. _jie.onclick = async () => {
  4211. let text = ''
  4212. if (aTool == 1) {
  4213. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4214. } else if (aTool == 6) {
  4215. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4216. } else if (aTool == 3) {
  4217. text = await U.MD.D.I.getEditorContent(_iframe);
  4218. }
  4219. _loading.style.display = 'flex'
  4220. console.log(_loading);
  4221. var _ajs = _iframe.contentWindow.document.createElement("script");
  4222. _ajs.type = "text/javascript";
  4223. _ajs.innerHTML =
  4224. // 'console.log(' + _loading + ');\n' +
  4225. 'var _js = document.createElement("script");\n' +
  4226. '_js.type="text/javascript";\n' +
  4227. '_js.charset="UTF-8";\n' +
  4228. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4229. "_js.onload = function(){\n" +
  4230. ' var a = document.getElementsByTagName("img")\n' +
  4231. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4232. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4233. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4234. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4235. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4236. "beforeUpload_shishi(file," +
  4237. "'" +
  4238. _userid +
  4239. "'" +
  4240. ", " +
  4241. "'" +
  4242. _cid +
  4243. "'" +
  4244. ", " +
  4245. "'" +
  4246. _stage +
  4247. "'" +
  4248. ", " +
  4249. "'" +
  4250. _task +
  4251. "'" +
  4252. ", " +
  4253. "'" +
  4254. _tool +
  4255. "'" +
  4256. ", " +
  4257. "'" +
  4258. str + '_loadLi' +
  4259. "'" +
  4260. ", " +
  4261. "'" +
  4262. aTool +
  4263. "'" +
  4264. ", " +
  4265. "`" +
  4266. text +
  4267. "`" +
  4268. ")\n" +
  4269. " });\n" +
  4270. "}\n" +
  4271. "document.head.appendChild(_js);\n";
  4272. _iframe.contentWindow.document.head.appendChild(_ajs);
  4273. }
  4274. }
  4275. //U.MD.D.I.openClick(str);
  4276. //如果有任务栏信息
  4277. // if (_taskbar) {
  4278. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4279. // }
  4280. }
  4281. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4282. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4283. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4284. _userid = student.userid, //登录用户id
  4285. _username = student.student //用户名字
  4286. let _iframe;
  4287. let _cid = cid,
  4288. _stage = stage,
  4289. _task = task,
  4290. _tool = tool;
  4291. var _jie = $$("div", {
  4292. "style": {
  4293. "position": "absolute",
  4294. "bottom": "50px",
  4295. "right": "50px",
  4296. "zIndex": "9999",
  4297. "backgroundColor": "#2268bc",
  4298. "color": "#fff",
  4299. "padding": "12px 20px",
  4300. "cursor": "pointer",
  4301. "borderRadius": "4px",
  4302. },
  4303. "innerHTML": "提交作业"
  4304. })
  4305. let aTool = ''
  4306. let _loading = document.createElement('div')
  4307. _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;"
  4308. // _loading.id = "";
  4309. let _lchild = document.createElement('div')
  4310. let _limg = document.createElement('img')
  4311. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4312. _limg.style = "width: 26px;margin-right: 10px;"
  4313. _lchild.appendChild(_limg)
  4314. let _lspan = document.createElement('span')
  4315. _lspan.innerHTML = "上传中..."
  4316. _lchild.appendChild(_lspan)
  4317. _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%);"
  4318. _loading.appendChild(_lchild)
  4319. var _box = $$('div', {
  4320. "style": {
  4321. "position": "relative",
  4322. "width": "100%",
  4323. "height": "100%",
  4324. },
  4325. })
  4326. _box.appendChild(_loading)
  4327. _box.id = str + '_loadLi' + _userid
  4328. switch (str) {
  4329. case "whiteboard":
  4330. aTool = 1;
  4331. _iframe = $$("iframe", {
  4332. "frameborder": "no",
  4333. "border": "0",
  4334. "scrolling ": "no",
  4335. "style": {
  4336. "cssText": "border:0;width:100%;height:100%"
  4337. },
  4338. "src": "https://iwb.cocorobo.cn/"
  4339. })
  4340. _box.appendChild(_iframe);
  4341. _box.appendChild(_jie);
  4342. _formdiv = new U.UF.UI.form(
  4343. "电子白板-" + _username,
  4344. _box, {
  4345. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4346. "style": {
  4347. "width": "90%",
  4348. "height": "90%",
  4349. "overflow": 'hidden'
  4350. },
  4351. "onresize": function () { }
  4352. }, {
  4353. closecallback: function () { }
  4354. }, {
  4355. "style": {
  4356. "height": "36px"
  4357. }
  4358. }).form; //创建窗体
  4359. _taskbar = {
  4360. "id": str + _formdiv.id,
  4361. "style": {
  4362. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4363. },
  4364. "name": "电子白板",
  4365. "forms": _formdiv,
  4366. "click": function () {
  4367. U.MD.D.I.openApplication(str, obj, info);
  4368. }
  4369. }
  4370. break;
  4371. case "mind":
  4372. aTool = 3;
  4373. _iframe = $$("iframe", {
  4374. "frameborder": "no",
  4375. "border": "0",
  4376. "scrolling ": "no",
  4377. "style": {
  4378. "cssText": "border:0;width:100%;height:100%"
  4379. },
  4380. "src": "/kityminder-editor/dist/index.html"
  4381. })
  4382. _box.appendChild(_iframe);
  4383. _box.appendChild(_jie);
  4384. _formdiv = new U.UF.UI.form(
  4385. "思维导图-" + _username,
  4386. _box, { //"/jsmind/example/demo.html"
  4387. "id": "mind" + cid + stage + task + tool + _userid,
  4388. "style": {
  4389. "width": "90%",
  4390. "height": "90%",
  4391. "overflow": 'hidden'
  4392. },
  4393. "onresize": function () { }
  4394. }, {
  4395. closecallback: function () { }
  4396. }, {
  4397. "style": {
  4398. "height": "36px"
  4399. }
  4400. }).form; //创建窗体
  4401. _taskbar = {
  4402. "id": str + _formdiv.id,
  4403. "style": {
  4404. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4405. },
  4406. "name": "思维导图",
  4407. "forms": _formdiv,
  4408. "click": function () {
  4409. U.MD.D.I.openApplication(str, obj, info);
  4410. }
  4411. }
  4412. break;
  4413. case "MindMap":
  4414. aTool = 3;
  4415. _iframe = $$("iframe", {
  4416. "frameborder": "no",
  4417. "border": "0",
  4418. "scrolling ": "no",
  4419. "style": {
  4420. "cssText": "border:0;width:100%;height:100%"
  4421. },
  4422. "src": "//cloud.cocorobo.cn/mind/"
  4423. })
  4424. _box.appendChild(_iframe);
  4425. _box.appendChild(_jie);
  4426. _formdiv = new U.UF.UI.form(
  4427. "思维导图-" + _username,
  4428. _box, { //"/jsmind/example/demo.html"
  4429. "id": "mind" + cid + stage + task + tool + _userid,
  4430. "style": {
  4431. "width": "90%",
  4432. "height": "90%",
  4433. "overflow": 'hidden'
  4434. },
  4435. "onresize": function () { }
  4436. }, {
  4437. closecallback: function () { }
  4438. }, {
  4439. "style": {
  4440. "height": "36px"
  4441. }
  4442. }).form; //创建窗体
  4443. _taskbar = {
  4444. "id": str + _formdiv.id,
  4445. "style": {
  4446. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4447. },
  4448. "name": "思维导图",
  4449. "forms": _formdiv,
  4450. "click": function () {
  4451. U.MD.D.I.openApplication(str, obj, info);
  4452. }
  4453. }
  4454. break;
  4455. case "doc":
  4456. aTool = 6;
  4457. _iframe = $$("iframe", {
  4458. "frameborder": "no",
  4459. "border": "0",
  4460. "scrolling ": "no",
  4461. "style": {
  4462. "cssText": "border:0;width:100%;height:100%"
  4463. },
  4464. "src": "/Office/Word/WordEditArea.htm"
  4465. })
  4466. _box.appendChild(_iframe);
  4467. _box.appendChild(_jie);
  4468. _formdiv = new U.UF.UI.form(
  4469. "协同文档-" + _username,
  4470. _box, {
  4471. "id": "doc" + cid + stage + task + tool + _userid,
  4472. "style": {
  4473. "width": "90%",
  4474. "height": "90%",
  4475. "overflow": 'hidden'
  4476. },
  4477. "onresize": function () { }
  4478. }, {
  4479. closecallback: function () { }
  4480. }, {
  4481. "style": {
  4482. "height": "36px"
  4483. }
  4484. }).form; //创建窗体
  4485. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4486. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4487. })
  4488. _taskbar = {
  4489. "id": str + _formdiv.id,
  4490. "style": {
  4491. "backgroundImage": "url(/img/icon/doc.png)"
  4492. },
  4493. "name": "协同文档",
  4494. "forms": _formdiv,
  4495. "click": function () {
  4496. U.MD.D.I.openApplication(str, obj, info);
  4497. }
  4498. }
  4499. break;
  4500. case "mindNetwork": //好友打开
  4501. aTool = 7;
  4502. _iframe = $$("iframe", {
  4503. "webkitallowfullscreen": "",
  4504. "mozallowfullscreen": "",
  4505. "allowfullscreen": "",
  4506. "frameborder": "no",
  4507. "border": "0",
  4508. "scrolling ": "no",
  4509. "style": {
  4510. "cssText": "border:0; width:100%; height:100%;"
  4511. },
  4512. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4513. })
  4514. _box.appendChild(_iframe);
  4515. _box.appendChild(_jie);
  4516. _formdiv = new U.UF.UI.form(
  4517. "思维网格-" + _username,
  4518. _box, {
  4519. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4520. "style": {
  4521. "width": "90%",
  4522. "height": "90%",
  4523. "overflow": 'hidden'
  4524. },
  4525. "onresize": function () { }
  4526. }, {
  4527. closecallback: function () { }
  4528. }, {
  4529. "style": {
  4530. "height": "36px"
  4531. }
  4532. }).form; //创建窗体
  4533. _taskbar = {
  4534. "id": str + _formdiv.id,
  4535. "style": {
  4536. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4537. },
  4538. "name": "思维网格",
  4539. "forms": _formdiv,
  4540. "click": function () {
  4541. U.MD.D.I.openApplication(str, obj, info);
  4542. }
  4543. }
  4544. break;
  4545. case "courseDesign":
  4546. _iframe = $$("iframe", {
  4547. "webkitallowfullscreen": "",
  4548. "mozallowfullscreen": "",
  4549. "allowfullscreen": "",
  4550. "frameborder": "no",
  4551. "border": "0",
  4552. "scrolling ": "no",
  4553. "style": {
  4554. "cssText": "border:0; width:100%; height:100%;"
  4555. },
  4556. "src": "/course-design-vue"
  4557. })
  4558. _box.appendChild(_iframe);
  4559. _box.appendChild(_jie);
  4560. _formdiv = new U.UF.UI.form(
  4561. "项目设计-" + _username,
  4562. _box, {
  4563. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4564. "style": {
  4565. "width": "90%",
  4566. "height": "90%",
  4567. "overflow": 'hidden'
  4568. },
  4569. "onresize": function () { }
  4570. }, {
  4571. closecallback: function () { }
  4572. }, {
  4573. "style": {
  4574. "height": "36px"
  4575. }
  4576. }).form; //创建窗体
  4577. _taskbar = {
  4578. "id": str + _formdiv.id,
  4579. "style": {
  4580. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4581. },
  4582. "name": "项目设计",
  4583. "forms": _formdiv,
  4584. "click": function () {
  4585. U.MD.D.I.openApplication(str, obj, info);
  4586. }
  4587. }
  4588. break;
  4589. }
  4590. const script1 = document.createElement("script");
  4591. script1.type = "text/javascript";
  4592. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4593. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4594. const script2 = document.createElement("script");
  4595. script2.type = "text/javascript";
  4596. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4597. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4598. const script3 = document.createElement("script");
  4599. script3.type = "text/javascript";
  4600. script3.charset = "UTF-8";
  4601. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4602. const script4 = document.createElement("script");
  4603. script4.type = "text/javascript";
  4604. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4605. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4606. if (_iframe) {
  4607. if (str == 'doc') {
  4608. _iframe = _formdiv.querySelector('iframe')
  4609. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4610. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4611. _iframe.contentWindow.document.body.appendChild(script1);
  4612. _iframe.contentWindow.document.body.appendChild(script2);
  4613. // _iframe.contentWindow.document.body.appendChild(script3);
  4614. _iframe.contentWindow.document.body.appendChild(script4);
  4615. })
  4616. if (onloadListener) {
  4617. _iframe.contentDocument.location.reload()
  4618. } else {
  4619. _iframe.contentDocument.location.reload()
  4620. }
  4621. } else if (str == 'courseDesign') {
  4622. U.UF.DL.iframeLoad(_iframe, function () {
  4623. // _iframe.contentWindow.U.MD.O.W.load();
  4624. // _iframe.contentWindow.document.body.appendChild(script1);
  4625. _iframe.contentWindow.document.body.appendChild(script2);
  4626. _iframe.contentWindow.document.body.appendChild(script4);
  4627. })
  4628. } else if (str == 'mind') {
  4629. _iframe = _formdiv.querySelector('iframe')
  4630. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4631. //
  4632. _iframe.contentWindow.document.body.appendChild(script1);
  4633. _iframe.contentWindow.document.body.appendChild(script2);
  4634. _iframe.contentWindow.document.body.appendChild(script4);
  4635. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4636. })
  4637. if (onloadListener) {
  4638. _iframe.contentDocument.location.reload()
  4639. } else {
  4640. _iframe.contentDocument.location.reload()
  4641. }
  4642. } else if (str == 'whiteboard') {
  4643. _iframe = _formdiv.querySelector('iframe')
  4644. let onloadListener = _iframe.onload = () => {
  4645. _iframe.contentWindow.document.body.appendChild(script1);
  4646. _iframe.contentWindow.document.body.appendChild(script2);
  4647. _iframe.contentWindow.document.body.appendChild(script4);
  4648. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4649. };
  4650. if (onloadListener) {
  4651. _iframe.contentDocument.location.reload()
  4652. } else {
  4653. _iframe.contentDocument.location.reload()
  4654. }
  4655. } else {
  4656. _iframe.onload = () => {
  4657. _iframe.contentWindow.document.body.appendChild(script1);
  4658. _iframe.contentWindow.document.body.appendChild(script2);
  4659. // _iframe.contentWindow.document.body.appendChild(script3);
  4660. _iframe.contentWindow.document.body.appendChild(script4);
  4661. };
  4662. }
  4663. _jie.onclick = async () => {
  4664. let text = ''
  4665. if (aTool == 1) {
  4666. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4667. } else if (aTool == 6) {
  4668. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4669. } else if (aTool == 3) {
  4670. text = await U.MD.D.I.getEditorContent(_iframe);
  4671. }
  4672. _loading.style.display = 'flex'
  4673. console.log(_loading);
  4674. var _ajs = _iframe.contentWindow.document.createElement("script");
  4675. _ajs.type = "text/javascript";
  4676. _ajs.innerHTML =
  4677. // 'console.log(' + _loading + ');\n' +
  4678. 'var _js = document.createElement("script");\n' +
  4679. '_js.type="text/javascript";\n' +
  4680. '_js.charset="UTF-8";\n' +
  4681. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4682. "_js.onload = function(){\n" +
  4683. ' var a = document.getElementsByTagName("img")\n' +
  4684. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4685. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4686. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4687. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4688. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4689. "beforeUpload_shishi(file," +
  4690. "'" +
  4691. _userid +
  4692. "'" +
  4693. ", " +
  4694. "'" +
  4695. _cid +
  4696. "'" +
  4697. ", " +
  4698. "'" +
  4699. _stage +
  4700. "'" +
  4701. ", " +
  4702. "'" +
  4703. _task +
  4704. "'" +
  4705. ", " +
  4706. "'" +
  4707. _tool +
  4708. "'" +
  4709. ", " +
  4710. "'" +
  4711. str + '_loadLi' + _userid +
  4712. "'" +
  4713. ", " +
  4714. "'" +
  4715. aTool +
  4716. "'" +
  4717. ", " +
  4718. "`" +
  4719. text +
  4720. "`" +
  4721. ")\n" +
  4722. " });\n" +
  4723. "}\n" +
  4724. "document.head.appendChild(_js);\n";
  4725. _iframe.contentWindow.document.head.appendChild(_ajs);
  4726. }
  4727. }
  4728. }
  4729. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  4730. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4731. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4732. _userid = student.userid, //登录用户id
  4733. _username = student.student //用户名字
  4734. let _iframe;
  4735. let _cid = cid,
  4736. _stage = stage,
  4737. _task = task,
  4738. _tool = tool;
  4739. var _jie = $$("div", {
  4740. "style": {
  4741. "position": "absolute",
  4742. "bottom": "50px",
  4743. "right": "50px",
  4744. "zIndex": "9999",
  4745. "backgroundColor": "#2268bc",
  4746. "color": "#fff",
  4747. "padding": "12px 20px",
  4748. "cursor": "pointer",
  4749. "borderRadius": "4px",
  4750. },
  4751. "innerHTML": "提交作业"
  4752. })
  4753. let aTool = ''
  4754. let _loading = document.createElement('div')
  4755. _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;"
  4756. // _loading.id = "";
  4757. let _lchild = document.createElement('div')
  4758. let _limg = document.createElement('img')
  4759. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4760. _limg.style = "width: 26px;margin-right: 10px;"
  4761. _lchild.appendChild(_limg)
  4762. let _lspan = document.createElement('span')
  4763. _lspan.innerHTML = "上传中..."
  4764. _lchild.appendChild(_lspan)
  4765. _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%);"
  4766. _loading.appendChild(_lchild)
  4767. var _box = $$('div', {
  4768. "style": {
  4769. "position": "relative",
  4770. "width": "100%",
  4771. "height": "100%",
  4772. },
  4773. })
  4774. _box.appendChild(_loading)
  4775. _box.id = str + '_loadLi' + _userid
  4776. switch (str) {
  4777. case "whiteboard":
  4778. aTool = 1;
  4779. _iframe = $$("iframe", {
  4780. "frameborder": "no",
  4781. "border": "0",
  4782. "scrolling ": "no",
  4783. "style": {
  4784. "cssText": "border:0;width:100%;height:100%"
  4785. },
  4786. "src": "https://iwb.cocorobo.cn/"
  4787. })
  4788. _box.appendChild(_iframe);
  4789. _box.appendChild(_jie);
  4790. _formdiv = new U.UF.UI.form(
  4791. "电子白板-" + _username,
  4792. _box, {
  4793. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4794. "style": {
  4795. "width": "90%",
  4796. "height": "90%",
  4797. "overflow": 'hidden'
  4798. },
  4799. "onresize": function () { }
  4800. }, {
  4801. closecallback: function () { }
  4802. }, {
  4803. "style": {
  4804. "height": "36px"
  4805. }
  4806. }).form; //创建窗体
  4807. _taskbar = {
  4808. "id": str + _formdiv.id,
  4809. "style": {
  4810. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4811. },
  4812. "name": "电子白板",
  4813. "forms": _formdiv,
  4814. "click": function () {
  4815. U.MD.D.I.openApplication(str, obj, info);
  4816. }
  4817. }
  4818. break;
  4819. case "mind":
  4820. aTool = 3;
  4821. _iframe = $$("iframe", {
  4822. "frameborder": "no",
  4823. "border": "0",
  4824. "scrolling ": "no",
  4825. "style": {
  4826. "cssText": "border:0;width:100%;height:100%"
  4827. },
  4828. "src": "/kityminder-editor/dist/index.html"
  4829. })
  4830. _box.appendChild(_iframe);
  4831. _box.appendChild(_jie);
  4832. _formdiv = new U.UF.UI.form(
  4833. "思维导图-" + _username,
  4834. _box, { //"/jsmind/example/demo.html"
  4835. "id": "mind" + cid + stage + task + tool + _userid,
  4836. "style": {
  4837. "width": "90%",
  4838. "height": "90%",
  4839. "overflow": 'hidden'
  4840. },
  4841. "onresize": function () { }
  4842. }, {
  4843. closecallback: function () { }
  4844. }, {
  4845. "style": {
  4846. "height": "36px"
  4847. }
  4848. }).form; //创建窗体
  4849. _taskbar = {
  4850. "id": str + _formdiv.id,
  4851. "style": {
  4852. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4853. },
  4854. "name": "思维导图",
  4855. "forms": _formdiv,
  4856. "click": function () {
  4857. U.MD.D.I.openApplication(str, obj, info);
  4858. }
  4859. }
  4860. break;
  4861. case "MindMap":
  4862. aTool = 3;
  4863. _iframe = $$("iframe", {
  4864. "frameborder": "no",
  4865. "border": "0",
  4866. "scrolling ": "no",
  4867. "style": {
  4868. "cssText": "border:0;width:100%;height:100%"
  4869. },
  4870. "src": "//cloud.cocorobo.cn/mind/"
  4871. })
  4872. _box.appendChild(_iframe);
  4873. _box.appendChild(_jie);
  4874. _formdiv = new U.UF.UI.form(
  4875. "思维导图-" + _username,
  4876. _box, { //"/jsmind/example/demo.html"
  4877. "id": "mind" + cid + stage + task + tool + _userid,
  4878. "style": {
  4879. "width": "90%",
  4880. "height": "90%",
  4881. "overflow": 'hidden'
  4882. },
  4883. "onresize": function () { }
  4884. }, {
  4885. closecallback: function () { }
  4886. }, {
  4887. "style": {
  4888. "height": "36px"
  4889. }
  4890. }).form; //创建窗体
  4891. _taskbar = {
  4892. "id": str + _formdiv.id,
  4893. "style": {
  4894. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4895. },
  4896. "name": "思维导图",
  4897. "forms": _formdiv,
  4898. "click": function () {
  4899. U.MD.D.I.openApplication(str, obj, info);
  4900. }
  4901. }
  4902. break;
  4903. case "doc":
  4904. aTool = 6;
  4905. _iframe = $$("iframe", {
  4906. "frameborder": "no",
  4907. "border": "0",
  4908. "scrolling ": "no",
  4909. "style": {
  4910. "cssText": "border:0;width:100%;height:100%"
  4911. },
  4912. "src": "/Office/Word/WordEditArea.htm"
  4913. })
  4914. _box.appendChild(_iframe);
  4915. _box.appendChild(_jie);
  4916. _formdiv = new U.UF.UI.form(
  4917. "协同文档-" + _username,
  4918. _box, {
  4919. "id": "doc" + cid + stage + task + tool + _userid,
  4920. "style": {
  4921. "width": "90%",
  4922. "height": "90%",
  4923. "overflow": 'hidden'
  4924. },
  4925. "onresize": function () { }
  4926. }, {
  4927. closecallback: function () { }
  4928. }, {
  4929. "style": {
  4930. "height": "36px"
  4931. }
  4932. }).form; //创建窗体
  4933. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4934. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4935. })
  4936. _taskbar = {
  4937. "id": str + _formdiv.id,
  4938. "style": {
  4939. "backgroundImage": "url(/img/icon/doc.png)"
  4940. },
  4941. "name": "协同文档",
  4942. "forms": _formdiv,
  4943. "click": function () {
  4944. U.MD.D.I.openApplication(str, obj, info);
  4945. }
  4946. }
  4947. break;
  4948. case "mindNetwork": //好友打开
  4949. aTool = 7;
  4950. _iframe = $$("iframe", {
  4951. "webkitallowfullscreen": "",
  4952. "mozallowfullscreen": "",
  4953. "allowfullscreen": "",
  4954. "frameborder": "no",
  4955. "border": "0",
  4956. "scrolling ": "no",
  4957. "style": {
  4958. "cssText": "border:0; width:100%; height:100%;"
  4959. },
  4960. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4961. })
  4962. _box.appendChild(_iframe);
  4963. _box.appendChild(_jie);
  4964. _formdiv = new U.UF.UI.form(
  4965. "思维网格-" + _username,
  4966. _box, {
  4967. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4968. "style": {
  4969. "width": "90%",
  4970. "height": "90%",
  4971. "overflow": 'hidden'
  4972. },
  4973. "onresize": function () { }
  4974. }, {
  4975. closecallback: function () { }
  4976. }, {
  4977. "style": {
  4978. "height": "36px"
  4979. }
  4980. }).form; //创建窗体
  4981. _taskbar = {
  4982. "id": str + _formdiv.id,
  4983. "style": {
  4984. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4985. },
  4986. "name": "思维网格",
  4987. "forms": _formdiv,
  4988. "click": function () {
  4989. U.MD.D.I.openApplication(str, obj, info);
  4990. }
  4991. }
  4992. break;
  4993. case "courseDesign":
  4994. _iframe = $$("iframe", {
  4995. "webkitallowfullscreen": "",
  4996. "mozallowfullscreen": "",
  4997. "allowfullscreen": "",
  4998. "frameborder": "no",
  4999. "border": "0",
  5000. "scrolling ": "no",
  5001. "style": {
  5002. "cssText": "border:0; width:100%; height:100%;"
  5003. },
  5004. "src": "/course-design-vue"
  5005. })
  5006. _box.appendChild(_iframe);
  5007. _box.appendChild(_jie);
  5008. _formdiv = new U.UF.UI.form(
  5009. "项目设计-" + _username,
  5010. _box, {
  5011. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5012. "style": {
  5013. "width": "90%",
  5014. "height": "90%",
  5015. "overflow": 'hidden'
  5016. },
  5017. "onresize": function () { }
  5018. }, {
  5019. closecallback: function () { }
  5020. }, {
  5021. "style": {
  5022. "height": "36px"
  5023. }
  5024. }).form; //创建窗体
  5025. _taskbar = {
  5026. "id": str + _formdiv.id,
  5027. "style": {
  5028. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5029. },
  5030. "name": "项目设计",
  5031. "forms": _formdiv,
  5032. "click": function () {
  5033. U.MD.D.I.openApplication(str, obj, info);
  5034. }
  5035. }
  5036. break;
  5037. }
  5038. const script1 = document.createElement("script");
  5039. script1.type = "text/javascript";
  5040. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5041. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5042. const script2 = document.createElement("script");
  5043. script2.type = "text/javascript";
  5044. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5045. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5046. const script3 = document.createElement("script");
  5047. script3.type = "text/javascript";
  5048. script3.charset = "UTF-8";
  5049. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5050. const script4 = document.createElement("script");
  5051. script4.type = "text/javascript";
  5052. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5053. script4.src = window.origin + "/js/Common/jietu2E.js";
  5054. if (_iframe) {
  5055. if (str == 'doc') {
  5056. _iframe = _formdiv.querySelector('iframe')
  5057. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5058. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5059. _iframe.contentWindow.document.body.appendChild(script1);
  5060. _iframe.contentWindow.document.body.appendChild(script2);
  5061. // _iframe.contentWindow.document.body.appendChild(script3);
  5062. _iframe.contentWindow.document.body.appendChild(script4);
  5063. })
  5064. if (onloadListener) {
  5065. _iframe.contentDocument.location.reload()
  5066. } else {
  5067. _iframe.contentDocument.location.reload()
  5068. }
  5069. } else if (str == 'courseDesign') {
  5070. U.UF.DL.iframeLoad(_iframe, function () {
  5071. // _iframe.contentWindow.U.MD.O.W.load();
  5072. // _iframe.contentWindow.document.body.appendChild(script1);
  5073. _iframe.contentWindow.document.body.appendChild(script2);
  5074. _iframe.contentWindow.document.body.appendChild(script4);
  5075. })
  5076. } else if (str == 'mind') {
  5077. _iframe = _formdiv.querySelector('iframe')
  5078. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5079. //
  5080. _iframe.contentWindow.document.body.appendChild(script1);
  5081. _iframe.contentWindow.document.body.appendChild(script2);
  5082. _iframe.contentWindow.document.body.appendChild(script4);
  5083. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5084. })
  5085. if (onloadListener) {
  5086. _iframe.contentDocument.location.reload()
  5087. } else {
  5088. _iframe.contentDocument.location.reload()
  5089. }
  5090. } else if (str == 'whiteboard') {
  5091. _iframe = _formdiv.querySelector('iframe')
  5092. let onloadListener = _iframe.onload = () => {
  5093. _iframe.contentWindow.document.body.appendChild(script1);
  5094. _iframe.contentWindow.document.body.appendChild(script2);
  5095. _iframe.contentWindow.document.body.appendChild(script4);
  5096. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5097. };
  5098. if (onloadListener) {
  5099. _iframe.contentDocument.location.reload()
  5100. } else {
  5101. _iframe.contentDocument.location.reload()
  5102. }
  5103. } else {
  5104. _iframe.onload = () => {
  5105. _iframe.contentWindow.document.body.appendChild(script1);
  5106. _iframe.contentWindow.document.body.appendChild(script2);
  5107. // _iframe.contentWindow.document.body.appendChild(script3);
  5108. _iframe.contentWindow.document.body.appendChild(script4);
  5109. };
  5110. }
  5111. _jie.onclick = async () => {
  5112. let text = ''
  5113. if (aTool == 1) {
  5114. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5115. } else if (aTool == 6) {
  5116. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5117. } else if (aTool == 3) {
  5118. text = await U.MD.D.I.getEditorContent(_iframe);
  5119. }
  5120. _loading.style.display = 'flex'
  5121. console.log(_loading);
  5122. var _ajs = _iframe.contentWindow.document.createElement("script");
  5123. _ajs.type = "text/javascript";
  5124. _ajs.innerHTML =
  5125. // 'console.log(' + _loading + ');\n' +
  5126. 'var _js = document.createElement("script");\n' +
  5127. '_js.type="text/javascript";\n' +
  5128. '_js.charset="UTF-8";\n' +
  5129. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5130. "_js.onload = function(){\n" +
  5131. ' var a = document.getElementsByTagName("img")\n' +
  5132. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5133. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5134. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5135. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5136. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5137. "beforeUpload_shishi(file," +
  5138. "'" +
  5139. _userid +
  5140. "'" +
  5141. ", " +
  5142. "'" +
  5143. _cid +
  5144. "'" +
  5145. ", " +
  5146. "'" +
  5147. _stage +
  5148. "'" +
  5149. ", " +
  5150. "'" +
  5151. _task +
  5152. "'" +
  5153. ", " +
  5154. "'" +
  5155. _tool +
  5156. "'" +
  5157. ", " +
  5158. "'" +
  5159. str + '_loadLi' + _userid +
  5160. "'" +
  5161. ", " +
  5162. "'" +
  5163. aTool +
  5164. "'" +
  5165. ", " +
  5166. "`" +
  5167. text +
  5168. "`" +
  5169. ")\n" +
  5170. " });\n" +
  5171. "}\n" +
  5172. "document.head.appendChild(_js);\n";
  5173. _iframe.contentWindow.document.head.appendChild(_ajs);
  5174. }
  5175. }
  5176. }
  5177. U.MD.D.I.getEditorContent = function (iframe) {
  5178. return new Promise((resolve, reject) => {
  5179. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5180. console.log(content);
  5181. resolve(content)
  5182. });
  5183. });
  5184. }
  5185. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5186. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5187. // if (res.value[0].length > 0) {
  5188. // // resolve(res.value[0][0].text);
  5189. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5190. // $(fileInput).val('');
  5191. // });
  5192. // }
  5193. // }, [], { "type": "GET", "withCredentials": true });
  5194. var xmlhttp;
  5195. var Mac, Sn, DeviceId
  5196. if (window.XMLHttpRequest) {
  5197. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5198. xmlhttp = new XMLHttpRequest();
  5199. }
  5200. else {
  5201. // IE6, IE5 浏览器执行代码
  5202. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5203. }
  5204. xmlhttp.onreadystatechange = function () {
  5205. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5206. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5207. // resolve(res.value[0][0].text);
  5208. if (type == '2') {
  5209. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5210. $(fileInput).val('');
  5211. });
  5212. } else if (type == '3') {
  5213. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5214. }
  5215. } else {
  5216. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5217. }
  5218. }
  5219. }
  5220. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5221. xmlhttp.send();
  5222. }
  5223. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5224. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5225. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5226. _userinfo = US.userInfo, //登录用户信息
  5227. _userid = US.userInfo.userid //登录用户id
  5228. let _iframe;
  5229. let _cid = cid,
  5230. _stage = stage,
  5231. _task = task,
  5232. _tool = tool;
  5233. var _jie = $$("div", {
  5234. "style": {
  5235. "position": "absolute",
  5236. "bottom": "50px",
  5237. "right": "50px",
  5238. "zIndex": "9999",
  5239. "backgroundColor": "#2268bc",
  5240. "color": "#fff",
  5241. "padding": "12px 20px",
  5242. "cursor": "pointer",
  5243. "borderRadius": "4px",
  5244. },
  5245. "innerHTML": "确认并提交"
  5246. })
  5247. let aTool = ''
  5248. let _loading = document.createElement('div')
  5249. _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;"
  5250. // _loading.id = "";
  5251. let _lchild = document.createElement('div')
  5252. let _limg = document.createElement('img')
  5253. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5254. _limg.style = "width: 26px;margin-right: 10px;"
  5255. _lchild.appendChild(_limg)
  5256. let _lspan = document.createElement('span')
  5257. _lspan.innerHTML = "上传中..."
  5258. _lchild.appendChild(_lspan)
  5259. _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%);"
  5260. _loading.appendChild(_lchild)
  5261. var _box = $$('div', {
  5262. "style": {
  5263. "position": "relative",
  5264. "width": "100%",
  5265. "height": "100%",
  5266. },
  5267. })
  5268. _box.appendChild(_loading)
  5269. _box.id = str + '_loadLi'
  5270. switch (str) {
  5271. case "whiteboard":
  5272. aTool = 1;
  5273. _iframe = $$("iframe", {
  5274. "frameborder": "no",
  5275. "border": "0",
  5276. "scrolling ": "no",
  5277. "style": {
  5278. "cssText": "border:0;width:100%;height:100%"
  5279. },
  5280. "src": "https://iwb.cocorobo.cn/"
  5281. })
  5282. _box.appendChild(_iframe);
  5283. _box.appendChild(_jie);
  5284. _formdiv = new U.UF.UI.form(
  5285. "电子白板",
  5286. _box, {
  5287. "id": "whiteboards" + cid + stage + task + tool,
  5288. "style": {
  5289. "width": "90%",
  5290. "height": "90%",
  5291. "overflow": 'hidden'
  5292. },
  5293. "onresize": function () { }
  5294. }, {
  5295. closecallback: function () { }
  5296. }, {
  5297. "style": {
  5298. "height": "36px"
  5299. }
  5300. }).form; //创建窗体
  5301. _taskbar = {
  5302. "id": str + _formdiv.id,
  5303. "style": {
  5304. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5305. },
  5306. "name": "电子白板",
  5307. "forms": _formdiv,
  5308. "click": function () {
  5309. U.MD.D.I.openApplication(str, obj, info);
  5310. }
  5311. }
  5312. break;
  5313. case "mind":
  5314. aTool = 3;
  5315. _iframe = $$("iframe", {
  5316. "frameborder": "no",
  5317. "border": "0",
  5318. "scrolling ": "no",
  5319. "style": {
  5320. "cssText": "border:0;width:100%;height:100%"
  5321. },
  5322. "src": "/kityminder-editor/dist/index.html"
  5323. });
  5324. _box.appendChild(_iframe);
  5325. _box.appendChild(_jie);
  5326. _formdiv = new U.UF.UI.form(
  5327. "思维导图",
  5328. _box, { //"/jsmind/example/demo.html"
  5329. "id": "minds" + cid + stage + task + tool,
  5330. "style": {
  5331. "width": "90%",
  5332. "height": "90%",
  5333. "overflow": 'hidden'
  5334. },
  5335. "onresize": function () { }
  5336. }, {
  5337. closecallback: function () { }
  5338. }, {
  5339. "style": {
  5340. "height": "36px"
  5341. }
  5342. }).form; //创建窗体
  5343. _taskbar = {
  5344. "id": str + _formdiv.id,
  5345. "style": {
  5346. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5347. },
  5348. "name": "思维导图",
  5349. "forms": _formdiv,
  5350. "click": function () {
  5351. U.MD.D.I.openApplication(str, obj, info);
  5352. }
  5353. }
  5354. break;
  5355. case "doc":
  5356. aTool = 6;
  5357. _iframe = $$("iframe", {
  5358. "frameborder": "no",
  5359. "border": "0",
  5360. "scrolling ": "no",
  5361. "style": {
  5362. "cssText": "border:0;width:100%;height:100%"
  5363. },
  5364. "src": "/Office/Word/WordEditArea.htm"
  5365. })
  5366. _box.appendChild(_iframe);
  5367. _box.appendChild(_jie);
  5368. _formdiv = new U.UF.UI.form(
  5369. "协同文档",
  5370. _box, {
  5371. "id": "docs" + cid + stage + task + tool,
  5372. "style": {
  5373. "width": "90%",
  5374. "height": "90%",
  5375. "overflow": 'hidden'
  5376. },
  5377. "onresize": function () { }
  5378. }, {
  5379. closecallback: function () { }
  5380. }, {
  5381. "style": {
  5382. "height": "36px"
  5383. }
  5384. }).form; //创建窗体
  5385. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5386. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5387. })
  5388. _taskbar = {
  5389. "id": str + _formdiv.id,
  5390. "style": {
  5391. "backgroundImage": "url(/img/icon/doc.png)"
  5392. },
  5393. "name": "协同文档",
  5394. "forms": _formdiv,
  5395. "click": function () {
  5396. U.MD.D.I.openApplication(str, obj, info);
  5397. }
  5398. }
  5399. break;
  5400. }
  5401. const script1 = document.createElement("script");
  5402. script1.type = "text/javascript";
  5403. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5404. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5405. const script2 = document.createElement("script");
  5406. script2.type = "text/javascript";
  5407. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5408. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5409. const script3 = document.createElement("script");
  5410. script3.type = "text/javascript";
  5411. script3.charset = "UTF-8";
  5412. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5413. const script4 = document.createElement("script");
  5414. script4.type = "text/javascript";
  5415. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5416. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5417. if (_iframe) {
  5418. if (str == 'doc') {
  5419. _iframe = _formdiv.querySelector('iframe')
  5420. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5421. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5422. _iframe.contentWindow.document.body.appendChild(script1);
  5423. _iframe.contentWindow.document.body.appendChild(script2);
  5424. // _iframe.contentWindow.document.body.appendChild(script3);
  5425. _iframe.contentWindow.document.body.appendChild(script4);
  5426. })
  5427. if (onloadListener) {
  5428. _iframe.contentDocument.location.reload()
  5429. } else {
  5430. _iframe.contentDocument.location.reload()
  5431. }
  5432. } else if (str == 'mind') {
  5433. _iframe = _formdiv.querySelector('iframe')
  5434. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5435. _iframe.contentWindow.document.body.appendChild(script1);
  5436. _iframe.contentWindow.document.body.appendChild(script2);
  5437. _iframe.contentWindow.document.body.appendChild(script4);
  5438. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5439. })
  5440. if (onloadListener) {
  5441. _iframe.contentDocument.location.reload()
  5442. } else {
  5443. _iframe.contentDocument.location.reload()
  5444. }
  5445. } else {
  5446. _iframe.onload = () => {
  5447. _iframe.contentWindow.document.body.appendChild(script1);
  5448. _iframe.contentWindow.document.body.appendChild(script2);
  5449. // _iframe.contentWindow.document.body.appendChild(script3);
  5450. _iframe.contentWindow.document.body.appendChild(script4);
  5451. };
  5452. }
  5453. _jie.onclick = async () => {
  5454. let text = ''
  5455. if (aTool == 6) {
  5456. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5457. } else if (aTool == 3) {
  5458. text = await U.MD.D.I.getEditorContent(_iframe);
  5459. }
  5460. _loading.style.display = 'flex'
  5461. console.log(_loading);
  5462. var _ajs = _iframe.contentWindow.document.createElement("script");
  5463. _ajs.type = "text/javascript";
  5464. _ajs.innerHTML =
  5465. // 'console.log(' + _loading + ');\n' +
  5466. 'var _js = document.createElement("script");\n' +
  5467. '_js.type="text/javascript";\n' +
  5468. '_js.charset="UTF-8";\n' +
  5469. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5470. "_js.onload = function(){\n" +
  5471. ' var a = document.getElementsByTagName("img")\n' +
  5472. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5473. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5474. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5475. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5476. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5477. "beforeUpload_shishi(file," +
  5478. "'" +
  5479. _userid +
  5480. "'" +
  5481. ", " +
  5482. "'" +
  5483. _cid +
  5484. "'" +
  5485. ", " +
  5486. "'" +
  5487. _stage +
  5488. "'" +
  5489. ", " +
  5490. "'" +
  5491. _task +
  5492. "'" +
  5493. ", " +
  5494. "'" +
  5495. _tool +
  5496. "'" +
  5497. ", " +
  5498. "'" +
  5499. str + '_loadLi' +
  5500. "'" +
  5501. ", " +
  5502. "'" +
  5503. aTool +
  5504. "'" +
  5505. ", " +
  5506. "`" +
  5507. text +
  5508. "`" +
  5509. ")\n" +
  5510. " });\n" +
  5511. "}\n" +
  5512. "document.head.appendChild(_js);\n";
  5513. _iframe.contentWindow.document.head.appendChild(_ajs);
  5514. }
  5515. }
  5516. //U.MD.D.I.openClick(str);
  5517. //如果有任务栏信息
  5518. // if (_taskbar) {
  5519. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5520. // }
  5521. }
  5522. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  5523. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5524. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5525. _userinfo = US.userInfo, //登录用户信息
  5526. _userid = US.userInfo.userid //登录用户id
  5527. let _iframe;
  5528. let _cid = cid,
  5529. _stage = stage,
  5530. _task = task,
  5531. _tool = tool;
  5532. var _jie = $$("div", {
  5533. "style": {
  5534. "position": "absolute",
  5535. "bottom": "50px",
  5536. "right": "50px",
  5537. "zIndex": "9999",
  5538. "backgroundColor": "#2268bc",
  5539. "color": "#fff",
  5540. "padding": "12px 20px",
  5541. "cursor": "pointer",
  5542. "borderRadius": "4px",
  5543. },
  5544. "innerHTML": "确认并提交"
  5545. })
  5546. let aTool = ''
  5547. let _loading = document.createElement('div')
  5548. _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;"
  5549. // _loading.id = "";
  5550. let _lchild = document.createElement('div')
  5551. let _limg = document.createElement('img')
  5552. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5553. _limg.style = "width: 26px;margin-right: 10px;"
  5554. _lchild.appendChild(_limg)
  5555. let _lspan = document.createElement('span')
  5556. _lspan.innerHTML = "上传中..."
  5557. _lchild.appendChild(_lspan)
  5558. _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%);"
  5559. _loading.appendChild(_lchild)
  5560. var _box = $$('div', {
  5561. "style": {
  5562. "position": "relative",
  5563. "width": "100%",
  5564. "height": "100%",
  5565. },
  5566. })
  5567. _box.appendChild(_loading)
  5568. _box.id = str + '_loadLi'
  5569. switch (str) {
  5570. case "whiteboard":
  5571. aTool = 1;
  5572. _iframe = $$("iframe", {
  5573. "frameborder": "no",
  5574. "border": "0",
  5575. "scrolling ": "no",
  5576. "style": {
  5577. "cssText": "border:0;width:100%;height:100%"
  5578. },
  5579. "src": "https://iwb.cocorobo.cn/"
  5580. })
  5581. _box.appendChild(_iframe);
  5582. _box.appendChild(_jie);
  5583. _formdiv = new U.UF.UI.form(
  5584. "电子白板",
  5585. _box, {
  5586. "id": "whiteboards" + cid + stage + task + tool,
  5587. "style": {
  5588. "width": "90%",
  5589. "height": "90%",
  5590. "overflow": 'hidden'
  5591. },
  5592. "onresize": function () { }
  5593. }, {
  5594. closecallback: function () { }
  5595. }, {
  5596. "style": {
  5597. "height": "36px"
  5598. }
  5599. }).form; //创建窗体
  5600. _taskbar = {
  5601. "id": str + _formdiv.id,
  5602. "style": {
  5603. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5604. },
  5605. "name": "电子白板",
  5606. "forms": _formdiv,
  5607. "click": function () {
  5608. U.MD.D.I.openApplication(str, obj, info);
  5609. }
  5610. }
  5611. break;
  5612. case "mind":
  5613. aTool = 3;
  5614. _iframe = $$("iframe", {
  5615. "frameborder": "no",
  5616. "border": "0",
  5617. "scrolling ": "no",
  5618. "style": {
  5619. "cssText": "border:0;width:100%;height:100%"
  5620. },
  5621. "src": "/kityminder-editor/dist/index.html"
  5622. });
  5623. _box.appendChild(_iframe);
  5624. _box.appendChild(_jie);
  5625. _formdiv = new U.UF.UI.form(
  5626. "思维导图",
  5627. _box, { //"/jsmind/example/demo.html"
  5628. "id": "minds" + cid + stage + task + tool,
  5629. "style": {
  5630. "width": "90%",
  5631. "height": "90%",
  5632. "overflow": 'hidden'
  5633. },
  5634. "onresize": function () { }
  5635. }, {
  5636. closecallback: function () { }
  5637. }, {
  5638. "style": {
  5639. "height": "36px"
  5640. }
  5641. }).form; //创建窗体
  5642. _taskbar = {
  5643. "id": str + _formdiv.id,
  5644. "style": {
  5645. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5646. },
  5647. "name": "思维导图",
  5648. "forms": _formdiv,
  5649. "click": function () {
  5650. U.MD.D.I.openApplication(str, obj, info);
  5651. }
  5652. }
  5653. break;
  5654. case "doc":
  5655. aTool = 6;
  5656. _iframe = $$("iframe", {
  5657. "frameborder": "no",
  5658. "border": "0",
  5659. "scrolling ": "no",
  5660. "style": {
  5661. "cssText": "border:0;width:100%;height:100%"
  5662. },
  5663. "src": "/Office/Word/WordEditArea.htm"
  5664. })
  5665. _box.appendChild(_iframe);
  5666. _box.appendChild(_jie);
  5667. _formdiv = new U.UF.UI.form(
  5668. "协同文档",
  5669. _box, {
  5670. "id": "docs" + cid + stage + task + tool,
  5671. "style": {
  5672. "width": "90%",
  5673. "height": "90%",
  5674. "overflow": 'hidden'
  5675. },
  5676. "onresize": function () { }
  5677. }, {
  5678. closecallback: function () { }
  5679. }, {
  5680. "style": {
  5681. "height": "36px"
  5682. }
  5683. }).form; //创建窗体
  5684. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5685. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5686. })
  5687. _taskbar = {
  5688. "id": str + _formdiv.id,
  5689. "style": {
  5690. "backgroundImage": "url(/img/icon/doc.png)"
  5691. },
  5692. "name": "协同文档",
  5693. "forms": _formdiv,
  5694. "click": function () {
  5695. U.MD.D.I.openApplication(str, obj, info);
  5696. }
  5697. }
  5698. break;
  5699. }
  5700. const script1 = document.createElement("script");
  5701. script1.type = "text/javascript";
  5702. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5703. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5704. const script2 = document.createElement("script");
  5705. script2.type = "text/javascript";
  5706. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5707. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5708. const script3 = document.createElement("script");
  5709. script3.type = "text/javascript";
  5710. script3.charset = "UTF-8";
  5711. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5712. const script4 = document.createElement("script");
  5713. script4.type = "text/javascript";
  5714. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5715. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  5716. if (_iframe) {
  5717. if (str == 'doc') {
  5718. _iframe = _formdiv.querySelector('iframe')
  5719. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5720. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5721. _iframe.contentWindow.document.body.appendChild(script1);
  5722. _iframe.contentWindow.document.body.appendChild(script2);
  5723. // _iframe.contentWindow.document.body.appendChild(script3);
  5724. _iframe.contentWindow.document.body.appendChild(script4);
  5725. })
  5726. if (onloadListener) {
  5727. _iframe.contentDocument.location.reload()
  5728. } else {
  5729. _iframe.contentDocument.location.reload()
  5730. }
  5731. } else if (str == 'mind') {
  5732. _iframe = _formdiv.querySelector('iframe')
  5733. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5734. _iframe.contentWindow.document.body.appendChild(script1);
  5735. _iframe.contentWindow.document.body.appendChild(script2);
  5736. _iframe.contentWindow.document.body.appendChild(script4);
  5737. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5738. })
  5739. if (onloadListener) {
  5740. _iframe.contentDocument.location.reload()
  5741. } else {
  5742. _iframe.contentDocument.location.reload()
  5743. }
  5744. } else {
  5745. _iframe.onload = () => {
  5746. _iframe.contentWindow.document.body.appendChild(script1);
  5747. _iframe.contentWindow.document.body.appendChild(script2);
  5748. // _iframe.contentWindow.document.body.appendChild(script3);
  5749. _iframe.contentWindow.document.body.appendChild(script4);
  5750. };
  5751. }
  5752. _jie.onclick = async () => {
  5753. let text = ''
  5754. if (aTool == 6) {
  5755. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5756. } else if (aTool == 3) {
  5757. text = await U.MD.D.I.getEditorContent(_iframe);
  5758. }
  5759. _loading.style.display = 'flex'
  5760. console.log(_loading);
  5761. var _ajs = _iframe.contentWindow.document.createElement("script");
  5762. _ajs.type = "text/javascript";
  5763. _ajs.innerHTML =
  5764. // 'console.log(' + _loading + ');\n' +
  5765. 'var _js = document.createElement("script");\n' +
  5766. '_js.type="text/javascript";\n' +
  5767. '_js.charset="UTF-8";\n' +
  5768. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5769. "_js.onload = function(){\n" +
  5770. ' var a = document.getElementsByTagName("img")\n' +
  5771. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5772. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5773. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5774. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5775. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5776. "beforeUpload_shishi(file," +
  5777. "'" +
  5778. _userid +
  5779. "'" +
  5780. ", " +
  5781. "'" +
  5782. _cid +
  5783. "'" +
  5784. ", " +
  5785. "'" +
  5786. _stage +
  5787. "'" +
  5788. ", " +
  5789. "'" +
  5790. _task +
  5791. "'" +
  5792. ", " +
  5793. "'" +
  5794. _tool +
  5795. "'" +
  5796. ", " +
  5797. "'" +
  5798. str + '_loadLi' +
  5799. "'" +
  5800. ", " +
  5801. "'" +
  5802. aTool +
  5803. "'" +
  5804. ", " +
  5805. "`" +
  5806. text +
  5807. "`" +
  5808. ")\n" +
  5809. " });\n" +
  5810. "}\n" +
  5811. "document.head.appendChild(_js);\n";
  5812. _iframe.contentWindow.document.head.appendChild(_ajs);
  5813. }
  5814. }
  5815. //U.MD.D.I.openClick(str);
  5816. //如果有任务栏信息
  5817. // if (_taskbar) {
  5818. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5819. // }
  5820. }
  5821. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  5822. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5823. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5824. _userinfo = US.userInfo, //登录用户信息
  5825. _userid = US.userInfo.userid //登录用户id
  5826. let _iframe;
  5827. let _cid = cid,
  5828. _stage = stage,
  5829. _task = task,
  5830. _tool = tool;
  5831. var _jie = $$("div", {
  5832. "style": {
  5833. "position": "absolute",
  5834. "bottom": "50px",
  5835. "right": "50px",
  5836. "zIndex": "9999",
  5837. "backgroundColor": "#2268bc",
  5838. "color": "#fff",
  5839. "padding": "12px 20px",
  5840. "cursor": "pointer",
  5841. "borderRadius": "4px",
  5842. },
  5843. "innerHTML": "上传模板"
  5844. })
  5845. let aTool = ''
  5846. let _loading = document.createElement('div')
  5847. _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;"
  5848. // _loading.id = "";
  5849. let _lchild = document.createElement('div')
  5850. let _limg = document.createElement('img')
  5851. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5852. _limg.style = "width: 26px;margin-right: 10px;"
  5853. _lchild.appendChild(_limg)
  5854. let _lspan = document.createElement('span')
  5855. _lspan.innerHTML = "上传中..."
  5856. _lchild.appendChild(_lspan)
  5857. _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%);"
  5858. _loading.appendChild(_lchild)
  5859. var _box = $$('div', {
  5860. "style": {
  5861. "position": "relative",
  5862. "width": "100%",
  5863. "height": "100%",
  5864. },
  5865. })
  5866. _box.appendChild(_loading)
  5867. _box.id = str + '_loadLi'
  5868. switch (str) {
  5869. case "whiteboard":
  5870. aTool = 1;
  5871. _iframe = $$("iframe", {
  5872. "frameborder": "no",
  5873. "border": "0",
  5874. "scrolling ": "no",
  5875. "style": {
  5876. "cssText": "border:0;width:100%;height:100%"
  5877. },
  5878. "src": "https://iwb.cocorobo.cn/"
  5879. })
  5880. _box.appendChild(_iframe);
  5881. _box.appendChild(_jie);
  5882. _formdiv = new U.UF.UI.form(
  5883. "电子白板",
  5884. _box, {
  5885. "id": "whiteboards" + cid + stage + task + tool,
  5886. "style": {
  5887. "width": "90%",
  5888. "height": "90%",
  5889. "overflow": 'hidden'
  5890. },
  5891. "onresize": function () { }
  5892. }, {
  5893. closecallback: function () { }
  5894. }, {
  5895. "style": {
  5896. "height": "36px"
  5897. }
  5898. }).form; //创建窗体
  5899. _taskbar = {
  5900. "id": str + _formdiv.id,
  5901. "style": {
  5902. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5903. },
  5904. "name": "电子白板",
  5905. "forms": _formdiv,
  5906. "click": function () {
  5907. U.MD.D.I.openApplication(str, obj, info);
  5908. }
  5909. }
  5910. break;
  5911. case "mind":
  5912. aTool = 3;
  5913. _iframe = $$("iframe", {
  5914. "frameborder": "no",
  5915. "border": "0",
  5916. "scrolling ": "no",
  5917. "style": {
  5918. "cssText": "border:0;width:100%;height:100%"
  5919. },
  5920. "src": "/kityminder-editor/dist/index.html"
  5921. });
  5922. _box.appendChild(_iframe);
  5923. _box.appendChild(_jie);
  5924. _formdiv = new U.UF.UI.form(
  5925. "思维导图",
  5926. _box, { //"/jsmind/example/demo.html"
  5927. "id": "minds" + cid + stage + task + tool,
  5928. "style": {
  5929. "width": "90%",
  5930. "height": "90%",
  5931. "overflow": 'hidden'
  5932. },
  5933. "onresize": function () { }
  5934. }, {
  5935. closecallback: function () { }
  5936. }, {
  5937. "style": {
  5938. "height": "36px"
  5939. }
  5940. }).form; //创建窗体
  5941. _taskbar = {
  5942. "id": str + _formdiv.id,
  5943. "style": {
  5944. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5945. },
  5946. "name": "思维导图",
  5947. "forms": _formdiv,
  5948. "click": function () {
  5949. U.MD.D.I.openApplication(str, obj, info);
  5950. }
  5951. }
  5952. break;
  5953. case "doc":
  5954. aTool = 6;
  5955. _iframe = $$("iframe", {
  5956. "frameborder": "no",
  5957. "border": "0",
  5958. "scrolling ": "no",
  5959. "style": {
  5960. "cssText": "border:0;width:100%;height:100%"
  5961. },
  5962. "src": "/Office/Word/WordEditArea.htm"
  5963. })
  5964. _box.appendChild(_iframe);
  5965. _box.appendChild(_jie);
  5966. _formdiv = new U.UF.UI.form(
  5967. "协同文档",
  5968. _box, {
  5969. "id": "docs" + cid + stage + task + tool,
  5970. "style": {
  5971. "width": "90%",
  5972. "height": "90%",
  5973. "overflow": 'hidden'
  5974. },
  5975. "onresize": function () { }
  5976. }, {
  5977. closecallback: function () { }
  5978. }, {
  5979. "style": {
  5980. "height": "36px"
  5981. }
  5982. }).form; //创建窗体
  5983. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5984. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5985. })
  5986. _taskbar = {
  5987. "id": str + _formdiv.id,
  5988. "style": {
  5989. "backgroundImage": "url(/img/icon/doc.png)"
  5990. },
  5991. "name": "协同文档",
  5992. "forms": _formdiv,
  5993. "click": function () {
  5994. U.MD.D.I.openApplication(str, obj, info);
  5995. }
  5996. }
  5997. break;
  5998. }
  5999. if (_iframe) {
  6000. if (str == 'doc') {
  6001. _iframe = _formdiv.querySelector('iframe')
  6002. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6003. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6004. })
  6005. if (onloadListener) {
  6006. _iframe.contentDocument.location.reload()
  6007. } else {
  6008. _iframe.contentDocument.location.reload()
  6009. }
  6010. } else if (str == 'mind') {
  6011. _iframe = _formdiv.querySelector('iframe')
  6012. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6013. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6014. })
  6015. if (onloadListener) {
  6016. _iframe.contentDocument.location.reload()
  6017. } else {
  6018. _iframe.contentDocument.location.reload()
  6019. }
  6020. } else if (str == 'whiteboard') {
  6021. _iframe = _formdiv.querySelector('iframe')
  6022. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6023. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6024. })
  6025. if (onloadListener) {
  6026. _iframe.contentDocument.location.reload()
  6027. } else {
  6028. _iframe.contentDocument.location.reload()
  6029. }
  6030. } else {
  6031. _iframe.onload = () => {
  6032. };
  6033. }
  6034. _jie.onclick = async () => {
  6035. let text = ''
  6036. let type = '2'
  6037. if (aTool == 1) {
  6038. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6039. type = '3'
  6040. } else if (aTool == 6) {
  6041. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6042. type = '1'
  6043. } else if (aTool == 3) {
  6044. text = await U.MD.D.I.getEditorContent(_iframe);
  6045. type = '2'
  6046. }
  6047. _loading.style.display = 'flex'
  6048. U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading, _lspan)
  6049. }
  6050. }
  6051. //U.MD.D.I.openClick(str);
  6052. //如果有任务栏信息
  6053. // if (_taskbar) {
  6054. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6055. // }
  6056. }
  6057. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6058. var xmlhttp;
  6059. var Mac, Sn, DeviceId
  6060. if (window.XMLHttpRequest) {
  6061. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6062. xmlhttp = new XMLHttpRequest();
  6063. }
  6064. else {
  6065. // IE6, IE5 浏览器执行代码
  6066. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6067. }
  6068. xmlhttp.onreadystatechange = function () {
  6069. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6070. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6071. // resolve(res.value[0][0].text);
  6072. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6073. $(fileInput).val('');
  6074. });
  6075. }
  6076. }
  6077. }
  6078. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6079. xmlhttp.send();
  6080. }
  6081. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6082. var xmlhttp;
  6083. var Mac, Sn, DeviceId
  6084. if (window.XMLHttpRequest) {
  6085. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6086. xmlhttp = new XMLHttpRequest();
  6087. }
  6088. else {
  6089. // IE6, IE5 浏览器执行代码
  6090. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6091. }
  6092. xmlhttp.onreadystatechange = function () {
  6093. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6094. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6095. // resolve(res.value[0][0].text);
  6096. if (type == '2') {
  6097. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6098. $(fileInput).val('');
  6099. });
  6100. } else if (type == '3') {
  6101. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6102. }
  6103. } else {
  6104. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6105. }
  6106. }
  6107. }
  6108. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6109. xmlhttp.send();
  6110. }
  6111. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6112. var xmlhttp;
  6113. var Mac, Sn, DeviceId
  6114. if (window.XMLHttpRequest) {
  6115. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6116. xmlhttp = new XMLHttpRequest();
  6117. }
  6118. else {
  6119. // IE6, IE5 浏览器执行代码
  6120. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6121. }
  6122. xmlhttp.onreadystatechange = function () {
  6123. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6124. if (xmlhttp.response) {
  6125. // resolve(res.value[0][0].text);
  6126. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6127. // $(fileInput).val('');
  6128. // });
  6129. span.innerHTML = '上传成功'
  6130. setTimeout(() => {
  6131. loading.style.display = 'none'
  6132. }, 1000);
  6133. }
  6134. }
  6135. }
  6136. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6137. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6138. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6139. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6140. // 设置请求头,表示请求体的编码格式
  6141. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
  6142. // 设置请求体,使用url-encoded格式的数据
  6143. }