DeskTop.js 275 KB

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