DeskTop.js 305 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327
  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": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  44. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  45. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  46. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  47. ];
  48. //极简模式
  49. U.MD.D.I.easyDeskIcon = [
  50. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  51. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  52. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  54. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  55. ];
  56. //教师桌面图标的全局变量
  57. U.MD.D.I.teacherDeskIcon2 = [
  58. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  59. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  60. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  61. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  62. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  63. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  64. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  65. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  66. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  67. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  68. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  69. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  70. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  71. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  72. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  73. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  74. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  75. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  76. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  77. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  78. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  79. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  80. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  81. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  82. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  83. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  84. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  85. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  86. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  87. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  88. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  89. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  90. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  91. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  92. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  93. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  94. ];
  95. U.MD.D.I.studentDeskIcon = [
  96. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  97. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  98. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  99. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  100. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  101. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  102. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  103. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  104. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  105. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  106. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  107. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  108. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  109. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  110. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  111. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  112. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  113. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  114. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  115. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  116. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  117. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  118. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  119. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  120. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  121. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  122. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  123. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  124. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  125. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  126. ];
  127. U.MD.D.I.studentDeskIcon2 = [
  128. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  129. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  130. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  131. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  132. ]
  133. U.MD.D.I.studentDeskIcon3 = [
  134. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  135. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  136. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  137. ]
  138. U.MD.D.I.schoolDeskIcon = [
  139. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  140. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  141. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  142. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  143. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  144. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  145. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  146. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  147. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  148. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  149. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  150. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  151. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  152. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  153. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  154. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  155. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  156. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  157. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  158. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  159. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  160. ];
  161. U.MD.D.I.orgDeskIcon = [
  162. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  163. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  164. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  165. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  166. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  167. ];
  168. U.MD.D.I.orgStemDeskIcon = [
  169. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  170. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  171. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  172. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  173. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  174. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  175. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  176. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  177. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  178. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  179. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  180. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  181. ];
  182. U.MD.D.I.szulsDeskIcon = [
  183. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  184. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  185. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  186. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  187. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  188. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  189. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  190. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  191. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  192. ];
  193. U.MD.D.I.hanDeskIcon = [
  194. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  195. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  196. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  197. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  198. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  199. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  200. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  201. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  202. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  203. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  204. ];
  205. U.MD.D.I.GMteacherDeskIcon = [
  206. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  207. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  208. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  209. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  210. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  211. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  212. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  213. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  214. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  215. ];
  216. U.MD.D.I.GMstudentDeskIcon = [
  217. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  218. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  219. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  220. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  221. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  222. ];
  223. //北师大
  224. U.MD.D.I.BSDNSteacherDeskIcon = [
  225. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  226. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  227. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  228. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  229. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  230. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  231. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  232. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  233. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  234. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  235. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  236. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  237. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  238. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  239. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  240. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  241. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  242. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  243. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  244. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  245. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  246. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  247. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  248. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  249. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  250. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  251. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  252. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  253. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  254. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  255. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  256. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  257. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  258. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  259. ];
  260. //松山湖
  261. U.MD.D.I.SONGteacherDeskIcon = [
  262. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  263. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  264. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  265. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  266. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  267. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  268. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  269. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  270. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  271. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  272. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  273. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  274. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  275. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  276. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  277. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  278. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  279. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  280. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  281. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  282. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  283. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  284. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  285. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  286. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  287. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  288. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  289. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  290. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  291. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  292. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  293. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  294. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  295. ];
  296. U.MD.D.I.tcStudentDeskIcon = [
  297. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  298. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  299. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  300. ];
  301. U.MD.D.I.tcTeacherDeskIcon = [
  302. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  303. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  304. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  305. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  306. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  307. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  308. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  309. ];
  310. U.MD.D.I.tcOrganizerDeskIcon = [
  311. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  312. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  313. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  314. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  315. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  316. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  317. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  318. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  319. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  320. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  321. ];
  322. U.MD.D.I.szscStudentDeskIcon = [
  323. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  324. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  325. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  326. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  327. ];
  328. U.MD.D.I.szscTeacherDeskIcon = [
  329. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  330. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  331. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  332. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  333. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  334. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.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.szscOrganizerDeskIcon = [
  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": "studentCourseS", "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": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  344. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.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.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  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": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  352. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  353. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  354. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  355. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  356. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  357. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  358. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  359. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  360. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  361. ];
  362. U.MD.D.I.wankeAdminDeskIcon = [
  363. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  364. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  365. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  366. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  367. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  368. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  369. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  370. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  371. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  372. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  373. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  374. ];
  375. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  376. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  377. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  378. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  379. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  380. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  381. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  382. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  383. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  384. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  385. ];
  386. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  387. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  388. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  389. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  390. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  391. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  392. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  393. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  394. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  395. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  396. ];
  397. //明德教师桌面图标的全局变量
  398. U.MD.D.I.MingdeTeacherDeskIcon = [
  399. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  400. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  401. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  402. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  403. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  404. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  405. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  406. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  407. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  408. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  409. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  410. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  411. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  412. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  413. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  414. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  415. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  416. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  417. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  418. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  419. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  420. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  421. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  422. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  423. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  424. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  425. ];
  426. //97c4ee8b-d010-4042-986d-e9d3c217264f
  427. //教师桌面图标的全局变量
  428. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  429. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  430. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  431. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  432. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  433. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  434. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  435. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  436. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  437. ];
  438. //福田
  439. U.MD.D.I.futianTeacherDeskIcon = [
  440. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  441. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  442. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  443. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  444. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  445. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  446. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  447. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  448. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  449. ];
  450. //#region 桌面初始化a
  451. /**
  452. * 初始化桌面的起始函数
  453. *
  454. */
  455. U.MD.D.I.init = function () {
  456. if ($("#U_MD_D_K")[0]) {
  457. //初始化桌面图标
  458. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  459. // var clickUrl = ':12588/requestIp.php';
  460. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  461. // U.MD.D.I.Ip = data;
  462. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  463. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  464. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  465. // })
  466. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  467. // })
  468. }
  469. }
  470. /**
  471. * 模式切换
  472. *
  473. */
  474. U.MD.D.I.ModeCheck = function (type) {
  475. if (US.Config.type == type) {
  476. return
  477. }
  478. US.Config.type = type
  479. $('.U_PBL_Check .active')[0].className = ''
  480. if (type == 1) {
  481. $('.U_PBL_Check div')[0].className = 'active'
  482. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  483. } else {
  484. $('.U_PBL_Check div')[1].className = 'active'
  485. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  486. }
  487. //初始化桌面图标
  488. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  489. }
  490. /**
  491. * 隐藏任务栏
  492. *
  493. * @param {element} 桌面元素
  494. */
  495. U.MD.D.I.hiddenTaskbar = function (el) {
  496. //任务栏位置变小
  497. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  498. //桌面的位置变大
  499. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  500. }
  501. /**
  502. * 隐藏任务栏
  503. *
  504. * @param {element} 桌面元素
  505. */
  506. U.MD.D.I.hiddenTaskbarout = function (el) {
  507. //任务栏位置变小
  508. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  509. //任务栏位置变化
  510. U.selectEl(el).css({ "bottom": "-60px" });
  511. //桌面的位置变大
  512. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  513. }
  514. }
  515. /**
  516. * 初始化打印桌面图标
  517. *
  518. * @param {element} 桌面元素
  519. */
  520. U.MD.D.I.initDesktopIcons = function (el, type) {
  521. var i, //用于循环
  522. _content, //桌面图标元素
  523. _iconcontent, //桌面图标元素
  524. _frag = $$("frag"), //定义一个碎片元素
  525. _type = US.userInfo.type,
  526. _org = US.userInfo.org,
  527. _oid = US.userInfo.organizeid,
  528. _role = US.userInfo.role,
  529. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  530. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  531. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  532. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  533. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  534. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  535. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  536. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  537. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  538. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  539. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  540. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  541. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  542. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  543. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  544. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  545. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  546. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  547. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  548. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  549. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  550. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  551. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  552. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//腾讯学生
  553. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  554. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  555. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  556. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  557. 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'];
  558. 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'];
  559. //清楚桌面图标
  560. el.innerHTML = "";
  561. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5") {
  562. _teacherDesktopIconInfo.push(
  563. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  564. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  565. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  566. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  567. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  568. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  569. )
  570. _easyDesktopIconInfo.push(
  571. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  572. )
  573. }
  574. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  575. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  576. if(el.Name == '项目管理'){
  577. el.Name = 'PBL项目'
  578. }
  579. return el
  580. })
  581. }
  582. if (_oid == '4c686762-1d0a-11ed-8c78-005056b86db5') {
  583. _teacherDesktopIconInfo.push(
  584. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  585. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  586. )
  587. }
  588. if (_oid != '4c686762-1d0a-11ed-8c78-005056b86db5' && _oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  589. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  590. return el.Name != '魔盒识字' && el.Name != '24点'
  591. })
  592. }
  593. 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) {
  594. _studentDesktopIconInfo.push(
  595. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  596. )
  597. }
  598. //循环创建桌面图标
  599. if (type == 1) {
  600. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  601. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  602. _content = $$("div", {
  603. className: "U_MD_D_KO",
  604. "onmousedown": U.UF.C.closure(function (obj) {
  605. //防止拖动图标即打开了桌面应用
  606. U.MD.D.click(this, obj);
  607. }, [_studentDesktopIconInfo[i]]),
  608. "onclick": U.UF.C.closure(function (obj) {
  609. //防止拖动图标即打开了桌面应用
  610. U.MD.D.click(this, obj);
  611. }, [_studentDesktopIconInfo[i]])
  612. }, _frag); //
  613. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  614. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  615. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  616. }
  617. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  618. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  619. _content = $$("div", {
  620. className: "U_MD_D_KO",
  621. "onmousedown": U.UF.C.closure(function (obj) {
  622. //防止拖动图标即打开了桌面应用
  623. U.MD.D.click(this, obj);
  624. }, [_studentDesktopIconInfo[i]]),
  625. "onclick": U.UF.C.closure(function (obj) {
  626. //防止拖动图标即打开了桌面应用
  627. U.MD.D.click(this, obj);
  628. }, [_studentDesktopIconInfo[i]])
  629. }, _frag); //
  630. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  631. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  632. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  633. }
  634. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  635. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  636. _content = $$("div", {
  637. className: "U_MD_D_KO",
  638. "onmousedown": U.UF.C.closure(function (obj) {
  639. //防止拖动图标即打开了桌面应用
  640. U.MD.D.click(this, obj);
  641. }, [_tcStudentDeskIconInfo[i]]),
  642. "onclick": U.UF.C.closure(function (obj) {
  643. //防止拖动图标即打开了桌面应用
  644. U.MD.D.click(this, obj);
  645. }, [_tcStudentDeskIconInfo[i]])
  646. }, _frag); //
  647. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  648. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  649. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  650. }
  651. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  652. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  653. _content = $$("div", {
  654. className: "U_MD_D_KO",
  655. "onmousedown": U.UF.C.closure(function (obj) {
  656. //防止拖动图标即打开了桌面应用
  657. U.MD.D.click(this, obj);
  658. }, [_szscStudentDeskIconInfo[i]]),
  659. "onclick": U.UF.C.closure(function (obj) {
  660. //防止拖动图标即打开了桌面应用
  661. U.MD.D.click(this, obj);
  662. }, [_szscStudentDeskIconInfo[i]])
  663. }, _frag); //
  664. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  665. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  666. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  667. }
  668. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  669. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  670. _content = $$("div", {
  671. className: "U_MD_D_KO",
  672. "onmousedown": U.UF.C.closure(function (obj) {
  673. //防止拖动图标即打开了桌面应用
  674. U.MD.D.click(this, obj);
  675. }, [_studentDesktopIconInfo3[i]]),
  676. "onclick": U.UF.C.closure(function (obj) {
  677. //防止拖动图标即打开了桌面应用
  678. U.MD.D.click(this, obj);
  679. }, [_studentDesktopIconInfo3[i]])
  680. }, _frag); //
  681. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  682. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  683. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  684. }
  685. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  686. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  687. _content = $$("div", {
  688. className: "U_MD_D_KO",
  689. "onmousedown": U.UF.C.closure(function (obj) {
  690. //防止拖动图标即打开了桌面应用
  691. U.MD.D.click(this, obj);
  692. }, [_studentDesktopIconInfo2[i]]),
  693. "onclick": U.UF.C.closure(function (obj) {
  694. //防止拖动图标即打开了桌面应用
  695. U.MD.D.click(this, obj);
  696. }, [_studentDesktopIconInfo2[i]])
  697. }, _frag); //
  698. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  699. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  700. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  701. }
  702. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  703. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  704. _content = $$("div", {
  705. className: "U_MD_D_KO",
  706. "onmousedown": U.UF.C.closure(function (obj) {
  707. //防止拖动图标即打开了桌面应用
  708. U.MD.D.click(this, obj);
  709. }, [_wanketeacherDesktopIconInfo[i]]),
  710. "onclick": U.UF.C.closure(function (obj) {
  711. //防止拖动图标即打开了桌面应用
  712. U.MD.D.click(this, obj);
  713. }, [_wanketeacherDesktopIconInfo[i]])
  714. }, _frag); //
  715. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  716. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  717. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  718. }
  719. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  720. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  721. _content = $$("div", {
  722. className: "U_MD_D_KO",
  723. "onmousedown": U.UF.C.closure(function (obj) {
  724. //防止拖动图标即打开了桌面应用
  725. U.MD.D.click(this, obj);
  726. }, [_wankeAdminDesktopIconInfo[i]]),
  727. "onclick": U.UF.C.closure(function (obj) {
  728. //防止拖动图标即打开了桌面应用
  729. U.MD.D.click(this, obj);
  730. }, [_wankeAdminDesktopIconInfo[i]])
  731. }, _frag); //
  732. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  733. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  734. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  735. }
  736. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  737. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  738. _content = $$("div", {
  739. className: "U_MD_D_KO",
  740. "onmousedown": U.UF.C.closure(function (obj) {
  741. //防止拖动图标即打开了桌面应用
  742. U.MD.D.click(this, obj);
  743. }, [_teacherDesktopIconInfo2[i]]),
  744. "onclick": U.UF.C.closure(function (obj) {
  745. //防止拖动图标即打开了桌面应用
  746. U.MD.D.click(this, obj);
  747. }, [_teacherDesktopIconInfo2[i]])
  748. }, _frag); //
  749. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  750. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  751. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  752. }
  753. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc")) {
  754. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  755. _content = $$("div", {
  756. className: "U_MD_D_KO",
  757. "onmousedown": U.UF.C.closure(function (obj) {
  758. //防止拖动图标即打开了桌面应用
  759. U.MD.D.click(this, obj);
  760. }, [_futianTeacherDeskIconInfo[i]]),
  761. "onclick": U.UF.C.closure(function (obj) {
  762. //防止拖动图标即打开了桌面应用
  763. U.MD.D.click(this, obj);
  764. }, [_futianTeacherDeskIconInfo[i]])
  765. }, _frag); //
  766. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  767. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  768. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  769. }
  770. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  771. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  772. _content = $$("div", {
  773. className: "U_MD_D_KO",
  774. "onmousedown": U.UF.C.closure(function (obj) {
  775. //防止拖动图标即打开了桌面应用
  776. U.MD.D.click(this, obj);
  777. }, [_MingdeTeacherDeskIcon[i]]),
  778. "onclick": U.UF.C.closure(function (obj) {
  779. //防止拖动图标即打开了桌面应用
  780. U.MD.D.click(this, obj);
  781. }, [_MingdeTeacherDeskIcon[i]])
  782. }, _frag); //
  783. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  784. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  785. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  786. }
  787. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  788. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  789. _content = $$("div", {
  790. className: "U_MD_D_KO",
  791. "onmousedown": U.UF.C.closure(function (obj) {
  792. //防止拖动图标即打开了桌面应用
  793. U.MD.D.click(this, obj);
  794. }, [_lhsAdminDesktopIconInfo[i]]),
  795. "onclick": U.UF.C.closure(function (obj) {
  796. //防止拖动图标即打开了桌面应用
  797. U.MD.D.click(this, obj);
  798. }, [_lhsAdminDesktopIconInfo[i]])
  799. }, _frag); //
  800. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  801. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  802. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  803. }
  804. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  805. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  806. _content = $$("div", {
  807. className: "U_MD_D_KO",
  808. "onmousedown": U.UF.C.closure(function (obj) {
  809. //防止拖动图标即打开了桌面应用
  810. U.MD.D.click(this, obj);
  811. }, [_lhsteacherDesktopIconInfo[i]]),
  812. "onclick": U.UF.C.closure(function (obj) {
  813. //防止拖动图标即打开了桌面应用
  814. U.MD.D.click(this, obj);
  815. }, [_lhsteacherDesktopIconInfo[i]])
  816. }, _frag); //
  817. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  818. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  819. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  820. }
  821. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  822. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  823. _content = $$("div", {
  824. className: "U_MD_D_KO",
  825. "onmousedown": U.UF.C.closure(function (obj) {
  826. //防止拖动图标即打开了桌面应用
  827. U.MD.D.click(this, obj);
  828. }, [_zhoujiateacherDesktopIconInfo[i]]),
  829. "onclick": U.UF.C.closure(function (obj) {
  830. //防止拖动图标即打开了桌面应用
  831. U.MD.D.click(this, obj);
  832. }, [_zhoujiateacherDesktopIconInfo[i]])
  833. }, _frag); //
  834. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  835. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  836. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  837. }
  838. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  839. for (i = 0; i < _hanDeskIcon.length; i++) {
  840. _content = $$("div", {
  841. className: "U_MD_D_KO",
  842. "onmousedown": U.UF.C.closure(function (obj) {
  843. //防止拖动图标即打开了桌面应用
  844. U.MD.D.click(this, obj);
  845. }, [_hanDeskIcon[i]]),
  846. "onclick": U.UF.C.closure(function (obj) {
  847. //防止拖动图标即打开了桌面应用
  848. U.MD.D.click(this, obj);
  849. }, [_hanDeskIcon[i]])
  850. }, _frag); //
  851. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  852. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  853. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  854. }
  855. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  856. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  857. _content = $$("div", {
  858. className: "U_MD_D_KO",
  859. "onmousedown": U.UF.C.closure(function (obj) {
  860. //防止拖动图标即打开了桌面应用
  861. U.MD.D.click(this, obj);
  862. }, [_orgStemDeskIcon[i]]),
  863. "onclick": U.UF.C.closure(function (obj) {
  864. //防止拖动图标即打开了桌面应用
  865. U.MD.D.click(this, obj);
  866. }, [_orgStemDeskIcon[i]])
  867. }, _frag); //
  868. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  869. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  870. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  871. }
  872. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  873. for (i = 0; i < _szulsDeskIcon.length; i++) {
  874. _content = $$("div", {
  875. className: "U_MD_D_KO",
  876. "onmousedown": U.UF.C.closure(function (obj) {
  877. //防止拖动图标即打开了桌面应用
  878. U.MD.D.click(this, obj);
  879. }, [_szulsDeskIcon[i]]),
  880. "onclick": U.UF.C.closure(function (obj) {
  881. //防止拖动图标即打开了桌面应用
  882. U.MD.D.click(this, obj);
  883. }, [_szulsDeskIcon[i]])
  884. }, _frag); //
  885. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  886. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  887. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  888. }
  889. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  890. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  891. _content = $$("div", {
  892. className: "U_MD_D_KO",
  893. "onmousedown": U.UF.C.closure(function (obj) {
  894. //防止拖动图标即打开了桌面应用
  895. U.MD.D.click(this, obj);
  896. }, [_orgDesktopIconInfo[i]]),
  897. "onclick": U.UF.C.closure(function (obj) {
  898. //防止拖动图标即打开了桌面应用
  899. U.MD.D.click(this, obj);
  900. }, [_orgDesktopIconInfo[i]])
  901. }, _frag); //
  902. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  903. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  904. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  905. }
  906. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  907. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  908. _content = $$("div", {
  909. className: "U_MD_D_KO",
  910. "onmousedown": U.UF.C.closure(function (obj) {
  911. //防止拖动图标即打开了桌面应用
  912. U.MD.D.click(this, obj);
  913. }, [_schoolDesktopIconInfo[i]]),
  914. "onclick": U.UF.C.closure(function (obj) {
  915. //防止拖动图标即打开了桌面应用
  916. U.MD.D.click(this, obj);
  917. }, [_schoolDesktopIconInfo[i]])
  918. }, _frag); //
  919. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  920. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  921. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  922. }
  923. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  924. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  925. _content = $$("div", {
  926. className: "U_MD_D_KO",
  927. "onmousedown": U.UF.C.closure(function (obj) {
  928. //防止拖动图标即打开了桌面应用
  929. U.MD.D.click(this, obj);
  930. }, [_GMteacherDesktopIconInfo[i]]),
  931. "onclick": U.UF.C.closure(function (obj) {
  932. //防止拖动图标即打开了桌面应用
  933. U.MD.D.click(this, obj);
  934. }, [_GMteacherDesktopIconInfo[i]])
  935. }, _frag); //
  936. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  937. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  938. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  939. }
  940. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  941. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  942. _content = $$("div", {
  943. className: "U_MD_D_KO",
  944. "onmousedown": U.UF.C.closure(function (obj) {
  945. //防止拖动图标即打开了桌面应用
  946. U.MD.D.click(this, obj);
  947. }, [_SONGteacherDesktopIconInfo[i]]),
  948. "onclick": U.UF.C.closure(function (obj) {
  949. //防止拖动图标即打开了桌面应用
  950. U.MD.D.click(this, obj);
  951. }, [_SONGteacherDesktopIconInfo[i]])
  952. }, _frag); //
  953. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  954. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  955. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  956. }
  957. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  958. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  959. _content = $$("div", {
  960. className: "U_MD_D_KO",
  961. "onmousedown": U.UF.C.closure(function (obj) {
  962. //防止拖动图标即打开了桌面应用
  963. U.MD.D.click(this, obj);
  964. }, [_GMstudentDesktopIconInfo[i]]),
  965. "onclick": U.UF.C.closure(function (obj) {
  966. //防止拖动图标即打开了桌面应用
  967. U.MD.D.click(this, obj);
  968. }, [_GMstudentDesktopIconInfo[i]])
  969. }, _frag); //
  970. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  971. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  972. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  973. }
  974. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  975. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  976. _content = $$("div", {
  977. className: "U_MD_D_KO",
  978. "onmousedown": U.UF.C.closure(function (obj) {
  979. //防止拖动图标即打开了桌面应用
  980. U.MD.D.click(this, obj);
  981. }, [_tcTeacherDeskIconInfo[i]]),
  982. "onclick": U.UF.C.closure(function (obj) {
  983. //防止拖动图标即打开了桌面应用
  984. U.MD.D.click(this, obj);
  985. }, [_tcTeacherDeskIconInfo[i]])
  986. }, _frag); //
  987. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  988. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  989. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  990. }
  991. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  992. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  993. _content = $$("div", {
  994. className: "U_MD_D_KO",
  995. "onmousedown": U.UF.C.closure(function (obj) {
  996. //防止拖动图标即打开了桌面应用
  997. U.MD.D.click(this, obj);
  998. }, [_tcOrganizerDeskIconInfo[i]]),
  999. "onclick": U.UF.C.closure(function (obj) {
  1000. //防止拖动图标即打开了桌面应用
  1001. U.MD.D.click(this, obj);
  1002. }, [_tcOrganizerDeskIconInfo[i]])
  1003. }, _frag); //
  1004. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1005. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1006. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1007. }
  1008. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1009. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1010. _content = $$("div", {
  1011. className: "U_MD_D_KO",
  1012. "onmousedown": U.UF.C.closure(function (obj) {
  1013. //防止拖动图标即打开了桌面应用
  1014. U.MD.D.click(this, obj);
  1015. }, [_szscTeacherDeskIconInfo[i]]),
  1016. "onclick": U.UF.C.closure(function (obj) {
  1017. //防止拖动图标即打开了桌面应用
  1018. U.MD.D.click(this, obj);
  1019. }, [_szscTeacherDeskIconInfo[i]])
  1020. }, _frag); //
  1021. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1022. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1023. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1024. }
  1025. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1026. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1027. _content = $$("div", {
  1028. className: "U_MD_D_KO",
  1029. "onmousedown": U.UF.C.closure(function (obj) {
  1030. //防止拖动图标即打开了桌面应用
  1031. U.MD.D.click(this, obj);
  1032. }, [_szscOrganizerDeskIconInfo[i]]),
  1033. "onclick": U.UF.C.closure(function (obj) {
  1034. //防止拖动图标即打开了桌面应用
  1035. U.MD.D.click(this, obj);
  1036. }, [_szscOrganizerDeskIconInfo[i]])
  1037. }, _frag); //
  1038. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1039. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1040. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1041. }
  1042. } else {
  1043. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1044. _content = $$("div", {
  1045. className: "U_MD_D_KO",
  1046. "onmousedown": U.UF.C.closure(function (obj) {
  1047. //防止拖动图标即打开了桌面应用
  1048. U.MD.D.click(this, obj);
  1049. }, [_teacherDesktopIconInfo[i]]),
  1050. "onclick": U.UF.C.closure(function (obj) {
  1051. //防止拖动图标即打开了桌面应用
  1052. U.MD.D.click(this, obj);
  1053. }, [_teacherDesktopIconInfo[i]])
  1054. }, _frag); //
  1055. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1056. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1057. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1058. }
  1059. }
  1060. } else {
  1061. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1062. _content = $$("div", {
  1063. className: "U_MD_D_KO",
  1064. style: { 'width': '124px', 'height': '145px' },
  1065. "onmousedown": U.UF.C.closure(function (obj) {
  1066. //防止拖动图标即打开了桌面应用
  1067. U.MD.D.click(this, obj);
  1068. }, [_easyDesktopIconInfo[i]]),
  1069. "onclick": U.UF.C.closure(function (obj) {
  1070. //防止拖动图标即打开了桌面应用
  1071. U.MD.D.click(this, obj);
  1072. }, [_easyDesktopIconInfo[i]])
  1073. }, _frag); //
  1074. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1075. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1076. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1077. }
  1078. }
  1079. if (type == 1) {
  1080. //加载好后给图标定位
  1081. U.MD.D.iconPostion($(_frag).Child());
  1082. } else {
  1083. //加载好后给图标定位
  1084. U.MD.D.iconPostion2($(_frag).Child());
  1085. }
  1086. //把图标加载到页面
  1087. el.appendChild(_frag);
  1088. }
  1089. /**
  1090. * 显示任务栏
  1091. *
  1092. * @param {element} 桌面元素
  1093. */
  1094. U.MD.D.I.displayTaskbar = function (el) {
  1095. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1096. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1097. //任务栏位置变化
  1098. U.selectEl(el).css({ "bottom": "0px" });
  1099. //桌面位置变话
  1100. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1101. }
  1102. }
  1103. //#region 桌面图标拖动逻辑
  1104. /**
  1105. * 桌面排列图标
  1106. *
  1107. * @param {element} 桌面元素
  1108. * @param {object} 上下相距的距离
  1109. * @param {object} 左右相距的距离
  1110. * @return {object} 命名空间
  1111. */
  1112. U.MD.D.iconPostion = function (childs, top, left) {
  1113. var i; //用于循环处理
  1114. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1115. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1116. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1117. for (i = 0; i < childs.length; i++) {
  1118. //如果竖排top超过了范围处理
  1119. if (top + 95 > US.height - 10) {
  1120. //left超过了页面范围处理,则向上重叠打印处理
  1121. if ((left + 180) > US.width) {
  1122. top -= 110;
  1123. left -= 90;
  1124. }
  1125. //没有超过范围,那么left+90添加到下一个竖排打印
  1126. else {
  1127. left += 90;
  1128. top = 15;
  1129. };
  1130. }
  1131. //给图标的位置赋值
  1132. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1133. if (i < childs.length - 1) {
  1134. //页面图标每次向下加95
  1135. top += 95;
  1136. }
  1137. }
  1138. //返回最后调用的图标的位置
  1139. return [top, left];
  1140. }
  1141. /**
  1142. * 桌面排列图标
  1143. *
  1144. * @param {element} 桌面元素
  1145. * @param {object} 上下相距的距离
  1146. * @param {object} 左右相距的距离
  1147. * @return {object} 命名空间
  1148. */
  1149. U.MD.D.iconPostion2 = function (childs, top, left) {
  1150. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1151. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1152. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1153. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1154. for (i = 0; i < childs.length; i++) {
  1155. //如果竖排top超过了范围处理
  1156. if (left + 150 > US.width - 10) {
  1157. //left超过了页面范围处理,则向上重叠打印处理
  1158. if ((top + 180) > US.Height) {
  1159. top -= 150;
  1160. left -= 150;
  1161. }
  1162. //没有超过范围,那么left+90添加到下一个竖排打印
  1163. else {
  1164. top += 150;
  1165. left = ol;
  1166. };
  1167. }
  1168. //给图标的位置赋值
  1169. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1170. if (i < childs.length - 1) {
  1171. //页面图标每次向下加95
  1172. left += 150;
  1173. }
  1174. }
  1175. //返回最后调用的图标的位置
  1176. return [top, left];
  1177. }
  1178. /**
  1179. * 桌面点击事件逻辑
  1180. *
  1181. * @param {element} 桌面元素
  1182. * @param {object} 上下相距的距离
  1183. * @param {object} 左右相距的距离
  1184. * @return {object} 命名空间
  1185. */
  1186. U.MD.D.click = function (el, obj) {
  1187. var _buttonnumber = event.button; //点击的按钮的事件值
  1188. var _userinfo = US.userInfo;
  1189. U.UF.EV.stopBubble(); //阻止向上冒泡
  1190. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1191. if (_buttonnumber < 2) {
  1192. //如果是click事件的处理
  1193. if (event.type == "click") {
  1194. //如果元素在mousemove事件中没有移动则出发click事件
  1195. if (!U.MD.D.I.IsDrag) {
  1196. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1197. U.alert("请先登录您的账号!");
  1198. setTimeout(() => {
  1199. U.MD.U.L.login();
  1200. }, 2000);
  1201. } else {
  1202. //打开应用处理
  1203. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1204. }
  1205. }
  1206. }
  1207. //如果是mouse事件的处理
  1208. else {
  1209. if (US.Config.type == '1') {
  1210. //拖动处理,添加拖动和拖动结束事件
  1211. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1212. }
  1213. }
  1214. U.MD.D.I.IsDrag = false;
  1215. }
  1216. }
  1217. /**
  1218. * 拖动的处理
  1219. *
  1220. */
  1221. U.MD.D.iconMove = function () {
  1222. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1223. U.MD.D.I.IsDrag = true;
  1224. }
  1225. /**
  1226. * 拖动结束后,这里是定位处理,以网状的形式定位
  1227. *
  1228. * @param {element} 拖动的元素
  1229. * @return {object} 命名空间
  1230. */
  1231. U.MD.D.iconUp = function (el) {
  1232. var _top = 15,
  1233. _left = 20,
  1234. _margin,
  1235. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1236. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1237. if (_positioninfo["OT"] > 15) {
  1238. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1239. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1240. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1241. }
  1242. if (_positioninfo["OL"] > 20) {
  1243. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1244. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1245. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1246. }
  1247. //while循环判断么一个重叠的元素
  1248. do {
  1249. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1250. _top = _positioninfo[0] + 95; //得到定位后的top
  1251. _left = _positioninfo[1]; //得到定位后的left
  1252. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1253. }
  1254. /**
  1255. * 判断拖动后图标是否重叠
  1256. *
  1257. * @param {element} 拖动的元素
  1258. * @param {element} 桌面所有的元素
  1259. * @param {array} 拖动元素的位置
  1260. ----------[0] 上 top
  1261. ----------[1] 左 left
  1262. * @return {object} 命名空间
  1263. */
  1264. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1265. //循环所有的图标
  1266. for (var i = 0; i < childs.length; i++) {
  1267. //判断有没有和该图标诶子重叠的元素
  1268. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1269. return childs[i]; //如果有返回
  1270. }
  1271. }
  1272. }
  1273. //#endregion
  1274. //#endregion
  1275. //#region 桌面应用
  1276. /**
  1277. * 打开应用
  1278. *
  1279. * @param {string} 类型
  1280. -----------------Disk 网盘系统
  1281. -----------------PDisk 学习系统网盘
  1282. -----------------Poto 图片
  1283. -----------------Video 视频
  1284. -----------------Music 音乐
  1285. -----------------Word word
  1286. -----------------Excel excel
  1287. -----------------Txt 记事本
  1288. -----------------PB 学习系统
  1289. -----------------Blog 朋友圈系统
  1290. -----------------FTP ftp系统
  1291. -----------------Group 好友群
  1292. -----------------SY 首页系统
  1293. -----------------Set 个人设置
  1294. -----------------XSet 系统设置
  1295. -----------------App 我们所有的app
  1296. -----------------BC c.1473.cn 平台
  1297. -----------------CWeb d.1473.cn 变成平台
  1298. -----------------其他的外联系统 我们统一用iframe打开
  1299. * @param {array} 类型
  1300. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1301. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1302. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1303. 如果第一个参数为其他,则无第二个参数
  1304. * @returns {array}
  1305. */
  1306. window.addEventListener('message', function (e) { // 监听 message 事件
  1307. // alert(e.data.type);
  1308. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1309. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1310. //3是展示全部阶段 2学生 1老师 4专家
  1311. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1312. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1313. //3是展示全部阶段 2学生 1老师 4专家
  1314. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1315. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1316. //3是展示全部阶段 2学生 1老师 4专家
  1317. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1318. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1319. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1320. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1321. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1322. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1323. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1324. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1325. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1326. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1327. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1328. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1329. //3是展示全部阶段 2学生 1老师 4专家
  1330. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1331. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1332. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1333. U.MD.D.I.selectUser();
  1334. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1335. var _formel = document.getElementById("study");
  1336. U.UF.F.windowZooming(_formel);
  1337. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1338. var _formel = document.getElementById("studyDetail");
  1339. U.UF.F.windowZooming(_formel);
  1340. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1341. var _formel = document.getElementById("studyDetail");
  1342. U.UF.F.windowZooming(_formel);
  1343. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1344. var _formel = document.getElementById("studentStudy");
  1345. U.UF.F.windowZooming(_formel);
  1346. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1347. // var _formel = document.getElementById("study");
  1348. //如果最大化了,那么就把他缩小
  1349. // if (_formel.ismaximize) {
  1350. // return;
  1351. // }
  1352. // U.UF.F.windowZooming(_formel);
  1353. // U.UF.F.topWindow(_formel);
  1354. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1355. // var _formel = document.getElementById("studyDetail");
  1356. //如果最大化了,那么就把他缩小
  1357. // if (_formel.ismaximize) {
  1358. // return;
  1359. // }
  1360. // U.UF.F.windowZooming(_formel);
  1361. // U.UF.F.topWindow(_formel);
  1362. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1363. // var _formel = document.getElementById("studentStudy");
  1364. // if (_formel.ismaximize) {
  1365. // return;
  1366. // }
  1367. // U.UF.F.windowZooming(_formel);
  1368. // U.UF.F.topWindow(_formel);
  1369. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1370. var _formel = document.getElementById("study");
  1371. // if (_formel.ismaximize) {
  1372. // return;
  1373. // }
  1374. // U.UF.F.windowZooming(_formel);
  1375. U.UF.F.topWindow(_formel);
  1376. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1377. var _formel = document.getElementById("studentIndex");
  1378. U.UF.F.windowZooming(_formel);
  1379. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1380. var _formel = document.getElementById("studyDetailS");
  1381. U.UF.F.windowZooming(_formel);
  1382. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1383. var _formel = document.getElementById("studioIndex");
  1384. U.UF.F.windowZooming(_formel);
  1385. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1386. var _formel = document.getElementById("studyDetailStudio");
  1387. U.UF.F.windowZooming(_formel);
  1388. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1389. var _formel = document.getElementById("studyDetailStudio");
  1390. U.UF.F.windowZooming(_formel);
  1391. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1392. var _formel = document.getElementById("studyDetailNT");
  1393. U.UF.F.windowZooming(_formel);
  1394. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1395. var _formel = document.getElementById("studyDetailS");
  1396. U.UF.F.windowZooming(_formel);
  1397. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1398. var _formel = document.getElementById("studyDetailS");
  1399. U.UF.F.topWindow(_formel);
  1400. } else if (e.data.tools && e.data.tools == "1") {
  1401. // U.MD.D.I.openApplication("whiteboard")
  1402. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1403. } else if (e.data.tools && e.data.tools == "2") {
  1404. U.MD.D.I.openApplication("note")
  1405. } else if (e.data.tools && e.data.tools == "3") {
  1406. // U.MD.D.I.openApplication("mind")
  1407. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1408. } else if (e.data.tools && e.data.tools == "4") {
  1409. U.MD.D.I.openApplication("investigation")
  1410. } else if (e.data.tools && e.data.tools == "6") {
  1411. // U.MD.D.I.openApplication("doc")
  1412. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1413. } else if (e.data.tools && e.data.tools == "7") {
  1414. // U.MD.D.I.openApplication("mindNetwork")
  1415. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1416. } else if (e.data.tools && e.data.tools == "8") {
  1417. U.MD.D.I.openApplication("library")
  1418. } else if (e.data.tools && e.data.tools == "17") {
  1419. U.MD.D.I.openApplication("stuLibrary")
  1420. } else if (e.data.tools && e.data.tools == "18") {
  1421. U.MD.D.I.openApplication("train")
  1422. } else if (e.data.tools && e.data.tools == "21") {
  1423. U.MD.D.I.openApplication("program")
  1424. } else if (e.data.tools && e.data.tools == "22") {
  1425. U.MD.D.I.openApplication("AIprogram2")
  1426. } else if (e.data.tools && e.data.tools == "23") {
  1427. U.MD.D.I.openApplication("Pythonprogram")
  1428. } else if (e.data.tools && e.data.tools == "24") {
  1429. U.MD.D.I.openApplication("AIprogram")
  1430. } else if (e.data.tools && e.data.tools == "25") {
  1431. U.MD.D.I.openApplication("sys")
  1432. } else if (e.data.tools && e.data.tools == "26") {
  1433. // U.MD.D.I.openApplication("courseDesign")
  1434. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1435. } else if (e.data.tools && e.data.tools == "31") {
  1436. U.MD.D.I.openApplication("netWorkPanel")
  1437. } else if (e.data.tools && e.data.tools == "32") {
  1438. U.MD.D.I.openApplication("codeEdit")
  1439. } else if (e.data.tools && e.data.tools == "57") {
  1440. U.MD.D.I.openApplication("CocoPi")
  1441. } else if (e.data.tools && e.data.tools == "58") {
  1442. U.MD.D.I.openApplication("car")
  1443. } else if (e.data.tools && e.data.tools == "59") {
  1444. U.MD.D.I.openApplication("lineSearch")
  1445. } else if (e.data.tools && e.data.tools == "60") {
  1446. U.MD.D.I.openApplication("deepLearning")
  1447. } else if (e.data.tools && e.data.tools == "61") {
  1448. U.MD.D.I.openApplication("allHistory")
  1449. } else if (e.data.tools && e.data.tools == "28") {
  1450. U.MD.D.I.openApplication("translation")
  1451. } else if (e.data.tools && e.data.tools == "37") {
  1452. U.MD.D.I.openApplication("mohe")
  1453. } else if (e.data.tools && e.data.tools == "38") {
  1454. U.MD.D.I.openApplication("24game")
  1455. } else if (e.data.tools && e.data.tools == "39") {
  1456. U.MD.D.I.openApplication("GeoGebra")
  1457. } else if (e.data.tools && e.data.tools == "43") {
  1458. U.MD.D.I.openApplication("studentEvaluate")
  1459. } else if (e.data.tools && e.data.tools == "44") {
  1460. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1461. } else if (e.data.tools && e.data.tools == "46") {
  1462. U.MD.D.I.openApplication("project")
  1463. } else if (e.data.tools && e.data.tools == "1s") {
  1464. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1465. } else if (e.data.tools && e.data.tools == "3s") {
  1466. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1467. } else if (e.data.tools && e.data.tools == "6s") {
  1468. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1469. } else if (e.data.tools && e.data.tools == "1studio") {
  1470. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1471. } else if (e.data.tools && e.data.tools == "3studio") {
  1472. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1473. } else if (e.data.tools && e.data.tools == "6studio") {
  1474. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1475. } else if (e.data.tools && e.data.tools == "3y") {
  1476. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1477. } else if (e.data.tools && e.data.tools == "1y") {
  1478. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1479. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1480. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1481. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1482. U.MD.D.I.openApplication("AIAnalyse")
  1483. } else if (e.data.tools && e.data.tools == "1teacher") {
  1484. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1485. } else if (e.data.tools && e.data.tools == "3teacher") {
  1486. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1487. } else if (e.data.tools && e.data.tools == "7teacher") {
  1488. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1489. }
  1490. });
  1491. U.MD.D.I.selectUser = function () {
  1492. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1493. if (res.value[0].length > 0) {
  1494. US.userInfo = res.value[0][0];
  1495. $(".userName")[0].innerHTML = US.userInfo.username;
  1496. }
  1497. }, [], { "type": "GET", "withCredentials": true });
  1498. }
  1499. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1500. var _userinfo = US.userInfo, //登录用户信息
  1501. _userid = US.userInfo.userid, //登录用户id
  1502. _oid = _userinfo.organizeid,
  1503. _type = US.userInfo.type,
  1504. _org = US.userInfo.org,
  1505. _role = US.userInfo.role,
  1506. _classId = US.userInfo.classid;
  1507. if (_type == 4) {
  1508. tType = 4
  1509. }
  1510. switch (str) {
  1511. case "studyDetailNT"://无终端模式
  1512. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1513. setTimeout(() => {
  1514. U.MD.U.L.login();
  1515. }, 2000);
  1516. } else {
  1517. _formdiv = new U.UF.UI.form(
  1518. "课程详情",
  1519. $$("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 }), {
  1520. "id": "studyDetailNT",
  1521. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1522. "onresize": function () { }
  1523. }, {
  1524. closecallback: function () { }
  1525. }, { "style": { "height": "36px" } }).form; //创建窗体
  1526. _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); } }
  1527. break;
  1528. }
  1529. case "studyDetail":
  1530. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1531. setTimeout(() => {
  1532. U.MD.U.L.login();
  1533. }, 2000);
  1534. } else {
  1535. _formdiv = new U.UF.UI.form(
  1536. "课程详情",
  1537. $$("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 }), {
  1538. "id": "studyDetail",
  1539. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1540. "onresize": function () { }
  1541. }, {
  1542. closecallback: function () { }
  1543. }, { "style": { "height": "36px" } }).form; //创建窗体
  1544. _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); } }
  1545. break;
  1546. }
  1547. case "studyDetailS":
  1548. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1549. setTimeout(() => {
  1550. U.MD.U.L.login();
  1551. }, 2000);
  1552. } else {
  1553. _formdiv = new U.UF.UI.form(
  1554. "项目详情",
  1555. $$("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 }), {
  1556. "id": "studyDetailS",
  1557. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1558. "onresize": function () { }
  1559. }, {
  1560. closecallback: function () { }
  1561. }, { "style": { "height": "36px" } }).form; //创建窗体
  1562. _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); } }
  1563. break;
  1564. }
  1565. case "studyDetailStudio":
  1566. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1567. setTimeout(() => {
  1568. U.MD.U.L.login();
  1569. }, 2000);
  1570. } else {
  1571. _formdiv = new U.UF.UI.form(
  1572. "工作详情",
  1573. $$("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 }), {
  1574. "id": "studyDetailStudio",
  1575. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1576. "onresize": function () { }
  1577. }, {
  1578. closecallback: function () { }
  1579. }, { "style": { "height": "36px" } }).form; //创建窗体
  1580. _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); } }
  1581. break;
  1582. }
  1583. case "studyDetailS5":
  1584. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1585. setTimeout(() => {
  1586. U.MD.U.L.login();
  1587. }, 2000);
  1588. } else {
  1589. _formdiv = new U.UF.UI.form(
  1590. "项目详情",
  1591. $$("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 }), {
  1592. "id": "studyDetailS",
  1593. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1594. "onresize": function () { }
  1595. }, {
  1596. closecallback: function () { }
  1597. }, { "style": { "height": "36px" } }).form; //创建窗体
  1598. _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); } }
  1599. break;
  1600. }
  1601. case "studyDetailGM":
  1602. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1603. setTimeout(() => {
  1604. U.MD.U.L.login();
  1605. }, 2000);
  1606. } else {
  1607. _formdiv = new U.UF.UI.form(
  1608. "课程详情",
  1609. $$("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 }), {
  1610. "id": "studyDetail",
  1611. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1612. "onresize": function () { }
  1613. }, {
  1614. closecallback: function () { }
  1615. }, { "style": { "height": "36px" } }).form; //创建窗体
  1616. _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); } }
  1617. break;
  1618. }
  1619. case "hanUrl":
  1620. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1621. setTimeout(() => {
  1622. U.MD.U.L.login();
  1623. }, 2000);
  1624. } else {
  1625. _formdiv = new U.UF.UI.form(
  1626. "汉字宫",
  1627. $$("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" }), {
  1628. "id": "hanUrl",
  1629. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1630. "onresize": function () { }
  1631. }, {
  1632. closecallback: function () { }
  1633. }, { "style": { "height": "36px" } }).form; //创建窗体
  1634. _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); } }
  1635. break;
  1636. }
  1637. }
  1638. }
  1639. U.MD.D.I.openApplication = function (str, obj, info) {
  1640. obj = obj || {};
  1641. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1642. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1643. _userinfo = US.userInfo, //登录用户信息
  1644. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1645. _oid = obj.organizeid || _userinfo.organizeid,
  1646. _type = US.userInfo.type,
  1647. _org = US.userInfo.org,
  1648. _role = US.userInfo.role,
  1649. _classId = US.userInfo.classid,
  1650. _TscreenType = 1
  1651. _screenType = 2,
  1652. _SscreenType = 3;
  1653. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1654. return;
  1655. }
  1656. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1657. switch (str) {
  1658. case "studnetProject": //好友打开
  1659. _formdiv = new U.UF.UI.form(
  1660. "我的项目",
  1661. $$("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 }), {
  1662. "id": "studnetProject",
  1663. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1664. "onresize": function () { }
  1665. }, {
  1666. closecallback: function () { }
  1667. }, { "style": { "height": "36px" } }).form; //创建窗体
  1668. _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); } }
  1669. break;
  1670. case "studentEvaluate": //好友打开
  1671. _formdiv = new U.UF.UI.form(
  1672. "我的评价",
  1673. $$("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 }), {
  1674. "id": "studentEvaluate",
  1675. "style": { "width": "70%", "height": "90%", "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/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1681. break;
  1682. case "my":
  1683. _formdiv = new U.UF.UI.form(
  1684. "我的资料",
  1685. $$("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 }), {
  1686. "id": "my",
  1687. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1688. "onresize": function () { }
  1689. }, {
  1690. closecallback: function () { }
  1691. }, { "style": { "height": "36px" } }).form; //创建窗体
  1692. _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); } }
  1693. break;
  1694. case "program":
  1695. _formdiv = new U.UF.UI.form(
  1696. "编程平台",
  1697. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1698. "id": "program",
  1699. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1700. "onresize": function () { }
  1701. }, {
  1702. closecallback: function () { }
  1703. }, { "style": { "height": "36px" } }).form; //创建窗体
  1704. _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); } }
  1705. break;
  1706. case "library":
  1707. _formdiv = new U.UF.UI.form(
  1708. "素材库",
  1709. $$("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 }), {
  1710. "id": "library",
  1711. "style": { "width": "90%", "height": "90%", "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/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1717. break;
  1718. case "whiteboard":
  1719. _formdiv = new U.UF.UI.form(
  1720. "电子白板",
  1721. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1722. "id": "whiteboard",
  1723. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1724. "onresize": function () { }
  1725. }, {
  1726. closecallback: function () { }
  1727. }, { "style": { "height": "36px" } }).form; //创建窗体
  1728. _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); } }
  1729. break;
  1730. case "investigation":
  1731. _formdiv = new U.UF.UI.form(
  1732. "问卷调查",
  1733. $$("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 }), {
  1734. "id": "investigation",
  1735. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1736. "onresize": function () { }
  1737. }, {
  1738. closecallback: function () { }
  1739. }, { "style": { "height": "36px" } }).form; //创建窗体
  1740. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1741. break;
  1742. case "note":
  1743. _formdiv = new U.UF.UI.form(
  1744. "便签分类",
  1745. $$("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 }), {
  1746. "id": "note",
  1747. "style": { "width": "20%", "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/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1753. break;
  1754. // case "score":
  1755. // _formdiv = new U.UF.UI.form(
  1756. // "量规评分",
  1757. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  1758. // "id": "score",
  1759. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1760. // "onresize": function() {}
  1761. // }, {
  1762. // closecallback: function() {}
  1763. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1764. // _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); } }
  1765. // break;
  1766. case "mind":
  1767. _formdiv = new U.UF.UI.form(
  1768. "思维导图",
  1769. $$("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"
  1770. "id": "mind",
  1771. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1772. "onresize": function () { }
  1773. }, {
  1774. closecallback: function () { }
  1775. }, { "style": { "height": "36px" } }).form; //创建窗体
  1776. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1777. break;
  1778. case "doc":
  1779. // U.MD.D.I.isRoom();
  1780. _formdiv = new U.UF.UI.form(
  1781. "协同文档",
  1782. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1783. "id": "doc",
  1784. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1785. "onresize": function () { }
  1786. }, {
  1787. closecallback: function () { }
  1788. }, { "style": { "height": "36px" } }).form; //创建窗体
  1789. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1790. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1791. // })
  1792. _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); } }
  1793. break;
  1794. case "studentStudy":
  1795. _formdiv = new U.UF.UI.form(
  1796. "课程中心",
  1797. $$("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
  1798. "id": "studentStudy",
  1799. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1800. "onresize": function () { }
  1801. }, {
  1802. closecallback: function () { }
  1803. }, { "style": { "height": "36px" } }).form; //创建窗体
  1804. _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); } }
  1805. break;
  1806. case "train": //好友打开
  1807. _formdiv = new U.UF.UI.form(
  1808. "训练平台",
  1809. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1810. "id": "train",
  1811. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1812. "onresize": function () { }
  1813. }, {
  1814. closecallback: function () { }
  1815. }, { "style": { "height": "36px" } }).form; //创建窗体
  1816. _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); } }
  1817. break;
  1818. case "mindNetwork": //好友打开
  1819. _formdiv = new U.UF.UI.form(
  1820. "思维网格",
  1821. $$("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 }), {
  1822. "id": "mindNetwork",
  1823. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1824. "onresize": function () { }
  1825. }, {
  1826. closecallback: function () { }
  1827. }, { "style": { "height": "36px" } }).form; //创建窗体
  1828. _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); } }
  1829. break;
  1830. case "studentClassRoom": //好友打开
  1831. _formdiv = new U.UF.UI.form(
  1832. "实时课堂",
  1833. $$("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 }), {
  1834. "id": "studentClassRoom",
  1835. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1836. "onresize": function () { }
  1837. }, {
  1838. closecallback: function () { }
  1839. }, { "style": { "height": "36px" } }).form; //创建窗体
  1840. _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); } }
  1841. setTimeout(() => {
  1842. U.UF.F.windowZooming(_formdiv)
  1843. }, 0);
  1844. break;
  1845. }
  1846. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1847. switch (str) {
  1848. case "studnetProject": //好友打开
  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-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  1852. "id": "studnetProject",
  1853. "style": { "width": "70%", "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/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1859. break;
  1860. case "studentEvaluate": //好友打开
  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-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1864. "id": "studentEvaluate",
  1865. "style": { "width": "70%", "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/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1871. break;
  1872. case "my":
  1873. _formdiv = new U.UF.UI.form(
  1874. "我的资料",
  1875. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  1876. "id": "my",
  1877. "style": { "width": "42%", "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/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1883. break;
  1884. case "program":
  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": "https://x.cocorobo.cn" }), {
  1888. "id": "program",
  1889. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1890. "onresize": function () { }
  1891. }, {
  1892. closecallback: function () { }
  1893. }, { "style": { "height": "36px" } }).form; //创建窗体
  1894. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1895. break;
  1896. case "library":
  1897. _formdiv = new U.UF.UI.form(
  1898. "素材库",
  1899. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  1900. "id": "library",
  1901. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1902. "onresize": function () { }
  1903. }, {
  1904. closecallback: function () { }
  1905. }, { "style": { "height": "36px" } }).form; //创建窗体
  1906. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1907. break;
  1908. case "whiteboard":
  1909. _formdiv = new U.UF.UI.form(
  1910. "电子白板",
  1911. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1912. "id": "whiteboard",
  1913. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1914. "onresize": function () { }
  1915. }, {
  1916. closecallback: function () { }
  1917. }, { "style": { "height": "36px" } }).form; //创建窗体
  1918. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1919. break;
  1920. case "investigation":
  1921. _formdiv = new U.UF.UI.form(
  1922. "问卷调查",
  1923. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  1924. "id": "investigation",
  1925. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1926. "onresize": function () { }
  1927. }, {
  1928. closecallback: function () { }
  1929. }, { "style": { "height": "36px" } }).form; //创建窗体
  1930. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1931. break;
  1932. case "note":
  1933. _formdiv = new U.UF.UI.form(
  1934. "便签分类",
  1935. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  1936. "id": "note",
  1937. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1938. "onresize": function () { }
  1939. }, {
  1940. closecallback: function () { }
  1941. }, { "style": { "height": "36px" } }).form; //创建窗体
  1942. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1943. break;
  1944. // case "score":
  1945. // _formdiv = new U.UF.UI.form(
  1946. // "量规评分",
  1947. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  1948. // "id": "score",
  1949. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1950. // "onresize": function() {}
  1951. // }, {
  1952. // closecallback: function() {}
  1953. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1954. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1955. // break;
  1956. case "mind":
  1957. _formdiv = new U.UF.UI.form(
  1958. "思维导图",
  1959. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1960. "id": "mind",
  1961. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1962. "onresize": function () { }
  1963. }, {
  1964. closecallback: function () { }
  1965. }, { "style": { "height": "36px" } }).form; //创建窗体
  1966. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1967. break;
  1968. case "doc":
  1969. // U.MD.D.I.isRoom();
  1970. _formdiv = new U.UF.UI.form(
  1971. "协同文档",
  1972. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1973. "id": "doc",
  1974. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1975. "onresize": function () { }
  1976. }, {
  1977. closecallback: function () { }
  1978. }, { "style": { "height": "36px" } }).form; //创建窗体
  1979. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1980. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1981. })
  1982. _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); } }
  1983. break;
  1984. case "train": //好友打开
  1985. _formdiv = new U.UF.UI.form(
  1986. "训练平台",
  1987. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1988. "id": "train",
  1989. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1990. "onresize": function () { }
  1991. }, {
  1992. closecallback: function () { }
  1993. }, { "style": { "height": "36px" } }).form; //创建窗体
  1994. _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); } }
  1995. break;
  1996. case "studentStudy":
  1997. _formdiv = new U.UF.UI.form(
  1998. "课程中心",
  1999. $$("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
  2000. "id": "studentStudy",
  2001. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2002. "onresize": function () { }
  2003. }, {
  2004. closecallback: function () { }
  2005. }, { "style": { "height": "36px" } }).form; //创建窗体
  2006. _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); } }
  2007. break;
  2008. case "mindNetwork": //好友打开
  2009. _formdiv = new U.UF.UI.form(
  2010. "思维网格",
  2011. $$("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 }), {
  2012. "id": "mindNetwork",
  2013. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2014. "onresize": function () { }
  2015. }, {
  2016. closecallback: function () { }
  2017. }, { "style": { "height": "36px" } }).form; //创建窗体
  2018. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2019. break;
  2020. case "studentClassRoom": //好友打开
  2021. _formdiv = new U.UF.UI.form(
  2022. "实时课堂",
  2023. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/liveRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2024. "id": "studentClassRoom",
  2025. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2026. "onresize": function () { }
  2027. }, {
  2028. closecallback: function () { }
  2029. }, { "style": { "height": "36px" } }).form; //创建窗体
  2030. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2031. setTimeout(() => {
  2032. U.UF.F.windowZooming(_formdiv)
  2033. }, 0);
  2034. break;
  2035. }
  2036. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2037. //选择应用处理
  2038. switch (str) {
  2039. case "project": //好友打开
  2040. _formdiv = new U.UF.UI.form(
  2041. "课程管理",
  2042. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2043. "id": "project",
  2044. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2045. "onresize": function () { }
  2046. }, {
  2047. closecallback: function () { }
  2048. }, { "style": { "height": "36px" } }).form; //创建窗体
  2049. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2050. break;
  2051. case "student":
  2052. _formdiv = new U.UF.UI.form(
  2053. "学生管理",
  2054. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  2055. "id": "student",
  2056. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2057. "onresize": function () { }
  2058. }, {
  2059. closecallback: function () { }
  2060. }, { "style": { "height": "36px" } }).form; //创建窗体
  2061. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2062. break;
  2063. case "evaluate":
  2064. _formdiv = new U.UF.UI.form(
  2065. "学生评价",
  2066. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2067. "id": "evaluate",
  2068. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2069. "onresize": function () { }
  2070. }, {
  2071. closecallback: function () { }
  2072. }, { "style": { "height": "36px" } }).form; //创建窗体
  2073. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2074. break;
  2075. case "sys":
  2076. _formdiv = new U.UF.UI.form(
  2077. "目标管理",
  2078. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2079. "id": "sys",
  2080. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2081. "onresize": function () { }
  2082. }, {
  2083. closecallback: function () { }
  2084. }, { "style": { "height": "36px" } }).form; //创建窗体
  2085. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2086. break;
  2087. case "courseDesign":
  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": "/course-design-vue" }), {
  2091. "id": "courseDesign",
  2092. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2093. "onresize": function () { }
  2094. }, {
  2095. closecallback: function () { }
  2096. }, { "style": { "height": "36px" } }).form; //创建窗体
  2097. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "项目设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2098. break;
  2099. case "program":
  2100. _formdiv = new U.UF.UI.form(
  2101. "编程平台",
  2102. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2103. "id": "program",
  2104. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2105. "onresize": function () { }
  2106. }, {
  2107. closecallback: function () { }
  2108. }, { "style": { "height": "36px" } }).form; //创建窗体
  2109. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2110. break;
  2111. case "class":
  2112. _formdiv = new U.UF.UI.form(
  2113. "班级管理",
  2114. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2115. "id": "class",
  2116. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2117. "onresize": function () { }
  2118. }, {
  2119. closecallback: function () { }
  2120. }, { "style": { "height": "36px" } }).form; //创建窗体
  2121. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2122. break;
  2123. case "my":
  2124. _formdiv = new U.UF.UI.form(
  2125. "我的资料",
  2126. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  2127. "id": "my",
  2128. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2129. "onresize": function () { }
  2130. }, {
  2131. closecallback: function () { }
  2132. }, { "style": { "height": "36px" } }).form; //创建窗体
  2133. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2134. break;
  2135. case "notice":
  2136. _formdiv = new U.UF.UI.form(
  2137. "通知公告",
  2138. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  2139. "id": "notice",
  2140. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2141. "onresize": function () { }
  2142. }, {
  2143. closecallback: function () { }
  2144. }, { "style": { "height": "36px" } }).form; //创建窗体
  2145. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2146. break;
  2147. case "library":
  2148. _formdiv = new U.UF.UI.form(
  2149. "素材库",
  2150. $$("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 }), {
  2151. "id": "library",
  2152. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2153. "onresize": function () { }
  2154. }, {
  2155. closecallback: function () { }
  2156. }, { "style": { "height": "36px" } }).form; //创建窗体
  2157. _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); } }
  2158. break;
  2159. case "whiteboard":
  2160. _formdiv = new U.UF.UI.form(
  2161. "电子白板",
  2162. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2163. "id": "whiteboard",
  2164. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2165. "onresize": function () { }
  2166. }, {
  2167. closecallback: function () { }
  2168. }, { "style": { "height": "36px" } }).form; //创建窗体
  2169. _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); } }
  2170. break;
  2171. case "investigation":
  2172. _formdiv = new U.UF.UI.form(
  2173. "问卷调查",
  2174. $$("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 }), {
  2175. "id": "investigation",
  2176. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2177. "onresize": function () { }
  2178. }, {
  2179. closecallback: function () { }
  2180. }, { "style": { "height": "36px" } }).form; //创建窗体
  2181. _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); } }
  2182. break;
  2183. case "note":
  2184. _formdiv = new U.UF.UI.form(
  2185. "便签分类",
  2186. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  2187. "id": "note",
  2188. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2189. "onresize": function () { }
  2190. }, {
  2191. closecallback: function () { }
  2192. }, { "style": { "height": "36px" } }).form; //创建窗体
  2193. _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); } }
  2194. break;
  2195. // case "score":
  2196. // _formdiv = new U.UF.UI.form(
  2197. // "量规评分",
  2198. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2199. // "id": "score",
  2200. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2201. // "onresize": function() {}
  2202. // }, {
  2203. // closecallback: function() {}
  2204. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2205. // _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); } }
  2206. // break;
  2207. case "mind":
  2208. _formdiv = new U.UF.UI.form(
  2209. "思维导图",
  2210. $$("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"
  2211. "id": "mind",
  2212. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2213. "onresize": function () { }
  2214. }, {
  2215. closecallback: function () { }
  2216. }, { "style": { "height": "36px" } }).form; //创建窗体
  2217. _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); } }
  2218. break;
  2219. case "doc":
  2220. // U.MD.D.I.isRoom();
  2221. _formdiv = new U.UF.UI.form(
  2222. "协同文档",
  2223. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2224. "id": "doc",
  2225. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2226. "onresize": function () { }
  2227. }, {
  2228. closecallback: function () { }
  2229. }, { "style": { "height": "36px" } }).form; //创建窗体
  2230. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2231. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2232. })
  2233. _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); } }
  2234. break;
  2235. case "study":
  2236. _formdiv = new U.UF.UI.form(
  2237. "课程中心",
  2238. $$("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
  2239. "id": "study",
  2240. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2241. "onresize": function () { }
  2242. }, {
  2243. closecallback: function () { }
  2244. }, { "style": { "height": "36px" } }).form; //创建窗体
  2245. _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); } }
  2246. break;
  2247. case "mindNetwork": //好友打开
  2248. _formdiv = new U.UF.UI.form(
  2249. "思维网格",
  2250. $$("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 }), {
  2251. "id": "mindNetwork",
  2252. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2253. "onresize": function () { }
  2254. }, {
  2255. closecallback: function () { }
  2256. }, { "style": { "height": "36px" } }).form; //创建窗体
  2257. _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); } }
  2258. break;
  2259. case "train": //好友打开
  2260. _formdiv = new U.UF.UI.form(
  2261. "训练平台",
  2262. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2263. "id": "mindNetwork",
  2264. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2265. "onresize": function () { }
  2266. }, {
  2267. closecallback: function () { }
  2268. }, { "style": { "height": "36px" } }).form; //创建窗体
  2269. _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); } }
  2270. break;
  2271. case "teacherClassRoom": //好友打开
  2272. _formdiv = new U.UF.UI.form(
  2273. "实时课堂",
  2274. $$("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 }), {
  2275. "id": "teacherClassRoom",
  2276. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2277. "onresize": function () { }
  2278. }, {
  2279. closecallback: function () { }
  2280. }, { "style": { "height": "36px" } }).form; //创建窗体
  2281. _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); } }
  2282. setTimeout(() => {
  2283. U.UF.F.windowZooming(_formdiv)
  2284. }, 0);
  2285. break;
  2286. }
  2287. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2288. switch (str) {
  2289. case "project": //好友打开
  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/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2293. "id": "project",
  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/project.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2300. break;
  2301. case "evaluate":
  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/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2305. "id": "evaluate",
  2306. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2307. "onresize": function () { }
  2308. }, {
  2309. closecallback: function () { }
  2310. }, { "style": { "height": "36px" } }).form; //创建窗体
  2311. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2312. break;
  2313. case "notice":
  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 + "/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  2317. "id": "notice",
  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/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2324. break;
  2325. case "stuLibrary":
  2326. _formdiv = new U.UF.UI.form(
  2327. "学习资料",
  2328. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studyLibrary?userid=" + _userid + "&org=" + _org }), {
  2329. "id": "stuLibrary",
  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/stuLibrary.png)" }, "name": "学习资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2336. break;
  2337. case "program":
  2338. _formdiv = new U.UF.UI.form(
  2339. "编程平台",
  2340. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2341. "id": "program",
  2342. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2343. "onresize": function () { }
  2344. }, {
  2345. closecallback: function () { }
  2346. }, { "style": { "height": "36px" } }).form; //创建窗体
  2347. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2348. break;
  2349. case "whiteboard":
  2350. _formdiv = new U.UF.UI.form(
  2351. "电子白板",
  2352. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2353. "id": "whiteboard",
  2354. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2355. "onresize": function () { }
  2356. }, {
  2357. closecallback: function () { }
  2358. }, { "style": { "height": "36px" } }).form; //创建窗体
  2359. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2360. break;
  2361. case "investigation":
  2362. _formdiv = new U.UF.UI.form(
  2363. "问卷调查",
  2364. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  2365. "id": "investigation",
  2366. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2367. "onresize": function () { }
  2368. }, {
  2369. closecallback: function () { }
  2370. }, { "style": { "height": "36px" } }).form; //创建窗体
  2371. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2372. break;
  2373. case "mind":
  2374. _formdiv = new U.UF.UI.form(
  2375. "思维导图",
  2376. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  2377. "id": "mind",
  2378. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2379. "onresize": function () { }
  2380. }, {
  2381. closecallback: function () { }
  2382. }, { "style": { "height": "36px" } }).form; //创建窗体
  2383. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2384. break;
  2385. case "doc":
  2386. // U.MD.D.I.isRoom();
  2387. _formdiv = new U.UF.UI.form(
  2388. "协同文档",
  2389. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2390. "id": "doc",
  2391. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2392. "onresize": function () { }
  2393. }, {
  2394. closecallback: function () { }
  2395. }, { "style": { "height": "36px" } }).form; //创建窗体
  2396. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2397. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2398. })
  2399. _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); } }
  2400. break;
  2401. case "study":
  2402. _formdiv = new U.UF.UI.form(
  2403. "课程中心",
  2404. $$("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
  2405. "id": "study",
  2406. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2407. "onresize": function () { }
  2408. }, {
  2409. closecallback: function () { }
  2410. }, { "style": { "height": "36px" } }).form; //创建窗体
  2411. _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); } }
  2412. break;
  2413. case "mindNetwork": //好友打开
  2414. _formdiv = new U.UF.UI.form(
  2415. "思维网格",
  2416. $$("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 }), {
  2417. "id": "mindNetwork",
  2418. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2419. "onresize": function () { }
  2420. }, {
  2421. closecallback: function () { }
  2422. }, { "style": { "height": "36px" } }).form; //创建窗体
  2423. _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); } }
  2424. break;
  2425. case "train": //好友打开
  2426. _formdiv = new U.UF.UI.form(
  2427. "训练平台",
  2428. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2429. "id": "train",
  2430. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2431. "onresize": function () { }
  2432. }, {
  2433. closecallback: function () { }
  2434. }, { "style": { "height": "36px" } }).form; //创建窗体
  2435. _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); } }
  2436. break;
  2437. case "sys":
  2438. _formdiv = new U.UF.UI.form(
  2439. "目标管理",
  2440. $$("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 }), {
  2441. "id": "sys",
  2442. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2443. "onresize": function () { }
  2444. }, {
  2445. closecallback: function () { }
  2446. }, { "style": { "height": "36px" } }).form; //创建窗体
  2447. _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); } }
  2448. break;
  2449. case "courseDesign":
  2450. _formdiv = new U.UF.UI.form(
  2451. "项目设计",
  2452. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2453. "id": "courseDesign",
  2454. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2455. "onresize": function () { }
  2456. }, {
  2457. closecallback: function () { }
  2458. }, { "style": { "height": "36px" } }).form; //创建窗体
  2459. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "项目设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2460. break;
  2461. }
  2462. } else if (!_type) {
  2463. switch (str) {
  2464. case "my":
  2465. _formdiv = new U.UF.UI.form(
  2466. "我的资料",
  2467. $$("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 }), {
  2468. "id": "my",
  2469. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2470. "onresize": function () { }
  2471. }, {
  2472. closecallback: function () { }
  2473. }, { "style": { "height": "36px" } }).form; //创建窗体
  2474. _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); } }
  2475. break;
  2476. }
  2477. }
  2478. switch (str) {
  2479. // AIprogram2 AI体验 aihub.cocorobo.cn
  2480. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2481. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2482. case "AIprogram2": //AI体验
  2483. _formdiv = new U.UF.UI.form(
  2484. "AI体验",
  2485. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2486. "id": "AIprogram2",
  2487. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2488. "onresize": function () { }
  2489. }, {
  2490. closecallback: function () { }
  2491. }, { "style": { "height": "36px" } }).form; //创建窗体
  2492. _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); } }
  2493. break;
  2494. case "Pythonprogram": //python编程
  2495. _formdiv = new U.UF.UI.form(
  2496. "Python编程",
  2497. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2498. "id": "Pythonprogram",
  2499. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2500. "onresize": function () { }
  2501. }, {
  2502. closecallback: function () { }
  2503. }, { "style": { "height": "36px" } }).form; //创建窗体
  2504. _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); } }
  2505. break;
  2506. case "AIprogram": //ai编程
  2507. _formdiv = new U.UF.UI.form(
  2508. "AI编程平台",
  2509. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2510. "id": "AIprogram",
  2511. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2512. "onresize": function () { }
  2513. }, {
  2514. closecallback: function () { }
  2515. }, { "style": { "height": "36px" } }).form; //创建窗体
  2516. _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); } }
  2517. break;
  2518. case "CocoPi": //CocoPi
  2519. _formdiv = new U.UF.UI.form(
  2520. "CocoPi",
  2521. $$("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" }), {
  2522. "id": "CocoPi",
  2523. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2524. "onresize": function () { }
  2525. }, {
  2526. closecallback: function () { }
  2527. }, { "style": { "height": "36px" } }).form; //创建窗体
  2528. _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); } }
  2529. break;
  2530. case "car": //模拟驾驶
  2531. _formdiv = new U.UF.UI.form(
  2532. "模拟驾驶",
  2533. $$("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/" }), {
  2534. "id": "car",
  2535. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2536. "onresize": function () { }
  2537. }, {
  2538. closecallback: function () { }
  2539. }, { "style": { "height": "36px" } }).form; //创建窗体
  2540. _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); } }
  2541. break;
  2542. case "lineSearch": //路径搜索
  2543. _formdiv = new U.UF.UI.form(
  2544. "路径搜索",
  2545. $$("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/" }), {
  2546. "id": "lineSearch",
  2547. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2548. "onresize": function () { }
  2549. }, {
  2550. closecallback: function () { }
  2551. }, { "style": { "height": "36px" } }).form; //创建窗体
  2552. _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); } }
  2553. break;
  2554. case "deepLearning": //深度学习
  2555. _formdiv = new U.UF.UI.form(
  2556. "深度学习",
  2557. $$("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/#" }), {
  2558. "id": "deepLearning",
  2559. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2560. "onresize": function () { }
  2561. }, {
  2562. closecallback: function () { }
  2563. }, { "style": { "height": "36px" } }).form; //创建窗体
  2564. _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); } }
  2565. break;
  2566. case "allHistory": //深度学习
  2567. _formdiv = new U.UF.UI.form(
  2568. "全历史",
  2569. $$("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/" }), {
  2570. "id": "allHistory",
  2571. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2572. "onresize": function () { }
  2573. }, {
  2574. closecallback: function () { }
  2575. }, { "style": { "height": "36px" } }).form; //创建窗体
  2576. _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); } }
  2577. break;
  2578. case "chatPDF": //ai编程
  2579. _formdiv = new U.UF.UI.form(
  2580. "chatPDF",
  2581. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2582. "id": "chatPDF",
  2583. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2584. "onresize": function () { }
  2585. }, {
  2586. closecallback: function () { }
  2587. }, { "style": { "height": "36px" } }).form; //创建窗体
  2588. _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); } }
  2589. break;
  2590. case "resources": //国家教育
  2591. _formdiv = new U.UF.UI.form(
  2592. "国家教育",
  2593. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2594. "id": "resources",
  2595. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2596. "onresize": function () { }
  2597. }, {
  2598. closecallback: function () { }
  2599. }, { "style": { "height": "36px" } }).form; //创建窗体
  2600. _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); } }
  2601. break;
  2602. case "codeEdit": //源码编辑
  2603. _formdiv = new U.UF.UI.form(
  2604. "源码编辑",
  2605. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2606. "id": "codeEdit",
  2607. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2608. "onresize": function () { }
  2609. }, {
  2610. closecallback: function () { }
  2611. }, { "style": { "height": "36px" } }).form; //创建窗体
  2612. _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); } }
  2613. break; //
  2614. case "MindMap": //MindMap
  2615. _formdiv = new U.UF.UI.form(
  2616. "MindMap",
  2617. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2618. "id": "MindMap",
  2619. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2620. "onresize": function () { }
  2621. }, {
  2622. closecallback: function () { }
  2623. }, { "style": { "height": "36px" } }).form; //创建窗体
  2624. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/MIndMap.png)" }, "name": "MindMap", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2625. break;
  2626. case "netWorkPanel": //netWorkPanel
  2627. _formdiv = new U.UF.UI.form(
  2628. "netWorkPanel",
  2629. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2630. "id": "netWorkPanel",
  2631. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2632. "onresize": function () { }
  2633. }, {
  2634. closecallback: function () { }
  2635. }, { "style": { "height": "36px" } }).form; //创建窗体
  2636. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/netWorkPanel.png)" }, "name": "netWorkPanel", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2637. break;
  2638. case "GeoGebra": //GeoGebra
  2639. _formdiv = new U.UF.UI.form(
  2640. "GeoGebra",
  2641. $$("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" }), {
  2642. "id": "GeoGebra",
  2643. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2644. "onresize": function () { }
  2645. }, {
  2646. closecallback: function () { }
  2647. }, { "style": { "height": "36px" } }).form; //创建窗体
  2648. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/GeoGebra.png)" }, "name": "GeoGebra", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2649. break;
  2650. case "translation": //翻译
  2651. _formdiv = new U.UF.UI.form(
  2652. "翻译",
  2653. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2654. "id": "translation",
  2655. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2656. "onresize": function () { }
  2657. }, {
  2658. closecallback: function () { }
  2659. }, { "style": { "height": "36px" } }).form; //创建窗体
  2660. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/translation.png)" }, "name": "翻译", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2661. break;
  2662. case "mohe": //魔盒
  2663. _formdiv = new U.UF.UI.form(
  2664. "魔盒识字",
  2665. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2666. "id": "mohe",
  2667. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2668. "onresize": function () { }
  2669. }, {
  2670. closecallback: function () { }
  2671. }, { "style": { "height": "36px" } }).form; //创建窗体
  2672. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mohe.png)" }, "name": "魔盒识字", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2673. break;
  2674. case "24game": //24点
  2675. _formdiv = new U.UF.UI.form(
  2676. "24点",
  2677. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2678. "id": "24game",
  2679. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2680. "onresize": function () { }
  2681. }, {
  2682. closecallback: function () { }
  2683. }, { "style": { "height": "36px" } }).form; //创建窗体
  2684. _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); } }
  2685. break;
  2686. case "case":
  2687. _formdiv = new U.UF.UI.form(
  2688. "课程进展",
  2689. $$("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 }), {
  2690. "id": "case",
  2691. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2692. "onresize": function () { }
  2693. }, {
  2694. closecallback: function () { }
  2695. }, { "style": { "height": "36px" } }).form; //创建窗体
  2696. _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); } }
  2697. break;
  2698. case "snf":
  2699. _formdiv = new U.UF.UI.form(
  2700. "赛诺梵",
  2701. $$("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" }), {
  2702. "id": "snf",
  2703. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2704. "onresize": function () { }
  2705. }, {
  2706. closecallback: function () { }
  2707. }, { "style": { "height": "36px" } }).form; //创建窗体
  2708. _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); } }
  2709. break;
  2710. case "hanFamily":
  2711. _formdiv = new U.UF.UI.form(
  2712. "汉字家族",
  2713. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2714. "id": "hanFamily",
  2715. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2716. "onresize": function () { }
  2717. }, {
  2718. closecallback: function () { }
  2719. }, { "style": { "height": "36px" } }).form; //创建窗体
  2720. _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); } }
  2721. break;
  2722. case "hanClassics":
  2723. _formdiv = new U.UF.UI.form(
  2724. "国学经典",
  2725. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2726. "id": "hanClassics",
  2727. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2728. "onresize": function () { }
  2729. }, {
  2730. closecallback: function () { }
  2731. }, { "style": { "height": "36px" } }).form; //创建窗体
  2732. _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); } }
  2733. break;
  2734. case "hanTraining":
  2735. _formdiv = new U.UF.UI.form(
  2736. "笔画训练",
  2737. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2738. "id": "hanTraining",
  2739. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2740. "onresize": function () { }
  2741. }, {
  2742. closecallback: function () { }
  2743. }, { "style": { "height": "36px" } }).form; //创建窗体
  2744. _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); } }
  2745. break;
  2746. case "hanClass":
  2747. _formdiv = new U.UF.UI.form(
  2748. "书法课堂",
  2749. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2750. "id": "hanClass",
  2751. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2752. "onresize": function () { }
  2753. }, {
  2754. closecallback: function () { }
  2755. }, { "style": { "height": "36px" } }).form; //创建窗体
  2756. _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); } }
  2757. break;
  2758. case "han":
  2759. _formdiv = new U.UF.UI.form(
  2760. "汉字宫",
  2761. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2762. "id": "han",
  2763. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2764. "onresize": function () { }
  2765. }, {
  2766. closecallback: function () { }
  2767. }, { "style": { "height": "36px" } }).form; //创建窗体
  2768. _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); } }
  2769. break;
  2770. case "projectGM": //课程管理
  2771. _formdiv = new U.UF.UI.form(
  2772. "课程管理",
  2773. $$("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 }), {
  2774. "id": "projectGM",
  2775. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2776. "onresize": function () { }
  2777. }, {
  2778. closecallback: function () { }
  2779. }, { "style": { "height": "36px" } }).form; //创建窗体
  2780. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/courseMange.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2781. break;
  2782. case "studyGM"://课程中心
  2783. _formdiv = new U.UF.UI.form(
  2784. "课程中心",
  2785. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-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
  2786. "id": "study",
  2787. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2788. "onresize": function () { }
  2789. }, {
  2790. closecallback: function () { }
  2791. }, { "style": { "height": "36px" } }).form; //创建窗体
  2792. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2793. break;
  2794. // studentGM
  2795. case "studentGM"://学生管理
  2796. _formdiv = new U.UF.UI.form(
  2797. "学生管理",
  2798. $$("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 }), {
  2799. "id": "studentGM",
  2800. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2801. "onresize": function () { }
  2802. }, {
  2803. closecallback: function () { }
  2804. }, { "style": { "height": "36px" } }).form; //创建窗体
  2805. _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); } }
  2806. break;
  2807. case "evaluateGM"://学生评价
  2808. _formdiv = new U.UF.UI.form(
  2809. "学生评价",
  2810. $$("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 }), {
  2811. "id": "evaluateGM",
  2812. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2813. "onresize": function () { }
  2814. }, {
  2815. closecallback: function () { }
  2816. }, { "style": { "height": "36px" } }).form; //创建窗体
  2817. _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); } }
  2818. break;
  2819. // classGM
  2820. case "classGM"://班级管理
  2821. _formdiv = new U.UF.UI.form(
  2822. "班级管理",
  2823. $$("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 }), {
  2824. "id": "classGM",
  2825. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2826. "onresize": function () { }
  2827. }, {
  2828. closecallback: function () { }
  2829. }, { "style": { "height": "36px" } }).form; //创建窗体
  2830. _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); } }
  2831. break;
  2832. // dataGM
  2833. case "dataGM":
  2834. _formdiv = new U.UF.UI.form(
  2835. "我的资料",
  2836. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataGM?userid=" + _userid + "&org=" + _org }), {
  2837. "id": "dataGM",
  2838. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2839. "onresize": function () { }
  2840. }, {
  2841. closecallback: function () { }
  2842. }, { "style": { "height": "36px" } }).form; //创建窗体
  2843. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/data.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2844. break;
  2845. // caseGM
  2846. case "caseGM"://课程进展
  2847. _formdiv = new U.UF.UI.form(
  2848. "课程进展",
  2849. $$("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 }), {
  2850. "id": "caseGM",
  2851. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2852. "onresize": function () { }
  2853. }, {
  2854. closecallback: function () { }
  2855. }, { "style": { "height": "36px" } }).form; //创建窗体
  2856. _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); } }
  2857. break;
  2858. // meterialGM
  2859. case "meterialGM"://素材库
  2860. _formdiv = new U.UF.UI.form(
  2861. "素材库",
  2862. $$("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 }), {
  2863. "id": "meterialGM",
  2864. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2865. "onresize": function () { }
  2866. }, {
  2867. closecallback: function () { }
  2868. }, { "style": { "height": "36px" } }).form; //创建窗体
  2869. _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); } }
  2870. break;
  2871. // evaluateSGM
  2872. case "evaluateSGM": //我的评价
  2873. _formdiv = new U.UF.UI.form(
  2874. "我的评价",
  2875. $$("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 }), {
  2876. "id": "evaluateSGM",
  2877. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2878. "onresize": function () { }
  2879. }, {
  2880. closecallback: function () { }
  2881. }, { "style": { "height": "36px" } }).form; //创建窗体
  2882. _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); } }
  2883. break;
  2884. case "jupyter": //jupyter
  2885. _formdiv = new U.UF.UI.form(
  2886. "jupyter",
  2887. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  2888. "id": "jupyter",
  2889. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2890. "onresize": function () { }
  2891. }, {
  2892. closecallback: function () { }
  2893. }, { "style": { "height": "36px" } }).form; //创建窗体
  2894. _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); } }
  2895. break;
  2896. case "number": //数字实验室
  2897. _formdiv = new U.UF.UI.form(
  2898. "数字实验室",
  2899. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  2900. "id": "number",
  2901. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2902. "onresize": function () { }
  2903. }, {
  2904. closecallback: function () { }
  2905. }, { "style": { "height": "36px" } }).form; //创建窗体
  2906. _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); } }
  2907. break;
  2908. case "studentCourse": //项目管理 学生
  2909. _formdiv = new U.UF.UI.form(
  2910. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2911. $$("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 }), {
  2912. "id": "studentCourse",
  2913. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2914. "onresize": function () { }
  2915. }, {
  2916. closecallback: function () { }
  2917. }, { "style": { "height": "36px" } }).form; //创建窗体
  2918. _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); } }
  2919. break;
  2920. case "studentCourseS": //项目管理 老师
  2921. _formdiv = new U.UF.UI.form(
  2922. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2923. $$("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 }), {
  2924. "id": "studentCourseS",
  2925. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2926. "onresize": function () { }
  2927. }, {
  2928. closecallback: function () { }
  2929. }, { "style": { "height": "36px" } }).form; //创建窗体
  2930. _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); } }
  2931. break;
  2932. case "studentIndex": //项目中心
  2933. _formdiv = new U.UF.UI.form(
  2934. "项目中心",
  2935. $$("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 }), {
  2936. "id": "studentIndex",
  2937. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2938. "onresize": function () { }
  2939. }, {
  2940. closecallback: function () { }
  2941. }, { "style": { "height": "36px" } }).form; //创建窗体
  2942. _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); } }
  2943. break;
  2944. case "CaseDesignS":
  2945. _formdiv = new U.UF.UI.form(
  2946. "项目进展",
  2947. $$("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 }), {
  2948. "id": "case",
  2949. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2950. "onresize": function () { }
  2951. }, {
  2952. closecallback: function () { }
  2953. }, { "style": { "height": "36px" } }).form; //创建窗体
  2954. _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); } }
  2955. break;
  2956. case "tcStudent": //腾讯学生管理
  2957. _formdiv = new U.UF.UI.form(
  2958. "学生管理",
  2959. $$("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 }), {
  2960. "id": "tcStudent",
  2961. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2962. "onresize": function () { }
  2963. }, {
  2964. closecallback: function () { }
  2965. }, { "style": { "height": "36px" } }).form; //创建窗体
  2966. _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); } }
  2967. break;
  2968. case "tcSchool": //腾讯学校管理
  2969. _formdiv = new U.UF.UI.form(
  2970. "学校管理",
  2971. $$("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 }), {
  2972. "id": "tcSchool",
  2973. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2974. "onresize": function () { }
  2975. }, {
  2976. closecallback: function () { }
  2977. }, { "style": { "height": "36px" } }).form; //创建窗体
  2978. _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); } }
  2979. break;
  2980. case "tcTeacher": //腾讯学校管理
  2981. _formdiv = new U.UF.UI.form(
  2982. "教师管理",
  2983. $$("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 }), {
  2984. "id": "tcTeacher",
  2985. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2986. "onresize": function () { }
  2987. }, {
  2988. closecallback: function () { }
  2989. }, { "style": { "height": "36px" } }).form; //创建窗体
  2990. _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); } }
  2991. break;
  2992. case "tcData": //腾讯我的资料
  2993. _formdiv = new U.UF.UI.form(
  2994. "我的资料",
  2995. $$("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 }), {
  2996. "id": "tcData",
  2997. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2998. "onresize": function () { }
  2999. }, {
  3000. closecallback: function () { }
  3001. }, { "style": { "height": "36px" } }).form; //创建窗体
  3002. _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); } }
  3003. break;
  3004. case "tcNotice": //腾讯消息通知
  3005. _formdiv = new U.UF.UI.form(
  3006. "消息通知",
  3007. $$("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 }), {
  3008. "id": "tcNotice",
  3009. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3010. "onresize": function () { }
  3011. }, {
  3012. closecallback: function () { }
  3013. }, { "style": { "height": "36px" } }).form; //创建窗体
  3014. _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); } }
  3015. break;
  3016. case "myReport": //好友打开
  3017. _formdiv = new U.UF.UI.form(
  3018. "我的评价",
  3019. $$("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 }), {
  3020. "id": "myReport",
  3021. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3022. "onresize": function () { }
  3023. }, {
  3024. closecallback: function () { }
  3025. }, { "style": { "height": "36px" } }).form; //创建窗体
  3026. _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); } }
  3027. break;
  3028. case "learnAna": //好友打开
  3029. _formdiv = new U.UF.UI.form(
  3030. "学习分析",
  3031. $$("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 }), {
  3032. "id": "learnAna",
  3033. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3034. "onresize": function () { }
  3035. }, {
  3036. closecallback: function () { }
  3037. }, { "style": { "height": "36px" } }).form; //创建窗体
  3038. _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); } }
  3039. break;
  3040. case "AIChat": //AI共创
  3041. _formdiv = new U.UF.UI.form(
  3042. "AI共创",
  3043. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3044. "id": "AIChat",
  3045. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3046. "onresize": function () { }
  3047. }, {
  3048. istop: true,
  3049. closecallback: function () { $("#aichat_icon").remove(); },
  3050. narrowcallback: function () {
  3051. if (!$("#aichat_icon")[0]) {
  3052. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3053. }
  3054. },
  3055. }, { "style": { "height": "36px" } }).form; //创建窗体
  3056. _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); } }
  3057. break;
  3058. case "AIAnalyse": //AI共创
  3059. _formdiv = new U.UF.UI.form(
  3060. "AI分析",
  3061. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3062. "id": "AIAnalyse",
  3063. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3064. "onresize": function () { }
  3065. }, {
  3066. closecallback: function () { }
  3067. }, { "style": { "height": "36px" } }).form; //创建窗体
  3068. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3069. break;
  3070. case "studioCourse": //AI共创
  3071. _formdiv = new U.UF.UI.form(
  3072. "工作管理",
  3073. $$("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 }), {
  3074. "id": "studioCourse",
  3075. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3076. "onresize": function () { }
  3077. }, {
  3078. closecallback: function () { }
  3079. }, { "style": { "height": "36px" } }).form; //创建窗体
  3080. _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); } }
  3081. break;
  3082. case "studioIndex": //AI共创
  3083. _formdiv = new U.UF.UI.form(
  3084. "工作中心",
  3085. $$("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 }), {
  3086. "id": "studioIndex",
  3087. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3088. "onresize": function () { }
  3089. }, {
  3090. closecallback: function () { }
  3091. }, { "style": { "height": "36px" } }).form; //创建窗体
  3092. _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); } }
  3093. break;
  3094. case "source":
  3095. _formdiv = new U.UF.UI.form(
  3096. "教学资源",
  3097. $$("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 }), {
  3098. "id": "source",
  3099. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3100. "onresize": function () { }
  3101. }, {
  3102. closecallback: function () { }
  3103. }, { "style": { "height": "36px" } }).form; //创建窗体
  3104. _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); } }
  3105. break;
  3106. }
  3107. //U.MD.D.I.openClick(str);
  3108. //如果有任务栏信息
  3109. if (_taskbar) {
  3110. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3111. }
  3112. }
  3113. // U.MD.D.I.openClick = function(str){
  3114. // var click = '';
  3115. // switch(str){
  3116. // case 'friend':
  3117. // click = '我的好友';
  3118. // break;
  3119. // case 'domain':
  3120. // click = '域名管理';
  3121. // break;
  3122. // case 'disk':
  3123. // click = '我的云盘';
  3124. // break;
  3125. // case 'word':
  3126. // click = 'Word';
  3127. // break;
  3128. // case 'excel':
  3129. // click = 'Execl';
  3130. // break;
  3131. // case 'txt':
  3132. // click = '文本文件';
  3133. // break;
  3134. // case 'lookupFriend':
  3135. // click = '查找好友';
  3136. // break;
  3137. // case 'ftp':
  3138. // click = 'FTP';
  3139. // break;
  3140. // case 'group':
  3141. // click = '群组';
  3142. // break;
  3143. // case 'set':
  3144. // click = '我的设置';
  3145. // break;
  3146. // case 'systemSet':
  3147. // click = '系统设置';
  3148. // break;
  3149. // case 'boomYun':
  3150. // click = '互联办公';
  3151. // break;
  3152. // case 'xz':
  3153. // click = '云端下载';
  3154. // break;
  3155. // case 'client':
  3156. // click = '有思浏览器';
  3157. // break;
  3158. // case 'backEndProgramming':
  3159. // click = '在线后台编程';
  3160. // break;
  3161. // case 'frontEndProgramming':
  3162. // click = '在线前端编程';
  3163. // break;
  3164. // default: break;
  3165. // }
  3166. // if(U.MD.D.I.Ip && click){
  3167. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3168. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3169. // })
  3170. // }
  3171. // }
  3172. /**
  3173. *函数作用:ajax简易函数,使用post格式
  3174. *@param url {data} 后台地址
  3175. *@param data {data} 参数json
  3176. *@param fn {data} 回调函数
  3177. *
  3178. */
  3179. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3180. // var xhr = new XMLHttpRequest();
  3181. // xhr.open("GET",url,true);
  3182. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3183. // xhr.onreadystatechange = function(){
  3184. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3185. // fn.call(this,xhr.responseText);
  3186. // }
  3187. // };
  3188. // xhr.send();
  3189. // }
  3190. /*判断是否是内网IP*/
  3191. // U.MD.D.I.isInnerIPFn = function(str){
  3192. // var curPageUrl = str;
  3193. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3194. // curPageUrl =curPageUrl.replace(reg1,'');
  3195. // // console.log('curPageUrl-1 '+curPageUrl);
  3196. // var reg2 = /\:+/g;//替换冒号为一点
  3197. // curPageUrl =curPageUrl.replace(reg2,'.');
  3198. // // console.log('curPageUrl-2 '+curPageUrl);
  3199. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3200. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3201. // if(curPageUrl[2] != '16'){
  3202. // return ipAddress;
  3203. // }else{
  3204. // return false;
  3205. // }
  3206. // }
  3207. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3208. // //compatibility for firefox and chrome
  3209. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3210. // var pc = new myPeerConnection({
  3211. // iceServers: []
  3212. // }),
  3213. // noop = function() {},
  3214. // localIPs = {},
  3215. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3216. // key;
  3217. // function iterateIP(ip) {
  3218. // if (!localIPs[ip]) onNewIP(ip);
  3219. // localIPs[ip] = true;
  3220. // }
  3221. // //create a bogus data channel
  3222. // pc.createDataChannel("");
  3223. // // create offer and set local description
  3224. // pc.createOffer().then(function(sdp) {
  3225. // sdp.sdp.split('\n').forEach(function(line) {
  3226. // if (line.indexOf('candidate') < 0) return;
  3227. // line.match(ipRegex).forEach(iterateIP);
  3228. // });
  3229. // pc.setLocalDescription(sdp, noop, noop);
  3230. // }).catch(function(reason) {
  3231. // // An error occurred, so handle the failure to connect
  3232. // });
  3233. // //sten for candidate events
  3234. // pc.onicecandidate = function(ice) {
  3235. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3236. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3237. // };
  3238. // }
  3239. // U.MD.D.I.getUserIpBool = function(callback){
  3240. // U.MD.D.I.getUserIP(function(ip){
  3241. // alert("Got IP! :" + ip);
  3242. // });
  3243. //}
  3244. //#endregion
  3245. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3246. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3247. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3248. _userinfo = US.userInfo, //登录用户信息
  3249. _userid = US.userInfo.userid //登录用户id
  3250. let _iframe;
  3251. let _cid = cid,
  3252. _stage = stage,
  3253. _task = task,
  3254. _tool = tool;
  3255. var _jie = $$("div", {
  3256. "style": {
  3257. "position": "absolute",
  3258. "bottom": "50px",
  3259. "right": "50px",
  3260. "zIndex": "9999",
  3261. "backgroundColor": "#2268bc",
  3262. "color": "#fff",
  3263. "padding": "12px 20px",
  3264. "cursor": "pointer",
  3265. "borderRadius": "4px",
  3266. },
  3267. "innerHTML": "提交作业"
  3268. })
  3269. let aTool = ''
  3270. let _loading = document.createElement('div')
  3271. _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;"
  3272. // _loading.id = "";
  3273. let _lchild = document.createElement('div')
  3274. let _limg = document.createElement('img')
  3275. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3276. _limg.style = "width: 26px;margin-right: 10px;"
  3277. _lchild.appendChild(_limg)
  3278. let _lspan = document.createElement('span')
  3279. _lspan.innerHTML = "上传中..."
  3280. _lchild.appendChild(_lspan)
  3281. _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%);"
  3282. _loading.appendChild(_lchild)
  3283. var _box = $$('div', {
  3284. "style": {
  3285. "position": "relative",
  3286. "width": "100%",
  3287. "height": "100%",
  3288. },
  3289. })
  3290. _box.appendChild(_loading)
  3291. _box.id = str + '_loadLi'
  3292. switch (str) {
  3293. case "whiteboard":
  3294. aTool = 1;
  3295. _iframe = $$("iframe", {
  3296. "frameborder": "no",
  3297. "border": "0",
  3298. "scrolling ": "no",
  3299. "style": {
  3300. "cssText": "border:0;width:100%;height:100%"
  3301. },
  3302. "src": "https://iwb.cocorobo.cn/"
  3303. })
  3304. _box.appendChild(_iframe);
  3305. _box.appendChild(_jie);
  3306. _formdiv = new U.UF.UI.form(
  3307. "电子白板",
  3308. _box, {
  3309. "id": "whiteboard" + cid + stage + task + tool,
  3310. "style": {
  3311. "width": "90%",
  3312. "height": "90%",
  3313. "overflow": 'hidden'
  3314. },
  3315. "onresize": function () { }
  3316. }, {
  3317. closecallback: function () { }
  3318. }, {
  3319. "style": {
  3320. "height": "36px"
  3321. }
  3322. }).form; //创建窗体
  3323. _taskbar = {
  3324. "id": str + _formdiv.id,
  3325. "style": {
  3326. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3327. },
  3328. "name": "电子白板",
  3329. "forms": _formdiv,
  3330. "click": function () {
  3331. U.MD.D.I.openApplication(str, obj, info);
  3332. }
  3333. }
  3334. break;
  3335. case "mind":
  3336. aTool = 3;
  3337. _iframe = $$("iframe", {
  3338. "frameborder": "no",
  3339. "border": "0",
  3340. "scrolling ": "no",
  3341. "style": {
  3342. "cssText": "border:0;width:100%;height:100%"
  3343. },
  3344. "src": "/kityminder-editor/dist/index.html"
  3345. })
  3346. _box.appendChild(_iframe);
  3347. _box.appendChild(_jie);
  3348. _formdiv = new U.UF.UI.form(
  3349. "思维导图",
  3350. _box, { //"/jsmind/example/demo.html"
  3351. "id": "mind" + cid + stage + task + tool,
  3352. "style": {
  3353. "width": "90%",
  3354. "height": "90%",
  3355. "overflow": 'hidden'
  3356. },
  3357. "onresize": function () { }
  3358. }, {
  3359. closecallback: function () { }
  3360. }, {
  3361. "style": {
  3362. "height": "36px"
  3363. }
  3364. }).form; //创建窗体
  3365. _taskbar = {
  3366. "id": str + _formdiv.id,
  3367. "style": {
  3368. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3369. },
  3370. "name": "思维导图",
  3371. "forms": _formdiv,
  3372. "click": function () {
  3373. U.MD.D.I.openApplication(str, obj, info);
  3374. }
  3375. }
  3376. break;
  3377. case "MindMap":
  3378. aTool = 3;
  3379. _iframe = $$("iframe", {
  3380. "frameborder": "no",
  3381. "border": "0",
  3382. "scrolling ": "no",
  3383. "style": {
  3384. "cssText": "border:0;width:100%;height:100%"
  3385. },
  3386. "src": "//cloud.cocorobo.cn/mind/"
  3387. })
  3388. _box.appendChild(_iframe);
  3389. _box.appendChild(_jie);
  3390. _formdiv = new U.UF.UI.form(
  3391. "思维导图",
  3392. _box, { //"/jsmind/example/demo.html"
  3393. "id": "mind" + cid + stage + task + tool,
  3394. "style": {
  3395. "width": "90%",
  3396. "height": "90%",
  3397. "overflow": 'hidden'
  3398. },
  3399. "onresize": function () { }
  3400. }, {
  3401. closecallback: function () { }
  3402. }, {
  3403. "style": {
  3404. "height": "36px"
  3405. }
  3406. }).form; //创建窗体
  3407. _taskbar = {
  3408. "id": str + _formdiv.id,
  3409. "style": {
  3410. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3411. },
  3412. "name": "思维导图",
  3413. "forms": _formdiv,
  3414. "click": function () {
  3415. U.MD.D.I.openApplication(str, obj, info);
  3416. }
  3417. }
  3418. break;
  3419. case "doc":
  3420. aTool = 6;
  3421. _iframe = $$("iframe", {
  3422. "frameborder": "no",
  3423. "border": "0",
  3424. "scrolling ": "no",
  3425. "style": {
  3426. "cssText": "border:0;width:100%;height:100%"
  3427. },
  3428. "src": "/Office/Word/WordEditArea.htm"
  3429. })
  3430. _box.appendChild(_iframe);
  3431. _box.appendChild(_jie);
  3432. _formdiv = new U.UF.UI.form(
  3433. "协同文档",
  3434. _box, {
  3435. "id": "doc" + cid + stage + task + tool,
  3436. "style": {
  3437. "width": "90%",
  3438. "height": "90%",
  3439. "overflow": 'hidden'
  3440. },
  3441. "onresize": function () { }
  3442. }, {
  3443. closecallback: function () { }
  3444. }, {
  3445. "style": {
  3446. "height": "36px"
  3447. }
  3448. }).form; //创建窗体
  3449. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3450. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3451. })
  3452. _taskbar = {
  3453. "id": str + _formdiv.id,
  3454. "style": {
  3455. "backgroundImage": "url(/img/icon/doc.png)"
  3456. },
  3457. "name": "协同文档",
  3458. "forms": _formdiv,
  3459. "click": function () {
  3460. U.MD.D.I.openApplication(str, obj, info);
  3461. }
  3462. }
  3463. break;
  3464. case "mindNetwork": //好友打开
  3465. aTool = 7;
  3466. _iframe = $$("iframe", {
  3467. "webkitallowfullscreen": "",
  3468. "mozallowfullscreen": "",
  3469. "allowfullscreen": "",
  3470. "frameborder": "no",
  3471. "border": "0",
  3472. "scrolling ": "no",
  3473. "style": {
  3474. "cssText": "border:0; width:100%; height:100%;"
  3475. },
  3476. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3477. })
  3478. _box.appendChild(_iframe);
  3479. _box.appendChild(_jie);
  3480. _formdiv = new U.UF.UI.form(
  3481. "思维网格",
  3482. _box, {
  3483. "id": "mindNetwork" + cid + stage + task + tool,
  3484. "style": {
  3485. "width": "90%",
  3486. "height": "90%",
  3487. "overflow": 'hidden'
  3488. },
  3489. "onresize": function () { }
  3490. }, {
  3491. closecallback: function () { }
  3492. }, {
  3493. "style": {
  3494. "height": "36px"
  3495. }
  3496. }).form; //创建窗体
  3497. _taskbar = {
  3498. "id": str + _formdiv.id,
  3499. "style": {
  3500. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3501. },
  3502. "name": "思维网格",
  3503. "forms": _formdiv,
  3504. "click": function () {
  3505. U.MD.D.I.openApplication(str, obj, info);
  3506. }
  3507. }
  3508. break;
  3509. case "courseDesign":
  3510. _iframe = $$("iframe", {
  3511. "webkitallowfullscreen": "",
  3512. "mozallowfullscreen": "",
  3513. "allowfullscreen": "",
  3514. "frameborder": "no",
  3515. "border": "0",
  3516. "scrolling ": "no",
  3517. "style": {
  3518. "cssText": "border:0; width:100%; height:100%;"
  3519. },
  3520. "src": "/course-design-vue"
  3521. })
  3522. _box.appendChild(_iframe);
  3523. _box.appendChild(_jie);
  3524. _formdiv = new U.UF.UI.form(
  3525. "项目设计",
  3526. _box, {
  3527. "id": "courseDesign" + cid + stage + task + tool,
  3528. "style": {
  3529. "width": "90%",
  3530. "height": "90%",
  3531. "overflow": 'hidden'
  3532. },
  3533. "onresize": function () { }
  3534. }, {
  3535. closecallback: function () { }
  3536. }, {
  3537. "style": {
  3538. "height": "36px"
  3539. }
  3540. }).form; //创建窗体
  3541. _taskbar = {
  3542. "id": str + _formdiv.id,
  3543. "style": {
  3544. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3545. },
  3546. "name": "项目设计",
  3547. "forms": _formdiv,
  3548. "click": function () {
  3549. U.MD.D.I.openApplication(str, obj, info);
  3550. }
  3551. }
  3552. break;
  3553. }
  3554. const script1 = document.createElement("script");
  3555. script1.type = "text/javascript";
  3556. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3557. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3558. const script2 = document.createElement("script");
  3559. script2.type = "text/javascript";
  3560. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3561. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3562. const script3 = document.createElement("script");
  3563. script3.type = "text/javascript";
  3564. script3.charset = "UTF-8";
  3565. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3566. const script4 = document.createElement("script");
  3567. script4.type = "text/javascript";
  3568. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3569. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3570. if (_iframe) {
  3571. if (str == 'doc') {
  3572. _iframe = _formdiv.querySelector('iframe')
  3573. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3574. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3575. _iframe.contentWindow.document.body.appendChild(script1);
  3576. _iframe.contentWindow.document.body.appendChild(script2);
  3577. // _iframe.contentWindow.document.body.appendChild(script3);
  3578. _iframe.contentWindow.document.body.appendChild(script4);
  3579. })
  3580. if (onloadListener) {
  3581. _iframe.contentDocument.location.reload()
  3582. } else {
  3583. _iframe.contentDocument.location.reload()
  3584. }
  3585. } else if (str == 'courseDesign') {
  3586. U.UF.DL.iframeLoad(_iframe, function () {
  3587. // _iframe.contentWindow.U.MD.O.W.load();
  3588. // _iframe.contentWindow.document.body.appendChild(script1);
  3589. _iframe.contentWindow.document.body.appendChild(script2);
  3590. _iframe.contentWindow.document.body.appendChild(script4);
  3591. })
  3592. } else if (str == 'mind') {
  3593. _iframe = _formdiv.querySelector('iframe')
  3594. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3595. //
  3596. _iframe.contentWindow.document.body.appendChild(script1);
  3597. _iframe.contentWindow.document.body.appendChild(script2);
  3598. _iframe.contentWindow.document.body.appendChild(script4);
  3599. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3600. })
  3601. if (onloadListener) {
  3602. _iframe.contentDocument.location.reload()
  3603. } else {
  3604. _iframe.contentDocument.location.reload()
  3605. }
  3606. } else if (str == 'whiteboard') {
  3607. _iframe = _formdiv.querySelector('iframe')
  3608. let onloadListener = _iframe.onload = () => {
  3609. _iframe.contentWindow.document.body.appendChild(script1);
  3610. _iframe.contentWindow.document.body.appendChild(script2);
  3611. _iframe.contentWindow.document.body.appendChild(script4);
  3612. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3613. };
  3614. if (onloadListener) {
  3615. _iframe.contentDocument.location.reload()
  3616. } else {
  3617. _iframe.contentDocument.location.reload()
  3618. }
  3619. } else {
  3620. _iframe.onload = () => {
  3621. _iframe.contentWindow.document.body.appendChild(script1);
  3622. _iframe.contentWindow.document.body.appendChild(script2);
  3623. // _iframe.contentWindow.document.body.appendChild(script3);
  3624. _iframe.contentWindow.document.body.appendChild(script4);
  3625. };
  3626. }
  3627. _jie.onclick = async () => {
  3628. let text = ''
  3629. if (aTool == 1) {
  3630. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3631. } else if (aTool == 6) {
  3632. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3633. } else if (aTool == 3) {
  3634. text = await U.MD.D.I.getEditorContent(_iframe);
  3635. }
  3636. _loading.style.display = 'flex'
  3637. console.log(_loading);
  3638. var _ajs = _iframe.contentWindow.document.createElement("script");
  3639. _ajs.type = "text/javascript";
  3640. _ajs.innerHTML =
  3641. // 'console.log(' + _loading + ');\n' +
  3642. 'var _js = document.createElement("script");\n' +
  3643. '_js.type="text/javascript";\n' +
  3644. '_js.charset="UTF-8";\n' +
  3645. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3646. "_js.onload = function(){\n" +
  3647. ' var a = document.getElementsByTagName("img")\n' +
  3648. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3649. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3650. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3651. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3652. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3653. "beforeUpload_shishi(file," +
  3654. "'" +
  3655. _userid +
  3656. "'" +
  3657. ", " +
  3658. "'" +
  3659. _cid +
  3660. "'" +
  3661. ", " +
  3662. "'" +
  3663. _stage +
  3664. "'" +
  3665. ", " +
  3666. "'" +
  3667. _task +
  3668. "'" +
  3669. ", " +
  3670. "'" +
  3671. _tool +
  3672. "'" +
  3673. ", " +
  3674. "'" +
  3675. str + '_loadLi' +
  3676. "'" +
  3677. ", " +
  3678. "'" +
  3679. aTool +
  3680. "'" +
  3681. ", " +
  3682. "`" +
  3683. text +
  3684. "`" +
  3685. ")\n" +
  3686. " });\n" +
  3687. "}\n" +
  3688. "document.head.appendChild(_js);\n";
  3689. _iframe.contentWindow.document.head.appendChild(_ajs);
  3690. }
  3691. }
  3692. //U.MD.D.I.openClick(str);
  3693. //如果有任务栏信息
  3694. // if (_taskbar) {
  3695. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3696. // }
  3697. }
  3698. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  3699. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3700. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3701. _userid = student.userid, //登录用户id
  3702. _username = student.student //用户名字
  3703. let _iframe;
  3704. let _cid = cid,
  3705. _stage = stage,
  3706. _task = task,
  3707. _tool = tool;
  3708. var _jie = $$("div", {
  3709. "style": {
  3710. "position": "absolute",
  3711. "bottom": "50px",
  3712. "right": "50px",
  3713. "zIndex": "9999",
  3714. "backgroundColor": "#2268bc",
  3715. "color": "#fff",
  3716. "padding": "12px 20px",
  3717. "cursor": "pointer",
  3718. "borderRadius": "4px",
  3719. },
  3720. "innerHTML": "提交作业"
  3721. })
  3722. let aTool = ''
  3723. let _loading = document.createElement('div')
  3724. _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;"
  3725. // _loading.id = "";
  3726. let _lchild = document.createElement('div')
  3727. let _limg = document.createElement('img')
  3728. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3729. _limg.style = "width: 26px;margin-right: 10px;"
  3730. _lchild.appendChild(_limg)
  3731. let _lspan = document.createElement('span')
  3732. _lspan.innerHTML = "上传中..."
  3733. _lchild.appendChild(_lspan)
  3734. _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%);"
  3735. _loading.appendChild(_lchild)
  3736. var _box = $$('div', {
  3737. "style": {
  3738. "position": "relative",
  3739. "width": "100%",
  3740. "height": "100%",
  3741. },
  3742. })
  3743. _box.appendChild(_loading)
  3744. _box.id = str + '_loadLi' + _userid
  3745. switch (str) {
  3746. case "whiteboard":
  3747. aTool = 1;
  3748. _iframe = $$("iframe", {
  3749. "frameborder": "no",
  3750. "border": "0",
  3751. "scrolling ": "no",
  3752. "style": {
  3753. "cssText": "border:0;width:100%;height:100%"
  3754. },
  3755. "src": "https://iwb.cocorobo.cn/"
  3756. })
  3757. _box.appendChild(_iframe);
  3758. _box.appendChild(_jie);
  3759. _formdiv = new U.UF.UI.form(
  3760. "电子白板-" + _username,
  3761. _box, {
  3762. "id": "whiteboard" + cid + stage + task + tool + _userid,
  3763. "style": {
  3764. "width": "90%",
  3765. "height": "90%",
  3766. "overflow": 'hidden'
  3767. },
  3768. "onresize": function () { }
  3769. }, {
  3770. closecallback: function () { }
  3771. }, {
  3772. "style": {
  3773. "height": "36px"
  3774. }
  3775. }).form; //创建窗体
  3776. _taskbar = {
  3777. "id": str + _formdiv.id,
  3778. "style": {
  3779. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3780. },
  3781. "name": "电子白板",
  3782. "forms": _formdiv,
  3783. "click": function () {
  3784. U.MD.D.I.openApplication(str, obj, info);
  3785. }
  3786. }
  3787. break;
  3788. case "mind":
  3789. aTool = 3;
  3790. _iframe = $$("iframe", {
  3791. "frameborder": "no",
  3792. "border": "0",
  3793. "scrolling ": "no",
  3794. "style": {
  3795. "cssText": "border:0;width:100%;height:100%"
  3796. },
  3797. "src": "/kityminder-editor/dist/index.html"
  3798. })
  3799. _box.appendChild(_iframe);
  3800. _box.appendChild(_jie);
  3801. _formdiv = new U.UF.UI.form(
  3802. "思维导图-" + _username,
  3803. _box, { //"/jsmind/example/demo.html"
  3804. "id": "mind" + cid + stage + task + tool + _userid,
  3805. "style": {
  3806. "width": "90%",
  3807. "height": "90%",
  3808. "overflow": 'hidden'
  3809. },
  3810. "onresize": function () { }
  3811. }, {
  3812. closecallback: function () { }
  3813. }, {
  3814. "style": {
  3815. "height": "36px"
  3816. }
  3817. }).form; //创建窗体
  3818. _taskbar = {
  3819. "id": str + _formdiv.id,
  3820. "style": {
  3821. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3822. },
  3823. "name": "思维导图",
  3824. "forms": _formdiv,
  3825. "click": function () {
  3826. U.MD.D.I.openApplication(str, obj, info);
  3827. }
  3828. }
  3829. break;
  3830. case "MindMap":
  3831. aTool = 3;
  3832. _iframe = $$("iframe", {
  3833. "frameborder": "no",
  3834. "border": "0",
  3835. "scrolling ": "no",
  3836. "style": {
  3837. "cssText": "border:0;width:100%;height:100%"
  3838. },
  3839. "src": "//cloud.cocorobo.cn/mind/"
  3840. })
  3841. _box.appendChild(_iframe);
  3842. _box.appendChild(_jie);
  3843. _formdiv = new U.UF.UI.form(
  3844. "思维导图-" + _username,
  3845. _box, { //"/jsmind/example/demo.html"
  3846. "id": "mind" + cid + stage + task + tool + _userid,
  3847. "style": {
  3848. "width": "90%",
  3849. "height": "90%",
  3850. "overflow": 'hidden'
  3851. },
  3852. "onresize": function () { }
  3853. }, {
  3854. closecallback: function () { }
  3855. }, {
  3856. "style": {
  3857. "height": "36px"
  3858. }
  3859. }).form; //创建窗体
  3860. _taskbar = {
  3861. "id": str + _formdiv.id,
  3862. "style": {
  3863. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3864. },
  3865. "name": "思维导图",
  3866. "forms": _formdiv,
  3867. "click": function () {
  3868. U.MD.D.I.openApplication(str, obj, info);
  3869. }
  3870. }
  3871. break;
  3872. case "doc":
  3873. aTool = 6;
  3874. _iframe = $$("iframe", {
  3875. "frameborder": "no",
  3876. "border": "0",
  3877. "scrolling ": "no",
  3878. "style": {
  3879. "cssText": "border:0;width:100%;height:100%"
  3880. },
  3881. "src": "/Office/Word/WordEditArea.htm"
  3882. })
  3883. _box.appendChild(_iframe);
  3884. _box.appendChild(_jie);
  3885. _formdiv = new U.UF.UI.form(
  3886. "协同文档-" + _username,
  3887. _box, {
  3888. "id": "doc" + cid + stage + task + tool + _userid,
  3889. "style": {
  3890. "width": "90%",
  3891. "height": "90%",
  3892. "overflow": 'hidden'
  3893. },
  3894. "onresize": function () { }
  3895. }, {
  3896. closecallback: function () { }
  3897. }, {
  3898. "style": {
  3899. "height": "36px"
  3900. }
  3901. }).form; //创建窗体
  3902. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3903. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3904. })
  3905. _taskbar = {
  3906. "id": str + _formdiv.id,
  3907. "style": {
  3908. "backgroundImage": "url(/img/icon/doc.png)"
  3909. },
  3910. "name": "协同文档",
  3911. "forms": _formdiv,
  3912. "click": function () {
  3913. U.MD.D.I.openApplication(str, obj, info);
  3914. }
  3915. }
  3916. break;
  3917. case "mindNetwork": //好友打开
  3918. aTool = 7;
  3919. _iframe = $$("iframe", {
  3920. "webkitallowfullscreen": "",
  3921. "mozallowfullscreen": "",
  3922. "allowfullscreen": "",
  3923. "frameborder": "no",
  3924. "border": "0",
  3925. "scrolling ": "no",
  3926. "style": {
  3927. "cssText": "border:0; width:100%; height:100%;"
  3928. },
  3929. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3930. })
  3931. _box.appendChild(_iframe);
  3932. _box.appendChild(_jie);
  3933. _formdiv = new U.UF.UI.form(
  3934. "思维网格-" + _username,
  3935. _box, {
  3936. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  3937. "style": {
  3938. "width": "90%",
  3939. "height": "90%",
  3940. "overflow": 'hidden'
  3941. },
  3942. "onresize": function () { }
  3943. }, {
  3944. closecallback: function () { }
  3945. }, {
  3946. "style": {
  3947. "height": "36px"
  3948. }
  3949. }).form; //创建窗体
  3950. _taskbar = {
  3951. "id": str + _formdiv.id,
  3952. "style": {
  3953. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3954. },
  3955. "name": "思维网格",
  3956. "forms": _formdiv,
  3957. "click": function () {
  3958. U.MD.D.I.openApplication(str, obj, info);
  3959. }
  3960. }
  3961. break;
  3962. case "courseDesign":
  3963. _iframe = $$("iframe", {
  3964. "webkitallowfullscreen": "",
  3965. "mozallowfullscreen": "",
  3966. "allowfullscreen": "",
  3967. "frameborder": "no",
  3968. "border": "0",
  3969. "scrolling ": "no",
  3970. "style": {
  3971. "cssText": "border:0; width:100%; height:100%;"
  3972. },
  3973. "src": "/course-design-vue"
  3974. })
  3975. _box.appendChild(_iframe);
  3976. _box.appendChild(_jie);
  3977. _formdiv = new U.UF.UI.form(
  3978. "项目设计-" + _username,
  3979. _box, {
  3980. "id": "courseDesign" + cid + stage + task + tool + _userid,
  3981. "style": {
  3982. "width": "90%",
  3983. "height": "90%",
  3984. "overflow": 'hidden'
  3985. },
  3986. "onresize": function () { }
  3987. }, {
  3988. closecallback: function () { }
  3989. }, {
  3990. "style": {
  3991. "height": "36px"
  3992. }
  3993. }).form; //创建窗体
  3994. _taskbar = {
  3995. "id": str + _formdiv.id,
  3996. "style": {
  3997. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3998. },
  3999. "name": "项目设计",
  4000. "forms": _formdiv,
  4001. "click": function () {
  4002. U.MD.D.I.openApplication(str, obj, info);
  4003. }
  4004. }
  4005. break;
  4006. }
  4007. const script1 = document.createElement("script");
  4008. script1.type = "text/javascript";
  4009. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4010. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4011. const script2 = document.createElement("script");
  4012. script2.type = "text/javascript";
  4013. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4014. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4015. const script3 = document.createElement("script");
  4016. script3.type = "text/javascript";
  4017. script3.charset = "UTF-8";
  4018. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4019. const script4 = document.createElement("script");
  4020. script4.type = "text/javascript";
  4021. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4022. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4023. if (_iframe) {
  4024. if (str == 'doc') {
  4025. _iframe = _formdiv.querySelector('iframe')
  4026. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4027. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4028. _iframe.contentWindow.document.body.appendChild(script1);
  4029. _iframe.contentWindow.document.body.appendChild(script2);
  4030. // _iframe.contentWindow.document.body.appendChild(script3);
  4031. _iframe.contentWindow.document.body.appendChild(script4);
  4032. })
  4033. if (onloadListener) {
  4034. _iframe.contentDocument.location.reload()
  4035. } else {
  4036. _iframe.contentDocument.location.reload()
  4037. }
  4038. } else if (str == 'courseDesign') {
  4039. U.UF.DL.iframeLoad(_iframe, function () {
  4040. // _iframe.contentWindow.U.MD.O.W.load();
  4041. // _iframe.contentWindow.document.body.appendChild(script1);
  4042. _iframe.contentWindow.document.body.appendChild(script2);
  4043. _iframe.contentWindow.document.body.appendChild(script4);
  4044. })
  4045. } else if (str == 'mind') {
  4046. _iframe = _formdiv.querySelector('iframe')
  4047. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4048. //
  4049. _iframe.contentWindow.document.body.appendChild(script1);
  4050. _iframe.contentWindow.document.body.appendChild(script2);
  4051. _iframe.contentWindow.document.body.appendChild(script4);
  4052. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4053. })
  4054. if (onloadListener) {
  4055. _iframe.contentDocument.location.reload()
  4056. } else {
  4057. _iframe.contentDocument.location.reload()
  4058. }
  4059. } else if (str == 'whiteboard') {
  4060. _iframe = _formdiv.querySelector('iframe')
  4061. let onloadListener = _iframe.onload = () => {
  4062. _iframe.contentWindow.document.body.appendChild(script1);
  4063. _iframe.contentWindow.document.body.appendChild(script2);
  4064. _iframe.contentWindow.document.body.appendChild(script4);
  4065. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4066. };
  4067. if (onloadListener) {
  4068. _iframe.contentDocument.location.reload()
  4069. } else {
  4070. _iframe.contentDocument.location.reload()
  4071. }
  4072. } else {
  4073. _iframe.onload = () => {
  4074. _iframe.contentWindow.document.body.appendChild(script1);
  4075. _iframe.contentWindow.document.body.appendChild(script2);
  4076. // _iframe.contentWindow.document.body.appendChild(script3);
  4077. _iframe.contentWindow.document.body.appendChild(script4);
  4078. };
  4079. }
  4080. _jie.onclick = async () => {
  4081. let text = ''
  4082. if (aTool == 1) {
  4083. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4084. } else if (aTool == 6) {
  4085. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4086. } else if (aTool == 3) {
  4087. text = await U.MD.D.I.getEditorContent(_iframe);
  4088. }
  4089. _loading.style.display = 'flex'
  4090. console.log(_loading);
  4091. var _ajs = _iframe.contentWindow.document.createElement("script");
  4092. _ajs.type = "text/javascript";
  4093. _ajs.innerHTML =
  4094. // 'console.log(' + _loading + ');\n' +
  4095. 'var _js = document.createElement("script");\n' +
  4096. '_js.type="text/javascript";\n' +
  4097. '_js.charset="UTF-8";\n' +
  4098. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4099. "_js.onload = function(){\n" +
  4100. ' var a = document.getElementsByTagName("img")\n' +
  4101. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4102. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4103. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4104. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4105. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4106. "beforeUpload_shishi(file," +
  4107. "'" +
  4108. _userid +
  4109. "'" +
  4110. ", " +
  4111. "'" +
  4112. _cid +
  4113. "'" +
  4114. ", " +
  4115. "'" +
  4116. _stage +
  4117. "'" +
  4118. ", " +
  4119. "'" +
  4120. _task +
  4121. "'" +
  4122. ", " +
  4123. "'" +
  4124. _tool +
  4125. "'" +
  4126. ", " +
  4127. "'" +
  4128. str + '_loadLi' + _userid +
  4129. "'" +
  4130. ", " +
  4131. "'" +
  4132. aTool +
  4133. "'" +
  4134. ", " +
  4135. "`" +
  4136. text +
  4137. "`" +
  4138. ")\n" +
  4139. " });\n" +
  4140. "}\n" +
  4141. "document.head.appendChild(_js);\n";
  4142. _iframe.contentWindow.document.head.appendChild(_ajs);
  4143. }
  4144. }
  4145. }
  4146. U.MD.D.I.getEditorContent = function (iframe) {
  4147. return new Promise((resolve, reject) => {
  4148. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  4149. console.log(content);
  4150. resolve(content)
  4151. });
  4152. });
  4153. }
  4154. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  4155. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  4156. // if (res.value[0].length > 0) {
  4157. // // resolve(res.value[0][0].text);
  4158. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  4159. // $(fileInput).val('');
  4160. // });
  4161. // }
  4162. // }, [], { "type": "GET", "withCredentials": true });
  4163. var xmlhttp;
  4164. var Mac, Sn, DeviceId
  4165. if (window.XMLHttpRequest) {
  4166. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  4167. xmlhttp = new XMLHttpRequest();
  4168. }
  4169. else {
  4170. // IE6, IE5 浏览器执行代码
  4171. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  4172. }
  4173. xmlhttp.onreadystatechange = function () {
  4174. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  4175. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  4176. // resolve(res.value[0][0].text);
  4177. if (type == '2') {
  4178. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  4179. $(fileInput).val('');
  4180. });
  4181. } else if (type == '3') {
  4182. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  4183. }
  4184. } else {
  4185. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  4186. }
  4187. }
  4188. }
  4189. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  4190. xmlhttp.send();
  4191. }
  4192. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  4193. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4194. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4195. _userinfo = US.userInfo, //登录用户信息
  4196. _userid = US.userInfo.userid //登录用户id
  4197. let _iframe;
  4198. let _cid = cid,
  4199. _stage = stage,
  4200. _task = task,
  4201. _tool = tool;
  4202. var _jie = $$("div", {
  4203. "style": {
  4204. "position": "absolute",
  4205. "bottom": "50px",
  4206. "right": "50px",
  4207. "zIndex": "9999",
  4208. "backgroundColor": "#2268bc",
  4209. "color": "#fff",
  4210. "padding": "12px 20px",
  4211. "cursor": "pointer",
  4212. "borderRadius": "4px",
  4213. },
  4214. "innerHTML": "确认并提交"
  4215. })
  4216. let aTool = ''
  4217. let _loading = document.createElement('div')
  4218. _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;"
  4219. // _loading.id = "";
  4220. let _lchild = document.createElement('div')
  4221. let _limg = document.createElement('img')
  4222. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4223. _limg.style = "width: 26px;margin-right: 10px;"
  4224. _lchild.appendChild(_limg)
  4225. let _lspan = document.createElement('span')
  4226. _lspan.innerHTML = "上传中..."
  4227. _lchild.appendChild(_lspan)
  4228. _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%);"
  4229. _loading.appendChild(_lchild)
  4230. var _box = $$('div', {
  4231. "style": {
  4232. "position": "relative",
  4233. "width": "100%",
  4234. "height": "100%",
  4235. },
  4236. })
  4237. _box.appendChild(_loading)
  4238. _box.id = str + '_loadLi'
  4239. switch (str) {
  4240. case "whiteboard":
  4241. aTool = 1;
  4242. _iframe = $$("iframe", {
  4243. "frameborder": "no",
  4244. "border": "0",
  4245. "scrolling ": "no",
  4246. "style": {
  4247. "cssText": "border:0;width:100%;height:100%"
  4248. },
  4249. "src": "https://iwb.cocorobo.cn/"
  4250. })
  4251. _box.appendChild(_iframe);
  4252. _box.appendChild(_jie);
  4253. _formdiv = new U.UF.UI.form(
  4254. "电子白板",
  4255. _box, {
  4256. "id": "whiteboards" + cid + stage + task + tool,
  4257. "style": {
  4258. "width": "90%",
  4259. "height": "90%",
  4260. "overflow": 'hidden'
  4261. },
  4262. "onresize": function () { }
  4263. }, {
  4264. closecallback: function () { }
  4265. }, {
  4266. "style": {
  4267. "height": "36px"
  4268. }
  4269. }).form; //创建窗体
  4270. _taskbar = {
  4271. "id": str + _formdiv.id,
  4272. "style": {
  4273. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4274. },
  4275. "name": "电子白板",
  4276. "forms": _formdiv,
  4277. "click": function () {
  4278. U.MD.D.I.openApplication(str, obj, info);
  4279. }
  4280. }
  4281. break;
  4282. case "mind":
  4283. aTool = 3;
  4284. _iframe = $$("iframe", {
  4285. "frameborder": "no",
  4286. "border": "0",
  4287. "scrolling ": "no",
  4288. "style": {
  4289. "cssText": "border:0;width:100%;height:100%"
  4290. },
  4291. "src": "/kityminder-editor/dist/index.html"
  4292. });
  4293. _box.appendChild(_iframe);
  4294. _box.appendChild(_jie);
  4295. _formdiv = new U.UF.UI.form(
  4296. "思维导图",
  4297. _box, { //"/jsmind/example/demo.html"
  4298. "id": "minds" + cid + stage + task + tool,
  4299. "style": {
  4300. "width": "90%",
  4301. "height": "90%",
  4302. "overflow": 'hidden'
  4303. },
  4304. "onresize": function () { }
  4305. }, {
  4306. closecallback: function () { }
  4307. }, {
  4308. "style": {
  4309. "height": "36px"
  4310. }
  4311. }).form; //创建窗体
  4312. _taskbar = {
  4313. "id": str + _formdiv.id,
  4314. "style": {
  4315. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4316. },
  4317. "name": "思维导图",
  4318. "forms": _formdiv,
  4319. "click": function () {
  4320. U.MD.D.I.openApplication(str, obj, info);
  4321. }
  4322. }
  4323. break;
  4324. case "doc":
  4325. aTool = 6;
  4326. _iframe = $$("iframe", {
  4327. "frameborder": "no",
  4328. "border": "0",
  4329. "scrolling ": "no",
  4330. "style": {
  4331. "cssText": "border:0;width:100%;height:100%"
  4332. },
  4333. "src": "/Office/Word/WordEditArea.htm"
  4334. })
  4335. _box.appendChild(_iframe);
  4336. _box.appendChild(_jie);
  4337. _formdiv = new U.UF.UI.form(
  4338. "协同文档",
  4339. _box, {
  4340. "id": "docs" + cid + stage + task + tool,
  4341. "style": {
  4342. "width": "90%",
  4343. "height": "90%",
  4344. "overflow": 'hidden'
  4345. },
  4346. "onresize": function () { }
  4347. }, {
  4348. closecallback: function () { }
  4349. }, {
  4350. "style": {
  4351. "height": "36px"
  4352. }
  4353. }).form; //创建窗体
  4354. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4355. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4356. })
  4357. _taskbar = {
  4358. "id": str + _formdiv.id,
  4359. "style": {
  4360. "backgroundImage": "url(/img/icon/doc.png)"
  4361. },
  4362. "name": "协同文档",
  4363. "forms": _formdiv,
  4364. "click": function () {
  4365. U.MD.D.I.openApplication(str, obj, info);
  4366. }
  4367. }
  4368. break;
  4369. }
  4370. const script1 = document.createElement("script");
  4371. script1.type = "text/javascript";
  4372. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4373. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4374. const script2 = document.createElement("script");
  4375. script2.type = "text/javascript";
  4376. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4377. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4378. const script3 = document.createElement("script");
  4379. script3.type = "text/javascript";
  4380. script3.charset = "UTF-8";
  4381. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4382. const script4 = document.createElement("script");
  4383. script4.type = "text/javascript";
  4384. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  4385. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  4386. if (_iframe) {
  4387. if (str == 'doc') {
  4388. _iframe = _formdiv.querySelector('iframe')
  4389. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4390. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4391. _iframe.contentWindow.document.body.appendChild(script1);
  4392. _iframe.contentWindow.document.body.appendChild(script2);
  4393. // _iframe.contentWindow.document.body.appendChild(script3);
  4394. _iframe.contentWindow.document.body.appendChild(script4);
  4395. })
  4396. if (onloadListener) {
  4397. _iframe.contentDocument.location.reload()
  4398. } else {
  4399. _iframe.contentDocument.location.reload()
  4400. }
  4401. } else if (str == 'mind') {
  4402. _iframe = _formdiv.querySelector('iframe')
  4403. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4404. _iframe.contentWindow.document.body.appendChild(script1);
  4405. _iframe.contentWindow.document.body.appendChild(script2);
  4406. _iframe.contentWindow.document.body.appendChild(script4);
  4407. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  4408. })
  4409. if (onloadListener) {
  4410. _iframe.contentDocument.location.reload()
  4411. } else {
  4412. _iframe.contentDocument.location.reload()
  4413. }
  4414. } else {
  4415. _iframe.onload = () => {
  4416. _iframe.contentWindow.document.body.appendChild(script1);
  4417. _iframe.contentWindow.document.body.appendChild(script2);
  4418. // _iframe.contentWindow.document.body.appendChild(script3);
  4419. _iframe.contentWindow.document.body.appendChild(script4);
  4420. };
  4421. }
  4422. _jie.onclick = async () => {
  4423. let text = ''
  4424. if (aTool == 6) {
  4425. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4426. } else if (aTool == 3) {
  4427. text = await U.MD.D.I.getEditorContent(_iframe);
  4428. }
  4429. _loading.style.display = 'flex'
  4430. console.log(_loading);
  4431. var _ajs = _iframe.contentWindow.document.createElement("script");
  4432. _ajs.type = "text/javascript";
  4433. _ajs.innerHTML =
  4434. // 'console.log(' + _loading + ');\n' +
  4435. 'var _js = document.createElement("script");\n' +
  4436. '_js.type="text/javascript";\n' +
  4437. '_js.charset="UTF-8";\n' +
  4438. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4439. "_js.onload = function(){\n" +
  4440. ' var a = document.getElementsByTagName("img")\n' +
  4441. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4442. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4443. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4444. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4445. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4446. "beforeUpload_shishi(file," +
  4447. "'" +
  4448. _userid +
  4449. "'" +
  4450. ", " +
  4451. "'" +
  4452. _cid +
  4453. "'" +
  4454. ", " +
  4455. "'" +
  4456. _stage +
  4457. "'" +
  4458. ", " +
  4459. "'" +
  4460. _task +
  4461. "'" +
  4462. ", " +
  4463. "'" +
  4464. _tool +
  4465. "'" +
  4466. ", " +
  4467. "'" +
  4468. str + '_loadLi' +
  4469. "'" +
  4470. ", " +
  4471. "'" +
  4472. aTool +
  4473. "'" +
  4474. ", " +
  4475. "`" +
  4476. text +
  4477. "`" +
  4478. ")\n" +
  4479. " });\n" +
  4480. "}\n" +
  4481. "document.head.appendChild(_js);\n";
  4482. _iframe.contentWindow.document.head.appendChild(_ajs);
  4483. }
  4484. }
  4485. //U.MD.D.I.openClick(str);
  4486. //如果有任务栏信息
  4487. // if (_taskbar) {
  4488. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4489. // }
  4490. }
  4491. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  4492. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4493. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4494. _userinfo = US.userInfo, //登录用户信息
  4495. _userid = US.userInfo.userid //登录用户id
  4496. let _iframe;
  4497. let _cid = cid,
  4498. _stage = stage,
  4499. _task = task,
  4500. _tool = tool;
  4501. var _jie = $$("div", {
  4502. "style": {
  4503. "position": "absolute",
  4504. "bottom": "50px",
  4505. "right": "50px",
  4506. "zIndex": "9999",
  4507. "backgroundColor": "#2268bc",
  4508. "color": "#fff",
  4509. "padding": "12px 20px",
  4510. "cursor": "pointer",
  4511. "borderRadius": "4px",
  4512. },
  4513. "innerHTML": "确认并提交"
  4514. })
  4515. let aTool = ''
  4516. let _loading = document.createElement('div')
  4517. _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;"
  4518. // _loading.id = "";
  4519. let _lchild = document.createElement('div')
  4520. let _limg = document.createElement('img')
  4521. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4522. _limg.style = "width: 26px;margin-right: 10px;"
  4523. _lchild.appendChild(_limg)
  4524. let _lspan = document.createElement('span')
  4525. _lspan.innerHTML = "上传中..."
  4526. _lchild.appendChild(_lspan)
  4527. _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%);"
  4528. _loading.appendChild(_lchild)
  4529. var _box = $$('div', {
  4530. "style": {
  4531. "position": "relative",
  4532. "width": "100%",
  4533. "height": "100%",
  4534. },
  4535. })
  4536. _box.appendChild(_loading)
  4537. _box.id = str + '_loadLi'
  4538. switch (str) {
  4539. case "whiteboard":
  4540. aTool = 1;
  4541. _iframe = $$("iframe", {
  4542. "frameborder": "no",
  4543. "border": "0",
  4544. "scrolling ": "no",
  4545. "style": {
  4546. "cssText": "border:0;width:100%;height:100%"
  4547. },
  4548. "src": "https://iwb.cocorobo.cn/"
  4549. })
  4550. _box.appendChild(_iframe);
  4551. _box.appendChild(_jie);
  4552. _formdiv = new U.UF.UI.form(
  4553. "电子白板",
  4554. _box, {
  4555. "id": "whiteboards" + cid + stage + task + tool,
  4556. "style": {
  4557. "width": "90%",
  4558. "height": "90%",
  4559. "overflow": 'hidden'
  4560. },
  4561. "onresize": function () { }
  4562. }, {
  4563. closecallback: function () { }
  4564. }, {
  4565. "style": {
  4566. "height": "36px"
  4567. }
  4568. }).form; //创建窗体
  4569. _taskbar = {
  4570. "id": str + _formdiv.id,
  4571. "style": {
  4572. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4573. },
  4574. "name": "电子白板",
  4575. "forms": _formdiv,
  4576. "click": function () {
  4577. U.MD.D.I.openApplication(str, obj, info);
  4578. }
  4579. }
  4580. break;
  4581. case "mind":
  4582. aTool = 3;
  4583. _iframe = $$("iframe", {
  4584. "frameborder": "no",
  4585. "border": "0",
  4586. "scrolling ": "no",
  4587. "style": {
  4588. "cssText": "border:0;width:100%;height:100%"
  4589. },
  4590. "src": "/kityminder-editor/dist/index.html"
  4591. });
  4592. _box.appendChild(_iframe);
  4593. _box.appendChild(_jie);
  4594. _formdiv = new U.UF.UI.form(
  4595. "思维导图",
  4596. _box, { //"/jsmind/example/demo.html"
  4597. "id": "minds" + cid + stage + task + tool,
  4598. "style": {
  4599. "width": "90%",
  4600. "height": "90%",
  4601. "overflow": 'hidden'
  4602. },
  4603. "onresize": function () { }
  4604. }, {
  4605. closecallback: function () { }
  4606. }, {
  4607. "style": {
  4608. "height": "36px"
  4609. }
  4610. }).form; //创建窗体
  4611. _taskbar = {
  4612. "id": str + _formdiv.id,
  4613. "style": {
  4614. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4615. },
  4616. "name": "思维导图",
  4617. "forms": _formdiv,
  4618. "click": function () {
  4619. U.MD.D.I.openApplication(str, obj, info);
  4620. }
  4621. }
  4622. break;
  4623. case "doc":
  4624. aTool = 6;
  4625. _iframe = $$("iframe", {
  4626. "frameborder": "no",
  4627. "border": "0",
  4628. "scrolling ": "no",
  4629. "style": {
  4630. "cssText": "border:0;width:100%;height:100%"
  4631. },
  4632. "src": "/Office/Word/WordEditArea.htm"
  4633. })
  4634. _box.appendChild(_iframe);
  4635. _box.appendChild(_jie);
  4636. _formdiv = new U.UF.UI.form(
  4637. "协同文档",
  4638. _box, {
  4639. "id": "docs" + cid + stage + task + tool,
  4640. "style": {
  4641. "width": "90%",
  4642. "height": "90%",
  4643. "overflow": 'hidden'
  4644. },
  4645. "onresize": function () { }
  4646. }, {
  4647. closecallback: function () { }
  4648. }, {
  4649. "style": {
  4650. "height": "36px"
  4651. }
  4652. }).form; //创建窗体
  4653. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4654. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4655. })
  4656. _taskbar = {
  4657. "id": str + _formdiv.id,
  4658. "style": {
  4659. "backgroundImage": "url(/img/icon/doc.png)"
  4660. },
  4661. "name": "协同文档",
  4662. "forms": _formdiv,
  4663. "click": function () {
  4664. U.MD.D.I.openApplication(str, obj, info);
  4665. }
  4666. }
  4667. break;
  4668. }
  4669. const script1 = document.createElement("script");
  4670. script1.type = "text/javascript";
  4671. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4672. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4673. const script2 = document.createElement("script");
  4674. script2.type = "text/javascript";
  4675. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4676. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4677. const script3 = document.createElement("script");
  4678. script3.type = "text/javascript";
  4679. script3.charset = "UTF-8";
  4680. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4681. const script4 = document.createElement("script");
  4682. script4.type = "text/javascript";
  4683. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  4684. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  4685. if (_iframe) {
  4686. if (str == 'doc') {
  4687. _iframe = _formdiv.querySelector('iframe')
  4688. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4689. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4690. _iframe.contentWindow.document.body.appendChild(script1);
  4691. _iframe.contentWindow.document.body.appendChild(script2);
  4692. // _iframe.contentWindow.document.body.appendChild(script3);
  4693. _iframe.contentWindow.document.body.appendChild(script4);
  4694. })
  4695. if (onloadListener) {
  4696. _iframe.contentDocument.location.reload()
  4697. } else {
  4698. _iframe.contentDocument.location.reload()
  4699. }
  4700. } else if (str == 'mind') {
  4701. _iframe = _formdiv.querySelector('iframe')
  4702. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4703. _iframe.contentWindow.document.body.appendChild(script1);
  4704. _iframe.contentWindow.document.body.appendChild(script2);
  4705. _iframe.contentWindow.document.body.appendChild(script4);
  4706. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  4707. })
  4708. if (onloadListener) {
  4709. _iframe.contentDocument.location.reload()
  4710. } else {
  4711. _iframe.contentDocument.location.reload()
  4712. }
  4713. } else {
  4714. _iframe.onload = () => {
  4715. _iframe.contentWindow.document.body.appendChild(script1);
  4716. _iframe.contentWindow.document.body.appendChild(script2);
  4717. // _iframe.contentWindow.document.body.appendChild(script3);
  4718. _iframe.contentWindow.document.body.appendChild(script4);
  4719. };
  4720. }
  4721. _jie.onclick = async () => {
  4722. let text = ''
  4723. if (aTool == 6) {
  4724. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4725. } else if (aTool == 3) {
  4726. text = await U.MD.D.I.getEditorContent(_iframe);
  4727. }
  4728. _loading.style.display = 'flex'
  4729. console.log(_loading);
  4730. var _ajs = _iframe.contentWindow.document.createElement("script");
  4731. _ajs.type = "text/javascript";
  4732. _ajs.innerHTML =
  4733. // 'console.log(' + _loading + ');\n' +
  4734. 'var _js = document.createElement("script");\n' +
  4735. '_js.type="text/javascript";\n' +
  4736. '_js.charset="UTF-8";\n' +
  4737. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4738. "_js.onload = function(){\n" +
  4739. ' var a = document.getElementsByTagName("img")\n' +
  4740. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4741. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4742. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4743. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4744. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4745. "beforeUpload_shishi(file," +
  4746. "'" +
  4747. _userid +
  4748. "'" +
  4749. ", " +
  4750. "'" +
  4751. _cid +
  4752. "'" +
  4753. ", " +
  4754. "'" +
  4755. _stage +
  4756. "'" +
  4757. ", " +
  4758. "'" +
  4759. _task +
  4760. "'" +
  4761. ", " +
  4762. "'" +
  4763. _tool +
  4764. "'" +
  4765. ", " +
  4766. "'" +
  4767. str + '_loadLi' +
  4768. "'" +
  4769. ", " +
  4770. "'" +
  4771. aTool +
  4772. "'" +
  4773. ", " +
  4774. "`" +
  4775. text +
  4776. "`" +
  4777. ")\n" +
  4778. " });\n" +
  4779. "}\n" +
  4780. "document.head.appendChild(_js);\n";
  4781. _iframe.contentWindow.document.head.appendChild(_ajs);
  4782. }
  4783. }
  4784. //U.MD.D.I.openClick(str);
  4785. //如果有任务栏信息
  4786. // if (_taskbar) {
  4787. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4788. // }
  4789. }
  4790. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  4791. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4792. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4793. _userinfo = US.userInfo, //登录用户信息
  4794. _userid = US.userInfo.userid //登录用户id
  4795. let _iframe;
  4796. let _cid = cid,
  4797. _stage = stage,
  4798. _task = task,
  4799. _tool = tool;
  4800. var _jie = $$("div", {
  4801. "style": {
  4802. "position": "absolute",
  4803. "bottom": "50px",
  4804. "right": "50px",
  4805. "zIndex": "9999",
  4806. "backgroundColor": "#2268bc",
  4807. "color": "#fff",
  4808. "padding": "12px 20px",
  4809. "cursor": "pointer",
  4810. "borderRadius": "4px",
  4811. },
  4812. "innerHTML": "上传模板"
  4813. })
  4814. let aTool = ''
  4815. let _loading = document.createElement('div')
  4816. _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;"
  4817. // _loading.id = "";
  4818. let _lchild = document.createElement('div')
  4819. let _limg = document.createElement('img')
  4820. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4821. _limg.style = "width: 26px;margin-right: 10px;"
  4822. _lchild.appendChild(_limg)
  4823. let _lspan = document.createElement('span')
  4824. _lspan.innerHTML = "上传中..."
  4825. _lchild.appendChild(_lspan)
  4826. _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%);"
  4827. _loading.appendChild(_lchild)
  4828. var _box = $$('div', {
  4829. "style": {
  4830. "position": "relative",
  4831. "width": "100%",
  4832. "height": "100%",
  4833. },
  4834. })
  4835. _box.appendChild(_loading)
  4836. _box.id = str + '_loadLi'
  4837. switch (str) {
  4838. case "whiteboard":
  4839. aTool = 1;
  4840. _iframe = $$("iframe", {
  4841. "frameborder": "no",
  4842. "border": "0",
  4843. "scrolling ": "no",
  4844. "style": {
  4845. "cssText": "border:0;width:100%;height:100%"
  4846. },
  4847. "src": "https://iwb.cocorobo.cn/"
  4848. })
  4849. _box.appendChild(_iframe);
  4850. _box.appendChild(_jie);
  4851. _formdiv = new U.UF.UI.form(
  4852. "电子白板",
  4853. _box, {
  4854. "id": "whiteboards" + cid + stage + task + tool,
  4855. "style": {
  4856. "width": "90%",
  4857. "height": "90%",
  4858. "overflow": 'hidden'
  4859. },
  4860. "onresize": function () { }
  4861. }, {
  4862. closecallback: function () { }
  4863. }, {
  4864. "style": {
  4865. "height": "36px"
  4866. }
  4867. }).form; //创建窗体
  4868. _taskbar = {
  4869. "id": str + _formdiv.id,
  4870. "style": {
  4871. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4872. },
  4873. "name": "电子白板",
  4874. "forms": _formdiv,
  4875. "click": function () {
  4876. U.MD.D.I.openApplication(str, obj, info);
  4877. }
  4878. }
  4879. break;
  4880. case "mind":
  4881. aTool = 3;
  4882. _iframe = $$("iframe", {
  4883. "frameborder": "no",
  4884. "border": "0",
  4885. "scrolling ": "no",
  4886. "style": {
  4887. "cssText": "border:0;width:100%;height:100%"
  4888. },
  4889. "src": "/kityminder-editor/dist/index.html"
  4890. });
  4891. _box.appendChild(_iframe);
  4892. _box.appendChild(_jie);
  4893. _formdiv = new U.UF.UI.form(
  4894. "思维导图",
  4895. _box, { //"/jsmind/example/demo.html"
  4896. "id": "minds" + cid + stage + task + tool,
  4897. "style": {
  4898. "width": "90%",
  4899. "height": "90%",
  4900. "overflow": 'hidden'
  4901. },
  4902. "onresize": function () { }
  4903. }, {
  4904. closecallback: function () { }
  4905. }, {
  4906. "style": {
  4907. "height": "36px"
  4908. }
  4909. }).form; //创建窗体
  4910. _taskbar = {
  4911. "id": str + _formdiv.id,
  4912. "style": {
  4913. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4914. },
  4915. "name": "思维导图",
  4916. "forms": _formdiv,
  4917. "click": function () {
  4918. U.MD.D.I.openApplication(str, obj, info);
  4919. }
  4920. }
  4921. break;
  4922. case "doc":
  4923. aTool = 6;
  4924. _iframe = $$("iframe", {
  4925. "frameborder": "no",
  4926. "border": "0",
  4927. "scrolling ": "no",
  4928. "style": {
  4929. "cssText": "border:0;width:100%;height:100%"
  4930. },
  4931. "src": "/Office/Word/WordEditArea.htm"
  4932. })
  4933. _box.appendChild(_iframe);
  4934. _box.appendChild(_jie);
  4935. _formdiv = new U.UF.UI.form(
  4936. "协同文档",
  4937. _box, {
  4938. "id": "docs" + cid + stage + task + tool,
  4939. "style": {
  4940. "width": "90%",
  4941. "height": "90%",
  4942. "overflow": 'hidden'
  4943. },
  4944. "onresize": function () { }
  4945. }, {
  4946. closecallback: function () { }
  4947. }, {
  4948. "style": {
  4949. "height": "36px"
  4950. }
  4951. }).form; //创建窗体
  4952. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4953. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4954. })
  4955. _taskbar = {
  4956. "id": str + _formdiv.id,
  4957. "style": {
  4958. "backgroundImage": "url(/img/icon/doc.png)"
  4959. },
  4960. "name": "协同文档",
  4961. "forms": _formdiv,
  4962. "click": function () {
  4963. U.MD.D.I.openApplication(str, obj, info);
  4964. }
  4965. }
  4966. break;
  4967. }
  4968. if (_iframe) {
  4969. if (str == 'doc') {
  4970. _iframe = _formdiv.querySelector('iframe')
  4971. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4972. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4973. })
  4974. if (onloadListener) {
  4975. _iframe.contentDocument.location.reload()
  4976. } else {
  4977. _iframe.contentDocument.location.reload()
  4978. }
  4979. } else if (str == 'mind') {
  4980. _iframe = _formdiv.querySelector('iframe')
  4981. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4982. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  4983. })
  4984. if (onloadListener) {
  4985. _iframe.contentDocument.location.reload()
  4986. } else {
  4987. _iframe.contentDocument.location.reload()
  4988. }
  4989. } else if (str == 'whiteboard') {
  4990. _iframe = _formdiv.querySelector('iframe')
  4991. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4992. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  4993. })
  4994. if (onloadListener) {
  4995. _iframe.contentDocument.location.reload()
  4996. } else {
  4997. _iframe.contentDocument.location.reload()
  4998. }
  4999. } else {
  5000. _iframe.onload = () => {
  5001. };
  5002. }
  5003. _jie.onclick = async () => {
  5004. let text = ''
  5005. let type = '2'
  5006. if (aTool == 1) {
  5007. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5008. type = '3'
  5009. } else if (aTool == 6) {
  5010. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5011. type = '1'
  5012. } else if (aTool == 3) {
  5013. text = await U.MD.D.I.getEditorContent(_iframe);
  5014. type = '2'
  5015. }
  5016. _loading.style.display = 'flex'
  5017. U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading, _lspan)
  5018. }
  5019. }
  5020. //U.MD.D.I.openClick(str);
  5021. //如果有任务栏信息
  5022. // if (_taskbar) {
  5023. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5024. // }
  5025. }
  5026. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  5027. var xmlhttp;
  5028. var Mac, Sn, DeviceId
  5029. if (window.XMLHttpRequest) {
  5030. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5031. xmlhttp = new XMLHttpRequest();
  5032. }
  5033. else {
  5034. // IE6, IE5 浏览器执行代码
  5035. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5036. }
  5037. xmlhttp.onreadystatechange = function () {
  5038. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5039. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5040. // resolve(res.value[0][0].text);
  5041. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5042. $(fileInput).val('');
  5043. });
  5044. }
  5045. }
  5046. }
  5047. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5048. xmlhttp.send();
  5049. }
  5050. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  5051. var xmlhttp;
  5052. var Mac, Sn, DeviceId
  5053. if (window.XMLHttpRequest) {
  5054. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5055. xmlhttp = new XMLHttpRequest();
  5056. }
  5057. else {
  5058. // IE6, IE5 浏览器执行代码
  5059. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5060. }
  5061. xmlhttp.onreadystatechange = function () {
  5062. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5063. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5064. // resolve(res.value[0][0].text);
  5065. if (type == '2') {
  5066. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5067. $(fileInput).val('');
  5068. });
  5069. } else if (type == '3') {
  5070. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5071. }
  5072. } else {
  5073. iframe.contentWindow.h.app.updateScene({ elements: [] })
  5074. }
  5075. }
  5076. }
  5077. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5078. xmlhttp.send();
  5079. }
  5080. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  5081. var xmlhttp;
  5082. var Mac, Sn, DeviceId
  5083. if (window.XMLHttpRequest) {
  5084. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5085. xmlhttp = new XMLHttpRequest();
  5086. }
  5087. else {
  5088. // IE6, IE5 浏览器执行代码
  5089. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5090. }
  5091. xmlhttp.onreadystatechange = function () {
  5092. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5093. if (xmlhttp.response) {
  5094. // resolve(res.value[0][0].text);
  5095. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5096. // $(fileInput).val('');
  5097. // });
  5098. span.innerHTML = '上传成功'
  5099. setTimeout(() => {
  5100. loading.style.display = 'none'
  5101. }, 1000);
  5102. }
  5103. }
  5104. }
  5105. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  5106. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  5107. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  5108. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  5109. // 设置请求头,表示请求体的编码格式
  5110. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
  5111. // 设置请求体,使用url-encoded格式的数据
  5112. }