DeskTop.js 248 KB

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