DeskTop.js 354 KB

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