DeskTop.js 304 KB

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