DeskTop.js 270 KB

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