DeskTop.js 204 KB

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