DeskTop.js 244 KB

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