DeskTop.js 241 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105
  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 == "28") {
  1214. U.MD.D.I.openApplication("translation")
  1215. } else if (e.data.tools && e.data.tools == "37") {
  1216. U.MD.D.I.openApplication("mohe")
  1217. } else if (e.data.tools && e.data.tools == "38") {
  1218. U.MD.D.I.openApplication("24game")
  1219. } else if (e.data.tools && e.data.tools == "39") {
  1220. U.MD.D.I.openApplication("GeoGebra")
  1221. } else if (e.data.tools && e.data.tools == "43") {
  1222. U.MD.D.I.openApplication("studentEvaluate")
  1223. } else if (e.data.tools && e.data.tools == "44") {
  1224. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1225. } else if (e.data.tools && e.data.tools == "46") {
  1226. U.MD.D.I.openApplication("project")
  1227. } else if (e.data.tools && e.data.tools == "1s") {
  1228. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1229. } else if (e.data.tools && e.data.tools == "3s") {
  1230. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1231. } else if (e.data.tools && e.data.tools == "6s") {
  1232. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1233. } else if (e.data.tools && e.data.tools == "3y") {
  1234. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1235. } else if (e.data.tools && e.data.tools == "1y") {
  1236. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1237. }
  1238. });
  1239. U.MD.D.I.selectUser = function () {
  1240. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1241. if (res.value[0].length > 0) {
  1242. US.userInfo = res.value[0][0];
  1243. $(".userName")[0].innerHTML = US.userInfo.username;
  1244. }
  1245. }, [], { "type": "GET", "withCredentials": true });
  1246. }
  1247. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1248. var _userinfo = US.userInfo, //登录用户信息
  1249. _userid = US.userInfo.userid, //登录用户id
  1250. _oid = _userinfo.organizeid,
  1251. _type = US.userInfo.type,
  1252. _org = US.userInfo.org,
  1253. _role = US.userInfo.role,
  1254. _classId = US.userInfo.classid;
  1255. if (_type == 4) {
  1256. tType = 4
  1257. }
  1258. switch (str) {
  1259. case "studyDetail":
  1260. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1261. setTimeout(() => {
  1262. U.MD.U.L.login();
  1263. }, 2000);
  1264. } else {
  1265. _formdiv = new U.UF.UI.form(
  1266. "课程详情",
  1267. $$("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 }), {
  1268. "id": "studyDetail",
  1269. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1270. "onresize": function () { }
  1271. }, {
  1272. closecallback: function () { }
  1273. }, { "style": { "height": "36px" } }).form; //创建窗体
  1274. _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); } }
  1275. break;
  1276. }
  1277. case "studyDetailS":
  1278. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1279. setTimeout(() => {
  1280. U.MD.U.L.login();
  1281. }, 2000);
  1282. } else {
  1283. _formdiv = new U.UF.UI.form(
  1284. "项目详情",
  1285. $$("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 }), {
  1286. "id": "studyDetailS",
  1287. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1288. "onresize": function () { }
  1289. }, {
  1290. closecallback: function () { }
  1291. }, { "style": { "height": "36px" } }).form; //创建窗体
  1292. _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); } }
  1293. break;
  1294. }
  1295. case "studyDetailS5":
  1296. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1297. setTimeout(() => {
  1298. U.MD.U.L.login();
  1299. }, 2000);
  1300. } else {
  1301. _formdiv = new U.UF.UI.form(
  1302. "项目详情",
  1303. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/studyStudentS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1304. "id": "studyDetailS",
  1305. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1306. "onresize": function () { }
  1307. }, {
  1308. closecallback: function () { }
  1309. }, { "style": { "height": "36px" } }).form; //创建窗体
  1310. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1311. break;
  1312. }
  1313. case "studyDetailGM":
  1314. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1315. setTimeout(() => {
  1316. U.MD.U.L.login();
  1317. }, 2000);
  1318. } else {
  1319. _formdiv = new U.UF.UI.form(
  1320. "课程详情",
  1321. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/courseDetailGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1322. "id": "studyDetail",
  1323. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1324. "onresize": function () { }
  1325. }, {
  1326. closecallback: function () { }
  1327. }, { "style": { "height": "36px" } }).form; //创建窗体
  1328. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1329. break;
  1330. }
  1331. case "hanUrl":
  1332. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1333. setTimeout(() => {
  1334. U.MD.U.L.login();
  1335. }, 2000);
  1336. } else {
  1337. _formdiv = new U.UF.UI.form(
  1338. "汉字宫",
  1339. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//school.hanzigon.cn/?appid=734714090237947#/material/video?grade_id=62&lesson_code=621&id=2432" }), {
  1340. "id": "hanUrl",
  1341. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1342. "onresize": function () { }
  1343. }, {
  1344. closecallback: function () { }
  1345. }, { "style": { "height": "36px" } }).form; //创建窗体
  1346. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1347. break;
  1348. }
  1349. }
  1350. }
  1351. U.MD.D.I.openApplication = function (str, obj, info) {
  1352. obj = obj || {};
  1353. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1354. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1355. _userinfo = US.userInfo, //登录用户信息
  1356. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1357. _oid = obj.organizeid || _userinfo.organizeid,
  1358. _type = US.userInfo.type,
  1359. _org = US.userInfo.org,
  1360. _role = US.userInfo.role,
  1361. _classId = US.userInfo.classid,
  1362. _TscreenType = 1
  1363. _screenType = 2,
  1364. _SscreenType = 3;
  1365. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1366. return;
  1367. }
  1368. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1369. switch (str) {
  1370. case "studnetProject": //好友打开
  1371. _formdiv = new U.UF.UI.form(
  1372. "我的项目",
  1373. $$("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 }), {
  1374. "id": "studnetProject",
  1375. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1376. "onresize": function () { }
  1377. }, {
  1378. closecallback: function () { }
  1379. }, { "style": { "height": "36px" } }).form; //创建窗体
  1380. _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); } }
  1381. break;
  1382. case "studentEvaluate": //好友打开
  1383. _formdiv = new U.UF.UI.form(
  1384. "我的评价",
  1385. $$("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 }), {
  1386. "id": "studentEvaluate",
  1387. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1388. "onresize": function () { }
  1389. }, {
  1390. closecallback: function () { }
  1391. }, { "style": { "height": "36px" } }).form; //创建窗体
  1392. _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); } }
  1393. break;
  1394. case "my":
  1395. _formdiv = new U.UF.UI.form(
  1396. "我的资料",
  1397. $$("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 }), {
  1398. "id": "my",
  1399. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1400. "onresize": function () { }
  1401. }, {
  1402. closecallback: function () { }
  1403. }, { "style": { "height": "36px" } }).form; //创建窗体
  1404. _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); } }
  1405. break;
  1406. case "program":
  1407. _formdiv = new U.UF.UI.form(
  1408. "编程平台",
  1409. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1410. "id": "program",
  1411. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1412. "onresize": function () { }
  1413. }, {
  1414. closecallback: function () { }
  1415. }, { "style": { "height": "36px" } }).form; //创建窗体
  1416. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1417. break;
  1418. case "library":
  1419. _formdiv = new U.UF.UI.form(
  1420. "素材库",
  1421. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  1422. "id": "library",
  1423. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1424. "onresize": function () { }
  1425. }, {
  1426. closecallback: function () { }
  1427. }, { "style": { "height": "36px" } }).form; //创建窗体
  1428. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1429. break;
  1430. case "whiteboard":
  1431. _formdiv = new U.UF.UI.form(
  1432. "电子白板",
  1433. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1434. "id": "whiteboard",
  1435. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1436. "onresize": function () { }
  1437. }, {
  1438. closecallback: function () { }
  1439. }, { "style": { "height": "36px" } }).form; //创建窗体
  1440. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1441. break;
  1442. case "investigation":
  1443. _formdiv = new U.UF.UI.form(
  1444. "问卷调查",
  1445. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  1446. "id": "investigation",
  1447. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1448. "onresize": function () { }
  1449. }, {
  1450. closecallback: function () { }
  1451. }, { "style": { "height": "36px" } }).form; //创建窗体
  1452. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1453. break;
  1454. case "note":
  1455. _formdiv = new U.UF.UI.form(
  1456. "便签分类",
  1457. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  1458. "id": "note",
  1459. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1460. "onresize": function () { }
  1461. }, {
  1462. closecallback: function () { }
  1463. }, { "style": { "height": "36px" } }).form; //创建窗体
  1464. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1465. break;
  1466. // case "score":
  1467. // _formdiv = new U.UF.UI.form(
  1468. // "量规评分",
  1469. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1470. // "id": "score",
  1471. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1472. // "onresize": function() {}
  1473. // }, {
  1474. // closecallback: function() {}
  1475. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1476. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1477. // break;
  1478. case "mind":
  1479. _formdiv = new U.UF.UI.form(
  1480. "思维导图",
  1481. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1482. "id": "mind",
  1483. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1484. "onresize": function () { }
  1485. }, {
  1486. closecallback: function () { }
  1487. }, { "style": { "height": "36px" } }).form; //创建窗体
  1488. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1489. break;
  1490. case "doc":
  1491. // U.MD.D.I.isRoom();
  1492. _formdiv = new U.UF.UI.form(
  1493. "协同文档",
  1494. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1495. "id": "doc",
  1496. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1497. "onresize": function () { }
  1498. }, {
  1499. closecallback: function () { }
  1500. }, { "style": { "height": "36px" } }).form; //创建窗体
  1501. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1502. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1503. // })
  1504. _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); } }
  1505. break;
  1506. case "studentStudy":
  1507. _formdiv = new U.UF.UI.form(
  1508. "课程中心",
  1509. $$("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
  1510. "id": "studentStudy",
  1511. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1512. "onresize": function () { }
  1513. }, {
  1514. closecallback: function () { }
  1515. }, { "style": { "height": "36px" } }).form; //创建窗体
  1516. _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); } }
  1517. break;
  1518. case "train": //好友打开
  1519. _formdiv = new U.UF.UI.form(
  1520. "训练平台",
  1521. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1522. "id": "train",
  1523. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1524. "onresize": function () { }
  1525. }, {
  1526. closecallback: function () { }
  1527. }, { "style": { "height": "36px" } }).form; //创建窗体
  1528. _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); } }
  1529. break;
  1530. case "mindNetwork": //好友打开
  1531. _formdiv = new U.UF.UI.form(
  1532. "思维网格",
  1533. $$("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 }), {
  1534. "id": "mindNetwork",
  1535. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1536. "onresize": function () { }
  1537. }, {
  1538. closecallback: function () { }
  1539. }, { "style": { "height": "36px" } }).form; //创建窗体
  1540. _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); } }
  1541. break;
  1542. case "studentClassRoom": //好友打开
  1543. _formdiv = new U.UF.UI.form(
  1544. "实时课堂",
  1545. $$("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 }), {
  1546. "id": "studentClassRoom",
  1547. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1548. "onresize": function () { }
  1549. }, {
  1550. closecallback: function () { }
  1551. }, { "style": { "height": "36px" } }).form; //创建窗体
  1552. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1553. setTimeout(() => {
  1554. U.UF.F.windowZooming(_formdiv)
  1555. }, 0);
  1556. break;
  1557. }
  1558. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1559. switch (str) {
  1560. case "studnetProject": //好友打开
  1561. _formdiv = new U.UF.UI.form(
  1562. "我的项目",
  1563. $$("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 }), {
  1564. "id": "studnetProject",
  1565. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1566. "onresize": function () { }
  1567. }, {
  1568. closecallback: function () { }
  1569. }, { "style": { "height": "36px" } }).form; //创建窗体
  1570. _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); } }
  1571. break;
  1572. case "studentEvaluate": //好友打开
  1573. _formdiv = new U.UF.UI.form(
  1574. "我的评价",
  1575. $$("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 }), {
  1576. "id": "studentEvaluate",
  1577. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1578. "onresize": function () { }
  1579. }, {
  1580. closecallback: function () { }
  1581. }, { "style": { "height": "36px" } }).form; //创建窗体
  1582. _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); } }
  1583. break;
  1584. case "my":
  1585. _formdiv = new U.UF.UI.form(
  1586. "我的资料",
  1587. $$("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 }), {
  1588. "id": "my",
  1589. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1590. "onresize": function () { }
  1591. }, {
  1592. closecallback: function () { }
  1593. }, { "style": { "height": "36px" } }).form; //创建窗体
  1594. _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); } }
  1595. break;
  1596. case "program":
  1597. _formdiv = new U.UF.UI.form(
  1598. "编程平台",
  1599. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1600. "id": "program",
  1601. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1602. "onresize": function () { }
  1603. }, {
  1604. closecallback: function () { }
  1605. }, { "style": { "height": "36px" } }).form; //创建窗体
  1606. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1607. break;
  1608. case "library":
  1609. _formdiv = new U.UF.UI.form(
  1610. "素材库",
  1611. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  1612. "id": "library",
  1613. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1614. "onresize": function () { }
  1615. }, {
  1616. closecallback: function () { }
  1617. }, { "style": { "height": "36px" } }).form; //创建窗体
  1618. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1619. break;
  1620. case "whiteboard":
  1621. _formdiv = new U.UF.UI.form(
  1622. "电子白板",
  1623. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1624. "id": "whiteboard",
  1625. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1626. "onresize": function () { }
  1627. }, {
  1628. closecallback: function () { }
  1629. }, { "style": { "height": "36px" } }).form; //创建窗体
  1630. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1631. break;
  1632. case "investigation":
  1633. _formdiv = new U.UF.UI.form(
  1634. "问卷调查",
  1635. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  1636. "id": "investigation",
  1637. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1638. "onresize": function () { }
  1639. }, {
  1640. closecallback: function () { }
  1641. }, { "style": { "height": "36px" } }).form; //创建窗体
  1642. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1643. break;
  1644. case "note":
  1645. _formdiv = new U.UF.UI.form(
  1646. "便签分类",
  1647. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  1648. "id": "note",
  1649. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1650. "onresize": function () { }
  1651. }, {
  1652. closecallback: function () { }
  1653. }, { "style": { "height": "36px" } }).form; //创建窗体
  1654. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1655. break;
  1656. // case "score":
  1657. // _formdiv = new U.UF.UI.form(
  1658. // "量规评分",
  1659. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1660. // "id": "score",
  1661. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1662. // "onresize": function() {}
  1663. // }, {
  1664. // closecallback: function() {}
  1665. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1666. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1667. // break;
  1668. case "mind":
  1669. _formdiv = new U.UF.UI.form(
  1670. "思维导图",
  1671. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1672. "id": "mind",
  1673. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1674. "onresize": function () { }
  1675. }, {
  1676. closecallback: function () { }
  1677. }, { "style": { "height": "36px" } }).form; //创建窗体
  1678. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1679. break;
  1680. case "doc":
  1681. // U.MD.D.I.isRoom();
  1682. _formdiv = new U.UF.UI.form(
  1683. "协同文档",
  1684. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1685. "id": "doc",
  1686. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1687. "onresize": function () { }
  1688. }, {
  1689. closecallback: function () { }
  1690. }, { "style": { "height": "36px" } }).form; //创建窗体
  1691. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1692. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1693. })
  1694. _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); } }
  1695. break;
  1696. case "train": //好友打开
  1697. _formdiv = new U.UF.UI.form(
  1698. "训练平台",
  1699. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1700. "id": "train",
  1701. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1702. "onresize": function () { }
  1703. }, {
  1704. closecallback: function () { }
  1705. }, { "style": { "height": "36px" } }).form; //创建窗体
  1706. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1707. break;
  1708. case "studentStudy":
  1709. _formdiv = new U.UF.UI.form(
  1710. "课程中心",
  1711. $$("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
  1712. "id": "studentStudy",
  1713. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1714. "onresize": function () { }
  1715. }, {
  1716. closecallback: function () { }
  1717. }, { "style": { "height": "36px" } }).form; //创建窗体
  1718. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1719. break;
  1720. case "mindNetwork": //好友打开
  1721. _formdiv = new U.UF.UI.form(
  1722. "思维网格",
  1723. $$("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 }), {
  1724. "id": "mindNetwork",
  1725. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1726. "onresize": function () { }
  1727. }, {
  1728. closecallback: function () { }
  1729. }, { "style": { "height": "36px" } }).form; //创建窗体
  1730. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1731. break;
  1732. case "studentClassRoom": //好友打开
  1733. _formdiv = new U.UF.UI.form(
  1734. "实时课堂",
  1735. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/liveRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1736. "id": "studentClassRoom",
  1737. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1738. "onresize": function () { }
  1739. }, {
  1740. closecallback: function () { }
  1741. }, { "style": { "height": "36px" } }).form; //创建窗体
  1742. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1743. setTimeout(() => {
  1744. U.UF.F.windowZooming(_formdiv)
  1745. }, 0);
  1746. break;
  1747. }
  1748. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1749. //选择应用处理
  1750. switch (str) {
  1751. case "project": //好友打开
  1752. _formdiv = new U.UF.UI.form(
  1753. "课程管理",
  1754. $$("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 }), {
  1755. "id": "project",
  1756. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1757. "onresize": function () { }
  1758. }, {
  1759. closecallback: function () { }
  1760. }, { "style": { "height": "36px" } }).form; //创建窗体
  1761. _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); } }
  1762. break;
  1763. case "student":
  1764. _formdiv = new U.UF.UI.form(
  1765. "学生管理",
  1766. $$("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 }), {
  1767. "id": "student",
  1768. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1769. "onresize": function () { }
  1770. }, {
  1771. closecallback: function () { }
  1772. }, { "style": { "height": "36px" } }).form; //创建窗体
  1773. _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); } }
  1774. break;
  1775. case "evaluate":
  1776. _formdiv = new U.UF.UI.form(
  1777. "学生评价",
  1778. $$("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 }), {
  1779. "id": "evaluate",
  1780. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1781. "onresize": function () { }
  1782. }, {
  1783. closecallback: function () { }
  1784. }, { "style": { "height": "36px" } }).form; //创建窗体
  1785. _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); } }
  1786. break;
  1787. case "sys":
  1788. _formdiv = new U.UF.UI.form(
  1789. "目标管理",
  1790. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1791. "id": "sys",
  1792. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1793. "onresize": function () { }
  1794. }, {
  1795. closecallback: function () { }
  1796. }, { "style": { "height": "36px" } }).form; //创建窗体
  1797. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1798. break;
  1799. case "courseDesign":
  1800. _formdiv = new U.UF.UI.form(
  1801. "项目设计",
  1802. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1803. "id": "courseDesign",
  1804. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1805. "onresize": function () { }
  1806. }, {
  1807. closecallback: function () { }
  1808. }, { "style": { "height": "36px" } }).form; //创建窗体
  1809. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "项目设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1810. break;
  1811. case "program":
  1812. _formdiv = new U.UF.UI.form(
  1813. "编程平台",
  1814. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1815. "id": "program",
  1816. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1817. "onresize": function () { }
  1818. }, {
  1819. closecallback: function () { }
  1820. }, { "style": { "height": "36px" } }).form; //创建窗体
  1821. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1822. break;
  1823. case "class":
  1824. _formdiv = new U.UF.UI.form(
  1825. "班级管理",
  1826. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1827. "id": "class",
  1828. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1829. "onresize": function () { }
  1830. }, {
  1831. closecallback: function () { }
  1832. }, { "style": { "height": "36px" } }).form; //创建窗体
  1833. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1834. break;
  1835. case "my":
  1836. _formdiv = new U.UF.UI.form(
  1837. "我的资料",
  1838. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  1839. "id": "my",
  1840. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1841. "onresize": function () { }
  1842. }, {
  1843. closecallback: function () { }
  1844. }, { "style": { "height": "36px" } }).form; //创建窗体
  1845. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1846. break;
  1847. case "notice":
  1848. _formdiv = new U.UF.UI.form(
  1849. "通知公告",
  1850. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  1851. "id": "notice",
  1852. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1853. "onresize": function () { }
  1854. }, {
  1855. closecallback: function () { }
  1856. }, { "style": { "height": "36px" } }).form; //创建窗体
  1857. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1858. break;
  1859. case "library":
  1860. _formdiv = new U.UF.UI.form(
  1861. "素材库",
  1862. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  1863. "id": "library",
  1864. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1865. "onresize": function () { }
  1866. }, {
  1867. closecallback: function () { }
  1868. }, { "style": { "height": "36px" } }).form; //创建窗体
  1869. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1870. break;
  1871. case "whiteboard":
  1872. _formdiv = new U.UF.UI.form(
  1873. "电子白板",
  1874. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1875. "id": "whiteboard",
  1876. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1877. "onresize": function () { }
  1878. }, {
  1879. closecallback: function () { }
  1880. }, { "style": { "height": "36px" } }).form; //创建窗体
  1881. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1882. break;
  1883. case "investigation":
  1884. _formdiv = new U.UF.UI.form(
  1885. "问卷调查",
  1886. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  1887. "id": "investigation",
  1888. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1889. "onresize": function () { }
  1890. }, {
  1891. closecallback: function () { }
  1892. }, { "style": { "height": "36px" } }).form; //创建窗体
  1893. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1894. break;
  1895. case "note":
  1896. _formdiv = new U.UF.UI.form(
  1897. "便签分类",
  1898. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  1899. "id": "note",
  1900. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1901. "onresize": function () { }
  1902. }, {
  1903. closecallback: function () { }
  1904. }, { "style": { "height": "36px" } }).form; //创建窗体
  1905. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1906. break;
  1907. // case "score":
  1908. // _formdiv = new U.UF.UI.form(
  1909. // "量规评分",
  1910. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1911. // "id": "score",
  1912. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1913. // "onresize": function() {}
  1914. // }, {
  1915. // closecallback: function() {}
  1916. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1917. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1918. // break;
  1919. case "mind":
  1920. _formdiv = new U.UF.UI.form(
  1921. "思维导图",
  1922. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1923. "id": "mind",
  1924. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1925. "onresize": function () { }
  1926. }, {
  1927. closecallback: function () { }
  1928. }, { "style": { "height": "36px" } }).form; //创建窗体
  1929. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1930. break;
  1931. case "doc":
  1932. // U.MD.D.I.isRoom();
  1933. _formdiv = new U.UF.UI.form(
  1934. "协同文档",
  1935. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1936. "id": "doc",
  1937. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1938. "onresize": function () { }
  1939. }, {
  1940. closecallback: function () { }
  1941. }, { "style": { "height": "36px" } }).form; //创建窗体
  1942. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1943. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1944. })
  1945. _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); } }
  1946. break;
  1947. case "study":
  1948. _formdiv = new U.UF.UI.form(
  1949. "课程中心",
  1950. $$("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
  1951. "id": "study",
  1952. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1953. "onresize": function () { }
  1954. }, {
  1955. closecallback: function () { }
  1956. }, { "style": { "height": "36px" } }).form; //创建窗体
  1957. _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); } }
  1958. break;
  1959. case "mindNetwork": //好友打开
  1960. _formdiv = new U.UF.UI.form(
  1961. "思维网格",
  1962. $$("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 }), {
  1963. "id": "mindNetwork",
  1964. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1965. "onresize": function () { }
  1966. }, {
  1967. closecallback: function () { }
  1968. }, { "style": { "height": "36px" } }).form; //创建窗体
  1969. _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); } }
  1970. break;
  1971. case "train": //好友打开
  1972. _formdiv = new U.UF.UI.form(
  1973. "训练平台",
  1974. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1975. "id": "mindNetwork",
  1976. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1977. "onresize": function () { }
  1978. }, {
  1979. closecallback: function () { }
  1980. }, { "style": { "height": "36px" } }).form; //创建窗体
  1981. _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); } }
  1982. break;
  1983. case "teacherClassRoom": //好友打开
  1984. _formdiv = new U.UF.UI.form(
  1985. "实时课堂",
  1986. $$("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 }), {
  1987. "id": "teacherClassRoom",
  1988. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1989. "onresize": function () { }
  1990. }, {
  1991. closecallback: function () { }
  1992. }, { "style": { "height": "36px" } }).form; //创建窗体
  1993. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1994. setTimeout(() => {
  1995. U.UF.F.windowZooming(_formdiv)
  1996. }, 0);
  1997. break;
  1998. }
  1999. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2000. switch (str) {
  2001. case "project": //好友打开
  2002. _formdiv = new U.UF.UI.form(
  2003. "课程管理",
  2004. $$("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 }), {
  2005. "id": "project",
  2006. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2007. "onresize": function () { }
  2008. }, {
  2009. closecallback: function () { }
  2010. }, { "style": { "height": "36px" } }).form; //创建窗体
  2011. _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); } }
  2012. break;
  2013. case "evaluate":
  2014. _formdiv = new U.UF.UI.form(
  2015. "学生评价",
  2016. $$("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 }), {
  2017. "id": "evaluate",
  2018. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2019. "onresize": function () { }
  2020. }, {
  2021. closecallback: function () { }
  2022. }, { "style": { "height": "36px" } }).form; //创建窗体
  2023. _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); } }
  2024. break;
  2025. case "notice":
  2026. _formdiv = new U.UF.UI.form(
  2027. "通知公告",
  2028. $$("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 }), {
  2029. "id": "notice",
  2030. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2031. "onresize": function () { }
  2032. }, {
  2033. closecallback: function () { }
  2034. }, { "style": { "height": "36px" } }).form; //创建窗体
  2035. _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); } }
  2036. break;
  2037. case "stuLibrary":
  2038. _formdiv = new U.UF.UI.form(
  2039. "学习资料",
  2040. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/studyLibrary?userid=" + _userid + "&org=" + _org }), {
  2041. "id": "stuLibrary",
  2042. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2043. "onresize": function () { }
  2044. }, {
  2045. closecallback: function () { }
  2046. }, { "style": { "height": "36px" } }).form; //创建窗体
  2047. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/stuLibrary.png)" }, "name": "学习资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2048. break;
  2049. case "program":
  2050. _formdiv = new U.UF.UI.form(
  2051. "编程平台",
  2052. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2053. "id": "program",
  2054. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2055. "onresize": function () { }
  2056. }, {
  2057. closecallback: function () { }
  2058. }, { "style": { "height": "36px" } }).form; //创建窗体
  2059. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2060. break;
  2061. case "whiteboard":
  2062. _formdiv = new U.UF.UI.form(
  2063. "电子白板",
  2064. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2065. "id": "whiteboard",
  2066. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2067. "onresize": function () { }
  2068. }, {
  2069. closecallback: function () { }
  2070. }, { "style": { "height": "36px" } }).form; //创建窗体
  2071. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2072. break;
  2073. case "investigation":
  2074. _formdiv = new U.UF.UI.form(
  2075. "问卷调查",
  2076. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  2077. "id": "investigation",
  2078. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2079. "onresize": function () { }
  2080. }, {
  2081. closecallback: function () { }
  2082. }, { "style": { "height": "36px" } }).form; //创建窗体
  2083. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2084. break;
  2085. case "mind":
  2086. _formdiv = new U.UF.UI.form(
  2087. "思维导图",
  2088. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  2089. "id": "mind",
  2090. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2091. "onresize": function () { }
  2092. }, {
  2093. closecallback: function () { }
  2094. }, { "style": { "height": "36px" } }).form; //创建窗体
  2095. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2096. break;
  2097. case "doc":
  2098. // U.MD.D.I.isRoom();
  2099. _formdiv = new U.UF.UI.form(
  2100. "协同文档",
  2101. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2102. "id": "doc",
  2103. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2104. "onresize": function () { }
  2105. }, {
  2106. closecallback: function () { }
  2107. }, { "style": { "height": "36px" } }).form; //创建窗体
  2108. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2109. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2110. })
  2111. _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); } }
  2112. break;
  2113. case "study":
  2114. _formdiv = new U.UF.UI.form(
  2115. "课程中心",
  2116. $$("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
  2117. "id": "study",
  2118. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2119. "onresize": function () { }
  2120. }, {
  2121. closecallback: function () { }
  2122. }, { "style": { "height": "36px" } }).form; //创建窗体
  2123. _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); } }
  2124. break;
  2125. case "mindNetwork": //好友打开
  2126. _formdiv = new U.UF.UI.form(
  2127. "思维网格",
  2128. $$("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 }), {
  2129. "id": "mindNetwork",
  2130. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2131. "onresize": function () { }
  2132. }, {
  2133. closecallback: function () { }
  2134. }, { "style": { "height": "36px" } }).form; //创建窗体
  2135. _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); } }
  2136. break;
  2137. case "train": //好友打开
  2138. _formdiv = new U.UF.UI.form(
  2139. "训练平台",
  2140. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2141. "id": "train",
  2142. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2143. "onresize": function () { }
  2144. }, {
  2145. closecallback: function () { }
  2146. }, { "style": { "height": "36px" } }).form; //创建窗体
  2147. _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); } }
  2148. break;
  2149. case "sys":
  2150. _formdiv = new U.UF.UI.form(
  2151. "目标管理",
  2152. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2153. "id": "sys",
  2154. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2155. "onresize": function () { }
  2156. }, {
  2157. closecallback: function () { }
  2158. }, { "style": { "height": "36px" } }).form; //创建窗体
  2159. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2160. break;
  2161. case "courseDesign":
  2162. _formdiv = new U.UF.UI.form(
  2163. "项目设计",
  2164. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2165. "id": "courseDesign",
  2166. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2167. "onresize": function () { }
  2168. }, {
  2169. closecallback: function () { }
  2170. }, { "style": { "height": "36px" } }).form; //创建窗体
  2171. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "项目设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2172. break;
  2173. }
  2174. } else if (!_type) {
  2175. switch (str) {
  2176. case "my":
  2177. _formdiv = new U.UF.UI.form(
  2178. "我的资料",
  2179. $$("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 }), {
  2180. "id": "my",
  2181. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2182. "onresize": function () { }
  2183. }, {
  2184. closecallback: function () { }
  2185. }, { "style": { "height": "36px" } }).form; //创建窗体
  2186. _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); } }
  2187. break;
  2188. }
  2189. }
  2190. switch (str) {
  2191. // AIprogram2 AI体验 aihub.cocorobo.cn
  2192. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2193. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2194. case "AIprogram2": //AI体验
  2195. _formdiv = new U.UF.UI.form(
  2196. "AI体验",
  2197. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2198. "id": "AIprogram2",
  2199. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2200. "onresize": function () { }
  2201. }, {
  2202. closecallback: function () { }
  2203. }, { "style": { "height": "36px" } }).form; //创建窗体
  2204. _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); } }
  2205. break;
  2206. case "Pythonprogram": //python编程
  2207. _formdiv = new U.UF.UI.form(
  2208. "Python编程",
  2209. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2210. "id": "Pythonprogram",
  2211. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2212. "onresize": function () { }
  2213. }, {
  2214. closecallback: function () { }
  2215. }, { "style": { "height": "36px" } }).form; //创建窗体
  2216. _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); } }
  2217. break;
  2218. case "AIprogram": //ai编程
  2219. _formdiv = new U.UF.UI.form(
  2220. "AI编程平台",
  2221. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2222. "id": "AIprogram",
  2223. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2224. "onresize": function () { }
  2225. }, {
  2226. closecallback: function () { }
  2227. }, { "style": { "height": "36px" } }).form; //创建窗体
  2228. _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); } }
  2229. break;
  2230. case "CocoPi": //ai编程
  2231. _formdiv = new U.UF.UI.form(
  2232. "CocoPi",
  2233. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://v.cocorobo.cn" }), {
  2234. "id": "CocoPi",
  2235. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2236. "onresize": function () { }
  2237. }, {
  2238. closecallback: function () { }
  2239. }, { "style": { "height": "36px" } }).form; //创建窗体
  2240. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/cocopi.png)" }, "name": "CocoPi", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2241. break;
  2242. case "chatPDF": //ai编程
  2243. _formdiv = new U.UF.UI.form(
  2244. "chatPDF",
  2245. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2246. "id": "chatPDF",
  2247. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2248. "onresize": function () { }
  2249. }, {
  2250. closecallback: function () { }
  2251. }, { "style": { "height": "36px" } }).form; //创建窗体
  2252. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/chatPDF.png)" }, "name": "chatPDF", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2253. break;
  2254. case "resources": //国家教育
  2255. _formdiv = new U.UF.UI.form(
  2256. "国家教育",
  2257. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2258. "id": "resources",
  2259. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2260. "onresize": function () { }
  2261. }, {
  2262. closecallback: function () { }
  2263. }, { "style": { "height": "36px" } }).form; //创建窗体
  2264. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/resources.png)" }, "name": "国家教育", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2265. break;
  2266. case "codeEdit": //源码编辑
  2267. _formdiv = new U.UF.UI.form(
  2268. "源码编辑",
  2269. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2270. "id": "codeEdit",
  2271. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2272. "onresize": function () { }
  2273. }, {
  2274. closecallback: function () { }
  2275. }, { "style": { "height": "36px" } }).form; //创建窗体
  2276. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/code.png)" }, "name": "源码编辑", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2277. break; //
  2278. case "MindMap": //MindMap
  2279. _formdiv = new U.UF.UI.form(
  2280. "MindMap",
  2281. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2282. "id": "MindMap",
  2283. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2284. "onresize": function () { }
  2285. }, {
  2286. closecallback: function () { }
  2287. }, { "style": { "height": "36px" } }).form; //创建窗体
  2288. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/MIndMap.png)" }, "name": "MindMap", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2289. break;
  2290. case "netWorkPanel": //netWorkPanel
  2291. _formdiv = new U.UF.UI.form(
  2292. "netWorkPanel",
  2293. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2294. "id": "netWorkPanel",
  2295. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2296. "onresize": function () { }
  2297. }, {
  2298. closecallback: function () { }
  2299. }, { "style": { "height": "36px" } }).form; //创建窗体
  2300. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/netWorkPanel.png)" }, "name": "netWorkPanel", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2301. break;
  2302. case "GeoGebra": //GeoGebra
  2303. _formdiv = new U.UF.UI.form(
  2304. "GeoGebra",
  2305. $$("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" }), {
  2306. "id": "GeoGebra",
  2307. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2308. "onresize": function () { }
  2309. }, {
  2310. closecallback: function () { }
  2311. }, { "style": { "height": "36px" } }).form; //创建窗体
  2312. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/GeoGebra.png)" }, "name": "GeoGebra", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2313. break;
  2314. case "translation": //翻译
  2315. _formdiv = new U.UF.UI.form(
  2316. "翻译",
  2317. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2318. "id": "translation",
  2319. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2320. "onresize": function () { }
  2321. }, {
  2322. closecallback: function () { }
  2323. }, { "style": { "height": "36px" } }).form; //创建窗体
  2324. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/translation.png)" }, "name": "翻译", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2325. break;
  2326. case "mohe": //魔盒
  2327. _formdiv = new U.UF.UI.form(
  2328. "魔盒识字",
  2329. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2330. "id": "mohe",
  2331. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2332. "onresize": function () { }
  2333. }, {
  2334. closecallback: function () { }
  2335. }, { "style": { "height": "36px" } }).form; //创建窗体
  2336. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mohe.png)" }, "name": "魔盒识字", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2337. break;
  2338. case "24game": //24点
  2339. _formdiv = new U.UF.UI.form(
  2340. "24点",
  2341. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2342. "id": "24game",
  2343. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2344. "onresize": function () { }
  2345. }, {
  2346. closecallback: function () { }
  2347. }, { "style": { "height": "36px" } }).form; //创建窗体
  2348. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/24game.png)" }, "name": "24点", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2349. break;
  2350. case "case":
  2351. _formdiv = new U.UF.UI.form(
  2352. "课程进展",
  2353. $$("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 }), {
  2354. "id": "case",
  2355. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2356. "onresize": function () { }
  2357. }, {
  2358. closecallback: function () { }
  2359. }, { "style": { "height": "36px" } }).form; //创建窗体
  2360. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/case.png)" }, "name": "课程进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2361. break;
  2362. case "snf":
  2363. _formdiv = new U.UF.UI.form(
  2364. "赛诺梵",
  2365. $$("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" }), {
  2366. "id": "snf",
  2367. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2368. "onresize": function () { }
  2369. }, {
  2370. closecallback: function () { }
  2371. }, { "style": { "height": "36px" } }).form; //创建窗体
  2372. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/snf.png)" }, "name": "赛诺梵", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2373. break;
  2374. case "hanFamily":
  2375. _formdiv = new U.UF.UI.form(
  2376. "汉字家族",
  2377. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2378. "id": "hanFamily",
  2379. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2380. "onresize": function () { }
  2381. }, {
  2382. closecallback: function () { }
  2383. }, { "style": { "height": "36px" } }).form; //创建窗体
  2384. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanFamily.png)" }, "name": "汉字家族", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2385. break;
  2386. case "hanClassics":
  2387. _formdiv = new U.UF.UI.form(
  2388. "国学经典",
  2389. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2390. "id": "hanClassics",
  2391. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2392. "onresize": function () { }
  2393. }, {
  2394. closecallback: function () { }
  2395. }, { "style": { "height": "36px" } }).form; //创建窗体
  2396. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClassics.png)" }, "name": "国学经典", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2397. break;
  2398. case "hanTraining":
  2399. _formdiv = new U.UF.UI.form(
  2400. "笔画训练",
  2401. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2402. "id": "hanTraining",
  2403. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2404. "onresize": function () { }
  2405. }, {
  2406. closecallback: function () { }
  2407. }, { "style": { "height": "36px" } }).form; //创建窗体
  2408. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanTraining.png)" }, "name": "笔画训练", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2409. break;
  2410. case "hanClass":
  2411. _formdiv = new U.UF.UI.form(
  2412. "书法课堂",
  2413. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2414. "id": "hanClass",
  2415. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2416. "onresize": function () { }
  2417. }, {
  2418. closecallback: function () { }
  2419. }, { "style": { "height": "36px" } }).form; //创建窗体
  2420. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "书法课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2421. break;
  2422. case "han":
  2423. _formdiv = new U.UF.UI.form(
  2424. "汉字宫",
  2425. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2426. "id": "han",
  2427. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2428. "onresize": function () { }
  2429. }, {
  2430. closecallback: function () { }
  2431. }, { "style": { "height": "36px" } }).form; //创建窗体
  2432. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/han.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2433. break;
  2434. case "projectGM": //课程管理
  2435. _formdiv = new U.UF.UI.form(
  2436. "课程管理",
  2437. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/courseGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2438. "id": "projectGM",
  2439. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2440. "onresize": function () { }
  2441. }, {
  2442. closecallback: function () { }
  2443. }, { "style": { "height": "36px" } }).form; //创建窗体
  2444. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/courseMange.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2445. break;
  2446. case "studyGM"://课程中心
  2447. _formdiv = new U.UF.UI.form(
  2448. "课程中心",
  2449. $$("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
  2450. "id": "study",
  2451. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2452. "onresize": function () { }
  2453. }, {
  2454. closecallback: function () { }
  2455. }, { "style": { "height": "36px" } }).form; //创建窗体
  2456. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2457. break;
  2458. // studentGM
  2459. case "studentGM"://学生管理
  2460. _formdiv = new U.UF.UI.form(
  2461. "学生管理",
  2462. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/studentGM?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  2463. "id": "studentGM",
  2464. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2465. "onresize": function () { }
  2466. }, {
  2467. closecallback: function () { }
  2468. }, { "style": { "height": "36px" } }).form; //创建窗体
  2469. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2470. break;
  2471. case "evaluateGM"://学生评价
  2472. _formdiv = new U.UF.UI.form(
  2473. "学生评价",
  2474. $$("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 }), {
  2475. "id": "evaluateGM",
  2476. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2477. "onresize": function () { }
  2478. }, {
  2479. closecallback: function () { }
  2480. }, { "style": { "height": "36px" } }).form; //创建窗体
  2481. _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); } }
  2482. break;
  2483. // classGM
  2484. case "classGM"://班级管理
  2485. _formdiv = new U.UF.UI.form(
  2486. "班级管理",
  2487. $$("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 }), {
  2488. "id": "classGM",
  2489. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2490. "onresize": function () { }
  2491. }, {
  2492. closecallback: function () { }
  2493. }, { "style": { "height": "36px" } }).form; //创建窗体
  2494. _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); } }
  2495. break;
  2496. // dataGM
  2497. case "dataGM":
  2498. _formdiv = new U.UF.UI.form(
  2499. "我的资料",
  2500. $$("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 }), {
  2501. "id": "dataGM",
  2502. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2503. "onresize": function () { }
  2504. }, {
  2505. closecallback: function () { }
  2506. }, { "style": { "height": "36px" } }).form; //创建窗体
  2507. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/data.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2508. break;
  2509. // caseGM
  2510. case "caseGM"://课程进展
  2511. _formdiv = new U.UF.UI.form(
  2512. "课程进展",
  2513. $$("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 }), {
  2514. "id": "caseGM",
  2515. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2516. "onresize": function () { }
  2517. }, {
  2518. closecallback: function () { }
  2519. }, { "style": { "height": "36px" } }).form; //创建窗体
  2520. _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); } }
  2521. break;
  2522. // meterialGM
  2523. case "meterialGM"://素材库
  2524. _formdiv = new U.UF.UI.form(
  2525. "素材库",
  2526. $$("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 }), {
  2527. "id": "meterialGM",
  2528. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2529. "onresize": function () { }
  2530. }, {
  2531. closecallback: function () { }
  2532. }, { "style": { "height": "36px" } }).form; //创建窗体
  2533. _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); } }
  2534. break;
  2535. // evaluateSGM
  2536. case "evaluateSGM": //我的评价
  2537. _formdiv = new U.UF.UI.form(
  2538. "我的评价",
  2539. $$("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 }), {
  2540. "id": "evaluateSGM",
  2541. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2542. "onresize": function () { }
  2543. }, {
  2544. closecallback: function () { }
  2545. }, { "style": { "height": "36px" } }).form; //创建窗体
  2546. _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); } }
  2547. break;
  2548. case "jupyter": //jupyter
  2549. _formdiv = new U.UF.UI.form(
  2550. "jupyter",
  2551. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  2552. "id": "jupyter",
  2553. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2554. "onresize": function () { }
  2555. }, {
  2556. closecallback: function () { }
  2557. }, { "style": { "height": "36px" } }).form; //创建窗体
  2558. _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); } }
  2559. break;
  2560. case "number": //数字实验室
  2561. _formdiv = new U.UF.UI.form(
  2562. "数字实验室",
  2563. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  2564. "id": "number",
  2565. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2566. "onresize": function () { }
  2567. }, {
  2568. closecallback: function () { }
  2569. }, { "style": { "height": "36px" } }).form; //创建窗体
  2570. _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); } }
  2571. break;
  2572. case "studentCourse": //项目管理 学生
  2573. _formdiv = new U.UF.UI.form(
  2574. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2575. $$("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 }), {
  2576. "id": "studentCourse",
  2577. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2578. "onresize": function () { }
  2579. }, {
  2580. closecallback: function () { }
  2581. }, { "style": { "height": "36px" } }).form; //创建窗体
  2582. _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); } }
  2583. break;
  2584. case "studentCourseS": //项目管理 老师
  2585. _formdiv = new U.UF.UI.form(
  2586. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2587. $$("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 }), {
  2588. "id": "studentCourseS",
  2589. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2590. "onresize": function () { }
  2591. }, {
  2592. closecallback: function () { }
  2593. }, { "style": { "height": "36px" } }).form; //创建窗体
  2594. _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); } }
  2595. break;
  2596. case "studentIndex": //项目中心
  2597. _formdiv = new U.UF.UI.form(
  2598. "项目中心",
  2599. $$("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 }), {
  2600. "id": "studentIndex",
  2601. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2602. "onresize": function () { }
  2603. }, {
  2604. closecallback: function () { }
  2605. }, { "style": { "height": "36px" } }).form; //创建窗体
  2606. _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); } }
  2607. break;
  2608. case "CaseDesignS":
  2609. _formdiv = new U.UF.UI.form(
  2610. "项目进展",
  2611. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/CaseDesignS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2612. "id": "case",
  2613. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2614. "onresize": function () { }
  2615. }, {
  2616. closecallback: function () { }
  2617. }, { "style": { "height": "36px" } }).form; //创建窗体
  2618. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/CaseDesignS.png)" }, "name": "项目进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2619. break;
  2620. case "tcStudent": //腾讯学生管理
  2621. _formdiv = new U.UF.UI.form(
  2622. "学生管理",
  2623. $$("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 }), {
  2624. "id": "tcStudent",
  2625. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2626. "onresize": function () { }
  2627. }, {
  2628. closecallback: function () { }
  2629. }, { "style": { "height": "36px" } }).form; //创建窗体
  2630. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2631. break;
  2632. case "tcSchool": //腾讯学校管理
  2633. _formdiv = new U.UF.UI.form(
  2634. "学校管理",
  2635. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/tcSchool?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2636. "id": "tcSchool",
  2637. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2638. "onresize": function () { }
  2639. }, {
  2640. closecallback: function () { }
  2641. }, { "style": { "height": "36px" } }).form; //创建窗体
  2642. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/school.png)" }, "name": "学校管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2643. break;
  2644. case "tcTeacher": //腾讯学校管理
  2645. _formdiv = new U.UF.UI.form(
  2646. "教师管理",
  2647. $$("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 }), {
  2648. "id": "tcTeacher",
  2649. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2650. "onresize": function () { }
  2651. }, {
  2652. closecallback: function () { }
  2653. }, { "style": { "height": "36px" } }).form; //创建窗体
  2654. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/teacher.png)" }, "name": "教师管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2655. break;
  2656. case "tcData": //腾讯我的资料
  2657. _formdiv = new U.UF.UI.form(
  2658. "我的资料",
  2659. $$("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 }), {
  2660. "id": "tcData",
  2661. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2662. "onresize": function () { }
  2663. }, {
  2664. closecallback: function () { }
  2665. }, { "style": { "height": "36px" } }).form; //创建窗体
  2666. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2667. break;
  2668. case "tcNotice": //腾讯消息通知
  2669. _formdiv = new U.UF.UI.form(
  2670. "消息通知",
  2671. $$("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 }), {
  2672. "id": "tcNotice",
  2673. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2674. "onresize": function () { }
  2675. }, {
  2676. closecallback: function () { }
  2677. }, { "style": { "height": "36px" } }).form; //创建窗体
  2678. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "消息通知", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2679. break;
  2680. }
  2681. //U.MD.D.I.openClick(str);
  2682. //如果有任务栏信息
  2683. if (_taskbar) {
  2684. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2685. }
  2686. }
  2687. // U.MD.D.I.openClick = function(str){
  2688. // var click = '';
  2689. // switch(str){
  2690. // case 'friend':
  2691. // click = '我的好友';
  2692. // break;
  2693. // case 'domain':
  2694. // click = '域名管理';
  2695. // break;
  2696. // case 'disk':
  2697. // click = '我的云盘';
  2698. // break;
  2699. // case 'word':
  2700. // click = 'Word';
  2701. // break;
  2702. // case 'excel':
  2703. // click = 'Execl';
  2704. // break;
  2705. // case 'txt':
  2706. // click = '文本文件';
  2707. // break;
  2708. // case 'lookupFriend':
  2709. // click = '查找好友';
  2710. // break;
  2711. // case 'ftp':
  2712. // click = 'FTP';
  2713. // break;
  2714. // case 'group':
  2715. // click = '群组';
  2716. // break;
  2717. // case 'set':
  2718. // click = '我的设置';
  2719. // break;
  2720. // case 'systemSet':
  2721. // click = '系统设置';
  2722. // break;
  2723. // case 'boomYun':
  2724. // click = '互联办公';
  2725. // break;
  2726. // case 'xz':
  2727. // click = '云端下载';
  2728. // break;
  2729. // case 'client':
  2730. // click = '有思浏览器';
  2731. // break;
  2732. // case 'backEndProgramming':
  2733. // click = '在线后台编程';
  2734. // break;
  2735. // case 'frontEndProgramming':
  2736. // click = '在线前端编程';
  2737. // break;
  2738. // default: break;
  2739. // }
  2740. // if(U.MD.D.I.Ip && click){
  2741. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  2742. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  2743. // })
  2744. // }
  2745. // }
  2746. /**
  2747. *函数作用:ajax简易函数,使用post格式
  2748. *@param url {data} 后台地址
  2749. *@param data {data} 参数json
  2750. *@param fn {data} 回调函数
  2751. *
  2752. */
  2753. // U.MD.D.I.Mysqlrequest = function(url,fn){
  2754. // var xhr = new XMLHttpRequest();
  2755. // xhr.open("GET",url,true);
  2756. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  2757. // xhr.onreadystatechange = function(){
  2758. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  2759. // fn.call(this,xhr.responseText);
  2760. // }
  2761. // };
  2762. // xhr.send();
  2763. // }
  2764. /*判断是否是内网IP*/
  2765. // U.MD.D.I.isInnerIPFn = function(str){
  2766. // var curPageUrl = str;
  2767. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  2768. // curPageUrl =curPageUrl.replace(reg1,'');
  2769. // // console.log('curPageUrl-1 '+curPageUrl);
  2770. // var reg2 = /\:+/g;//替换冒号为一点
  2771. // curPageUrl =curPageUrl.replace(reg2,'.');
  2772. // // console.log('curPageUrl-2 '+curPageUrl);
  2773. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  2774. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  2775. // if(curPageUrl[2] != '16'){
  2776. // return ipAddress;
  2777. // }else{
  2778. // return false;
  2779. // }
  2780. // }
  2781. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  2782. // //compatibility for firefox and chrome
  2783. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  2784. // var pc = new myPeerConnection({
  2785. // iceServers: []
  2786. // }),
  2787. // noop = function() {},
  2788. // localIPs = {},
  2789. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  2790. // key;
  2791. // function iterateIP(ip) {
  2792. // if (!localIPs[ip]) onNewIP(ip);
  2793. // localIPs[ip] = true;
  2794. // }
  2795. // //create a bogus data channel
  2796. // pc.createDataChannel("");
  2797. // // create offer and set local description
  2798. // pc.createOffer().then(function(sdp) {
  2799. // sdp.sdp.split('\n').forEach(function(line) {
  2800. // if (line.indexOf('candidate') < 0) return;
  2801. // line.match(ipRegex).forEach(iterateIP);
  2802. // });
  2803. // pc.setLocalDescription(sdp, noop, noop);
  2804. // }).catch(function(reason) {
  2805. // // An error occurred, so handle the failure to connect
  2806. // });
  2807. // //sten for candidate events
  2808. // pc.onicecandidate = function(ice) {
  2809. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  2810. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  2811. // };
  2812. // }
  2813. // U.MD.D.I.getUserIpBool = function(callback){
  2814. // U.MD.D.I.getUserIP(function(ip){
  2815. // alert("Got IP! :" + ip);
  2816. // });
  2817. //}
  2818. //#endregion
  2819. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  2820. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2821. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2822. _userinfo = US.userInfo, //登录用户信息
  2823. _userid = US.userInfo.userid //登录用户id
  2824. let _iframe;
  2825. let _cid = cid,
  2826. _stage = stage,
  2827. _task = task,
  2828. _tool = tool;
  2829. var _jie = $$("div", {
  2830. "style": {
  2831. "position": "absolute",
  2832. "bottom": "50px",
  2833. "right": "50px",
  2834. "zIndex": "9999",
  2835. "backgroundColor": "#2268bc",
  2836. "color": "#fff",
  2837. "padding": "12px 20px",
  2838. "cursor": "pointer",
  2839. "borderRadius": "4px",
  2840. },
  2841. "innerHTML": "提交作业"
  2842. })
  2843. let aTool = ''
  2844. let _loading = document.createElement('div')
  2845. _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;"
  2846. // _loading.id = "";
  2847. let _lchild = document.createElement('div')
  2848. let _limg = document.createElement('img')
  2849. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  2850. _limg.style = "width: 26px;margin-right: 10px;"
  2851. _lchild.appendChild(_limg)
  2852. let _lspan = document.createElement('span')
  2853. _lspan.innerHTML = "上传中..."
  2854. _lchild.appendChild(_lspan)
  2855. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  2856. _loading.appendChild(_lchild)
  2857. var _box = $$('div', {
  2858. "style": {
  2859. "position": "relative",
  2860. "width": "100%",
  2861. "height": "100%",
  2862. },
  2863. })
  2864. _box.appendChild(_loading)
  2865. _box.id = str + '_loadLi'
  2866. switch (str) {
  2867. case "whiteboard":
  2868. aTool = 1;
  2869. _iframe = $$("iframe", {
  2870. "frameborder": "no",
  2871. "border": "0",
  2872. "scrolling ": "no",
  2873. "style": {
  2874. "cssText": "border:0;width:100%;height:100%"
  2875. },
  2876. "src": "https://iwb.cocorobo.cn/"
  2877. })
  2878. _box.appendChild(_iframe);
  2879. _box.appendChild(_jie);
  2880. _formdiv = new U.UF.UI.form(
  2881. "电子白板",
  2882. _box, {
  2883. "id": "whiteboard" + cid + stage + task + tool,
  2884. "style": {
  2885. "width": "90%",
  2886. "height": "90%",
  2887. "overflow": 'hidden'
  2888. },
  2889. "onresize": function () { }
  2890. }, {
  2891. closecallback: function () { }
  2892. }, {
  2893. "style": {
  2894. "height": "36px"
  2895. }
  2896. }).form; //创建窗体
  2897. _taskbar = {
  2898. "id": str + _formdiv.id,
  2899. "style": {
  2900. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  2901. },
  2902. "name": "电子白板",
  2903. "forms": _formdiv,
  2904. "click": function () {
  2905. U.MD.D.I.openApplication(str, obj, info);
  2906. }
  2907. }
  2908. break;
  2909. case "mind":
  2910. aTool = 3;
  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": "/kityminder-editor/dist/index.html"
  2919. })
  2920. _box.appendChild(_iframe);
  2921. _box.appendChild(_jie);
  2922. _formdiv = new U.UF.UI.form(
  2923. "思维导图",
  2924. _box, { //"/jsmind/example/demo.html"
  2925. "id": "mind" + 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/mindMapping.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 "MindMap":
  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": "//cloud.cocorobo.cn/mind/"
  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 "doc":
  2994. aTool = 6;
  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": "/Office/Word/WordEditArea.htm"
  3003. })
  3004. _box.appendChild(_iframe);
  3005. _box.appendChild(_jie);
  3006. _formdiv = new U.UF.UI.form(
  3007. "协同文档",
  3008. _box, {
  3009. "id": "doc" + 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. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3024. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3025. })
  3026. _taskbar = {
  3027. "id": str + _formdiv.id,
  3028. "style": {
  3029. "backgroundImage": "url(/img/icon/doc.png)"
  3030. },
  3031. "name": "协同文档",
  3032. "forms": _formdiv,
  3033. "click": function () {
  3034. U.MD.D.I.openApplication(str, obj, info);
  3035. }
  3036. }
  3037. break;
  3038. case "mindNetwork": //好友打开
  3039. aTool = 7;
  3040. _iframe = $$("iframe", {
  3041. "webkitallowfullscreen": "",
  3042. "mozallowfullscreen": "",
  3043. "allowfullscreen": "",
  3044. "frameborder": "no",
  3045. "border": "0",
  3046. "scrolling ": "no",
  3047. "style": {
  3048. "cssText": "border:0; width:100%; height:100%;"
  3049. },
  3050. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3051. })
  3052. _box.appendChild(_iframe);
  3053. _box.appendChild(_jie);
  3054. _formdiv = new U.UF.UI.form(
  3055. "思维网格",
  3056. _box, {
  3057. "id": "mindNetwork" + cid + stage + task + tool,
  3058. "style": {
  3059. "width": "90%",
  3060. "height": "90%",
  3061. "overflow": 'hidden'
  3062. },
  3063. "onresize": function () { }
  3064. }, {
  3065. closecallback: function () { }
  3066. }, {
  3067. "style": {
  3068. "height": "36px"
  3069. }
  3070. }).form; //创建窗体
  3071. _taskbar = {
  3072. "id": str + _formdiv.id,
  3073. "style": {
  3074. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3075. },
  3076. "name": "思维网格",
  3077. "forms": _formdiv,
  3078. "click": function () {
  3079. U.MD.D.I.openApplication(str, obj, info);
  3080. }
  3081. }
  3082. break;
  3083. case "courseDesign":
  3084. _iframe = $$("iframe", {
  3085. "webkitallowfullscreen": "",
  3086. "mozallowfullscreen": "",
  3087. "allowfullscreen": "",
  3088. "frameborder": "no",
  3089. "border": "0",
  3090. "scrolling ": "no",
  3091. "style": {
  3092. "cssText": "border:0; width:100%; height:100%;"
  3093. },
  3094. "src": "/course-design-vue"
  3095. })
  3096. _box.appendChild(_iframe);
  3097. _box.appendChild(_jie);
  3098. _formdiv = new U.UF.UI.form(
  3099. "项目设计",
  3100. _box, {
  3101. "id": "courseDesign" + cid + stage + task + tool,
  3102. "style": {
  3103. "width": "90%",
  3104. "height": "90%",
  3105. "overflow": 'hidden'
  3106. },
  3107. "onresize": function () { }
  3108. }, {
  3109. closecallback: function () { }
  3110. }, {
  3111. "style": {
  3112. "height": "36px"
  3113. }
  3114. }).form; //创建窗体
  3115. _taskbar = {
  3116. "id": str + _formdiv.id,
  3117. "style": {
  3118. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3119. },
  3120. "name": "项目设计",
  3121. "forms": _formdiv,
  3122. "click": function () {
  3123. U.MD.D.I.openApplication(str, obj, info);
  3124. }
  3125. }
  3126. break;
  3127. }
  3128. const script1 = document.createElement("script");
  3129. script1.type = "text/javascript";
  3130. // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3131. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3132. const script2 = document.createElement("script");
  3133. script2.type = "text/javascript";
  3134. // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3135. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3136. const script3 = document.createElement("script");
  3137. script3.type = "text/javascript";
  3138. script3.charset = "UTF-8";
  3139. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3140. const script4 = document.createElement("script");
  3141. script4.type = "text/javascript";
  3142. // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  3143. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3144. if (_iframe) {
  3145. if (str == 'doc') {
  3146. U.UF.DL.iframeLoad(_iframe, function () {
  3147. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3148. _iframe.contentWindow.document.body.appendChild(script1);
  3149. _iframe.contentWindow.document.body.appendChild(script2);
  3150. // _iframe.contentWindow.document.body.appendChild(script3);
  3151. _iframe.contentWindow.document.body.appendChild(script4);
  3152. })
  3153. } else if (str == 'courseDesign') {
  3154. U.UF.DL.iframeLoad(_iframe, function () {
  3155. // _iframe.contentWindow.U.MD.O.W.load();
  3156. // _iframe.contentWindow.document.body.appendChild(script1);
  3157. _iframe.contentWindow.document.body.appendChild(script2);
  3158. _iframe.contentWindow.document.body.appendChild(script4);
  3159. })
  3160. } else if (str == 'mind') {
  3161. U.UF.DL.iframeLoad(_iframe, function () {
  3162. //
  3163. _iframe.contentWindow.document.body.appendChild(script1);
  3164. _iframe.contentWindow.document.body.appendChild(script2);
  3165. _iframe.contentWindow.document.body.appendChild(script4);
  3166. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3167. })
  3168. } else if (str == 'whiteboard') {
  3169. _iframe.onload = () => {
  3170. _iframe.contentWindow.document.body.appendChild(script1);
  3171. _iframe.contentWindow.document.body.appendChild(script2);
  3172. _iframe.contentWindow.document.body.appendChild(script4);
  3173. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3174. };
  3175. } else {
  3176. _iframe.onload = () => {
  3177. _iframe.contentWindow.document.body.appendChild(script1);
  3178. _iframe.contentWindow.document.body.appendChild(script2);
  3179. // _iframe.contentWindow.document.body.appendChild(script3);
  3180. _iframe.contentWindow.document.body.appendChild(script4);
  3181. };
  3182. }
  3183. _jie.onclick = async () => {
  3184. let text = ''
  3185. if (aTool == 1) {
  3186. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3187. } else if (aTool == 6) {
  3188. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3189. } else if (aTool == 3) {
  3190. text = await U.MD.D.I.getEditorContent(_iframe);
  3191. }
  3192. _loading.style.display = 'flex'
  3193. console.log(_loading);
  3194. var _ajs = _iframe.contentWindow.document.createElement("script");
  3195. _ajs.type = "text/javascript";
  3196. _ajs.innerHTML =
  3197. // 'console.log(' + _loading + ');\n' +
  3198. 'var _js = document.createElement("script");\n' +
  3199. '_js.type="text/javascript";\n' +
  3200. '_js.charset="UTF-8";\n' +
  3201. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3202. "_js.onload = function(){\n" +
  3203. ' var a = document.getElementsByTagName("img")\n' +
  3204. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3205. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3206. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3207. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3208. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3209. "beforeUpload_shishi(file," +
  3210. "'" +
  3211. _userid +
  3212. "'" +
  3213. ", " +
  3214. "'" +
  3215. _cid +
  3216. "'" +
  3217. ", " +
  3218. "'" +
  3219. _stage +
  3220. "'" +
  3221. ", " +
  3222. "'" +
  3223. _task +
  3224. "'" +
  3225. ", " +
  3226. "'" +
  3227. _tool +
  3228. "'" +
  3229. ", " +
  3230. "'" +
  3231. str + '_loadLi' +
  3232. "'" +
  3233. ", " +
  3234. "'" +
  3235. aTool +
  3236. "'" +
  3237. ", " +
  3238. "`" +
  3239. text +
  3240. "`" +
  3241. ")\n" +
  3242. " });\n" +
  3243. "}\n" +
  3244. "document.head.appendChild(_js);\n";
  3245. _iframe.contentWindow.document.head.appendChild(_ajs);
  3246. }
  3247. }
  3248. //U.MD.D.I.openClick(str);
  3249. //如果有任务栏信息
  3250. // if (_taskbar) {
  3251. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3252. // }
  3253. }
  3254. U.MD.D.I.getEditorContent = function (iframe) {
  3255. return new Promise((resolve, reject) => {
  3256. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  3257. console.log(content);
  3258. resolve(content)
  3259. });
  3260. });
  3261. }
  3262. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  3263. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  3264. // if (res.value[0].length > 0) {
  3265. // // resolve(res.value[0][0].text);
  3266. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  3267. // $(fileInput).val('');
  3268. // });
  3269. // }
  3270. // }, [], { "type": "GET", "withCredentials": true });
  3271. var xmlhttp;
  3272. var Mac, Sn, DeviceId
  3273. if (window.XMLHttpRequest) {
  3274. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  3275. xmlhttp = new XMLHttpRequest();
  3276. }
  3277. else {
  3278. // IE6, IE5 浏览器执行代码
  3279. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  3280. }
  3281. xmlhttp.onreadystatechange = function () {
  3282. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  3283. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  3284. // resolve(res.value[0][0].text);
  3285. if (type == '2') {
  3286. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  3287. $(fileInput).val('');
  3288. });
  3289. } else if (type == '3') {
  3290. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  3291. }
  3292. } else {
  3293. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  3294. }
  3295. }
  3296. }
  3297. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  3298. xmlhttp.send();
  3299. }
  3300. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  3301. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3302. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3303. _userinfo = US.userInfo, //登录用户信息
  3304. _userid = US.userInfo.userid //登录用户id
  3305. let _iframe;
  3306. let _cid = cid,
  3307. _stage = stage,
  3308. _task = task,
  3309. _tool = tool;
  3310. var _jie = $$("div", {
  3311. "style": {
  3312. "position": "absolute",
  3313. "bottom": "50px",
  3314. "right": "50px",
  3315. "zIndex": "9999",
  3316. "backgroundColor": "#2268bc",
  3317. "color": "#fff",
  3318. "padding": "12px 20px",
  3319. "cursor": "pointer",
  3320. "borderRadius": "4px",
  3321. },
  3322. "innerHTML": "确认并提交"
  3323. })
  3324. let aTool = ''
  3325. let _loading = document.createElement('div')
  3326. _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;"
  3327. // _loading.id = "";
  3328. let _lchild = document.createElement('div')
  3329. let _limg = document.createElement('img')
  3330. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  3331. _limg.style = "width: 26px;margin-right: 10px;"
  3332. _lchild.appendChild(_limg)
  3333. let _lspan = document.createElement('span')
  3334. _lspan.innerHTML = "上传中..."
  3335. _lchild.appendChild(_lspan)
  3336. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  3337. _loading.appendChild(_lchild)
  3338. var _box = $$('div', {
  3339. "style": {
  3340. "position": "relative",
  3341. "width": "100%",
  3342. "height": "100%",
  3343. },
  3344. })
  3345. _box.appendChild(_loading)
  3346. _box.id = str + '_loadLi'
  3347. switch (str) {
  3348. case "whiteboard":
  3349. aTool = 1;
  3350. _iframe = $$("iframe", {
  3351. "frameborder": "no",
  3352. "border": "0",
  3353. "scrolling ": "no",
  3354. "style": {
  3355. "cssText": "border:0;width:100%;height:100%"
  3356. },
  3357. "src": "https://iwb.cocorobo.cn/"
  3358. })
  3359. _box.appendChild(_iframe);
  3360. _box.appendChild(_jie);
  3361. _formdiv = new U.UF.UI.form(
  3362. "电子白板",
  3363. _box, {
  3364. "id": "whiteboards" + cid + stage + task + tool,
  3365. "style": {
  3366. "width": "90%",
  3367. "height": "90%",
  3368. "overflow": 'hidden'
  3369. },
  3370. "onresize": function () { }
  3371. }, {
  3372. closecallback: function () { }
  3373. }, {
  3374. "style": {
  3375. "height": "36px"
  3376. }
  3377. }).form; //创建窗体
  3378. _taskbar = {
  3379. "id": str + _formdiv.id,
  3380. "style": {
  3381. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3382. },
  3383. "name": "电子白板",
  3384. "forms": _formdiv,
  3385. "click": function () {
  3386. U.MD.D.I.openApplication(str, obj, info);
  3387. }
  3388. }
  3389. break;
  3390. case "mind":
  3391. aTool = 3;
  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": "/kityminder-editor/dist/index.html"
  3400. });
  3401. _box.appendChild(_iframe);
  3402. _box.appendChild(_jie);
  3403. _formdiv = new U.UF.UI.form(
  3404. "思维导图",
  3405. _box, { //"/jsmind/example/demo.html"
  3406. "id": "minds" + 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/mindMapping.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 "doc":
  3433. aTool = 6;
  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": "/Office/Word/WordEditArea.htm"
  3442. })
  3443. _box.appendChild(_iframe);
  3444. _box.appendChild(_jie);
  3445. _formdiv = new U.UF.UI.form(
  3446. "协同文档",
  3447. _box, {
  3448. "id": "docs" + 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. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3463. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  3464. })
  3465. _taskbar = {
  3466. "id": str + _formdiv.id,
  3467. "style": {
  3468. "backgroundImage": "url(/img/icon/doc.png)"
  3469. },
  3470. "name": "协同文档",
  3471. "forms": _formdiv,
  3472. "click": function () {
  3473. U.MD.D.I.openApplication(str, obj, info);
  3474. }
  3475. }
  3476. break;
  3477. }
  3478. const script1 = document.createElement("script");
  3479. script1.type = "text/javascript";
  3480. // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3481. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3482. const script2 = document.createElement("script");
  3483. script2.type = "text/javascript";
  3484. // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3485. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3486. const script3 = document.createElement("script");
  3487. script3.type = "text/javascript";
  3488. script3.charset = "UTF-8";
  3489. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3490. const script4 = document.createElement("script");
  3491. script4.type = "text/javascript";
  3492. // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu4.js";
  3493. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  3494. if (_iframe) {
  3495. if (str == 'doc') {
  3496. U.UF.DL.iframeLoad(_iframe, function () {
  3497. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  3498. _iframe.contentWindow.document.body.appendChild(script1);
  3499. _iframe.contentWindow.document.body.appendChild(script2);
  3500. // _iframe.contentWindow.document.body.appendChild(script3);
  3501. _iframe.contentWindow.document.body.appendChild(script4);
  3502. })
  3503. } else if (str == 'mind') {
  3504. U.UF.DL.iframeLoad(_iframe, function () {
  3505. _iframe.contentWindow.document.body.appendChild(script1);
  3506. _iframe.contentWindow.document.body.appendChild(script2);
  3507. _iframe.contentWindow.document.body.appendChild(script4);
  3508. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  3509. })
  3510. } else {
  3511. _iframe.onload = () => {
  3512. _iframe.contentWindow.document.body.appendChild(script1);
  3513. _iframe.contentWindow.document.body.appendChild(script2);
  3514. // _iframe.contentWindow.document.body.appendChild(script3);
  3515. _iframe.contentWindow.document.body.appendChild(script4);
  3516. };
  3517. }
  3518. _jie.onclick = async () => {
  3519. let text = ''
  3520. if (aTool == 6) {
  3521. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3522. } else if (aTool == 3) {
  3523. text = await U.MD.D.I.getEditorContent(_iframe);
  3524. }
  3525. _loading.style.display = 'flex'
  3526. console.log(_loading);
  3527. var _ajs = _iframe.contentWindow.document.createElement("script");
  3528. _ajs.type = "text/javascript";
  3529. _ajs.innerHTML =
  3530. // 'console.log(' + _loading + ');\n' +
  3531. 'var _js = document.createElement("script");\n' +
  3532. '_js.type="text/javascript";\n' +
  3533. '_js.charset="UTF-8";\n' +
  3534. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3535. "_js.onload = function(){\n" +
  3536. ' var a = document.getElementsByTagName("img")\n' +
  3537. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3538. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3539. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3540. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3541. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3542. "beforeUpload_shishi(file," +
  3543. "'" +
  3544. _userid +
  3545. "'" +
  3546. ", " +
  3547. "'" +
  3548. _cid +
  3549. "'" +
  3550. ", " +
  3551. "'" +
  3552. _stage +
  3553. "'" +
  3554. ", " +
  3555. "'" +
  3556. _task +
  3557. "'" +
  3558. ", " +
  3559. "'" +
  3560. _tool +
  3561. "'" +
  3562. ", " +
  3563. "'" +
  3564. str + '_loadLi' +
  3565. "'" +
  3566. ", " +
  3567. "'" +
  3568. aTool +
  3569. "'" +
  3570. ", " +
  3571. "`" +
  3572. text +
  3573. "`" +
  3574. ")\n" +
  3575. " });\n" +
  3576. "}\n" +
  3577. "document.head.appendChild(_js);\n";
  3578. _iframe.contentWindow.document.head.appendChild(_ajs);
  3579. }
  3580. }
  3581. //U.MD.D.I.openClick(str);
  3582. //如果有任务栏信息
  3583. // if (_taskbar) {
  3584. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3585. // }
  3586. }
  3587. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  3588. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3589. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3590. _userinfo = US.userInfo, //登录用户信息
  3591. _userid = US.userInfo.userid //登录用户id
  3592. let _iframe;
  3593. let _cid = cid,
  3594. _stage = stage,
  3595. _task = task,
  3596. _tool = tool;
  3597. var _jie = $$("div", {
  3598. "style": {
  3599. "position": "absolute",
  3600. "bottom": "50px",
  3601. "right": "50px",
  3602. "zIndex": "9999",
  3603. "backgroundColor": "#2268bc",
  3604. "color": "#fff",
  3605. "padding": "12px 20px",
  3606. "cursor": "pointer",
  3607. "borderRadius": "4px",
  3608. },
  3609. "innerHTML": "上传模板"
  3610. })
  3611. let aTool = ''
  3612. let _loading = document.createElement('div')
  3613. _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;"
  3614. // _loading.id = "";
  3615. let _lchild = document.createElement('div')
  3616. let _limg = document.createElement('img')
  3617. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  3618. _limg.style = "width: 26px;margin-right: 10px;"
  3619. _lchild.appendChild(_limg)
  3620. let _lspan = document.createElement('span')
  3621. _lspan.innerHTML = "上传中..."
  3622. _lchild.appendChild(_lspan)
  3623. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  3624. _loading.appendChild(_lchild)
  3625. var _box = $$('div', {
  3626. "style": {
  3627. "position": "relative",
  3628. "width": "100%",
  3629. "height": "100%",
  3630. },
  3631. })
  3632. _box.appendChild(_loading)
  3633. _box.id = str + '_loadLi'
  3634. switch (str) {
  3635. case "whiteboard":
  3636. aTool = 1;
  3637. _iframe = $$("iframe", {
  3638. "frameborder": "no",
  3639. "border": "0",
  3640. "scrolling ": "no",
  3641. "style": {
  3642. "cssText": "border:0;width:100%;height:100%"
  3643. },
  3644. "src": "https://iwb.cocorobo.cn/"
  3645. })
  3646. _box.appendChild(_iframe);
  3647. _box.appendChild(_jie);
  3648. _formdiv = new U.UF.UI.form(
  3649. "电子白板",
  3650. _box, {
  3651. "id": "whiteboards" + cid + stage + task + tool,
  3652. "style": {
  3653. "width": "90%",
  3654. "height": "90%",
  3655. "overflow": 'hidden'
  3656. },
  3657. "onresize": function () { }
  3658. }, {
  3659. closecallback: function () { }
  3660. }, {
  3661. "style": {
  3662. "height": "36px"
  3663. }
  3664. }).form; //创建窗体
  3665. _taskbar = {
  3666. "id": str + _formdiv.id,
  3667. "style": {
  3668. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3669. },
  3670. "name": "电子白板",
  3671. "forms": _formdiv,
  3672. "click": function () {
  3673. U.MD.D.I.openApplication(str, obj, info);
  3674. }
  3675. }
  3676. break;
  3677. case "mind":
  3678. aTool = 3;
  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": "/kityminder-editor/dist/index.html"
  3687. });
  3688. _box.appendChild(_iframe);
  3689. _box.appendChild(_jie);
  3690. _formdiv = new U.UF.UI.form(
  3691. "思维导图",
  3692. _box, { //"/jsmind/example/demo.html"
  3693. "id": "minds" + 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/mindMapping.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 "doc":
  3720. aTool = 6;
  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": "/Office/Word/WordEditArea.htm"
  3729. })
  3730. _box.appendChild(_iframe);
  3731. _box.appendChild(_jie);
  3732. _formdiv = new U.UF.UI.form(
  3733. "协同文档",
  3734. _box, {
  3735. "id": "docs" + 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. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3750. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  3751. })
  3752. _taskbar = {
  3753. "id": str + _formdiv.id,
  3754. "style": {
  3755. "backgroundImage": "url(/img/icon/doc.png)"
  3756. },
  3757. "name": "协同文档",
  3758. "forms": _formdiv,
  3759. "click": function () {
  3760. U.MD.D.I.openApplication(str, obj, info);
  3761. }
  3762. }
  3763. break;
  3764. }
  3765. const script1 = document.createElement("script");
  3766. script1.type = "text/javascript";
  3767. // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3768. // script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3769. // const script2 = document.createElement("script");
  3770. // script2.type = "text/javascript";
  3771. // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3772. // script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3773. // const script3 = document.createElement("script");
  3774. // script3.type = "text/javascript";
  3775. // script3.charset = "UTF-8";
  3776. // script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3777. // const script4 = document.createElement("script");
  3778. // script4.type = "text/javascript";
  3779. // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu4.js";
  3780. // script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  3781. if (_iframe) {
  3782. if (str == 'doc') {
  3783. U.UF.DL.iframeLoad(_iframe, function () {
  3784. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  3785. })
  3786. } else if (str == 'mind') {
  3787. U.UF.DL.iframeLoad(_iframe, function () {
  3788. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  3789. })
  3790. } else if (str == 'whiteboard') {
  3791. U.UF.DL.iframeLoad(_iframe, function () {
  3792. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  3793. })
  3794. } else {
  3795. _iframe.onload = () => {
  3796. };
  3797. }
  3798. _jie.onclick = async () => {
  3799. let text = ''
  3800. let type = '2'
  3801. if (aTool == 1) {
  3802. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3803. type = '3'
  3804. } else if (aTool == 6) {
  3805. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3806. type = '2'
  3807. } else if (aTool == 3) {
  3808. text = await U.MD.D.I.getEditorContent(_iframe);
  3809. type = '1'
  3810. }
  3811. _loading.style.display = 'flex'
  3812. U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading, _lspan)
  3813. }
  3814. }
  3815. //U.MD.D.I.openClick(str);
  3816. //如果有任务栏信息
  3817. // if (_taskbar) {
  3818. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3819. // }
  3820. }
  3821. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  3822. var xmlhttp;
  3823. var Mac, Sn, DeviceId
  3824. if (window.XMLHttpRequest) {
  3825. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  3826. xmlhttp = new XMLHttpRequest();
  3827. }
  3828. else {
  3829. // IE6, IE5 浏览器执行代码
  3830. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  3831. }
  3832. xmlhttp.onreadystatechange = function () {
  3833. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  3834. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  3835. // resolve(res.value[0][0].text);
  3836. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  3837. $(fileInput).val('');
  3838. });
  3839. }
  3840. }
  3841. }
  3842. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  3843. xmlhttp.send();
  3844. }
  3845. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  3846. var xmlhttp;
  3847. var Mac, Sn, DeviceId
  3848. if (window.XMLHttpRequest) {
  3849. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  3850. xmlhttp = new XMLHttpRequest();
  3851. }
  3852. else {
  3853. // IE6, IE5 浏览器执行代码
  3854. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  3855. }
  3856. xmlhttp.onreadystatechange = function () {
  3857. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  3858. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  3859. // resolve(res.value[0][0].text);
  3860. if (type == '2') {
  3861. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  3862. $(fileInput).val('');
  3863. });
  3864. } else if (type == '3') {
  3865. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  3866. }
  3867. }else {
  3868. iframe.contentWindow.h.app.updateScene({ elements: [] })
  3869. }
  3870. }
  3871. }
  3872. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  3873. xmlhttp.send();
  3874. }
  3875. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  3876. var xmlhttp;
  3877. var Mac, Sn, DeviceId
  3878. if (window.XMLHttpRequest) {
  3879. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  3880. xmlhttp = new XMLHttpRequest();
  3881. }
  3882. else {
  3883. // IE6, IE5 浏览器执行代码
  3884. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  3885. }
  3886. xmlhttp.onreadystatechange = function () {
  3887. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  3888. if (xmlhttp.response) {
  3889. // resolve(res.value[0][0].text);
  3890. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  3891. // $(fileInput).val('');
  3892. // });
  3893. span.innerHTML = '上传成功'
  3894. setTimeout(() => {
  3895. loading.style.display = 'none'
  3896. }, 1000);
  3897. }
  3898. }
  3899. }
  3900. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  3901. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  3902. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  3903. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  3904. // 设置请求头,表示请求体的编码格式
  3905. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
  3906. // 设置请求体,使用url-encoded格式的数据
  3907. }