DeskTop.js 229 KB

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