DeskTop.js 385 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952
  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": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  44. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  45. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  46. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  47. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  48. ];
  49. //极简模式
  50. U.MD.D.I.easyDeskIcon = [
  51. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  52. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  55. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  56. ];
  57. //教师桌面图标的全局变量
  58. U.MD.D.I.teacherDeskIcon2 = [
  59. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  60. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  61. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  62. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  63. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  64. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  65. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  66. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  67. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  68. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  69. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  70. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  71. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  72. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  73. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  74. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  75. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  76. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  77. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  78. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  79. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  80. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  81. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  82. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  83. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  84. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  85. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  86. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  87. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  88. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  89. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  90. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  91. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  92. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  93. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  94. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  95. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  96. ];
  97. U.MD.D.I.studentDeskIcon = [
  98. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  99. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  100. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  101. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  102. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  103. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  104. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  105. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  106. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  107. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  108. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  109. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  110. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  111. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  112. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  113. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  114. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  115. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  116. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  117. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  118. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  119. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  120. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  121. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  122. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  123. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  124. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  125. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  126. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  127. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  128. ];
  129. U.MD.D.I.studentDeskIcon2 = [
  130. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  131. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  132. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  133. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  134. ]
  135. U.MD.D.I.studentDeskIcon3 = [
  136. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  137. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  138. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  139. ]
  140. U.MD.D.I.schoolDeskIcon = [
  141. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  142. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  144. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  145. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  146. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  147. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  148. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  149. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  150. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  151. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  152. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  153. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  154. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  155. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  156. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  157. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  158. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  159. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  160. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  161. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  162. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  163. ];
  164. U.MD.D.I.orgDeskIcon = [
  165. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  166. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  167. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  168. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  169. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  170. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  171. ];
  172. U.MD.D.I.orgStemDeskIcon = [
  173. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  174. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  175. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  176. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  177. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  178. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  179. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  180. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  181. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  182. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  183. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  184. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  185. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  186. ];
  187. U.MD.D.I.szulsDeskIcon = [
  188. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  189. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  190. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  191. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  192. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  193. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  194. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  195. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  196. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  197. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  198. ];
  199. U.MD.D.I.hanDeskIcon = [
  200. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  201. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  202. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  203. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  204. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  205. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  206. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  207. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  208. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  209. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  210. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  211. ];
  212. U.MD.D.I.GMteacherDeskIcon = [
  213. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  214. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  215. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  216. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  217. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  218. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  219. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  220. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  221. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  222. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  223. ];
  224. U.MD.D.I.GMstudentDeskIcon = [
  225. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  226. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  227. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  228. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  229. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  230. ];
  231. //北师大
  232. U.MD.D.I.BSDNSteacherDeskIcon = [
  233. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  234. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  235. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  236. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  237. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  238. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  239. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  240. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  241. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  242. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  243. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  244. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  245. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  246. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  247. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  248. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  249. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  250. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  251. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  252. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  253. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  254. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  255. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  256. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  257. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  258. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  259. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  260. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  261. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  262. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  263. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  264. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  265. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  266. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  267. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  268. ];
  269. //松山湖
  270. U.MD.D.I.SONGteacherDeskIcon = [
  271. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  272. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  273. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  274. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  275. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  276. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  277. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  278. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  279. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  280. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  281. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  282. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  283. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  284. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  285. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  286. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  287. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  288. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  289. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  290. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  291. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  292. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  293. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  294. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  295. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  296. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  297. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  298. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  299. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  300. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  301. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  302. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  303. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  304. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  305. ];
  306. U.MD.D.I.tcStudentDeskIcon = [
  307. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  308. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  309. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  310. ];
  311. U.MD.D.I.tcTeacherDeskIcon = [
  312. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  313. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  314. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  315. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  316. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  317. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  318. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  319. ];
  320. U.MD.D.I.tcOrganizerDeskIcon = [
  321. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  322. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  323. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  324. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  325. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  326. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  327. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  328. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  329. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  330. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  331. ];
  332. U.MD.D.I.szscStudentDeskIcon = [
  333. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  334. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.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.szscTeacherDeskIcon = [
  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": "studentCourse", "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": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  344. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.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.szscOrganizerDeskIcon = [
  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": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  352. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  353. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  354. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  355. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  356. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  357. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  358. ];
  359. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  360. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  361. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  362. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  363. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  364. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  365. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  366. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  367. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  368. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  369. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  370. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  371. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  372. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  373. ];
  374. U.MD.D.I.wankeAdminDeskIcon = [
  375. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  376. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  377. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  378. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  379. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  380. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  381. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  382. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  383. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  384. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  385. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  386. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  387. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  388. ];
  389. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  390. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  391. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  392. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  393. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  394. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  395. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  396. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  397. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  398. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  399. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  400. ];
  401. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  402. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  403. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  404. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  405. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  406. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  407. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  408. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  409. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  410. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  411. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  412. ];
  413. //明德教师桌面图标的全局变量
  414. U.MD.D.I.MingdeTeacherDeskIcon = [
  415. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  416. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  417. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  418. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  419. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  420. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  421. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  422. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  423. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  424. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  425. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  426. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  427. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  428. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  429. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  430. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  431. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  432. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  433. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  434. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  435. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  436. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  437. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  438. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  439. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  440. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  441. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  442. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  443. ];
  444. //97c4ee8b-d010-4042-986d-e9d3c217264f
  445. //教师桌面图标的全局变量
  446. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  447. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  448. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  449. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  450. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  451. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  452. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  453. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  454. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  455. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  456. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  457. ];
  458. //福田
  459. U.MD.D.I.futianTeacherDeskIcon = [
  460. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  461. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  462. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  463. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  464. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  465. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  466. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  467. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  468. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  469. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  470. ];
  471. //福田
  472. U.MD.D.I.futianAdminDeskIcon = [
  473. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  474. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  475. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  476. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  477. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  478. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  479. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  480. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  481. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  482. ];
  483. //lotech
  484. U.MD.D.I.lotechTeacherDeskIcon = [
  485. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  486. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  487. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  488. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  489. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  490. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  491. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  492. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  493. ];
  494. //龙华中心小学教师桌面图标的全局变量
  495. U.MD.D.I.longhuateacherDeskIcon = [
  496. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  497. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  498. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  499. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  500. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  501. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  502. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  503. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  504. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  505. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  506. ];
  507. //教科院实小教师桌面图标的全局变量
  508. U.MD.D.I.siesteacherDeskIcon = [
  509. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  510. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  511. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  512. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  513. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  514. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  515. // { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  516. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  517. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  518. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  519. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  520. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  521. ];
  522. //福田
  523. U.MD.D.I.gdjgTeacherDeskIcon = [
  524. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  525. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  526. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  527. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  528. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  529. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  530. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  531. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  532. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  533. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  534. ];
  535. //gdjg
  536. U.MD.D.I.gdjgAdminDeskIcon = [
  537. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  538. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  539. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  540. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  541. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  542. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  543. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  544. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  545. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  546. ];
  547. //hk
  548. U.MD.D.I.hkteacherDeskIcon = [
  549. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  550. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  551. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  552. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  553. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  554. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  555. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  556. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  557. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  558. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  559. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  560. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  561. ];
  562. //云海
  563. U.MD.D.I.yunhaiTeacherDeskIcon = [
  564. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  565. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  566. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  567. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  568. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  569. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  570. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  571. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  572. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  573. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  574. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  575. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  576. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  577. ];
  578. //福田
  579. U.MD.D.I.heyuanTeacherDeskIcon = [
  580. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  581. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  582. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  583. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  584. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  585. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  586. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  587. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  588. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  589. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  590. ];
  591. //福田
  592. U.MD.D.I.heyuanAdminDeskIcon = [
  593. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  594. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  595. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  596. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  597. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  598. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  599. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  600. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  601. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  602. ];
  603. //#region 桌面初始化a
  604. /**
  605. * 初始化桌面的起始函数
  606. *
  607. */
  608. U.MD.D.I.init = function () {
  609. if ($("#U_MD_D_K")[0]) {
  610. //初始化桌面图标
  611. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  612. // var clickUrl = ':12588/requestIp.php';
  613. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  614. // U.MD.D.I.Ip = data;
  615. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  616. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  617. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  618. // })
  619. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  620. // })
  621. }
  622. }
  623. /**
  624. * 模式切换
  625. *
  626. */
  627. U.MD.D.I.ModeCheck = function (type) {
  628. if (US.Config.type == type) {
  629. return
  630. }
  631. US.Config.type = type
  632. $('.U_PBL_Check .active')[0].className = ''
  633. if (type == 1) {
  634. $('.U_PBL_Check div')[0].className = 'active'
  635. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  636. } else {
  637. $('.U_PBL_Check div')[1].className = 'active'
  638. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  639. }
  640. //初始化桌面图标
  641. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  642. if(type == 2){
  643. U.MD.D.I.openApplication("project")
  644. }
  645. }
  646. /**
  647. * 隐藏任务栏
  648. *
  649. * @param {element} 桌面元素
  650. */
  651. U.MD.D.I.hiddenTaskbar = function (el) {
  652. //任务栏位置变小
  653. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  654. //桌面的位置变大
  655. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  656. }
  657. /**
  658. * 隐藏任务栏
  659. *
  660. * @param {element} 桌面元素
  661. */
  662. U.MD.D.I.hiddenTaskbarout = function (el) {
  663. //任务栏位置变小
  664. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  665. //任务栏位置变化
  666. U.selectEl(el).css({ "bottom": "-60px" });
  667. //桌面的位置变大
  668. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  669. }
  670. }
  671. /**
  672. * 初始化打印桌面图标
  673. *
  674. * @param {element} 桌面元素
  675. */
  676. U.MD.D.I.initDesktopIcons = function (el, type) {
  677. var i, //用于循环
  678. _content, //桌面图标元素
  679. _iconcontent, //桌面图标元素
  680. _frag = $$("frag"), //定义一个碎片元素
  681. _type = US.userInfo.type,
  682. _org = US.userInfo.org,
  683. _oid = US.userInfo.organizeid,
  684. _role = US.userInfo.role,
  685. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  686. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  687. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  688. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  689. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  690. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  691. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  692. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  693. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  694. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  695. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  696. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  697. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  698. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  699. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  700. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  701. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  702. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  703. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  704. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  705. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  706. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  707. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  708. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  709. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  710. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon,//福田
  711. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon,//福田
  712. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//
  713. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//
  714. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  715. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
  716. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龙华中心
  717. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  718. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon,//hk
  719. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon,//云海
  720. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  721. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  722. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  723. 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','ea2a8c65-f38c-11ed-91d8-005056b86db5','4c686762-1d0a-11ed-8c78-005056b86db5','b1095a3c-1d06-4ac8-854f-7c0d97f4ab41'];
  724. 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','e632b86c-f89d-11ed-91d8-005056b86db5','b50cf65a-001c-11ee-91d8-005056b86db5','578de748-05d2-11ee-91d8-005056b86db5'];
  725. //清楚桌面图标
  726. el.innerHTML = "";
  727. 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") {
  728. _teacherDesktopIconInfo.push(
  729. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  730. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  731. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  732. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  733. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  734. )
  735. _easyDesktopIconInfo.push(
  736. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  737. )
  738. }
  739. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  740. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  741. if(el.Name == '项目管理'){
  742. el.Name = 'PBL项目'
  743. }
  744. return el
  745. })
  746. }
  747. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  748. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  749. return el.Name != '魔盒识字' && el.Name != '24点'
  750. })
  751. }
  752. 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) {
  753. _studentDesktopIconInfo.push(
  754. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  755. )
  756. }
  757. //循环创建桌面图标
  758. if (type == 1) {
  759. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  760. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  761. _content = $$("div", {
  762. className: "U_MD_D_KO",
  763. "onmousedown": U.UF.C.closure(function (obj) {
  764. //防止拖动图标即打开了桌面应用
  765. U.MD.D.click(this, obj);
  766. }, [_studentDesktopIconInfo[i]]),
  767. "onclick": U.UF.C.closure(function (obj) {
  768. //防止拖动图标即打开了桌面应用
  769. U.MD.D.click(this, obj);
  770. }, [_studentDesktopIconInfo[i]])
  771. }, _frag); //
  772. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  773. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  774. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  775. }
  776. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  777. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  778. _content = $$("div", {
  779. className: "U_MD_D_KO",
  780. "onmousedown": U.UF.C.closure(function (obj) {
  781. //防止拖动图标即打开了桌面应用
  782. U.MD.D.click(this, obj);
  783. }, [_studentDesktopIconInfo[i]]),
  784. "onclick": U.UF.C.closure(function (obj) {
  785. //防止拖动图标即打开了桌面应用
  786. U.MD.D.click(this, obj);
  787. }, [_studentDesktopIconInfo[i]])
  788. }, _frag); //
  789. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  790. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  791. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  792. }
  793. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  794. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  795. _content = $$("div", {
  796. className: "U_MD_D_KO",
  797. "onmousedown": U.UF.C.closure(function (obj) {
  798. //防止拖动图标即打开了桌面应用
  799. U.MD.D.click(this, obj);
  800. }, [_tcStudentDeskIconInfo[i]]),
  801. "onclick": U.UF.C.closure(function (obj) {
  802. //防止拖动图标即打开了桌面应用
  803. U.MD.D.click(this, obj);
  804. }, [_tcStudentDeskIconInfo[i]])
  805. }, _frag); //
  806. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  807. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  808. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  809. }
  810. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  811. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  812. _content = $$("div", {
  813. className: "U_MD_D_KO",
  814. "onmousedown": U.UF.C.closure(function (obj) {
  815. //防止拖动图标即打开了桌面应用
  816. U.MD.D.click(this, obj);
  817. }, [_szscStudentDeskIconInfo[i]]),
  818. "onclick": U.UF.C.closure(function (obj) {
  819. //防止拖动图标即打开了桌面应用
  820. U.MD.D.click(this, obj);
  821. }, [_szscStudentDeskIconInfo[i]])
  822. }, _frag); //
  823. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  824. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  825. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  826. }
  827. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  828. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  829. _content = $$("div", {
  830. className: "U_MD_D_KO",
  831. "onmousedown": U.UF.C.closure(function (obj) {
  832. //防止拖动图标即打开了桌面应用
  833. U.MD.D.click(this, obj);
  834. }, [_studentDesktopIconInfo3[i]]),
  835. "onclick": U.UF.C.closure(function (obj) {
  836. //防止拖动图标即打开了桌面应用
  837. U.MD.D.click(this, obj);
  838. }, [_studentDesktopIconInfo3[i]])
  839. }, _frag); //
  840. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  841. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  842. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  843. }
  844. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  845. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  846. _content = $$("div", {
  847. className: "U_MD_D_KO",
  848. "onmousedown": U.UF.C.closure(function (obj) {
  849. //防止拖动图标即打开了桌面应用
  850. U.MD.D.click(this, obj);
  851. }, [_studentDesktopIconInfo2[i]]),
  852. "onclick": U.UF.C.closure(function (obj) {
  853. //防止拖动图标即打开了桌面应用
  854. U.MD.D.click(this, obj);
  855. }, [_studentDesktopIconInfo2[i]])
  856. }, _frag); //
  857. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  858. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  859. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  860. }
  861. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  862. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  863. _content = $$("div", {
  864. className: "U_MD_D_KO",
  865. "onmousedown": U.UF.C.closure(function (obj) {
  866. //防止拖动图标即打开了桌面应用
  867. U.MD.D.click(this, obj);
  868. }, [_wanketeacherDesktopIconInfo[i]]),
  869. "onclick": U.UF.C.closure(function (obj) {
  870. //防止拖动图标即打开了桌面应用
  871. U.MD.D.click(this, obj);
  872. }, [_wanketeacherDesktopIconInfo[i]])
  873. }, _frag); //
  874. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  875. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  876. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  877. }
  878. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  879. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  880. _content = $$("div", {
  881. className: "U_MD_D_KO",
  882. "onmousedown": U.UF.C.closure(function (obj) {
  883. //防止拖动图标即打开了桌面应用
  884. U.MD.D.click(this, obj);
  885. }, [_wankeAdminDesktopIconInfo[i]]),
  886. "onclick": U.UF.C.closure(function (obj) {
  887. //防止拖动图标即打开了桌面应用
  888. U.MD.D.click(this, obj);
  889. }, [_wankeAdminDesktopIconInfo[i]])
  890. }, _frag); //
  891. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  892. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  893. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  894. }
  895. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  896. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  897. _content = $$("div", {
  898. className: "U_MD_D_KO",
  899. "onmousedown": U.UF.C.closure(function (obj) {
  900. //防止拖动图标即打开了桌面应用
  901. U.MD.D.click(this, obj);
  902. }, [_teacherDesktopIconInfo2[i]]),
  903. "onclick": U.UF.C.closure(function (obj) {
  904. //防止拖动图标即打开了桌面应用
  905. U.MD.D.click(this, obj);
  906. }, [_teacherDesktopIconInfo2[i]])
  907. }, _frag); //
  908. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  909. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  910. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  911. }
  912. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  913. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  914. _content = $$("div", {
  915. className: "U_MD_D_KO",
  916. "onmousedown": U.UF.C.closure(function (obj) {
  917. //防止拖动图标即打开了桌面应用
  918. U.MD.D.click(this, obj);
  919. }, [_lotechTeacherDeskIconInfo[i]]),
  920. "onclick": U.UF.C.closure(function (obj) {
  921. //防止拖动图标即打开了桌面应用
  922. U.MD.D.click(this, obj);
  923. }, [_lotechTeacherDeskIconInfo[i]])
  924. }, _frag); //
  925. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  926. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  927. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  928. }
  929. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  930. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  931. _content = $$("div", {
  932. className: "U_MD_D_KO",
  933. "onmousedown": U.UF.C.closure(function (obj) {
  934. //防止拖动图标即打开了桌面应用
  935. U.MD.D.click(this, obj);
  936. }, [_siesTeacherDeskIconInfo[i]]),
  937. "onclick": U.UF.C.closure(function (obj) {
  938. //防止拖动图标即打开了桌面应用
  939. U.MD.D.click(this, obj);
  940. }, [_siesTeacherDeskIconInfo[i]])
  941. }, _frag); //
  942. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  943. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  944. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  945. }
  946. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  947. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  948. _content = $$("div", {
  949. className: "U_MD_D_KO",
  950. "onmousedown": U.UF.C.closure(function (obj) {
  951. //防止拖动图标即打开了桌面应用
  952. U.MD.D.click(this, obj);
  953. }, [_longhuaTeacherDeskIconInfo[i]]),
  954. "onclick": U.UF.C.closure(function (obj) {
  955. //防止拖动图标即打开了桌面应用
  956. U.MD.D.click(this, obj);
  957. }, [_longhuaTeacherDeskIconInfo[i]])
  958. }, _frag); //
  959. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  960. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  961. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  962. }
  963. }else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  964. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  965. _content = $$("div", {
  966. className: "U_MD_D_KO",
  967. "onmousedown": U.UF.C.closure(function (obj) {
  968. //防止拖动图标即打开了桌面应用
  969. U.MD.D.click(this, obj);
  970. }, [_yunhaiTeacherDeskIconInfo[i]]),
  971. "onclick": U.UF.C.closure(function (obj) {
  972. //防止拖动图标即打开了桌面应用
  973. U.MD.D.click(this, obj);
  974. }, [_yunhaiTeacherDeskIconInfo[i]])
  975. }, _frag); //
  976. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  977. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  978. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  979. }
  980. }else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  981. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  982. _content = $$("div", {
  983. className: "U_MD_D_KO",
  984. "onmousedown": U.UF.C.closure(function (obj) {
  985. //防止拖动图标即打开了桌面应用
  986. U.MD.D.click(this, obj);
  987. }, [_hkTeacherDeskIconInfo[i]]),
  988. "onclick": U.UF.C.closure(function (obj) {
  989. //防止拖动图标即打开了桌面应用
  990. U.MD.D.click(this, obj);
  991. }, [_hkTeacherDeskIconInfo[i]])
  992. }, _frag); //
  993. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  994. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  995. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  996. }
  997. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  998. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  999. _content = $$("div", {
  1000. className: "U_MD_D_KO",
  1001. "onmousedown": U.UF.C.closure(function (obj) {
  1002. //防止拖动图标即打开了桌面应用
  1003. U.MD.D.click(this, obj);
  1004. }, [_gdjgAdminDeskIconInfo[i]]),
  1005. "onclick": U.UF.C.closure(function (obj) {
  1006. //防止拖动图标即打开了桌面应用
  1007. U.MD.D.click(this, obj);
  1008. }, [_gdjgAdminDeskIconInfo[i]])
  1009. }, _frag); //
  1010. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1011. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1012. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1013. }
  1014. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1015. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1016. _content = $$("div", {
  1017. className: "U_MD_D_KO",
  1018. "onmousedown": U.UF.C.closure(function (obj) {
  1019. //防止拖动图标即打开了桌面应用
  1020. U.MD.D.click(this, obj);
  1021. }, [_gdjgTeacherDeskIconInfo[i]]),
  1022. "onclick": U.UF.C.closure(function (obj) {
  1023. //防止拖动图标即打开了桌面应用
  1024. U.MD.D.click(this, obj);
  1025. }, [_gdjgTeacherDeskIconInfo[i]])
  1026. }, _frag); //
  1027. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1028. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1029. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1030. }
  1031. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1032. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1033. _content = $$("div", {
  1034. className: "U_MD_D_KO",
  1035. "onmousedown": U.UF.C.closure(function (obj) {
  1036. //防止拖动图标即打开了桌面应用
  1037. U.MD.D.click(this, obj);
  1038. }, [_heyuannAdminDeskIconInfo[i]]),
  1039. "onclick": U.UF.C.closure(function (obj) {
  1040. //防止拖动图标即打开了桌面应用
  1041. U.MD.D.click(this, obj);
  1042. }, [_heyuannAdminDeskIconInfo[i]])
  1043. }, _frag); //
  1044. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1045. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1046. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1047. }
  1048. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1049. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1050. _content = $$("div", {
  1051. className: "U_MD_D_KO",
  1052. "onmousedown": U.UF.C.closure(function (obj) {
  1053. //防止拖动图标即打开了桌面应用
  1054. U.MD.D.click(this, obj);
  1055. }, [_heyuanTeacherDeskIconInfo[i]]),
  1056. "onclick": U.UF.C.closure(function (obj) {
  1057. //防止拖动图标即打开了桌面应用
  1058. U.MD.D.click(this, obj);
  1059. }, [_heyuanTeacherDeskIconInfo[i]])
  1060. }, _frag); //
  1061. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1062. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1063. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1064. }
  1065. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1066. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1067. _content = $$("div", {
  1068. className: "U_MD_D_KO",
  1069. "onmousedown": U.UF.C.closure(function (obj) {
  1070. //防止拖动图标即打开了桌面应用
  1071. U.MD.D.click(this, obj);
  1072. }, [_futianAdminDeskIconInfo[i]]),
  1073. "onclick": U.UF.C.closure(function (obj) {
  1074. //防止拖动图标即打开了桌面应用
  1075. U.MD.D.click(this, obj);
  1076. }, [_futianAdminDeskIconInfo[i]])
  1077. }, _frag); //
  1078. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1079. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1080. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1081. }
  1082. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1083. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1084. _content = $$("div", {
  1085. className: "U_MD_D_KO",
  1086. "onmousedown": U.UF.C.closure(function (obj) {
  1087. //防止拖动图标即打开了桌面应用
  1088. U.MD.D.click(this, obj);
  1089. }, [_futianTeacherDeskIconInfo[i]]),
  1090. "onclick": U.UF.C.closure(function (obj) {
  1091. //防止拖动图标即打开了桌面应用
  1092. U.MD.D.click(this, obj);
  1093. }, [_futianTeacherDeskIconInfo[i]])
  1094. }, _frag); //
  1095. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1096. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1097. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1098. }
  1099. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1100. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1101. _content = $$("div", {
  1102. className: "U_MD_D_KO",
  1103. "onmousedown": U.UF.C.closure(function (obj) {
  1104. //防止拖动图标即打开了桌面应用
  1105. U.MD.D.click(this, obj);
  1106. }, [_MingdeTeacherDeskIcon[i]]),
  1107. "onclick": U.UF.C.closure(function (obj) {
  1108. //防止拖动图标即打开了桌面应用
  1109. U.MD.D.click(this, obj);
  1110. }, [_MingdeTeacherDeskIcon[i]])
  1111. }, _frag); //
  1112. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1113. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1114. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1115. }
  1116. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1117. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1118. _content = $$("div", {
  1119. className: "U_MD_D_KO",
  1120. "onmousedown": U.UF.C.closure(function (obj) {
  1121. //防止拖动图标即打开了桌面应用
  1122. U.MD.D.click(this, obj);
  1123. }, [_lhsAdminDesktopIconInfo[i]]),
  1124. "onclick": U.UF.C.closure(function (obj) {
  1125. //防止拖动图标即打开了桌面应用
  1126. U.MD.D.click(this, obj);
  1127. }, [_lhsAdminDesktopIconInfo[i]])
  1128. }, _frag); //
  1129. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1130. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1131. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1132. }
  1133. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1134. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1135. _content = $$("div", {
  1136. className: "U_MD_D_KO",
  1137. "onmousedown": U.UF.C.closure(function (obj) {
  1138. //防止拖动图标即打开了桌面应用
  1139. U.MD.D.click(this, obj);
  1140. }, [_lhsteacherDesktopIconInfo[i]]),
  1141. "onclick": U.UF.C.closure(function (obj) {
  1142. //防止拖动图标即打开了桌面应用
  1143. U.MD.D.click(this, obj);
  1144. }, [_lhsteacherDesktopIconInfo[i]])
  1145. }, _frag); //
  1146. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1147. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1148. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1149. }
  1150. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1151. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1152. _content = $$("div", {
  1153. className: "U_MD_D_KO",
  1154. "onmousedown": U.UF.C.closure(function (obj) {
  1155. //防止拖动图标即打开了桌面应用
  1156. U.MD.D.click(this, obj);
  1157. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1158. "onclick": U.UF.C.closure(function (obj) {
  1159. //防止拖动图标即打开了桌面应用
  1160. U.MD.D.click(this, obj);
  1161. }, [_zhoujiateacherDesktopIconInfo[i]])
  1162. }, _frag); //
  1163. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1164. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1165. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1166. }
  1167. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1168. for (i = 0; i < _hanDeskIcon.length; i++) {
  1169. _content = $$("div", {
  1170. className: "U_MD_D_KO",
  1171. "onmousedown": U.UF.C.closure(function (obj) {
  1172. //防止拖动图标即打开了桌面应用
  1173. U.MD.D.click(this, obj);
  1174. }, [_hanDeskIcon[i]]),
  1175. "onclick": U.UF.C.closure(function (obj) {
  1176. //防止拖动图标即打开了桌面应用
  1177. U.MD.D.click(this, obj);
  1178. }, [_hanDeskIcon[i]])
  1179. }, _frag); //
  1180. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1181. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1182. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1183. }
  1184. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1185. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1186. _content = $$("div", {
  1187. className: "U_MD_D_KO",
  1188. "onmousedown": U.UF.C.closure(function (obj) {
  1189. //防止拖动图标即打开了桌面应用
  1190. U.MD.D.click(this, obj);
  1191. }, [_orgStemDeskIcon[i]]),
  1192. "onclick": U.UF.C.closure(function (obj) {
  1193. //防止拖动图标即打开了桌面应用
  1194. U.MD.D.click(this, obj);
  1195. }, [_orgStemDeskIcon[i]])
  1196. }, _frag); //
  1197. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1198. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1199. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1200. }
  1201. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1202. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1203. _content = $$("div", {
  1204. className: "U_MD_D_KO",
  1205. "onmousedown": U.UF.C.closure(function (obj) {
  1206. //防止拖动图标即打开了桌面应用
  1207. U.MD.D.click(this, obj);
  1208. }, [_szulsDeskIcon[i]]),
  1209. "onclick": U.UF.C.closure(function (obj) {
  1210. //防止拖动图标即打开了桌面应用
  1211. U.MD.D.click(this, obj);
  1212. }, [_szulsDeskIcon[i]])
  1213. }, _frag); //
  1214. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1215. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1216. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1217. }
  1218. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1219. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1220. _content = $$("div", {
  1221. className: "U_MD_D_KO",
  1222. "onmousedown": U.UF.C.closure(function (obj) {
  1223. //防止拖动图标即打开了桌面应用
  1224. U.MD.D.click(this, obj);
  1225. }, [_orgDesktopIconInfo[i]]),
  1226. "onclick": U.UF.C.closure(function (obj) {
  1227. //防止拖动图标即打开了桌面应用
  1228. U.MD.D.click(this, obj);
  1229. }, [_orgDesktopIconInfo[i]])
  1230. }, _frag); //
  1231. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1232. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1233. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1234. }
  1235. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1236. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1237. _content = $$("div", {
  1238. className: "U_MD_D_KO",
  1239. "onmousedown": U.UF.C.closure(function (obj) {
  1240. //防止拖动图标即打开了桌面应用
  1241. U.MD.D.click(this, obj);
  1242. }, [_schoolDesktopIconInfo[i]]),
  1243. "onclick": U.UF.C.closure(function (obj) {
  1244. //防止拖动图标即打开了桌面应用
  1245. U.MD.D.click(this, obj);
  1246. }, [_schoolDesktopIconInfo[i]])
  1247. }, _frag); //
  1248. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1249. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1250. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1251. }
  1252. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1253. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1254. _content = $$("div", {
  1255. className: "U_MD_D_KO",
  1256. "onmousedown": U.UF.C.closure(function (obj) {
  1257. //防止拖动图标即打开了桌面应用
  1258. U.MD.D.click(this, obj);
  1259. }, [_GMteacherDesktopIconInfo[i]]),
  1260. "onclick": U.UF.C.closure(function (obj) {
  1261. //防止拖动图标即打开了桌面应用
  1262. U.MD.D.click(this, obj);
  1263. }, [_GMteacherDesktopIconInfo[i]])
  1264. }, _frag); //
  1265. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1266. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1267. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1268. }
  1269. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1270. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1271. _content = $$("div", {
  1272. className: "U_MD_D_KO",
  1273. "onmousedown": U.UF.C.closure(function (obj) {
  1274. //防止拖动图标即打开了桌面应用
  1275. U.MD.D.click(this, obj);
  1276. }, [_SONGteacherDesktopIconInfo[i]]),
  1277. "onclick": U.UF.C.closure(function (obj) {
  1278. //防止拖动图标即打开了桌面应用
  1279. U.MD.D.click(this, obj);
  1280. }, [_SONGteacherDesktopIconInfo[i]])
  1281. }, _frag); //
  1282. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1283. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1284. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1285. }
  1286. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1287. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1288. _content = $$("div", {
  1289. className: "U_MD_D_KO",
  1290. "onmousedown": U.UF.C.closure(function (obj) {
  1291. //防止拖动图标即打开了桌面应用
  1292. U.MD.D.click(this, obj);
  1293. }, [_GMstudentDesktopIconInfo[i]]),
  1294. "onclick": U.UF.C.closure(function (obj) {
  1295. //防止拖动图标即打开了桌面应用
  1296. U.MD.D.click(this, obj);
  1297. }, [_GMstudentDesktopIconInfo[i]])
  1298. }, _frag); //
  1299. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1300. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1301. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1302. }
  1303. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1304. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1305. _content = $$("div", {
  1306. className: "U_MD_D_KO",
  1307. "onmousedown": U.UF.C.closure(function (obj) {
  1308. //防止拖动图标即打开了桌面应用
  1309. U.MD.D.click(this, obj);
  1310. }, [_tcTeacherDeskIconInfo[i]]),
  1311. "onclick": U.UF.C.closure(function (obj) {
  1312. //防止拖动图标即打开了桌面应用
  1313. U.MD.D.click(this, obj);
  1314. }, [_tcTeacherDeskIconInfo[i]])
  1315. }, _frag); //
  1316. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1317. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1318. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1319. }
  1320. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1321. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1322. _content = $$("div", {
  1323. className: "U_MD_D_KO",
  1324. "onmousedown": U.UF.C.closure(function (obj) {
  1325. //防止拖动图标即打开了桌面应用
  1326. U.MD.D.click(this, obj);
  1327. }, [_tcOrganizerDeskIconInfo[i]]),
  1328. "onclick": U.UF.C.closure(function (obj) {
  1329. //防止拖动图标即打开了桌面应用
  1330. U.MD.D.click(this, obj);
  1331. }, [_tcOrganizerDeskIconInfo[i]])
  1332. }, _frag); //
  1333. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1334. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1335. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1336. }
  1337. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1338. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1339. _content = $$("div", {
  1340. className: "U_MD_D_KO",
  1341. "onmousedown": U.UF.C.closure(function (obj) {
  1342. //防止拖动图标即打开了桌面应用
  1343. U.MD.D.click(this, obj);
  1344. }, [_szscTeacherDeskIconInfo[i]]),
  1345. "onclick": U.UF.C.closure(function (obj) {
  1346. //防止拖动图标即打开了桌面应用
  1347. U.MD.D.click(this, obj);
  1348. }, [_szscTeacherDeskIconInfo[i]])
  1349. }, _frag); //
  1350. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1351. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1352. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1353. }
  1354. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1355. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1356. _content = $$("div", {
  1357. className: "U_MD_D_KO",
  1358. "onmousedown": U.UF.C.closure(function (obj) {
  1359. //防止拖动图标即打开了桌面应用
  1360. U.MD.D.click(this, obj);
  1361. }, [_szscOrganizerDeskIconInfo[i]]),
  1362. "onclick": U.UF.C.closure(function (obj) {
  1363. //防止拖动图标即打开了桌面应用
  1364. U.MD.D.click(this, obj);
  1365. }, [_szscOrganizerDeskIconInfo[i]])
  1366. }, _frag); //
  1367. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1368. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1369. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1370. }
  1371. } else {
  1372. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1373. _content = $$("div", {
  1374. className: "U_MD_D_KO",
  1375. "onmousedown": U.UF.C.closure(function (obj) {
  1376. //防止拖动图标即打开了桌面应用
  1377. U.MD.D.click(this, obj);
  1378. }, [_teacherDesktopIconInfo[i]]),
  1379. "onclick": U.UF.C.closure(function (obj) {
  1380. //防止拖动图标即打开了桌面应用
  1381. U.MD.D.click(this, obj);
  1382. }, [_teacherDesktopIconInfo[i]])
  1383. }, _frag); //
  1384. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1385. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1386. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1387. }
  1388. }
  1389. } else {
  1390. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1391. _content = $$("div", {
  1392. className: "U_MD_D_KO",
  1393. style: { 'width': '124px', 'height': '145px' },
  1394. "onmousedown": U.UF.C.closure(function (obj) {
  1395. //防止拖动图标即打开了桌面应用
  1396. U.MD.D.click(this, obj);
  1397. }, [_easyDesktopIconInfo[i]]),
  1398. "onclick": U.UF.C.closure(function (obj) {
  1399. //防止拖动图标即打开了桌面应用
  1400. U.MD.D.click(this, obj);
  1401. }, [_easyDesktopIconInfo[i]])
  1402. }, _frag); //
  1403. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1404. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1405. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1406. }
  1407. }
  1408. if (type == 1) {
  1409. //加载好后给图标定位
  1410. U.MD.D.iconPostion($(_frag).Child());
  1411. } else {
  1412. //加载好后给图标定位
  1413. U.MD.D.iconPostion2($(_frag).Child());
  1414. }
  1415. //把图标加载到页面
  1416. el.appendChild(_frag);
  1417. }
  1418. /**
  1419. * 显示任务栏
  1420. *
  1421. * @param {element} 桌面元素
  1422. */
  1423. U.MD.D.I.displayTaskbar = function (el) {
  1424. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1425. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1426. //任务栏位置变化
  1427. U.selectEl(el).css({ "bottom": "0px" });
  1428. //桌面位置变话
  1429. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1430. }
  1431. }
  1432. //#region 桌面图标拖动逻辑
  1433. /**
  1434. * 桌面排列图标
  1435. *
  1436. * @param {element} 桌面元素
  1437. * @param {object} 上下相距的距离
  1438. * @param {object} 左右相距的距离
  1439. * @return {object} 命名空间
  1440. */
  1441. U.MD.D.iconPostion = function (childs, top, left) {
  1442. var i; //用于循环处理
  1443. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1444. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1445. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1446. for (i = 0; i < childs.length; i++) {
  1447. //如果竖排top超过了范围处理
  1448. if (top + 95 > US.height - 10) {
  1449. //left超过了页面范围处理,则向上重叠打印处理
  1450. if ((left + 180) > US.width) {
  1451. top -= 110;
  1452. left -= 90;
  1453. }
  1454. //没有超过范围,那么left+90添加到下一个竖排打印
  1455. else {
  1456. left += 90;
  1457. top = 15;
  1458. };
  1459. }
  1460. //给图标的位置赋值
  1461. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1462. if (i < childs.length - 1) {
  1463. //页面图标每次向下加95
  1464. top += 95;
  1465. }
  1466. }
  1467. //返回最后调用的图标的位置
  1468. return [top, left];
  1469. }
  1470. /**
  1471. * 桌面排列图标
  1472. *
  1473. * @param {element} 桌面元素
  1474. * @param {object} 上下相距的距离
  1475. * @param {object} 左右相距的距离
  1476. * @return {object} 命名空间
  1477. */
  1478. U.MD.D.iconPostion2 = function (childs, top, left) {
  1479. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1480. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1481. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1482. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1483. for (i = 0; i < childs.length; i++) {
  1484. //如果竖排top超过了范围处理
  1485. if (left + 150 > US.width - 10) {
  1486. //left超过了页面范围处理,则向上重叠打印处理
  1487. if ((top + 180) > US.Height) {
  1488. top -= 150;
  1489. left -= 150;
  1490. }
  1491. //没有超过范围,那么left+90添加到下一个竖排打印
  1492. else {
  1493. top += 150;
  1494. left = ol;
  1495. };
  1496. }
  1497. //给图标的位置赋值
  1498. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1499. if (i < childs.length - 1) {
  1500. //页面图标每次向下加95
  1501. left += 150;
  1502. }
  1503. }
  1504. //返回最后调用的图标的位置
  1505. return [top, left];
  1506. }
  1507. /**
  1508. * 桌面点击事件逻辑
  1509. *
  1510. * @param {element} 桌面元素
  1511. * @param {object} 上下相距的距离
  1512. * @param {object} 左右相距的距离
  1513. * @return {object} 命名空间
  1514. */
  1515. U.MD.D.click = function (el, obj) {
  1516. var _buttonnumber = event.button; //点击的按钮的事件值
  1517. var _userinfo = US.userInfo;
  1518. U.UF.EV.stopBubble(); //阻止向上冒泡
  1519. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1520. if (_buttonnumber < 2) {
  1521. //如果是click事件的处理
  1522. if (event.type == "click") {
  1523. //如果元素在mousemove事件中没有移动则出发click事件
  1524. if (!U.MD.D.I.IsDrag) {
  1525. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1526. U.alert("请先登录您的账号!");
  1527. setTimeout(() => {
  1528. U.MD.U.L.login();
  1529. }, 2000);
  1530. } else {
  1531. //打开应用处理
  1532. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1533. }
  1534. }
  1535. }
  1536. //如果是mouse事件的处理
  1537. else {
  1538. if (US.Config.type == '1') {
  1539. //拖动处理,添加拖动和拖动结束事件
  1540. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1541. }
  1542. }
  1543. U.MD.D.I.IsDrag = false;
  1544. }
  1545. }
  1546. /**
  1547. * 拖动的处理
  1548. *
  1549. */
  1550. U.MD.D.iconMove = function () {
  1551. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1552. U.MD.D.I.IsDrag = true;
  1553. }
  1554. /**
  1555. * 拖动结束后,这里是定位处理,以网状的形式定位
  1556. *
  1557. * @param {element} 拖动的元素
  1558. * @return {object} 命名空间
  1559. */
  1560. U.MD.D.iconUp = function (el) {
  1561. var _top = 15,
  1562. _left = 20,
  1563. _margin,
  1564. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1565. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1566. if (_positioninfo["OT"] > 15) {
  1567. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1568. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1569. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1570. }
  1571. if (_positioninfo["OL"] > 20) {
  1572. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1573. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1574. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1575. }
  1576. //while循环判断么一个重叠的元素
  1577. do {
  1578. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1579. _top = _positioninfo[0] + 95; //得到定位后的top
  1580. _left = _positioninfo[1]; //得到定位后的left
  1581. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1582. }
  1583. /**
  1584. * 判断拖动后图标是否重叠
  1585. *
  1586. * @param {element} 拖动的元素
  1587. * @param {element} 桌面所有的元素
  1588. * @param {array} 拖动元素的位置
  1589. ----------[0] 上 top
  1590. ----------[1] 左 left
  1591. * @return {object} 命名空间
  1592. */
  1593. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1594. //循环所有的图标
  1595. for (var i = 0; i < childs.length; i++) {
  1596. //判断有没有和该图标诶子重叠的元素
  1597. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1598. return childs[i]; //如果有返回
  1599. }
  1600. }
  1601. }
  1602. //#endregion
  1603. //#endregion
  1604. //#region 桌面应用
  1605. /**
  1606. * 打开应用
  1607. *
  1608. * @param {string} 类型
  1609. -----------------Disk 网盘系统
  1610. -----------------PDisk 学习系统网盘
  1611. -----------------Poto 图片
  1612. -----------------Video 视频
  1613. -----------------Music 音乐
  1614. -----------------Word word
  1615. -----------------Excel excel
  1616. -----------------Txt 记事本
  1617. -----------------PB 学习系统
  1618. -----------------Blog 朋友圈系统
  1619. -----------------FTP ftp系统
  1620. -----------------Group 好友群
  1621. -----------------SY 首页系统
  1622. -----------------Set 个人设置
  1623. -----------------XSet 系统设置
  1624. -----------------App 我们所有的app
  1625. -----------------BC c.1473.cn 平台
  1626. -----------------CWeb d.1473.cn 变成平台
  1627. -----------------其他的外联系统 我们统一用iframe打开
  1628. * @param {array} 类型
  1629. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1630. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1631. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1632. 如果第一个参数为其他,则无第二个参数
  1633. * @returns {array}
  1634. */
  1635. window.addEventListener('message', function (e) { // 监听 message 事件
  1636. // alert(e.data.type);
  1637. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1638. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1639. //3是展示全部阶段 2学生 1老师 4专家
  1640. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1641. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1642. //3是展示全部阶段 2学生 1老师 4专家
  1643. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1644. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1645. //3是展示全部阶段 2学生 1老师 4专家
  1646. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1647. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1648. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1649. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1650. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1651. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1652. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1653. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1654. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1655. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1656. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1657. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1658. //3是展示全部阶段 2学生 1老师 4专家
  1659. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1660. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1661. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1662. U.MD.D.I.selectUser();
  1663. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1664. var _formel = document.getElementById("study");
  1665. U.UF.F.windowZooming(_formel);
  1666. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1667. var _formel = document.getElementById("studyDetail");
  1668. U.UF.F.windowZooming(_formel);
  1669. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1670. var _formel = document.getElementById("studyDetail");
  1671. U.UF.F.windowZooming(_formel);
  1672. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1673. var _formel = document.getElementById("studentStudy");
  1674. U.UF.F.windowZooming(_formel);
  1675. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1676. // var _formel = document.getElementById("study");
  1677. //如果最大化了,那么就把他缩小
  1678. // if (_formel.ismaximize) {
  1679. // return;
  1680. // }
  1681. // U.UF.F.windowZooming(_formel);
  1682. // U.UF.F.topWindow(_formel);
  1683. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1684. // var _formel = document.getElementById("studyDetail");
  1685. //如果最大化了,那么就把他缩小
  1686. // if (_formel.ismaximize) {
  1687. // return;
  1688. // }
  1689. // U.UF.F.windowZooming(_formel);
  1690. // U.UF.F.topWindow(_formel);
  1691. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1692. // var _formel = document.getElementById("studentStudy");
  1693. // if (_formel.ismaximize) {
  1694. // return;
  1695. // }
  1696. // U.UF.F.windowZooming(_formel);
  1697. // U.UF.F.topWindow(_formel);
  1698. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1699. var _formel = document.getElementById("study");
  1700. // if (_formel.ismaximize) {
  1701. // return;
  1702. // }
  1703. // U.UF.F.windowZooming(_formel);
  1704. U.UF.F.topWindow(_formel);
  1705. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1706. var _formel = document.getElementById("studentIndex");
  1707. U.UF.F.windowZooming(_formel);
  1708. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1709. var _formel = document.getElementById("studyDetailS");
  1710. U.UF.F.windowZooming(_formel);
  1711. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1712. var _formel = document.getElementById("studioIndex");
  1713. U.UF.F.windowZooming(_formel);
  1714. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1715. var _formel = document.getElementById("studyDetailStudio");
  1716. U.UF.F.windowZooming(_formel);
  1717. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1718. var _formel = document.getElementById("studyDetailStudio");
  1719. U.UF.F.windowZooming(_formel);
  1720. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1721. var _formel = document.getElementById("studyDetailNT");
  1722. U.UF.F.windowZooming(_formel);
  1723. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1724. var _formel = document.getElementById("studyDetailS");
  1725. U.UF.F.windowZooming(_formel);
  1726. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1727. var _formel = document.getElementById("studyDetailS");
  1728. U.UF.F.topWindow(_formel);
  1729. } else if (e.data.tools && e.data.tools == "1") {
  1730. // U.MD.D.I.openApplication("whiteboard")
  1731. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1732. } else if (e.data.tools && e.data.tools == "2") {
  1733. U.MD.D.I.openApplication("note")
  1734. } else if (e.data.tools && e.data.tools == "3") {
  1735. // U.MD.D.I.openApplication("mind")
  1736. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1737. } else if (e.data.tools && e.data.tools == "4") {
  1738. U.MD.D.I.openApplication("investigation")
  1739. } else if (e.data.tools && e.data.tools == "6") {
  1740. // U.MD.D.I.openApplication("doc")
  1741. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1742. } else if (e.data.tools && e.data.tools == "7") {
  1743. // U.MD.D.I.openApplication("mindNetwork")
  1744. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1745. } else if (e.data.tools && e.data.tools == "8") {
  1746. U.MD.D.I.openApplication("library")
  1747. } else if (e.data.tools && e.data.tools == "17") {
  1748. U.MD.D.I.openApplication("stuLibrary")
  1749. } else if (e.data.tools && e.data.tools == "18") {
  1750. U.MD.D.I.openApplication("train")
  1751. } else if (e.data.tools && e.data.tools == "21") {
  1752. U.MD.D.I.openApplication("program")
  1753. } else if (e.data.tools && e.data.tools == "22") {
  1754. U.MD.D.I.openApplication("AIprogram2")
  1755. } else if (e.data.tools && e.data.tools == "23") {
  1756. U.MD.D.I.openApplication("Pythonprogram")
  1757. } else if (e.data.tools && e.data.tools == "24") {
  1758. U.MD.D.I.openApplication("AIprogram")
  1759. } else if (e.data.tools && e.data.tools == "25") {
  1760. U.MD.D.I.openApplication("sys")
  1761. } else if (e.data.tools && e.data.tools == "26") {
  1762. // U.MD.D.I.openApplication("courseDesign")
  1763. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1764. } else if (e.data.tools && e.data.tools == "31") {
  1765. U.MD.D.I.openApplication("netWorkPanel")
  1766. } else if (e.data.tools && e.data.tools == "32") {
  1767. U.MD.D.I.openApplication("codeEdit")
  1768. } else if (e.data.tools && e.data.tools == "57") {
  1769. U.MD.D.I.openApplication("CocoPi")
  1770. } else if (e.data.tools && e.data.tools == "63") {
  1771. U.MD.D.I.openApplication("Wood")
  1772. } else if (e.data.tools && e.data.tools == "58") {
  1773. U.MD.D.I.openApplication("car")
  1774. } else if (e.data.tools && e.data.tools == "59") {
  1775. U.MD.D.I.openApplication("lineSearch")
  1776. } else if (e.data.tools && e.data.tools == "60") {
  1777. U.MD.D.I.openApplication("deepLearning")
  1778. } else if (e.data.tools && e.data.tools == "61") {
  1779. U.MD.D.I.openApplication("allHistory")
  1780. } else if (e.data.tools && e.data.tools == "28") {
  1781. U.MD.D.I.openApplication("translation")
  1782. } else if (e.data.tools && e.data.tools == "37") {
  1783. U.MD.D.I.openApplication("mohe")
  1784. } else if (e.data.tools && e.data.tools == "38") {
  1785. U.MD.D.I.openApplication("24game")
  1786. } else if (e.data.tools && e.data.tools == "39") {
  1787. U.MD.D.I.openApplication("GeoGebra")
  1788. } else if (e.data.tools && e.data.tools == "43") {
  1789. U.MD.D.I.openApplication("studentEvaluate")
  1790. } else if (e.data.tools && e.data.tools == "44") {
  1791. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1792. } else if (e.data.tools && e.data.tools == "46") {
  1793. U.MD.D.I.openApplication("project")
  1794. } else if (e.data.tools && e.data.tools == "1s") {
  1795. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1796. } else if (e.data.tools && e.data.tools == "3s") {
  1797. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1798. } else if (e.data.tools && e.data.tools == "6s") {
  1799. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1800. } else if (e.data.tools && e.data.tools == "1studio") {
  1801. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1802. } else if (e.data.tools && e.data.tools == "3studio") {
  1803. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1804. } else if (e.data.tools && e.data.tools == "6studio") {
  1805. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1806. } else if (e.data.tools && e.data.tools == "3y") {
  1807. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1808. } else if (e.data.tools && e.data.tools == "1y") {
  1809. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1810. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1811. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1812. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1813. U.MD.D.I.openApplication("AIAnalyse")
  1814. } else if (e.data.tools && e.data.tools == "1teacher") {
  1815. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1816. } else if (e.data.tools && e.data.tools == "3teacher") {
  1817. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1818. } else if (e.data.tools && e.data.tools == "7teacher") {
  1819. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1820. } else if (e.data.tools && e.data.tools == "1teacherE") {
  1821. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1822. } else if (e.data.tools && e.data.tools == "3teacherE") {
  1823. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1824. } else if (e.data.tools && e.data.tools == "1E") {
  1825. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1826. } else if (e.data.tools && e.data.tools == "3E") {
  1827. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1828. } else if (e.data.tools && e.data.tools == "57y") {
  1829. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1830. } else if (e.data.tools && e.data.tools == "57u") {
  1831. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1832. } else if (e.data.tools && e.data.tools == "57teacher") {
  1833. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1834. }
  1835. });
  1836. U.MD.D.I.selectUser = function () {
  1837. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1838. if (res.value[0].length > 0) {
  1839. US.userInfo = res.value[0][0];
  1840. $(".userName")[0].innerHTML = US.userInfo.username;
  1841. }
  1842. }, [], { "type": "GET", "withCredentials": true });
  1843. }
  1844. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1845. var _userinfo = US.userInfo, //登录用户信息
  1846. _userid = US.userInfo.userid, //登录用户id
  1847. _oid = _userinfo.organizeid,
  1848. _type = US.userInfo.type,
  1849. _org = US.userInfo.org,
  1850. _role = US.userInfo.role,
  1851. _classId = US.userInfo.classid;
  1852. if (_type == 4) {
  1853. tType = 4
  1854. }
  1855. switch (str) {
  1856. case "studyDetailNT"://无终端模式
  1857. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1858. setTimeout(() => {
  1859. U.MD.U.L.login();
  1860. }, 2000);
  1861. } else {
  1862. _formdiv = new U.UF.UI.form(
  1863. "课程详情",
  1864. $$("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 }), {
  1865. "id": "studyDetailNT",
  1866. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1867. "onresize": function () { }
  1868. }, {
  1869. closecallback: function () { }
  1870. }, { "style": { "height": "36px" } }).form; //创建窗体
  1871. _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); } }
  1872. break;
  1873. }
  1874. case "studyDetail":
  1875. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1876. setTimeout(() => {
  1877. U.MD.U.L.login();
  1878. }, 2000);
  1879. } else {
  1880. _formdiv = new U.UF.UI.form(
  1881. "课程详情",
  1882. $$("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 }), {
  1883. "id": "studyDetail",
  1884. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1885. "onresize": function () { }
  1886. }, {
  1887. closecallback: function () { }
  1888. }, { "style": { "height": "36px" } }).form; //创建窗体
  1889. _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); } }
  1890. break;
  1891. }
  1892. case "studyDetailS":
  1893. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1894. setTimeout(() => {
  1895. U.MD.U.L.login();
  1896. }, 2000);
  1897. } else {
  1898. _formdiv = new U.UF.UI.form(
  1899. "项目详情",
  1900. $$("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 }), {
  1901. "id": "studyDetailS",
  1902. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1903. "onresize": function () { }
  1904. }, {
  1905. closecallback: function () { }
  1906. }, { "style": { "height": "36px" } }).form; //创建窗体
  1907. _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); } }
  1908. break;
  1909. }
  1910. case "studyDetailStudio":
  1911. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1912. setTimeout(() => {
  1913. U.MD.U.L.login();
  1914. }, 2000);
  1915. } else {
  1916. _formdiv = new U.UF.UI.form(
  1917. "工作详情",
  1918. $$("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 }), {
  1919. "id": "studyDetailStudio",
  1920. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1921. "onresize": function () { }
  1922. }, {
  1923. closecallback: function () { }
  1924. }, { "style": { "height": "36px" } }).form; //创建窗体
  1925. _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); } }
  1926. break;
  1927. }
  1928. case "studyDetailS5":
  1929. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1930. setTimeout(() => {
  1931. U.MD.U.L.login();
  1932. }, 2000);
  1933. } else {
  1934. _formdiv = new U.UF.UI.form(
  1935. "项目详情",
  1936. $$("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 }), {
  1937. "id": "studyDetailS",
  1938. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1939. "onresize": function () { }
  1940. }, {
  1941. closecallback: function () { }
  1942. }, { "style": { "height": "36px" } }).form; //创建窗体
  1943. _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); } }
  1944. break;
  1945. }
  1946. case "studyDetailGM":
  1947. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1948. setTimeout(() => {
  1949. U.MD.U.L.login();
  1950. }, 2000);
  1951. } else {
  1952. _formdiv = new U.UF.UI.form(
  1953. "课程详情",
  1954. $$("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 }), {
  1955. "id": "studyDetail",
  1956. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1957. "onresize": function () { }
  1958. }, {
  1959. closecallback: function () { }
  1960. }, { "style": { "height": "36px" } }).form; //创建窗体
  1961. _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); } }
  1962. break;
  1963. }
  1964. case "hanUrl":
  1965. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1966. setTimeout(() => {
  1967. U.MD.U.L.login();
  1968. }, 2000);
  1969. } else {
  1970. _formdiv = new U.UF.UI.form(
  1971. "汉字宫",
  1972. $$("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" }), {
  1973. "id": "hanUrl",
  1974. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1975. "onresize": function () { }
  1976. }, {
  1977. closecallback: function () { }
  1978. }, { "style": { "height": "36px" } }).form; //创建窗体
  1979. _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); } }
  1980. break;
  1981. }
  1982. }
  1983. }
  1984. U.MD.D.I.openApplication = function (str, obj, info) {
  1985. obj = obj || {};
  1986. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1987. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1988. _userinfo = US.userInfo, //登录用户信息
  1989. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1990. _oid = obj.organizeid || _userinfo.organizeid,
  1991. _type = US.userInfo.type,
  1992. _org = US.userInfo.org,
  1993. _role = US.userInfo.role,
  1994. _classId = US.userInfo.classid,
  1995. _TscreenType = 1
  1996. _screenType = 2,
  1997. _SscreenType = 3;
  1998. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1999. return;
  2000. }
  2001. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2002. switch (str) {
  2003. case "studnetProject": //好友打开
  2004. _formdiv = new U.UF.UI.form(
  2005. "我的项目",
  2006. $$("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 }), {
  2007. "id": "studnetProject",
  2008. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2009. "onresize": function () { }
  2010. }, {
  2011. closecallback: function () { }
  2012. }, { "style": { "height": "36px" } }).form; //创建窗体
  2013. _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); } }
  2014. break;
  2015. case "studentEvaluate": //好友打开
  2016. _formdiv = new U.UF.UI.form(
  2017. "我的评价",
  2018. $$("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 }), {
  2019. "id": "studentEvaluate",
  2020. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2021. "onresize": function () { }
  2022. }, {
  2023. closecallback: function () { }
  2024. }, { "style": { "height": "36px" } }).form; //创建窗体
  2025. _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); } }
  2026. break;
  2027. case "my":
  2028. _formdiv = new U.UF.UI.form(
  2029. "我的资料",
  2030. $$("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 }), {
  2031. "id": "my",
  2032. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2033. "onresize": function () { }
  2034. }, {
  2035. closecallback: function () { }
  2036. }, { "style": { "height": "36px" } }).form; //创建窗体
  2037. _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); } }
  2038. break;
  2039. case "program":
  2040. _formdiv = new U.UF.UI.form(
  2041. "编程平台",
  2042. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2043. "id": "program",
  2044. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2045. "onresize": function () { }
  2046. }, {
  2047. closecallback: function () { }
  2048. }, { "style": { "height": "36px" } }).form; //创建窗体
  2049. _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); } }
  2050. break;
  2051. case "library":
  2052. _formdiv = new U.UF.UI.form(
  2053. "素材库",
  2054. $$("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 }), {
  2055. "id": "library",
  2056. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2057. "onresize": function () { }
  2058. }, {
  2059. closecallback: function () { }
  2060. }, { "style": { "height": "36px" } }).form; //创建窗体
  2061. _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); } }
  2062. break;
  2063. case "whiteboard":
  2064. _formdiv = new U.UF.UI.form(
  2065. "电子白板",
  2066. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2067. "id": "whiteboard",
  2068. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2069. "onresize": function () { }
  2070. }, {
  2071. closecallback: function () { }
  2072. }, { "style": { "height": "36px" } }).form; //创建窗体
  2073. _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); } }
  2074. break;
  2075. case "investigation":
  2076. _formdiv = new U.UF.UI.form(
  2077. "问卷调查",
  2078. $$("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 }), {
  2079. "id": "investigation",
  2080. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2081. "onresize": function () { }
  2082. }, {
  2083. closecallback: function () { }
  2084. }, { "style": { "height": "36px" } }).form; //创建窗体
  2085. _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); } }
  2086. break;
  2087. case "note":
  2088. _formdiv = new U.UF.UI.form(
  2089. "便签分类",
  2090. $$("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 }), {
  2091. "id": "note",
  2092. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2093. "onresize": function () { }
  2094. }, {
  2095. closecallback: function () { }
  2096. }, { "style": { "height": "36px" } }).form; //创建窗体
  2097. _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); } }
  2098. break;
  2099. // case "score":
  2100. // _formdiv = new U.UF.UI.form(
  2101. // "量规评分",
  2102. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2103. // "id": "score",
  2104. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2105. // "onresize": function() {}
  2106. // }, {
  2107. // closecallback: function() {}
  2108. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2109. // _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); } }
  2110. // break;
  2111. case "mind":
  2112. _formdiv = new U.UF.UI.form(
  2113. "思维导图",
  2114. $$("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"
  2115. "id": "mind",
  2116. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2117. "onresize": function () { }
  2118. }, {
  2119. closecallback: function () { }
  2120. }, { "style": { "height": "36px" } }).form; //创建窗体
  2121. _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); } }
  2122. break;
  2123. case "doc":
  2124. // U.MD.D.I.isRoom();
  2125. _formdiv = new U.UF.UI.form(
  2126. "协同文档",
  2127. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2128. "id": "doc",
  2129. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2130. "onresize": function () { }
  2131. }, {
  2132. closecallback: function () { }
  2133. }, { "style": { "height": "36px" } }).form; //创建窗体
  2134. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2135. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2136. // })
  2137. _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); } }
  2138. break;
  2139. case "studentStudy":
  2140. _formdiv = new U.UF.UI.form(
  2141. "课程中心",
  2142. $$("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
  2143. "id": "studentStudy",
  2144. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2145. "onresize": function () { }
  2146. }, {
  2147. closecallback: function () { }
  2148. }, { "style": { "height": "36px" } }).form; //创建窗体
  2149. _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); } }
  2150. break;
  2151. case "train": //好友打开
  2152. _formdiv = new U.UF.UI.form(
  2153. "训练平台",
  2154. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2155. "id": "train",
  2156. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2157. "onresize": function () { }
  2158. }, {
  2159. closecallback: function () { }
  2160. }, { "style": { "height": "36px" } }).form; //创建窗体
  2161. _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); } }
  2162. break;
  2163. case "mindNetwork": //好友打开
  2164. _formdiv = new U.UF.UI.form(
  2165. "思维网格",
  2166. $$("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 }), {
  2167. "id": "mindNetwork",
  2168. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2169. "onresize": function () { }
  2170. }, {
  2171. closecallback: function () { }
  2172. }, { "style": { "height": "36px" } }).form; //创建窗体
  2173. _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); } }
  2174. break;
  2175. case "studentClassRoom": //好友打开
  2176. _formdiv = new U.UF.UI.form(
  2177. "实时课堂",
  2178. $$("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 }), {
  2179. "id": "studentClassRoom",
  2180. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2181. "onresize": function () { }
  2182. }, {
  2183. closecallback: function () { }
  2184. }, { "style": { "height": "36px" } }).form; //创建窗体
  2185. _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); } }
  2186. setTimeout(() => {
  2187. U.UF.F.windowZooming(_formdiv)
  2188. }, 0);
  2189. break;
  2190. }
  2191. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2192. switch (str) {
  2193. case "studnetProject": //好友打开
  2194. _formdiv = new U.UF.UI.form(
  2195. "我的项目",
  2196. $$("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 }), {
  2197. "id": "studnetProject",
  2198. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2199. "onresize": function () { }
  2200. }, {
  2201. closecallback: function () { }
  2202. }, { "style": { "height": "36px" } }).form; //创建窗体
  2203. _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); } }
  2204. break;
  2205. case "studentEvaluate": //好友打开
  2206. _formdiv = new U.UF.UI.form(
  2207. "我的评价",
  2208. $$("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 }), {
  2209. "id": "studentEvaluate",
  2210. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2211. "onresize": function () { }
  2212. }, {
  2213. closecallback: function () { }
  2214. }, { "style": { "height": "36px" } }).form; //创建窗体
  2215. _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); } }
  2216. break;
  2217. case "my":
  2218. _formdiv = new U.UF.UI.form(
  2219. "我的资料",
  2220. $$("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 }), {
  2221. "id": "my",
  2222. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2223. "onresize": function () { }
  2224. }, {
  2225. closecallback: function () { }
  2226. }, { "style": { "height": "36px" } }).form; //创建窗体
  2227. _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); } }
  2228. break;
  2229. case "program":
  2230. _formdiv = new U.UF.UI.form(
  2231. "编程平台",
  2232. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2233. "id": "program",
  2234. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2235. "onresize": function () { }
  2236. }, {
  2237. closecallback: function () { }
  2238. }, { "style": { "height": "36px" } }).form; //创建窗体
  2239. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2240. break;
  2241. case "library":
  2242. _formdiv = new U.UF.UI.form(
  2243. "素材库",
  2244. $$("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 }), {
  2245. "id": "library",
  2246. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2247. "onresize": function () { }
  2248. }, {
  2249. closecallback: function () { }
  2250. }, { "style": { "height": "36px" } }).form; //创建窗体
  2251. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2252. break;
  2253. case "whiteboard":
  2254. _formdiv = new U.UF.UI.form(
  2255. "电子白板",
  2256. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2257. "id": "whiteboard",
  2258. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2259. "onresize": function () { }
  2260. }, {
  2261. closecallback: function () { }
  2262. }, { "style": { "height": "36px" } }).form; //创建窗体
  2263. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2264. break;
  2265. case "investigation":
  2266. _formdiv = new U.UF.UI.form(
  2267. "问卷调查",
  2268. $$("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 }), {
  2269. "id": "investigation",
  2270. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2271. "onresize": function () { }
  2272. }, {
  2273. closecallback: function () { }
  2274. }, { "style": { "height": "36px" } }).form; //创建窗体
  2275. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2276. break;
  2277. case "note":
  2278. _formdiv = new U.UF.UI.form(
  2279. "便签分类",
  2280. $$("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 }), {
  2281. "id": "note",
  2282. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2283. "onresize": function () { }
  2284. }, {
  2285. closecallback: function () { }
  2286. }, { "style": { "height": "36px" } }).form; //创建窗体
  2287. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2288. break;
  2289. // case "score":
  2290. // _formdiv = new U.UF.UI.form(
  2291. // "量规评分",
  2292. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2293. // "id": "score",
  2294. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2295. // "onresize": function() {}
  2296. // }, {
  2297. // closecallback: function() {}
  2298. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2299. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2300. // break;
  2301. case "mind":
  2302. _formdiv = new U.UF.UI.form(
  2303. "思维导图",
  2304. $$("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"
  2305. "id": "mind",
  2306. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2307. "onresize": function () { }
  2308. }, {
  2309. closecallback: function () { }
  2310. }, { "style": { "height": "36px" } }).form; //创建窗体
  2311. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2312. break;
  2313. case "doc":
  2314. // U.MD.D.I.isRoom();
  2315. _formdiv = new U.UF.UI.form(
  2316. "协同文档",
  2317. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2318. "id": "doc",
  2319. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2320. "onresize": function () { }
  2321. }, {
  2322. closecallback: function () { }
  2323. }, { "style": { "height": "36px" } }).form; //创建窗体
  2324. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2325. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2326. })
  2327. _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); } }
  2328. break;
  2329. case "train": //好友打开
  2330. _formdiv = new U.UF.UI.form(
  2331. "训练平台",
  2332. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2333. "id": "train",
  2334. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2335. "onresize": function () { }
  2336. }, {
  2337. closecallback: function () { }
  2338. }, { "style": { "height": "36px" } }).form; //创建窗体
  2339. _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); } }
  2340. break;
  2341. case "studentStudy":
  2342. _formdiv = new U.UF.UI.form(
  2343. "课程中心",
  2344. $$("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
  2345. "id": "studentStudy",
  2346. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2347. "onresize": function () { }
  2348. }, {
  2349. closecallback: function () { }
  2350. }, { "style": { "height": "36px" } }).form; //创建窗体
  2351. _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); } }
  2352. break;
  2353. case "mindNetwork": //好友打开
  2354. _formdiv = new U.UF.UI.form(
  2355. "思维网格",
  2356. $$("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 }), {
  2357. "id": "mindNetwork",
  2358. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2359. "onresize": function () { }
  2360. }, {
  2361. closecallback: function () { }
  2362. }, { "style": { "height": "36px" } }).form; //创建窗体
  2363. _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); } }
  2364. break;
  2365. case "studentClassRoom": //好友打开
  2366. _formdiv = new U.UF.UI.form(
  2367. "实时课堂",
  2368. $$("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 }), {
  2369. "id": "studentClassRoom",
  2370. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2371. "onresize": function () { }
  2372. }, {
  2373. closecallback: function () { }
  2374. }, { "style": { "height": "36px" } }).form; //创建窗体
  2375. _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); } }
  2376. setTimeout(() => {
  2377. U.UF.F.windowZooming(_formdiv)
  2378. }, 0);
  2379. break;
  2380. }
  2381. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2382. //选择应用处理
  2383. switch (str) {
  2384. case "project": //好友打开
  2385. _formdiv = new U.UF.UI.form(
  2386. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2387. $$("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 }), {
  2388. "id": "project",
  2389. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2390. "onresize": function () { }
  2391. }, {
  2392. closecallback: function () { }
  2393. }, { "style": { "height": "36px" } }).form; //创建窗体
  2394. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2395. break;
  2396. case "student":
  2397. _formdiv = new U.UF.UI.form(
  2398. "学生管理",
  2399. $$("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 }), {
  2400. "id": "student",
  2401. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2402. "onresize": function () { }
  2403. }, {
  2404. closecallback: function () { }
  2405. }, { "style": { "height": "36px" } }).form; //创建窗体
  2406. _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); } }
  2407. break;
  2408. case "evaluate":
  2409. _formdiv = new U.UF.UI.form(
  2410. "学生评价",
  2411. $$("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 }), {
  2412. "id": "evaluate",
  2413. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2414. "onresize": function () { }
  2415. }, {
  2416. closecallback: function () { }
  2417. }, { "style": { "height": "36px" } }).form; //创建窗体
  2418. _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); } }
  2419. break;
  2420. case "sys":
  2421. _formdiv = new U.UF.UI.form(
  2422. "目标管理",
  2423. $$("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 }), {
  2424. "id": "sys",
  2425. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2426. "onresize": function () { }
  2427. }, {
  2428. closecallback: function () { }
  2429. }, { "style": { "height": "36px" } }).form; //创建窗体
  2430. _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); } }
  2431. break;
  2432. case "courseDesign":
  2433. _formdiv = new U.UF.UI.form(
  2434. "项目设计",
  2435. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2436. "id": "courseDesign",
  2437. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2438. "onresize": function () { }
  2439. }, {
  2440. closecallback: function () { }
  2441. }, { "style": { "height": "36px" } }).form; //创建窗体
  2442. _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); } }
  2443. break;
  2444. case "program":
  2445. _formdiv = new U.UF.UI.form(
  2446. "编程平台",
  2447. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2448. "id": "program",
  2449. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2450. "onresize": function () { }
  2451. }, {
  2452. closecallback: function () { }
  2453. }, { "style": { "height": "36px" } }).form; //创建窗体
  2454. _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); } }
  2455. break;
  2456. case "class":
  2457. _formdiv = new U.UF.UI.form(
  2458. "班级管理",
  2459. $$("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 }), {
  2460. "id": "class",
  2461. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2462. "onresize": function () { }
  2463. }, {
  2464. closecallback: function () { }
  2465. }, { "style": { "height": "36px" } }).form; //创建窗体
  2466. _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); } }
  2467. break;
  2468. case "my":
  2469. _formdiv = new U.UF.UI.form(
  2470. "我的资料",
  2471. $$("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 }), {
  2472. "id": "my",
  2473. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2474. "onresize": function () { }
  2475. }, {
  2476. closecallback: function () { }
  2477. }, { "style": { "height": "36px" } }).form; //创建窗体
  2478. _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); } }
  2479. break;
  2480. case "notice":
  2481. _formdiv = new U.UF.UI.form(
  2482. "通知公告",
  2483. $$("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 }), {
  2484. "id": "notice",
  2485. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2486. "onresize": function () { }
  2487. }, {
  2488. closecallback: function () { }
  2489. }, { "style": { "height": "36px" } }).form; //创建窗体
  2490. _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); } }
  2491. break;
  2492. case "library":
  2493. _formdiv = new U.UF.UI.form(
  2494. "素材库",
  2495. $$("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 }), {
  2496. "id": "library",
  2497. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2498. "onresize": function () { }
  2499. }, {
  2500. closecallback: function () { }
  2501. }, { "style": { "height": "36px" } }).form; //创建窗体
  2502. _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); } }
  2503. break;
  2504. case "whiteboard":
  2505. _formdiv = new U.UF.UI.form(
  2506. "电子白板",
  2507. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2508. "id": "whiteboard",
  2509. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2510. "onresize": function () { }
  2511. }, {
  2512. closecallback: function () { }
  2513. }, { "style": { "height": "36px" } }).form; //创建窗体
  2514. _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); } }
  2515. break;
  2516. case "investigation":
  2517. _formdiv = new U.UF.UI.form(
  2518. "问卷调查",
  2519. $$("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 }), {
  2520. "id": "investigation",
  2521. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2522. "onresize": function () { }
  2523. }, {
  2524. closecallback: function () { }
  2525. }, { "style": { "height": "36px" } }).form; //创建窗体
  2526. _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); } }
  2527. break;
  2528. case "note":
  2529. _formdiv = new U.UF.UI.form(
  2530. "便签分类",
  2531. $$("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 }), {
  2532. "id": "note",
  2533. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2534. "onresize": function () { }
  2535. }, {
  2536. closecallback: function () { }
  2537. }, { "style": { "height": "36px" } }).form; //创建窗体
  2538. _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); } }
  2539. break;
  2540. // case "score":
  2541. // _formdiv = new U.UF.UI.form(
  2542. // "量规评分",
  2543. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2544. // "id": "score",
  2545. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2546. // "onresize": function() {}
  2547. // }, {
  2548. // closecallback: function() {}
  2549. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2550. // _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); } }
  2551. // break;
  2552. case "mind":
  2553. _formdiv = new U.UF.UI.form(
  2554. "思维导图",
  2555. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  2556. "id": "mind",
  2557. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2558. "onresize": function () { }
  2559. }, {
  2560. closecallback: function () { }
  2561. }, { "style": { "height": "36px" } }).form; //创建窗体
  2562. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2563. break;
  2564. case "doc":
  2565. // U.MD.D.I.isRoom();
  2566. _formdiv = new U.UF.UI.form(
  2567. "协同文档",
  2568. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2569. "id": "doc",
  2570. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2571. "onresize": function () { }
  2572. }, {
  2573. closecallback: function () { }
  2574. }, { "style": { "height": "36px" } }).form; //创建窗体
  2575. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2576. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2577. })
  2578. _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); } }
  2579. break;
  2580. case "study":
  2581. _formdiv = new U.UF.UI.form(
  2582. "课程中心",
  2583. $$("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
  2584. "id": "study",
  2585. "style": { "width": "100%", "height": "100%", "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/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2591. break;
  2592. case "mindNetwork": //好友打开
  2593. _formdiv = new U.UF.UI.form(
  2594. "思维网格",
  2595. $$("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 }), {
  2596. "id": "mindNetwork",
  2597. "style": { "width": "90%", "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/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2603. break;
  2604. case "train": //好友打开
  2605. _formdiv = new U.UF.UI.form(
  2606. "训练平台",
  2607. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2608. "id": "mindNetwork",
  2609. "style": { "width": "90%", "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/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2615. break;
  2616. case "teacherClassRoom": //好友打开
  2617. _formdiv = new U.UF.UI.form(
  2618. "实时课堂",
  2619. $$("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 }), {
  2620. "id": "teacherClassRoom",
  2621. "style": { "width": "90%", "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/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2627. setTimeout(() => {
  2628. U.UF.F.windowZooming(_formdiv)
  2629. }, 0);
  2630. break;
  2631. }
  2632. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2633. switch (str) {
  2634. case "project": //好友打开
  2635. _formdiv = new U.UF.UI.form(
  2636. "课程管理",
  2637. $$("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 }), {
  2638. "id": "project",
  2639. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2640. "onresize": function () { }
  2641. }, {
  2642. closecallback: function () { }
  2643. }, { "style": { "height": "36px" } }).form; //创建窗体
  2644. _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); } }
  2645. break;
  2646. case "evaluate":
  2647. _formdiv = new U.UF.UI.form(
  2648. "学生评价",
  2649. $$("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 }), {
  2650. "id": "evaluate",
  2651. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2652. "onresize": function () { }
  2653. }, {
  2654. closecallback: function () { }
  2655. }, { "style": { "height": "36px" } }).form; //创建窗体
  2656. _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); } }
  2657. break;
  2658. case "notice":
  2659. _formdiv = new U.UF.UI.form(
  2660. "通知公告",
  2661. $$("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 }), {
  2662. "id": "notice",
  2663. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2664. "onresize": function () { }
  2665. }, {
  2666. closecallback: function () { }
  2667. }, { "style": { "height": "36px" } }).form; //创建窗体
  2668. _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); } }
  2669. break;
  2670. case "stuLibrary":
  2671. _formdiv = new U.UF.UI.form(
  2672. "学习资料",
  2673. $$("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 }), {
  2674. "id": "stuLibrary",
  2675. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2676. "onresize": function () { }
  2677. }, {
  2678. closecallback: function () { }
  2679. }, { "style": { "height": "36px" } }).form; //创建窗体
  2680. _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); } }
  2681. break;
  2682. case "program":
  2683. _formdiv = new U.UF.UI.form(
  2684. "编程平台",
  2685. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2686. "id": "program",
  2687. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2688. "onresize": function () { }
  2689. }, {
  2690. closecallback: function () { }
  2691. }, { "style": { "height": "36px" } }).form; //创建窗体
  2692. _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); } }
  2693. break;
  2694. case "whiteboard":
  2695. _formdiv = new U.UF.UI.form(
  2696. "电子白板",
  2697. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2698. "id": "whiteboard",
  2699. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2700. "onresize": function () { }
  2701. }, {
  2702. closecallback: function () { }
  2703. }, { "style": { "height": "36px" } }).form; //创建窗体
  2704. _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); } }
  2705. break;
  2706. case "investigation":
  2707. _formdiv = new U.UF.UI.form(
  2708. "问卷调查",
  2709. $$("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 }), {
  2710. "id": "investigation",
  2711. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2712. "onresize": function () { }
  2713. }, {
  2714. closecallback: function () { }
  2715. }, { "style": { "height": "36px" } }).form; //创建窗体
  2716. _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); } }
  2717. break;
  2718. case "mind":
  2719. _formdiv = new U.UF.UI.form(
  2720. "思维导图",
  2721. $$("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"
  2722. "id": "mind",
  2723. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2724. "onresize": function () { }
  2725. }, {
  2726. closecallback: function () { }
  2727. }, { "style": { "height": "36px" } }).form; //创建窗体
  2728. _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); } }
  2729. break;
  2730. case "doc":
  2731. // U.MD.D.I.isRoom();
  2732. _formdiv = new U.UF.UI.form(
  2733. "协同文档",
  2734. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2735. "id": "doc",
  2736. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2737. "onresize": function () { }
  2738. }, {
  2739. closecallback: function () { }
  2740. }, { "style": { "height": "36px" } }).form; //创建窗体
  2741. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2742. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2743. })
  2744. _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); } }
  2745. break;
  2746. case "study":
  2747. _formdiv = new U.UF.UI.form(
  2748. "课程中心",
  2749. $$("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
  2750. "id": "study",
  2751. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2752. "onresize": function () { }
  2753. }, {
  2754. closecallback: function () { }
  2755. }, { "style": { "height": "36px" } }).form; //创建窗体
  2756. _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); } }
  2757. break;
  2758. case "mindNetwork": //好友打开
  2759. _formdiv = new U.UF.UI.form(
  2760. "思维网格",
  2761. $$("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 }), {
  2762. "id": "mindNetwork",
  2763. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2764. "onresize": function () { }
  2765. }, {
  2766. closecallback: function () { }
  2767. }, { "style": { "height": "36px" } }).form; //创建窗体
  2768. _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); } }
  2769. break;
  2770. case "train": //好友打开
  2771. _formdiv = new U.UF.UI.form(
  2772. "训练平台",
  2773. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2774. "id": "train",
  2775. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2776. "onresize": function () { }
  2777. }, {
  2778. closecallback: function () { }
  2779. }, { "style": { "height": "36px" } }).form; //创建窗体
  2780. _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); } }
  2781. break;
  2782. case "sys":
  2783. _formdiv = new U.UF.UI.form(
  2784. "目标管理",
  2785. $$("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 }), {
  2786. "id": "sys",
  2787. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2788. "onresize": function () { }
  2789. }, {
  2790. closecallback: function () { }
  2791. }, { "style": { "height": "36px" } }).form; //创建窗体
  2792. _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); } }
  2793. break;
  2794. case "courseDesign":
  2795. _formdiv = new U.UF.UI.form(
  2796. "项目设计",
  2797. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2798. "id": "courseDesign",
  2799. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2800. "onresize": function () { }
  2801. }, {
  2802. closecallback: function () { }
  2803. }, { "style": { "height": "36px" } }).form; //创建窗体
  2804. _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); } }
  2805. break;
  2806. }
  2807. } else if (!_type) {
  2808. switch (str) {
  2809. case "my":
  2810. _formdiv = new U.UF.UI.form(
  2811. "我的资料",
  2812. $$("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 }), {
  2813. "id": "my",
  2814. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2815. "onresize": function () { }
  2816. }, {
  2817. closecallback: function () { }
  2818. }, { "style": { "height": "36px" } }).form; //创建窗体
  2819. _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); } }
  2820. break;
  2821. }
  2822. }
  2823. switch (str) {
  2824. // AIprogram2 AI体验 aihub.cocorobo.cn
  2825. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2826. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2827. case "AIprogram2": //AI体验
  2828. _formdiv = new U.UF.UI.form(
  2829. "AI体验",
  2830. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2831. "id": "AIprogram2",
  2832. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2833. "onresize": function () { }
  2834. }, {
  2835. closecallback: function () { }
  2836. }, { "style": { "height": "36px" } }).form; //创建窗体
  2837. _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); } }
  2838. break;
  2839. case "Pythonprogram": //python编程
  2840. _formdiv = new U.UF.UI.form(
  2841. "Python编程",
  2842. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2843. "id": "Pythonprogram",
  2844. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2845. "onresize": function () { }
  2846. }, {
  2847. closecallback: function () { }
  2848. }, { "style": { "height": "36px" } }).form; //创建窗体
  2849. _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); } }
  2850. break;
  2851. case "AIprogram": //ai编程
  2852. _formdiv = new U.UF.UI.form(
  2853. "AI编程平台",
  2854. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2855. "id": "AIprogram",
  2856. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2857. "onresize": function () { }
  2858. }, {
  2859. closecallback: function () { }
  2860. }, { "style": { "height": "36px" } }).form; //创建窗体
  2861. _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); } }
  2862. break;
  2863. case "CocoPi": //CocoPi
  2864. _formdiv = new U.UF.UI.form(
  2865. "CocoPi",
  2866. $$("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" }), {
  2867. "id": "CocoPi",
  2868. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2869. "onresize": function () { }
  2870. }, {
  2871. closecallback: function () { }
  2872. }, { "style": { "height": "36px" } }).form; //创建窗体
  2873. _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); } }
  2874. break;
  2875. case "Wood": //Wood
  2876. _formdiv = new U.UF.UI.form(
  2877. "海龟编程",
  2878. $$("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/" }), {
  2879. "id": "Wood",
  2880. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2881. "onresize": function () { }
  2882. }, {
  2883. closecallback: function () { }
  2884. }, { "style": { "height": "36px" } }).form; //创建窗体
  2885. _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); } }
  2886. break;
  2887. case "car": //模拟驾驶
  2888. _formdiv = new U.UF.UI.form(
  2889. "模拟驾驶",
  2890. $$("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/" }), {
  2891. "id": "car",
  2892. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2893. "onresize": function () { }
  2894. }, {
  2895. closecallback: function () { }
  2896. }, { "style": { "height": "36px" } }).form; //创建窗体
  2897. _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); } }
  2898. break;
  2899. case "lineSearch": //路径搜索
  2900. _formdiv = new U.UF.UI.form(
  2901. "路径搜索",
  2902. $$("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/" }), {
  2903. "id": "lineSearch",
  2904. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2905. "onresize": function () { }
  2906. }, {
  2907. closecallback: function () { }
  2908. }, { "style": { "height": "36px" } }).form; //创建窗体
  2909. _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); } }
  2910. break;
  2911. case "deepLearning": //深度学习
  2912. _formdiv = new U.UF.UI.form(
  2913. "深度学习",
  2914. $$("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/#" }), {
  2915. "id": "deepLearning",
  2916. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2917. "onresize": function () { }
  2918. }, {
  2919. closecallback: function () { }
  2920. }, { "style": { "height": "36px" } }).form; //创建窗体
  2921. _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); } }
  2922. break;
  2923. case "allHistory": //深度学习
  2924. _formdiv = new U.UF.UI.form(
  2925. "全历史",
  2926. $$("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/" }), {
  2927. "id": "allHistory",
  2928. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2929. "onresize": function () { }
  2930. }, {
  2931. closecallback: function () { }
  2932. }, { "style": { "height": "36px" } }).form; //创建窗体
  2933. _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); } }
  2934. break;
  2935. case "chatPDF": //ai编程
  2936. _formdiv = new U.UF.UI.form(
  2937. "chatPDF",
  2938. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2939. "id": "chatPDF",
  2940. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2941. "onresize": function () { }
  2942. }, {
  2943. closecallback: function () { }
  2944. }, { "style": { "height": "36px" } }).form; //创建窗体
  2945. _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); } }
  2946. break;
  2947. case "resources": //国家教育
  2948. _formdiv = new U.UF.UI.form(
  2949. "国家教育",
  2950. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2951. "id": "resources",
  2952. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2953. "onresize": function () { }
  2954. }, {
  2955. closecallback: function () { }
  2956. }, { "style": { "height": "36px" } }).form; //创建窗体
  2957. _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); } }
  2958. break;
  2959. case "codeEdit": //源码编辑
  2960. _formdiv = new U.UF.UI.form(
  2961. "源码编辑",
  2962. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2963. "id": "codeEdit",
  2964. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2965. "onresize": function () { }
  2966. }, {
  2967. closecallback: function () { }
  2968. }, { "style": { "height": "36px" } }).form; //创建窗体
  2969. _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); } }
  2970. break; //
  2971. case "MindMap": //MindMap
  2972. _formdiv = new U.UF.UI.form(
  2973. "MindMap",
  2974. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2975. "id": "MindMap",
  2976. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2977. "onresize": function () { }
  2978. }, {
  2979. closecallback: function () { }
  2980. }, { "style": { "height": "36px" } }).form; //创建窗体
  2981. _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); } }
  2982. break;
  2983. case "netWorkPanel": //netWorkPanel
  2984. _formdiv = new U.UF.UI.form(
  2985. "netWorkPanel",
  2986. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2987. "id": "netWorkPanel",
  2988. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2989. "onresize": function () { }
  2990. }, {
  2991. closecallback: function () { }
  2992. }, { "style": { "height": "36px" } }).form; //创建窗体
  2993. _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); } }
  2994. break;
  2995. case "GeoGebra": //GeoGebra
  2996. _formdiv = new U.UF.UI.form(
  2997. "GeoGebra",
  2998. $$("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" }), {
  2999. "id": "GeoGebra",
  3000. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3001. "onresize": function () { }
  3002. }, {
  3003. closecallback: function () { }
  3004. }, { "style": { "height": "36px" } }).form; //创建窗体
  3005. _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); } }
  3006. break;
  3007. case "translation": //翻译
  3008. _formdiv = new U.UF.UI.form(
  3009. "翻译",
  3010. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3011. "id": "translation",
  3012. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3013. "onresize": function () { }
  3014. }, {
  3015. closecallback: function () { }
  3016. }, { "style": { "height": "36px" } }).form; //创建窗体
  3017. _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); } }
  3018. break;
  3019. case "mohe": //魔盒
  3020. _formdiv = new U.UF.UI.form(
  3021. "魔盒识字",
  3022. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3023. "id": "mohe",
  3024. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3025. "onresize": function () { }
  3026. }, {
  3027. closecallback: function () { }
  3028. }, { "style": { "height": "36px" } }).form; //创建窗体
  3029. _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); } }
  3030. break;
  3031. case "24game": //24点
  3032. _formdiv = new U.UF.UI.form(
  3033. "24点",
  3034. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3035. "id": "24game",
  3036. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3037. "onresize": function () { }
  3038. }, {
  3039. closecallback: function () { }
  3040. }, { "style": { "height": "36px" } }).form; //创建窗体
  3041. _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); } }
  3042. break;
  3043. case "case":
  3044. _formdiv = new U.UF.UI.form(
  3045. "课程进展",
  3046. $$("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 }), {
  3047. "id": "case",
  3048. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3049. "onresize": function () { }
  3050. }, {
  3051. closecallback: function () { }
  3052. }, { "style": { "height": "36px" } }).form; //创建窗体
  3053. _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); } }
  3054. break;
  3055. case "snf":
  3056. _formdiv = new U.UF.UI.form(
  3057. "赛诺梵",
  3058. $$("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" }), {
  3059. "id": "snf",
  3060. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3061. "onresize": function () { }
  3062. }, {
  3063. closecallback: function () { }
  3064. }, { "style": { "height": "36px" } }).form; //创建窗体
  3065. _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); } }
  3066. break;
  3067. case "hanFamily":
  3068. _formdiv = new U.UF.UI.form(
  3069. "汉字家族",
  3070. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3071. "id": "hanFamily",
  3072. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3073. "onresize": function () { }
  3074. }, {
  3075. closecallback: function () { }
  3076. }, { "style": { "height": "36px" } }).form; //创建窗体
  3077. _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); } }
  3078. break;
  3079. case "hanClassics":
  3080. _formdiv = new U.UF.UI.form(
  3081. "国学经典",
  3082. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3083. "id": "hanClassics",
  3084. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3085. "onresize": function () { }
  3086. }, {
  3087. closecallback: function () { }
  3088. }, { "style": { "height": "36px" } }).form; //创建窗体
  3089. _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); } }
  3090. break;
  3091. case "hanTraining":
  3092. _formdiv = new U.UF.UI.form(
  3093. "笔画训练",
  3094. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3095. "id": "hanTraining",
  3096. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3097. "onresize": function () { }
  3098. }, {
  3099. closecallback: function () { }
  3100. }, { "style": { "height": "36px" } }).form; //创建窗体
  3101. _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); } }
  3102. break;
  3103. case "hanClass":
  3104. _formdiv = new U.UF.UI.form(
  3105. "书法课堂",
  3106. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3107. "id": "hanClass",
  3108. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3109. "onresize": function () { }
  3110. }, {
  3111. closecallback: function () { }
  3112. }, { "style": { "height": "36px" } }).form; //创建窗体
  3113. _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); } }
  3114. break;
  3115. case "han":
  3116. _formdiv = new U.UF.UI.form(
  3117. "汉字宫",
  3118. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3119. "id": "han",
  3120. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3121. "onresize": function () { }
  3122. }, {
  3123. closecallback: function () { }
  3124. }, { "style": { "height": "36px" } }).form; //创建窗体
  3125. _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); } }
  3126. break;
  3127. case "projectGM": //课程管理
  3128. _formdiv = new U.UF.UI.form(
  3129. "课程管理",
  3130. $$("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 }), {
  3131. "id": "projectGM",
  3132. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3133. "onresize": function () { }
  3134. }, {
  3135. closecallback: function () { }
  3136. }, { "style": { "height": "36px" } }).form; //创建窗体
  3137. _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); } }
  3138. break;
  3139. case "studyGM"://课程中心
  3140. _formdiv = new U.UF.UI.form(
  3141. "课程中心",
  3142. $$("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
  3143. "id": "study",
  3144. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3145. "onresize": function () { }
  3146. }, {
  3147. closecallback: function () { }
  3148. }, { "style": { "height": "36px" } }).form; //创建窗体
  3149. _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); } }
  3150. break;
  3151. // studentGM
  3152. case "studentGM"://学生管理
  3153. _formdiv = new U.UF.UI.form(
  3154. "学生管理",
  3155. $$("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 }), {
  3156. "id": "studentGM",
  3157. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3158. "onresize": function () { }
  3159. }, {
  3160. closecallback: function () { }
  3161. }, { "style": { "height": "36px" } }).form; //创建窗体
  3162. _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); } }
  3163. break;
  3164. case "evaluateGM"://学生评价
  3165. _formdiv = new U.UF.UI.form(
  3166. "学生评价",
  3167. $$("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 }), {
  3168. "id": "evaluateGM",
  3169. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3170. "onresize": function () { }
  3171. }, {
  3172. closecallback: function () { }
  3173. }, { "style": { "height": "36px" } }).form; //创建窗体
  3174. _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); } }
  3175. break;
  3176. // classGM
  3177. case "classGM"://班级管理
  3178. _formdiv = new U.UF.UI.form(
  3179. "班级管理",
  3180. $$("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 }), {
  3181. "id": "classGM",
  3182. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3183. "onresize": function () { }
  3184. }, {
  3185. closecallback: function () { }
  3186. }, { "style": { "height": "36px" } }).form; //创建窗体
  3187. _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); } }
  3188. break;
  3189. // dataGM
  3190. case "dataGM":
  3191. _formdiv = new U.UF.UI.form(
  3192. "我的资料",
  3193. $$("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 }), {
  3194. "id": "dataGM",
  3195. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3196. "onresize": function () { }
  3197. }, {
  3198. closecallback: function () { }
  3199. }, { "style": { "height": "36px" } }).form; //创建窗体
  3200. _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); } }
  3201. break;
  3202. // caseGM
  3203. case "caseGM"://课程进展
  3204. _formdiv = new U.UF.UI.form(
  3205. "课程进展",
  3206. $$("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 }), {
  3207. "id": "caseGM",
  3208. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3209. "onresize": function () { }
  3210. }, {
  3211. closecallback: function () { }
  3212. }, { "style": { "height": "36px" } }).form; //创建窗体
  3213. _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); } }
  3214. break;
  3215. // meterialGM
  3216. case "meterialGM"://素材库
  3217. _formdiv = new U.UF.UI.form(
  3218. "素材库",
  3219. $$("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 }), {
  3220. "id": "meterialGM",
  3221. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3222. "onresize": function () { }
  3223. }, {
  3224. closecallback: function () { }
  3225. }, { "style": { "height": "36px" } }).form; //创建窗体
  3226. _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); } }
  3227. break;
  3228. // evaluateSGM
  3229. case "evaluateSGM": //我的评价
  3230. _formdiv = new U.UF.UI.form(
  3231. "我的评价",
  3232. $$("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 }), {
  3233. "id": "evaluateSGM",
  3234. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3235. "onresize": function () { }
  3236. }, {
  3237. closecallback: function () { }
  3238. }, { "style": { "height": "36px" } }).form; //创建窗体
  3239. _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); } }
  3240. break;
  3241. case "jupyter": //jupyter
  3242. _formdiv = new U.UF.UI.form(
  3243. "jupyter",
  3244. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3245. "id": "jupyter",
  3246. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3247. "onresize": function () { }
  3248. }, {
  3249. closecallback: function () { }
  3250. }, { "style": { "height": "36px" } }).form; //创建窗体
  3251. _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); } }
  3252. break;
  3253. case "number": //数字实验室
  3254. _formdiv = new U.UF.UI.form(
  3255. "数字实验室",
  3256. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3257. "id": "number",
  3258. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3259. "onresize": function () { }
  3260. }, {
  3261. closecallback: function () { }
  3262. }, { "style": { "height": "36px" } }).form; //创建窗体
  3263. _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); } }
  3264. break;
  3265. case "studentCourse": //项目管理 学生
  3266. _formdiv = new U.UF.UI.form(
  3267. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3268. $$("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 }), {
  3269. "id": "studentCourse",
  3270. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3271. "onresize": function () { }
  3272. }, {
  3273. closecallback: function () { }
  3274. }, { "style": { "height": "36px" } }).form; //创建窗体
  3275. _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); } }
  3276. break;
  3277. case "studentCourseS": //项目管理 老师
  3278. _formdiv = new U.UF.UI.form(
  3279. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3280. $$("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 }), {
  3281. "id": "studentCourseS",
  3282. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3283. "onresize": function () { }
  3284. }, {
  3285. closecallback: function () { }
  3286. }, { "style": { "height": "36px" } }).form; //创建窗体
  3287. _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); } }
  3288. break;
  3289. case "studentIndex": //项目中心
  3290. _formdiv = new U.UF.UI.form(
  3291. "项目中心",
  3292. $$("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 }), {
  3293. "id": "studentIndex",
  3294. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3295. "onresize": function () { }
  3296. }, {
  3297. closecallback: function () { }
  3298. }, { "style": { "height": "36px" } }).form; //创建窗体
  3299. _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); } }
  3300. break;
  3301. case "CaseDesignS":
  3302. _formdiv = new U.UF.UI.form(
  3303. "项目进展",
  3304. $$("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 }), {
  3305. "id": "case",
  3306. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3307. "onresize": function () { }
  3308. }, {
  3309. closecallback: function () { }
  3310. }, { "style": { "height": "36px" } }).form; //创建窗体
  3311. _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); } }
  3312. break;
  3313. case "tcStudent": //腾讯学生管理
  3314. _formdiv = new U.UF.UI.form(
  3315. "学生管理",
  3316. $$("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 }), {
  3317. "id": "tcStudent",
  3318. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3319. "onresize": function () { }
  3320. }, {
  3321. closecallback: function () { }
  3322. }, { "style": { "height": "36px" } }).form; //创建窗体
  3323. _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); } }
  3324. break;
  3325. case "tcSchool": //腾讯学校管理
  3326. _formdiv = new U.UF.UI.form(
  3327. "学校管理",
  3328. $$("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 }), {
  3329. "id": "tcSchool",
  3330. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3331. "onresize": function () { }
  3332. }, {
  3333. closecallback: function () { }
  3334. }, { "style": { "height": "36px" } }).form; //创建窗体
  3335. _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); } }
  3336. break;
  3337. case "tcTeacher": //腾讯学校管理
  3338. _formdiv = new U.UF.UI.form(
  3339. "教师管理",
  3340. $$("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 }), {
  3341. "id": "tcTeacher",
  3342. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3343. "onresize": function () { }
  3344. }, {
  3345. closecallback: function () { }
  3346. }, { "style": { "height": "36px" } }).form; //创建窗体
  3347. _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); } }
  3348. break;
  3349. case "tcData": //腾讯我的资料
  3350. _formdiv = new U.UF.UI.form(
  3351. "我的资料",
  3352. $$("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 }), {
  3353. "id": "tcData",
  3354. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3355. "onresize": function () { }
  3356. }, {
  3357. closecallback: function () { }
  3358. }, { "style": { "height": "36px" } }).form; //创建窗体
  3359. _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); } }
  3360. break;
  3361. case "tcNotice": //腾讯消息通知
  3362. _formdiv = new U.UF.UI.form(
  3363. "消息通知",
  3364. $$("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 }), {
  3365. "id": "tcNotice",
  3366. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3367. "onresize": function () { }
  3368. }, {
  3369. closecallback: function () { }
  3370. }, { "style": { "height": "36px" } }).form; //创建窗体
  3371. _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); } }
  3372. break;
  3373. case "myReport": //好友打开
  3374. _formdiv = new U.UF.UI.form(
  3375. "我的评价",
  3376. $$("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 }), {
  3377. "id": "myReport",
  3378. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3379. "onresize": function () { }
  3380. }, {
  3381. closecallback: function () { }
  3382. }, { "style": { "height": "36px" } }).form; //创建窗体
  3383. _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); } }
  3384. break;
  3385. case "learnAna": //好友打开
  3386. _formdiv = new U.UF.UI.form(
  3387. "学习分析",
  3388. $$("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 }), {
  3389. "id": "learnAna",
  3390. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3391. "onresize": function () { }
  3392. }, {
  3393. closecallback: function () { }
  3394. }, { "style": { "height": "36px" } }).form; //创建窗体
  3395. _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); } }
  3396. break;
  3397. case "AIChat": //AI共创
  3398. _formdiv = new U.UF.UI.form(
  3399. "AI共创",
  3400. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3401. "id": "AIChat",
  3402. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3403. "onresize": function () { }
  3404. }, {
  3405. istop: true,
  3406. closecallback: function () { $("#aichat_icon").remove(); },
  3407. narrowcallback: function () {
  3408. if (!$("#aichat_icon")[0]) {
  3409. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3410. }
  3411. },
  3412. }, { "style": { "height": "36px" } }).form; //创建窗体
  3413. _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); } }
  3414. break;
  3415. case "AIAnalyse": //AI共创
  3416. _formdiv = new U.UF.UI.form(
  3417. "AI分析",
  3418. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3419. "id": "AIAnalyse",
  3420. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3421. "onresize": function () { }
  3422. }, {
  3423. closecallback: function () { }
  3424. }, { "style": { "height": "36px" } }).form; //创建窗体
  3425. _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); } }
  3426. break;
  3427. case "studioCourse": //AI共创
  3428. _formdiv = new U.UF.UI.form(
  3429. "工作管理",
  3430. $$("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 }), {
  3431. "id": "studioCourse",
  3432. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3433. "onresize": function () { }
  3434. }, {
  3435. closecallback: function () { }
  3436. }, { "style": { "height": "36px" } }).form; //创建窗体
  3437. _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); } }
  3438. break;
  3439. case "studioIndex": //AI共创
  3440. _formdiv = new U.UF.UI.form(
  3441. "工作中心",
  3442. $$("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 }), {
  3443. "id": "studioIndex",
  3444. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3445. "onresize": function () { }
  3446. }, {
  3447. closecallback: function () { }
  3448. }, { "style": { "height": "36px" } }).form; //创建窗体
  3449. _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); } }
  3450. break;
  3451. case "source":
  3452. _formdiv = new U.UF.UI.form(
  3453. "教学资源",
  3454. $$("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 }), {
  3455. "id": "source",
  3456. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3457. "onresize": function () { }
  3458. }, {
  3459. closecallback: function () { }
  3460. }, { "style": { "height": "36px" } }).form; //创建窗体
  3461. _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); } }
  3462. break;
  3463. }
  3464. //U.MD.D.I.openClick(str);
  3465. //如果有任务栏信息
  3466. if (_taskbar) {
  3467. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3468. }
  3469. }
  3470. // U.MD.D.I.openClick = function(str){
  3471. // var click = '';
  3472. // switch(str){
  3473. // case 'friend':
  3474. // click = '我的好友';
  3475. // break;
  3476. // case 'domain':
  3477. // click = '域名管理';
  3478. // break;
  3479. // case 'disk':
  3480. // click = '我的云盘';
  3481. // break;
  3482. // case 'word':
  3483. // click = 'Word';
  3484. // break;
  3485. // case 'excel':
  3486. // click = 'Execl';
  3487. // break;
  3488. // case 'txt':
  3489. // click = '文本文件';
  3490. // break;
  3491. // case 'lookupFriend':
  3492. // click = '查找好友';
  3493. // break;
  3494. // case 'ftp':
  3495. // click = 'FTP';
  3496. // break;
  3497. // case 'group':
  3498. // click = '群组';
  3499. // break;
  3500. // case 'set':
  3501. // click = '我的设置';
  3502. // break;
  3503. // case 'systemSet':
  3504. // click = '系统设置';
  3505. // break;
  3506. // case 'boomYun':
  3507. // click = '互联办公';
  3508. // break;
  3509. // case 'xz':
  3510. // click = '云端下载';
  3511. // break;
  3512. // case 'client':
  3513. // click = '有思浏览器';
  3514. // break;
  3515. // case 'backEndProgramming':
  3516. // click = '在线后台编程';
  3517. // break;
  3518. // case 'frontEndProgramming':
  3519. // click = '在线前端编程';
  3520. // break;
  3521. // default: break;
  3522. // }
  3523. // if(U.MD.D.I.Ip && click){
  3524. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3525. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3526. // })
  3527. // }
  3528. // }
  3529. /**
  3530. *函数作用:ajax简易函数,使用post格式
  3531. *@param url {data} 后台地址
  3532. *@param data {data} 参数json
  3533. *@param fn {data} 回调函数
  3534. *
  3535. */
  3536. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3537. // var xhr = new XMLHttpRequest();
  3538. // xhr.open("GET",url,true);
  3539. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3540. // xhr.onreadystatechange = function(){
  3541. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3542. // fn.call(this,xhr.responseText);
  3543. // }
  3544. // };
  3545. // xhr.send();
  3546. // }
  3547. /*判断是否是内网IP*/
  3548. // U.MD.D.I.isInnerIPFn = function(str){
  3549. // var curPageUrl = str;
  3550. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3551. // curPageUrl =curPageUrl.replace(reg1,'');
  3552. // // console.log('curPageUrl-1 '+curPageUrl);
  3553. // var reg2 = /\:+/g;//替换冒号为一点
  3554. // curPageUrl =curPageUrl.replace(reg2,'.');
  3555. // // console.log('curPageUrl-2 '+curPageUrl);
  3556. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3557. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3558. // if(curPageUrl[2] != '16'){
  3559. // return ipAddress;
  3560. // }else{
  3561. // return false;
  3562. // }
  3563. // }
  3564. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3565. // //compatibility for firefox and chrome
  3566. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3567. // var pc = new myPeerConnection({
  3568. // iceServers: []
  3569. // }),
  3570. // noop = function() {},
  3571. // localIPs = {},
  3572. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3573. // key;
  3574. // function iterateIP(ip) {
  3575. // if (!localIPs[ip]) onNewIP(ip);
  3576. // localIPs[ip] = true;
  3577. // }
  3578. // //create a bogus data channel
  3579. // pc.createDataChannel("");
  3580. // // create offer and set local description
  3581. // pc.createOffer().then(function(sdp) {
  3582. // sdp.sdp.split('\n').forEach(function(line) {
  3583. // if (line.indexOf('candidate') < 0) return;
  3584. // line.match(ipRegex).forEach(iterateIP);
  3585. // });
  3586. // pc.setLocalDescription(sdp, noop, noop);
  3587. // }).catch(function(reason) {
  3588. // // An error occurred, so handle the failure to connect
  3589. // });
  3590. // //sten for candidate events
  3591. // pc.onicecandidate = function(ice) {
  3592. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3593. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3594. // };
  3595. // }
  3596. // U.MD.D.I.getUserIpBool = function(callback){
  3597. // U.MD.D.I.getUserIP(function(ip){
  3598. // alert("Got IP! :" + ip);
  3599. // });
  3600. //}
  3601. //#endregion
  3602. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3603. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3604. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3605. _userinfo = US.userInfo, //登录用户信息
  3606. _userid = US.userInfo.userid //登录用户id
  3607. let _iframe;
  3608. let _cid = cid,
  3609. _stage = stage,
  3610. _task = task,
  3611. _tool = tool;
  3612. var _jie = $$("div", {
  3613. "style": {
  3614. "position": "absolute",
  3615. "bottom": "50px",
  3616. "right": "50px",
  3617. "zIndex": "9999",
  3618. "backgroundColor": "#2268bc",
  3619. "color": "#fff",
  3620. "padding": "12px 20px",
  3621. "cursor": "pointer",
  3622. "borderRadius": "4px",
  3623. },
  3624. "innerHTML": "提交作业"
  3625. })
  3626. let aTool = ''
  3627. let _loading = document.createElement('div')
  3628. _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;"
  3629. // _loading.id = "";
  3630. let _lchild = document.createElement('div')
  3631. let _limg = document.createElement('img')
  3632. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3633. _limg.style = "width: 26px;margin-right: 10px;"
  3634. _lchild.appendChild(_limg)
  3635. let _lspan = document.createElement('span')
  3636. _lspan.innerHTML = "上传中..."
  3637. _lchild.appendChild(_lspan)
  3638. _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%);"
  3639. _loading.appendChild(_lchild)
  3640. var _box = $$('div', {
  3641. "style": {
  3642. "position": "relative",
  3643. "width": "100%",
  3644. "height": "100%",
  3645. },
  3646. })
  3647. _box.appendChild(_loading)
  3648. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool+_userid
  3649. switch (str) {
  3650. case "whiteboard":
  3651. aTool = 1;
  3652. _iframe = $$("iframe", {
  3653. "frameborder": "no",
  3654. "border": "0",
  3655. "scrolling ": "no",
  3656. "style": {
  3657. "cssText": "border:0;width:100%;height:100%"
  3658. },
  3659. "src": "https://iwb.cocorobo.cn/"
  3660. })
  3661. _box.appendChild(_iframe);
  3662. _box.appendChild(_jie);
  3663. _formdiv = new U.UF.UI.form(
  3664. "电子白板",
  3665. _box, {
  3666. "id": "whiteboard" + cid + stage + task + tool,
  3667. "style": {
  3668. "width": "90%",
  3669. "height": "90%",
  3670. "overflow": 'hidden'
  3671. },
  3672. "onresize": function () { }
  3673. }, {
  3674. closecallback: function () { }
  3675. }, {
  3676. "style": {
  3677. "height": "36px"
  3678. }
  3679. }).form; //创建窗体
  3680. _taskbar = {
  3681. "id": str + _formdiv.id,
  3682. "style": {
  3683. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3684. },
  3685. "name": "电子白板",
  3686. "forms": _formdiv,
  3687. "click": function () {
  3688. U.MD.D.I.openApplication(str, obj, info);
  3689. }
  3690. }
  3691. break;
  3692. case "mind":
  3693. aTool = 3;
  3694. _iframe = $$("iframe", {
  3695. "frameborder": "no",
  3696. "border": "0",
  3697. "scrolling ": "no",
  3698. "style": {
  3699. "cssText": "border:0;width:100%;height:100%"
  3700. },
  3701. "src": "/kityminder-editor/dist/index.html"
  3702. })
  3703. _box.appendChild(_iframe);
  3704. _box.appendChild(_jie);
  3705. _formdiv = new U.UF.UI.form(
  3706. "思维导图",
  3707. _box, { //"/jsmind/example/demo.html"
  3708. "id": "mind" + cid + stage + task + tool,
  3709. "style": {
  3710. "width": "90%",
  3711. "height": "90%",
  3712. "overflow": 'hidden'
  3713. },
  3714. "onresize": function () { }
  3715. }, {
  3716. closecallback: function () { }
  3717. }, {
  3718. "style": {
  3719. "height": "36px"
  3720. }
  3721. }).form; //创建窗体
  3722. _taskbar = {
  3723. "id": str + _formdiv.id,
  3724. "style": {
  3725. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3726. },
  3727. "name": "思维导图",
  3728. "forms": _formdiv,
  3729. "click": function () {
  3730. U.MD.D.I.openApplication(str, obj, info);
  3731. }
  3732. }
  3733. break;
  3734. case "MindMap":
  3735. aTool = 3;
  3736. _iframe = $$("iframe", {
  3737. "frameborder": "no",
  3738. "border": "0",
  3739. "scrolling ": "no",
  3740. "style": {
  3741. "cssText": "border:0;width:100%;height:100%"
  3742. },
  3743. "src": "//cloud.cocorobo.cn/mind/"
  3744. })
  3745. _box.appendChild(_iframe);
  3746. _box.appendChild(_jie);
  3747. _formdiv = new U.UF.UI.form(
  3748. "思维导图",
  3749. _box, { //"/jsmind/example/demo.html"
  3750. "id": "mind" + cid + stage + task + tool,
  3751. "style": {
  3752. "width": "90%",
  3753. "height": "90%",
  3754. "overflow": 'hidden'
  3755. },
  3756. "onresize": function () { }
  3757. }, {
  3758. closecallback: function () { }
  3759. }, {
  3760. "style": {
  3761. "height": "36px"
  3762. }
  3763. }).form; //创建窗体
  3764. _taskbar = {
  3765. "id": str + _formdiv.id,
  3766. "style": {
  3767. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3768. },
  3769. "name": "思维导图",
  3770. "forms": _formdiv,
  3771. "click": function () {
  3772. U.MD.D.I.openApplication(str, obj, info);
  3773. }
  3774. }
  3775. break;
  3776. case "doc":
  3777. aTool = 6;
  3778. _iframe = $$("iframe", {
  3779. "frameborder": "no",
  3780. "border": "0",
  3781. "scrolling ": "no",
  3782. "style": {
  3783. "cssText": "border:0;width:100%;height:100%"
  3784. },
  3785. "src": "/Office/Word/WordEditArea.htm"
  3786. })
  3787. _box.appendChild(_iframe);
  3788. _box.appendChild(_jie);
  3789. _formdiv = new U.UF.UI.form(
  3790. "协同文档",
  3791. _box, {
  3792. "id": "doc" + cid + stage + task + tool,
  3793. "style": {
  3794. "width": "90%",
  3795. "height": "90%",
  3796. "overflow": 'hidden'
  3797. },
  3798. "onresize": function () { }
  3799. }, {
  3800. closecallback: function () { }
  3801. }, {
  3802. "style": {
  3803. "height": "36px"
  3804. }
  3805. }).form; //创建窗体
  3806. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3807. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3808. })
  3809. _taskbar = {
  3810. "id": str + _formdiv.id,
  3811. "style": {
  3812. "backgroundImage": "url(/img/icon/doc.png)"
  3813. },
  3814. "name": "协同文档",
  3815. "forms": _formdiv,
  3816. "click": function () {
  3817. U.MD.D.I.openApplication(str, obj, info);
  3818. }
  3819. }
  3820. break;
  3821. case "mindNetwork": //好友打开
  3822. aTool = 7;
  3823. _iframe = $$("iframe", {
  3824. "webkitallowfullscreen": "",
  3825. "mozallowfullscreen": "",
  3826. "allowfullscreen": "",
  3827. "frameborder": "no",
  3828. "border": "0",
  3829. "scrolling ": "no",
  3830. "style": {
  3831. "cssText": "border:0; width:100%; height:100%;"
  3832. },
  3833. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3834. })
  3835. _box.appendChild(_iframe);
  3836. _box.appendChild(_jie);
  3837. _formdiv = new U.UF.UI.form(
  3838. "思维网格",
  3839. _box, {
  3840. "id": "mindNetwork" + cid + stage + task + tool,
  3841. "style": {
  3842. "width": "90%",
  3843. "height": "90%",
  3844. "overflow": 'hidden'
  3845. },
  3846. "onresize": function () { }
  3847. }, {
  3848. closecallback: function () { }
  3849. }, {
  3850. "style": {
  3851. "height": "36px"
  3852. }
  3853. }).form; //创建窗体
  3854. _taskbar = {
  3855. "id": str + _formdiv.id,
  3856. "style": {
  3857. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3858. },
  3859. "name": "思维网格",
  3860. "forms": _formdiv,
  3861. "click": function () {
  3862. U.MD.D.I.openApplication(str, obj, info);
  3863. }
  3864. }
  3865. break;
  3866. case "courseDesign":
  3867. _iframe = $$("iframe", {
  3868. "webkitallowfullscreen": "",
  3869. "mozallowfullscreen": "",
  3870. "allowfullscreen": "",
  3871. "frameborder": "no",
  3872. "border": "0",
  3873. "scrolling ": "no",
  3874. "style": {
  3875. "cssText": "border:0; width:100%; height:100%;"
  3876. },
  3877. "src": "/course-design-vue"
  3878. })
  3879. _box.appendChild(_iframe);
  3880. _box.appendChild(_jie);
  3881. _formdiv = new U.UF.UI.form(
  3882. "项目设计",
  3883. _box, {
  3884. "id": "courseDesign" + cid + stage + task + tool,
  3885. "style": {
  3886. "width": "90%",
  3887. "height": "90%",
  3888. "overflow": 'hidden'
  3889. },
  3890. "onresize": function () { }
  3891. }, {
  3892. closecallback: function () { }
  3893. }, {
  3894. "style": {
  3895. "height": "36px"
  3896. }
  3897. }).form; //创建窗体
  3898. _taskbar = {
  3899. "id": str + _formdiv.id,
  3900. "style": {
  3901. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3902. },
  3903. "name": "项目设计",
  3904. "forms": _formdiv,
  3905. "click": function () {
  3906. U.MD.D.I.openApplication(str, obj, info);
  3907. }
  3908. }
  3909. break;
  3910. }
  3911. const script1 = document.createElement("script");
  3912. script1.type = "text/javascript";
  3913. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3914. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3915. const script2 = document.createElement("script");
  3916. script2.type = "text/javascript";
  3917. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3918. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3919. const script3 = document.createElement("script");
  3920. script3.type = "text/javascript";
  3921. script3.charset = "UTF-8";
  3922. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3923. const script4 = document.createElement("script");
  3924. script4.type = "text/javascript";
  3925. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3926. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3927. if (_iframe) {
  3928. if (str == 'doc') {
  3929. _iframe = _formdiv.querySelector('iframe')
  3930. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3931. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3932. _iframe.contentWindow.document.body.appendChild(script1);
  3933. _iframe.contentWindow.document.body.appendChild(script2);
  3934. // _iframe.contentWindow.document.body.appendChild(script3);
  3935. _iframe.contentWindow.document.body.appendChild(script4);
  3936. })
  3937. if (onloadListener) {
  3938. _iframe.contentDocument.location.reload()
  3939. } else {
  3940. _iframe.contentDocument.location.reload()
  3941. }
  3942. } else if (str == 'courseDesign') {
  3943. U.UF.DL.iframeLoad(_iframe, function () {
  3944. // _iframe.contentWindow.U.MD.O.W.load();
  3945. // _iframe.contentWindow.document.body.appendChild(script1);
  3946. _iframe.contentWindow.document.body.appendChild(script2);
  3947. _iframe.contentWindow.document.body.appendChild(script4);
  3948. })
  3949. } else if (str == 'mind') {
  3950. _iframe = _formdiv.querySelector('iframe')
  3951. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3952. //
  3953. _iframe.contentWindow.document.body.appendChild(script1);
  3954. _iframe.contentWindow.document.body.appendChild(script2);
  3955. _iframe.contentWindow.document.body.appendChild(script4);
  3956. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3957. })
  3958. if (onloadListener) {
  3959. _iframe.contentDocument.location.reload()
  3960. } else {
  3961. _iframe.contentDocument.location.reload()
  3962. }
  3963. } else if (str == 'whiteboard') {
  3964. _iframe = _formdiv.querySelector('iframe')
  3965. let onloadListener = _iframe.onload = () => {
  3966. _iframe.contentWindow.document.body.appendChild(script1);
  3967. _iframe.contentWindow.document.body.appendChild(script2);
  3968. _iframe.contentWindow.document.body.appendChild(script4);
  3969. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3970. };
  3971. if (onloadListener) {
  3972. _iframe.contentDocument.location.reload()
  3973. } else {
  3974. _iframe.contentDocument.location.reload()
  3975. }
  3976. } else {
  3977. _iframe.onload = () => {
  3978. _iframe.contentWindow.document.body.appendChild(script1);
  3979. _iframe.contentWindow.document.body.appendChild(script2);
  3980. // _iframe.contentWindow.document.body.appendChild(script3);
  3981. _iframe.contentWindow.document.body.appendChild(script4);
  3982. };
  3983. }
  3984. _jie.onclick = async () => {
  3985. let text = ''
  3986. if (aTool == 1) {
  3987. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3988. } else if (aTool == 6) {
  3989. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3990. } else if (aTool == 3) {
  3991. text = await U.MD.D.I.getEditorContent(_iframe);
  3992. }
  3993. _loading.style.display = 'flex'
  3994. console.log(_loading);
  3995. var _ajs = _iframe.contentWindow.document.createElement("script");
  3996. _ajs.type = "text/javascript";
  3997. _ajs.innerHTML =
  3998. // 'console.log(' + _loading + ');\n' +
  3999. 'var _js = document.createElement("script");\n' +
  4000. '_js.type="text/javascript";\n' +
  4001. '_js.charset="UTF-8";\n' +
  4002. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4003. "_js.onload = function(){\n" +
  4004. ' var a = document.getElementsByTagName("img")\n' +
  4005. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4006. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4007. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4008. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4009. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4010. "beforeUpload_shishi(file," +
  4011. "'" +
  4012. _userid +
  4013. "'" +
  4014. ", " +
  4015. "'" +
  4016. _cid +
  4017. "'" +
  4018. ", " +
  4019. "'" +
  4020. _stage +
  4021. "'" +
  4022. ", " +
  4023. "'" +
  4024. _task +
  4025. "'" +
  4026. ", " +
  4027. "'" +
  4028. _tool +
  4029. "'" +
  4030. ", " +
  4031. "'" +
  4032. (str + '_loadLi_Jie' + cid + stage + task + tool+_userid) +
  4033. "'" +
  4034. ", " +
  4035. "'" +
  4036. aTool +
  4037. "'" +
  4038. ", " +
  4039. "`" +
  4040. text +
  4041. "`" +
  4042. ")\n" +
  4043. " });\n" +
  4044. "}\n" +
  4045. "document.head.appendChild(_js);\n";
  4046. _iframe.contentWindow.document.head.appendChild(_ajs);
  4047. }
  4048. }
  4049. //U.MD.D.I.openClick(str);
  4050. //如果有任务栏信息
  4051. // if (_taskbar) {
  4052. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4053. // }
  4054. }
  4055. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4056. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4057. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4058. _userinfo = US.userInfo, //登录用户信息
  4059. _userid = US.userInfo.userid //登录用户id
  4060. let _iframe;
  4061. let _cid = cid,
  4062. _stage = stage,
  4063. _task = task,
  4064. _tool = tool;
  4065. var _jie = $$("div", {
  4066. "style": {
  4067. "position": "absolute",
  4068. "bottom": "50px",
  4069. "right": "50px",
  4070. "zIndex": "9999",
  4071. "backgroundColor": "#2268bc",
  4072. "color": "#fff",
  4073. "padding": "12px 20px",
  4074. "cursor": "pointer",
  4075. "borderRadius": "4px",
  4076. },
  4077. "innerHTML": "提交作业"
  4078. })
  4079. let aTool = ''
  4080. let _loading = document.createElement('div')
  4081. _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;"
  4082. // _loading.id = "";
  4083. let _lchild = document.createElement('div')
  4084. let _limg = document.createElement('img')
  4085. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4086. _limg.style = "width: 26px;margin-right: 10px;"
  4087. _lchild.appendChild(_limg)
  4088. let _lspan = document.createElement('span')
  4089. _lspan.innerHTML = "上传中..."
  4090. _lchild.appendChild(_lspan)
  4091. _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%);"
  4092. _loading.appendChild(_lchild)
  4093. var _box = $$('div', {
  4094. "style": {
  4095. "position": "relative",
  4096. "width": "100%",
  4097. "height": "100%",
  4098. },
  4099. })
  4100. _box.appendChild(_loading)
  4101. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool+_userid
  4102. switch (str) {
  4103. case "whiteboard":
  4104. aTool = 1;
  4105. _iframe = $$("iframe", {
  4106. "frameborder": "no",
  4107. "border": "0",
  4108. "scrolling ": "no",
  4109. "style": {
  4110. "cssText": "border:0;width:100%;height:100%"
  4111. },
  4112. "src": "https://iwb.cocorobo.cn/"
  4113. })
  4114. _box.appendChild(_iframe);
  4115. _box.appendChild(_jie);
  4116. _formdiv = new U.UF.UI.form(
  4117. "电子白板",
  4118. _box, {
  4119. "id": "whiteboard" + cid + stage + task + tool,
  4120. "style": {
  4121. "width": "90%",
  4122. "height": "90%",
  4123. "overflow": 'hidden'
  4124. },
  4125. "onresize": function () { }
  4126. }, {
  4127. closecallback: function () { }
  4128. }, {
  4129. "style": {
  4130. "height": "36px"
  4131. }
  4132. }).form; //创建窗体
  4133. _taskbar = {
  4134. "id": str + _formdiv.id,
  4135. "style": {
  4136. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4137. },
  4138. "name": "电子白板",
  4139. "forms": _formdiv,
  4140. "click": function () {
  4141. U.MD.D.I.openApplication(str, obj, info);
  4142. }
  4143. }
  4144. break;
  4145. case "mind":
  4146. aTool = 3;
  4147. _iframe = $$("iframe", {
  4148. "frameborder": "no",
  4149. "border": "0",
  4150. "scrolling ": "no",
  4151. "style": {
  4152. "cssText": "border:0;width:100%;height:100%"
  4153. },
  4154. "src": "/kityminder-editor/dist/index.html"
  4155. })
  4156. _box.appendChild(_iframe);
  4157. _box.appendChild(_jie);
  4158. _formdiv = new U.UF.UI.form(
  4159. "思维导图",
  4160. _box, { //"/jsmind/example/demo.html"
  4161. "id": "mind" + cid + stage + task + tool,
  4162. "style": {
  4163. "width": "90%",
  4164. "height": "90%",
  4165. "overflow": 'hidden'
  4166. },
  4167. "onresize": function () { }
  4168. }, {
  4169. closecallback: function () { }
  4170. }, {
  4171. "style": {
  4172. "height": "36px"
  4173. }
  4174. }).form; //创建窗体
  4175. _taskbar = {
  4176. "id": str + _formdiv.id,
  4177. "style": {
  4178. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4179. },
  4180. "name": "思维导图",
  4181. "forms": _formdiv,
  4182. "click": function () {
  4183. U.MD.D.I.openApplication(str, obj, info);
  4184. }
  4185. }
  4186. break;
  4187. case "MindMap":
  4188. aTool = 3;
  4189. _iframe = $$("iframe", {
  4190. "frameborder": "no",
  4191. "border": "0",
  4192. "scrolling ": "no",
  4193. "style": {
  4194. "cssText": "border:0;width:100%;height:100%"
  4195. },
  4196. "src": "//cloud.cocorobo.cn/mind/"
  4197. })
  4198. _box.appendChild(_iframe);
  4199. _box.appendChild(_jie);
  4200. _formdiv = new U.UF.UI.form(
  4201. "思维导图",
  4202. _box, { //"/jsmind/example/demo.html"
  4203. "id": "mind" + cid + stage + task + tool,
  4204. "style": {
  4205. "width": "90%",
  4206. "height": "90%",
  4207. "overflow": 'hidden'
  4208. },
  4209. "onresize": function () { }
  4210. }, {
  4211. closecallback: function () { }
  4212. }, {
  4213. "style": {
  4214. "height": "36px"
  4215. }
  4216. }).form; //创建窗体
  4217. _taskbar = {
  4218. "id": str + _formdiv.id,
  4219. "style": {
  4220. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4221. },
  4222. "name": "思维导图",
  4223. "forms": _formdiv,
  4224. "click": function () {
  4225. U.MD.D.I.openApplication(str, obj, info);
  4226. }
  4227. }
  4228. break;
  4229. case "doc":
  4230. aTool = 6;
  4231. _iframe = $$("iframe", {
  4232. "frameborder": "no",
  4233. "border": "0",
  4234. "scrolling ": "no",
  4235. "style": {
  4236. "cssText": "border:0;width:100%;height:100%"
  4237. },
  4238. "src": "/Office/Word/WordEditArea.htm"
  4239. })
  4240. _box.appendChild(_iframe);
  4241. _box.appendChild(_jie);
  4242. _formdiv = new U.UF.UI.form(
  4243. "协同文档",
  4244. _box, {
  4245. "id": "doc" + cid + stage + task + tool,
  4246. "style": {
  4247. "width": "90%",
  4248. "height": "90%",
  4249. "overflow": 'hidden'
  4250. },
  4251. "onresize": function () { }
  4252. }, {
  4253. closecallback: function () { }
  4254. }, {
  4255. "style": {
  4256. "height": "36px"
  4257. }
  4258. }).form; //创建窗体
  4259. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4260. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4261. })
  4262. _taskbar = {
  4263. "id": str + _formdiv.id,
  4264. "style": {
  4265. "backgroundImage": "url(/img/icon/doc.png)"
  4266. },
  4267. "name": "协同文档",
  4268. "forms": _formdiv,
  4269. "click": function () {
  4270. U.MD.D.I.openApplication(str, obj, info);
  4271. }
  4272. }
  4273. break;
  4274. case "mindNetwork": //好友打开
  4275. aTool = 7;
  4276. _iframe = $$("iframe", {
  4277. "webkitallowfullscreen": "",
  4278. "mozallowfullscreen": "",
  4279. "allowfullscreen": "",
  4280. "frameborder": "no",
  4281. "border": "0",
  4282. "scrolling ": "no",
  4283. "style": {
  4284. "cssText": "border:0; width:100%; height:100%;"
  4285. },
  4286. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4287. })
  4288. _box.appendChild(_iframe);
  4289. _box.appendChild(_jie);
  4290. _formdiv = new U.UF.UI.form(
  4291. "思维网格",
  4292. _box, {
  4293. "id": "mindNetwork" + cid + stage + task + tool,
  4294. "style": {
  4295. "width": "90%",
  4296. "height": "90%",
  4297. "overflow": 'hidden'
  4298. },
  4299. "onresize": function () { }
  4300. }, {
  4301. closecallback: function () { }
  4302. }, {
  4303. "style": {
  4304. "height": "36px"
  4305. }
  4306. }).form; //创建窗体
  4307. _taskbar = {
  4308. "id": str + _formdiv.id,
  4309. "style": {
  4310. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4311. },
  4312. "name": "思维网格",
  4313. "forms": _formdiv,
  4314. "click": function () {
  4315. U.MD.D.I.openApplication(str, obj, info);
  4316. }
  4317. }
  4318. break;
  4319. case "courseDesign":
  4320. _iframe = $$("iframe", {
  4321. "webkitallowfullscreen": "",
  4322. "mozallowfullscreen": "",
  4323. "allowfullscreen": "",
  4324. "frameborder": "no",
  4325. "border": "0",
  4326. "scrolling ": "no",
  4327. "style": {
  4328. "cssText": "border:0; width:100%; height:100%;"
  4329. },
  4330. "src": "/course-design-vue"
  4331. })
  4332. _box.appendChild(_iframe);
  4333. _box.appendChild(_jie);
  4334. _formdiv = new U.UF.UI.form(
  4335. "项目设计",
  4336. _box, {
  4337. "id": "courseDesign" + cid + stage + task + tool,
  4338. "style": {
  4339. "width": "90%",
  4340. "height": "90%",
  4341. "overflow": 'hidden'
  4342. },
  4343. "onresize": function () { }
  4344. }, {
  4345. closecallback: function () { }
  4346. }, {
  4347. "style": {
  4348. "height": "36px"
  4349. }
  4350. }).form; //创建窗体
  4351. _taskbar = {
  4352. "id": str + _formdiv.id,
  4353. "style": {
  4354. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4355. },
  4356. "name": "项目设计",
  4357. "forms": _formdiv,
  4358. "click": function () {
  4359. U.MD.D.I.openApplication(str, obj, info);
  4360. }
  4361. }
  4362. break;
  4363. }
  4364. const script1 = document.createElement("script");
  4365. script1.type = "text/javascript";
  4366. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4367. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4368. const script2 = document.createElement("script");
  4369. script2.type = "text/javascript";
  4370. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4371. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4372. const script3 = document.createElement("script");
  4373. script3.type = "text/javascript";
  4374. script3.charset = "UTF-8";
  4375. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4376. const script4 = document.createElement("script");
  4377. script4.type = "text/javascript";
  4378. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4379. script4.src = window.origin + "/js/Common/jietu2E.js";
  4380. if (_iframe) {
  4381. if (str == 'doc') {
  4382. _iframe = _formdiv.querySelector('iframe')
  4383. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4384. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4385. _iframe.contentWindow.document.body.appendChild(script1);
  4386. _iframe.contentWindow.document.body.appendChild(script2);
  4387. // _iframe.contentWindow.document.body.appendChild(script3);
  4388. _iframe.contentWindow.document.body.appendChild(script4);
  4389. })
  4390. if (onloadListener) {
  4391. _iframe.contentDocument.location.reload()
  4392. } else {
  4393. _iframe.contentDocument.location.reload()
  4394. }
  4395. } else if (str == 'courseDesign') {
  4396. U.UF.DL.iframeLoad(_iframe, function () {
  4397. // _iframe.contentWindow.U.MD.O.W.load();
  4398. // _iframe.contentWindow.document.body.appendChild(script1);
  4399. _iframe.contentWindow.document.body.appendChild(script2);
  4400. _iframe.contentWindow.document.body.appendChild(script4);
  4401. })
  4402. } else if (str == 'mind') {
  4403. _iframe = _formdiv.querySelector('iframe')
  4404. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4405. //
  4406. _iframe.contentWindow.document.body.appendChild(script1);
  4407. _iframe.contentWindow.document.body.appendChild(script2);
  4408. _iframe.contentWindow.document.body.appendChild(script4);
  4409. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4410. })
  4411. if (onloadListener) {
  4412. _iframe.contentDocument.location.reload()
  4413. } else {
  4414. _iframe.contentDocument.location.reload()
  4415. }
  4416. } else if (str == 'whiteboard') {
  4417. _iframe = _formdiv.querySelector('iframe')
  4418. let onloadListener = _iframe.onload = () => {
  4419. _iframe.contentWindow.document.body.appendChild(script1);
  4420. _iframe.contentWindow.document.body.appendChild(script2);
  4421. _iframe.contentWindow.document.body.appendChild(script4);
  4422. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4423. };
  4424. if (onloadListener) {
  4425. _iframe.contentDocument.location.reload()
  4426. } else {
  4427. _iframe.contentDocument.location.reload()
  4428. }
  4429. } else {
  4430. _iframe.onload = () => {
  4431. _iframe.contentWindow.document.body.appendChild(script1);
  4432. _iframe.contentWindow.document.body.appendChild(script2);
  4433. // _iframe.contentWindow.document.body.appendChild(script3);
  4434. _iframe.contentWindow.document.body.appendChild(script4);
  4435. };
  4436. }
  4437. _jie.onclick = async () => {
  4438. let text = ''
  4439. if (aTool == 1) {
  4440. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4441. } else if (aTool == 6) {
  4442. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4443. } else if (aTool == 3) {
  4444. text = await U.MD.D.I.getEditorContent(_iframe);
  4445. }
  4446. _loading.style.display = 'flex'
  4447. console.log(_loading);
  4448. var _ajs = _iframe.contentWindow.document.createElement("script");
  4449. _ajs.type = "text/javascript";
  4450. _ajs.innerHTML =
  4451. // 'console.log(' + _loading + ');\n' +
  4452. 'var _js = document.createElement("script");\n' +
  4453. '_js.type="text/javascript";\n' +
  4454. '_js.charset="UTF-8";\n' +
  4455. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4456. "_js.onload = function(){\n" +
  4457. ' var a = document.getElementsByTagName("img")\n' +
  4458. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4459. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4460. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4461. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4462. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4463. "beforeUpload_shishi(file," +
  4464. "'" +
  4465. _userid +
  4466. "'" +
  4467. ", " +
  4468. "'" +
  4469. _cid +
  4470. "'" +
  4471. ", " +
  4472. "'" +
  4473. _stage +
  4474. "'" +
  4475. ", " +
  4476. "'" +
  4477. _task +
  4478. "'" +
  4479. ", " +
  4480. "'" +
  4481. _tool +
  4482. "'" +
  4483. ", " +
  4484. "'" +
  4485. (str + '_loadLi_JieE' + cid + stage + task + tool+_userid) +
  4486. "'" +
  4487. ", " +
  4488. "'" +
  4489. aTool +
  4490. "'" +
  4491. ", " +
  4492. "`" +
  4493. text +
  4494. "`" +
  4495. ")\n" +
  4496. " });\n" +
  4497. "}\n" +
  4498. "document.head.appendChild(_js);\n";
  4499. _iframe.contentWindow.document.head.appendChild(_ajs);
  4500. }
  4501. }
  4502. //U.MD.D.I.openClick(str);
  4503. //如果有任务栏信息
  4504. // if (_taskbar) {
  4505. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4506. // }
  4507. }
  4508. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4509. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4510. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4511. _userid = student.userid, //登录用户id
  4512. _username = student.student //用户名字
  4513. let _iframe;
  4514. let _cid = cid,
  4515. _stage = stage,
  4516. _task = task,
  4517. _tool = tool;
  4518. var _jie = $$("div", {
  4519. "style": {
  4520. "position": "absolute",
  4521. "bottom": "50px",
  4522. "right": "50px",
  4523. "zIndex": "9999",
  4524. "backgroundColor": "#2268bc",
  4525. "color": "#fff",
  4526. "padding": "12px 20px",
  4527. "cursor": "pointer",
  4528. "borderRadius": "4px",
  4529. },
  4530. "innerHTML": "提交作业"
  4531. })
  4532. let aTool = ''
  4533. let _loading = document.createElement('div')
  4534. _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;"
  4535. // _loading.id = "";
  4536. let _lchild = document.createElement('div')
  4537. let _limg = document.createElement('img')
  4538. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4539. _limg.style = "width: 26px;margin-right: 10px;"
  4540. _lchild.appendChild(_limg)
  4541. let _lspan = document.createElement('span')
  4542. _lspan.innerHTML = "上传中..."
  4543. _lchild.appendChild(_lspan)
  4544. _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%);"
  4545. _loading.appendChild(_lchild)
  4546. var _box = $$('div', {
  4547. "style": {
  4548. "position": "relative",
  4549. "width": "100%",
  4550. "height": "100%",
  4551. },
  4552. })
  4553. _box.appendChild(_loading)
  4554. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid
  4555. switch (str) {
  4556. case "whiteboard":
  4557. aTool = 1;
  4558. _iframe = $$("iframe", {
  4559. "frameborder": "no",
  4560. "border": "0",
  4561. "scrolling ": "no",
  4562. "style": {
  4563. "cssText": "border:0;width:100%;height:100%"
  4564. },
  4565. "src": "https://iwb.cocorobo.cn/"
  4566. })
  4567. _box.appendChild(_iframe);
  4568. _box.appendChild(_jie);
  4569. _formdiv = new U.UF.UI.form(
  4570. "电子白板-" + _username,
  4571. _box, {
  4572. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4573. "style": {
  4574. "width": "90%",
  4575. "height": "90%",
  4576. "overflow": 'hidden'
  4577. },
  4578. "onresize": function () { }
  4579. }, {
  4580. closecallback: function () { }
  4581. }, {
  4582. "style": {
  4583. "height": "36px"
  4584. }
  4585. }).form; //创建窗体
  4586. _taskbar = {
  4587. "id": str + _formdiv.id,
  4588. "style": {
  4589. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4590. },
  4591. "name": "电子白板",
  4592. "forms": _formdiv,
  4593. "click": function () {
  4594. U.MD.D.I.openApplication(str, obj, info);
  4595. }
  4596. }
  4597. break;
  4598. case "mind":
  4599. aTool = 3;
  4600. _iframe = $$("iframe", {
  4601. "frameborder": "no",
  4602. "border": "0",
  4603. "scrolling ": "no",
  4604. "style": {
  4605. "cssText": "border:0;width:100%;height:100%"
  4606. },
  4607. "src": "/kityminder-editor/dist/index.html"
  4608. })
  4609. _box.appendChild(_iframe);
  4610. _box.appendChild(_jie);
  4611. _formdiv = new U.UF.UI.form(
  4612. "思维导图-" + _username,
  4613. _box, { //"/jsmind/example/demo.html"
  4614. "id": "mind" + cid + stage + task + tool + _userid,
  4615. "style": {
  4616. "width": "90%",
  4617. "height": "90%",
  4618. "overflow": 'hidden'
  4619. },
  4620. "onresize": function () { }
  4621. }, {
  4622. closecallback: function () { }
  4623. }, {
  4624. "style": {
  4625. "height": "36px"
  4626. }
  4627. }).form; //创建窗体
  4628. _taskbar = {
  4629. "id": str + _formdiv.id,
  4630. "style": {
  4631. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4632. },
  4633. "name": "思维导图",
  4634. "forms": _formdiv,
  4635. "click": function () {
  4636. U.MD.D.I.openApplication(str, obj, info);
  4637. }
  4638. }
  4639. break;
  4640. case "MindMap":
  4641. aTool = 3;
  4642. _iframe = $$("iframe", {
  4643. "frameborder": "no",
  4644. "border": "0",
  4645. "scrolling ": "no",
  4646. "style": {
  4647. "cssText": "border:0;width:100%;height:100%"
  4648. },
  4649. "src": "//cloud.cocorobo.cn/mind/"
  4650. })
  4651. _box.appendChild(_iframe);
  4652. _box.appendChild(_jie);
  4653. _formdiv = new U.UF.UI.form(
  4654. "思维导图-" + _username,
  4655. _box, { //"/jsmind/example/demo.html"
  4656. "id": "mind" + cid + stage + task + tool + _userid,
  4657. "style": {
  4658. "width": "90%",
  4659. "height": "90%",
  4660. "overflow": 'hidden'
  4661. },
  4662. "onresize": function () { }
  4663. }, {
  4664. closecallback: function () { }
  4665. }, {
  4666. "style": {
  4667. "height": "36px"
  4668. }
  4669. }).form; //创建窗体
  4670. _taskbar = {
  4671. "id": str + _formdiv.id,
  4672. "style": {
  4673. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4674. },
  4675. "name": "思维导图",
  4676. "forms": _formdiv,
  4677. "click": function () {
  4678. U.MD.D.I.openApplication(str, obj, info);
  4679. }
  4680. }
  4681. break;
  4682. case "doc":
  4683. aTool = 6;
  4684. _iframe = $$("iframe", {
  4685. "frameborder": "no",
  4686. "border": "0",
  4687. "scrolling ": "no",
  4688. "style": {
  4689. "cssText": "border:0;width:100%;height:100%"
  4690. },
  4691. "src": "/Office/Word/WordEditArea.htm"
  4692. })
  4693. _box.appendChild(_iframe);
  4694. _box.appendChild(_jie);
  4695. _formdiv = new U.UF.UI.form(
  4696. "协同文档-" + _username,
  4697. _box, {
  4698. "id": "doc" + cid + stage + task + tool + _userid,
  4699. "style": {
  4700. "width": "90%",
  4701. "height": "90%",
  4702. "overflow": 'hidden'
  4703. },
  4704. "onresize": function () { }
  4705. }, {
  4706. closecallback: function () { }
  4707. }, {
  4708. "style": {
  4709. "height": "36px"
  4710. }
  4711. }).form; //创建窗体
  4712. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4713. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4714. })
  4715. _taskbar = {
  4716. "id": str + _formdiv.id,
  4717. "style": {
  4718. "backgroundImage": "url(/img/icon/doc.png)"
  4719. },
  4720. "name": "协同文档",
  4721. "forms": _formdiv,
  4722. "click": function () {
  4723. U.MD.D.I.openApplication(str, obj, info);
  4724. }
  4725. }
  4726. break;
  4727. case "mindNetwork": //好友打开
  4728. aTool = 7;
  4729. _iframe = $$("iframe", {
  4730. "webkitallowfullscreen": "",
  4731. "mozallowfullscreen": "",
  4732. "allowfullscreen": "",
  4733. "frameborder": "no",
  4734. "border": "0",
  4735. "scrolling ": "no",
  4736. "style": {
  4737. "cssText": "border:0; width:100%; height:100%;"
  4738. },
  4739. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4740. })
  4741. _box.appendChild(_iframe);
  4742. _box.appendChild(_jie);
  4743. _formdiv = new U.UF.UI.form(
  4744. "思维网格-" + _username,
  4745. _box, {
  4746. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4747. "style": {
  4748. "width": "90%",
  4749. "height": "90%",
  4750. "overflow": 'hidden'
  4751. },
  4752. "onresize": function () { }
  4753. }, {
  4754. closecallback: function () { }
  4755. }, {
  4756. "style": {
  4757. "height": "36px"
  4758. }
  4759. }).form; //创建窗体
  4760. _taskbar = {
  4761. "id": str + _formdiv.id,
  4762. "style": {
  4763. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4764. },
  4765. "name": "思维网格",
  4766. "forms": _formdiv,
  4767. "click": function () {
  4768. U.MD.D.I.openApplication(str, obj, info);
  4769. }
  4770. }
  4771. break;
  4772. case "courseDesign":
  4773. _iframe = $$("iframe", {
  4774. "webkitallowfullscreen": "",
  4775. "mozallowfullscreen": "",
  4776. "allowfullscreen": "",
  4777. "frameborder": "no",
  4778. "border": "0",
  4779. "scrolling ": "no",
  4780. "style": {
  4781. "cssText": "border:0; width:100%; height:100%;"
  4782. },
  4783. "src": "/course-design-vue"
  4784. })
  4785. _box.appendChild(_iframe);
  4786. _box.appendChild(_jie);
  4787. _formdiv = new U.UF.UI.form(
  4788. "项目设计-" + _username,
  4789. _box, {
  4790. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4791. "style": {
  4792. "width": "90%",
  4793. "height": "90%",
  4794. "overflow": 'hidden'
  4795. },
  4796. "onresize": function () { }
  4797. }, {
  4798. closecallback: function () { }
  4799. }, {
  4800. "style": {
  4801. "height": "36px"
  4802. }
  4803. }).form; //创建窗体
  4804. _taskbar = {
  4805. "id": str + _formdiv.id,
  4806. "style": {
  4807. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4808. },
  4809. "name": "项目设计",
  4810. "forms": _formdiv,
  4811. "click": function () {
  4812. U.MD.D.I.openApplication(str, obj, info);
  4813. }
  4814. }
  4815. break;
  4816. }
  4817. const script1 = document.createElement("script");
  4818. script1.type = "text/javascript";
  4819. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4820. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4821. const script2 = document.createElement("script");
  4822. script2.type = "text/javascript";
  4823. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4824. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4825. const script3 = document.createElement("script");
  4826. script3.type = "text/javascript";
  4827. script3.charset = "UTF-8";
  4828. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4829. const script4 = document.createElement("script");
  4830. script4.type = "text/javascript";
  4831. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4832. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4833. if (_iframe) {
  4834. if (str == 'doc') {
  4835. _iframe = _formdiv.querySelector('iframe')
  4836. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4837. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4838. _iframe.contentWindow.document.body.appendChild(script1);
  4839. _iframe.contentWindow.document.body.appendChild(script2);
  4840. // _iframe.contentWindow.document.body.appendChild(script3);
  4841. _iframe.contentWindow.document.body.appendChild(script4);
  4842. })
  4843. if (onloadListener) {
  4844. _iframe.contentDocument.location.reload()
  4845. } else {
  4846. _iframe.contentDocument.location.reload()
  4847. }
  4848. } else if (str == 'courseDesign') {
  4849. U.UF.DL.iframeLoad(_iframe, function () {
  4850. // _iframe.contentWindow.U.MD.O.W.load();
  4851. // _iframe.contentWindow.document.body.appendChild(script1);
  4852. _iframe.contentWindow.document.body.appendChild(script2);
  4853. _iframe.contentWindow.document.body.appendChild(script4);
  4854. })
  4855. } else if (str == 'mind') {
  4856. _iframe = _formdiv.querySelector('iframe')
  4857. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4858. //
  4859. _iframe.contentWindow.document.body.appendChild(script1);
  4860. _iframe.contentWindow.document.body.appendChild(script2);
  4861. _iframe.contentWindow.document.body.appendChild(script4);
  4862. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4863. })
  4864. if (onloadListener) {
  4865. _iframe.contentDocument.location.reload()
  4866. } else {
  4867. _iframe.contentDocument.location.reload()
  4868. }
  4869. } else if (str == 'whiteboard') {
  4870. _iframe = _formdiv.querySelector('iframe')
  4871. let onloadListener = _iframe.onload = () => {
  4872. _iframe.contentWindow.document.body.appendChild(script1);
  4873. _iframe.contentWindow.document.body.appendChild(script2);
  4874. _iframe.contentWindow.document.body.appendChild(script4);
  4875. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4876. };
  4877. if (onloadListener) {
  4878. _iframe.contentDocument.location.reload()
  4879. } else {
  4880. _iframe.contentDocument.location.reload()
  4881. }
  4882. } else {
  4883. _iframe.onload = () => {
  4884. _iframe.contentWindow.document.body.appendChild(script1);
  4885. _iframe.contentWindow.document.body.appendChild(script2);
  4886. // _iframe.contentWindow.document.body.appendChild(script3);
  4887. _iframe.contentWindow.document.body.appendChild(script4);
  4888. };
  4889. }
  4890. _jie.onclick = async () => {
  4891. let text = ''
  4892. if (aTool == 1) {
  4893. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4894. } else if (aTool == 6) {
  4895. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4896. } else if (aTool == 3) {
  4897. text = await U.MD.D.I.getEditorContent(_iframe);
  4898. }
  4899. _loading.style.display = 'flex'
  4900. console.log(_loading);
  4901. var _ajs = _iframe.contentWindow.document.createElement("script");
  4902. _ajs.type = "text/javascript";
  4903. _ajs.innerHTML =
  4904. // 'console.log(' + _loading + ');\n' +
  4905. 'var _js = document.createElement("script");\n' +
  4906. '_js.type="text/javascript";\n' +
  4907. '_js.charset="UTF-8";\n' +
  4908. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4909. "_js.onload = function(){\n" +
  4910. ' var a = document.getElementsByTagName("img")\n' +
  4911. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4912. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4913. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4914. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4915. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4916. "beforeUpload_shishi(file," +
  4917. "'" +
  4918. _userid +
  4919. "'" +
  4920. ", " +
  4921. "'" +
  4922. _cid +
  4923. "'" +
  4924. ", " +
  4925. "'" +
  4926. _stage +
  4927. "'" +
  4928. ", " +
  4929. "'" +
  4930. _task +
  4931. "'" +
  4932. ", " +
  4933. "'" +
  4934. _tool +
  4935. "'" +
  4936. ", " +
  4937. "'" +
  4938. (str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid) +
  4939. "'" +
  4940. ", " +
  4941. "'" +
  4942. aTool +
  4943. "'" +
  4944. ", " +
  4945. "`" +
  4946. text +
  4947. "`" +
  4948. ")\n" +
  4949. " });\n" +
  4950. "}\n" +
  4951. "document.head.appendChild(_js);\n";
  4952. _iframe.contentWindow.document.head.appendChild(_ajs);
  4953. }
  4954. }
  4955. }
  4956. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  4957. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4958. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4959. _userid = student.userid, //登录用户id
  4960. _username = student.student //用户名字
  4961. let _iframe;
  4962. let _cid = cid,
  4963. _stage = stage,
  4964. _task = task,
  4965. _tool = tool;
  4966. var _jie = $$("div", {
  4967. "style": {
  4968. "position": "absolute",
  4969. "bottom": "50px",
  4970. "right": "50px",
  4971. "zIndex": "9999",
  4972. "backgroundColor": "#2268bc",
  4973. "color": "#fff",
  4974. "padding": "12px 20px",
  4975. "cursor": "pointer",
  4976. "borderRadius": "4px",
  4977. },
  4978. "innerHTML": "提交作业"
  4979. })
  4980. let aTool = ''
  4981. let _loading = document.createElement('div')
  4982. _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;"
  4983. // _loading.id = "";
  4984. let _lchild = document.createElement('div')
  4985. let _limg = document.createElement('img')
  4986. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4987. _limg.style = "width: 26px;margin-right: 10px;"
  4988. _lchild.appendChild(_limg)
  4989. let _lspan = document.createElement('span')
  4990. _lspan.innerHTML = "上传中..."
  4991. _lchild.appendChild(_lspan)
  4992. _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%);"
  4993. _loading.appendChild(_lchild)
  4994. var _box = $$('div', {
  4995. "style": {
  4996. "position": "relative",
  4997. "width": "100%",
  4998. "height": "100%",
  4999. },
  5000. })
  5001. _box.appendChild(_loading)
  5002. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5003. switch (str) {
  5004. case "whiteboard":
  5005. aTool = 1;
  5006. _iframe = $$("iframe", {
  5007. "frameborder": "no",
  5008. "border": "0",
  5009. "scrolling ": "no",
  5010. "style": {
  5011. "cssText": "border:0;width:100%;height:100%"
  5012. },
  5013. "src": "https://iwb.cocorobo.cn/"
  5014. })
  5015. _box.appendChild(_iframe);
  5016. _box.appendChild(_jie);
  5017. _formdiv = new U.UF.UI.form(
  5018. "电子白板-" + _username,
  5019. _box, {
  5020. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5021. "style": {
  5022. "width": "90%",
  5023. "height": "90%",
  5024. "overflow": 'hidden'
  5025. },
  5026. "onresize": function () { }
  5027. }, {
  5028. closecallback: function () { }
  5029. }, {
  5030. "style": {
  5031. "height": "36px"
  5032. }
  5033. }).form; //创建窗体
  5034. _taskbar = {
  5035. "id": str + _formdiv.id,
  5036. "style": {
  5037. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5038. },
  5039. "name": "电子白板",
  5040. "forms": _formdiv,
  5041. "click": function () {
  5042. U.MD.D.I.openApplication(str, obj, info);
  5043. }
  5044. }
  5045. break;
  5046. case "mind":
  5047. aTool = 3;
  5048. _iframe = $$("iframe", {
  5049. "frameborder": "no",
  5050. "border": "0",
  5051. "scrolling ": "no",
  5052. "style": {
  5053. "cssText": "border:0;width:100%;height:100%"
  5054. },
  5055. "src": "/kityminder-editor/dist/index.html"
  5056. })
  5057. _box.appendChild(_iframe);
  5058. _box.appendChild(_jie);
  5059. _formdiv = new U.UF.UI.form(
  5060. "思维导图-" + _username,
  5061. _box, { //"/jsmind/example/demo.html"
  5062. "id": "mind" + cid + stage + task + tool + _userid,
  5063. "style": {
  5064. "width": "90%",
  5065. "height": "90%",
  5066. "overflow": 'hidden'
  5067. },
  5068. "onresize": function () { }
  5069. }, {
  5070. closecallback: function () { }
  5071. }, {
  5072. "style": {
  5073. "height": "36px"
  5074. }
  5075. }).form; //创建窗体
  5076. _taskbar = {
  5077. "id": str + _formdiv.id,
  5078. "style": {
  5079. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5080. },
  5081. "name": "思维导图",
  5082. "forms": _formdiv,
  5083. "click": function () {
  5084. U.MD.D.I.openApplication(str, obj, info);
  5085. }
  5086. }
  5087. break;
  5088. case "MindMap":
  5089. aTool = 3;
  5090. _iframe = $$("iframe", {
  5091. "frameborder": "no",
  5092. "border": "0",
  5093. "scrolling ": "no",
  5094. "style": {
  5095. "cssText": "border:0;width:100%;height:100%"
  5096. },
  5097. "src": "//cloud.cocorobo.cn/mind/"
  5098. })
  5099. _box.appendChild(_iframe);
  5100. _box.appendChild(_jie);
  5101. _formdiv = new U.UF.UI.form(
  5102. "思维导图-" + _username,
  5103. _box, { //"/jsmind/example/demo.html"
  5104. "id": "mind" + cid + stage + task + tool + _userid,
  5105. "style": {
  5106. "width": "90%",
  5107. "height": "90%",
  5108. "overflow": 'hidden'
  5109. },
  5110. "onresize": function () { }
  5111. }, {
  5112. closecallback: function () { }
  5113. }, {
  5114. "style": {
  5115. "height": "36px"
  5116. }
  5117. }).form; //创建窗体
  5118. _taskbar = {
  5119. "id": str + _formdiv.id,
  5120. "style": {
  5121. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5122. },
  5123. "name": "思维导图",
  5124. "forms": _formdiv,
  5125. "click": function () {
  5126. U.MD.D.I.openApplication(str, obj, info);
  5127. }
  5128. }
  5129. break;
  5130. case "doc":
  5131. aTool = 6;
  5132. _iframe = $$("iframe", {
  5133. "frameborder": "no",
  5134. "border": "0",
  5135. "scrolling ": "no",
  5136. "style": {
  5137. "cssText": "border:0;width:100%;height:100%"
  5138. },
  5139. "src": "/Office/Word/WordEditArea.htm"
  5140. })
  5141. _box.appendChild(_iframe);
  5142. _box.appendChild(_jie);
  5143. _formdiv = new U.UF.UI.form(
  5144. "协同文档-" + _username,
  5145. _box, {
  5146. "id": "doc" + cid + stage + task + tool + _userid,
  5147. "style": {
  5148. "width": "90%",
  5149. "height": "90%",
  5150. "overflow": 'hidden'
  5151. },
  5152. "onresize": function () { }
  5153. }, {
  5154. closecallback: function () { }
  5155. }, {
  5156. "style": {
  5157. "height": "36px"
  5158. }
  5159. }).form; //创建窗体
  5160. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5161. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5162. })
  5163. _taskbar = {
  5164. "id": str + _formdiv.id,
  5165. "style": {
  5166. "backgroundImage": "url(/img/icon/doc.png)"
  5167. },
  5168. "name": "协同文档",
  5169. "forms": _formdiv,
  5170. "click": function () {
  5171. U.MD.D.I.openApplication(str, obj, info);
  5172. }
  5173. }
  5174. break;
  5175. case "mindNetwork": //好友打开
  5176. aTool = 7;
  5177. _iframe = $$("iframe", {
  5178. "webkitallowfullscreen": "",
  5179. "mozallowfullscreen": "",
  5180. "allowfullscreen": "",
  5181. "frameborder": "no",
  5182. "border": "0",
  5183. "scrolling ": "no",
  5184. "style": {
  5185. "cssText": "border:0; width:100%; height:100%;"
  5186. },
  5187. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5188. })
  5189. _box.appendChild(_iframe);
  5190. _box.appendChild(_jie);
  5191. _formdiv = new U.UF.UI.form(
  5192. "思维网格-" + _username,
  5193. _box, {
  5194. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5195. "style": {
  5196. "width": "90%",
  5197. "height": "90%",
  5198. "overflow": 'hidden'
  5199. },
  5200. "onresize": function () { }
  5201. }, {
  5202. closecallback: function () { }
  5203. }, {
  5204. "style": {
  5205. "height": "36px"
  5206. }
  5207. }).form; //创建窗体
  5208. _taskbar = {
  5209. "id": str + _formdiv.id,
  5210. "style": {
  5211. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5212. },
  5213. "name": "思维网格",
  5214. "forms": _formdiv,
  5215. "click": function () {
  5216. U.MD.D.I.openApplication(str, obj, info);
  5217. }
  5218. }
  5219. break;
  5220. case "courseDesign":
  5221. _iframe = $$("iframe", {
  5222. "webkitallowfullscreen": "",
  5223. "mozallowfullscreen": "",
  5224. "allowfullscreen": "",
  5225. "frameborder": "no",
  5226. "border": "0",
  5227. "scrolling ": "no",
  5228. "style": {
  5229. "cssText": "border:0; width:100%; height:100%;"
  5230. },
  5231. "src": "/course-design-vue"
  5232. })
  5233. _box.appendChild(_iframe);
  5234. _box.appendChild(_jie);
  5235. _formdiv = new U.UF.UI.form(
  5236. "项目设计-" + _username,
  5237. _box, {
  5238. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5239. "style": {
  5240. "width": "90%",
  5241. "height": "90%",
  5242. "overflow": 'hidden'
  5243. },
  5244. "onresize": function () { }
  5245. }, {
  5246. closecallback: function () { }
  5247. }, {
  5248. "style": {
  5249. "height": "36px"
  5250. }
  5251. }).form; //创建窗体
  5252. _taskbar = {
  5253. "id": str + _formdiv.id,
  5254. "style": {
  5255. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5256. },
  5257. "name": "项目设计",
  5258. "forms": _formdiv,
  5259. "click": function () {
  5260. U.MD.D.I.openApplication(str, obj, info);
  5261. }
  5262. }
  5263. break;
  5264. }
  5265. const script1 = document.createElement("script");
  5266. script1.type = "text/javascript";
  5267. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5268. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5269. const script2 = document.createElement("script");
  5270. script2.type = "text/javascript";
  5271. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5272. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5273. const script3 = document.createElement("script");
  5274. script3.type = "text/javascript";
  5275. script3.charset = "UTF-8";
  5276. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5277. const script4 = document.createElement("script");
  5278. script4.type = "text/javascript";
  5279. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5280. script4.src = window.origin + "/js/Common/jietu2E.js";
  5281. if (_iframe) {
  5282. if (str == 'doc') {
  5283. _iframe = _formdiv.querySelector('iframe')
  5284. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5285. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5286. _iframe.contentWindow.document.body.appendChild(script1);
  5287. _iframe.contentWindow.document.body.appendChild(script2);
  5288. // _iframe.contentWindow.document.body.appendChild(script3);
  5289. _iframe.contentWindow.document.body.appendChild(script4);
  5290. })
  5291. if (onloadListener) {
  5292. _iframe.contentDocument.location.reload()
  5293. } else {
  5294. _iframe.contentDocument.location.reload()
  5295. }
  5296. } else if (str == 'courseDesign') {
  5297. U.UF.DL.iframeLoad(_iframe, function () {
  5298. // _iframe.contentWindow.U.MD.O.W.load();
  5299. // _iframe.contentWindow.document.body.appendChild(script1);
  5300. _iframe.contentWindow.document.body.appendChild(script2);
  5301. _iframe.contentWindow.document.body.appendChild(script4);
  5302. })
  5303. } else if (str == 'mind') {
  5304. _iframe = _formdiv.querySelector('iframe')
  5305. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5306. //
  5307. _iframe.contentWindow.document.body.appendChild(script1);
  5308. _iframe.contentWindow.document.body.appendChild(script2);
  5309. _iframe.contentWindow.document.body.appendChild(script4);
  5310. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5311. })
  5312. if (onloadListener) {
  5313. _iframe.contentDocument.location.reload()
  5314. } else {
  5315. _iframe.contentDocument.location.reload()
  5316. }
  5317. } else if (str == 'whiteboard') {
  5318. _iframe = _formdiv.querySelector('iframe')
  5319. let onloadListener = _iframe.onload = () => {
  5320. _iframe.contentWindow.document.body.appendChild(script1);
  5321. _iframe.contentWindow.document.body.appendChild(script2);
  5322. _iframe.contentWindow.document.body.appendChild(script4);
  5323. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5324. };
  5325. if (onloadListener) {
  5326. _iframe.contentDocument.location.reload()
  5327. } else {
  5328. _iframe.contentDocument.location.reload()
  5329. }
  5330. } else {
  5331. _iframe.onload = () => {
  5332. _iframe.contentWindow.document.body.appendChild(script1);
  5333. _iframe.contentWindow.document.body.appendChild(script2);
  5334. // _iframe.contentWindow.document.body.appendChild(script3);
  5335. _iframe.contentWindow.document.body.appendChild(script4);
  5336. };
  5337. }
  5338. _jie.onclick = async () => {
  5339. let text = ''
  5340. if (aTool == 1) {
  5341. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5342. } else if (aTool == 6) {
  5343. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5344. } else if (aTool == 3) {
  5345. text = await U.MD.D.I.getEditorContent(_iframe);
  5346. }
  5347. _loading.style.display = 'flex'
  5348. console.log(_loading);
  5349. var _ajs = _iframe.contentWindow.document.createElement("script");
  5350. _ajs.type = "text/javascript";
  5351. _ajs.innerHTML =
  5352. // 'console.log(' + _loading + ');\n' +
  5353. 'var _js = document.createElement("script");\n' +
  5354. '_js.type="text/javascript";\n' +
  5355. '_js.charset="UTF-8";\n' +
  5356. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5357. "_js.onload = function(){\n" +
  5358. ' var a = document.getElementsByTagName("img")\n' +
  5359. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5360. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5361. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5362. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5363. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5364. "beforeUpload_shishi(file," +
  5365. "'" +
  5366. _userid +
  5367. "'" +
  5368. ", " +
  5369. "'" +
  5370. _cid +
  5371. "'" +
  5372. ", " +
  5373. "'" +
  5374. _stage +
  5375. "'" +
  5376. ", " +
  5377. "'" +
  5378. _task +
  5379. "'" +
  5380. ", " +
  5381. "'" +
  5382. _tool +
  5383. "'" +
  5384. ", " +
  5385. "'" +
  5386. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool+_userid) +
  5387. "'" +
  5388. ", " +
  5389. "'" +
  5390. aTool +
  5391. "'" +
  5392. ", " +
  5393. "`" +
  5394. text +
  5395. "`" +
  5396. ")\n" +
  5397. " });\n" +
  5398. "}\n" +
  5399. "document.head.appendChild(_js);\n";
  5400. _iframe.contentWindow.document.head.appendChild(_ajs);
  5401. }
  5402. }
  5403. }
  5404. U.MD.D.I.getEditorContent = function (iframe) {
  5405. return new Promise((resolve, reject) => {
  5406. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5407. console.log(content);
  5408. resolve(content)
  5409. });
  5410. });
  5411. }
  5412. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5413. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5414. // if (res.value[0].length > 0) {
  5415. // // resolve(res.value[0][0].text);
  5416. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5417. // $(fileInput).val('');
  5418. // });
  5419. // }
  5420. // }, [], { "type": "GET", "withCredentials": true });
  5421. var xmlhttp;
  5422. var Mac, Sn, DeviceId
  5423. if (window.XMLHttpRequest) {
  5424. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5425. xmlhttp = new XMLHttpRequest();
  5426. }
  5427. else {
  5428. // IE6, IE5 浏览器执行代码
  5429. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5430. }
  5431. xmlhttp.onreadystatechange = function () {
  5432. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5433. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5434. // resolve(res.value[0][0].text);
  5435. if (type == '2') {
  5436. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  5437. } else if (type == '3') {
  5438. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5439. }
  5440. } else {
  5441. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5442. }
  5443. }
  5444. }
  5445. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5446. xmlhttp.send();
  5447. }
  5448. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5449. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5450. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5451. _userinfo = US.userInfo, //登录用户信息
  5452. _userid = US.userInfo.userid //登录用户id
  5453. let _iframe;
  5454. let _cid = cid,
  5455. _stage = stage,
  5456. _task = task,
  5457. _tool = tool;
  5458. var _jie = $$("div", {
  5459. "style": {
  5460. "position": "absolute",
  5461. "bottom": "50px",
  5462. "right": "50px",
  5463. "zIndex": "9999",
  5464. "backgroundColor": "#2268bc",
  5465. "color": "#fff",
  5466. "padding": "12px 20px",
  5467. "cursor": "pointer",
  5468. "borderRadius": "4px",
  5469. },
  5470. "innerHTML": "确认并提交"
  5471. })
  5472. let aTool = ''
  5473. let _loading = document.createElement('div')
  5474. _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;"
  5475. // _loading.id = "";
  5476. let _lchild = document.createElement('div')
  5477. let _limg = document.createElement('img')
  5478. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5479. _limg.style = "width: 26px;margin-right: 10px;"
  5480. _lchild.appendChild(_limg)
  5481. let _lspan = document.createElement('span')
  5482. _lspan.innerHTML = "上传中..."
  5483. _lchild.appendChild(_lspan)
  5484. _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%);"
  5485. _loading.appendChild(_lchild)
  5486. var _box = $$('div', {
  5487. "style": {
  5488. "position": "relative",
  5489. "width": "100%",
  5490. "height": "100%",
  5491. },
  5492. })
  5493. _box.appendChild(_loading)
  5494. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool+_userid
  5495. switch (str) {
  5496. case "whiteboard":
  5497. aTool = 1;
  5498. _iframe = $$("iframe", {
  5499. "frameborder": "no",
  5500. "border": "0",
  5501. "scrolling ": "no",
  5502. "style": {
  5503. "cssText": "border:0;width:100%;height:100%"
  5504. },
  5505. "src": "https://iwb.cocorobo.cn/"
  5506. })
  5507. _box.appendChild(_iframe);
  5508. _box.appendChild(_jie);
  5509. _formdiv = new U.UF.UI.form(
  5510. "电子白板",
  5511. _box, {
  5512. "id": "whiteboards" + cid + stage + task + tool,
  5513. "style": {
  5514. "width": "90%",
  5515. "height": "90%",
  5516. "overflow": 'hidden'
  5517. },
  5518. "onresize": function () { }
  5519. }, {
  5520. closecallback: function () { }
  5521. }, {
  5522. "style": {
  5523. "height": "36px"
  5524. }
  5525. }).form; //创建窗体
  5526. _taskbar = {
  5527. "id": str + _formdiv.id,
  5528. "style": {
  5529. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5530. },
  5531. "name": "电子白板",
  5532. "forms": _formdiv,
  5533. "click": function () {
  5534. U.MD.D.I.openApplication(str, obj, info);
  5535. }
  5536. }
  5537. break;
  5538. case "mind":
  5539. aTool = 3;
  5540. _iframe = $$("iframe", {
  5541. "frameborder": "no",
  5542. "border": "0",
  5543. "scrolling ": "no",
  5544. "style": {
  5545. "cssText": "border:0;width:100%;height:100%"
  5546. },
  5547. "src": "/kityminder-editor/dist/index.html"
  5548. });
  5549. _box.appendChild(_iframe);
  5550. _box.appendChild(_jie);
  5551. _formdiv = new U.UF.UI.form(
  5552. "思维导图",
  5553. _box, { //"/jsmind/example/demo.html"
  5554. "id": "minds" + cid + stage + task + tool,
  5555. "style": {
  5556. "width": "90%",
  5557. "height": "90%",
  5558. "overflow": 'hidden'
  5559. },
  5560. "onresize": function () { }
  5561. }, {
  5562. closecallback: function () { }
  5563. }, {
  5564. "style": {
  5565. "height": "36px"
  5566. }
  5567. }).form; //创建窗体
  5568. _taskbar = {
  5569. "id": str + _formdiv.id,
  5570. "style": {
  5571. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5572. },
  5573. "name": "思维导图",
  5574. "forms": _formdiv,
  5575. "click": function () {
  5576. U.MD.D.I.openApplication(str, obj, info);
  5577. }
  5578. }
  5579. break;
  5580. case "doc":
  5581. aTool = 6;
  5582. _iframe = $$("iframe", {
  5583. "frameborder": "no",
  5584. "border": "0",
  5585. "scrolling ": "no",
  5586. "style": {
  5587. "cssText": "border:0;width:100%;height:100%"
  5588. },
  5589. "src": "/Office/Word/WordEditArea.htm"
  5590. })
  5591. _box.appendChild(_iframe);
  5592. _box.appendChild(_jie);
  5593. _formdiv = new U.UF.UI.form(
  5594. "协同文档",
  5595. _box, {
  5596. "id": "docs" + cid + stage + task + tool,
  5597. "style": {
  5598. "width": "90%",
  5599. "height": "90%",
  5600. "overflow": 'hidden'
  5601. },
  5602. "onresize": function () { }
  5603. }, {
  5604. closecallback: function () { }
  5605. }, {
  5606. "style": {
  5607. "height": "36px"
  5608. }
  5609. }).form; //创建窗体
  5610. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5611. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5612. })
  5613. _taskbar = {
  5614. "id": str + _formdiv.id,
  5615. "style": {
  5616. "backgroundImage": "url(/img/icon/doc.png)"
  5617. },
  5618. "name": "协同文档",
  5619. "forms": _formdiv,
  5620. "click": function () {
  5621. U.MD.D.I.openApplication(str, obj, info);
  5622. }
  5623. }
  5624. break;
  5625. }
  5626. const script1 = document.createElement("script");
  5627. script1.type = "text/javascript";
  5628. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5629. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5630. const script2 = document.createElement("script");
  5631. script2.type = "text/javascript";
  5632. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5633. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5634. const script3 = document.createElement("script");
  5635. script3.type = "text/javascript";
  5636. script3.charset = "UTF-8";
  5637. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5638. const script4 = document.createElement("script");
  5639. script4.type = "text/javascript";
  5640. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5641. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5642. if (_iframe) {
  5643. if (str == 'doc') {
  5644. _iframe = _formdiv.querySelector('iframe')
  5645. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5646. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5647. _iframe.contentWindow.document.body.appendChild(script1);
  5648. _iframe.contentWindow.document.body.appendChild(script2);
  5649. // _iframe.contentWindow.document.body.appendChild(script3);
  5650. _iframe.contentWindow.document.body.appendChild(script4);
  5651. })
  5652. if (onloadListener) {
  5653. _iframe.contentDocument.location.reload()
  5654. } else {
  5655. _iframe.contentDocument.location.reload()
  5656. }
  5657. } else if (str == 'mind') {
  5658. _iframe = _formdiv.querySelector('iframe')
  5659. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5660. _iframe.contentWindow.document.body.appendChild(script1);
  5661. _iframe.contentWindow.document.body.appendChild(script2);
  5662. _iframe.contentWindow.document.body.appendChild(script4);
  5663. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5664. })
  5665. if (onloadListener) {
  5666. _iframe.contentDocument.location.reload()
  5667. } else {
  5668. _iframe.contentDocument.location.reload()
  5669. }
  5670. } else {
  5671. _iframe.onload = () => {
  5672. _iframe.contentWindow.document.body.appendChild(script1);
  5673. _iframe.contentWindow.document.body.appendChild(script2);
  5674. // _iframe.contentWindow.document.body.appendChild(script3);
  5675. _iframe.contentWindow.document.body.appendChild(script4);
  5676. };
  5677. }
  5678. _jie.onclick = async () => {
  5679. let text = ''
  5680. if (aTool == 6) {
  5681. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5682. } else if (aTool == 3) {
  5683. text = await U.MD.D.I.getEditorContent(_iframe);
  5684. }
  5685. _loading.style.display = 'flex'
  5686. console.log(_loading);
  5687. var _ajs = _iframe.contentWindow.document.createElement("script");
  5688. _ajs.type = "text/javascript";
  5689. _ajs.innerHTML =
  5690. // 'console.log(' + _loading + ');\n' +
  5691. 'var _js = document.createElement("script");\n' +
  5692. '_js.type="text/javascript";\n' +
  5693. '_js.charset="UTF-8";\n' +
  5694. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5695. "_js.onload = function(){\n" +
  5696. ' var a = document.getElementsByTagName("img")\n' +
  5697. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5698. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5699. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5700. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5701. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5702. "beforeUpload_shishi(file," +
  5703. "'" +
  5704. _userid +
  5705. "'" +
  5706. ", " +
  5707. "'" +
  5708. _cid +
  5709. "'" +
  5710. ", " +
  5711. "'" +
  5712. _stage +
  5713. "'" +
  5714. ", " +
  5715. "'" +
  5716. _task +
  5717. "'" +
  5718. ", " +
  5719. "'" +
  5720. _tool +
  5721. "'" +
  5722. ", " +
  5723. "'" +
  5724. (str + '_loadLi_JieS' + cid + stage + task + tool+_userid) +
  5725. "'" +
  5726. ", " +
  5727. "'" +
  5728. aTool +
  5729. "'" +
  5730. ", " +
  5731. "`" +
  5732. text +
  5733. "`" +
  5734. ")\n" +
  5735. " });\n" +
  5736. "}\n" +
  5737. "document.head.appendChild(_js);\n";
  5738. _iframe.contentWindow.document.head.appendChild(_ajs);
  5739. }
  5740. }
  5741. //U.MD.D.I.openClick(str);
  5742. //如果有任务栏信息
  5743. // if (_taskbar) {
  5744. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5745. // }
  5746. }
  5747. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  5748. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5749. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5750. _userinfo = US.userInfo, //登录用户信息
  5751. _userid = US.userInfo.userid //登录用户id
  5752. let _iframe;
  5753. let _cid = cid,
  5754. _stage = stage,
  5755. _task = task,
  5756. _tool = tool;
  5757. var _jie = $$("div", {
  5758. "style": {
  5759. "position": "absolute",
  5760. "bottom": "50px",
  5761. "right": "50px",
  5762. "zIndex": "9999",
  5763. "backgroundColor": "#2268bc",
  5764. "color": "#fff",
  5765. "padding": "12px 20px",
  5766. "cursor": "pointer",
  5767. "borderRadius": "4px",
  5768. },
  5769. "innerHTML": "确认并提交"
  5770. })
  5771. let aTool = ''
  5772. let _loading = document.createElement('div')
  5773. _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;"
  5774. // _loading.id = "";
  5775. let _lchild = document.createElement('div')
  5776. let _limg = document.createElement('img')
  5777. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5778. _limg.style = "width: 26px;margin-right: 10px;"
  5779. _lchild.appendChild(_limg)
  5780. let _lspan = document.createElement('span')
  5781. _lspan.innerHTML = "上传中..."
  5782. _lchild.appendChild(_lspan)
  5783. _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%);"
  5784. _loading.appendChild(_lchild)
  5785. var _box = $$('div', {
  5786. "style": {
  5787. "position": "relative",
  5788. "width": "100%",
  5789. "height": "100%",
  5790. },
  5791. })
  5792. _box.appendChild(_loading)
  5793. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid
  5794. switch (str) {
  5795. case "whiteboard":
  5796. aTool = 1;
  5797. _iframe = $$("iframe", {
  5798. "frameborder": "no",
  5799. "border": "0",
  5800. "scrolling ": "no",
  5801. "style": {
  5802. "cssText": "border:0;width:100%;height:100%"
  5803. },
  5804. "src": "https://iwb.cocorobo.cn/"
  5805. })
  5806. _box.appendChild(_iframe);
  5807. _box.appendChild(_jie);
  5808. _formdiv = new U.UF.UI.form(
  5809. "电子白板",
  5810. _box, {
  5811. "id": "whiteboards" + cid + stage + task + tool,
  5812. "style": {
  5813. "width": "90%",
  5814. "height": "90%",
  5815. "overflow": 'hidden'
  5816. },
  5817. "onresize": function () { }
  5818. }, {
  5819. closecallback: function () { }
  5820. }, {
  5821. "style": {
  5822. "height": "36px"
  5823. }
  5824. }).form; //创建窗体
  5825. _taskbar = {
  5826. "id": str + _formdiv.id,
  5827. "style": {
  5828. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5829. },
  5830. "name": "电子白板",
  5831. "forms": _formdiv,
  5832. "click": function () {
  5833. U.MD.D.I.openApplication(str, obj, info);
  5834. }
  5835. }
  5836. break;
  5837. case "mind":
  5838. aTool = 3;
  5839. _iframe = $$("iframe", {
  5840. "frameborder": "no",
  5841. "border": "0",
  5842. "scrolling ": "no",
  5843. "style": {
  5844. "cssText": "border:0;width:100%;height:100%"
  5845. },
  5846. "src": "/kityminder-editor/dist/index.html"
  5847. });
  5848. _box.appendChild(_iframe);
  5849. _box.appendChild(_jie);
  5850. _formdiv = new U.UF.UI.form(
  5851. "思维导图",
  5852. _box, { //"/jsmind/example/demo.html"
  5853. "id": "minds" + cid + stage + task + tool,
  5854. "style": {
  5855. "width": "90%",
  5856. "height": "90%",
  5857. "overflow": 'hidden'
  5858. },
  5859. "onresize": function () { }
  5860. }, {
  5861. closecallback: function () { }
  5862. }, {
  5863. "style": {
  5864. "height": "36px"
  5865. }
  5866. }).form; //创建窗体
  5867. _taskbar = {
  5868. "id": str + _formdiv.id,
  5869. "style": {
  5870. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5871. },
  5872. "name": "思维导图",
  5873. "forms": _formdiv,
  5874. "click": function () {
  5875. U.MD.D.I.openApplication(str, obj, info);
  5876. }
  5877. }
  5878. break;
  5879. case "doc":
  5880. aTool = 6;
  5881. _iframe = $$("iframe", {
  5882. "frameborder": "no",
  5883. "border": "0",
  5884. "scrolling ": "no",
  5885. "style": {
  5886. "cssText": "border:0;width:100%;height:100%"
  5887. },
  5888. "src": "/Office/Word/WordEditArea.htm"
  5889. })
  5890. _box.appendChild(_iframe);
  5891. _box.appendChild(_jie);
  5892. _formdiv = new U.UF.UI.form(
  5893. "协同文档",
  5894. _box, {
  5895. "id": "docs" + cid + stage + task + tool,
  5896. "style": {
  5897. "width": "90%",
  5898. "height": "90%",
  5899. "overflow": 'hidden'
  5900. },
  5901. "onresize": function () { }
  5902. }, {
  5903. closecallback: function () { }
  5904. }, {
  5905. "style": {
  5906. "height": "36px"
  5907. }
  5908. }).form; //创建窗体
  5909. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5910. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5911. })
  5912. _taskbar = {
  5913. "id": str + _formdiv.id,
  5914. "style": {
  5915. "backgroundImage": "url(/img/icon/doc.png)"
  5916. },
  5917. "name": "协同文档",
  5918. "forms": _formdiv,
  5919. "click": function () {
  5920. U.MD.D.I.openApplication(str, obj, info);
  5921. }
  5922. }
  5923. break;
  5924. }
  5925. const script1 = document.createElement("script");
  5926. script1.type = "text/javascript";
  5927. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5928. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5929. const script2 = document.createElement("script");
  5930. script2.type = "text/javascript";
  5931. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5932. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5933. const script3 = document.createElement("script");
  5934. script3.type = "text/javascript";
  5935. script3.charset = "UTF-8";
  5936. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5937. const script4 = document.createElement("script");
  5938. script4.type = "text/javascript";
  5939. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5940. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  5941. if (_iframe) {
  5942. if (str == 'doc') {
  5943. _iframe = _formdiv.querySelector('iframe')
  5944. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5945. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5946. _iframe.contentWindow.document.body.appendChild(script1);
  5947. _iframe.contentWindow.document.body.appendChild(script2);
  5948. // _iframe.contentWindow.document.body.appendChild(script3);
  5949. _iframe.contentWindow.document.body.appendChild(script4);
  5950. })
  5951. if (onloadListener) {
  5952. _iframe.contentDocument.location.reload()
  5953. } else {
  5954. _iframe.contentDocument.location.reload()
  5955. }
  5956. } else if (str == 'mind') {
  5957. _iframe = _formdiv.querySelector('iframe')
  5958. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5959. _iframe.contentWindow.document.body.appendChild(script1);
  5960. _iframe.contentWindow.document.body.appendChild(script2);
  5961. _iframe.contentWindow.document.body.appendChild(script4);
  5962. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5963. })
  5964. if (onloadListener) {
  5965. _iframe.contentDocument.location.reload()
  5966. } else {
  5967. _iframe.contentDocument.location.reload()
  5968. }
  5969. } else {
  5970. _iframe.onload = () => {
  5971. _iframe.contentWindow.document.body.appendChild(script1);
  5972. _iframe.contentWindow.document.body.appendChild(script2);
  5973. // _iframe.contentWindow.document.body.appendChild(script3);
  5974. _iframe.contentWindow.document.body.appendChild(script4);
  5975. };
  5976. }
  5977. _jie.onclick = async () => {
  5978. let text = ''
  5979. if (aTool == 6) {
  5980. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5981. } else if (aTool == 3) {
  5982. text = await U.MD.D.I.getEditorContent(_iframe);
  5983. }
  5984. _loading.style.display = 'flex'
  5985. console.log(_loading);
  5986. var _ajs = _iframe.contentWindow.document.createElement("script");
  5987. _ajs.type = "text/javascript";
  5988. _ajs.innerHTML =
  5989. // 'console.log(' + _loading + ');\n' +
  5990. 'var _js = document.createElement("script");\n' +
  5991. '_js.type="text/javascript";\n' +
  5992. '_js.charset="UTF-8";\n' +
  5993. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5994. "_js.onload = function(){\n" +
  5995. ' var a = document.getElementsByTagName("img")\n' +
  5996. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5997. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5998. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5999. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6000. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  6001. "beforeUpload_shishi(file," +
  6002. "'" +
  6003. _userid +
  6004. "'" +
  6005. ", " +
  6006. "'" +
  6007. _cid +
  6008. "'" +
  6009. ", " +
  6010. "'" +
  6011. _stage +
  6012. "'" +
  6013. ", " +
  6014. "'" +
  6015. _task +
  6016. "'" +
  6017. ", " +
  6018. "'" +
  6019. _tool +
  6020. "'" +
  6021. ", " +
  6022. "'" +
  6023. (str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid) +
  6024. "'" +
  6025. ", " +
  6026. "'" +
  6027. aTool +
  6028. "'" +
  6029. ", " +
  6030. "`" +
  6031. text +
  6032. "`" +
  6033. ")\n" +
  6034. " });\n" +
  6035. "}\n" +
  6036. "document.head.appendChild(_js);\n";
  6037. _iframe.contentWindow.document.head.appendChild(_ajs);
  6038. }
  6039. }
  6040. //U.MD.D.I.openClick(str);
  6041. //如果有任务栏信息
  6042. // if (_taskbar) {
  6043. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6044. // }
  6045. }
  6046. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6047. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6048. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6049. _userinfo = US.userInfo, //登录用户信息
  6050. _userid = US.userInfo.userid //登录用户id
  6051. let _iframe;
  6052. let _cid = cid,
  6053. _stage = stage,
  6054. _task = task,
  6055. _tool = tool;
  6056. var _jie = $$("div", {
  6057. "style": {
  6058. "position": "absolute",
  6059. "bottom": "50px",
  6060. "right": "50px",
  6061. "zIndex": "9999",
  6062. "backgroundColor": "#2268bc",
  6063. "color": "#fff",
  6064. "padding": "12px 20px",
  6065. "cursor": "pointer",
  6066. "borderRadius": "4px",
  6067. },
  6068. "innerHTML": "上传模板"
  6069. })
  6070. let aTool = ''
  6071. let _loading = document.createElement('div')
  6072. _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;"
  6073. // _loading.id = "";
  6074. let _lchild = document.createElement('div')
  6075. let _limg = document.createElement('img')
  6076. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6077. _limg.style = "width: 26px;margin-right: 10px;"
  6078. _lchild.appendChild(_limg)
  6079. let _lspan = document.createElement('span')
  6080. _lspan.innerHTML = "上传中..."
  6081. _lchild.appendChild(_lspan)
  6082. _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%);"
  6083. _loading.appendChild(_lchild)
  6084. var _box = $$('div', {
  6085. "style": {
  6086. "position": "relative",
  6087. "width": "100%",
  6088. "height": "100%",
  6089. },
  6090. })
  6091. _box.appendChild(_loading)
  6092. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool+_userid
  6093. switch (str) {
  6094. case "whiteboard":
  6095. aTool = 1;
  6096. _iframe = $$("iframe", {
  6097. "frameborder": "no",
  6098. "border": "0",
  6099. "scrolling ": "no",
  6100. "style": {
  6101. "cssText": "border:0;width:100%;height:100%"
  6102. },
  6103. "src": "https://iwb.cocorobo.cn/"
  6104. })
  6105. _box.appendChild(_iframe);
  6106. _box.appendChild(_jie);
  6107. _formdiv = new U.UF.UI.form(
  6108. "电子白板",
  6109. _box, {
  6110. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6111. "style": {
  6112. "width": "90%",
  6113. "height": "90%",
  6114. "overflow": 'hidden'
  6115. },
  6116. "onresize": function () { }
  6117. }, {
  6118. closecallback: function () { }
  6119. }, {
  6120. "style": {
  6121. "height": "36px"
  6122. }
  6123. }).form; //创建窗体
  6124. _taskbar = {
  6125. "id": str + _formdiv.id,
  6126. "style": {
  6127. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6128. },
  6129. "name": "电子白板",
  6130. "forms": _formdiv,
  6131. "click": function () {
  6132. U.MD.D.I.openApplication(str, obj, info);
  6133. }
  6134. }
  6135. break;
  6136. case "mind":
  6137. aTool = 3;
  6138. _iframe = $$("iframe", {
  6139. "frameborder": "no",
  6140. "border": "0",
  6141. "scrolling ": "no",
  6142. "style": {
  6143. "cssText": "border:0;width:100%;height:100%"
  6144. },
  6145. "src": "/kityminder-editor/dist/index.html"
  6146. });
  6147. _box.appendChild(_iframe);
  6148. _box.appendChild(_jie);
  6149. _formdiv = new U.UF.UI.form(
  6150. "思维导图",
  6151. _box, { //"/jsmind/example/demo.html"
  6152. "id": "minds_Yu" + cid + stage + task + tool,
  6153. "style": {
  6154. "width": "90%",
  6155. "height": "90%",
  6156. "overflow": 'hidden'
  6157. },
  6158. "onresize": function () { }
  6159. }, {
  6160. closecallback: function () { }
  6161. }, {
  6162. "style": {
  6163. "height": "36px"
  6164. }
  6165. }).form; //创建窗体
  6166. _taskbar = {
  6167. "id": str + _formdiv.id,
  6168. "style": {
  6169. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6170. },
  6171. "name": "思维导图",
  6172. "forms": _formdiv,
  6173. "click": function () {
  6174. U.MD.D.I.openApplication(str, obj, info);
  6175. }
  6176. }
  6177. break;
  6178. case "doc":
  6179. aTool = 6;
  6180. _iframe = $$("iframe", {
  6181. "frameborder": "no",
  6182. "border": "0",
  6183. "scrolling ": "no",
  6184. "style": {
  6185. "cssText": "border:0;width:100%;height:100%"
  6186. },
  6187. "src": "/Office/Word/WordEditArea.htm"
  6188. })
  6189. _box.appendChild(_iframe);
  6190. _box.appendChild(_jie);
  6191. _formdiv = new U.UF.UI.form(
  6192. "协同文档",
  6193. _box, {
  6194. "id": "docs_Yu" + cid + stage + task + tool,
  6195. "style": {
  6196. "width": "90%",
  6197. "height": "90%",
  6198. "overflow": 'hidden'
  6199. },
  6200. "onresize": function () { }
  6201. }, {
  6202. closecallback: function () { }
  6203. }, {
  6204. "style": {
  6205. "height": "36px"
  6206. }
  6207. }).form; //创建窗体
  6208. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6209. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6210. })
  6211. _taskbar = {
  6212. "id": str + _formdiv.id,
  6213. "style": {
  6214. "backgroundImage": "url(/img/icon/doc.png)"
  6215. },
  6216. "name": "协同文档",
  6217. "forms": _formdiv,
  6218. "click": function () {
  6219. U.MD.D.I.openApplication(str, obj, info);
  6220. }
  6221. }
  6222. break;
  6223. case "CocoPi":
  6224. aTool = 57;
  6225. _iframe = $$("iframe", {
  6226. "allowpaymentrequest":"allowpaymentrequest",
  6227. "allow": "camera *; microphone *;display-capture;usb",
  6228. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6229. "frameborder": "no",
  6230. "border": "0",
  6231. "scrolling ": "no",
  6232. "style": {
  6233. "cssText": "border:0;width:100%;height:100%"
  6234. },
  6235. "src": "https://beta.v.cocorobo.cn/"
  6236. })
  6237. _box.appendChild(_iframe);
  6238. _box.appendChild(_jie);
  6239. _formdiv = new U.UF.UI.form(
  6240. "CocoPi",
  6241. _box, {
  6242. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6243. "style": {
  6244. "width": "90%",
  6245. "height": "90%",
  6246. "overflow": 'hidden'
  6247. },
  6248. "onresize": function () { }
  6249. }, {
  6250. closecallback: function () { }
  6251. }, {
  6252. "style": {
  6253. "height": "36px"
  6254. }
  6255. }).form; //创建窗体
  6256. _taskbar = {
  6257. "id": str + _formdiv.id,
  6258. "style": {
  6259. "backgroundImage": "url(/img/icon/cocopi.png)"
  6260. },
  6261. "name": "CocoPi",
  6262. "forms": _formdiv,
  6263. "click": function () {
  6264. U.MD.D.I.openApplication(str, obj, info);
  6265. }
  6266. }
  6267. break;
  6268. }
  6269. if (_iframe) {
  6270. if (str == 'doc') {
  6271. _iframe = _formdiv.querySelector('iframe')
  6272. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6273. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6274. })
  6275. if (onloadListener) {
  6276. _iframe.contentDocument.location.reload()
  6277. } else {
  6278. _iframe.contentDocument.location.reload()
  6279. }
  6280. } else if (str == 'mind') {
  6281. _iframe = _formdiv.querySelector('iframe')
  6282. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6283. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6284. })
  6285. if (onloadListener) {
  6286. _iframe.contentDocument.location.reload()
  6287. } else {
  6288. _iframe.contentDocument.location.reload()
  6289. }
  6290. } else if (str == 'whiteboard') {
  6291. _iframe = _formdiv.querySelector('iframe')
  6292. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6293. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6294. })
  6295. if (onloadListener) {
  6296. _iframe.contentDocument.location.reload()
  6297. } else {
  6298. _iframe.contentDocument.location.reload()
  6299. }
  6300. } else if (str == 'CocoPi') {
  6301. _iframe = _formdiv.querySelector('iframe')
  6302. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6303. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6304. })
  6305. if (onloadListener) {
  6306. _iframe.contentDocument.location.reload()
  6307. } else {
  6308. _iframe.contentDocument.location.reload()
  6309. }
  6310. } else {
  6311. _iframe.onload = () => {
  6312. };
  6313. }
  6314. _jie.onclick = async () => {
  6315. let text = ''
  6316. let type = '2'
  6317. if (aTool == 1) {
  6318. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6319. type = '3'
  6320. } else if (aTool == 6) {
  6321. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6322. type = '1'
  6323. } else if (aTool == 3) {
  6324. text = await U.MD.D.I.getEditorContent(_iframe);
  6325. type = '2'
  6326. } else if (aTool == 57) {
  6327. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6328. type = '4'
  6329. }
  6330. _loading.style.display = 'flex'
  6331. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6332. }
  6333. }
  6334. //U.MD.D.I.openClick(str);
  6335. //如果有任务栏信息
  6336. // if (_taskbar) {
  6337. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6338. // }
  6339. }
  6340. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6341. var xmlhttp;
  6342. var Mac, Sn, DeviceId
  6343. if (window.XMLHttpRequest) {
  6344. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6345. xmlhttp = new XMLHttpRequest();
  6346. }
  6347. else {
  6348. // IE6, IE5 浏览器执行代码
  6349. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6350. }
  6351. xmlhttp.onreadystatechange = function () {
  6352. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6353. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6354. // resolve(res.value[0][0].text);
  6355. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6356. }
  6357. }
  6358. }
  6359. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6360. xmlhttp.send();
  6361. }
  6362. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6363. var xmlhttp;
  6364. var Mac, Sn, DeviceId
  6365. if (window.XMLHttpRequest) {
  6366. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6367. xmlhttp = new XMLHttpRequest();
  6368. }
  6369. else {
  6370. // IE6, IE5 浏览器执行代码
  6371. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6372. }
  6373. xmlhttp.onreadystatechange = function () {
  6374. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6375. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6376. // resolve(res.value[0][0].text);
  6377. if (type == '2') {
  6378. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6379. } else if (type == '3') {
  6380. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6381. } else if (type == '4') {
  6382. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  6383. }
  6384. } else {
  6385. if (type == '2') {
  6386. iframe.contentWindow.editor.minder.importData('json', '')
  6387. } else if (type == '3') {
  6388. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6389. } else if (type == '4') {
  6390. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6391. }
  6392. }
  6393. }
  6394. }
  6395. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6396. xmlhttp.send();
  6397. }
  6398. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6399. var xmlhttp;
  6400. var Mac, Sn, DeviceId
  6401. if (window.XMLHttpRequest) {
  6402. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6403. xmlhttp = new XMLHttpRequest();
  6404. }
  6405. else {
  6406. // IE6, IE5 浏览器执行代码
  6407. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6408. }
  6409. xmlhttp.onreadystatechange = function () {
  6410. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6411. if (xmlhttp.response) {
  6412. // resolve(res.value[0][0].text);
  6413. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6414. // $(fileInput).val('');
  6415. // });
  6416. span.innerHTML = '上传成功'
  6417. setTimeout(() => {
  6418. loading.style.display = 'none'
  6419. }, 1000);
  6420. }
  6421. }
  6422. }
  6423. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6424. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6425. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6426. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6427. // 设置请求头,表示请求体的编码格式
  6428. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  6429. // 设置请求体,使用url-encoded格式的数据
  6430. }
  6431. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  6432. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6433. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6434. _userinfo = US.userInfo, //登录用户信息
  6435. _userid = US.userInfo.userid //登录用户id
  6436. let _iframe;
  6437. let _cid = cid,
  6438. _stage = stage,
  6439. _task = task,
  6440. _tool = tool;
  6441. var _jie = $$("div", {
  6442. "style": {
  6443. "position": "absolute",
  6444. "bottom": "50px",
  6445. "right": "50px",
  6446. "zIndex": "9999",
  6447. "backgroundColor": "#2268bc",
  6448. "color": "#fff",
  6449. "padding": "12px 20px",
  6450. "cursor": "pointer",
  6451. "borderRadius": "4px",
  6452. },
  6453. "innerHTML": "提交作业"
  6454. })
  6455. let aTool = ''
  6456. let _loading = document.createElement('div')
  6457. _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;"
  6458. // _loading.id = "";
  6459. let _lchild = document.createElement('div')
  6460. let _limg = document.createElement('img')
  6461. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6462. _limg.style = "width: 26px;margin-right: 10px;"
  6463. _lchild.appendChild(_limg)
  6464. let _lspan = document.createElement('span')
  6465. _lspan.innerHTML = "上传中..."
  6466. _lchild.appendChild(_lspan)
  6467. _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%);"
  6468. _loading.appendChild(_lchild)
  6469. var _box = $$('div', {
  6470. "style": {
  6471. "position": "relative",
  6472. "width": "100%",
  6473. "height": "100%",
  6474. },
  6475. })
  6476. _box.appendChild(_loading)
  6477. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool+_userid
  6478. switch (str) {
  6479. case "CocoPi":
  6480. aTool = 57;
  6481. _iframe = $$("iframe", {
  6482. "allowpaymentrequest":"allowpaymentrequest",
  6483. "allow": "camera *; microphone *;display-capture;usb",
  6484. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6485. "frameborder": "no",
  6486. "border": "0",
  6487. "scrolling ": "no",
  6488. "style": {
  6489. "cssText": "border:0;width:100%;height:100%"
  6490. },
  6491. "src": "https://beta.v.cocorobo.cn/"
  6492. })
  6493. _box.appendChild(_iframe);
  6494. _box.appendChild(_jie);
  6495. _formdiv = new U.UF.UI.form(
  6496. "CocoPi",
  6497. _box, {
  6498. "id": "CocoPi_Upload" + cid + stage + task + tool,
  6499. "style": {
  6500. "width": "90%",
  6501. "height": "90%",
  6502. "overflow": 'hidden'
  6503. },
  6504. "onresize": function () { }
  6505. }, {
  6506. closecallback: function () { }
  6507. }, {
  6508. "style": {
  6509. "height": "36px"
  6510. }
  6511. }).form; //创建窗体
  6512. _taskbar = {
  6513. "id": str + _formdiv.id,
  6514. "style": {
  6515. "backgroundImage": "url(/img/icon/cocopi.png)"
  6516. },
  6517. "name": "CocoPi",
  6518. "forms": _formdiv,
  6519. "click": function () {
  6520. U.MD.D.I.openApplication(str, obj, info);
  6521. }
  6522. }
  6523. break;
  6524. }
  6525. if (_iframe) {
  6526. if (str == 'CocoPi') {
  6527. _iframe = _formdiv.querySelector('iframe')
  6528. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6529. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6530. })
  6531. if (onloadListener) {
  6532. _iframe.contentDocument.location.reload()
  6533. } else {
  6534. _iframe.contentDocument.location.reload()
  6535. }
  6536. }
  6537. _jie.onclick = async () => {
  6538. let text = ''
  6539. if (aTool == 57) {
  6540. text = _iframe.contentWindow.getLoadXmlStr()
  6541. }
  6542. _loading.style.display = 'flex'
  6543. console.log(_loading);
  6544. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6545. _loading.style.display = 'none'
  6546. let _div = document.createElement('div')
  6547. _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
  6548. let _inner = document.createElement('div')
  6549. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6550. _inner.innerHTML = "上传成功"
  6551. _div.appendChild(_inner)
  6552. _iframe.contentWindow.window.document.body.appendChild(_div)
  6553. _div.onclick = () => {
  6554. _iframe.contentWindow.window.document.body.removeChild(_div)
  6555. }
  6556. setTimeout(() => {
  6557. _iframe.contentWindow.window.document.body.removeChild(_div)
  6558. }, 1000);
  6559. }, [], { "type": "POST", "withCredentials": true });
  6560. }
  6561. }
  6562. }
  6563. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  6564. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6565. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6566. _userid = student.userid, //登录用户id
  6567. _username = student.student //用户名字
  6568. let _iframe;
  6569. let _cid = cid,
  6570. _stage = stage,
  6571. _task = task,
  6572. _tool = tool;
  6573. var _jie = $$("div", {
  6574. "style": {
  6575. "position": "absolute",
  6576. "bottom": "50px",
  6577. "right": "50px",
  6578. "zIndex": "9999",
  6579. "backgroundColor": "#2268bc",
  6580. "color": "#fff",
  6581. "padding": "12px 20px",
  6582. "cursor": "pointer",
  6583. "borderRadius": "4px",
  6584. },
  6585. "innerHTML": "提交作业"
  6586. })
  6587. let aTool = ''
  6588. let _loading = document.createElement('div')
  6589. _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;"
  6590. // _loading.id = "";
  6591. let _lchild = document.createElement('div')
  6592. let _limg = document.createElement('img')
  6593. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6594. _limg.style = "width: 26px;margin-right: 10px;"
  6595. _lchild.appendChild(_limg)
  6596. let _lspan = document.createElement('span')
  6597. _lspan.innerHTML = "上传中..."
  6598. _lchild.appendChild(_lspan)
  6599. _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%);"
  6600. _loading.appendChild(_lchild)
  6601. var _box = $$('div', {
  6602. "style": {
  6603. "position": "relative",
  6604. "width": "100%",
  6605. "height": "100%",
  6606. },
  6607. })
  6608. _box.appendChild(_loading)
  6609. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool+_userid
  6610. switch (str) {
  6611. case "CocoPi":
  6612. aTool = 57;
  6613. _iframe = $$("iframe", {
  6614. "allowpaymentrequest":"allowpaymentrequest",
  6615. "allow": "camera *; microphone *;display-capture;usb",
  6616. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6617. "frameborder": "no",
  6618. "border": "0",
  6619. "scrolling ": "no",
  6620. "style": {
  6621. "cssText": "border:0;width:100%;height:100%"
  6622. },
  6623. "src": "https://beta.v.cocorobo.cn/"
  6624. })
  6625. _box.appendChild(_iframe);
  6626. _box.appendChild(_jie);
  6627. _formdiv = new U.UF.UI.form(
  6628. "CocoPi-" + _username,
  6629. _box, {
  6630. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  6631. "style": {
  6632. "width": "90%",
  6633. "height": "90%",
  6634. "overflow": 'hidden'
  6635. },
  6636. "onresize": function () { }
  6637. }, {
  6638. closecallback: function () { }
  6639. }, {
  6640. "style": {
  6641. "height": "36px"
  6642. }
  6643. }).form; //创建窗体
  6644. _taskbar = {
  6645. "id": str + _formdiv.id,
  6646. "style": {
  6647. "backgroundImage": "url(/img/icon/cocopi.png)"
  6648. },
  6649. "name": "CocoPi",
  6650. "forms": _formdiv,
  6651. "click": function () {
  6652. U.MD.D.I.openApplication(str, obj, info);
  6653. }
  6654. }
  6655. break;
  6656. }
  6657. if (_iframe) {
  6658. if (str == 'CocoPi') {
  6659. _iframe = _formdiv.querySelector('iframe')
  6660. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6661. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6662. })
  6663. if (onloadListener) {
  6664. _iframe.contentDocument.location.reload()
  6665. } else {
  6666. _iframe.contentDocument.location.reload()
  6667. }
  6668. }
  6669. _jie.onclick = async () => {
  6670. let text = ''
  6671. if (aTool == 57) {
  6672. text = _iframe.contentWindow.getLoadXmlStr()
  6673. }
  6674. _loading.style.display = 'flex'
  6675. console.log(_loading);
  6676. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6677. _loading.style.display = 'none'
  6678. let _div = document.createElement('div')
  6679. _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
  6680. let _inner = document.createElement('div')
  6681. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6682. _inner.innerHTML = "上传成功"
  6683. _div.appendChild(_inner)
  6684. _iframe.contentWindow.window.document.body.appendChild(_div)
  6685. _div.onclick = () => {
  6686. _iframe.contentWindow.window.document.body.removeChild(_div)
  6687. }
  6688. setTimeout(() => {
  6689. _iframe.contentWindow.window.document.body.removeChild(_div)
  6690. }, 1000);
  6691. }, [], { "type": "POST", "withCredentials": true });
  6692. }
  6693. }
  6694. }
  6695. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  6696. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  6697. if (res.value[0].length > 0) {
  6698. if (atool == 57) {
  6699. iframe.contentWindow.loadingXml(res.value[0][0].content)
  6700. }
  6701. } else {
  6702. if (atool == 57) {
  6703. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  6704. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6705. }
  6706. }
  6707. }, [], { "type": "POST", "withCredentials": true });
  6708. }