DeskTop.js 311 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401
  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": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  17. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  18. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  19. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  20. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  21. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  22. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  23. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  24. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  25. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  26. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  27. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  28. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  29. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  30. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  31. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  32. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  33. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  34. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  35. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  36. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  37. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  38. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  39. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  40. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  41. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  42. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  43. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  44. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  45. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  46. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  47. ];
  48. //极简模式
  49. U.MD.D.I.easyDeskIcon = [
  50. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  51. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  52. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  54. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  55. ];
  56. //教师桌面图标的全局变量
  57. U.MD.D.I.teacherDeskIcon2 = [
  58. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  59. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  60. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  61. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  62. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  63. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  64. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  65. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  66. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  67. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  68. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  69. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  70. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  71. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  72. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  73. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  74. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  75. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  76. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  77. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  78. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  79. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  80. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  81. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  82. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  83. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  84. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  85. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  86. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  87. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  88. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  89. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  90. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  91. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  92. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  93. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  94. ];
  95. U.MD.D.I.studentDeskIcon = [
  96. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  97. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  98. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  99. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  100. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  101. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  102. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  103. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  104. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  105. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  106. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  107. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  108. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  109. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  110. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  111. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  112. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  113. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  114. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  115. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  116. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  117. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  118. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  119. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  120. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  121. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  122. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  123. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  124. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  125. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  126. ];
  127. U.MD.D.I.studentDeskIcon2 = [
  128. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  129. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  130. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  131. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  132. ]
  133. U.MD.D.I.studentDeskIcon3 = [
  134. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  135. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  136. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  137. ]
  138. U.MD.D.I.schoolDeskIcon = [
  139. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  140. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  141. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  142. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  143. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  144. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  145. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  146. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  147. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  148. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  149. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  150. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  151. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  152. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  153. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  154. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  155. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  156. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  157. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  158. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  159. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  160. ];
  161. U.MD.D.I.orgDeskIcon = [
  162. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  163. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  164. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  165. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  166. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  167. ];
  168. U.MD.D.I.orgStemDeskIcon = [
  169. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  170. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  171. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  172. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  173. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  174. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  175. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  176. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  177. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  178. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  179. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  180. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  181. ];
  182. U.MD.D.I.szulsDeskIcon = [
  183. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  184. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  185. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  186. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  187. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  188. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  189. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  190. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  191. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  192. ];
  193. U.MD.D.I.hanDeskIcon = [
  194. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  195. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  196. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  197. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  198. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  199. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  200. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  201. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  202. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  203. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  204. ];
  205. U.MD.D.I.GMteacherDeskIcon = [
  206. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  207. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  208. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  209. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  210. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  211. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  212. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  213. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  214. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  215. ];
  216. U.MD.D.I.GMstudentDeskIcon = [
  217. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  218. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  219. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  220. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  221. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  222. ];
  223. //北师大
  224. U.MD.D.I.BSDNSteacherDeskIcon = [
  225. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  226. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  227. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  228. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  229. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  230. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  231. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  232. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  233. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  234. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  235. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  236. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  237. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  238. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  239. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  240. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  241. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  242. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  243. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  244. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  245. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  246. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  247. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  248. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  249. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  250. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  251. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  252. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  253. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  254. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  255. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  256. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  257. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  258. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  259. ];
  260. //松山湖
  261. U.MD.D.I.SONGteacherDeskIcon = [
  262. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  263. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  264. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  265. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  266. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  267. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  268. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  269. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  270. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  271. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  272. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  273. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  274. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  275. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  276. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  277. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  278. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  279. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  280. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  281. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  282. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  283. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  284. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  285. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  286. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  287. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  288. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  289. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  290. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  291. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  292. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  293. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  294. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  295. ];
  296. U.MD.D.I.tcStudentDeskIcon = [
  297. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  298. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  299. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  300. ];
  301. U.MD.D.I.tcTeacherDeskIcon = [
  302. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  303. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  304. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  305. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  306. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  307. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  308. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  309. ];
  310. U.MD.D.I.tcOrganizerDeskIcon = [
  311. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  312. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  313. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  314. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  315. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  316. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  317. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  318. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.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.szscStudentDeskIcon = [
  323. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  324. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  325. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  326. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  327. ];
  328. U.MD.D.I.szscTeacherDeskIcon = [
  329. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  330. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  331. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  332. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  333. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  334. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  335. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. ];
  338. U.MD.D.I.szscOrganizerDeskIcon = [
  339. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  340. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  341. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  342. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  343. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  344. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  345. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  346. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  347. ];
  348. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  349. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  350. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  351. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  352. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  353. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  354. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  355. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  356. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  357. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  358. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  359. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  360. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  361. ];
  362. U.MD.D.I.wankeAdminDeskIcon = [
  363. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  364. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  365. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  366. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  367. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  368. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  369. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  370. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  371. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  372. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  373. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  374. ];
  375. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  376. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  377. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  378. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  379. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  380. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  381. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  382. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  383. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  384. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  385. ];
  386. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  387. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  388. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  389. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  390. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  391. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  392. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  393. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  394. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  395. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  396. ];
  397. //明德教师桌面图标的全局变量
  398. U.MD.D.I.MingdeTeacherDeskIcon = [
  399. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  400. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  401. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  402. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  403. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  404. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  405. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  406. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  407. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  408. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  409. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  410. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  411. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  412. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  413. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  414. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  415. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  416. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  417. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  418. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  419. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  420. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  421. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  422. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  423. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  424. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  425. ];
  426. //97c4ee8b-d010-4042-986d-e9d3c217264f
  427. //教师桌面图标的全局变量
  428. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  429. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  430. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  431. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  432. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  433. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  434. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  435. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  436. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  437. ];
  438. //福田
  439. U.MD.D.I.futianTeacherDeskIcon = [
  440. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  441. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  442. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  443. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  444. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  445. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  446. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  447. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  448. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  449. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  450. ];
  451. //福田
  452. U.MD.D.I.futianAdminDeskIcon = [
  453. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  454. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  455. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  456. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  457. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  458. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  459. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  460. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  461. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  462. ];
  463. //lotech
  464. U.MD.D.I.lotechTeacherDeskIcon = [
  465. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  466. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  467. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  468. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  469. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  470. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  471. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  472. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  473. ];
  474. //#region 桌面初始化a
  475. /**
  476. * 初始化桌面的起始函数
  477. *
  478. */
  479. U.MD.D.I.init = function () {
  480. if ($("#U_MD_D_K")[0]) {
  481. //初始化桌面图标
  482. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  483. // var clickUrl = ':12588/requestIp.php';
  484. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  485. // U.MD.D.I.Ip = data;
  486. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  487. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  488. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  489. // })
  490. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  491. // })
  492. }
  493. }
  494. /**
  495. * 模式切换
  496. *
  497. */
  498. U.MD.D.I.ModeCheck = function (type) {
  499. if (US.Config.type == type) {
  500. return
  501. }
  502. US.Config.type = type
  503. $('.U_PBL_Check .active')[0].className = ''
  504. if (type == 1) {
  505. $('.U_PBL_Check div')[0].className = 'active'
  506. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  507. } else {
  508. $('.U_PBL_Check div')[1].className = 'active'
  509. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  510. }
  511. //初始化桌面图标
  512. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  513. }
  514. /**
  515. * 隐藏任务栏
  516. *
  517. * @param {element} 桌面元素
  518. */
  519. U.MD.D.I.hiddenTaskbar = function (el) {
  520. //任务栏位置变小
  521. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  522. //桌面的位置变大
  523. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  524. }
  525. /**
  526. * 隐藏任务栏
  527. *
  528. * @param {element} 桌面元素
  529. */
  530. U.MD.D.I.hiddenTaskbarout = function (el) {
  531. //任务栏位置变小
  532. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  533. //任务栏位置变化
  534. U.selectEl(el).css({ "bottom": "-60px" });
  535. //桌面的位置变大
  536. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  537. }
  538. }
  539. /**
  540. * 初始化打印桌面图标
  541. *
  542. * @param {element} 桌面元素
  543. */
  544. U.MD.D.I.initDesktopIcons = function (el, type) {
  545. var i, //用于循环
  546. _content, //桌面图标元素
  547. _iconcontent, //桌面图标元素
  548. _frag = $$("frag"), //定义一个碎片元素
  549. _type = US.userInfo.type,
  550. _org = US.userInfo.org,
  551. _oid = US.userInfo.organizeid,
  552. _role = US.userInfo.role,
  553. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  554. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  555. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  556. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  557. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  558. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  559. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  560. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  561. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  562. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  563. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  564. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  565. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  566. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  567. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  568. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  569. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  570. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  571. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  572. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  573. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  574. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  575. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  576. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  577. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  578. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  579. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  580. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  581. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  582. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  583. 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', '91305d49-01ba-11ed-8c78-005056b86db4'];
  584. 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", '97c4ee8b-d010-4042-986d-e9d3c217264f','ec0af97a-7c10-4259-a7eb-db9cc8174cdc','4df1b570-f6ac-48fc-8d50-d0b157dae776'];
  585. //清楚桌面图标
  586. el.innerHTML = "";
  587. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  588. _teacherDesktopIconInfo.push(
  589. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  590. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  591. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  592. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  593. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  594. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  595. )
  596. _easyDesktopIconInfo.push(
  597. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  598. )
  599. }
  600. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  601. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  602. if(el.Name == '项目管理'){
  603. el.Name = 'PBL项目'
  604. }
  605. return el
  606. })
  607. }
  608. if (_oid == '4c686762-1d0a-11ed-8c78-005056b86db5') {
  609. _teacherDesktopIconInfo.push(
  610. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  611. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  612. )
  613. }
  614. if (_oid != '4c686762-1d0a-11ed-8c78-005056b86db5' && _oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  615. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  616. return el.Name != '魔盒识字' && el.Name != '24点'
  617. })
  618. }
  619. if ((_oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") && _type == 2) {
  620. _studentDesktopIconInfo.push(
  621. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  622. )
  623. }
  624. //循环创建桌面图标
  625. if (type == 1) {
  626. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  627. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  628. _content = $$("div", {
  629. className: "U_MD_D_KO",
  630. "onmousedown": U.UF.C.closure(function (obj) {
  631. //防止拖动图标即打开了桌面应用
  632. U.MD.D.click(this, obj);
  633. }, [_studentDesktopIconInfo[i]]),
  634. "onclick": U.UF.C.closure(function (obj) {
  635. //防止拖动图标即打开了桌面应用
  636. U.MD.D.click(this, obj);
  637. }, [_studentDesktopIconInfo[i]])
  638. }, _frag); //
  639. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  640. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  641. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  642. }
  643. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  644. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  645. _content = $$("div", {
  646. className: "U_MD_D_KO",
  647. "onmousedown": U.UF.C.closure(function (obj) {
  648. //防止拖动图标即打开了桌面应用
  649. U.MD.D.click(this, obj);
  650. }, [_studentDesktopIconInfo[i]]),
  651. "onclick": U.UF.C.closure(function (obj) {
  652. //防止拖动图标即打开了桌面应用
  653. U.MD.D.click(this, obj);
  654. }, [_studentDesktopIconInfo[i]])
  655. }, _frag); //
  656. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  657. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  658. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  659. }
  660. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  661. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  662. _content = $$("div", {
  663. className: "U_MD_D_KO",
  664. "onmousedown": U.UF.C.closure(function (obj) {
  665. //防止拖动图标即打开了桌面应用
  666. U.MD.D.click(this, obj);
  667. }, [_tcStudentDeskIconInfo[i]]),
  668. "onclick": U.UF.C.closure(function (obj) {
  669. //防止拖动图标即打开了桌面应用
  670. U.MD.D.click(this, obj);
  671. }, [_tcStudentDeskIconInfo[i]])
  672. }, _frag); //
  673. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  674. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  675. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  676. }
  677. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  678. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  679. _content = $$("div", {
  680. className: "U_MD_D_KO",
  681. "onmousedown": U.UF.C.closure(function (obj) {
  682. //防止拖动图标即打开了桌面应用
  683. U.MD.D.click(this, obj);
  684. }, [_szscStudentDeskIconInfo[i]]),
  685. "onclick": U.UF.C.closure(function (obj) {
  686. //防止拖动图标即打开了桌面应用
  687. U.MD.D.click(this, obj);
  688. }, [_szscStudentDeskIconInfo[i]])
  689. }, _frag); //
  690. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  691. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  692. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  693. }
  694. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  695. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  696. _content = $$("div", {
  697. className: "U_MD_D_KO",
  698. "onmousedown": U.UF.C.closure(function (obj) {
  699. //防止拖动图标即打开了桌面应用
  700. U.MD.D.click(this, obj);
  701. }, [_studentDesktopIconInfo3[i]]),
  702. "onclick": U.UF.C.closure(function (obj) {
  703. //防止拖动图标即打开了桌面应用
  704. U.MD.D.click(this, obj);
  705. }, [_studentDesktopIconInfo3[i]])
  706. }, _frag); //
  707. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  708. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  709. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  710. }
  711. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  712. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  713. _content = $$("div", {
  714. className: "U_MD_D_KO",
  715. "onmousedown": U.UF.C.closure(function (obj) {
  716. //防止拖动图标即打开了桌面应用
  717. U.MD.D.click(this, obj);
  718. }, [_studentDesktopIconInfo2[i]]),
  719. "onclick": U.UF.C.closure(function (obj) {
  720. //防止拖动图标即打开了桌面应用
  721. U.MD.D.click(this, obj);
  722. }, [_studentDesktopIconInfo2[i]])
  723. }, _frag); //
  724. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  725. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  726. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  727. }
  728. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  729. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  730. _content = $$("div", {
  731. className: "U_MD_D_KO",
  732. "onmousedown": U.UF.C.closure(function (obj) {
  733. //防止拖动图标即打开了桌面应用
  734. U.MD.D.click(this, obj);
  735. }, [_wanketeacherDesktopIconInfo[i]]),
  736. "onclick": U.UF.C.closure(function (obj) {
  737. //防止拖动图标即打开了桌面应用
  738. U.MD.D.click(this, obj);
  739. }, [_wanketeacherDesktopIconInfo[i]])
  740. }, _frag); //
  741. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  742. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  743. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  744. }
  745. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  746. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  747. _content = $$("div", {
  748. className: "U_MD_D_KO",
  749. "onmousedown": U.UF.C.closure(function (obj) {
  750. //防止拖动图标即打开了桌面应用
  751. U.MD.D.click(this, obj);
  752. }, [_wankeAdminDesktopIconInfo[i]]),
  753. "onclick": U.UF.C.closure(function (obj) {
  754. //防止拖动图标即打开了桌面应用
  755. U.MD.D.click(this, obj);
  756. }, [_wankeAdminDesktopIconInfo[i]])
  757. }, _frag); //
  758. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  759. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  760. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  761. }
  762. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  763. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  764. _content = $$("div", {
  765. className: "U_MD_D_KO",
  766. "onmousedown": U.UF.C.closure(function (obj) {
  767. //防止拖动图标即打开了桌面应用
  768. U.MD.D.click(this, obj);
  769. }, [_teacherDesktopIconInfo2[i]]),
  770. "onclick": U.UF.C.closure(function (obj) {
  771. //防止拖动图标即打开了桌面应用
  772. U.MD.D.click(this, obj);
  773. }, [_teacherDesktopIconInfo2[i]])
  774. }, _frag); //
  775. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  776. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  777. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  778. }
  779. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  780. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  781. _content = $$("div", {
  782. className: "U_MD_D_KO",
  783. "onmousedown": U.UF.C.closure(function (obj) {
  784. //防止拖动图标即打开了桌面应用
  785. U.MD.D.click(this, obj);
  786. }, [_lotechTeacherDeskIconInfo[i]]),
  787. "onclick": U.UF.C.closure(function (obj) {
  788. //防止拖动图标即打开了桌面应用
  789. U.MD.D.click(this, obj);
  790. }, [_lotechTeacherDeskIconInfo[i]])
  791. }, _frag); //
  792. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  793. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  794. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  795. }
  796. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  797. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  798. _content = $$("div", {
  799. className: "U_MD_D_KO",
  800. "onmousedown": U.UF.C.closure(function (obj) {
  801. //防止拖动图标即打开了桌面应用
  802. U.MD.D.click(this, obj);
  803. }, [_futianAdminDeskIconInfo[i]]),
  804. "onclick": U.UF.C.closure(function (obj) {
  805. //防止拖动图标即打开了桌面应用
  806. U.MD.D.click(this, obj);
  807. }, [_futianAdminDeskIconInfo[i]])
  808. }, _frag); //
  809. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  810. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  811. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  812. }
  813. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  814. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  815. _content = $$("div", {
  816. className: "U_MD_D_KO",
  817. "onmousedown": U.UF.C.closure(function (obj) {
  818. //防止拖动图标即打开了桌面应用
  819. U.MD.D.click(this, obj);
  820. }, [_futianTeacherDeskIconInfo[i]]),
  821. "onclick": U.UF.C.closure(function (obj) {
  822. //防止拖动图标即打开了桌面应用
  823. U.MD.D.click(this, obj);
  824. }, [_futianTeacherDeskIconInfo[i]])
  825. }, _frag); //
  826. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  827. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  828. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  829. }
  830. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  831. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  832. _content = $$("div", {
  833. className: "U_MD_D_KO",
  834. "onmousedown": U.UF.C.closure(function (obj) {
  835. //防止拖动图标即打开了桌面应用
  836. U.MD.D.click(this, obj);
  837. }, [_MingdeTeacherDeskIcon[i]]),
  838. "onclick": U.UF.C.closure(function (obj) {
  839. //防止拖动图标即打开了桌面应用
  840. U.MD.D.click(this, obj);
  841. }, [_MingdeTeacherDeskIcon[i]])
  842. }, _frag); //
  843. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  844. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  845. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  846. }
  847. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  848. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  849. _content = $$("div", {
  850. className: "U_MD_D_KO",
  851. "onmousedown": U.UF.C.closure(function (obj) {
  852. //防止拖动图标即打开了桌面应用
  853. U.MD.D.click(this, obj);
  854. }, [_lhsAdminDesktopIconInfo[i]]),
  855. "onclick": U.UF.C.closure(function (obj) {
  856. //防止拖动图标即打开了桌面应用
  857. U.MD.D.click(this, obj);
  858. }, [_lhsAdminDesktopIconInfo[i]])
  859. }, _frag); //
  860. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  861. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  862. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  863. }
  864. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  865. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  866. _content = $$("div", {
  867. className: "U_MD_D_KO",
  868. "onmousedown": U.UF.C.closure(function (obj) {
  869. //防止拖动图标即打开了桌面应用
  870. U.MD.D.click(this, obj);
  871. }, [_lhsteacherDesktopIconInfo[i]]),
  872. "onclick": U.UF.C.closure(function (obj) {
  873. //防止拖动图标即打开了桌面应用
  874. U.MD.D.click(this, obj);
  875. }, [_lhsteacherDesktopIconInfo[i]])
  876. }, _frag); //
  877. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  878. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  879. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  880. }
  881. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  882. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  883. _content = $$("div", {
  884. className: "U_MD_D_KO",
  885. "onmousedown": U.UF.C.closure(function (obj) {
  886. //防止拖动图标即打开了桌面应用
  887. U.MD.D.click(this, obj);
  888. }, [_zhoujiateacherDesktopIconInfo[i]]),
  889. "onclick": U.UF.C.closure(function (obj) {
  890. //防止拖动图标即打开了桌面应用
  891. U.MD.D.click(this, obj);
  892. }, [_zhoujiateacherDesktopIconInfo[i]])
  893. }, _frag); //
  894. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  895. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  896. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  897. }
  898. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  899. for (i = 0; i < _hanDeskIcon.length; i++) {
  900. _content = $$("div", {
  901. className: "U_MD_D_KO",
  902. "onmousedown": U.UF.C.closure(function (obj) {
  903. //防止拖动图标即打开了桌面应用
  904. U.MD.D.click(this, obj);
  905. }, [_hanDeskIcon[i]]),
  906. "onclick": U.UF.C.closure(function (obj) {
  907. //防止拖动图标即打开了桌面应用
  908. U.MD.D.click(this, obj);
  909. }, [_hanDeskIcon[i]])
  910. }, _frag); //
  911. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  912. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  913. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  914. }
  915. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  916. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  917. _content = $$("div", {
  918. className: "U_MD_D_KO",
  919. "onmousedown": U.UF.C.closure(function (obj) {
  920. //防止拖动图标即打开了桌面应用
  921. U.MD.D.click(this, obj);
  922. }, [_orgStemDeskIcon[i]]),
  923. "onclick": U.UF.C.closure(function (obj) {
  924. //防止拖动图标即打开了桌面应用
  925. U.MD.D.click(this, obj);
  926. }, [_orgStemDeskIcon[i]])
  927. }, _frag); //
  928. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  929. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  930. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  931. }
  932. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  933. for (i = 0; i < _szulsDeskIcon.length; i++) {
  934. _content = $$("div", {
  935. className: "U_MD_D_KO",
  936. "onmousedown": U.UF.C.closure(function (obj) {
  937. //防止拖动图标即打开了桌面应用
  938. U.MD.D.click(this, obj);
  939. }, [_szulsDeskIcon[i]]),
  940. "onclick": U.UF.C.closure(function (obj) {
  941. //防止拖动图标即打开了桌面应用
  942. U.MD.D.click(this, obj);
  943. }, [_szulsDeskIcon[i]])
  944. }, _frag); //
  945. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  946. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  947. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  948. }
  949. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  950. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  951. _content = $$("div", {
  952. className: "U_MD_D_KO",
  953. "onmousedown": U.UF.C.closure(function (obj) {
  954. //防止拖动图标即打开了桌面应用
  955. U.MD.D.click(this, obj);
  956. }, [_orgDesktopIconInfo[i]]),
  957. "onclick": U.UF.C.closure(function (obj) {
  958. //防止拖动图标即打开了桌面应用
  959. U.MD.D.click(this, obj);
  960. }, [_orgDesktopIconInfo[i]])
  961. }, _frag); //
  962. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  963. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  964. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  965. }
  966. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  967. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  968. _content = $$("div", {
  969. className: "U_MD_D_KO",
  970. "onmousedown": U.UF.C.closure(function (obj) {
  971. //防止拖动图标即打开了桌面应用
  972. U.MD.D.click(this, obj);
  973. }, [_schoolDesktopIconInfo[i]]),
  974. "onclick": U.UF.C.closure(function (obj) {
  975. //防止拖动图标即打开了桌面应用
  976. U.MD.D.click(this, obj);
  977. }, [_schoolDesktopIconInfo[i]])
  978. }, _frag); //
  979. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  980. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  981. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  982. }
  983. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  984. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  985. _content = $$("div", {
  986. className: "U_MD_D_KO",
  987. "onmousedown": U.UF.C.closure(function (obj) {
  988. //防止拖动图标即打开了桌面应用
  989. U.MD.D.click(this, obj);
  990. }, [_GMteacherDesktopIconInfo[i]]),
  991. "onclick": U.UF.C.closure(function (obj) {
  992. //防止拖动图标即打开了桌面应用
  993. U.MD.D.click(this, obj);
  994. }, [_GMteacherDesktopIconInfo[i]])
  995. }, _frag); //
  996. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  997. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  998. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  999. }
  1000. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1001. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1002. _content = $$("div", {
  1003. className: "U_MD_D_KO",
  1004. "onmousedown": U.UF.C.closure(function (obj) {
  1005. //防止拖动图标即打开了桌面应用
  1006. U.MD.D.click(this, obj);
  1007. }, [_SONGteacherDesktopIconInfo[i]]),
  1008. "onclick": U.UF.C.closure(function (obj) {
  1009. //防止拖动图标即打开了桌面应用
  1010. U.MD.D.click(this, obj);
  1011. }, [_SONGteacherDesktopIconInfo[i]])
  1012. }, _frag); //
  1013. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1014. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1015. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1016. }
  1017. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1018. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1019. _content = $$("div", {
  1020. className: "U_MD_D_KO",
  1021. "onmousedown": U.UF.C.closure(function (obj) {
  1022. //防止拖动图标即打开了桌面应用
  1023. U.MD.D.click(this, obj);
  1024. }, [_GMstudentDesktopIconInfo[i]]),
  1025. "onclick": U.UF.C.closure(function (obj) {
  1026. //防止拖动图标即打开了桌面应用
  1027. U.MD.D.click(this, obj);
  1028. }, [_GMstudentDesktopIconInfo[i]])
  1029. }, _frag); //
  1030. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1031. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1032. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1033. }
  1034. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1035. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1036. _content = $$("div", {
  1037. className: "U_MD_D_KO",
  1038. "onmousedown": U.UF.C.closure(function (obj) {
  1039. //防止拖动图标即打开了桌面应用
  1040. U.MD.D.click(this, obj);
  1041. }, [_tcTeacherDeskIconInfo[i]]),
  1042. "onclick": U.UF.C.closure(function (obj) {
  1043. //防止拖动图标即打开了桌面应用
  1044. U.MD.D.click(this, obj);
  1045. }, [_tcTeacherDeskIconInfo[i]])
  1046. }, _frag); //
  1047. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1048. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1049. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1050. }
  1051. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1052. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1053. _content = $$("div", {
  1054. className: "U_MD_D_KO",
  1055. "onmousedown": U.UF.C.closure(function (obj) {
  1056. //防止拖动图标即打开了桌面应用
  1057. U.MD.D.click(this, obj);
  1058. }, [_tcOrganizerDeskIconInfo[i]]),
  1059. "onclick": U.UF.C.closure(function (obj) {
  1060. //防止拖动图标即打开了桌面应用
  1061. U.MD.D.click(this, obj);
  1062. }, [_tcOrganizerDeskIconInfo[i]])
  1063. }, _frag); //
  1064. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1065. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1066. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1067. }
  1068. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1069. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1070. _content = $$("div", {
  1071. className: "U_MD_D_KO",
  1072. "onmousedown": U.UF.C.closure(function (obj) {
  1073. //防止拖动图标即打开了桌面应用
  1074. U.MD.D.click(this, obj);
  1075. }, [_szscTeacherDeskIconInfo[i]]),
  1076. "onclick": U.UF.C.closure(function (obj) {
  1077. //防止拖动图标即打开了桌面应用
  1078. U.MD.D.click(this, obj);
  1079. }, [_szscTeacherDeskIconInfo[i]])
  1080. }, _frag); //
  1081. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1082. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1083. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1084. }
  1085. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1086. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1087. _content = $$("div", {
  1088. className: "U_MD_D_KO",
  1089. "onmousedown": U.UF.C.closure(function (obj) {
  1090. //防止拖动图标即打开了桌面应用
  1091. U.MD.D.click(this, obj);
  1092. }, [_szscOrganizerDeskIconInfo[i]]),
  1093. "onclick": U.UF.C.closure(function (obj) {
  1094. //防止拖动图标即打开了桌面应用
  1095. U.MD.D.click(this, obj);
  1096. }, [_szscOrganizerDeskIconInfo[i]])
  1097. }, _frag); //
  1098. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1099. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1100. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1101. }
  1102. } else {
  1103. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1104. _content = $$("div", {
  1105. className: "U_MD_D_KO",
  1106. "onmousedown": U.UF.C.closure(function (obj) {
  1107. //防止拖动图标即打开了桌面应用
  1108. U.MD.D.click(this, obj);
  1109. }, [_teacherDesktopIconInfo[i]]),
  1110. "onclick": U.UF.C.closure(function (obj) {
  1111. //防止拖动图标即打开了桌面应用
  1112. U.MD.D.click(this, obj);
  1113. }, [_teacherDesktopIconInfo[i]])
  1114. }, _frag); //
  1115. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1116. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1117. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1118. }
  1119. }
  1120. } else {
  1121. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1122. _content = $$("div", {
  1123. className: "U_MD_D_KO",
  1124. style: { 'width': '124px', 'height': '145px' },
  1125. "onmousedown": U.UF.C.closure(function (obj) {
  1126. //防止拖动图标即打开了桌面应用
  1127. U.MD.D.click(this, obj);
  1128. }, [_easyDesktopIconInfo[i]]),
  1129. "onclick": U.UF.C.closure(function (obj) {
  1130. //防止拖动图标即打开了桌面应用
  1131. U.MD.D.click(this, obj);
  1132. }, [_easyDesktopIconInfo[i]])
  1133. }, _frag); //
  1134. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1135. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1136. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1137. }
  1138. }
  1139. if (type == 1) {
  1140. //加载好后给图标定位
  1141. U.MD.D.iconPostion($(_frag).Child());
  1142. } else {
  1143. //加载好后给图标定位
  1144. U.MD.D.iconPostion2($(_frag).Child());
  1145. }
  1146. //把图标加载到页面
  1147. el.appendChild(_frag);
  1148. }
  1149. /**
  1150. * 显示任务栏
  1151. *
  1152. * @param {element} 桌面元素
  1153. */
  1154. U.MD.D.I.displayTaskbar = function (el) {
  1155. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1156. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1157. //任务栏位置变化
  1158. U.selectEl(el).css({ "bottom": "0px" });
  1159. //桌面位置变话
  1160. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1161. }
  1162. }
  1163. //#region 桌面图标拖动逻辑
  1164. /**
  1165. * 桌面排列图标
  1166. *
  1167. * @param {element} 桌面元素
  1168. * @param {object} 上下相距的距离
  1169. * @param {object} 左右相距的距离
  1170. * @return {object} 命名空间
  1171. */
  1172. U.MD.D.iconPostion = function (childs, top, left) {
  1173. var i; //用于循环处理
  1174. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1175. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1176. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1177. for (i = 0; i < childs.length; i++) {
  1178. //如果竖排top超过了范围处理
  1179. if (top + 95 > US.height - 10) {
  1180. //left超过了页面范围处理,则向上重叠打印处理
  1181. if ((left + 180) > US.width) {
  1182. top -= 110;
  1183. left -= 90;
  1184. }
  1185. //没有超过范围,那么left+90添加到下一个竖排打印
  1186. else {
  1187. left += 90;
  1188. top = 15;
  1189. };
  1190. }
  1191. //给图标的位置赋值
  1192. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1193. if (i < childs.length - 1) {
  1194. //页面图标每次向下加95
  1195. top += 95;
  1196. }
  1197. }
  1198. //返回最后调用的图标的位置
  1199. return [top, left];
  1200. }
  1201. /**
  1202. * 桌面排列图标
  1203. *
  1204. * @param {element} 桌面元素
  1205. * @param {object} 上下相距的距离
  1206. * @param {object} 左右相距的距离
  1207. * @return {object} 命名空间
  1208. */
  1209. U.MD.D.iconPostion2 = function (childs, top, left) {
  1210. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1211. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1212. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1213. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1214. for (i = 0; i < childs.length; i++) {
  1215. //如果竖排top超过了范围处理
  1216. if (left + 150 > US.width - 10) {
  1217. //left超过了页面范围处理,则向上重叠打印处理
  1218. if ((top + 180) > US.Height) {
  1219. top -= 150;
  1220. left -= 150;
  1221. }
  1222. //没有超过范围,那么left+90添加到下一个竖排打印
  1223. else {
  1224. top += 150;
  1225. left = ol;
  1226. };
  1227. }
  1228. //给图标的位置赋值
  1229. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1230. if (i < childs.length - 1) {
  1231. //页面图标每次向下加95
  1232. left += 150;
  1233. }
  1234. }
  1235. //返回最后调用的图标的位置
  1236. return [top, left];
  1237. }
  1238. /**
  1239. * 桌面点击事件逻辑
  1240. *
  1241. * @param {element} 桌面元素
  1242. * @param {object} 上下相距的距离
  1243. * @param {object} 左右相距的距离
  1244. * @return {object} 命名空间
  1245. */
  1246. U.MD.D.click = function (el, obj) {
  1247. var _buttonnumber = event.button; //点击的按钮的事件值
  1248. var _userinfo = US.userInfo;
  1249. U.UF.EV.stopBubble(); //阻止向上冒泡
  1250. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1251. if (_buttonnumber < 2) {
  1252. //如果是click事件的处理
  1253. if (event.type == "click") {
  1254. //如果元素在mousemove事件中没有移动则出发click事件
  1255. if (!U.MD.D.I.IsDrag) {
  1256. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1257. U.alert("请先登录您的账号!");
  1258. setTimeout(() => {
  1259. U.MD.U.L.login();
  1260. }, 2000);
  1261. } else {
  1262. //打开应用处理
  1263. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1264. }
  1265. }
  1266. }
  1267. //如果是mouse事件的处理
  1268. else {
  1269. if (US.Config.type == '1') {
  1270. //拖动处理,添加拖动和拖动结束事件
  1271. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1272. }
  1273. }
  1274. U.MD.D.I.IsDrag = false;
  1275. }
  1276. }
  1277. /**
  1278. * 拖动的处理
  1279. *
  1280. */
  1281. U.MD.D.iconMove = function () {
  1282. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1283. U.MD.D.I.IsDrag = true;
  1284. }
  1285. /**
  1286. * 拖动结束后,这里是定位处理,以网状的形式定位
  1287. *
  1288. * @param {element} 拖动的元素
  1289. * @return {object} 命名空间
  1290. */
  1291. U.MD.D.iconUp = function (el) {
  1292. var _top = 15,
  1293. _left = 20,
  1294. _margin,
  1295. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1296. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1297. if (_positioninfo["OT"] > 15) {
  1298. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1299. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1300. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1301. }
  1302. if (_positioninfo["OL"] > 20) {
  1303. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1304. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1305. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1306. }
  1307. //while循环判断么一个重叠的元素
  1308. do {
  1309. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1310. _top = _positioninfo[0] + 95; //得到定位后的top
  1311. _left = _positioninfo[1]; //得到定位后的left
  1312. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1313. }
  1314. /**
  1315. * 判断拖动后图标是否重叠
  1316. *
  1317. * @param {element} 拖动的元素
  1318. * @param {element} 桌面所有的元素
  1319. * @param {array} 拖动元素的位置
  1320. ----------[0] 上 top
  1321. ----------[1] 左 left
  1322. * @return {object} 命名空间
  1323. */
  1324. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1325. //循环所有的图标
  1326. for (var i = 0; i < childs.length; i++) {
  1327. //判断有没有和该图标诶子重叠的元素
  1328. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1329. return childs[i]; //如果有返回
  1330. }
  1331. }
  1332. }
  1333. //#endregion
  1334. //#endregion
  1335. //#region 桌面应用
  1336. /**
  1337. * 打开应用
  1338. *
  1339. * @param {string} 类型
  1340. -----------------Disk 网盘系统
  1341. -----------------PDisk 学习系统网盘
  1342. -----------------Poto 图片
  1343. -----------------Video 视频
  1344. -----------------Music 音乐
  1345. -----------------Word word
  1346. -----------------Excel excel
  1347. -----------------Txt 记事本
  1348. -----------------PB 学习系统
  1349. -----------------Blog 朋友圈系统
  1350. -----------------FTP ftp系统
  1351. -----------------Group 好友群
  1352. -----------------SY 首页系统
  1353. -----------------Set 个人设置
  1354. -----------------XSet 系统设置
  1355. -----------------App 我们所有的app
  1356. -----------------BC c.1473.cn 平台
  1357. -----------------CWeb d.1473.cn 变成平台
  1358. -----------------其他的外联系统 我们统一用iframe打开
  1359. * @param {array} 类型
  1360. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1361. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1362. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1363. 如果第一个参数为其他,则无第二个参数
  1364. * @returns {array}
  1365. */
  1366. window.addEventListener('message', function (e) { // 监听 message 事件
  1367. // alert(e.data.type);
  1368. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1369. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1370. //3是展示全部阶段 2学生 1老师 4专家
  1371. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1372. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1373. //3是展示全部阶段 2学生 1老师 4专家
  1374. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1375. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1376. //3是展示全部阶段 2学生 1老师 4专家
  1377. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1378. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1379. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1380. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1381. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1382. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1383. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1384. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1385. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1386. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1387. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1388. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1389. //3是展示全部阶段 2学生 1老师 4专家
  1390. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1391. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1392. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1393. U.MD.D.I.selectUser();
  1394. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1395. var _formel = document.getElementById("study");
  1396. U.UF.F.windowZooming(_formel);
  1397. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1398. var _formel = document.getElementById("studyDetail");
  1399. U.UF.F.windowZooming(_formel);
  1400. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1401. var _formel = document.getElementById("studyDetail");
  1402. U.UF.F.windowZooming(_formel);
  1403. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1404. var _formel = document.getElementById("studentStudy");
  1405. U.UF.F.windowZooming(_formel);
  1406. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1407. // var _formel = document.getElementById("study");
  1408. //如果最大化了,那么就把他缩小
  1409. // if (_formel.ismaximize) {
  1410. // return;
  1411. // }
  1412. // U.UF.F.windowZooming(_formel);
  1413. // U.UF.F.topWindow(_formel);
  1414. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1415. // var _formel = document.getElementById("studyDetail");
  1416. //如果最大化了,那么就把他缩小
  1417. // if (_formel.ismaximize) {
  1418. // return;
  1419. // }
  1420. // U.UF.F.windowZooming(_formel);
  1421. // U.UF.F.topWindow(_formel);
  1422. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1423. // var _formel = document.getElementById("studentStudy");
  1424. // if (_formel.ismaximize) {
  1425. // return;
  1426. // }
  1427. // U.UF.F.windowZooming(_formel);
  1428. // U.UF.F.topWindow(_formel);
  1429. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1430. var _formel = document.getElementById("study");
  1431. // if (_formel.ismaximize) {
  1432. // return;
  1433. // }
  1434. // U.UF.F.windowZooming(_formel);
  1435. U.UF.F.topWindow(_formel);
  1436. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1437. var _formel = document.getElementById("studentIndex");
  1438. U.UF.F.windowZooming(_formel);
  1439. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1440. var _formel = document.getElementById("studyDetailS");
  1441. U.UF.F.windowZooming(_formel);
  1442. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1443. var _formel = document.getElementById("studioIndex");
  1444. U.UF.F.windowZooming(_formel);
  1445. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1446. var _formel = document.getElementById("studyDetailStudio");
  1447. U.UF.F.windowZooming(_formel);
  1448. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1449. var _formel = document.getElementById("studyDetailStudio");
  1450. U.UF.F.windowZooming(_formel);
  1451. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1452. var _formel = document.getElementById("studyDetailNT");
  1453. U.UF.F.windowZooming(_formel);
  1454. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1455. var _formel = document.getElementById("studyDetailS");
  1456. U.UF.F.windowZooming(_formel);
  1457. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1458. var _formel = document.getElementById("studyDetailS");
  1459. U.UF.F.topWindow(_formel);
  1460. } else if (e.data.tools && e.data.tools == "1") {
  1461. // U.MD.D.I.openApplication("whiteboard")
  1462. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1463. } else if (e.data.tools && e.data.tools == "2") {
  1464. U.MD.D.I.openApplication("note")
  1465. } else if (e.data.tools && e.data.tools == "3") {
  1466. // U.MD.D.I.openApplication("mind")
  1467. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1468. } else if (e.data.tools && e.data.tools == "4") {
  1469. U.MD.D.I.openApplication("investigation")
  1470. } else if (e.data.tools && e.data.tools == "6") {
  1471. // U.MD.D.I.openApplication("doc")
  1472. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1473. } else if (e.data.tools && e.data.tools == "7") {
  1474. // U.MD.D.I.openApplication("mindNetwork")
  1475. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1476. } else if (e.data.tools && e.data.tools == "8") {
  1477. U.MD.D.I.openApplication("library")
  1478. } else if (e.data.tools && e.data.tools == "17") {
  1479. U.MD.D.I.openApplication("stuLibrary")
  1480. } else if (e.data.tools && e.data.tools == "18") {
  1481. U.MD.D.I.openApplication("train")
  1482. } else if (e.data.tools && e.data.tools == "21") {
  1483. U.MD.D.I.openApplication("program")
  1484. } else if (e.data.tools && e.data.tools == "22") {
  1485. U.MD.D.I.openApplication("AIprogram2")
  1486. } else if (e.data.tools && e.data.tools == "23") {
  1487. U.MD.D.I.openApplication("Pythonprogram")
  1488. } else if (e.data.tools && e.data.tools == "24") {
  1489. U.MD.D.I.openApplication("AIprogram")
  1490. } else if (e.data.tools && e.data.tools == "25") {
  1491. U.MD.D.I.openApplication("sys")
  1492. } else if (e.data.tools && e.data.tools == "26") {
  1493. // U.MD.D.I.openApplication("courseDesign")
  1494. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1495. } else if (e.data.tools && e.data.tools == "31") {
  1496. U.MD.D.I.openApplication("netWorkPanel")
  1497. } else if (e.data.tools && e.data.tools == "32") {
  1498. U.MD.D.I.openApplication("codeEdit")
  1499. } else if (e.data.tools && e.data.tools == "57") {
  1500. U.MD.D.I.openApplication("CocoPi")
  1501. } else if (e.data.tools && e.data.tools == "63") {
  1502. U.MD.D.I.openApplication("Wood")
  1503. } else if (e.data.tools && e.data.tools == "58") {
  1504. U.MD.D.I.openApplication("car")
  1505. } else if (e.data.tools && e.data.tools == "59") {
  1506. U.MD.D.I.openApplication("lineSearch")
  1507. } else if (e.data.tools && e.data.tools == "60") {
  1508. U.MD.D.I.openApplication("deepLearning")
  1509. } else if (e.data.tools && e.data.tools == "61") {
  1510. U.MD.D.I.openApplication("allHistory")
  1511. } else if (e.data.tools && e.data.tools == "28") {
  1512. U.MD.D.I.openApplication("translation")
  1513. } else if (e.data.tools && e.data.tools == "37") {
  1514. U.MD.D.I.openApplication("mohe")
  1515. } else if (e.data.tools && e.data.tools == "38") {
  1516. U.MD.D.I.openApplication("24game")
  1517. } else if (e.data.tools && e.data.tools == "39") {
  1518. U.MD.D.I.openApplication("GeoGebra")
  1519. } else if (e.data.tools && e.data.tools == "43") {
  1520. U.MD.D.I.openApplication("studentEvaluate")
  1521. } else if (e.data.tools && e.data.tools == "44") {
  1522. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1523. } else if (e.data.tools && e.data.tools == "46") {
  1524. U.MD.D.I.openApplication("project")
  1525. } else if (e.data.tools && e.data.tools == "1s") {
  1526. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1527. } else if (e.data.tools && e.data.tools == "3s") {
  1528. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1529. } else if (e.data.tools && e.data.tools == "6s") {
  1530. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1531. } else if (e.data.tools && e.data.tools == "1studio") {
  1532. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1533. } else if (e.data.tools && e.data.tools == "3studio") {
  1534. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1535. } else if (e.data.tools && e.data.tools == "6studio") {
  1536. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1537. } else if (e.data.tools && e.data.tools == "3y") {
  1538. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1539. } else if (e.data.tools && e.data.tools == "1y") {
  1540. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1541. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1542. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1543. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1544. U.MD.D.I.openApplication("AIAnalyse")
  1545. } else if (e.data.tools && e.data.tools == "1teacher") {
  1546. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1547. } else if (e.data.tools && e.data.tools == "3teacher") {
  1548. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1549. } else if (e.data.tools && e.data.tools == "7teacher") {
  1550. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1551. }
  1552. });
  1553. U.MD.D.I.selectUser = function () {
  1554. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1555. if (res.value[0].length > 0) {
  1556. US.userInfo = res.value[0][0];
  1557. $(".userName")[0].innerHTML = US.userInfo.username;
  1558. }
  1559. }, [], { "type": "GET", "withCredentials": true });
  1560. }
  1561. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1562. var _userinfo = US.userInfo, //登录用户信息
  1563. _userid = US.userInfo.userid, //登录用户id
  1564. _oid = _userinfo.organizeid,
  1565. _type = US.userInfo.type,
  1566. _org = US.userInfo.org,
  1567. _role = US.userInfo.role,
  1568. _classId = US.userInfo.classid;
  1569. if (_type == 4) {
  1570. tType = 4
  1571. }
  1572. switch (str) {
  1573. case "studyDetailNT"://无终端模式
  1574. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1575. setTimeout(() => {
  1576. U.MD.U.L.login();
  1577. }, 2000);
  1578. } else {
  1579. _formdiv = new U.UF.UI.form(
  1580. "课程详情",
  1581. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailNT?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1582. "id": "studyDetailNT",
  1583. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1584. "onresize": function () { }
  1585. }, {
  1586. closecallback: function () { }
  1587. }, { "style": { "height": "36px" } }).form; //创建窗体
  1588. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1589. break;
  1590. }
  1591. case "studyDetail":
  1592. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1593. setTimeout(() => {
  1594. U.MD.U.L.login();
  1595. }, 2000);
  1596. } else {
  1597. _formdiv = new U.UF.UI.form(
  1598. "课程详情",
  1599. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1600. "id": "studyDetail",
  1601. "style": { "width": "100%", "height": "100%", "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/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1607. break;
  1608. }
  1609. case "studyDetailS":
  1610. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1611. setTimeout(() => {
  1612. U.MD.U.L.login();
  1613. }, 2000);
  1614. } else {
  1615. _formdiv = new U.UF.UI.form(
  1616. "项目详情",
  1617. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1618. "id": "studyDetailS",
  1619. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1620. "onresize": function () { }
  1621. }, {
  1622. closecallback: function () { }
  1623. }, { "style": { "height": "36px" } }).form; //创建窗体
  1624. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1625. break;
  1626. }
  1627. case "studyDetailStudio":
  1628. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1629. setTimeout(() => {
  1630. U.MD.U.L.login();
  1631. }, 2000);
  1632. } else {
  1633. _formdiv = new U.UF.UI.form(
  1634. "工作详情",
  1635. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailStudio?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1636. "id": "studyDetailStudio",
  1637. "style": { "width": "95%", "height": "95%", "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/studioCourse.png)" }, "name": "工作详情", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1643. break;
  1644. }
  1645. case "studyDetailS5":
  1646. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1647. setTimeout(() => {
  1648. U.MD.U.L.login();
  1649. }, 2000);
  1650. } else {
  1651. _formdiv = new U.UF.UI.form(
  1652. "项目详情",
  1653. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studyStudentS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1654. "id": "studyDetailS",
  1655. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1656. "onresize": function () { }
  1657. }, {
  1658. closecallback: function () { }
  1659. }, { "style": { "height": "36px" } }).form; //创建窗体
  1660. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1661. break;
  1662. }
  1663. case "studyDetailGM":
  1664. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1665. setTimeout(() => {
  1666. U.MD.U.L.login();
  1667. }, 2000);
  1668. } else {
  1669. _formdiv = new U.UF.UI.form(
  1670. "课程详情",
  1671. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1672. "id": "studyDetail",
  1673. "style": { "width": "100%", "height": "100%", "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/gm/learning.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1679. break;
  1680. }
  1681. case "hanUrl":
  1682. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1683. setTimeout(() => {
  1684. U.MD.U.L.login();
  1685. }, 2000);
  1686. } else {
  1687. _formdiv = new U.UF.UI.form(
  1688. "汉字宫",
  1689. $$("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" }), {
  1690. "id": "hanUrl",
  1691. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1692. "onresize": function () { }
  1693. }, {
  1694. closecallback: function () { }
  1695. }, { "style": { "height": "36px" } }).form; //创建窗体
  1696. _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); } }
  1697. break;
  1698. }
  1699. }
  1700. }
  1701. U.MD.D.I.openApplication = function (str, obj, info) {
  1702. obj = obj || {};
  1703. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1704. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1705. _userinfo = US.userInfo, //登录用户信息
  1706. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1707. _oid = obj.organizeid || _userinfo.organizeid,
  1708. _type = US.userInfo.type,
  1709. _org = US.userInfo.org,
  1710. _role = US.userInfo.role,
  1711. _classId = US.userInfo.classid,
  1712. _TscreenType = 1
  1713. _screenType = 2,
  1714. _SscreenType = 3;
  1715. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1716. return;
  1717. }
  1718. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1719. switch (str) {
  1720. case "studnetProject": //好友打开
  1721. _formdiv = new U.UF.UI.form(
  1722. "我的项目",
  1723. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  1724. "id": "studnetProject",
  1725. "style": { "width": "70%", "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/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1731. break;
  1732. case "studentEvaluate": //好友打开
  1733. _formdiv = new U.UF.UI.form(
  1734. "我的评价",
  1735. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1736. "id": "studentEvaluate",
  1737. "style": { "width": "70%", "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/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1743. break;
  1744. case "my":
  1745. _formdiv = new U.UF.UI.form(
  1746. "我的资料",
  1747. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  1748. "id": "my",
  1749. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1750. "onresize": function () { }
  1751. }, {
  1752. closecallback: function () { }
  1753. }, { "style": { "height": "36px" } }).form; //创建窗体
  1754. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1755. break;
  1756. case "program":
  1757. _formdiv = new U.UF.UI.form(
  1758. "编程平台",
  1759. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1760. "id": "program",
  1761. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1762. "onresize": function () { }
  1763. }, {
  1764. closecallback: function () { }
  1765. }, { "style": { "height": "36px" } }).form; //创建窗体
  1766. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1767. break;
  1768. case "library":
  1769. _formdiv = new U.UF.UI.form(
  1770. "素材库",
  1771. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  1772. "id": "library",
  1773. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1774. "onresize": function () { }
  1775. }, {
  1776. closecallback: function () { }
  1777. }, { "style": { "height": "36px" } }).form; //创建窗体
  1778. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1779. break;
  1780. case "whiteboard":
  1781. _formdiv = new U.UF.UI.form(
  1782. "电子白板",
  1783. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1784. "id": "whiteboard",
  1785. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1786. "onresize": function () { }
  1787. }, {
  1788. closecallback: function () { }
  1789. }, { "style": { "height": "36px" } }).form; //创建窗体
  1790. _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); } }
  1791. break;
  1792. case "investigation":
  1793. _formdiv = new U.UF.UI.form(
  1794. "问卷调查",
  1795. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  1796. "id": "investigation",
  1797. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1798. "onresize": function () { }
  1799. }, {
  1800. closecallback: function () { }
  1801. }, { "style": { "height": "36px" } }).form; //创建窗体
  1802. _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); } }
  1803. break;
  1804. case "note":
  1805. _formdiv = new U.UF.UI.form(
  1806. "便签分类",
  1807. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  1808. "id": "note",
  1809. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1810. "onresize": function () { }
  1811. }, {
  1812. closecallback: function () { }
  1813. }, { "style": { "height": "36px" } }).form; //创建窗体
  1814. _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); } }
  1815. break;
  1816. // case "score":
  1817. // _formdiv = new U.UF.UI.form(
  1818. // "量规评分",
  1819. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  1820. // "id": "score",
  1821. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1822. // "onresize": function() {}
  1823. // }, {
  1824. // closecallback: function() {}
  1825. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1826. // _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); } }
  1827. // break;
  1828. case "mind":
  1829. _formdiv = new U.UF.UI.form(
  1830. "思维导图",
  1831. $$("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"
  1832. "id": "mind",
  1833. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1834. "onresize": function () { }
  1835. }, {
  1836. closecallback: function () { }
  1837. }, { "style": { "height": "36px" } }).form; //创建窗体
  1838. _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); } }
  1839. break;
  1840. case "doc":
  1841. // U.MD.D.I.isRoom();
  1842. _formdiv = new U.UF.UI.form(
  1843. "协同文档",
  1844. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1845. "id": "doc",
  1846. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1847. "onresize": function () { }
  1848. }, {
  1849. closecallback: function () { }
  1850. }, { "style": { "height": "36px" } }).form; //创建窗体
  1851. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1852. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1853. // })
  1854. _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); } }
  1855. break;
  1856. case "studentStudy":
  1857. _formdiv = new U.UF.UI.form(
  1858. "课程中心",
  1859. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1860. "id": "studentStudy",
  1861. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1862. "onresize": function () { }
  1863. }, {
  1864. closecallback: function () { }
  1865. }, { "style": { "height": "36px" } }).form; //创建窗体
  1866. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1867. break;
  1868. case "train": //好友打开
  1869. _formdiv = new U.UF.UI.form(
  1870. "训练平台",
  1871. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1872. "id": "train",
  1873. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1874. "onresize": function () { }
  1875. }, {
  1876. closecallback: function () { }
  1877. }, { "style": { "height": "36px" } }).form; //创建窗体
  1878. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1879. break;
  1880. case "mindNetwork": //好友打开
  1881. _formdiv = new U.UF.UI.form(
  1882. "思维网格",
  1883. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid + "&org=" + _org }), {
  1884. "id": "mindNetwork",
  1885. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1886. "onresize": function () { }
  1887. }, {
  1888. closecallback: function () { }
  1889. }, { "style": { "height": "36px" } }).form; //创建窗体
  1890. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1891. break;
  1892. case "studentClassRoom": //好友打开
  1893. _formdiv = new U.UF.UI.form(
  1894. "实时课堂",
  1895. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/liveRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1896. "id": "studentClassRoom",
  1897. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1898. "onresize": function () { }
  1899. }, {
  1900. closecallback: function () { }
  1901. }, { "style": { "height": "36px" } }).form; //创建窗体
  1902. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1903. setTimeout(() => {
  1904. U.UF.F.windowZooming(_formdiv)
  1905. }, 0);
  1906. break;
  1907. }
  1908. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1909. switch (str) {
  1910. case "studnetProject": //好友打开
  1911. _formdiv = new U.UF.UI.form(
  1912. "我的项目",
  1913. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  1914. "id": "studnetProject",
  1915. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1916. "onresize": function () { }
  1917. }, {
  1918. closecallback: function () { }
  1919. }, { "style": { "height": "36px" } }).form; //创建窗体
  1920. _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); } }
  1921. break;
  1922. case "studentEvaluate": //好友打开
  1923. _formdiv = new U.UF.UI.form(
  1924. "我的评价",
  1925. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1926. "id": "studentEvaluate",
  1927. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1928. "onresize": function () { }
  1929. }, {
  1930. closecallback: function () { }
  1931. }, { "style": { "height": "36px" } }).form; //创建窗体
  1932. _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); } }
  1933. break;
  1934. case "my":
  1935. _formdiv = new U.UF.UI.form(
  1936. "我的资料",
  1937. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  1938. "id": "my",
  1939. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1940. "onresize": function () { }
  1941. }, {
  1942. closecallback: function () { }
  1943. }, { "style": { "height": "36px" } }).form; //创建窗体
  1944. _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); } }
  1945. break;
  1946. case "program":
  1947. _formdiv = new U.UF.UI.form(
  1948. "编程平台",
  1949. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1950. "id": "program",
  1951. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1952. "onresize": function () { }
  1953. }, {
  1954. closecallback: function () { }
  1955. }, { "style": { "height": "36px" } }).form; //创建窗体
  1956. _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); } }
  1957. break;
  1958. case "library":
  1959. _formdiv = new U.UF.UI.form(
  1960. "素材库",
  1961. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  1962. "id": "library",
  1963. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1964. "onresize": function () { }
  1965. }, {
  1966. closecallback: function () { }
  1967. }, { "style": { "height": "36px" } }).form; //创建窗体
  1968. _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); } }
  1969. break;
  1970. case "whiteboard":
  1971. _formdiv = new U.UF.UI.form(
  1972. "电子白板",
  1973. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1974. "id": "whiteboard",
  1975. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1976. "onresize": function () { }
  1977. }, {
  1978. closecallback: function () { }
  1979. }, { "style": { "height": "36px" } }).form; //创建窗体
  1980. _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); } }
  1981. break;
  1982. case "investigation":
  1983. _formdiv = new U.UF.UI.form(
  1984. "问卷调查",
  1985. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  1986. "id": "investigation",
  1987. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1988. "onresize": function () { }
  1989. }, {
  1990. closecallback: function () { }
  1991. }, { "style": { "height": "36px" } }).form; //创建窗体
  1992. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1993. break;
  1994. case "note":
  1995. _formdiv = new U.UF.UI.form(
  1996. "便签分类",
  1997. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  1998. "id": "note",
  1999. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2000. "onresize": function () { }
  2001. }, {
  2002. closecallback: function () { }
  2003. }, { "style": { "height": "36px" } }).form; //创建窗体
  2004. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2005. break;
  2006. // case "score":
  2007. // _formdiv = new U.UF.UI.form(
  2008. // "量规评分",
  2009. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2010. // "id": "score",
  2011. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2012. // "onresize": function() {}
  2013. // }, {
  2014. // closecallback: function() {}
  2015. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2016. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2017. // break;
  2018. case "mind":
  2019. _formdiv = new U.UF.UI.form(
  2020. "思维导图",
  2021. $$("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"
  2022. "id": "mind",
  2023. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2024. "onresize": function () { }
  2025. }, {
  2026. closecallback: function () { }
  2027. }, { "style": { "height": "36px" } }).form; //创建窗体
  2028. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2029. break;
  2030. case "doc":
  2031. // U.MD.D.I.isRoom();
  2032. _formdiv = new U.UF.UI.form(
  2033. "协同文档",
  2034. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2035. "id": "doc",
  2036. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2037. "onresize": function () { }
  2038. }, {
  2039. closecallback: function () { }
  2040. }, { "style": { "height": "36px" } }).form; //创建窗体
  2041. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2042. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2043. })
  2044. _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); } }
  2045. break;
  2046. case "train": //好友打开
  2047. _formdiv = new U.UF.UI.form(
  2048. "训练平台",
  2049. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2050. "id": "train",
  2051. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2052. "onresize": function () { }
  2053. }, {
  2054. closecallback: function () { }
  2055. }, { "style": { "height": "36px" } }).form; //创建窗体
  2056. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2057. break;
  2058. case "studentStudy":
  2059. _formdiv = new U.UF.UI.form(
  2060. "课程中心",
  2061. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2062. "id": "studentStudy",
  2063. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2064. "onresize": function () { }
  2065. }, {
  2066. closecallback: function () { }
  2067. }, { "style": { "height": "36px" } }).form; //创建窗体
  2068. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2069. break;
  2070. case "mindNetwork": //好友打开
  2071. _formdiv = new U.UF.UI.form(
  2072. "思维网格",
  2073. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid + "&org=" + _org }), {
  2074. "id": "mindNetwork",
  2075. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2076. "onresize": function () { }
  2077. }, {
  2078. closecallback: function () { }
  2079. }, { "style": { "height": "36px" } }).form; //创建窗体
  2080. _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); } }
  2081. break;
  2082. case "studentClassRoom": //好友打开
  2083. _formdiv = new U.UF.UI.form(
  2084. "实时课堂",
  2085. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/liveRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2086. "id": "studentClassRoom",
  2087. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2088. "onresize": function () { }
  2089. }, {
  2090. closecallback: function () { }
  2091. }, { "style": { "height": "36px" } }).form; //创建窗体
  2092. _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); } }
  2093. setTimeout(() => {
  2094. U.UF.F.windowZooming(_formdiv)
  2095. }, 0);
  2096. break;
  2097. }
  2098. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2099. //选择应用处理
  2100. switch (str) {
  2101. case "project": //好友打开
  2102. _formdiv = new U.UF.UI.form(
  2103. "课程管理",
  2104. $$("iframe", { "allow": "camera *; microphone *;display-capture;clipboard-write;clipboard-read", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "","frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2105. "id": "project",
  2106. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2107. "onresize": function () { }
  2108. }, {
  2109. closecallback: function () { }
  2110. }, { "style": { "height": "36px" } }).form; //创建窗体
  2111. _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); } }
  2112. break;
  2113. case "student":
  2114. _formdiv = new U.UF.UI.form(
  2115. "学生管理",
  2116. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  2117. "id": "student",
  2118. "style": { "width": "90%", "height": "90%", "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/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2124. break;
  2125. case "evaluate":
  2126. _formdiv = new U.UF.UI.form(
  2127. "学生评价",
  2128. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2129. "id": "evaluate",
  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/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2136. break;
  2137. case "sys":
  2138. _formdiv = new U.UF.UI.form(
  2139. "目标管理",
  2140. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2141. "id": "sys",
  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/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2148. break;
  2149. case "courseDesign":
  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": "/course-design-vue" }), {
  2153. "id": "courseDesign",
  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/courseDesign.png)" }, "name": "项目设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2160. break;
  2161. case "program":
  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": "https://x.cocorobo.cn" }), {
  2165. "id": "program",
  2166. "style": { "width": "70%", "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/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2172. break;
  2173. case "class":
  2174. _formdiv = new U.UF.UI.form(
  2175. "班级管理",
  2176. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2177. "id": "class",
  2178. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2179. "onresize": function () { }
  2180. }, {
  2181. closecallback: function () { }
  2182. }, { "style": { "height": "36px" } }).form; //创建窗体
  2183. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2184. break;
  2185. case "my":
  2186. _formdiv = new U.UF.UI.form(
  2187. "我的资料",
  2188. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  2189. "id": "my",
  2190. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2191. "onresize": function () { }
  2192. }, {
  2193. closecallback: function () { }
  2194. }, { "style": { "height": "36px" } }).form; //创建窗体
  2195. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2196. break;
  2197. case "notice":
  2198. _formdiv = new U.UF.UI.form(
  2199. "通知公告",
  2200. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  2201. "id": "notice",
  2202. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2203. "onresize": function () { }
  2204. }, {
  2205. closecallback: function () { }
  2206. }, { "style": { "height": "36px" } }).form; //创建窗体
  2207. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2208. break;
  2209. case "library":
  2210. _formdiv = new U.UF.UI.form(
  2211. "素材库",
  2212. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  2213. "id": "library",
  2214. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2215. "onresize": function () { }
  2216. }, {
  2217. closecallback: function () { }
  2218. }, { "style": { "height": "36px" } }).form; //创建窗体
  2219. _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); } }
  2220. break;
  2221. case "whiteboard":
  2222. _formdiv = new U.UF.UI.form(
  2223. "电子白板",
  2224. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2225. "id": "whiteboard",
  2226. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2227. "onresize": function () { }
  2228. }, {
  2229. closecallback: function () { }
  2230. }, { "style": { "height": "36px" } }).form; //创建窗体
  2231. _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); } }
  2232. break;
  2233. case "investigation":
  2234. _formdiv = new U.UF.UI.form(
  2235. "问卷调查",
  2236. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  2237. "id": "investigation",
  2238. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2239. "onresize": function () { }
  2240. }, {
  2241. closecallback: function () { }
  2242. }, { "style": { "height": "36px" } }).form; //创建窗体
  2243. _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); } }
  2244. break;
  2245. case "note":
  2246. _formdiv = new U.UF.UI.form(
  2247. "便签分类",
  2248. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  2249. "id": "note",
  2250. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2251. "onresize": function () { }
  2252. }, {
  2253. closecallback: function () { }
  2254. }, { "style": { "height": "36px" } }).form; //创建窗体
  2255. _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); } }
  2256. break;
  2257. // case "score":
  2258. // _formdiv = new U.UF.UI.form(
  2259. // "量规评分",
  2260. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2261. // "id": "score",
  2262. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2263. // "onresize": function() {}
  2264. // }, {
  2265. // closecallback: function() {}
  2266. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2267. // _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); } }
  2268. // break;
  2269. case "mind":
  2270. _formdiv = new U.UF.UI.form(
  2271. "思维导图",
  2272. $$("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"
  2273. "id": "mind",
  2274. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2275. "onresize": function () { }
  2276. }, {
  2277. closecallback: function () { }
  2278. }, { "style": { "height": "36px" } }).form; //创建窗体
  2279. _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); } }
  2280. break;
  2281. case "doc":
  2282. // U.MD.D.I.isRoom();
  2283. _formdiv = new U.UF.UI.form(
  2284. "协同文档",
  2285. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2286. "id": "doc",
  2287. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2288. "onresize": function () { }
  2289. }, {
  2290. closecallback: function () { }
  2291. }, { "style": { "height": "36px" } }).form; //创建窗体
  2292. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2293. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2294. })
  2295. _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); } }
  2296. break;
  2297. case "study":
  2298. _formdiv = new U.UF.UI.form(
  2299. "课程中心",
  2300. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2301. "id": "study",
  2302. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2303. "onresize": function () { }
  2304. }, {
  2305. closecallback: function () { }
  2306. }, { "style": { "height": "36px" } }).form; //创建窗体
  2307. _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); } }
  2308. break;
  2309. case "mindNetwork": //好友打开
  2310. _formdiv = new U.UF.UI.form(
  2311. "思维网格",
  2312. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid + "&org=" + _org }), {
  2313. "id": "mindNetwork",
  2314. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2315. "onresize": function () { }
  2316. }, {
  2317. closecallback: function () { }
  2318. }, { "style": { "height": "36px" } }).form; //创建窗体
  2319. _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); } }
  2320. break;
  2321. case "train": //好友打开
  2322. _formdiv = new U.UF.UI.form(
  2323. "训练平台",
  2324. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2325. "id": "mindNetwork",
  2326. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2327. "onresize": function () { }
  2328. }, {
  2329. closecallback: function () { }
  2330. }, { "style": { "height": "36px" } }).form; //创建窗体
  2331. _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); } }
  2332. break;
  2333. case "teacherClassRoom": //好友打开
  2334. _formdiv = new U.UF.UI.form(
  2335. "实时课堂",
  2336. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/classRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2337. "id": "teacherClassRoom",
  2338. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2339. "onresize": function () { }
  2340. }, {
  2341. closecallback: function () { }
  2342. }, { "style": { "height": "36px" } }).form; //创建窗体
  2343. _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); } }
  2344. setTimeout(() => {
  2345. U.UF.F.windowZooming(_formdiv)
  2346. }, 0);
  2347. break;
  2348. }
  2349. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2350. switch (str) {
  2351. case "project": //好友打开
  2352. _formdiv = new U.UF.UI.form(
  2353. "课程管理",
  2354. $$("iframe", { "allow": "camera *; microphone *;display-capture;clipboard-write;clipboard-read", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "","frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2355. "id": "project",
  2356. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2357. "onresize": function () { }
  2358. }, {
  2359. closecallback: function () { }
  2360. }, { "style": { "height": "36px" } }).form; //创建窗体
  2361. _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); } }
  2362. break;
  2363. case "evaluate":
  2364. _formdiv = new U.UF.UI.form(
  2365. "学生评价",
  2366. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2367. "id": "evaluate",
  2368. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2369. "onresize": function () { }
  2370. }, {
  2371. closecallback: function () { }
  2372. }, { "style": { "height": "36px" } }).form; //创建窗体
  2373. _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); } }
  2374. break;
  2375. case "notice":
  2376. _formdiv = new U.UF.UI.form(
  2377. "通知公告",
  2378. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  2379. "id": "notice",
  2380. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2381. "onresize": function () { }
  2382. }, {
  2383. closecallback: function () { }
  2384. }, { "style": { "height": "36px" } }).form; //创建窗体
  2385. _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); } }
  2386. break;
  2387. case "stuLibrary":
  2388. _formdiv = new U.UF.UI.form(
  2389. "学习资料",
  2390. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studyLibrary?userid=" + _userid + "&org=" + _org }), {
  2391. "id": "stuLibrary",
  2392. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2393. "onresize": function () { }
  2394. }, {
  2395. closecallback: function () { }
  2396. }, { "style": { "height": "36px" } }).form; //创建窗体
  2397. _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); } }
  2398. break;
  2399. case "program":
  2400. _formdiv = new U.UF.UI.form(
  2401. "编程平台",
  2402. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2403. "id": "program",
  2404. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2405. "onresize": function () { }
  2406. }, {
  2407. closecallback: function () { }
  2408. }, { "style": { "height": "36px" } }).form; //创建窗体
  2409. _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); } }
  2410. break;
  2411. case "whiteboard":
  2412. _formdiv = new U.UF.UI.form(
  2413. "电子白板",
  2414. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2415. "id": "whiteboard",
  2416. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2417. "onresize": function () { }
  2418. }, {
  2419. closecallback: function () { }
  2420. }, { "style": { "height": "36px" } }).form; //创建窗体
  2421. _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); } }
  2422. break;
  2423. case "investigation":
  2424. _formdiv = new U.UF.UI.form(
  2425. "问卷调查",
  2426. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  2427. "id": "investigation",
  2428. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2429. "onresize": function () { }
  2430. }, {
  2431. closecallback: function () { }
  2432. }, { "style": { "height": "36px" } }).form; //创建窗体
  2433. _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); } }
  2434. break;
  2435. case "mind":
  2436. _formdiv = new U.UF.UI.form(
  2437. "思维导图",
  2438. $$("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"
  2439. "id": "mind",
  2440. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2441. "onresize": function () { }
  2442. }, {
  2443. closecallback: function () { }
  2444. }, { "style": { "height": "36px" } }).form; //创建窗体
  2445. _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); } }
  2446. break;
  2447. case "doc":
  2448. // U.MD.D.I.isRoom();
  2449. _formdiv = new U.UF.UI.form(
  2450. "协同文档",
  2451. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2452. "id": "doc",
  2453. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2454. "onresize": function () { }
  2455. }, {
  2456. closecallback: function () { }
  2457. }, { "style": { "height": "36px" } }).form; //创建窗体
  2458. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2459. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2460. })
  2461. _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); } }
  2462. break;
  2463. case "study":
  2464. _formdiv = new U.UF.UI.form(
  2465. "课程中心",
  2466. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2467. "id": "study",
  2468. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2469. "onresize": function () { }
  2470. }, {
  2471. closecallback: function () { }
  2472. }, { "style": { "height": "36px" } }).form; //创建窗体
  2473. _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); } }
  2474. break;
  2475. case "mindNetwork": //好友打开
  2476. _formdiv = new U.UF.UI.form(
  2477. "思维网格",
  2478. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid + "&org=" + _org }), {
  2479. "id": "mindNetwork",
  2480. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2481. "onresize": function () { }
  2482. }, {
  2483. closecallback: function () { }
  2484. }, { "style": { "height": "36px" } }).form; //创建窗体
  2485. _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); } }
  2486. break;
  2487. case "train": //好友打开
  2488. _formdiv = new U.UF.UI.form(
  2489. "训练平台",
  2490. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2491. "id": "train",
  2492. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2493. "onresize": function () { }
  2494. }, {
  2495. closecallback: function () { }
  2496. }, { "style": { "height": "36px" } }).form; //创建窗体
  2497. _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); } }
  2498. break;
  2499. case "sys":
  2500. _formdiv = new U.UF.UI.form(
  2501. "目标管理",
  2502. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2503. "id": "sys",
  2504. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2505. "onresize": function () { }
  2506. }, {
  2507. closecallback: function () { }
  2508. }, { "style": { "height": "36px" } }).form; //创建窗体
  2509. _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); } }
  2510. break;
  2511. case "courseDesign":
  2512. _formdiv = new U.UF.UI.form(
  2513. "项目设计",
  2514. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2515. "id": "courseDesign",
  2516. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2517. "onresize": function () { }
  2518. }, {
  2519. closecallback: function () { }
  2520. }, { "style": { "height": "36px" } }).form; //创建窗体
  2521. _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); } }
  2522. break;
  2523. }
  2524. } else if (!_type) {
  2525. switch (str) {
  2526. case "my":
  2527. _formdiv = new U.UF.UI.form(
  2528. "我的资料",
  2529. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  2530. "id": "my",
  2531. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2532. "onresize": function () { }
  2533. }, {
  2534. closecallback: function () { }
  2535. }, { "style": { "height": "36px" } }).form; //创建窗体
  2536. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2537. break;
  2538. }
  2539. }
  2540. switch (str) {
  2541. // AIprogram2 AI体验 aihub.cocorobo.cn
  2542. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2543. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2544. case "AIprogram2": //AI体验
  2545. _formdiv = new U.UF.UI.form(
  2546. "AI体验",
  2547. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2548. "id": "AIprogram2",
  2549. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2550. "onresize": function () { }
  2551. }, {
  2552. closecallback: function () { }
  2553. }, { "style": { "height": "36px" } }).form; //创建窗体
  2554. _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); } }
  2555. break;
  2556. case "Pythonprogram": //python编程
  2557. _formdiv = new U.UF.UI.form(
  2558. "Python编程",
  2559. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2560. "id": "Pythonprogram",
  2561. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2562. "onresize": function () { }
  2563. }, {
  2564. closecallback: function () { }
  2565. }, { "style": { "height": "36px" } }).form; //创建窗体
  2566. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Pythonprogram.png)" }, "name": "Python编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2567. break;
  2568. case "AIprogram": //ai编程
  2569. _formdiv = new U.UF.UI.form(
  2570. "AI编程平台",
  2571. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2572. "id": "AIprogram",
  2573. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2574. "onresize": function () { }
  2575. }, {
  2576. closecallback: function () { }
  2577. }, { "style": { "height": "36px" } }).form; //创建窗体
  2578. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram.png)" }, "name": "AI编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2579. break;
  2580. case "CocoPi": //CocoPi
  2581. _formdiv = new U.UF.UI.form(
  2582. "CocoPi",
  2583. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://v.cocorobo.cn" }), {
  2584. "id": "CocoPi",
  2585. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2586. "onresize": function () { }
  2587. }, {
  2588. closecallback: function () { }
  2589. }, { "style": { "height": "36px" } }).form; //创建窗体
  2590. _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); } }
  2591. break;
  2592. case "Wood": //Wood
  2593. _formdiv = new U.UF.UI.form(
  2594. "海龟编程",
  2595. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://wood.codemao.cn/" }), {
  2596. "id": "Wood",
  2597. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2598. "onresize": function () { }
  2599. }, {
  2600. closecallback: function () { }
  2601. }, { "style": { "height": "36px" } }).form; //创建窗体
  2602. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Wood.png)" }, "name": "海龟编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2603. break;
  2604. case "car": //模拟驾驶
  2605. _formdiv = new U.UF.UI.form(
  2606. "模拟驾驶",
  2607. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://slowroads.io/" }), {
  2608. "id": "car",
  2609. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2610. "onresize": function () { }
  2611. }, {
  2612. closecallback: function () { }
  2613. }, { "style": { "height": "36px" } }).form; //创建窗体
  2614. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/car.png)" }, "name": "模拟驾驶", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2615. break;
  2616. case "lineSearch": //路径搜索
  2617. _formdiv = new U.UF.UI.form(
  2618. "路径搜索",
  2619. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://qiao.github.io/PathFinding.js/visual/" }), {
  2620. "id": "lineSearch",
  2621. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2622. "onresize": function () { }
  2623. }, {
  2624. closecallback: function () { }
  2625. }, { "style": { "height": "36px" } }).form; //创建窗体
  2626. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/lineSearch.png)" }, "name": "路径搜索", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2627. break;
  2628. case "deepLearning": //深度学习
  2629. _formdiv = new U.UF.UI.form(
  2630. "深度学习",
  2631. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-demos.cocorobo.cn/teachable-machine/public/#" }), {
  2632. "id": "deepLearning",
  2633. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2634. "onresize": function () { }
  2635. }, {
  2636. closecallback: function () { }
  2637. }, { "style": { "height": "36px" } }).form; //创建窗体
  2638. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/deepLearning.png)" }, "name": "深度学习", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2639. break;
  2640. case "allHistory": //深度学习
  2641. _formdiv = new U.UF.UI.form(
  2642. "全历史",
  2643. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.allhistory.com/" }), {
  2644. "id": "allHistory",
  2645. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2646. "onresize": function () { }
  2647. }, {
  2648. closecallback: function () { }
  2649. }, { "style": { "height": "36px" } }).form; //创建窗体
  2650. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/allHistory.png)" }, "name": "全历史", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2651. break;
  2652. case "chatPDF": //ai编程
  2653. _formdiv = new U.UF.UI.form(
  2654. "chatPDF",
  2655. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2656. "id": "chatPDF",
  2657. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2658. "onresize": function () { }
  2659. }, {
  2660. closecallback: function () { }
  2661. }, { "style": { "height": "36px" } }).form; //创建窗体
  2662. _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); } }
  2663. break;
  2664. case "resources": //国家教育
  2665. _formdiv = new U.UF.UI.form(
  2666. "国家教育",
  2667. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2668. "id": "resources",
  2669. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2670. "onresize": function () { }
  2671. }, {
  2672. closecallback: function () { }
  2673. }, { "style": { "height": "36px" } }).form; //创建窗体
  2674. _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); } }
  2675. break;
  2676. case "codeEdit": //源码编辑
  2677. _formdiv = new U.UF.UI.form(
  2678. "源码编辑",
  2679. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2680. "id": "codeEdit",
  2681. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2682. "onresize": function () { }
  2683. }, {
  2684. closecallback: function () { }
  2685. }, { "style": { "height": "36px" } }).form; //创建窗体
  2686. _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); } }
  2687. break; //
  2688. case "MindMap": //MindMap
  2689. _formdiv = new U.UF.UI.form(
  2690. "MindMap",
  2691. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2692. "id": "MindMap",
  2693. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2694. "onresize": function () { }
  2695. }, {
  2696. closecallback: function () { }
  2697. }, { "style": { "height": "36px" } }).form; //创建窗体
  2698. _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); } }
  2699. break;
  2700. case "netWorkPanel": //netWorkPanel
  2701. _formdiv = new U.UF.UI.form(
  2702. "netWorkPanel",
  2703. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2704. "id": "netWorkPanel",
  2705. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2706. "onresize": function () { }
  2707. }, {
  2708. closecallback: function () { }
  2709. }, { "style": { "height": "36px" } }).form; //创建窗体
  2710. _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); } }
  2711. break;
  2712. case "GeoGebra": //GeoGebra
  2713. _formdiv = new U.UF.UI.form(
  2714. "GeoGebra",
  2715. $$("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" }), {
  2716. "id": "GeoGebra",
  2717. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2718. "onresize": function () { }
  2719. }, {
  2720. closecallback: function () { }
  2721. }, { "style": { "height": "36px" } }).form; //创建窗体
  2722. _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); } }
  2723. break;
  2724. case "translation": //翻译
  2725. _formdiv = new U.UF.UI.form(
  2726. "翻译",
  2727. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2728. "id": "translation",
  2729. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2730. "onresize": function () { }
  2731. }, {
  2732. closecallback: function () { }
  2733. }, { "style": { "height": "36px" } }).form; //创建窗体
  2734. _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); } }
  2735. break;
  2736. case "mohe": //魔盒
  2737. _formdiv = new U.UF.UI.form(
  2738. "魔盒识字",
  2739. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2740. "id": "mohe",
  2741. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2742. "onresize": function () { }
  2743. }, {
  2744. closecallback: function () { }
  2745. }, { "style": { "height": "36px" } }).form; //创建窗体
  2746. _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); } }
  2747. break;
  2748. case "24game": //24点
  2749. _formdiv = new U.UF.UI.form(
  2750. "24点",
  2751. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2752. "id": "24game",
  2753. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2754. "onresize": function () { }
  2755. }, {
  2756. closecallback: function () { }
  2757. }, { "style": { "height": "36px" } }).form; //创建窗体
  2758. _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); } }
  2759. break;
  2760. case "case":
  2761. _formdiv = new U.UF.UI.form(
  2762. "课程进展",
  2763. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesign?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2764. "id": "case",
  2765. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2766. "onresize": function () { }
  2767. }, {
  2768. closecallback: function () { }
  2769. }, { "style": { "height": "36px" } }).form; //创建窗体
  2770. _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); } }
  2771. break;
  2772. case "snf":
  2773. _formdiv = new U.UF.UI.form(
  2774. "赛诺梵",
  2775. $$("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" }), {
  2776. "id": "snf",
  2777. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2778. "onresize": function () { }
  2779. }, {
  2780. closecallback: function () { }
  2781. }, { "style": { "height": "36px" } }).form; //创建窗体
  2782. _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); } }
  2783. break;
  2784. case "hanFamily":
  2785. _formdiv = new U.UF.UI.form(
  2786. "汉字家族",
  2787. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2788. "id": "hanFamily",
  2789. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2790. "onresize": function () { }
  2791. }, {
  2792. closecallback: function () { }
  2793. }, { "style": { "height": "36px" } }).form; //创建窗体
  2794. _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); } }
  2795. break;
  2796. case "hanClassics":
  2797. _formdiv = new U.UF.UI.form(
  2798. "国学经典",
  2799. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2800. "id": "hanClassics",
  2801. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2802. "onresize": function () { }
  2803. }, {
  2804. closecallback: function () { }
  2805. }, { "style": { "height": "36px" } }).form; //创建窗体
  2806. _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); } }
  2807. break;
  2808. case "hanTraining":
  2809. _formdiv = new U.UF.UI.form(
  2810. "笔画训练",
  2811. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2812. "id": "hanTraining",
  2813. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2814. "onresize": function () { }
  2815. }, {
  2816. closecallback: function () { }
  2817. }, { "style": { "height": "36px" } }).form; //创建窗体
  2818. _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); } }
  2819. break;
  2820. case "hanClass":
  2821. _formdiv = new U.UF.UI.form(
  2822. "书法课堂",
  2823. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2824. "id": "hanClass",
  2825. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2826. "onresize": function () { }
  2827. }, {
  2828. closecallback: function () { }
  2829. }, { "style": { "height": "36px" } }).form; //创建窗体
  2830. _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); } }
  2831. break;
  2832. case "han":
  2833. _formdiv = new U.UF.UI.form(
  2834. "汉字宫",
  2835. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2836. "id": "han",
  2837. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2838. "onresize": function () { }
  2839. }, {
  2840. closecallback: function () { }
  2841. }, { "style": { "height": "36px" } }).form; //创建窗体
  2842. _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); } }
  2843. break;
  2844. case "projectGM": //课程管理
  2845. _formdiv = new U.UF.UI.form(
  2846. "课程管理",
  2847. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/courseGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2848. "id": "projectGM",
  2849. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2850. "onresize": function () { }
  2851. }, {
  2852. closecallback: function () { }
  2853. }, { "style": { "height": "36px" } }).form; //创建窗体
  2854. _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); } }
  2855. break;
  2856. case "studyGM"://课程中心
  2857. _formdiv = new U.UF.UI.form(
  2858. "课程中心",
  2859. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/indexGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2860. "id": "study",
  2861. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2862. "onresize": function () { }
  2863. }, {
  2864. closecallback: function () { }
  2865. }, { "style": { "height": "36px" } }).form; //创建窗体
  2866. _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); } }
  2867. break;
  2868. // studentGM
  2869. case "studentGM"://学生管理
  2870. _formdiv = new U.UF.UI.form(
  2871. "学生管理",
  2872. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studentGM?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  2873. "id": "studentGM",
  2874. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2875. "onresize": function () { }
  2876. }, {
  2877. closecallback: function () { }
  2878. }, { "style": { "height": "36px" } }).form; //创建窗体
  2879. _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); } }
  2880. break;
  2881. case "evaluateGM"://学生评价
  2882. _formdiv = new U.UF.UI.form(
  2883. "学生评价",
  2884. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2885. "id": "evaluateGM",
  2886. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2887. "onresize": function () { }
  2888. }, {
  2889. closecallback: function () { }
  2890. }, { "style": { "height": "36px" } }).form; //创建窗体
  2891. _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); } }
  2892. break;
  2893. // classGM
  2894. case "classGM"://班级管理
  2895. _formdiv = new U.UF.UI.form(
  2896. "班级管理",
  2897. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/classGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2898. "id": "classGM",
  2899. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2900. "onresize": function () { }
  2901. }, {
  2902. closecallback: function () { }
  2903. }, { "style": { "height": "36px" } }).form; //创建窗体
  2904. _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); } }
  2905. break;
  2906. // dataGM
  2907. case "dataGM":
  2908. _formdiv = new U.UF.UI.form(
  2909. "我的资料",
  2910. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataGM?userid=" + _userid + "&org=" + _org }), {
  2911. "id": "dataGM",
  2912. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2913. "onresize": function () { }
  2914. }, {
  2915. closecallback: function () { }
  2916. }, { "style": { "height": "36px" } }).form; //创建窗体
  2917. _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); } }
  2918. break;
  2919. // caseGM
  2920. case "caseGM"://课程进展
  2921. _formdiv = new U.UF.UI.form(
  2922. "课程进展",
  2923. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesignGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2924. "id": "caseGM",
  2925. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2926. "onresize": function () { }
  2927. }, {
  2928. closecallback: function () { }
  2929. }, { "style": { "height": "36px" } }).form; //创建窗体
  2930. _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); } }
  2931. break;
  2932. // meterialGM
  2933. case "meterialGM"://素材库
  2934. _formdiv = new U.UF.UI.form(
  2935. "素材库",
  2936. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/libraryGM?userid=" + _userid + "&org=" + _org }), {
  2937. "id": "meterialGM",
  2938. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2939. "onresize": function () { }
  2940. }, {
  2941. closecallback: function () { }
  2942. }, { "style": { "height": "36px" } }).form; //创建窗体
  2943. _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); } }
  2944. break;
  2945. // evaluateSGM
  2946. case "evaluateSGM": //我的评价
  2947. _formdiv = new U.UF.UI.form(
  2948. "我的评价",
  2949. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2950. "id": "evaluateSGM",
  2951. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2952. "onresize": function () { }
  2953. }, {
  2954. closecallback: function () { }
  2955. }, { "style": { "height": "36px" } }).form; //创建窗体
  2956. _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); } }
  2957. break;
  2958. case "jupyter": //jupyter
  2959. _formdiv = new U.UF.UI.form(
  2960. "jupyter",
  2961. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  2962. "id": "jupyter",
  2963. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2964. "onresize": function () { }
  2965. }, {
  2966. closecallback: function () { }
  2967. }, { "style": { "height": "36px" } }).form; //创建窗体
  2968. _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); } }
  2969. break;
  2970. case "number": //数字实验室
  2971. _formdiv = new U.UF.UI.form(
  2972. "数字实验室",
  2973. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  2974. "id": "number",
  2975. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2976. "onresize": function () { }
  2977. }, {
  2978. closecallback: function () { }
  2979. }, { "style": { "height": "36px" } }).form; //创建窗体
  2980. _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); } }
  2981. break;
  2982. case "studentCourse": //项目管理 学生
  2983. _formdiv = new U.UF.UI.form(
  2984. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2985. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studentCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2986. "id": "studentCourse",
  2987. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2988. "onresize": function () { }
  2989. }, {
  2990. closecallback: function () { }
  2991. }, { "style": { "height": "36px" } }).form; //创建窗体
  2992. _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); } }
  2993. break;
  2994. case "studentCourseS": //项目管理 老师
  2995. _formdiv = new U.UF.UI.form(
  2996. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  2997. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/scourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2998. "id": "studentCourseS",
  2999. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3000. "onresize": function () { }
  3001. }, {
  3002. closecallback: function () { }
  3003. }, { "style": { "height": "36px" } }).form; //创建窗体
  3004. _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); } }
  3005. break;
  3006. case "studentIndex": //项目中心
  3007. _formdiv = new U.UF.UI.form(
  3008. "项目中心",
  3009. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studentIndex?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType + "&role=" + _role }), {
  3010. "id": "studentIndex",
  3011. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3012. "onresize": function () { }
  3013. }, {
  3014. closecallback: function () { }
  3015. }, { "style": { "height": "36px" } }).form; //创建窗体
  3016. _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); } }
  3017. break;
  3018. case "CaseDesignS":
  3019. _formdiv = new U.UF.UI.form(
  3020. "项目进展",
  3021. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesignS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3022. "id": "case",
  3023. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3024. "onresize": function () { }
  3025. }, {
  3026. closecallback: function () { }
  3027. }, { "style": { "height": "36px" } }).form; //创建窗体
  3028. _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); } }
  3029. break;
  3030. case "tcStudent": //腾讯学生管理
  3031. _formdiv = new U.UF.UI.form(
  3032. "学生管理",
  3033. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcStudent?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3034. "id": "tcStudent",
  3035. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3036. "onresize": function () { }
  3037. }, {
  3038. closecallback: function () { }
  3039. }, { "style": { "height": "36px" } }).form; //创建窗体
  3040. _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); } }
  3041. break;
  3042. case "tcSchool": //腾讯学校管理
  3043. _formdiv = new U.UF.UI.form(
  3044. "学校管理",
  3045. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcSchool?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3046. "id": "tcSchool",
  3047. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3048. "onresize": function () { }
  3049. }, {
  3050. closecallback: function () { }
  3051. }, { "style": { "height": "36px" } }).form; //创建窗体
  3052. _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); } }
  3053. break;
  3054. case "tcTeacher": //腾讯学校管理
  3055. _formdiv = new U.UF.UI.form(
  3056. "教师管理",
  3057. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcTeacher?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3058. "id": "tcTeacher",
  3059. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3060. "onresize": function () { }
  3061. }, {
  3062. closecallback: function () { }
  3063. }, { "style": { "height": "36px" } }).form; //创建窗体
  3064. _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); } }
  3065. break;
  3066. case "tcData": //腾讯我的资料
  3067. _formdiv = new U.UF.UI.form(
  3068. "我的资料",
  3069. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcData?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3070. "id": "tcData",
  3071. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3072. "onresize": function () { }
  3073. }, {
  3074. closecallback: function () { }
  3075. }, { "style": { "height": "36px" } }).form; //创建窗体
  3076. _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); } }
  3077. break;
  3078. case "tcNotice": //腾讯消息通知
  3079. _formdiv = new U.UF.UI.form(
  3080. "消息通知",
  3081. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcNotice?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3082. "id": "tcNotice",
  3083. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3084. "onresize": function () { }
  3085. }, {
  3086. closecallback: function () { }
  3087. }, { "style": { "height": "36px" } }).form; //创建窗体
  3088. _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); } }
  3089. break;
  3090. case "myReport": //好友打开
  3091. _formdiv = new U.UF.UI.form(
  3092. "我的评价",
  3093. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/myReport?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&classid=" + _classId }), {
  3094. "id": "myReport",
  3095. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3096. "onresize": function () { }
  3097. }, {
  3098. closecallback: function () { }
  3099. }, { "style": { "height": "36px" } }).form; //创建窗体
  3100. _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); } }
  3101. break;
  3102. case "learnAna": //好友打开
  3103. _formdiv = new U.UF.UI.form(
  3104. "学习分析",
  3105. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/learnAna?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3106. "id": "learnAna",
  3107. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3108. "onresize": function () { }
  3109. }, {
  3110. closecallback: function () { }
  3111. }, { "style": { "height": "36px" } }).form; //创建窗体
  3112. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/learnAna.png)" }, "name": "学习分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3113. break;
  3114. case "AIChat": //AI共创
  3115. _formdiv = new U.UF.UI.form(
  3116. "AI共创",
  3117. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3118. "id": "AIChat",
  3119. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3120. "onresize": function () { }
  3121. }, {
  3122. istop: true,
  3123. closecallback: function () { $("#aichat_icon").remove(); },
  3124. narrowcallback: function () {
  3125. if (!$("#aichat_icon")[0]) {
  3126. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3127. }
  3128. },
  3129. }, { "style": { "height": "36px" } }).form; //创建窗体
  3130. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI共创", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3131. break;
  3132. case "AIAnalyse": //AI共创
  3133. _formdiv = new U.UF.UI.form(
  3134. "AI分析",
  3135. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3136. "id": "AIAnalyse",
  3137. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3138. "onresize": function () { }
  3139. }, {
  3140. closecallback: function () { }
  3141. }, { "style": { "height": "36px" } }).form; //创建窗体
  3142. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3143. break;
  3144. case "studioCourse": //AI共创
  3145. _formdiv = new U.UF.UI.form(
  3146. "工作管理",
  3147. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studioCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3148. "id": "studioCourse",
  3149. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3150. "onresize": function () { }
  3151. }, {
  3152. closecallback: function () { }
  3153. }, { "style": { "height": "36px" } }).form; //创建窗体
  3154. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioCourse.png)" }, "name": "工作管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3155. break;
  3156. case "studioIndex": //AI共创
  3157. _formdiv = new U.UF.UI.form(
  3158. "工作中心",
  3159. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studioIndex?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType + "&role=" + _role }), {
  3160. "id": "studioIndex",
  3161. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3162. "onresize": function () { }
  3163. }, {
  3164. closecallback: function () { }
  3165. }, { "style": { "height": "36px" } }).form; //创建窗体
  3166. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioIndex.png)" }, "name": "工作中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3167. break;
  3168. case "source":
  3169. _formdiv = new U.UF.UI.form(
  3170. "教学资源",
  3171. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/teacherSource?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3172. "id": "source",
  3173. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3174. "onresize": function () { }
  3175. }, {
  3176. closecallback: function () { }
  3177. }, { "style": { "height": "36px" } }).form; //创建窗体
  3178. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/source.png)" }, "name": "教学资源", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3179. break;
  3180. }
  3181. //U.MD.D.I.openClick(str);
  3182. //如果有任务栏信息
  3183. if (_taskbar) {
  3184. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3185. }
  3186. }
  3187. // U.MD.D.I.openClick = function(str){
  3188. // var click = '';
  3189. // switch(str){
  3190. // case 'friend':
  3191. // click = '我的好友';
  3192. // break;
  3193. // case 'domain':
  3194. // click = '域名管理';
  3195. // break;
  3196. // case 'disk':
  3197. // click = '我的云盘';
  3198. // break;
  3199. // case 'word':
  3200. // click = 'Word';
  3201. // break;
  3202. // case 'excel':
  3203. // click = 'Execl';
  3204. // break;
  3205. // case 'txt':
  3206. // click = '文本文件';
  3207. // break;
  3208. // case 'lookupFriend':
  3209. // click = '查找好友';
  3210. // break;
  3211. // case 'ftp':
  3212. // click = 'FTP';
  3213. // break;
  3214. // case 'group':
  3215. // click = '群组';
  3216. // break;
  3217. // case 'set':
  3218. // click = '我的设置';
  3219. // break;
  3220. // case 'systemSet':
  3221. // click = '系统设置';
  3222. // break;
  3223. // case 'boomYun':
  3224. // click = '互联办公';
  3225. // break;
  3226. // case 'xz':
  3227. // click = '云端下载';
  3228. // break;
  3229. // case 'client':
  3230. // click = '有思浏览器';
  3231. // break;
  3232. // case 'backEndProgramming':
  3233. // click = '在线后台编程';
  3234. // break;
  3235. // case 'frontEndProgramming':
  3236. // click = '在线前端编程';
  3237. // break;
  3238. // default: break;
  3239. // }
  3240. // if(U.MD.D.I.Ip && click){
  3241. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3242. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3243. // })
  3244. // }
  3245. // }
  3246. /**
  3247. *函数作用:ajax简易函数,使用post格式
  3248. *@param url {data} 后台地址
  3249. *@param data {data} 参数json
  3250. *@param fn {data} 回调函数
  3251. *
  3252. */
  3253. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3254. // var xhr = new XMLHttpRequest();
  3255. // xhr.open("GET",url,true);
  3256. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3257. // xhr.onreadystatechange = function(){
  3258. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3259. // fn.call(this,xhr.responseText);
  3260. // }
  3261. // };
  3262. // xhr.send();
  3263. // }
  3264. /*判断是否是内网IP*/
  3265. // U.MD.D.I.isInnerIPFn = function(str){
  3266. // var curPageUrl = str;
  3267. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3268. // curPageUrl =curPageUrl.replace(reg1,'');
  3269. // // console.log('curPageUrl-1 '+curPageUrl);
  3270. // var reg2 = /\:+/g;//替换冒号为一点
  3271. // curPageUrl =curPageUrl.replace(reg2,'.');
  3272. // // console.log('curPageUrl-2 '+curPageUrl);
  3273. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3274. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3275. // if(curPageUrl[2] != '16'){
  3276. // return ipAddress;
  3277. // }else{
  3278. // return false;
  3279. // }
  3280. // }
  3281. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3282. // //compatibility for firefox and chrome
  3283. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3284. // var pc = new myPeerConnection({
  3285. // iceServers: []
  3286. // }),
  3287. // noop = function() {},
  3288. // localIPs = {},
  3289. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3290. // key;
  3291. // function iterateIP(ip) {
  3292. // if (!localIPs[ip]) onNewIP(ip);
  3293. // localIPs[ip] = true;
  3294. // }
  3295. // //create a bogus data channel
  3296. // pc.createDataChannel("");
  3297. // // create offer and set local description
  3298. // pc.createOffer().then(function(sdp) {
  3299. // sdp.sdp.split('\n').forEach(function(line) {
  3300. // if (line.indexOf('candidate') < 0) return;
  3301. // line.match(ipRegex).forEach(iterateIP);
  3302. // });
  3303. // pc.setLocalDescription(sdp, noop, noop);
  3304. // }).catch(function(reason) {
  3305. // // An error occurred, so handle the failure to connect
  3306. // });
  3307. // //sten for candidate events
  3308. // pc.onicecandidate = function(ice) {
  3309. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3310. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3311. // };
  3312. // }
  3313. // U.MD.D.I.getUserIpBool = function(callback){
  3314. // U.MD.D.I.getUserIP(function(ip){
  3315. // alert("Got IP! :" + ip);
  3316. // });
  3317. //}
  3318. //#endregion
  3319. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3320. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3321. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3322. _userinfo = US.userInfo, //登录用户信息
  3323. _userid = US.userInfo.userid //登录用户id
  3324. let _iframe;
  3325. let _cid = cid,
  3326. _stage = stage,
  3327. _task = task,
  3328. _tool = tool;
  3329. var _jie = $$("div", {
  3330. "style": {
  3331. "position": "absolute",
  3332. "bottom": "50px",
  3333. "right": "50px",
  3334. "zIndex": "9999",
  3335. "backgroundColor": "#2268bc",
  3336. "color": "#fff",
  3337. "padding": "12px 20px",
  3338. "cursor": "pointer",
  3339. "borderRadius": "4px",
  3340. },
  3341. "innerHTML": "提交作业"
  3342. })
  3343. let aTool = ''
  3344. let _loading = document.createElement('div')
  3345. _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;"
  3346. // _loading.id = "";
  3347. let _lchild = document.createElement('div')
  3348. let _limg = document.createElement('img')
  3349. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3350. _limg.style = "width: 26px;margin-right: 10px;"
  3351. _lchild.appendChild(_limg)
  3352. let _lspan = document.createElement('span')
  3353. _lspan.innerHTML = "上传中..."
  3354. _lchild.appendChild(_lspan)
  3355. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  3356. _loading.appendChild(_lchild)
  3357. var _box = $$('div', {
  3358. "style": {
  3359. "position": "relative",
  3360. "width": "100%",
  3361. "height": "100%",
  3362. },
  3363. })
  3364. _box.appendChild(_loading)
  3365. _box.id = str + '_loadLi'
  3366. switch (str) {
  3367. case "whiteboard":
  3368. aTool = 1;
  3369. _iframe = $$("iframe", {
  3370. "frameborder": "no",
  3371. "border": "0",
  3372. "scrolling ": "no",
  3373. "style": {
  3374. "cssText": "border:0;width:100%;height:100%"
  3375. },
  3376. "src": "https://iwb.cocorobo.cn/"
  3377. })
  3378. _box.appendChild(_iframe);
  3379. _box.appendChild(_jie);
  3380. _formdiv = new U.UF.UI.form(
  3381. "电子白板",
  3382. _box, {
  3383. "id": "whiteboard" + cid + stage + task + tool,
  3384. "style": {
  3385. "width": "90%",
  3386. "height": "90%",
  3387. "overflow": 'hidden'
  3388. },
  3389. "onresize": function () { }
  3390. }, {
  3391. closecallback: function () { }
  3392. }, {
  3393. "style": {
  3394. "height": "36px"
  3395. }
  3396. }).form; //创建窗体
  3397. _taskbar = {
  3398. "id": str + _formdiv.id,
  3399. "style": {
  3400. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3401. },
  3402. "name": "电子白板",
  3403. "forms": _formdiv,
  3404. "click": function () {
  3405. U.MD.D.I.openApplication(str, obj, info);
  3406. }
  3407. }
  3408. break;
  3409. case "mind":
  3410. aTool = 3;
  3411. _iframe = $$("iframe", {
  3412. "frameborder": "no",
  3413. "border": "0",
  3414. "scrolling ": "no",
  3415. "style": {
  3416. "cssText": "border:0;width:100%;height:100%"
  3417. },
  3418. "src": "/kityminder-editor/dist/index.html"
  3419. })
  3420. _box.appendChild(_iframe);
  3421. _box.appendChild(_jie);
  3422. _formdiv = new U.UF.UI.form(
  3423. "思维导图",
  3424. _box, { //"/jsmind/example/demo.html"
  3425. "id": "mind" + cid + stage + task + tool,
  3426. "style": {
  3427. "width": "90%",
  3428. "height": "90%",
  3429. "overflow": 'hidden'
  3430. },
  3431. "onresize": function () { }
  3432. }, {
  3433. closecallback: function () { }
  3434. }, {
  3435. "style": {
  3436. "height": "36px"
  3437. }
  3438. }).form; //创建窗体
  3439. _taskbar = {
  3440. "id": str + _formdiv.id,
  3441. "style": {
  3442. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3443. },
  3444. "name": "思维导图",
  3445. "forms": _formdiv,
  3446. "click": function () {
  3447. U.MD.D.I.openApplication(str, obj, info);
  3448. }
  3449. }
  3450. break;
  3451. case "MindMap":
  3452. aTool = 3;
  3453. _iframe = $$("iframe", {
  3454. "frameborder": "no",
  3455. "border": "0",
  3456. "scrolling ": "no",
  3457. "style": {
  3458. "cssText": "border:0;width:100%;height:100%"
  3459. },
  3460. "src": "//cloud.cocorobo.cn/mind/"
  3461. })
  3462. _box.appendChild(_iframe);
  3463. _box.appendChild(_jie);
  3464. _formdiv = new U.UF.UI.form(
  3465. "思维导图",
  3466. _box, { //"/jsmind/example/demo.html"
  3467. "id": "mind" + cid + stage + task + tool,
  3468. "style": {
  3469. "width": "90%",
  3470. "height": "90%",
  3471. "overflow": 'hidden'
  3472. },
  3473. "onresize": function () { }
  3474. }, {
  3475. closecallback: function () { }
  3476. }, {
  3477. "style": {
  3478. "height": "36px"
  3479. }
  3480. }).form; //创建窗体
  3481. _taskbar = {
  3482. "id": str + _formdiv.id,
  3483. "style": {
  3484. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3485. },
  3486. "name": "思维导图",
  3487. "forms": _formdiv,
  3488. "click": function () {
  3489. U.MD.D.I.openApplication(str, obj, info);
  3490. }
  3491. }
  3492. break;
  3493. case "doc":
  3494. aTool = 6;
  3495. _iframe = $$("iframe", {
  3496. "frameborder": "no",
  3497. "border": "0",
  3498. "scrolling ": "no",
  3499. "style": {
  3500. "cssText": "border:0;width:100%;height:100%"
  3501. },
  3502. "src": "/Office/Word/WordEditArea.htm"
  3503. })
  3504. _box.appendChild(_iframe);
  3505. _box.appendChild(_jie);
  3506. _formdiv = new U.UF.UI.form(
  3507. "协同文档",
  3508. _box, {
  3509. "id": "doc" + cid + stage + task + tool,
  3510. "style": {
  3511. "width": "90%",
  3512. "height": "90%",
  3513. "overflow": 'hidden'
  3514. },
  3515. "onresize": function () { }
  3516. }, {
  3517. closecallback: function () { }
  3518. }, {
  3519. "style": {
  3520. "height": "36px"
  3521. }
  3522. }).form; //创建窗体
  3523. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3524. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3525. })
  3526. _taskbar = {
  3527. "id": str + _formdiv.id,
  3528. "style": {
  3529. "backgroundImage": "url(/img/icon/doc.png)"
  3530. },
  3531. "name": "协同文档",
  3532. "forms": _formdiv,
  3533. "click": function () {
  3534. U.MD.D.I.openApplication(str, obj, info);
  3535. }
  3536. }
  3537. break;
  3538. case "mindNetwork": //好友打开
  3539. aTool = 7;
  3540. _iframe = $$("iframe", {
  3541. "webkitallowfullscreen": "",
  3542. "mozallowfullscreen": "",
  3543. "allowfullscreen": "",
  3544. "frameborder": "no",
  3545. "border": "0",
  3546. "scrolling ": "no",
  3547. "style": {
  3548. "cssText": "border:0; width:100%; height:100%;"
  3549. },
  3550. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3551. })
  3552. _box.appendChild(_iframe);
  3553. _box.appendChild(_jie);
  3554. _formdiv = new U.UF.UI.form(
  3555. "思维网格",
  3556. _box, {
  3557. "id": "mindNetwork" + cid + stage + task + tool,
  3558. "style": {
  3559. "width": "90%",
  3560. "height": "90%",
  3561. "overflow": 'hidden'
  3562. },
  3563. "onresize": function () { }
  3564. }, {
  3565. closecallback: function () { }
  3566. }, {
  3567. "style": {
  3568. "height": "36px"
  3569. }
  3570. }).form; //创建窗体
  3571. _taskbar = {
  3572. "id": str + _formdiv.id,
  3573. "style": {
  3574. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3575. },
  3576. "name": "思维网格",
  3577. "forms": _formdiv,
  3578. "click": function () {
  3579. U.MD.D.I.openApplication(str, obj, info);
  3580. }
  3581. }
  3582. break;
  3583. case "courseDesign":
  3584. _iframe = $$("iframe", {
  3585. "webkitallowfullscreen": "",
  3586. "mozallowfullscreen": "",
  3587. "allowfullscreen": "",
  3588. "frameborder": "no",
  3589. "border": "0",
  3590. "scrolling ": "no",
  3591. "style": {
  3592. "cssText": "border:0; width:100%; height:100%;"
  3593. },
  3594. "src": "/course-design-vue"
  3595. })
  3596. _box.appendChild(_iframe);
  3597. _box.appendChild(_jie);
  3598. _formdiv = new U.UF.UI.form(
  3599. "项目设计",
  3600. _box, {
  3601. "id": "courseDesign" + cid + stage + task + tool,
  3602. "style": {
  3603. "width": "90%",
  3604. "height": "90%",
  3605. "overflow": 'hidden'
  3606. },
  3607. "onresize": function () { }
  3608. }, {
  3609. closecallback: function () { }
  3610. }, {
  3611. "style": {
  3612. "height": "36px"
  3613. }
  3614. }).form; //创建窗体
  3615. _taskbar = {
  3616. "id": str + _formdiv.id,
  3617. "style": {
  3618. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3619. },
  3620. "name": "项目设计",
  3621. "forms": _formdiv,
  3622. "click": function () {
  3623. U.MD.D.I.openApplication(str, obj, info);
  3624. }
  3625. }
  3626. break;
  3627. }
  3628. const script1 = document.createElement("script");
  3629. script1.type = "text/javascript";
  3630. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3631. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3632. const script2 = document.createElement("script");
  3633. script2.type = "text/javascript";
  3634. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3635. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3636. const script3 = document.createElement("script");
  3637. script3.type = "text/javascript";
  3638. script3.charset = "UTF-8";
  3639. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3640. const script4 = document.createElement("script");
  3641. script4.type = "text/javascript";
  3642. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3643. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3644. if (_iframe) {
  3645. if (str == 'doc') {
  3646. _iframe = _formdiv.querySelector('iframe')
  3647. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3648. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3649. _iframe.contentWindow.document.body.appendChild(script1);
  3650. _iframe.contentWindow.document.body.appendChild(script2);
  3651. // _iframe.contentWindow.document.body.appendChild(script3);
  3652. _iframe.contentWindow.document.body.appendChild(script4);
  3653. })
  3654. if (onloadListener) {
  3655. _iframe.contentDocument.location.reload()
  3656. } else {
  3657. _iframe.contentDocument.location.reload()
  3658. }
  3659. } else if (str == 'courseDesign') {
  3660. U.UF.DL.iframeLoad(_iframe, function () {
  3661. // _iframe.contentWindow.U.MD.O.W.load();
  3662. // _iframe.contentWindow.document.body.appendChild(script1);
  3663. _iframe.contentWindow.document.body.appendChild(script2);
  3664. _iframe.contentWindow.document.body.appendChild(script4);
  3665. })
  3666. } else if (str == 'mind') {
  3667. _iframe = _formdiv.querySelector('iframe')
  3668. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3669. //
  3670. _iframe.contentWindow.document.body.appendChild(script1);
  3671. _iframe.contentWindow.document.body.appendChild(script2);
  3672. _iframe.contentWindow.document.body.appendChild(script4);
  3673. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3674. })
  3675. if (onloadListener) {
  3676. _iframe.contentDocument.location.reload()
  3677. } else {
  3678. _iframe.contentDocument.location.reload()
  3679. }
  3680. } else if (str == 'whiteboard') {
  3681. _iframe = _formdiv.querySelector('iframe')
  3682. let onloadListener = _iframe.onload = () => {
  3683. _iframe.contentWindow.document.body.appendChild(script1);
  3684. _iframe.contentWindow.document.body.appendChild(script2);
  3685. _iframe.contentWindow.document.body.appendChild(script4);
  3686. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3687. };
  3688. if (onloadListener) {
  3689. _iframe.contentDocument.location.reload()
  3690. } else {
  3691. _iframe.contentDocument.location.reload()
  3692. }
  3693. } else {
  3694. _iframe.onload = () => {
  3695. _iframe.contentWindow.document.body.appendChild(script1);
  3696. _iframe.contentWindow.document.body.appendChild(script2);
  3697. // _iframe.contentWindow.document.body.appendChild(script3);
  3698. _iframe.contentWindow.document.body.appendChild(script4);
  3699. };
  3700. }
  3701. _jie.onclick = async () => {
  3702. let text = ''
  3703. if (aTool == 1) {
  3704. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3705. } else if (aTool == 6) {
  3706. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3707. } else if (aTool == 3) {
  3708. text = await U.MD.D.I.getEditorContent(_iframe);
  3709. }
  3710. _loading.style.display = 'flex'
  3711. console.log(_loading);
  3712. var _ajs = _iframe.contentWindow.document.createElement("script");
  3713. _ajs.type = "text/javascript";
  3714. _ajs.innerHTML =
  3715. // 'console.log(' + _loading + ');\n' +
  3716. 'var _js = document.createElement("script");\n' +
  3717. '_js.type="text/javascript";\n' +
  3718. '_js.charset="UTF-8";\n' +
  3719. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3720. "_js.onload = function(){\n" +
  3721. ' var a = document.getElementsByTagName("img")\n' +
  3722. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3723. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3724. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3725. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3726. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3727. "beforeUpload_shishi(file," +
  3728. "'" +
  3729. _userid +
  3730. "'" +
  3731. ", " +
  3732. "'" +
  3733. _cid +
  3734. "'" +
  3735. ", " +
  3736. "'" +
  3737. _stage +
  3738. "'" +
  3739. ", " +
  3740. "'" +
  3741. _task +
  3742. "'" +
  3743. ", " +
  3744. "'" +
  3745. _tool +
  3746. "'" +
  3747. ", " +
  3748. "'" +
  3749. str + '_loadLi' +
  3750. "'" +
  3751. ", " +
  3752. "'" +
  3753. aTool +
  3754. "'" +
  3755. ", " +
  3756. "`" +
  3757. text +
  3758. "`" +
  3759. ")\n" +
  3760. " });\n" +
  3761. "}\n" +
  3762. "document.head.appendChild(_js);\n";
  3763. _iframe.contentWindow.document.head.appendChild(_ajs);
  3764. }
  3765. }
  3766. //U.MD.D.I.openClick(str);
  3767. //如果有任务栏信息
  3768. // if (_taskbar) {
  3769. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3770. // }
  3771. }
  3772. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  3773. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3774. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3775. _userid = student.userid, //登录用户id
  3776. _username = student.student //用户名字
  3777. let _iframe;
  3778. let _cid = cid,
  3779. _stage = stage,
  3780. _task = task,
  3781. _tool = tool;
  3782. var _jie = $$("div", {
  3783. "style": {
  3784. "position": "absolute",
  3785. "bottom": "50px",
  3786. "right": "50px",
  3787. "zIndex": "9999",
  3788. "backgroundColor": "#2268bc",
  3789. "color": "#fff",
  3790. "padding": "12px 20px",
  3791. "cursor": "pointer",
  3792. "borderRadius": "4px",
  3793. },
  3794. "innerHTML": "提交作业"
  3795. })
  3796. let aTool = ''
  3797. let _loading = document.createElement('div')
  3798. _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;"
  3799. // _loading.id = "";
  3800. let _lchild = document.createElement('div')
  3801. let _limg = document.createElement('img')
  3802. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3803. _limg.style = "width: 26px;margin-right: 10px;"
  3804. _lchild.appendChild(_limg)
  3805. let _lspan = document.createElement('span')
  3806. _lspan.innerHTML = "上传中..."
  3807. _lchild.appendChild(_lspan)
  3808. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  3809. _loading.appendChild(_lchild)
  3810. var _box = $$('div', {
  3811. "style": {
  3812. "position": "relative",
  3813. "width": "100%",
  3814. "height": "100%",
  3815. },
  3816. })
  3817. _box.appendChild(_loading)
  3818. _box.id = str + '_loadLi' + _userid
  3819. switch (str) {
  3820. case "whiteboard":
  3821. aTool = 1;
  3822. _iframe = $$("iframe", {
  3823. "frameborder": "no",
  3824. "border": "0",
  3825. "scrolling ": "no",
  3826. "style": {
  3827. "cssText": "border:0;width:100%;height:100%"
  3828. },
  3829. "src": "https://iwb.cocorobo.cn/"
  3830. })
  3831. _box.appendChild(_iframe);
  3832. _box.appendChild(_jie);
  3833. _formdiv = new U.UF.UI.form(
  3834. "电子白板-" + _username,
  3835. _box, {
  3836. "id": "whiteboard" + cid + stage + task + tool + _userid,
  3837. "style": {
  3838. "width": "90%",
  3839. "height": "90%",
  3840. "overflow": 'hidden'
  3841. },
  3842. "onresize": function () { }
  3843. }, {
  3844. closecallback: function () { }
  3845. }, {
  3846. "style": {
  3847. "height": "36px"
  3848. }
  3849. }).form; //创建窗体
  3850. _taskbar = {
  3851. "id": str + _formdiv.id,
  3852. "style": {
  3853. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3854. },
  3855. "name": "电子白板",
  3856. "forms": _formdiv,
  3857. "click": function () {
  3858. U.MD.D.I.openApplication(str, obj, info);
  3859. }
  3860. }
  3861. break;
  3862. case "mind":
  3863. aTool = 3;
  3864. _iframe = $$("iframe", {
  3865. "frameborder": "no",
  3866. "border": "0",
  3867. "scrolling ": "no",
  3868. "style": {
  3869. "cssText": "border:0;width:100%;height:100%"
  3870. },
  3871. "src": "/kityminder-editor/dist/index.html"
  3872. })
  3873. _box.appendChild(_iframe);
  3874. _box.appendChild(_jie);
  3875. _formdiv = new U.UF.UI.form(
  3876. "思维导图-" + _username,
  3877. _box, { //"/jsmind/example/demo.html"
  3878. "id": "mind" + cid + stage + task + tool + _userid,
  3879. "style": {
  3880. "width": "90%",
  3881. "height": "90%",
  3882. "overflow": 'hidden'
  3883. },
  3884. "onresize": function () { }
  3885. }, {
  3886. closecallback: function () { }
  3887. }, {
  3888. "style": {
  3889. "height": "36px"
  3890. }
  3891. }).form; //创建窗体
  3892. _taskbar = {
  3893. "id": str + _formdiv.id,
  3894. "style": {
  3895. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3896. },
  3897. "name": "思维导图",
  3898. "forms": _formdiv,
  3899. "click": function () {
  3900. U.MD.D.I.openApplication(str, obj, info);
  3901. }
  3902. }
  3903. break;
  3904. case "MindMap":
  3905. aTool = 3;
  3906. _iframe = $$("iframe", {
  3907. "frameborder": "no",
  3908. "border": "0",
  3909. "scrolling ": "no",
  3910. "style": {
  3911. "cssText": "border:0;width:100%;height:100%"
  3912. },
  3913. "src": "//cloud.cocorobo.cn/mind/"
  3914. })
  3915. _box.appendChild(_iframe);
  3916. _box.appendChild(_jie);
  3917. _formdiv = new U.UF.UI.form(
  3918. "思维导图-" + _username,
  3919. _box, { //"/jsmind/example/demo.html"
  3920. "id": "mind" + cid + stage + task + tool + _userid,
  3921. "style": {
  3922. "width": "90%",
  3923. "height": "90%",
  3924. "overflow": 'hidden'
  3925. },
  3926. "onresize": function () { }
  3927. }, {
  3928. closecallback: function () { }
  3929. }, {
  3930. "style": {
  3931. "height": "36px"
  3932. }
  3933. }).form; //创建窗体
  3934. _taskbar = {
  3935. "id": str + _formdiv.id,
  3936. "style": {
  3937. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3938. },
  3939. "name": "思维导图",
  3940. "forms": _formdiv,
  3941. "click": function () {
  3942. U.MD.D.I.openApplication(str, obj, info);
  3943. }
  3944. }
  3945. break;
  3946. case "doc":
  3947. aTool = 6;
  3948. _iframe = $$("iframe", {
  3949. "frameborder": "no",
  3950. "border": "0",
  3951. "scrolling ": "no",
  3952. "style": {
  3953. "cssText": "border:0;width:100%;height:100%"
  3954. },
  3955. "src": "/Office/Word/WordEditArea.htm"
  3956. })
  3957. _box.appendChild(_iframe);
  3958. _box.appendChild(_jie);
  3959. _formdiv = new U.UF.UI.form(
  3960. "协同文档-" + _username,
  3961. _box, {
  3962. "id": "doc" + cid + stage + task + tool + _userid,
  3963. "style": {
  3964. "width": "90%",
  3965. "height": "90%",
  3966. "overflow": 'hidden'
  3967. },
  3968. "onresize": function () { }
  3969. }, {
  3970. closecallback: function () { }
  3971. }, {
  3972. "style": {
  3973. "height": "36px"
  3974. }
  3975. }).form; //创建窗体
  3976. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3977. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3978. })
  3979. _taskbar = {
  3980. "id": str + _formdiv.id,
  3981. "style": {
  3982. "backgroundImage": "url(/img/icon/doc.png)"
  3983. },
  3984. "name": "协同文档",
  3985. "forms": _formdiv,
  3986. "click": function () {
  3987. U.MD.D.I.openApplication(str, obj, info);
  3988. }
  3989. }
  3990. break;
  3991. case "mindNetwork": //好友打开
  3992. aTool = 7;
  3993. _iframe = $$("iframe", {
  3994. "webkitallowfullscreen": "",
  3995. "mozallowfullscreen": "",
  3996. "allowfullscreen": "",
  3997. "frameborder": "no",
  3998. "border": "0",
  3999. "scrolling ": "no",
  4000. "style": {
  4001. "cssText": "border:0; width:100%; height:100%;"
  4002. },
  4003. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4004. })
  4005. _box.appendChild(_iframe);
  4006. _box.appendChild(_jie);
  4007. _formdiv = new U.UF.UI.form(
  4008. "思维网格-" + _username,
  4009. _box, {
  4010. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4011. "style": {
  4012. "width": "90%",
  4013. "height": "90%",
  4014. "overflow": 'hidden'
  4015. },
  4016. "onresize": function () { }
  4017. }, {
  4018. closecallback: function () { }
  4019. }, {
  4020. "style": {
  4021. "height": "36px"
  4022. }
  4023. }).form; //创建窗体
  4024. _taskbar = {
  4025. "id": str + _formdiv.id,
  4026. "style": {
  4027. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4028. },
  4029. "name": "思维网格",
  4030. "forms": _formdiv,
  4031. "click": function () {
  4032. U.MD.D.I.openApplication(str, obj, info);
  4033. }
  4034. }
  4035. break;
  4036. case "courseDesign":
  4037. _iframe = $$("iframe", {
  4038. "webkitallowfullscreen": "",
  4039. "mozallowfullscreen": "",
  4040. "allowfullscreen": "",
  4041. "frameborder": "no",
  4042. "border": "0",
  4043. "scrolling ": "no",
  4044. "style": {
  4045. "cssText": "border:0; width:100%; height:100%;"
  4046. },
  4047. "src": "/course-design-vue"
  4048. })
  4049. _box.appendChild(_iframe);
  4050. _box.appendChild(_jie);
  4051. _formdiv = new U.UF.UI.form(
  4052. "项目设计-" + _username,
  4053. _box, {
  4054. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4055. "style": {
  4056. "width": "90%",
  4057. "height": "90%",
  4058. "overflow": 'hidden'
  4059. },
  4060. "onresize": function () { }
  4061. }, {
  4062. closecallback: function () { }
  4063. }, {
  4064. "style": {
  4065. "height": "36px"
  4066. }
  4067. }).form; //创建窗体
  4068. _taskbar = {
  4069. "id": str + _formdiv.id,
  4070. "style": {
  4071. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4072. },
  4073. "name": "项目设计",
  4074. "forms": _formdiv,
  4075. "click": function () {
  4076. U.MD.D.I.openApplication(str, obj, info);
  4077. }
  4078. }
  4079. break;
  4080. }
  4081. const script1 = document.createElement("script");
  4082. script1.type = "text/javascript";
  4083. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4084. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4085. const script2 = document.createElement("script");
  4086. script2.type = "text/javascript";
  4087. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4088. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4089. const script3 = document.createElement("script");
  4090. script3.type = "text/javascript";
  4091. script3.charset = "UTF-8";
  4092. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4093. const script4 = document.createElement("script");
  4094. script4.type = "text/javascript";
  4095. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4096. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4097. if (_iframe) {
  4098. if (str == 'doc') {
  4099. _iframe = _formdiv.querySelector('iframe')
  4100. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4101. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4102. _iframe.contentWindow.document.body.appendChild(script1);
  4103. _iframe.contentWindow.document.body.appendChild(script2);
  4104. // _iframe.contentWindow.document.body.appendChild(script3);
  4105. _iframe.contentWindow.document.body.appendChild(script4);
  4106. })
  4107. if (onloadListener) {
  4108. _iframe.contentDocument.location.reload()
  4109. } else {
  4110. _iframe.contentDocument.location.reload()
  4111. }
  4112. } else if (str == 'courseDesign') {
  4113. U.UF.DL.iframeLoad(_iframe, function () {
  4114. // _iframe.contentWindow.U.MD.O.W.load();
  4115. // _iframe.contentWindow.document.body.appendChild(script1);
  4116. _iframe.contentWindow.document.body.appendChild(script2);
  4117. _iframe.contentWindow.document.body.appendChild(script4);
  4118. })
  4119. } else if (str == 'mind') {
  4120. _iframe = _formdiv.querySelector('iframe')
  4121. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4122. //
  4123. _iframe.contentWindow.document.body.appendChild(script1);
  4124. _iframe.contentWindow.document.body.appendChild(script2);
  4125. _iframe.contentWindow.document.body.appendChild(script4);
  4126. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4127. })
  4128. if (onloadListener) {
  4129. _iframe.contentDocument.location.reload()
  4130. } else {
  4131. _iframe.contentDocument.location.reload()
  4132. }
  4133. } else if (str == 'whiteboard') {
  4134. _iframe = _formdiv.querySelector('iframe')
  4135. let onloadListener = _iframe.onload = () => {
  4136. _iframe.contentWindow.document.body.appendChild(script1);
  4137. _iframe.contentWindow.document.body.appendChild(script2);
  4138. _iframe.contentWindow.document.body.appendChild(script4);
  4139. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4140. };
  4141. if (onloadListener) {
  4142. _iframe.contentDocument.location.reload()
  4143. } else {
  4144. _iframe.contentDocument.location.reload()
  4145. }
  4146. } else {
  4147. _iframe.onload = () => {
  4148. _iframe.contentWindow.document.body.appendChild(script1);
  4149. _iframe.contentWindow.document.body.appendChild(script2);
  4150. // _iframe.contentWindow.document.body.appendChild(script3);
  4151. _iframe.contentWindow.document.body.appendChild(script4);
  4152. };
  4153. }
  4154. _jie.onclick = async () => {
  4155. let text = ''
  4156. if (aTool == 1) {
  4157. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4158. } else if (aTool == 6) {
  4159. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4160. } else if (aTool == 3) {
  4161. text = await U.MD.D.I.getEditorContent(_iframe);
  4162. }
  4163. _loading.style.display = 'flex'
  4164. console.log(_loading);
  4165. var _ajs = _iframe.contentWindow.document.createElement("script");
  4166. _ajs.type = "text/javascript";
  4167. _ajs.innerHTML =
  4168. // 'console.log(' + _loading + ');\n' +
  4169. 'var _js = document.createElement("script");\n' +
  4170. '_js.type="text/javascript";\n' +
  4171. '_js.charset="UTF-8";\n' +
  4172. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4173. "_js.onload = function(){\n" +
  4174. ' var a = document.getElementsByTagName("img")\n' +
  4175. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4176. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4177. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4178. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4179. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4180. "beforeUpload_shishi(file," +
  4181. "'" +
  4182. _userid +
  4183. "'" +
  4184. ", " +
  4185. "'" +
  4186. _cid +
  4187. "'" +
  4188. ", " +
  4189. "'" +
  4190. _stage +
  4191. "'" +
  4192. ", " +
  4193. "'" +
  4194. _task +
  4195. "'" +
  4196. ", " +
  4197. "'" +
  4198. _tool +
  4199. "'" +
  4200. ", " +
  4201. "'" +
  4202. str + '_loadLi' + _userid +
  4203. "'" +
  4204. ", " +
  4205. "'" +
  4206. aTool +
  4207. "'" +
  4208. ", " +
  4209. "`" +
  4210. text +
  4211. "`" +
  4212. ")\n" +
  4213. " });\n" +
  4214. "}\n" +
  4215. "document.head.appendChild(_js);\n";
  4216. _iframe.contentWindow.document.head.appendChild(_ajs);
  4217. }
  4218. }
  4219. }
  4220. U.MD.D.I.getEditorContent = function (iframe) {
  4221. return new Promise((resolve, reject) => {
  4222. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  4223. console.log(content);
  4224. resolve(content)
  4225. });
  4226. });
  4227. }
  4228. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  4229. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  4230. // if (res.value[0].length > 0) {
  4231. // // resolve(res.value[0][0].text);
  4232. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  4233. // $(fileInput).val('');
  4234. // });
  4235. // }
  4236. // }, [], { "type": "GET", "withCredentials": true });
  4237. var xmlhttp;
  4238. var Mac, Sn, DeviceId
  4239. if (window.XMLHttpRequest) {
  4240. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  4241. xmlhttp = new XMLHttpRequest();
  4242. }
  4243. else {
  4244. // IE6, IE5 浏览器执行代码
  4245. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  4246. }
  4247. xmlhttp.onreadystatechange = function () {
  4248. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  4249. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  4250. // resolve(res.value[0][0].text);
  4251. if (type == '2') {
  4252. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  4253. $(fileInput).val('');
  4254. });
  4255. } else if (type == '3') {
  4256. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  4257. }
  4258. } else {
  4259. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  4260. }
  4261. }
  4262. }
  4263. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  4264. xmlhttp.send();
  4265. }
  4266. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  4267. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4268. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4269. _userinfo = US.userInfo, //登录用户信息
  4270. _userid = US.userInfo.userid //登录用户id
  4271. let _iframe;
  4272. let _cid = cid,
  4273. _stage = stage,
  4274. _task = task,
  4275. _tool = tool;
  4276. var _jie = $$("div", {
  4277. "style": {
  4278. "position": "absolute",
  4279. "bottom": "50px",
  4280. "right": "50px",
  4281. "zIndex": "9999",
  4282. "backgroundColor": "#2268bc",
  4283. "color": "#fff",
  4284. "padding": "12px 20px",
  4285. "cursor": "pointer",
  4286. "borderRadius": "4px",
  4287. },
  4288. "innerHTML": "确认并提交"
  4289. })
  4290. let aTool = ''
  4291. let _loading = document.createElement('div')
  4292. _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;"
  4293. // _loading.id = "";
  4294. let _lchild = document.createElement('div')
  4295. let _limg = document.createElement('img')
  4296. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4297. _limg.style = "width: 26px;margin-right: 10px;"
  4298. _lchild.appendChild(_limg)
  4299. let _lspan = document.createElement('span')
  4300. _lspan.innerHTML = "上传中..."
  4301. _lchild.appendChild(_lspan)
  4302. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  4303. _loading.appendChild(_lchild)
  4304. var _box = $$('div', {
  4305. "style": {
  4306. "position": "relative",
  4307. "width": "100%",
  4308. "height": "100%",
  4309. },
  4310. })
  4311. _box.appendChild(_loading)
  4312. _box.id = str + '_loadLi'
  4313. switch (str) {
  4314. case "whiteboard":
  4315. aTool = 1;
  4316. _iframe = $$("iframe", {
  4317. "frameborder": "no",
  4318. "border": "0",
  4319. "scrolling ": "no",
  4320. "style": {
  4321. "cssText": "border:0;width:100%;height:100%"
  4322. },
  4323. "src": "https://iwb.cocorobo.cn/"
  4324. })
  4325. _box.appendChild(_iframe);
  4326. _box.appendChild(_jie);
  4327. _formdiv = new U.UF.UI.form(
  4328. "电子白板",
  4329. _box, {
  4330. "id": "whiteboards" + cid + stage + task + tool,
  4331. "style": {
  4332. "width": "90%",
  4333. "height": "90%",
  4334. "overflow": 'hidden'
  4335. },
  4336. "onresize": function () { }
  4337. }, {
  4338. closecallback: function () { }
  4339. }, {
  4340. "style": {
  4341. "height": "36px"
  4342. }
  4343. }).form; //创建窗体
  4344. _taskbar = {
  4345. "id": str + _formdiv.id,
  4346. "style": {
  4347. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4348. },
  4349. "name": "电子白板",
  4350. "forms": _formdiv,
  4351. "click": function () {
  4352. U.MD.D.I.openApplication(str, obj, info);
  4353. }
  4354. }
  4355. break;
  4356. case "mind":
  4357. aTool = 3;
  4358. _iframe = $$("iframe", {
  4359. "frameborder": "no",
  4360. "border": "0",
  4361. "scrolling ": "no",
  4362. "style": {
  4363. "cssText": "border:0;width:100%;height:100%"
  4364. },
  4365. "src": "/kityminder-editor/dist/index.html"
  4366. });
  4367. _box.appendChild(_iframe);
  4368. _box.appendChild(_jie);
  4369. _formdiv = new U.UF.UI.form(
  4370. "思维导图",
  4371. _box, { //"/jsmind/example/demo.html"
  4372. "id": "minds" + cid + stage + task + tool,
  4373. "style": {
  4374. "width": "90%",
  4375. "height": "90%",
  4376. "overflow": 'hidden'
  4377. },
  4378. "onresize": function () { }
  4379. }, {
  4380. closecallback: function () { }
  4381. }, {
  4382. "style": {
  4383. "height": "36px"
  4384. }
  4385. }).form; //创建窗体
  4386. _taskbar = {
  4387. "id": str + _formdiv.id,
  4388. "style": {
  4389. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4390. },
  4391. "name": "思维导图",
  4392. "forms": _formdiv,
  4393. "click": function () {
  4394. U.MD.D.I.openApplication(str, obj, info);
  4395. }
  4396. }
  4397. break;
  4398. case "doc":
  4399. aTool = 6;
  4400. _iframe = $$("iframe", {
  4401. "frameborder": "no",
  4402. "border": "0",
  4403. "scrolling ": "no",
  4404. "style": {
  4405. "cssText": "border:0;width:100%;height:100%"
  4406. },
  4407. "src": "/Office/Word/WordEditArea.htm"
  4408. })
  4409. _box.appendChild(_iframe);
  4410. _box.appendChild(_jie);
  4411. _formdiv = new U.UF.UI.form(
  4412. "协同文档",
  4413. _box, {
  4414. "id": "docs" + cid + stage + task + tool,
  4415. "style": {
  4416. "width": "90%",
  4417. "height": "90%",
  4418. "overflow": 'hidden'
  4419. },
  4420. "onresize": function () { }
  4421. }, {
  4422. closecallback: function () { }
  4423. }, {
  4424. "style": {
  4425. "height": "36px"
  4426. }
  4427. }).form; //创建窗体
  4428. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4429. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4430. })
  4431. _taskbar = {
  4432. "id": str + _formdiv.id,
  4433. "style": {
  4434. "backgroundImage": "url(/img/icon/doc.png)"
  4435. },
  4436. "name": "协同文档",
  4437. "forms": _formdiv,
  4438. "click": function () {
  4439. U.MD.D.I.openApplication(str, obj, info);
  4440. }
  4441. }
  4442. break;
  4443. }
  4444. const script1 = document.createElement("script");
  4445. script1.type = "text/javascript";
  4446. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4447. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4448. const script2 = document.createElement("script");
  4449. script2.type = "text/javascript";
  4450. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4451. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4452. const script3 = document.createElement("script");
  4453. script3.type = "text/javascript";
  4454. script3.charset = "UTF-8";
  4455. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4456. const script4 = document.createElement("script");
  4457. script4.type = "text/javascript";
  4458. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  4459. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  4460. if (_iframe) {
  4461. if (str == 'doc') {
  4462. _iframe = _formdiv.querySelector('iframe')
  4463. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4464. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4465. _iframe.contentWindow.document.body.appendChild(script1);
  4466. _iframe.contentWindow.document.body.appendChild(script2);
  4467. // _iframe.contentWindow.document.body.appendChild(script3);
  4468. _iframe.contentWindow.document.body.appendChild(script4);
  4469. })
  4470. if (onloadListener) {
  4471. _iframe.contentDocument.location.reload()
  4472. } else {
  4473. _iframe.contentDocument.location.reload()
  4474. }
  4475. } else if (str == 'mind') {
  4476. _iframe = _formdiv.querySelector('iframe')
  4477. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4478. _iframe.contentWindow.document.body.appendChild(script1);
  4479. _iframe.contentWindow.document.body.appendChild(script2);
  4480. _iframe.contentWindow.document.body.appendChild(script4);
  4481. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  4482. })
  4483. if (onloadListener) {
  4484. _iframe.contentDocument.location.reload()
  4485. } else {
  4486. _iframe.contentDocument.location.reload()
  4487. }
  4488. } else {
  4489. _iframe.onload = () => {
  4490. _iframe.contentWindow.document.body.appendChild(script1);
  4491. _iframe.contentWindow.document.body.appendChild(script2);
  4492. // _iframe.contentWindow.document.body.appendChild(script3);
  4493. _iframe.contentWindow.document.body.appendChild(script4);
  4494. };
  4495. }
  4496. _jie.onclick = async () => {
  4497. let text = ''
  4498. if (aTool == 6) {
  4499. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4500. } else if (aTool == 3) {
  4501. text = await U.MD.D.I.getEditorContent(_iframe);
  4502. }
  4503. _loading.style.display = 'flex'
  4504. console.log(_loading);
  4505. var _ajs = _iframe.contentWindow.document.createElement("script");
  4506. _ajs.type = "text/javascript";
  4507. _ajs.innerHTML =
  4508. // 'console.log(' + _loading + ');\n' +
  4509. 'var _js = document.createElement("script");\n' +
  4510. '_js.type="text/javascript";\n' +
  4511. '_js.charset="UTF-8";\n' +
  4512. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4513. "_js.onload = function(){\n" +
  4514. ' var a = document.getElementsByTagName("img")\n' +
  4515. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4516. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4517. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4518. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4519. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4520. "beforeUpload_shishi(file," +
  4521. "'" +
  4522. _userid +
  4523. "'" +
  4524. ", " +
  4525. "'" +
  4526. _cid +
  4527. "'" +
  4528. ", " +
  4529. "'" +
  4530. _stage +
  4531. "'" +
  4532. ", " +
  4533. "'" +
  4534. _task +
  4535. "'" +
  4536. ", " +
  4537. "'" +
  4538. _tool +
  4539. "'" +
  4540. ", " +
  4541. "'" +
  4542. str + '_loadLi' +
  4543. "'" +
  4544. ", " +
  4545. "'" +
  4546. aTool +
  4547. "'" +
  4548. ", " +
  4549. "`" +
  4550. text +
  4551. "`" +
  4552. ")\n" +
  4553. " });\n" +
  4554. "}\n" +
  4555. "document.head.appendChild(_js);\n";
  4556. _iframe.contentWindow.document.head.appendChild(_ajs);
  4557. }
  4558. }
  4559. //U.MD.D.I.openClick(str);
  4560. //如果有任务栏信息
  4561. // if (_taskbar) {
  4562. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4563. // }
  4564. }
  4565. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  4566. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4567. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4568. _userinfo = US.userInfo, //登录用户信息
  4569. _userid = US.userInfo.userid //登录用户id
  4570. let _iframe;
  4571. let _cid = cid,
  4572. _stage = stage,
  4573. _task = task,
  4574. _tool = tool;
  4575. var _jie = $$("div", {
  4576. "style": {
  4577. "position": "absolute",
  4578. "bottom": "50px",
  4579. "right": "50px",
  4580. "zIndex": "9999",
  4581. "backgroundColor": "#2268bc",
  4582. "color": "#fff",
  4583. "padding": "12px 20px",
  4584. "cursor": "pointer",
  4585. "borderRadius": "4px",
  4586. },
  4587. "innerHTML": "确认并提交"
  4588. })
  4589. let aTool = ''
  4590. let _loading = document.createElement('div')
  4591. _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;"
  4592. // _loading.id = "";
  4593. let _lchild = document.createElement('div')
  4594. let _limg = document.createElement('img')
  4595. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4596. _limg.style = "width: 26px;margin-right: 10px;"
  4597. _lchild.appendChild(_limg)
  4598. let _lspan = document.createElement('span')
  4599. _lspan.innerHTML = "上传中..."
  4600. _lchild.appendChild(_lspan)
  4601. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  4602. _loading.appendChild(_lchild)
  4603. var _box = $$('div', {
  4604. "style": {
  4605. "position": "relative",
  4606. "width": "100%",
  4607. "height": "100%",
  4608. },
  4609. })
  4610. _box.appendChild(_loading)
  4611. _box.id = str + '_loadLi'
  4612. switch (str) {
  4613. case "whiteboard":
  4614. aTool = 1;
  4615. _iframe = $$("iframe", {
  4616. "frameborder": "no",
  4617. "border": "0",
  4618. "scrolling ": "no",
  4619. "style": {
  4620. "cssText": "border:0;width:100%;height:100%"
  4621. },
  4622. "src": "https://iwb.cocorobo.cn/"
  4623. })
  4624. _box.appendChild(_iframe);
  4625. _box.appendChild(_jie);
  4626. _formdiv = new U.UF.UI.form(
  4627. "电子白板",
  4628. _box, {
  4629. "id": "whiteboards" + cid + stage + task + tool,
  4630. "style": {
  4631. "width": "90%",
  4632. "height": "90%",
  4633. "overflow": 'hidden'
  4634. },
  4635. "onresize": function () { }
  4636. }, {
  4637. closecallback: function () { }
  4638. }, {
  4639. "style": {
  4640. "height": "36px"
  4641. }
  4642. }).form; //创建窗体
  4643. _taskbar = {
  4644. "id": str + _formdiv.id,
  4645. "style": {
  4646. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4647. },
  4648. "name": "电子白板",
  4649. "forms": _formdiv,
  4650. "click": function () {
  4651. U.MD.D.I.openApplication(str, obj, info);
  4652. }
  4653. }
  4654. break;
  4655. case "mind":
  4656. aTool = 3;
  4657. _iframe = $$("iframe", {
  4658. "frameborder": "no",
  4659. "border": "0",
  4660. "scrolling ": "no",
  4661. "style": {
  4662. "cssText": "border:0;width:100%;height:100%"
  4663. },
  4664. "src": "/kityminder-editor/dist/index.html"
  4665. });
  4666. _box.appendChild(_iframe);
  4667. _box.appendChild(_jie);
  4668. _formdiv = new U.UF.UI.form(
  4669. "思维导图",
  4670. _box, { //"/jsmind/example/demo.html"
  4671. "id": "minds" + cid + stage + task + tool,
  4672. "style": {
  4673. "width": "90%",
  4674. "height": "90%",
  4675. "overflow": 'hidden'
  4676. },
  4677. "onresize": function () { }
  4678. }, {
  4679. closecallback: function () { }
  4680. }, {
  4681. "style": {
  4682. "height": "36px"
  4683. }
  4684. }).form; //创建窗体
  4685. _taskbar = {
  4686. "id": str + _formdiv.id,
  4687. "style": {
  4688. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4689. },
  4690. "name": "思维导图",
  4691. "forms": _formdiv,
  4692. "click": function () {
  4693. U.MD.D.I.openApplication(str, obj, info);
  4694. }
  4695. }
  4696. break;
  4697. case "doc":
  4698. aTool = 6;
  4699. _iframe = $$("iframe", {
  4700. "frameborder": "no",
  4701. "border": "0",
  4702. "scrolling ": "no",
  4703. "style": {
  4704. "cssText": "border:0;width:100%;height:100%"
  4705. },
  4706. "src": "/Office/Word/WordEditArea.htm"
  4707. })
  4708. _box.appendChild(_iframe);
  4709. _box.appendChild(_jie);
  4710. _formdiv = new U.UF.UI.form(
  4711. "协同文档",
  4712. _box, {
  4713. "id": "docs" + cid + stage + task + tool,
  4714. "style": {
  4715. "width": "90%",
  4716. "height": "90%",
  4717. "overflow": 'hidden'
  4718. },
  4719. "onresize": function () { }
  4720. }, {
  4721. closecallback: function () { }
  4722. }, {
  4723. "style": {
  4724. "height": "36px"
  4725. }
  4726. }).form; //创建窗体
  4727. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4728. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4729. })
  4730. _taskbar = {
  4731. "id": str + _formdiv.id,
  4732. "style": {
  4733. "backgroundImage": "url(/img/icon/doc.png)"
  4734. },
  4735. "name": "协同文档",
  4736. "forms": _formdiv,
  4737. "click": function () {
  4738. U.MD.D.I.openApplication(str, obj, info);
  4739. }
  4740. }
  4741. break;
  4742. }
  4743. const script1 = document.createElement("script");
  4744. script1.type = "text/javascript";
  4745. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4746. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4747. const script2 = document.createElement("script");
  4748. script2.type = "text/javascript";
  4749. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4750. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4751. const script3 = document.createElement("script");
  4752. script3.type = "text/javascript";
  4753. script3.charset = "UTF-8";
  4754. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4755. const script4 = document.createElement("script");
  4756. script4.type = "text/javascript";
  4757. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  4758. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  4759. if (_iframe) {
  4760. if (str == 'doc') {
  4761. _iframe = _formdiv.querySelector('iframe')
  4762. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4763. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4764. _iframe.contentWindow.document.body.appendChild(script1);
  4765. _iframe.contentWindow.document.body.appendChild(script2);
  4766. // _iframe.contentWindow.document.body.appendChild(script3);
  4767. _iframe.contentWindow.document.body.appendChild(script4);
  4768. })
  4769. if (onloadListener) {
  4770. _iframe.contentDocument.location.reload()
  4771. } else {
  4772. _iframe.contentDocument.location.reload()
  4773. }
  4774. } else if (str == 'mind') {
  4775. _iframe = _formdiv.querySelector('iframe')
  4776. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4777. _iframe.contentWindow.document.body.appendChild(script1);
  4778. _iframe.contentWindow.document.body.appendChild(script2);
  4779. _iframe.contentWindow.document.body.appendChild(script4);
  4780. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  4781. })
  4782. if (onloadListener) {
  4783. _iframe.contentDocument.location.reload()
  4784. } else {
  4785. _iframe.contentDocument.location.reload()
  4786. }
  4787. } else {
  4788. _iframe.onload = () => {
  4789. _iframe.contentWindow.document.body.appendChild(script1);
  4790. _iframe.contentWindow.document.body.appendChild(script2);
  4791. // _iframe.contentWindow.document.body.appendChild(script3);
  4792. _iframe.contentWindow.document.body.appendChild(script4);
  4793. };
  4794. }
  4795. _jie.onclick = async () => {
  4796. let text = ''
  4797. if (aTool == 6) {
  4798. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4799. } else if (aTool == 3) {
  4800. text = await U.MD.D.I.getEditorContent(_iframe);
  4801. }
  4802. _loading.style.display = 'flex'
  4803. console.log(_loading);
  4804. var _ajs = _iframe.contentWindow.document.createElement("script");
  4805. _ajs.type = "text/javascript";
  4806. _ajs.innerHTML =
  4807. // 'console.log(' + _loading + ');\n' +
  4808. 'var _js = document.createElement("script");\n' +
  4809. '_js.type="text/javascript";\n' +
  4810. '_js.charset="UTF-8";\n' +
  4811. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4812. "_js.onload = function(){\n" +
  4813. ' var a = document.getElementsByTagName("img")\n' +
  4814. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4815. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4816. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4817. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4818. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4819. "beforeUpload_shishi(file," +
  4820. "'" +
  4821. _userid +
  4822. "'" +
  4823. ", " +
  4824. "'" +
  4825. _cid +
  4826. "'" +
  4827. ", " +
  4828. "'" +
  4829. _stage +
  4830. "'" +
  4831. ", " +
  4832. "'" +
  4833. _task +
  4834. "'" +
  4835. ", " +
  4836. "'" +
  4837. _tool +
  4838. "'" +
  4839. ", " +
  4840. "'" +
  4841. str + '_loadLi' +
  4842. "'" +
  4843. ", " +
  4844. "'" +
  4845. aTool +
  4846. "'" +
  4847. ", " +
  4848. "`" +
  4849. text +
  4850. "`" +
  4851. ")\n" +
  4852. " });\n" +
  4853. "}\n" +
  4854. "document.head.appendChild(_js);\n";
  4855. _iframe.contentWindow.document.head.appendChild(_ajs);
  4856. }
  4857. }
  4858. //U.MD.D.I.openClick(str);
  4859. //如果有任务栏信息
  4860. // if (_taskbar) {
  4861. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4862. // }
  4863. }
  4864. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  4865. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4866. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4867. _userinfo = US.userInfo, //登录用户信息
  4868. _userid = US.userInfo.userid //登录用户id
  4869. let _iframe;
  4870. let _cid = cid,
  4871. _stage = stage,
  4872. _task = task,
  4873. _tool = tool;
  4874. var _jie = $$("div", {
  4875. "style": {
  4876. "position": "absolute",
  4877. "bottom": "50px",
  4878. "right": "50px",
  4879. "zIndex": "9999",
  4880. "backgroundColor": "#2268bc",
  4881. "color": "#fff",
  4882. "padding": "12px 20px",
  4883. "cursor": "pointer",
  4884. "borderRadius": "4px",
  4885. },
  4886. "innerHTML": "上传模板"
  4887. })
  4888. let aTool = ''
  4889. let _loading = document.createElement('div')
  4890. _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;"
  4891. // _loading.id = "";
  4892. let _lchild = document.createElement('div')
  4893. let _limg = document.createElement('img')
  4894. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4895. _limg.style = "width: 26px;margin-right: 10px;"
  4896. _lchild.appendChild(_limg)
  4897. let _lspan = document.createElement('span')
  4898. _lspan.innerHTML = "上传中..."
  4899. _lchild.appendChild(_lspan)
  4900. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  4901. _loading.appendChild(_lchild)
  4902. var _box = $$('div', {
  4903. "style": {
  4904. "position": "relative",
  4905. "width": "100%",
  4906. "height": "100%",
  4907. },
  4908. })
  4909. _box.appendChild(_loading)
  4910. _box.id = str + '_loadLi'
  4911. switch (str) {
  4912. case "whiteboard":
  4913. aTool = 1;
  4914. _iframe = $$("iframe", {
  4915. "frameborder": "no",
  4916. "border": "0",
  4917. "scrolling ": "no",
  4918. "style": {
  4919. "cssText": "border:0;width:100%;height:100%"
  4920. },
  4921. "src": "https://iwb.cocorobo.cn/"
  4922. })
  4923. _box.appendChild(_iframe);
  4924. _box.appendChild(_jie);
  4925. _formdiv = new U.UF.UI.form(
  4926. "电子白板",
  4927. _box, {
  4928. "id": "whiteboards" + cid + stage + task + tool,
  4929. "style": {
  4930. "width": "90%",
  4931. "height": "90%",
  4932. "overflow": 'hidden'
  4933. },
  4934. "onresize": function () { }
  4935. }, {
  4936. closecallback: function () { }
  4937. }, {
  4938. "style": {
  4939. "height": "36px"
  4940. }
  4941. }).form; //创建窗体
  4942. _taskbar = {
  4943. "id": str + _formdiv.id,
  4944. "style": {
  4945. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4946. },
  4947. "name": "电子白板",
  4948. "forms": _formdiv,
  4949. "click": function () {
  4950. U.MD.D.I.openApplication(str, obj, info);
  4951. }
  4952. }
  4953. break;
  4954. case "mind":
  4955. aTool = 3;
  4956. _iframe = $$("iframe", {
  4957. "frameborder": "no",
  4958. "border": "0",
  4959. "scrolling ": "no",
  4960. "style": {
  4961. "cssText": "border:0;width:100%;height:100%"
  4962. },
  4963. "src": "/kityminder-editor/dist/index.html"
  4964. });
  4965. _box.appendChild(_iframe);
  4966. _box.appendChild(_jie);
  4967. _formdiv = new U.UF.UI.form(
  4968. "思维导图",
  4969. _box, { //"/jsmind/example/demo.html"
  4970. "id": "minds" + cid + stage + task + tool,
  4971. "style": {
  4972. "width": "90%",
  4973. "height": "90%",
  4974. "overflow": 'hidden'
  4975. },
  4976. "onresize": function () { }
  4977. }, {
  4978. closecallback: function () { }
  4979. }, {
  4980. "style": {
  4981. "height": "36px"
  4982. }
  4983. }).form; //创建窗体
  4984. _taskbar = {
  4985. "id": str + _formdiv.id,
  4986. "style": {
  4987. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4988. },
  4989. "name": "思维导图",
  4990. "forms": _formdiv,
  4991. "click": function () {
  4992. U.MD.D.I.openApplication(str, obj, info);
  4993. }
  4994. }
  4995. break;
  4996. case "doc":
  4997. aTool = 6;
  4998. _iframe = $$("iframe", {
  4999. "frameborder": "no",
  5000. "border": "0",
  5001. "scrolling ": "no",
  5002. "style": {
  5003. "cssText": "border:0;width:100%;height:100%"
  5004. },
  5005. "src": "/Office/Word/WordEditArea.htm"
  5006. })
  5007. _box.appendChild(_iframe);
  5008. _box.appendChild(_jie);
  5009. _formdiv = new U.UF.UI.form(
  5010. "协同文档",
  5011. _box, {
  5012. "id": "docs" + cid + stage + task + tool,
  5013. "style": {
  5014. "width": "90%",
  5015. "height": "90%",
  5016. "overflow": 'hidden'
  5017. },
  5018. "onresize": function () { }
  5019. }, {
  5020. closecallback: function () { }
  5021. }, {
  5022. "style": {
  5023. "height": "36px"
  5024. }
  5025. }).form; //创建窗体
  5026. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5027. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5028. })
  5029. _taskbar = {
  5030. "id": str + _formdiv.id,
  5031. "style": {
  5032. "backgroundImage": "url(/img/icon/doc.png)"
  5033. },
  5034. "name": "协同文档",
  5035. "forms": _formdiv,
  5036. "click": function () {
  5037. U.MD.D.I.openApplication(str, obj, info);
  5038. }
  5039. }
  5040. break;
  5041. }
  5042. if (_iframe) {
  5043. if (str == 'doc') {
  5044. _iframe = _formdiv.querySelector('iframe')
  5045. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5046. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5047. })
  5048. if (onloadListener) {
  5049. _iframe.contentDocument.location.reload()
  5050. } else {
  5051. _iframe.contentDocument.location.reload()
  5052. }
  5053. } else if (str == 'mind') {
  5054. _iframe = _formdiv.querySelector('iframe')
  5055. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5056. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  5057. })
  5058. if (onloadListener) {
  5059. _iframe.contentDocument.location.reload()
  5060. } else {
  5061. _iframe.contentDocument.location.reload()
  5062. }
  5063. } else if (str == 'whiteboard') {
  5064. _iframe = _formdiv.querySelector('iframe')
  5065. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5066. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  5067. })
  5068. if (onloadListener) {
  5069. _iframe.contentDocument.location.reload()
  5070. } else {
  5071. _iframe.contentDocument.location.reload()
  5072. }
  5073. } else {
  5074. _iframe.onload = () => {
  5075. };
  5076. }
  5077. _jie.onclick = async () => {
  5078. let text = ''
  5079. let type = '2'
  5080. if (aTool == 1) {
  5081. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5082. type = '3'
  5083. } else if (aTool == 6) {
  5084. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5085. type = '1'
  5086. } else if (aTool == 3) {
  5087. text = await U.MD.D.I.getEditorContent(_iframe);
  5088. type = '2'
  5089. }
  5090. _loading.style.display = 'flex'
  5091. U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading, _lspan)
  5092. }
  5093. }
  5094. //U.MD.D.I.openClick(str);
  5095. //如果有任务栏信息
  5096. // if (_taskbar) {
  5097. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5098. // }
  5099. }
  5100. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  5101. var xmlhttp;
  5102. var Mac, Sn, DeviceId
  5103. if (window.XMLHttpRequest) {
  5104. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5105. xmlhttp = new XMLHttpRequest();
  5106. }
  5107. else {
  5108. // IE6, IE5 浏览器执行代码
  5109. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5110. }
  5111. xmlhttp.onreadystatechange = function () {
  5112. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5113. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5114. // resolve(res.value[0][0].text);
  5115. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5116. $(fileInput).val('');
  5117. });
  5118. }
  5119. }
  5120. }
  5121. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5122. xmlhttp.send();
  5123. }
  5124. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  5125. var xmlhttp;
  5126. var Mac, Sn, DeviceId
  5127. if (window.XMLHttpRequest) {
  5128. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5129. xmlhttp = new XMLHttpRequest();
  5130. }
  5131. else {
  5132. // IE6, IE5 浏览器执行代码
  5133. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5134. }
  5135. xmlhttp.onreadystatechange = function () {
  5136. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5137. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5138. // resolve(res.value[0][0].text);
  5139. if (type == '2') {
  5140. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5141. $(fileInput).val('');
  5142. });
  5143. } else if (type == '3') {
  5144. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5145. }
  5146. } else {
  5147. iframe.contentWindow.h.app.updateScene({ elements: [] })
  5148. }
  5149. }
  5150. }
  5151. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5152. xmlhttp.send();
  5153. }
  5154. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  5155. var xmlhttp;
  5156. var Mac, Sn, DeviceId
  5157. if (window.XMLHttpRequest) {
  5158. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5159. xmlhttp = new XMLHttpRequest();
  5160. }
  5161. else {
  5162. // IE6, IE5 浏览器执行代码
  5163. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5164. }
  5165. xmlhttp.onreadystatechange = function () {
  5166. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5167. if (xmlhttp.response) {
  5168. // resolve(res.value[0][0].text);
  5169. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5170. // $(fileInput).val('');
  5171. // });
  5172. span.innerHTML = '上传成功'
  5173. setTimeout(() => {
  5174. loading.style.display = 'none'
  5175. }, 1000);
  5176. }
  5177. }
  5178. }
  5179. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  5180. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  5181. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  5182. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  5183. // 设置请求头,表示请求体的编码格式
  5184. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
  5185. // 设置请求体,使用url-encoded格式的数据
  5186. }