DeskTop.js 297 KB

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