DeskTop.js 269 KB

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