DeskTop.js 239 KB

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