DeskTop.js 231 KB

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