DeskTop.js 237 KB

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