DeskTop.js 304 KB

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