DeskTop.js 229 KB

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