DeskTop.js 301 KB

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