DeskTop.js 250 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233
  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 == "3s") { //课程管理传入
  1137. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1138. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1139. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1140. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1141. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1142. //3是展示全部阶段 2学生 1老师 4专家
  1143. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1144. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1145. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1146. U.MD.D.I.selectUser();
  1147. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1148. var _formel = document.getElementById("study");
  1149. U.UF.F.windowZooming(_formel);
  1150. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1151. var _formel = document.getElementById("studyDetail");
  1152. U.UF.F.windowZooming(_formel);
  1153. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1154. var _formel = document.getElementById("studyDetail");
  1155. U.UF.F.windowZooming(_formel);
  1156. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1157. var _formel = document.getElementById("studentStudy");
  1158. U.UF.F.windowZooming(_formel);
  1159. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1160. // var _formel = document.getElementById("study");
  1161. //如果最大化了,那么就把他缩小
  1162. // if (_formel.ismaximize) {
  1163. // return;
  1164. // }
  1165. // U.UF.F.windowZooming(_formel);
  1166. // U.UF.F.topWindow(_formel);
  1167. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1168. // var _formel = document.getElementById("studyDetail");
  1169. //如果最大化了,那么就把他缩小
  1170. // if (_formel.ismaximize) {
  1171. // return;
  1172. // }
  1173. // U.UF.F.windowZooming(_formel);
  1174. // U.UF.F.topWindow(_formel);
  1175. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1176. // var _formel = document.getElementById("studentStudy");
  1177. // if (_formel.ismaximize) {
  1178. // return;
  1179. // }
  1180. // U.UF.F.windowZooming(_formel);
  1181. // U.UF.F.topWindow(_formel);
  1182. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1183. var _formel = document.getElementById("study");
  1184. // if (_formel.ismaximize) {
  1185. // return;
  1186. // }
  1187. // U.UF.F.windowZooming(_formel);
  1188. U.UF.F.topWindow(_formel);
  1189. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1190. var _formel = document.getElementById("studentIndex");
  1191. U.UF.F.windowZooming(_formel);
  1192. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1193. var _formel = document.getElementById("studyDetailS");
  1194. U.UF.F.windowZooming(_formel);
  1195. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1196. var _formel = document.getElementById("studyDetailS");
  1197. U.UF.F.windowZooming(_formel);
  1198. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1199. var _formel = document.getElementById("studyDetailS");
  1200. U.UF.F.topWindow(_formel);
  1201. } else if (e.data.tools && e.data.tools == "1") {
  1202. // U.MD.D.I.openApplication("whiteboard")
  1203. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1204. } else if (e.data.tools && e.data.tools == "2") {
  1205. U.MD.D.I.openApplication("note")
  1206. } else if (e.data.tools && e.data.tools == "3") {
  1207. // U.MD.D.I.openApplication("mind")
  1208. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1209. } else if (e.data.tools && e.data.tools == "4") {
  1210. U.MD.D.I.openApplication("investigation")
  1211. } else if (e.data.tools && e.data.tools == "6") {
  1212. // U.MD.D.I.openApplication("doc")
  1213. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1214. } else if (e.data.tools && e.data.tools == "7") {
  1215. // U.MD.D.I.openApplication("mindNetwork")
  1216. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1217. } else if (e.data.tools && e.data.tools == "8") {
  1218. U.MD.D.I.openApplication("library")
  1219. } else if (e.data.tools && e.data.tools == "17") {
  1220. U.MD.D.I.openApplication("stuLibrary")
  1221. } else if (e.data.tools && e.data.tools == "18") {
  1222. U.MD.D.I.openApplication("train")
  1223. } else if (e.data.tools && e.data.tools == "21") {
  1224. U.MD.D.I.openApplication("program")
  1225. } else if (e.data.tools && e.data.tools == "22") {
  1226. U.MD.D.I.openApplication("AIprogram2")
  1227. } else if (e.data.tools && e.data.tools == "23") {
  1228. U.MD.D.I.openApplication("Pythonprogram")
  1229. } else if (e.data.tools && e.data.tools == "24") {
  1230. U.MD.D.I.openApplication("AIprogram")
  1231. } else if (e.data.tools && e.data.tools == "25") {
  1232. U.MD.D.I.openApplication("sys")
  1233. } else if (e.data.tools && e.data.tools == "26") {
  1234. // U.MD.D.I.openApplication("courseDesign")
  1235. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1236. } else if (e.data.tools && e.data.tools == "31") {
  1237. U.MD.D.I.openApplication("netWorkPanel")
  1238. } else if (e.data.tools && e.data.tools == "32") {
  1239. U.MD.D.I.openApplication("codeEdit")
  1240. } else if (e.data.tools && e.data.tools == "57") {
  1241. U.MD.D.I.openApplication("CocoPi")
  1242. } else if (e.data.tools && e.data.tools == "58") {
  1243. U.MD.D.I.openApplication("car")
  1244. } else if (e.data.tools && e.data.tools == "59") {
  1245. U.MD.D.I.openApplication("lineSearch")
  1246. } else if (e.data.tools && e.data.tools == "60") {
  1247. U.MD.D.I.openApplication("deepLearning")
  1248. } else if (e.data.tools && e.data.tools == "28") {
  1249. U.MD.D.I.openApplication("translation")
  1250. } else if (e.data.tools && e.data.tools == "37") {
  1251. U.MD.D.I.openApplication("mohe")
  1252. } else if (e.data.tools && e.data.tools == "38") {
  1253. U.MD.D.I.openApplication("24game")
  1254. } else if (e.data.tools && e.data.tools == "39") {
  1255. U.MD.D.I.openApplication("GeoGebra")
  1256. } else if (e.data.tools && e.data.tools == "43") {
  1257. U.MD.D.I.openApplication("studentEvaluate")
  1258. } else if (e.data.tools && e.data.tools == "44") {
  1259. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1260. } else if (e.data.tools && e.data.tools == "46") {
  1261. U.MD.D.I.openApplication("project")
  1262. } else if (e.data.tools && e.data.tools == "1s") {
  1263. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1264. } else if (e.data.tools && e.data.tools == "3s") {
  1265. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1266. } else if (e.data.tools && e.data.tools == "6s") {
  1267. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1268. } else if (e.data.tools && e.data.tools == "3y") {
  1269. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1270. } else if (e.data.tools && e.data.tools == "1y") {
  1271. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1272. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1273. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1274. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1275. U.MD.D.I.openApplication("AIAnalyse")
  1276. }
  1277. });
  1278. U.MD.D.I.selectUser = function () {
  1279. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1280. if (res.value[0].length > 0) {
  1281. US.userInfo = res.value[0][0];
  1282. $(".userName")[0].innerHTML = US.userInfo.username;
  1283. }
  1284. }, [], { "type": "GET", "withCredentials": true });
  1285. }
  1286. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1287. var _userinfo = US.userInfo, //登录用户信息
  1288. _userid = US.userInfo.userid, //登录用户id
  1289. _oid = _userinfo.organizeid,
  1290. _type = US.userInfo.type,
  1291. _org = US.userInfo.org,
  1292. _role = US.userInfo.role,
  1293. _classId = US.userInfo.classid;
  1294. if (_type == 4) {
  1295. tType = 4
  1296. }
  1297. switch (str) {
  1298. case "studyDetail":
  1299. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1300. setTimeout(() => {
  1301. U.MD.U.L.login();
  1302. }, 2000);
  1303. } else {
  1304. _formdiv = new U.UF.UI.form(
  1305. "课程详情",
  1306. $$("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 }), {
  1307. "id": "studyDetail",
  1308. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1309. "onresize": function () { }
  1310. }, {
  1311. closecallback: function () { }
  1312. }, { "style": { "height": "36px" } }).form; //创建窗体
  1313. _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); } }
  1314. break;
  1315. }
  1316. case "studyDetailS":
  1317. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1318. setTimeout(() => {
  1319. U.MD.U.L.login();
  1320. }, 2000);
  1321. } else {
  1322. _formdiv = new U.UF.UI.form(
  1323. "项目详情",
  1324. $$("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 }), {
  1325. "id": "studyDetailS",
  1326. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1327. "onresize": function () { }
  1328. }, {
  1329. closecallback: function () { }
  1330. }, { "style": { "height": "36px" } }).form; //创建窗体
  1331. _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); } }
  1332. break;
  1333. }
  1334. case "studyDetailS5":
  1335. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1336. setTimeout(() => {
  1337. U.MD.U.L.login();
  1338. }, 2000);
  1339. } else {
  1340. _formdiv = new U.UF.UI.form(
  1341. "项目详情",
  1342. $$("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 }), {
  1343. "id": "studyDetailS",
  1344. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1345. "onresize": function () { }
  1346. }, {
  1347. closecallback: function () { }
  1348. }, { "style": { "height": "36px" } }).form; //创建窗体
  1349. _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); } }
  1350. break;
  1351. }
  1352. case "studyDetailGM":
  1353. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1354. setTimeout(() => {
  1355. U.MD.U.L.login();
  1356. }, 2000);
  1357. } else {
  1358. _formdiv = new U.UF.UI.form(
  1359. "课程详情",
  1360. $$("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 }), {
  1361. "id": "studyDetail",
  1362. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1363. "onresize": function () { }
  1364. }, {
  1365. closecallback: function () { }
  1366. }, { "style": { "height": "36px" } }).form; //创建窗体
  1367. _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); } }
  1368. break;
  1369. }
  1370. case "hanUrl":
  1371. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1372. setTimeout(() => {
  1373. U.MD.U.L.login();
  1374. }, 2000);
  1375. } else {
  1376. _formdiv = new U.UF.UI.form(
  1377. "汉字宫",
  1378. $$("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" }), {
  1379. "id": "hanUrl",
  1380. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1381. "onresize": function () { }
  1382. }, {
  1383. closecallback: function () { }
  1384. }, { "style": { "height": "36px" } }).form; //创建窗体
  1385. _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); } }
  1386. break;
  1387. }
  1388. }
  1389. }
  1390. U.MD.D.I.openApplication = function (str, obj, info) {
  1391. obj = obj || {};
  1392. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1393. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1394. _userinfo = US.userInfo, //登录用户信息
  1395. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1396. _oid = obj.organizeid || _userinfo.organizeid,
  1397. _type = US.userInfo.type,
  1398. _org = US.userInfo.org,
  1399. _role = US.userInfo.role,
  1400. _classId = US.userInfo.classid,
  1401. _TscreenType = 1
  1402. _screenType = 2,
  1403. _SscreenType = 3;
  1404. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1405. return;
  1406. }
  1407. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1408. switch (str) {
  1409. case "studnetProject": //好友打开
  1410. _formdiv = new U.UF.UI.form(
  1411. "我的项目",
  1412. $$("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 }), {
  1413. "id": "studnetProject",
  1414. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1415. "onresize": function () { }
  1416. }, {
  1417. closecallback: function () { }
  1418. }, { "style": { "height": "36px" } }).form; //创建窗体
  1419. _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); } }
  1420. break;
  1421. case "studentEvaluate": //好友打开
  1422. _formdiv = new U.UF.UI.form(
  1423. "我的评价",
  1424. $$("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 }), {
  1425. "id": "studentEvaluate",
  1426. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1427. "onresize": function () { }
  1428. }, {
  1429. closecallback: function () { }
  1430. }, { "style": { "height": "36px" } }).form; //创建窗体
  1431. _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); } }
  1432. break;
  1433. case "my":
  1434. _formdiv = new U.UF.UI.form(
  1435. "我的资料",
  1436. $$("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 }), {
  1437. "id": "my",
  1438. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1439. "onresize": function () { }
  1440. }, {
  1441. closecallback: function () { }
  1442. }, { "style": { "height": "36px" } }).form; //创建窗体
  1443. _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); } }
  1444. break;
  1445. case "program":
  1446. _formdiv = new U.UF.UI.form(
  1447. "编程平台",
  1448. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1449. "id": "program",
  1450. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1451. "onresize": function () { }
  1452. }, {
  1453. closecallback: function () { }
  1454. }, { "style": { "height": "36px" } }).form; //创建窗体
  1455. _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); } }
  1456. break;
  1457. case "library":
  1458. _formdiv = new U.UF.UI.form(
  1459. "素材库",
  1460. $$("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 }), {
  1461. "id": "library",
  1462. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1463. "onresize": function () { }
  1464. }, {
  1465. closecallback: function () { }
  1466. }, { "style": { "height": "36px" } }).form; //创建窗体
  1467. _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); } }
  1468. break;
  1469. case "whiteboard":
  1470. _formdiv = new U.UF.UI.form(
  1471. "电子白板",
  1472. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1473. "id": "whiteboard",
  1474. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1475. "onresize": function () { }
  1476. }, {
  1477. closecallback: function () { }
  1478. }, { "style": { "height": "36px" } }).form; //创建窗体
  1479. _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); } }
  1480. break;
  1481. case "investigation":
  1482. _formdiv = new U.UF.UI.form(
  1483. "问卷调查",
  1484. $$("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 }), {
  1485. "id": "investigation",
  1486. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1487. "onresize": function () { }
  1488. }, {
  1489. closecallback: function () { }
  1490. }, { "style": { "height": "36px" } }).form; //创建窗体
  1491. _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); } }
  1492. break;
  1493. case "note":
  1494. _formdiv = new U.UF.UI.form(
  1495. "便签分类",
  1496. $$("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 }), {
  1497. "id": "note",
  1498. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1499. "onresize": function () { }
  1500. }, {
  1501. closecallback: function () { }
  1502. }, { "style": { "height": "36px" } }).form; //创建窗体
  1503. _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); } }
  1504. break;
  1505. // case "score":
  1506. // _formdiv = new U.UF.UI.form(
  1507. // "量规评分",
  1508. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1509. // "id": "score",
  1510. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1511. // "onresize": function() {}
  1512. // }, {
  1513. // closecallback: function() {}
  1514. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1515. // _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); } }
  1516. // break;
  1517. case "mind":
  1518. _formdiv = new U.UF.UI.form(
  1519. "思维导图",
  1520. $$("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"
  1521. "id": "mind",
  1522. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1523. "onresize": function () { }
  1524. }, {
  1525. closecallback: function () { }
  1526. }, { "style": { "height": "36px" } }).form; //创建窗体
  1527. _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); } }
  1528. break;
  1529. case "doc":
  1530. // U.MD.D.I.isRoom();
  1531. _formdiv = new U.UF.UI.form(
  1532. "协同文档",
  1533. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1534. "id": "doc",
  1535. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1536. "onresize": function () { }
  1537. }, {
  1538. closecallback: function () { }
  1539. }, { "style": { "height": "36px" } }).form; //创建窗体
  1540. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1541. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1542. // })
  1543. _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); } }
  1544. break;
  1545. case "studentStudy":
  1546. _formdiv = new U.UF.UI.form(
  1547. "课程中心",
  1548. $$("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
  1549. "id": "studentStudy",
  1550. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1551. "onresize": function () { }
  1552. }, {
  1553. closecallback: function () { }
  1554. }, { "style": { "height": "36px" } }).form; //创建窗体
  1555. _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); } }
  1556. break;
  1557. case "train": //好友打开
  1558. _formdiv = new U.UF.UI.form(
  1559. "训练平台",
  1560. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1561. "id": "train",
  1562. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1563. "onresize": function () { }
  1564. }, {
  1565. closecallback: function () { }
  1566. }, { "style": { "height": "36px" } }).form; //创建窗体
  1567. _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); } }
  1568. break;
  1569. case "mindNetwork": //好友打开
  1570. _formdiv = new U.UF.UI.form(
  1571. "思维网格",
  1572. $$("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 }), {
  1573. "id": "mindNetwork",
  1574. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1575. "onresize": function () { }
  1576. }, {
  1577. closecallback: function () { }
  1578. }, { "style": { "height": "36px" } }).form; //创建窗体
  1579. _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); } }
  1580. break;
  1581. case "studentClassRoom": //好友打开
  1582. _formdiv = new U.UF.UI.form(
  1583. "实时课堂",
  1584. $$("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 }), {
  1585. "id": "studentClassRoom",
  1586. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1587. "onresize": function () { }
  1588. }, {
  1589. closecallback: function () { }
  1590. }, { "style": { "height": "36px" } }).form; //创建窗体
  1591. _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); } }
  1592. setTimeout(() => {
  1593. U.UF.F.windowZooming(_formdiv)
  1594. }, 0);
  1595. break;
  1596. }
  1597. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1598. switch (str) {
  1599. case "studnetProject": //好友打开
  1600. _formdiv = new U.UF.UI.form(
  1601. "我的项目",
  1602. $$("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 }), {
  1603. "id": "studnetProject",
  1604. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1605. "onresize": function () { }
  1606. }, {
  1607. closecallback: function () { }
  1608. }, { "style": { "height": "36px" } }).form; //创建窗体
  1609. _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); } }
  1610. break;
  1611. case "studentEvaluate": //好友打开
  1612. _formdiv = new U.UF.UI.form(
  1613. "我的评价",
  1614. $$("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 }), {
  1615. "id": "studentEvaluate",
  1616. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1617. "onresize": function () { }
  1618. }, {
  1619. closecallback: function () { }
  1620. }, { "style": { "height": "36px" } }).form; //创建窗体
  1621. _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); } }
  1622. break;
  1623. case "my":
  1624. _formdiv = new U.UF.UI.form(
  1625. "我的资料",
  1626. $$("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 }), {
  1627. "id": "my",
  1628. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1629. "onresize": function () { }
  1630. }, {
  1631. closecallback: function () { }
  1632. }, { "style": { "height": "36px" } }).form; //创建窗体
  1633. _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); } }
  1634. break;
  1635. case "program":
  1636. _formdiv = new U.UF.UI.form(
  1637. "编程平台",
  1638. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1639. "id": "program",
  1640. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1641. "onresize": function () { }
  1642. }, {
  1643. closecallback: function () { }
  1644. }, { "style": { "height": "36px" } }).form; //创建窗体
  1645. _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); } }
  1646. break;
  1647. case "library":
  1648. _formdiv = new U.UF.UI.form(
  1649. "素材库",
  1650. $$("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 }), {
  1651. "id": "library",
  1652. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1653. "onresize": function () { }
  1654. }, {
  1655. closecallback: function () { }
  1656. }, { "style": { "height": "36px" } }).form; //创建窗体
  1657. _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); } }
  1658. break;
  1659. case "whiteboard":
  1660. _formdiv = new U.UF.UI.form(
  1661. "电子白板",
  1662. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1663. "id": "whiteboard",
  1664. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1665. "onresize": function () { }
  1666. }, {
  1667. closecallback: function () { }
  1668. }, { "style": { "height": "36px" } }).form; //创建窗体
  1669. _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); } }
  1670. break;
  1671. case "investigation":
  1672. _formdiv = new U.UF.UI.form(
  1673. "问卷调查",
  1674. $$("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 }), {
  1675. "id": "investigation",
  1676. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1677. "onresize": function () { }
  1678. }, {
  1679. closecallback: function () { }
  1680. }, { "style": { "height": "36px" } }).form; //创建窗体
  1681. _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); } }
  1682. break;
  1683. case "note":
  1684. _formdiv = new U.UF.UI.form(
  1685. "便签分类",
  1686. $$("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 }), {
  1687. "id": "note",
  1688. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1689. "onresize": function () { }
  1690. }, {
  1691. closecallback: function () { }
  1692. }, { "style": { "height": "36px" } }).form; //创建窗体
  1693. _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); } }
  1694. break;
  1695. // case "score":
  1696. // _formdiv = new U.UF.UI.form(
  1697. // "量规评分",
  1698. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1699. // "id": "score",
  1700. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1701. // "onresize": function() {}
  1702. // }, {
  1703. // closecallback: function() {}
  1704. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1705. // _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); } }
  1706. // break;
  1707. case "mind":
  1708. _formdiv = new U.UF.UI.form(
  1709. "思维导图",
  1710. $$("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"
  1711. "id": "mind",
  1712. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1713. "onresize": function () { }
  1714. }, {
  1715. closecallback: function () { }
  1716. }, { "style": { "height": "36px" } }).form; //创建窗体
  1717. _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); } }
  1718. break;
  1719. case "doc":
  1720. // U.MD.D.I.isRoom();
  1721. _formdiv = new U.UF.UI.form(
  1722. "协同文档",
  1723. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1724. "id": "doc",
  1725. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1726. "onresize": function () { }
  1727. }, {
  1728. closecallback: function () { }
  1729. }, { "style": { "height": "36px" } }).form; //创建窗体
  1730. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1731. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1732. })
  1733. _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); } }
  1734. break;
  1735. case "train": //好友打开
  1736. _formdiv = new U.UF.UI.form(
  1737. "训练平台",
  1738. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1739. "id": "train",
  1740. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1741. "onresize": function () { }
  1742. }, {
  1743. closecallback: function () { }
  1744. }, { "style": { "height": "36px" } }).form; //创建窗体
  1745. _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); } }
  1746. break;
  1747. case "studentStudy":
  1748. _formdiv = new U.UF.UI.form(
  1749. "课程中心",
  1750. $$("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
  1751. "id": "studentStudy",
  1752. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1753. "onresize": function () { }
  1754. }, {
  1755. closecallback: function () { }
  1756. }, { "style": { "height": "36px" } }).form; //创建窗体
  1757. _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); } }
  1758. break;
  1759. case "mindNetwork": //好友打开
  1760. _formdiv = new U.UF.UI.form(
  1761. "思维网格",
  1762. $$("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 }), {
  1763. "id": "mindNetwork",
  1764. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1765. "onresize": function () { }
  1766. }, {
  1767. closecallback: function () { }
  1768. }, { "style": { "height": "36px" } }).form; //创建窗体
  1769. _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); } }
  1770. break;
  1771. case "studentClassRoom": //好友打开
  1772. _formdiv = new U.UF.UI.form(
  1773. "实时课堂",
  1774. $$("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 }), {
  1775. "id": "studentClassRoom",
  1776. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1777. "onresize": function () { }
  1778. }, {
  1779. closecallback: function () { }
  1780. }, { "style": { "height": "36px" } }).form; //创建窗体
  1781. _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); } }
  1782. setTimeout(() => {
  1783. U.UF.F.windowZooming(_formdiv)
  1784. }, 0);
  1785. break;
  1786. }
  1787. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1788. //选择应用处理
  1789. switch (str) {
  1790. case "project": //好友打开
  1791. _formdiv = new U.UF.UI.form(
  1792. "课程管理",
  1793. $$("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 }), {
  1794. "id": "project",
  1795. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1796. "onresize": function () { }
  1797. }, {
  1798. closecallback: function () { }
  1799. }, { "style": { "height": "36px" } }).form; //创建窗体
  1800. _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); } }
  1801. break;
  1802. case "student":
  1803. _formdiv = new U.UF.UI.form(
  1804. "学生管理",
  1805. $$("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 }), {
  1806. "id": "student",
  1807. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1808. "onresize": function () { }
  1809. }, {
  1810. closecallback: function () { }
  1811. }, { "style": { "height": "36px" } }).form; //创建窗体
  1812. _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); } }
  1813. break;
  1814. case "evaluate":
  1815. _formdiv = new U.UF.UI.form(
  1816. "学生评价",
  1817. $$("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 }), {
  1818. "id": "evaluate",
  1819. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1820. "onresize": function () { }
  1821. }, {
  1822. closecallback: function () { }
  1823. }, { "style": { "height": "36px" } }).form; //创建窗体
  1824. _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); } }
  1825. break;
  1826. case "sys":
  1827. _formdiv = new U.UF.UI.form(
  1828. "目标管理",
  1829. $$("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 }), {
  1830. "id": "sys",
  1831. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1832. "onresize": function () { }
  1833. }, {
  1834. closecallback: function () { }
  1835. }, { "style": { "height": "36px" } }).form; //创建窗体
  1836. _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); } }
  1837. break;
  1838. case "courseDesign":
  1839. _formdiv = new U.UF.UI.form(
  1840. "项目设计",
  1841. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1842. "id": "courseDesign",
  1843. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1844. "onresize": function () { }
  1845. }, {
  1846. closecallback: function () { }
  1847. }, { "style": { "height": "36px" } }).form; //创建窗体
  1848. _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); } }
  1849. break;
  1850. case "program":
  1851. _formdiv = new U.UF.UI.form(
  1852. "编程平台",
  1853. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1854. "id": "program",
  1855. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1856. "onresize": function () { }
  1857. }, {
  1858. closecallback: function () { }
  1859. }, { "style": { "height": "36px" } }).form; //创建窗体
  1860. _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); } }
  1861. break;
  1862. case "class":
  1863. _formdiv = new U.UF.UI.form(
  1864. "班级管理",
  1865. $$("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 }), {
  1866. "id": "class",
  1867. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1868. "onresize": function () { }
  1869. }, {
  1870. closecallback: function () { }
  1871. }, { "style": { "height": "36px" } }).form; //创建窗体
  1872. _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); } }
  1873. break;
  1874. case "my":
  1875. _formdiv = new U.UF.UI.form(
  1876. "我的资料",
  1877. $$("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 }), {
  1878. "id": "my",
  1879. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1880. "onresize": function () { }
  1881. }, {
  1882. closecallback: function () { }
  1883. }, { "style": { "height": "36px" } }).form; //创建窗体
  1884. _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); } }
  1885. break;
  1886. case "notice":
  1887. _formdiv = new U.UF.UI.form(
  1888. "通知公告",
  1889. $$("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 }), {
  1890. "id": "notice",
  1891. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1892. "onresize": function () { }
  1893. }, {
  1894. closecallback: function () { }
  1895. }, { "style": { "height": "36px" } }).form; //创建窗体
  1896. _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); } }
  1897. break;
  1898. case "library":
  1899. _formdiv = new U.UF.UI.form(
  1900. "素材库",
  1901. $$("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 }), {
  1902. "id": "library",
  1903. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1904. "onresize": function () { }
  1905. }, {
  1906. closecallback: function () { }
  1907. }, { "style": { "height": "36px" } }).form; //创建窗体
  1908. _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); } }
  1909. break;
  1910. case "whiteboard":
  1911. _formdiv = new U.UF.UI.form(
  1912. "电子白板",
  1913. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1914. "id": "whiteboard",
  1915. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1916. "onresize": function () { }
  1917. }, {
  1918. closecallback: function () { }
  1919. }, { "style": { "height": "36px" } }).form; //创建窗体
  1920. _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); } }
  1921. break;
  1922. case "investigation":
  1923. _formdiv = new U.UF.UI.form(
  1924. "问卷调查",
  1925. $$("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 }), {
  1926. "id": "investigation",
  1927. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1928. "onresize": function () { }
  1929. }, {
  1930. closecallback: function () { }
  1931. }, { "style": { "height": "36px" } }).form; //创建窗体
  1932. _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); } }
  1933. break;
  1934. case "note":
  1935. _formdiv = new U.UF.UI.form(
  1936. "便签分类",
  1937. $$("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 }), {
  1938. "id": "note",
  1939. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1940. "onresize": function () { }
  1941. }, {
  1942. closecallback: function () { }
  1943. }, { "style": { "height": "36px" } }).form; //创建窗体
  1944. _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); } }
  1945. break;
  1946. // case "score":
  1947. // _formdiv = new U.UF.UI.form(
  1948. // "量规评分",
  1949. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1950. // "id": "score",
  1951. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1952. // "onresize": function() {}
  1953. // }, {
  1954. // closecallback: function() {}
  1955. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1956. // _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); } }
  1957. // break;
  1958. case "mind":
  1959. _formdiv = new U.UF.UI.form(
  1960. "思维导图",
  1961. $$("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"
  1962. "id": "mind",
  1963. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1964. "onresize": function () { }
  1965. }, {
  1966. closecallback: function () { }
  1967. }, { "style": { "height": "36px" } }).form; //创建窗体
  1968. _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); } }
  1969. break;
  1970. case "doc":
  1971. // U.MD.D.I.isRoom();
  1972. _formdiv = new U.UF.UI.form(
  1973. "协同文档",
  1974. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1975. "id": "doc",
  1976. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1977. "onresize": function () { }
  1978. }, {
  1979. closecallback: function () { }
  1980. }, { "style": { "height": "36px" } }).form; //创建窗体
  1981. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1982. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1983. })
  1984. _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); } }
  1985. break;
  1986. case "study":
  1987. _formdiv = new U.UF.UI.form(
  1988. "课程中心",
  1989. $$("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
  1990. "id": "study",
  1991. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1992. "onresize": function () { }
  1993. }, {
  1994. closecallback: function () { }
  1995. }, { "style": { "height": "36px" } }).form; //创建窗体
  1996. _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); } }
  1997. break;
  1998. case "mindNetwork": //好友打开
  1999. _formdiv = new U.UF.UI.form(
  2000. "思维网格",
  2001. $$("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 }), {
  2002. "id": "mindNetwork",
  2003. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2004. "onresize": function () { }
  2005. }, {
  2006. closecallback: function () { }
  2007. }, { "style": { "height": "36px" } }).form; //创建窗体
  2008. _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); } }
  2009. break;
  2010. case "train": //好友打开
  2011. _formdiv = new U.UF.UI.form(
  2012. "训练平台",
  2013. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2014. "id": "mindNetwork",
  2015. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2016. "onresize": function () { }
  2017. }, {
  2018. closecallback: function () { }
  2019. }, { "style": { "height": "36px" } }).form; //创建窗体
  2020. _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); } }
  2021. break;
  2022. case "teacherClassRoom": //好友打开
  2023. _formdiv = new U.UF.UI.form(
  2024. "实时课堂",
  2025. $$("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 }), {
  2026. "id": "teacherClassRoom",
  2027. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2028. "onresize": function () { }
  2029. }, {
  2030. closecallback: function () { }
  2031. }, { "style": { "height": "36px" } }).form; //创建窗体
  2032. _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); } }
  2033. setTimeout(() => {
  2034. U.UF.F.windowZooming(_formdiv)
  2035. }, 0);
  2036. break;
  2037. }
  2038. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2039. switch (str) {
  2040. case "project": //好友打开
  2041. _formdiv = new U.UF.UI.form(
  2042. "课程管理",
  2043. $$("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 }), {
  2044. "id": "project",
  2045. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2046. "onresize": function () { }
  2047. }, {
  2048. closecallback: function () { }
  2049. }, { "style": { "height": "36px" } }).form; //创建窗体
  2050. _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); } }
  2051. break;
  2052. case "evaluate":
  2053. _formdiv = new U.UF.UI.form(
  2054. "学生评价",
  2055. $$("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 }), {
  2056. "id": "evaluate",
  2057. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2058. "onresize": function () { }
  2059. }, {
  2060. closecallback: function () { }
  2061. }, { "style": { "height": "36px" } }).form; //创建窗体
  2062. _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); } }
  2063. break;
  2064. case "notice":
  2065. _formdiv = new U.UF.UI.form(
  2066. "通知公告",
  2067. $$("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 }), {
  2068. "id": "notice",
  2069. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2070. "onresize": function () { }
  2071. }, {
  2072. closecallback: function () { }
  2073. }, { "style": { "height": "36px" } }).form; //创建窗体
  2074. _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); } }
  2075. break;
  2076. case "stuLibrary":
  2077. _formdiv = new U.UF.UI.form(
  2078. "学习资料",
  2079. $$("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 }), {
  2080. "id": "stuLibrary",
  2081. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2082. "onresize": function () { }
  2083. }, {
  2084. closecallback: function () { }
  2085. }, { "style": { "height": "36px" } }).form; //创建窗体
  2086. _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); } }
  2087. break;
  2088. case "program":
  2089. _formdiv = new U.UF.UI.form(
  2090. "编程平台",
  2091. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2092. "id": "program",
  2093. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2094. "onresize": function () { }
  2095. }, {
  2096. closecallback: function () { }
  2097. }, { "style": { "height": "36px" } }).form; //创建窗体
  2098. _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); } }
  2099. break;
  2100. case "whiteboard":
  2101. _formdiv = new U.UF.UI.form(
  2102. "电子白板",
  2103. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2104. "id": "whiteboard",
  2105. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2106. "onresize": function () { }
  2107. }, {
  2108. closecallback: function () { }
  2109. }, { "style": { "height": "36px" } }).form; //创建窗体
  2110. _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); } }
  2111. break;
  2112. case "investigation":
  2113. _formdiv = new U.UF.UI.form(
  2114. "问卷调查",
  2115. $$("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 }), {
  2116. "id": "investigation",
  2117. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2118. "onresize": function () { }
  2119. }, {
  2120. closecallback: function () { }
  2121. }, { "style": { "height": "36px" } }).form; //创建窗体
  2122. _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); } }
  2123. break;
  2124. case "mind":
  2125. _formdiv = new U.UF.UI.form(
  2126. "思维导图",
  2127. $$("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"
  2128. "id": "mind",
  2129. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2130. "onresize": function () { }
  2131. }, {
  2132. closecallback: function () { }
  2133. }, { "style": { "height": "36px" } }).form; //创建窗体
  2134. _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); } }
  2135. break;
  2136. case "doc":
  2137. // U.MD.D.I.isRoom();
  2138. _formdiv = new U.UF.UI.form(
  2139. "协同文档",
  2140. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2141. "id": "doc",
  2142. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2143. "onresize": function () { }
  2144. }, {
  2145. closecallback: function () { }
  2146. }, { "style": { "height": "36px" } }).form; //创建窗体
  2147. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2148. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2149. })
  2150. _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); } }
  2151. break;
  2152. case "study":
  2153. _formdiv = new U.UF.UI.form(
  2154. "课程中心",
  2155. $$("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
  2156. "id": "study",
  2157. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2158. "onresize": function () { }
  2159. }, {
  2160. closecallback: function () { }
  2161. }, { "style": { "height": "36px" } }).form; //创建窗体
  2162. _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); } }
  2163. break;
  2164. case "mindNetwork": //好友打开
  2165. _formdiv = new U.UF.UI.form(
  2166. "思维网格",
  2167. $$("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 }), {
  2168. "id": "mindNetwork",
  2169. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2170. "onresize": function () { }
  2171. }, {
  2172. closecallback: function () { }
  2173. }, { "style": { "height": "36px" } }).form; //创建窗体
  2174. _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); } }
  2175. break;
  2176. case "train": //好友打开
  2177. _formdiv = new U.UF.UI.form(
  2178. "训练平台",
  2179. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2180. "id": "train",
  2181. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2182. "onresize": function () { }
  2183. }, {
  2184. closecallback: function () { }
  2185. }, { "style": { "height": "36px" } }).form; //创建窗体
  2186. _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); } }
  2187. break;
  2188. case "sys":
  2189. _formdiv = new U.UF.UI.form(
  2190. "目标管理",
  2191. $$("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 }), {
  2192. "id": "sys",
  2193. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2194. "onresize": function () { }
  2195. }, {
  2196. closecallback: function () { }
  2197. }, { "style": { "height": "36px" } }).form; //创建窗体
  2198. _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); } }
  2199. break;
  2200. case "courseDesign":
  2201. _formdiv = new U.UF.UI.form(
  2202. "项目设计",
  2203. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2204. "id": "courseDesign",
  2205. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2206. "onresize": function () { }
  2207. }, {
  2208. closecallback: function () { }
  2209. }, { "style": { "height": "36px" } }).form; //创建窗体
  2210. _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); } }
  2211. break;
  2212. }
  2213. } else if (!_type) {
  2214. switch (str) {
  2215. case "my":
  2216. _formdiv = new U.UF.UI.form(
  2217. "我的资料",
  2218. $$("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 }), {
  2219. "id": "my",
  2220. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2221. "onresize": function () { }
  2222. }, {
  2223. closecallback: function () { }
  2224. }, { "style": { "height": "36px" } }).form; //创建窗体
  2225. _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); } }
  2226. break;
  2227. }
  2228. }
  2229. switch (str) {
  2230. // AIprogram2 AI体验 aihub.cocorobo.cn
  2231. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2232. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2233. case "AIprogram2": //AI体验
  2234. _formdiv = new U.UF.UI.form(
  2235. "AI体验",
  2236. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2237. "id": "AIprogram2",
  2238. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2239. "onresize": function () { }
  2240. }, {
  2241. closecallback: function () { }
  2242. }, { "style": { "height": "36px" } }).form; //创建窗体
  2243. _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); } }
  2244. break;
  2245. case "Pythonprogram": //python编程
  2246. _formdiv = new U.UF.UI.form(
  2247. "Python编程",
  2248. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2249. "id": "Pythonprogram",
  2250. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2251. "onresize": function () { }
  2252. }, {
  2253. closecallback: function () { }
  2254. }, { "style": { "height": "36px" } }).form; //创建窗体
  2255. _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); } }
  2256. break;
  2257. case "AIprogram": //ai编程
  2258. _formdiv = new U.UF.UI.form(
  2259. "AI编程平台",
  2260. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2261. "id": "AIprogram",
  2262. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2263. "onresize": function () { }
  2264. }, {
  2265. closecallback: function () { }
  2266. }, { "style": { "height": "36px" } }).form; //创建窗体
  2267. _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); } }
  2268. break;
  2269. case "CocoPi": //CocoPi
  2270. _formdiv = new U.UF.UI.form(
  2271. "CocoPi",
  2272. $$("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" }), {
  2273. "id": "CocoPi",
  2274. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2275. "onresize": function () { }
  2276. }, {
  2277. closecallback: function () { }
  2278. }, { "style": { "height": "36px" } }).form; //创建窗体
  2279. _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); } }
  2280. break;
  2281. case "car": //模拟驾驶
  2282. _formdiv = new U.UF.UI.form(
  2283. "模拟驾驶",
  2284. $$("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/" }), {
  2285. "id": "car",
  2286. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2287. "onresize": function () { }
  2288. }, {
  2289. closecallback: function () { }
  2290. }, { "style": { "height": "36px" } }).form; //创建窗体
  2291. _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); } }
  2292. break;
  2293. case "lineSearch": //路径搜索
  2294. _formdiv = new U.UF.UI.form(
  2295. "路径搜索",
  2296. $$("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/" }), {
  2297. "id": "lineSearch",
  2298. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2299. "onresize": function () { }
  2300. }, {
  2301. closecallback: function () { }
  2302. }, { "style": { "height": "36px" } }).form; //创建窗体
  2303. _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); } }
  2304. break;
  2305. case "deepLearning": //深度学习
  2306. _formdiv = new U.UF.UI.form(
  2307. "深度学习",
  2308. $$("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/#" }), {
  2309. "id": "deepLearning",
  2310. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2311. "onresize": function () { }
  2312. }, {
  2313. closecallback: function () { }
  2314. }, { "style": { "height": "36px" } }).form; //创建窗体
  2315. _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); } }
  2316. break;
  2317. case "chatPDF": //ai编程
  2318. _formdiv = new U.UF.UI.form(
  2319. "chatPDF",
  2320. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2321. "id": "chatPDF",
  2322. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2323. "onresize": function () { }
  2324. }, {
  2325. closecallback: function () { }
  2326. }, { "style": { "height": "36px" } }).form; //创建窗体
  2327. _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); } }
  2328. break;
  2329. case "resources": //国家教育
  2330. _formdiv = new U.UF.UI.form(
  2331. "国家教育",
  2332. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2333. "id": "resources",
  2334. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2335. "onresize": function () { }
  2336. }, {
  2337. closecallback: function () { }
  2338. }, { "style": { "height": "36px" } }).form; //创建窗体
  2339. _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); } }
  2340. break;
  2341. case "codeEdit": //源码编辑
  2342. _formdiv = new U.UF.UI.form(
  2343. "源码编辑",
  2344. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2345. "id": "codeEdit",
  2346. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2347. "onresize": function () { }
  2348. }, {
  2349. closecallback: function () { }
  2350. }, { "style": { "height": "36px" } }).form; //创建窗体
  2351. _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); } }
  2352. break; //
  2353. case "MindMap": //MindMap
  2354. _formdiv = new U.UF.UI.form(
  2355. "MindMap",
  2356. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2357. "id": "MindMap",
  2358. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2359. "onresize": function () { }
  2360. }, {
  2361. closecallback: function () { }
  2362. }, { "style": { "height": "36px" } }).form; //创建窗体
  2363. _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); } }
  2364. break;
  2365. case "netWorkPanel": //netWorkPanel
  2366. _formdiv = new U.UF.UI.form(
  2367. "netWorkPanel",
  2368. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2369. "id": "netWorkPanel",
  2370. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2371. "onresize": function () { }
  2372. }, {
  2373. closecallback: function () { }
  2374. }, { "style": { "height": "36px" } }).form; //创建窗体
  2375. _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); } }
  2376. break;
  2377. case "GeoGebra": //GeoGebra
  2378. _formdiv = new U.UF.UI.form(
  2379. "GeoGebra",
  2380. $$("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" }), {
  2381. "id": "GeoGebra",
  2382. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2383. "onresize": function () { }
  2384. }, {
  2385. closecallback: function () { }
  2386. }, { "style": { "height": "36px" } }).form; //创建窗体
  2387. _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); } }
  2388. break;
  2389. case "translation": //翻译
  2390. _formdiv = new U.UF.UI.form(
  2391. "翻译",
  2392. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2393. "id": "translation",
  2394. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2395. "onresize": function () { }
  2396. }, {
  2397. closecallback: function () { }
  2398. }, { "style": { "height": "36px" } }).form; //创建窗体
  2399. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/translation.png)" }, "name": "翻译", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2400. break;
  2401. case "mohe": //魔盒
  2402. _formdiv = new U.UF.UI.form(
  2403. "魔盒识字",
  2404. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2405. "id": "mohe",
  2406. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2407. "onresize": function () { }
  2408. }, {
  2409. closecallback: function () { }
  2410. }, { "style": { "height": "36px" } }).form; //创建窗体
  2411. _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); } }
  2412. break;
  2413. case "24game": //24点
  2414. _formdiv = new U.UF.UI.form(
  2415. "24点",
  2416. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2417. "id": "24game",
  2418. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2419. "onresize": function () { }
  2420. }, {
  2421. closecallback: function () { }
  2422. }, { "style": { "height": "36px" } }).form; //创建窗体
  2423. _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); } }
  2424. break;
  2425. case "case":
  2426. _formdiv = new U.UF.UI.form(
  2427. "课程进展",
  2428. $$("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 }), {
  2429. "id": "case",
  2430. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2431. "onresize": function () { }
  2432. }, {
  2433. closecallback: function () { }
  2434. }, { "style": { "height": "36px" } }).form; //创建窗体
  2435. _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); } }
  2436. break;
  2437. case "snf":
  2438. _formdiv = new U.UF.UI.form(
  2439. "赛诺梵",
  2440. $$("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" }), {
  2441. "id": "snf",
  2442. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2443. "onresize": function () { }
  2444. }, {
  2445. closecallback: function () { }
  2446. }, { "style": { "height": "36px" } }).form; //创建窗体
  2447. _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); } }
  2448. break;
  2449. case "hanFamily":
  2450. _formdiv = new U.UF.UI.form(
  2451. "汉字家族",
  2452. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2453. "id": "hanFamily",
  2454. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2455. "onresize": function () { }
  2456. }, {
  2457. closecallback: function () { }
  2458. }, { "style": { "height": "36px" } }).form; //创建窗体
  2459. _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); } }
  2460. break;
  2461. case "hanClassics":
  2462. _formdiv = new U.UF.UI.form(
  2463. "国学经典",
  2464. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2465. "id": "hanClassics",
  2466. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2467. "onresize": function () { }
  2468. }, {
  2469. closecallback: function () { }
  2470. }, { "style": { "height": "36px" } }).form; //创建窗体
  2471. _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); } }
  2472. break;
  2473. case "hanTraining":
  2474. _formdiv = new U.UF.UI.form(
  2475. "笔画训练",
  2476. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2477. "id": "hanTraining",
  2478. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2479. "onresize": function () { }
  2480. }, {
  2481. closecallback: function () { }
  2482. }, { "style": { "height": "36px" } }).form; //创建窗体
  2483. _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); } }
  2484. break;
  2485. case "hanClass":
  2486. _formdiv = new U.UF.UI.form(
  2487. "书法课堂",
  2488. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2489. "id": "hanClass",
  2490. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2491. "onresize": function () { }
  2492. }, {
  2493. closecallback: function () { }
  2494. }, { "style": { "height": "36px" } }).form; //创建窗体
  2495. _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); } }
  2496. break;
  2497. case "han":
  2498. _formdiv = new U.UF.UI.form(
  2499. "汉字宫",
  2500. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2501. "id": "han",
  2502. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2503. "onresize": function () { }
  2504. }, {
  2505. closecallback: function () { }
  2506. }, { "style": { "height": "36px" } }).form; //创建窗体
  2507. _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); } }
  2508. break;
  2509. case "projectGM": //课程管理
  2510. _formdiv = new U.UF.UI.form(
  2511. "课程管理",
  2512. $$("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 }), {
  2513. "id": "projectGM",
  2514. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2515. "onresize": function () { }
  2516. }, {
  2517. closecallback: function () { }
  2518. }, { "style": { "height": "36px" } }).form; //创建窗体
  2519. _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); } }
  2520. break;
  2521. case "studyGM"://课程中心
  2522. _formdiv = new U.UF.UI.form(
  2523. "课程中心",
  2524. $$("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
  2525. "id": "study",
  2526. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2527. "onresize": function () { }
  2528. }, {
  2529. closecallback: function () { }
  2530. }, { "style": { "height": "36px" } }).form; //创建窗体
  2531. _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); } }
  2532. break;
  2533. // studentGM
  2534. case "studentGM"://学生管理
  2535. _formdiv = new U.UF.UI.form(
  2536. "学生管理",
  2537. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/studentGM?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  2538. "id": "studentGM",
  2539. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2540. "onresize": function () { }
  2541. }, {
  2542. closecallback: function () { }
  2543. }, { "style": { "height": "36px" } }).form; //创建窗体
  2544. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2545. break;
  2546. case "evaluateGM"://学生评价
  2547. _formdiv = new U.UF.UI.form(
  2548. "学生评价",
  2549. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2550. "id": "evaluateGM",
  2551. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2552. "onresize": function () { }
  2553. }, {
  2554. closecallback: function () { }
  2555. }, { "style": { "height": "36px" } }).form; //创建窗体
  2556. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/evaluate.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2557. break;
  2558. // classGM
  2559. case "classGM"://班级管理
  2560. _formdiv = new U.UF.UI.form(
  2561. "班级管理",
  2562. $$("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 }), {
  2563. "id": "classGM",
  2564. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2565. "onresize": function () { }
  2566. }, {
  2567. closecallback: function () { }
  2568. }, { "style": { "height": "36px" } }).form; //创建窗体
  2569. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2570. break;
  2571. // dataGM
  2572. case "dataGM":
  2573. _formdiv = new U.UF.UI.form(
  2574. "我的资料",
  2575. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/dataGM?userid=" + _userid + "&org=" + _org }), {
  2576. "id": "dataGM",
  2577. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2578. "onresize": function () { }
  2579. }, {
  2580. closecallback: function () { }
  2581. }, { "style": { "height": "36px" } }).form; //创建窗体
  2582. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/data.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2583. break;
  2584. // caseGM
  2585. case "caseGM"://课程进展
  2586. _formdiv = new U.UF.UI.form(
  2587. "课程进展",
  2588. $$("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 }), {
  2589. "id": "caseGM",
  2590. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2591. "onresize": function () { }
  2592. }, {
  2593. closecallback: function () { }
  2594. }, { "style": { "height": "36px" } }).form; //创建窗体
  2595. _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); } }
  2596. break;
  2597. // meterialGM
  2598. case "meterialGM"://素材库
  2599. _formdiv = new U.UF.UI.form(
  2600. "素材库",
  2601. $$("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 }), {
  2602. "id": "meterialGM",
  2603. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2604. "onresize": function () { }
  2605. }, {
  2606. closecallback: function () { }
  2607. }, { "style": { "height": "36px" } }).form; //创建窗体
  2608. _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); } }
  2609. break;
  2610. // evaluateSGM
  2611. case "evaluateSGM": //我的评价
  2612. _formdiv = new U.UF.UI.form(
  2613. "我的评价",
  2614. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2615. "id": "evaluateSGM",
  2616. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2617. "onresize": function () { }
  2618. }, {
  2619. closecallback: function () { }
  2620. }, { "style": { "height": "36px" } }).form; //创建窗体
  2621. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/evaluate.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2622. break;
  2623. case "jupyter": //jupyter
  2624. _formdiv = new U.UF.UI.form(
  2625. "jupyter",
  2626. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  2627. "id": "jupyter",
  2628. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2629. "onresize": function () { }
  2630. }, {
  2631. closecallback: function () { }
  2632. }, { "style": { "height": "36px" } }).form; //创建窗体
  2633. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/jupyter.png)" }, "name": "jupyter", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2634. break;
  2635. case "number": //数字实验室
  2636. _formdiv = new U.UF.UI.form(
  2637. "数字实验室",
  2638. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  2639. "id": "number",
  2640. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2641. "onresize": function () { }
  2642. }, {
  2643. closecallback: function () { }
  2644. }, { "style": { "height": "36px" } }).form; //创建窗体
  2645. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/number.png)" }, "name": "数字实验室", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2646. break;
  2647. case "studentCourse": //项目管理 学生
  2648. _formdiv = new U.UF.UI.form(
  2649. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2650. $$("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 }), {
  2651. "id": "studentCourse",
  2652. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2653. "onresize": function () { }
  2654. }, {
  2655. closecallback: function () { }
  2656. }, { "style": { "height": "36px" } }).form; //创建窗体
  2657. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2658. break;
  2659. case "studentCourseS": //项目管理 老师
  2660. _formdiv = new U.UF.UI.form(
  2661. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2662. $$("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 }), {
  2663. "id": "studentCourseS",
  2664. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2665. "onresize": function () { }
  2666. }, {
  2667. closecallback: function () { }
  2668. }, { "style": { "height": "36px" } }).form; //创建窗体
  2669. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2670. break;
  2671. case "studentIndex": //项目中心
  2672. _formdiv = new U.UF.UI.form(
  2673. "项目中心",
  2674. $$("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 }), {
  2675. "id": "studentIndex",
  2676. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2677. "onresize": function () { }
  2678. }, {
  2679. closecallback: function () { }
  2680. }, { "style": { "height": "36px" } }).form; //创建窗体
  2681. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentIndex.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2682. break;
  2683. case "CaseDesignS":
  2684. _formdiv = new U.UF.UI.form(
  2685. "项目进展",
  2686. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/CaseDesignS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2687. "id": "case",
  2688. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2689. "onresize": function () { }
  2690. }, {
  2691. closecallback: function () { }
  2692. }, { "style": { "height": "36px" } }).form; //创建窗体
  2693. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/CaseDesignS.png)" }, "name": "项目进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2694. break;
  2695. case "tcStudent": //腾讯学生管理
  2696. _formdiv = new U.UF.UI.form(
  2697. "学生管理",
  2698. $$("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 }), {
  2699. "id": "tcStudent",
  2700. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2701. "onresize": function () { }
  2702. }, {
  2703. closecallback: function () { }
  2704. }, { "style": { "height": "36px" } }).form; //创建窗体
  2705. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2706. break;
  2707. case "tcSchool": //腾讯学校管理
  2708. _formdiv = new U.UF.UI.form(
  2709. "学校管理",
  2710. $$("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 }), {
  2711. "id": "tcSchool",
  2712. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2713. "onresize": function () { }
  2714. }, {
  2715. closecallback: function () { }
  2716. }, { "style": { "height": "36px" } }).form; //创建窗体
  2717. _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); } }
  2718. break;
  2719. case "tcTeacher": //腾讯学校管理
  2720. _formdiv = new U.UF.UI.form(
  2721. "教师管理",
  2722. $$("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 }), {
  2723. "id": "tcTeacher",
  2724. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2725. "onresize": function () { }
  2726. }, {
  2727. closecallback: function () { }
  2728. }, { "style": { "height": "36px" } }).form; //创建窗体
  2729. _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); } }
  2730. break;
  2731. case "tcData": //腾讯我的资料
  2732. _formdiv = new U.UF.UI.form(
  2733. "我的资料",
  2734. $$("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 }), {
  2735. "id": "tcData",
  2736. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2737. "onresize": function () { }
  2738. }, {
  2739. closecallback: function () { }
  2740. }, { "style": { "height": "36px" } }).form; //创建窗体
  2741. _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); } }
  2742. break;
  2743. case "tcNotice": //腾讯消息通知
  2744. _formdiv = new U.UF.UI.form(
  2745. "消息通知",
  2746. $$("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 }), {
  2747. "id": "tcNotice",
  2748. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2749. "onresize": function () { }
  2750. }, {
  2751. closecallback: function () { }
  2752. }, { "style": { "height": "36px" } }).form; //创建窗体
  2753. _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); } }
  2754. break;
  2755. case "myReport": //好友打开
  2756. _formdiv = new U.UF.UI.form(
  2757. "我的评价",
  2758. $$("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 }), {
  2759. "id": "myReport",
  2760. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2761. "onresize": function () { }
  2762. }, {
  2763. closecallback: function () { }
  2764. }, { "style": { "height": "36px" } }).form; //创建窗体
  2765. _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); } }
  2766. break;
  2767. case "learnAna": //好友打开
  2768. _formdiv = new U.UF.UI.form(
  2769. "课程分析",
  2770. $$("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 }), {
  2771. "id": "learnAna",
  2772. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2773. "onresize": function () { }
  2774. }, {
  2775. closecallback: function () { }
  2776. }, { "style": { "height": "36px" } }).form; //创建窗体
  2777. _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); } }
  2778. break;
  2779. case "AIChat": //AI助手
  2780. _formdiv = new U.UF.UI.form(
  2781. "AI助手",
  2782. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/"}), {
  2783. "id": "AIChat",
  2784. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2785. "onresize": function () { }
  2786. }, {
  2787. closecallback: function () { }
  2788. }, { "style": { "height": "36px" } }).form; //创建窗体
  2789. _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); } }
  2790. break;
  2791. case "AIAnalyse": //AI助手
  2792. _formdiv = new U.UF.UI.form(
  2793. "AI分析",
  2794. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/"}), {
  2795. "id": "AIAnalyse",
  2796. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2797. "onresize": function () { }
  2798. }, {
  2799. closecallback: function () { }
  2800. }, { "style": { "height": "36px" } }).form; //创建窗体
  2801. _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); } }
  2802. break;
  2803. }
  2804. //U.MD.D.I.openClick(str);
  2805. //如果有任务栏信息
  2806. if (_taskbar) {
  2807. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2808. }
  2809. }
  2810. // U.MD.D.I.openClick = function(str){
  2811. // var click = '';
  2812. // switch(str){
  2813. // case 'friend':
  2814. // click = '我的好友';
  2815. // break;
  2816. // case 'domain':
  2817. // click = '域名管理';
  2818. // break;
  2819. // case 'disk':
  2820. // click = '我的云盘';
  2821. // break;
  2822. // case 'word':
  2823. // click = 'Word';
  2824. // break;
  2825. // case 'excel':
  2826. // click = 'Execl';
  2827. // break;
  2828. // case 'txt':
  2829. // click = '文本文件';
  2830. // break;
  2831. // case 'lookupFriend':
  2832. // click = '查找好友';
  2833. // break;
  2834. // case 'ftp':
  2835. // click = 'FTP';
  2836. // break;
  2837. // case 'group':
  2838. // click = '群组';
  2839. // break;
  2840. // case 'set':
  2841. // click = '我的设置';
  2842. // break;
  2843. // case 'systemSet':
  2844. // click = '系统设置';
  2845. // break;
  2846. // case 'boomYun':
  2847. // click = '互联办公';
  2848. // break;
  2849. // case 'xz':
  2850. // click = '云端下载';
  2851. // break;
  2852. // case 'client':
  2853. // click = '有思浏览器';
  2854. // break;
  2855. // case 'backEndProgramming':
  2856. // click = '在线后台编程';
  2857. // break;
  2858. // case 'frontEndProgramming':
  2859. // click = '在线前端编程';
  2860. // break;
  2861. // default: break;
  2862. // }
  2863. // if(U.MD.D.I.Ip && click){
  2864. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  2865. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  2866. // })
  2867. // }
  2868. // }
  2869. /**
  2870. *函数作用:ajax简易函数,使用post格式
  2871. *@param url {data} 后台地址
  2872. *@param data {data} 参数json
  2873. *@param fn {data} 回调函数
  2874. *
  2875. */
  2876. // U.MD.D.I.Mysqlrequest = function(url,fn){
  2877. // var xhr = new XMLHttpRequest();
  2878. // xhr.open("GET",url,true);
  2879. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  2880. // xhr.onreadystatechange = function(){
  2881. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  2882. // fn.call(this,xhr.responseText);
  2883. // }
  2884. // };
  2885. // xhr.send();
  2886. // }
  2887. /*判断是否是内网IP*/
  2888. // U.MD.D.I.isInnerIPFn = function(str){
  2889. // var curPageUrl = str;
  2890. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  2891. // curPageUrl =curPageUrl.replace(reg1,'');
  2892. // // console.log('curPageUrl-1 '+curPageUrl);
  2893. // var reg2 = /\:+/g;//替换冒号为一点
  2894. // curPageUrl =curPageUrl.replace(reg2,'.');
  2895. // // console.log('curPageUrl-2 '+curPageUrl);
  2896. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  2897. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  2898. // if(curPageUrl[2] != '16'){
  2899. // return ipAddress;
  2900. // }else{
  2901. // return false;
  2902. // }
  2903. // }
  2904. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  2905. // //compatibility for firefox and chrome
  2906. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  2907. // var pc = new myPeerConnection({
  2908. // iceServers: []
  2909. // }),
  2910. // noop = function() {},
  2911. // localIPs = {},
  2912. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  2913. // key;
  2914. // function iterateIP(ip) {
  2915. // if (!localIPs[ip]) onNewIP(ip);
  2916. // localIPs[ip] = true;
  2917. // }
  2918. // //create a bogus data channel
  2919. // pc.createDataChannel("");
  2920. // // create offer and set local description
  2921. // pc.createOffer().then(function(sdp) {
  2922. // sdp.sdp.split('\n').forEach(function(line) {
  2923. // if (line.indexOf('candidate') < 0) return;
  2924. // line.match(ipRegex).forEach(iterateIP);
  2925. // });
  2926. // pc.setLocalDescription(sdp, noop, noop);
  2927. // }).catch(function(reason) {
  2928. // // An error occurred, so handle the failure to connect
  2929. // });
  2930. // //sten for candidate events
  2931. // pc.onicecandidate = function(ice) {
  2932. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  2933. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  2934. // };
  2935. // }
  2936. // U.MD.D.I.getUserIpBool = function(callback){
  2937. // U.MD.D.I.getUserIP(function(ip){
  2938. // alert("Got IP! :" + ip);
  2939. // });
  2940. //}
  2941. //#endregion
  2942. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  2943. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2944. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2945. _userinfo = US.userInfo, //登录用户信息
  2946. _userid = US.userInfo.userid //登录用户id
  2947. let _iframe;
  2948. let _cid = cid,
  2949. _stage = stage,
  2950. _task = task,
  2951. _tool = tool;
  2952. var _jie = $$("div", {
  2953. "style": {
  2954. "position": "absolute",
  2955. "bottom": "50px",
  2956. "right": "50px",
  2957. "zIndex": "9999",
  2958. "backgroundColor": "#2268bc",
  2959. "color": "#fff",
  2960. "padding": "12px 20px",
  2961. "cursor": "pointer",
  2962. "borderRadius": "4px",
  2963. },
  2964. "innerHTML": "提交作业"
  2965. })
  2966. let aTool = ''
  2967. let _loading = document.createElement('div')
  2968. _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;"
  2969. // _loading.id = "";
  2970. let _lchild = document.createElement('div')
  2971. let _limg = document.createElement('img')
  2972. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  2973. _limg.style = "width: 26px;margin-right: 10px;"
  2974. _lchild.appendChild(_limg)
  2975. let _lspan = document.createElement('span')
  2976. _lspan.innerHTML = "上传中..."
  2977. _lchild.appendChild(_lspan)
  2978. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  2979. _loading.appendChild(_lchild)
  2980. var _box = $$('div', {
  2981. "style": {
  2982. "position": "relative",
  2983. "width": "100%",
  2984. "height": "100%",
  2985. },
  2986. })
  2987. _box.appendChild(_loading)
  2988. _box.id = str + '_loadLi'
  2989. switch (str) {
  2990. case "whiteboard":
  2991. aTool = 1;
  2992. _iframe = $$("iframe", {
  2993. "frameborder": "no",
  2994. "border": "0",
  2995. "scrolling ": "no",
  2996. "style": {
  2997. "cssText": "border:0;width:100%;height:100%"
  2998. },
  2999. "src": "https://iwb.cocorobo.cn/"
  3000. })
  3001. _box.appendChild(_iframe);
  3002. _box.appendChild(_jie);
  3003. _formdiv = new U.UF.UI.form(
  3004. "电子白板",
  3005. _box, {
  3006. "id": "whiteboard" + cid + stage + task + tool,
  3007. "style": {
  3008. "width": "90%",
  3009. "height": "90%",
  3010. "overflow": 'hidden'
  3011. },
  3012. "onresize": function () { }
  3013. }, {
  3014. closecallback: function () { }
  3015. }, {
  3016. "style": {
  3017. "height": "36px"
  3018. }
  3019. }).form; //创建窗体
  3020. _taskbar = {
  3021. "id": str + _formdiv.id,
  3022. "style": {
  3023. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3024. },
  3025. "name": "电子白板",
  3026. "forms": _formdiv,
  3027. "click": function () {
  3028. U.MD.D.I.openApplication(str, obj, info);
  3029. }
  3030. }
  3031. break;
  3032. case "mind":
  3033. aTool = 3;
  3034. _iframe = $$("iframe", {
  3035. "frameborder": "no",
  3036. "border": "0",
  3037. "scrolling ": "no",
  3038. "style": {
  3039. "cssText": "border:0;width:100%;height:100%"
  3040. },
  3041. "src": "/kityminder-editor/dist/index.html"
  3042. })
  3043. _box.appendChild(_iframe);
  3044. _box.appendChild(_jie);
  3045. _formdiv = new U.UF.UI.form(
  3046. "思维导图",
  3047. _box, { //"/jsmind/example/demo.html"
  3048. "id": "mind" + cid + stage + task + tool,
  3049. "style": {
  3050. "width": "90%",
  3051. "height": "90%",
  3052. "overflow": 'hidden'
  3053. },
  3054. "onresize": function () { }
  3055. }, {
  3056. closecallback: function () { }
  3057. }, {
  3058. "style": {
  3059. "height": "36px"
  3060. }
  3061. }).form; //创建窗体
  3062. _taskbar = {
  3063. "id": str + _formdiv.id,
  3064. "style": {
  3065. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3066. },
  3067. "name": "思维导图",
  3068. "forms": _formdiv,
  3069. "click": function () {
  3070. U.MD.D.I.openApplication(str, obj, info);
  3071. }
  3072. }
  3073. break;
  3074. case "MindMap":
  3075. aTool = 3;
  3076. _iframe = $$("iframe", {
  3077. "frameborder": "no",
  3078. "border": "0",
  3079. "scrolling ": "no",
  3080. "style": {
  3081. "cssText": "border:0;width:100%;height:100%"
  3082. },
  3083. "src": "//cloud.cocorobo.cn/mind/"
  3084. })
  3085. _box.appendChild(_iframe);
  3086. _box.appendChild(_jie);
  3087. _formdiv = new U.UF.UI.form(
  3088. "思维导图",
  3089. _box, { //"/jsmind/example/demo.html"
  3090. "id": "mind" + cid + stage + task + tool,
  3091. "style": {
  3092. "width": "90%",
  3093. "height": "90%",
  3094. "overflow": 'hidden'
  3095. },
  3096. "onresize": function () { }
  3097. }, {
  3098. closecallback: function () { }
  3099. }, {
  3100. "style": {
  3101. "height": "36px"
  3102. }
  3103. }).form; //创建窗体
  3104. _taskbar = {
  3105. "id": str + _formdiv.id,
  3106. "style": {
  3107. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3108. },
  3109. "name": "思维导图",
  3110. "forms": _formdiv,
  3111. "click": function () {
  3112. U.MD.D.I.openApplication(str, obj, info);
  3113. }
  3114. }
  3115. break;
  3116. case "doc":
  3117. aTool = 6;
  3118. _iframe = $$("iframe", {
  3119. "frameborder": "no",
  3120. "border": "0",
  3121. "scrolling ": "no",
  3122. "style": {
  3123. "cssText": "border:0;width:100%;height:100%"
  3124. },
  3125. "src": "/Office/Word/WordEditArea.htm"
  3126. })
  3127. _box.appendChild(_iframe);
  3128. _box.appendChild(_jie);
  3129. _formdiv = new U.UF.UI.form(
  3130. "协同文档",
  3131. _box, {
  3132. "id": "doc" + cid + stage + task + tool,
  3133. "style": {
  3134. "width": "90%",
  3135. "height": "90%",
  3136. "overflow": 'hidden'
  3137. },
  3138. "onresize": function () { }
  3139. }, {
  3140. closecallback: function () { }
  3141. }, {
  3142. "style": {
  3143. "height": "36px"
  3144. }
  3145. }).form; //创建窗体
  3146. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3147. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3148. })
  3149. _taskbar = {
  3150. "id": str + _formdiv.id,
  3151. "style": {
  3152. "backgroundImage": "url(/img/icon/doc.png)"
  3153. },
  3154. "name": "协同文档",
  3155. "forms": _formdiv,
  3156. "click": function () {
  3157. U.MD.D.I.openApplication(str, obj, info);
  3158. }
  3159. }
  3160. break;
  3161. case "mindNetwork": //好友打开
  3162. aTool = 7;
  3163. _iframe = $$("iframe", {
  3164. "webkitallowfullscreen": "",
  3165. "mozallowfullscreen": "",
  3166. "allowfullscreen": "",
  3167. "frameborder": "no",
  3168. "border": "0",
  3169. "scrolling ": "no",
  3170. "style": {
  3171. "cssText": "border:0; width:100%; height:100%;"
  3172. },
  3173. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3174. })
  3175. _box.appendChild(_iframe);
  3176. _box.appendChild(_jie);
  3177. _formdiv = new U.UF.UI.form(
  3178. "思维网格",
  3179. _box, {
  3180. "id": "mindNetwork" + cid + stage + task + tool,
  3181. "style": {
  3182. "width": "90%",
  3183. "height": "90%",
  3184. "overflow": 'hidden'
  3185. },
  3186. "onresize": function () { }
  3187. }, {
  3188. closecallback: function () { }
  3189. }, {
  3190. "style": {
  3191. "height": "36px"
  3192. }
  3193. }).form; //创建窗体
  3194. _taskbar = {
  3195. "id": str + _formdiv.id,
  3196. "style": {
  3197. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3198. },
  3199. "name": "思维网格",
  3200. "forms": _formdiv,
  3201. "click": function () {
  3202. U.MD.D.I.openApplication(str, obj, info);
  3203. }
  3204. }
  3205. break;
  3206. case "courseDesign":
  3207. _iframe = $$("iframe", {
  3208. "webkitallowfullscreen": "",
  3209. "mozallowfullscreen": "",
  3210. "allowfullscreen": "",
  3211. "frameborder": "no",
  3212. "border": "0",
  3213. "scrolling ": "no",
  3214. "style": {
  3215. "cssText": "border:0; width:100%; height:100%;"
  3216. },
  3217. "src": "/course-design-vue"
  3218. })
  3219. _box.appendChild(_iframe);
  3220. _box.appendChild(_jie);
  3221. _formdiv = new U.UF.UI.form(
  3222. "项目设计",
  3223. _box, {
  3224. "id": "courseDesign" + cid + stage + task + tool,
  3225. "style": {
  3226. "width": "90%",
  3227. "height": "90%",
  3228. "overflow": 'hidden'
  3229. },
  3230. "onresize": function () { }
  3231. }, {
  3232. closecallback: function () { }
  3233. }, {
  3234. "style": {
  3235. "height": "36px"
  3236. }
  3237. }).form; //创建窗体
  3238. _taskbar = {
  3239. "id": str + _formdiv.id,
  3240. "style": {
  3241. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3242. },
  3243. "name": "项目设计",
  3244. "forms": _formdiv,
  3245. "click": function () {
  3246. U.MD.D.I.openApplication(str, obj, info);
  3247. }
  3248. }
  3249. break;
  3250. }
  3251. const script1 = document.createElement("script");
  3252. script1.type = "text/javascript";
  3253. // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3254. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3255. const script2 = document.createElement("script");
  3256. script2.type = "text/javascript";
  3257. // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3258. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3259. const script3 = document.createElement("script");
  3260. script3.type = "text/javascript";
  3261. script3.charset = "UTF-8";
  3262. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3263. const script4 = document.createElement("script");
  3264. script4.type = "text/javascript";
  3265. // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  3266. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3267. if (_iframe) {
  3268. if (str == 'doc') {
  3269. U.UF.DL.iframeLoad(_iframe, function () {
  3270. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3271. _iframe.contentWindow.document.body.appendChild(script1);
  3272. _iframe.contentWindow.document.body.appendChild(script2);
  3273. // _iframe.contentWindow.document.body.appendChild(script3);
  3274. _iframe.contentWindow.document.body.appendChild(script4);
  3275. })
  3276. } else if (str == 'courseDesign') {
  3277. U.UF.DL.iframeLoad(_iframe, function () {
  3278. // _iframe.contentWindow.U.MD.O.W.load();
  3279. // _iframe.contentWindow.document.body.appendChild(script1);
  3280. _iframe.contentWindow.document.body.appendChild(script2);
  3281. _iframe.contentWindow.document.body.appendChild(script4);
  3282. })
  3283. } else if (str == 'mind') {
  3284. U.UF.DL.iframeLoad(_iframe, function () {
  3285. //
  3286. _iframe.contentWindow.document.body.appendChild(script1);
  3287. _iframe.contentWindow.document.body.appendChild(script2);
  3288. _iframe.contentWindow.document.body.appendChild(script4);
  3289. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3290. })
  3291. } else if (str == 'whiteboard') {
  3292. _iframe.onload = () => {
  3293. _iframe.contentWindow.document.body.appendChild(script1);
  3294. _iframe.contentWindow.document.body.appendChild(script2);
  3295. _iframe.contentWindow.document.body.appendChild(script4);
  3296. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3297. };
  3298. } else {
  3299. _iframe.onload = () => {
  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. }
  3306. _jie.onclick = async () => {
  3307. let text = ''
  3308. if (aTool == 1) {
  3309. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3310. } else if (aTool == 6) {
  3311. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3312. } else if (aTool == 3) {
  3313. text = await U.MD.D.I.getEditorContent(_iframe);
  3314. }
  3315. _loading.style.display = 'flex'
  3316. console.log(_loading);
  3317. var _ajs = _iframe.contentWindow.document.createElement("script");
  3318. _ajs.type = "text/javascript";
  3319. _ajs.innerHTML =
  3320. // 'console.log(' + _loading + ');\n' +
  3321. 'var _js = document.createElement("script");\n' +
  3322. '_js.type="text/javascript";\n' +
  3323. '_js.charset="UTF-8";\n' +
  3324. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3325. "_js.onload = function(){\n" +
  3326. ' var a = document.getElementsByTagName("img")\n' +
  3327. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3328. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3329. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3330. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3331. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3332. "beforeUpload_shishi(file," +
  3333. "'" +
  3334. _userid +
  3335. "'" +
  3336. ", " +
  3337. "'" +
  3338. _cid +
  3339. "'" +
  3340. ", " +
  3341. "'" +
  3342. _stage +
  3343. "'" +
  3344. ", " +
  3345. "'" +
  3346. _task +
  3347. "'" +
  3348. ", " +
  3349. "'" +
  3350. _tool +
  3351. "'" +
  3352. ", " +
  3353. "'" +
  3354. str + '_loadLi' +
  3355. "'" +
  3356. ", " +
  3357. "'" +
  3358. aTool +
  3359. "'" +
  3360. ", " +
  3361. "`" +
  3362. text +
  3363. "`" +
  3364. ")\n" +
  3365. " });\n" +
  3366. "}\n" +
  3367. "document.head.appendChild(_js);\n";
  3368. _iframe.contentWindow.document.head.appendChild(_ajs);
  3369. }
  3370. }
  3371. //U.MD.D.I.openClick(str);
  3372. //如果有任务栏信息
  3373. // if (_taskbar) {
  3374. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3375. // }
  3376. }
  3377. U.MD.D.I.getEditorContent = function (iframe) {
  3378. return new Promise((resolve, reject) => {
  3379. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  3380. console.log(content);
  3381. resolve(content)
  3382. });
  3383. });
  3384. }
  3385. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  3386. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  3387. // if (res.value[0].length > 0) {
  3388. // // resolve(res.value[0][0].text);
  3389. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  3390. // $(fileInput).val('');
  3391. // });
  3392. // }
  3393. // }, [], { "type": "GET", "withCredentials": true });
  3394. var xmlhttp;
  3395. var Mac, Sn, DeviceId
  3396. if (window.XMLHttpRequest) {
  3397. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  3398. xmlhttp = new XMLHttpRequest();
  3399. }
  3400. else {
  3401. // IE6, IE5 浏览器执行代码
  3402. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  3403. }
  3404. xmlhttp.onreadystatechange = function () {
  3405. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  3406. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  3407. // resolve(res.value[0][0].text);
  3408. if (type == '2') {
  3409. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  3410. $(fileInput).val('');
  3411. });
  3412. } else if (type == '3') {
  3413. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  3414. }
  3415. } else {
  3416. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  3417. }
  3418. }
  3419. }
  3420. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  3421. xmlhttp.send();
  3422. }
  3423. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  3424. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3425. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3426. _userinfo = US.userInfo, //登录用户信息
  3427. _userid = US.userInfo.userid //登录用户id
  3428. let _iframe;
  3429. let _cid = cid,
  3430. _stage = stage,
  3431. _task = task,
  3432. _tool = tool;
  3433. var _jie = $$("div", {
  3434. "style": {
  3435. "position": "absolute",
  3436. "bottom": "50px",
  3437. "right": "50px",
  3438. "zIndex": "9999",
  3439. "backgroundColor": "#2268bc",
  3440. "color": "#fff",
  3441. "padding": "12px 20px",
  3442. "cursor": "pointer",
  3443. "borderRadius": "4px",
  3444. },
  3445. "innerHTML": "确认并提交"
  3446. })
  3447. let aTool = ''
  3448. let _loading = document.createElement('div')
  3449. _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;"
  3450. // _loading.id = "";
  3451. let _lchild = document.createElement('div')
  3452. let _limg = document.createElement('img')
  3453. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  3454. _limg.style = "width: 26px;margin-right: 10px;"
  3455. _lchild.appendChild(_limg)
  3456. let _lspan = document.createElement('span')
  3457. _lspan.innerHTML = "上传中..."
  3458. _lchild.appendChild(_lspan)
  3459. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  3460. _loading.appendChild(_lchild)
  3461. var _box = $$('div', {
  3462. "style": {
  3463. "position": "relative",
  3464. "width": "100%",
  3465. "height": "100%",
  3466. },
  3467. })
  3468. _box.appendChild(_loading)
  3469. _box.id = str + '_loadLi'
  3470. switch (str) {
  3471. case "whiteboard":
  3472. aTool = 1;
  3473. _iframe = $$("iframe", {
  3474. "frameborder": "no",
  3475. "border": "0",
  3476. "scrolling ": "no",
  3477. "style": {
  3478. "cssText": "border:0;width:100%;height:100%"
  3479. },
  3480. "src": "https://iwb.cocorobo.cn/"
  3481. })
  3482. _box.appendChild(_iframe);
  3483. _box.appendChild(_jie);
  3484. _formdiv = new U.UF.UI.form(
  3485. "电子白板",
  3486. _box, {
  3487. "id": "whiteboards" + cid + stage + task + tool,
  3488. "style": {
  3489. "width": "90%",
  3490. "height": "90%",
  3491. "overflow": 'hidden'
  3492. },
  3493. "onresize": function () { }
  3494. }, {
  3495. closecallback: function () { }
  3496. }, {
  3497. "style": {
  3498. "height": "36px"
  3499. }
  3500. }).form; //创建窗体
  3501. _taskbar = {
  3502. "id": str + _formdiv.id,
  3503. "style": {
  3504. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3505. },
  3506. "name": "电子白板",
  3507. "forms": _formdiv,
  3508. "click": function () {
  3509. U.MD.D.I.openApplication(str, obj, info);
  3510. }
  3511. }
  3512. break;
  3513. case "mind":
  3514. aTool = 3;
  3515. _iframe = $$("iframe", {
  3516. "frameborder": "no",
  3517. "border": "0",
  3518. "scrolling ": "no",
  3519. "style": {
  3520. "cssText": "border:0;width:100%;height:100%"
  3521. },
  3522. "src": "/kityminder-editor/dist/index.html"
  3523. });
  3524. _box.appendChild(_iframe);
  3525. _box.appendChild(_jie);
  3526. _formdiv = new U.UF.UI.form(
  3527. "思维导图",
  3528. _box, { //"/jsmind/example/demo.html"
  3529. "id": "minds" + cid + stage + task + tool,
  3530. "style": {
  3531. "width": "90%",
  3532. "height": "90%",
  3533. "overflow": 'hidden'
  3534. },
  3535. "onresize": function () { }
  3536. }, {
  3537. closecallback: function () { }
  3538. }, {
  3539. "style": {
  3540. "height": "36px"
  3541. }
  3542. }).form; //创建窗体
  3543. _taskbar = {
  3544. "id": str + _formdiv.id,
  3545. "style": {
  3546. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3547. },
  3548. "name": "思维导图",
  3549. "forms": _formdiv,
  3550. "click": function () {
  3551. U.MD.D.I.openApplication(str, obj, info);
  3552. }
  3553. }
  3554. break;
  3555. case "doc":
  3556. aTool = 6;
  3557. _iframe = $$("iframe", {
  3558. "frameborder": "no",
  3559. "border": "0",
  3560. "scrolling ": "no",
  3561. "style": {
  3562. "cssText": "border:0;width:100%;height:100%"
  3563. },
  3564. "src": "/Office/Word/WordEditArea.htm"
  3565. })
  3566. _box.appendChild(_iframe);
  3567. _box.appendChild(_jie);
  3568. _formdiv = new U.UF.UI.form(
  3569. "协同文档",
  3570. _box, {
  3571. "id": "docs" + cid + stage + task + tool,
  3572. "style": {
  3573. "width": "90%",
  3574. "height": "90%",
  3575. "overflow": 'hidden'
  3576. },
  3577. "onresize": function () { }
  3578. }, {
  3579. closecallback: function () { }
  3580. }, {
  3581. "style": {
  3582. "height": "36px"
  3583. }
  3584. }).form; //创建窗体
  3585. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3586. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  3587. })
  3588. _taskbar = {
  3589. "id": str + _formdiv.id,
  3590. "style": {
  3591. "backgroundImage": "url(/img/icon/doc.png)"
  3592. },
  3593. "name": "协同文档",
  3594. "forms": _formdiv,
  3595. "click": function () {
  3596. U.MD.D.I.openApplication(str, obj, info);
  3597. }
  3598. }
  3599. break;
  3600. }
  3601. const script1 = document.createElement("script");
  3602. script1.type = "text/javascript";
  3603. // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3604. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3605. const script2 = document.createElement("script");
  3606. script2.type = "text/javascript";
  3607. // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3608. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3609. const script3 = document.createElement("script");
  3610. script3.type = "text/javascript";
  3611. script3.charset = "UTF-8";
  3612. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3613. const script4 = document.createElement("script");
  3614. script4.type = "text/javascript";
  3615. // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu4.js";
  3616. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  3617. if (_iframe) {
  3618. if (str == 'doc') {
  3619. U.UF.DL.iframeLoad(_iframe, function () {
  3620. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  3621. _iframe.contentWindow.document.body.appendChild(script1);
  3622. _iframe.contentWindow.document.body.appendChild(script2);
  3623. // _iframe.contentWindow.document.body.appendChild(script3);
  3624. _iframe.contentWindow.document.body.appendChild(script4);
  3625. })
  3626. } else if (str == 'mind') {
  3627. U.UF.DL.iframeLoad(_iframe, function () {
  3628. _iframe.contentWindow.document.body.appendChild(script1);
  3629. _iframe.contentWindow.document.body.appendChild(script2);
  3630. _iframe.contentWindow.document.body.appendChild(script4);
  3631. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  3632. })
  3633. } else {
  3634. _iframe.onload = () => {
  3635. _iframe.contentWindow.document.body.appendChild(script1);
  3636. _iframe.contentWindow.document.body.appendChild(script2);
  3637. // _iframe.contentWindow.document.body.appendChild(script3);
  3638. _iframe.contentWindow.document.body.appendChild(script4);
  3639. };
  3640. }
  3641. _jie.onclick = async () => {
  3642. let text = ''
  3643. if (aTool == 6) {
  3644. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3645. } else if (aTool == 3) {
  3646. text = await U.MD.D.I.getEditorContent(_iframe);
  3647. }
  3648. _loading.style.display = 'flex'
  3649. console.log(_loading);
  3650. var _ajs = _iframe.contentWindow.document.createElement("script");
  3651. _ajs.type = "text/javascript";
  3652. _ajs.innerHTML =
  3653. // 'console.log(' + _loading + ');\n' +
  3654. 'var _js = document.createElement("script");\n' +
  3655. '_js.type="text/javascript";\n' +
  3656. '_js.charset="UTF-8";\n' +
  3657. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3658. "_js.onload = function(){\n" +
  3659. ' var a = document.getElementsByTagName("img")\n' +
  3660. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3661. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3662. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3663. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3664. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3665. "beforeUpload_shishi(file," +
  3666. "'" +
  3667. _userid +
  3668. "'" +
  3669. ", " +
  3670. "'" +
  3671. _cid +
  3672. "'" +
  3673. ", " +
  3674. "'" +
  3675. _stage +
  3676. "'" +
  3677. ", " +
  3678. "'" +
  3679. _task +
  3680. "'" +
  3681. ", " +
  3682. "'" +
  3683. _tool +
  3684. "'" +
  3685. ", " +
  3686. "'" +
  3687. str + '_loadLi' +
  3688. "'" +
  3689. ", " +
  3690. "'" +
  3691. aTool +
  3692. "'" +
  3693. ", " +
  3694. "`" +
  3695. text +
  3696. "`" +
  3697. ")\n" +
  3698. " });\n" +
  3699. "}\n" +
  3700. "document.head.appendChild(_js);\n";
  3701. _iframe.contentWindow.document.head.appendChild(_ajs);
  3702. }
  3703. }
  3704. //U.MD.D.I.openClick(str);
  3705. //如果有任务栏信息
  3706. // if (_taskbar) {
  3707. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3708. // }
  3709. }
  3710. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  3711. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3712. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3713. _userinfo = US.userInfo, //登录用户信息
  3714. _userid = US.userInfo.userid //登录用户id
  3715. let _iframe;
  3716. let _cid = cid,
  3717. _stage = stage,
  3718. _task = task,
  3719. _tool = tool;
  3720. var _jie = $$("div", {
  3721. "style": {
  3722. "position": "absolute",
  3723. "bottom": "50px",
  3724. "right": "50px",
  3725. "zIndex": "9999",
  3726. "backgroundColor": "#2268bc",
  3727. "color": "#fff",
  3728. "padding": "12px 20px",
  3729. "cursor": "pointer",
  3730. "borderRadius": "4px",
  3731. },
  3732. "innerHTML": "上传模板"
  3733. })
  3734. let aTool = ''
  3735. let _loading = document.createElement('div')
  3736. _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;"
  3737. // _loading.id = "";
  3738. let _lchild = document.createElement('div')
  3739. let _limg = document.createElement('img')
  3740. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  3741. _limg.style = "width: 26px;margin-right: 10px;"
  3742. _lchild.appendChild(_limg)
  3743. let _lspan = document.createElement('span')
  3744. _lspan.innerHTML = "上传中..."
  3745. _lchild.appendChild(_lspan)
  3746. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  3747. _loading.appendChild(_lchild)
  3748. var _box = $$('div', {
  3749. "style": {
  3750. "position": "relative",
  3751. "width": "100%",
  3752. "height": "100%",
  3753. },
  3754. })
  3755. _box.appendChild(_loading)
  3756. _box.id = str + '_loadLi'
  3757. switch (str) {
  3758. case "whiteboard":
  3759. aTool = 1;
  3760. _iframe = $$("iframe", {
  3761. "frameborder": "no",
  3762. "border": "0",
  3763. "scrolling ": "no",
  3764. "style": {
  3765. "cssText": "border:0;width:100%;height:100%"
  3766. },
  3767. "src": "https://iwb.cocorobo.cn/"
  3768. })
  3769. _box.appendChild(_iframe);
  3770. _box.appendChild(_jie);
  3771. _formdiv = new U.UF.UI.form(
  3772. "电子白板",
  3773. _box, {
  3774. "id": "whiteboards" + cid + stage + task + tool,
  3775. "style": {
  3776. "width": "90%",
  3777. "height": "90%",
  3778. "overflow": 'hidden'
  3779. },
  3780. "onresize": function () { }
  3781. }, {
  3782. closecallback: function () { }
  3783. }, {
  3784. "style": {
  3785. "height": "36px"
  3786. }
  3787. }).form; //创建窗体
  3788. _taskbar = {
  3789. "id": str + _formdiv.id,
  3790. "style": {
  3791. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3792. },
  3793. "name": "电子白板",
  3794. "forms": _formdiv,
  3795. "click": function () {
  3796. U.MD.D.I.openApplication(str, obj, info);
  3797. }
  3798. }
  3799. break;
  3800. case "mind":
  3801. aTool = 3;
  3802. _iframe = $$("iframe", {
  3803. "frameborder": "no",
  3804. "border": "0",
  3805. "scrolling ": "no",
  3806. "style": {
  3807. "cssText": "border:0;width:100%;height:100%"
  3808. },
  3809. "src": "/kityminder-editor/dist/index.html"
  3810. });
  3811. _box.appendChild(_iframe);
  3812. _box.appendChild(_jie);
  3813. _formdiv = new U.UF.UI.form(
  3814. "思维导图",
  3815. _box, { //"/jsmind/example/demo.html"
  3816. "id": "minds" + cid + stage + task + tool,
  3817. "style": {
  3818. "width": "90%",
  3819. "height": "90%",
  3820. "overflow": 'hidden'
  3821. },
  3822. "onresize": function () { }
  3823. }, {
  3824. closecallback: function () { }
  3825. }, {
  3826. "style": {
  3827. "height": "36px"
  3828. }
  3829. }).form; //创建窗体
  3830. _taskbar = {
  3831. "id": str + _formdiv.id,
  3832. "style": {
  3833. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3834. },
  3835. "name": "思维导图",
  3836. "forms": _formdiv,
  3837. "click": function () {
  3838. U.MD.D.I.openApplication(str, obj, info);
  3839. }
  3840. }
  3841. break;
  3842. case "doc":
  3843. aTool = 6;
  3844. _iframe = $$("iframe", {
  3845. "frameborder": "no",
  3846. "border": "0",
  3847. "scrolling ": "no",
  3848. "style": {
  3849. "cssText": "border:0;width:100%;height:100%"
  3850. },
  3851. "src": "/Office/Word/WordEditArea.htm"
  3852. })
  3853. _box.appendChild(_iframe);
  3854. _box.appendChild(_jie);
  3855. _formdiv = new U.UF.UI.form(
  3856. "协同文档",
  3857. _box, {
  3858. "id": "docs" + cid + stage + task + tool,
  3859. "style": {
  3860. "width": "90%",
  3861. "height": "90%",
  3862. "overflow": 'hidden'
  3863. },
  3864. "onresize": function () { }
  3865. }, {
  3866. closecallback: function () { }
  3867. }, {
  3868. "style": {
  3869. "height": "36px"
  3870. }
  3871. }).form; //创建窗体
  3872. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3873. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  3874. })
  3875. _taskbar = {
  3876. "id": str + _formdiv.id,
  3877. "style": {
  3878. "backgroundImage": "url(/img/icon/doc.png)"
  3879. },
  3880. "name": "协同文档",
  3881. "forms": _formdiv,
  3882. "click": function () {
  3883. U.MD.D.I.openApplication(str, obj, info);
  3884. }
  3885. }
  3886. break;
  3887. }
  3888. const script1 = document.createElement("script");
  3889. script1.type = "text/javascript";
  3890. // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3891. // script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3892. // const script2 = document.createElement("script");
  3893. // script2.type = "text/javascript";
  3894. // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3895. // script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3896. // const script3 = document.createElement("script");
  3897. // script3.type = "text/javascript";
  3898. // script3.charset = "UTF-8";
  3899. // script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3900. // const script4 = document.createElement("script");
  3901. // script4.type = "text/javascript";
  3902. // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu4.js";
  3903. // script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  3904. if (_iframe) {
  3905. if (str == 'doc') {
  3906. U.UF.DL.iframeLoad(_iframe, function () {
  3907. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  3908. })
  3909. } else if (str == 'mind') {
  3910. U.UF.DL.iframeLoad(_iframe, function () {
  3911. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  3912. })
  3913. } else if (str == 'whiteboard') {
  3914. U.UF.DL.iframeLoad(_iframe, function () {
  3915. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  3916. })
  3917. } else {
  3918. _iframe.onload = () => {
  3919. };
  3920. }
  3921. _jie.onclick = async () => {
  3922. let text = ''
  3923. let type = '2'
  3924. if (aTool == 1) {
  3925. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3926. type = '3'
  3927. } else if (aTool == 6) {
  3928. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3929. type = '2'
  3930. } else if (aTool == 3) {
  3931. text = await U.MD.D.I.getEditorContent(_iframe);
  3932. type = '1'
  3933. }
  3934. _loading.style.display = 'flex'
  3935. U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading, _lspan)
  3936. }
  3937. }
  3938. //U.MD.D.I.openClick(str);
  3939. //如果有任务栏信息
  3940. // if (_taskbar) {
  3941. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3942. // }
  3943. }
  3944. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  3945. var xmlhttp;
  3946. var Mac, Sn, DeviceId
  3947. if (window.XMLHttpRequest) {
  3948. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  3949. xmlhttp = new XMLHttpRequest();
  3950. }
  3951. else {
  3952. // IE6, IE5 浏览器执行代码
  3953. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  3954. }
  3955. xmlhttp.onreadystatechange = function () {
  3956. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  3957. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  3958. // resolve(res.value[0][0].text);
  3959. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  3960. $(fileInput).val('');
  3961. });
  3962. }
  3963. }
  3964. }
  3965. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  3966. xmlhttp.send();
  3967. }
  3968. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  3969. var xmlhttp;
  3970. var Mac, Sn, DeviceId
  3971. if (window.XMLHttpRequest) {
  3972. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  3973. xmlhttp = new XMLHttpRequest();
  3974. }
  3975. else {
  3976. // IE6, IE5 浏览器执行代码
  3977. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  3978. }
  3979. xmlhttp.onreadystatechange = function () {
  3980. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  3981. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  3982. // resolve(res.value[0][0].text);
  3983. if (type == '2') {
  3984. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  3985. $(fileInput).val('');
  3986. });
  3987. } else if (type == '3') {
  3988. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  3989. }
  3990. }else {
  3991. iframe.contentWindow.h.app.updateScene({ elements: [] })
  3992. }
  3993. }
  3994. }
  3995. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  3996. xmlhttp.send();
  3997. }
  3998. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  3999. var xmlhttp;
  4000. var Mac, Sn, DeviceId
  4001. if (window.XMLHttpRequest) {
  4002. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  4003. xmlhttp = new XMLHttpRequest();
  4004. }
  4005. else {
  4006. // IE6, IE5 浏览器执行代码
  4007. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  4008. }
  4009. xmlhttp.onreadystatechange = function () {
  4010. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  4011. if (xmlhttp.response) {
  4012. // resolve(res.value[0][0].text);
  4013. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  4014. // $(fileInput).val('');
  4015. // });
  4016. span.innerHTML = '上传成功'
  4017. setTimeout(() => {
  4018. loading.style.display = 'none'
  4019. }, 1000);
  4020. }
  4021. }
  4022. }
  4023. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  4024. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  4025. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  4026. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  4027. // 设置请求头,表示请求体的编码格式
  4028. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
  4029. // 设置请求体,使用url-encoded格式的数据
  4030. }