DeskTop.js 244 KB

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