DeskTop.js 247 KB

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