DeskTop.js 377 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853
  1. /*
  2. 此处为桌面系统启动应用区域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面应用处理
  5. //判断图片是否在拖拽,如果是拖拽图标的过程是不会打开图片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教师桌面图标的全局变量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  17. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  18. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  19. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  20. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  21. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  22. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  23. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  24. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  25. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  26. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  27. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  28. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  29. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  30. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  31. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  32. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  33. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  34. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  35. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  36. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  37. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  38. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  39. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  40. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  41. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  42. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  43. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  44. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  45. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  46. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  47. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  48. ];
  49. //极简模式
  50. U.MD.D.I.easyDeskIcon = [
  51. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  52. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  55. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  56. ];
  57. //教师桌面图标的全局变量
  58. U.MD.D.I.teacherDeskIcon2 = [
  59. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  60. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  61. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  62. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  63. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  64. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  65. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  66. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  67. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  68. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  69. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  70. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  71. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  72. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  73. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  74. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  75. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  76. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  77. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  78. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  79. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  80. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  81. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  82. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  83. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  84. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  85. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  86. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  87. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  88. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  89. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  90. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  91. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  92. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  93. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  94. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  95. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  96. ];
  97. U.MD.D.I.studentDeskIcon = [
  98. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  99. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  100. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  101. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  102. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  103. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  104. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  105. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  106. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  107. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  108. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  109. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  110. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  111. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  112. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  113. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  114. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  115. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  116. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  117. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  118. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  119. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  120. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  121. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  122. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  123. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  124. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  125. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  126. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  127. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  128. ];
  129. U.MD.D.I.studentDeskIcon2 = [
  130. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  131. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  132. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  133. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  134. ]
  135. U.MD.D.I.studentDeskIcon3 = [
  136. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  137. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  138. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  139. ]
  140. U.MD.D.I.schoolDeskIcon = [
  141. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  142. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  144. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  145. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  146. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  147. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  148. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  149. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  150. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  151. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  152. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  153. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  154. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  155. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  156. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  157. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  158. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  159. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  160. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  161. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  162. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  163. ];
  164. U.MD.D.I.orgDeskIcon = [
  165. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  166. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  167. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  168. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  169. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  170. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  171. ];
  172. U.MD.D.I.orgStemDeskIcon = [
  173. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  174. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  175. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  176. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  177. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  178. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  179. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  180. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  181. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  182. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  183. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  184. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  185. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  186. ];
  187. U.MD.D.I.szulsDeskIcon = [
  188. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  189. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  190. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  191. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  192. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  193. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  194. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  195. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  196. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  197. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  198. ];
  199. U.MD.D.I.hanDeskIcon = [
  200. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  201. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  202. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  203. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  204. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  205. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  206. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  207. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  208. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  209. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  210. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  211. ];
  212. U.MD.D.I.GMteacherDeskIcon = [
  213. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  214. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  215. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  216. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  217. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  218. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  219. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  220. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  221. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  222. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  223. ];
  224. U.MD.D.I.GMstudentDeskIcon = [
  225. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  226. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  227. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  228. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  229. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  230. ];
  231. //北师大
  232. U.MD.D.I.BSDNSteacherDeskIcon = [
  233. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  234. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  235. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  236. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  237. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  238. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  239. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  240. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  241. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  242. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  243. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  244. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  245. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  246. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  247. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  248. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  249. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  250. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  251. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  252. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  253. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  254. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  255. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  256. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  257. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  258. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  259. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  260. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  261. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  262. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  263. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  264. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  265. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  266. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  267. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  268. ];
  269. //松山湖
  270. U.MD.D.I.SONGteacherDeskIcon = [
  271. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  272. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  273. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  274. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  275. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  276. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  277. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  278. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  279. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  280. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  281. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  282. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  283. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  284. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  285. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  286. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  287. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  288. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  289. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  290. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  291. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  292. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  293. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  294. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  295. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  296. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  297. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  298. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  299. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  300. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  301. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  302. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  303. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  304. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  305. ];
  306. U.MD.D.I.tcStudentDeskIcon = [
  307. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  308. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  309. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  310. ];
  311. U.MD.D.I.tcTeacherDeskIcon = [
  312. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  313. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  314. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  315. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  316. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  317. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  318. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  319. ];
  320. U.MD.D.I.tcOrganizerDeskIcon = [
  321. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  322. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  323. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  324. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  325. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  326. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  327. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  328. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  329. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  330. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  331. ];
  332. U.MD.D.I.szscStudentDeskIcon = [
  333. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  334. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  335. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. ];
  338. U.MD.D.I.szscTeacherDeskIcon = [
  339. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  340. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  341. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  342. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  343. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  344. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  345. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  346. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  347. ];
  348. U.MD.D.I.szscOrganizerDeskIcon = [
  349. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  350. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  351. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  352. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  353. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  354. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  355. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  356. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  357. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  358. ];
  359. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  360. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  361. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  362. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  363. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  364. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  365. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  366. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  367. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  368. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  369. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  370. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  371. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  372. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  373. ];
  374. U.MD.D.I.wankeAdminDeskIcon = [
  375. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  376. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  377. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  378. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  379. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  380. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  381. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  382. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  383. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  384. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  385. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  386. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  387. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  388. ];
  389. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  390. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  391. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  392. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  393. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  394. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  395. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  396. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  397. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  398. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  399. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  400. ];
  401. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  402. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  403. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  404. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  405. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  406. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  407. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  408. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  409. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  410. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  411. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  412. ];
  413. //明德教师桌面图标的全局变量
  414. U.MD.D.I.MingdeTeacherDeskIcon = [
  415. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  416. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  417. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  418. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  419. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  420. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  421. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  422. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  423. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  424. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  425. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  426. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  427. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  428. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  429. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  430. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  431. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  432. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  433. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  434. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  435. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  436. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  437. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  438. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  439. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  440. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  441. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  442. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  443. ];
  444. //97c4ee8b-d010-4042-986d-e9d3c217264f
  445. //教师桌面图标的全局变量
  446. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  447. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  448. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  449. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  450. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  451. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  452. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  453. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  454. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  455. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  456. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  457. ];
  458. //福田
  459. U.MD.D.I.futianTeacherDeskIcon = [
  460. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  461. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  462. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  463. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  464. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  465. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  466. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  467. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  468. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  469. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  470. ];
  471. //福田
  472. U.MD.D.I.futianAdminDeskIcon = [
  473. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  474. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  475. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  476. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  477. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  478. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  479. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  480. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  481. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  482. ];
  483. //lotech
  484. U.MD.D.I.lotechTeacherDeskIcon = [
  485. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  486. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  487. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  488. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  489. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  490. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  491. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  492. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  493. ];
  494. //龙华中心小学教师桌面图标的全局变量
  495. U.MD.D.I.longhuateacherDeskIcon = [
  496. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  497. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  498. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  499. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  500. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  501. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  502. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  503. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  504. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  505. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  506. ];
  507. //教科院实小教师桌面图标的全局变量
  508. U.MD.D.I.siesteacherDeskIcon = [
  509. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  510. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  511. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  512. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  513. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  514. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  515. // { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  516. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  517. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  518. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  519. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  520. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  521. ];
  522. //福田
  523. U.MD.D.I.gdjgTeacherDeskIcon = [
  524. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  525. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  526. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  527. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  528. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  529. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  530. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  531. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  532. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  533. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  534. ];
  535. //gdjg
  536. U.MD.D.I.gdjgAdminDeskIcon = [
  537. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  538. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  539. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  540. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  541. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  542. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  543. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  544. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  545. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  546. ];
  547. //hk
  548. U.MD.D.I.hkteacherDeskIcon = [
  549. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  550. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  551. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  552. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  553. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  554. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  555. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  556. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  557. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  558. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  559. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  560. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  561. ];
  562. //#region 桌面初始化a
  563. /**
  564. * 初始化桌面的起始函数
  565. *
  566. */
  567. U.MD.D.I.init = function () {
  568. if ($("#U_MD_D_K")[0]) {
  569. //初始化桌面图标
  570. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  571. // var clickUrl = ':12588/requestIp.php';
  572. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  573. // U.MD.D.I.Ip = data;
  574. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  575. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  576. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  577. // })
  578. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  579. // })
  580. }
  581. }
  582. /**
  583. * 模式切换
  584. *
  585. */
  586. U.MD.D.I.ModeCheck = function (type) {
  587. if (US.Config.type == type) {
  588. return
  589. }
  590. US.Config.type = type
  591. $('.U_PBL_Check .active')[0].className = ''
  592. if (type == 1) {
  593. $('.U_PBL_Check div')[0].className = 'active'
  594. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  595. } else {
  596. $('.U_PBL_Check div')[1].className = 'active'
  597. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  598. }
  599. //初始化桌面图标
  600. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  601. if(type == 2){
  602. U.MD.D.I.openApplication("project")
  603. }
  604. }
  605. /**
  606. * 隐藏任务栏
  607. *
  608. * @param {element} 桌面元素
  609. */
  610. U.MD.D.I.hiddenTaskbar = function (el) {
  611. //任务栏位置变小
  612. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  613. //桌面的位置变大
  614. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  615. }
  616. /**
  617. * 隐藏任务栏
  618. *
  619. * @param {element} 桌面元素
  620. */
  621. U.MD.D.I.hiddenTaskbarout = function (el) {
  622. //任务栏位置变小
  623. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  624. //任务栏位置变化
  625. U.selectEl(el).css({ "bottom": "-60px" });
  626. //桌面的位置变大
  627. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  628. }
  629. }
  630. /**
  631. * 初始化打印桌面图标
  632. *
  633. * @param {element} 桌面元素
  634. */
  635. U.MD.D.I.initDesktopIcons = function (el, type) {
  636. var i, //用于循环
  637. _content, //桌面图标元素
  638. _iconcontent, //桌面图标元素
  639. _frag = $$("frag"), //定义一个碎片元素
  640. _type = US.userInfo.type,
  641. _org = US.userInfo.org,
  642. _oid = US.userInfo.organizeid,
  643. _role = US.userInfo.role,
  644. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  645. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  646. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  647. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  648. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  649. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  650. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  651. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  652. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  653. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  654. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  655. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  656. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  657. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  658. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  659. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  660. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  661. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  662. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  663. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  664. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  665. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  666. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  667. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  668. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  669. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//福田
  670. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//福田
  671. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  672. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
  673. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龙华中心
  674. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  675. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon,//hk
  676. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  677. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  678. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  679. 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'];
  680. var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d", "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b", "150e3120-9195-11ed-b13d-005056b86db5", "ee40e8e3-e36c-4872-8105-cf395481012s", '97c4ee8b-d010-4042-986d-e9d3c217264f','ec0af97a-7c10-4259-a7eb-db9cc8174cdc','4df1b570-f6ac-48fc-8d50-d0b157dae776','e632b86c-f89d-11ed-91d8-005056b86db5','b50cf65a-001c-11ee-91d8-005056b86db5'];
  681. //清楚桌面图标
  682. el.innerHTML = "";
  683. 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") {
  684. _teacherDesktopIconInfo.push(
  685. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  686. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  687. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  688. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  689. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  690. )
  691. _easyDesktopIconInfo.push(
  692. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  693. )
  694. }
  695. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  696. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  697. if(el.Name == '项目管理'){
  698. el.Name = 'PBL项目'
  699. }
  700. return el
  701. })
  702. }
  703. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  704. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  705. return el.Name != '魔盒识字' && el.Name != '24点'
  706. })
  707. }
  708. 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) {
  709. _studentDesktopIconInfo.push(
  710. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  711. )
  712. }
  713. //循环创建桌面图标
  714. if (type == 1) {
  715. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  716. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  717. _content = $$("div", {
  718. className: "U_MD_D_KO",
  719. "onmousedown": U.UF.C.closure(function (obj) {
  720. //防止拖动图标即打开了桌面应用
  721. U.MD.D.click(this, obj);
  722. }, [_studentDesktopIconInfo[i]]),
  723. "onclick": U.UF.C.closure(function (obj) {
  724. //防止拖动图标即打开了桌面应用
  725. U.MD.D.click(this, obj);
  726. }, [_studentDesktopIconInfo[i]])
  727. }, _frag); //
  728. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  729. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  730. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  731. }
  732. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  733. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  734. _content = $$("div", {
  735. className: "U_MD_D_KO",
  736. "onmousedown": U.UF.C.closure(function (obj) {
  737. //防止拖动图标即打开了桌面应用
  738. U.MD.D.click(this, obj);
  739. }, [_studentDesktopIconInfo[i]]),
  740. "onclick": U.UF.C.closure(function (obj) {
  741. //防止拖动图标即打开了桌面应用
  742. U.MD.D.click(this, obj);
  743. }, [_studentDesktopIconInfo[i]])
  744. }, _frag); //
  745. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  746. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  747. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  748. }
  749. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  750. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  751. _content = $$("div", {
  752. className: "U_MD_D_KO",
  753. "onmousedown": U.UF.C.closure(function (obj) {
  754. //防止拖动图标即打开了桌面应用
  755. U.MD.D.click(this, obj);
  756. }, [_tcStudentDeskIconInfo[i]]),
  757. "onclick": U.UF.C.closure(function (obj) {
  758. //防止拖动图标即打开了桌面应用
  759. U.MD.D.click(this, obj);
  760. }, [_tcStudentDeskIconInfo[i]])
  761. }, _frag); //
  762. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  763. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  764. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  765. }
  766. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  767. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  768. _content = $$("div", {
  769. className: "U_MD_D_KO",
  770. "onmousedown": U.UF.C.closure(function (obj) {
  771. //防止拖动图标即打开了桌面应用
  772. U.MD.D.click(this, obj);
  773. }, [_szscStudentDeskIconInfo[i]]),
  774. "onclick": U.UF.C.closure(function (obj) {
  775. //防止拖动图标即打开了桌面应用
  776. U.MD.D.click(this, obj);
  777. }, [_szscStudentDeskIconInfo[i]])
  778. }, _frag); //
  779. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  780. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  781. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  782. }
  783. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  784. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  785. _content = $$("div", {
  786. className: "U_MD_D_KO",
  787. "onmousedown": U.UF.C.closure(function (obj) {
  788. //防止拖动图标即打开了桌面应用
  789. U.MD.D.click(this, obj);
  790. }, [_studentDesktopIconInfo3[i]]),
  791. "onclick": U.UF.C.closure(function (obj) {
  792. //防止拖动图标即打开了桌面应用
  793. U.MD.D.click(this, obj);
  794. }, [_studentDesktopIconInfo3[i]])
  795. }, _frag); //
  796. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  797. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  798. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  799. }
  800. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  801. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  802. _content = $$("div", {
  803. className: "U_MD_D_KO",
  804. "onmousedown": U.UF.C.closure(function (obj) {
  805. //防止拖动图标即打开了桌面应用
  806. U.MD.D.click(this, obj);
  807. }, [_studentDesktopIconInfo2[i]]),
  808. "onclick": U.UF.C.closure(function (obj) {
  809. //防止拖动图标即打开了桌面应用
  810. U.MD.D.click(this, obj);
  811. }, [_studentDesktopIconInfo2[i]])
  812. }, _frag); //
  813. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  814. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  815. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  816. }
  817. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  818. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  819. _content = $$("div", {
  820. className: "U_MD_D_KO",
  821. "onmousedown": U.UF.C.closure(function (obj) {
  822. //防止拖动图标即打开了桌面应用
  823. U.MD.D.click(this, obj);
  824. }, [_wanketeacherDesktopIconInfo[i]]),
  825. "onclick": U.UF.C.closure(function (obj) {
  826. //防止拖动图标即打开了桌面应用
  827. U.MD.D.click(this, obj);
  828. }, [_wanketeacherDesktopIconInfo[i]])
  829. }, _frag); //
  830. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  831. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  832. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  833. }
  834. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  835. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  836. _content = $$("div", {
  837. className: "U_MD_D_KO",
  838. "onmousedown": U.UF.C.closure(function (obj) {
  839. //防止拖动图标即打开了桌面应用
  840. U.MD.D.click(this, obj);
  841. }, [_wankeAdminDesktopIconInfo[i]]),
  842. "onclick": U.UF.C.closure(function (obj) {
  843. //防止拖动图标即打开了桌面应用
  844. U.MD.D.click(this, obj);
  845. }, [_wankeAdminDesktopIconInfo[i]])
  846. }, _frag); //
  847. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  848. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  849. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  850. }
  851. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  852. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  853. _content = $$("div", {
  854. className: "U_MD_D_KO",
  855. "onmousedown": U.UF.C.closure(function (obj) {
  856. //防止拖动图标即打开了桌面应用
  857. U.MD.D.click(this, obj);
  858. }, [_teacherDesktopIconInfo2[i]]),
  859. "onclick": U.UF.C.closure(function (obj) {
  860. //防止拖动图标即打开了桌面应用
  861. U.MD.D.click(this, obj);
  862. }, [_teacherDesktopIconInfo2[i]])
  863. }, _frag); //
  864. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  865. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  866. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  867. }
  868. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  869. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  870. _content = $$("div", {
  871. className: "U_MD_D_KO",
  872. "onmousedown": U.UF.C.closure(function (obj) {
  873. //防止拖动图标即打开了桌面应用
  874. U.MD.D.click(this, obj);
  875. }, [_lotechTeacherDeskIconInfo[i]]),
  876. "onclick": U.UF.C.closure(function (obj) {
  877. //防止拖动图标即打开了桌面应用
  878. U.MD.D.click(this, obj);
  879. }, [_lotechTeacherDeskIconInfo[i]])
  880. }, _frag); //
  881. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  882. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  883. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  884. }
  885. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  886. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  887. _content = $$("div", {
  888. className: "U_MD_D_KO",
  889. "onmousedown": U.UF.C.closure(function (obj) {
  890. //防止拖动图标即打开了桌面应用
  891. U.MD.D.click(this, obj);
  892. }, [_siesTeacherDeskIconInfo[i]]),
  893. "onclick": U.UF.C.closure(function (obj) {
  894. //防止拖动图标即打开了桌面应用
  895. U.MD.D.click(this, obj);
  896. }, [_siesTeacherDeskIconInfo[i]])
  897. }, _frag); //
  898. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  899. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  900. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  901. }
  902. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  903. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  904. _content = $$("div", {
  905. className: "U_MD_D_KO",
  906. "onmousedown": U.UF.C.closure(function (obj) {
  907. //防止拖动图标即打开了桌面应用
  908. U.MD.D.click(this, obj);
  909. }, [_longhuaTeacherDeskIconInfo[i]]),
  910. "onclick": U.UF.C.closure(function (obj) {
  911. //防止拖动图标即打开了桌面应用
  912. U.MD.D.click(this, obj);
  913. }, [_longhuaTeacherDeskIconInfo[i]])
  914. }, _frag); //
  915. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  916. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  917. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  918. }
  919. }else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  920. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  921. _content = $$("div", {
  922. className: "U_MD_D_KO",
  923. "onmousedown": U.UF.C.closure(function (obj) {
  924. //防止拖动图标即打开了桌面应用
  925. U.MD.D.click(this, obj);
  926. }, [_hkTeacherDeskIconInfo[i]]),
  927. "onclick": U.UF.C.closure(function (obj) {
  928. //防止拖动图标即打开了桌面应用
  929. U.MD.D.click(this, obj);
  930. }, [_hkTeacherDeskIconInfo[i]])
  931. }, _frag); //
  932. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  933. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  934. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  935. }
  936. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  937. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  938. _content = $$("div", {
  939. className: "U_MD_D_KO",
  940. "onmousedown": U.UF.C.closure(function (obj) {
  941. //防止拖动图标即打开了桌面应用
  942. U.MD.D.click(this, obj);
  943. }, [_gdjgAdminDeskIconInfo[i]]),
  944. "onclick": U.UF.C.closure(function (obj) {
  945. //防止拖动图标即打开了桌面应用
  946. U.MD.D.click(this, obj);
  947. }, [_gdjgAdminDeskIconInfo[i]])
  948. }, _frag); //
  949. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  950. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  951. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  952. }
  953. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  954. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  955. _content = $$("div", {
  956. className: "U_MD_D_KO",
  957. "onmousedown": U.UF.C.closure(function (obj) {
  958. //防止拖动图标即打开了桌面应用
  959. U.MD.D.click(this, obj);
  960. }, [_gdjgTeacherDeskIconInfo[i]]),
  961. "onclick": U.UF.C.closure(function (obj) {
  962. //防止拖动图标即打开了桌面应用
  963. U.MD.D.click(this, obj);
  964. }, [_gdjgTeacherDeskIconInfo[i]])
  965. }, _frag); //
  966. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  967. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  968. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  969. }
  970. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  971. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  972. _content = $$("div", {
  973. className: "U_MD_D_KO",
  974. "onmousedown": U.UF.C.closure(function (obj) {
  975. //防止拖动图标即打开了桌面应用
  976. U.MD.D.click(this, obj);
  977. }, [_futianAdminDeskIconInfo[i]]),
  978. "onclick": U.UF.C.closure(function (obj) {
  979. //防止拖动图标即打开了桌面应用
  980. U.MD.D.click(this, obj);
  981. }, [_futianAdminDeskIconInfo[i]])
  982. }, _frag); //
  983. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  984. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  985. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  986. }
  987. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  988. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  989. _content = $$("div", {
  990. className: "U_MD_D_KO",
  991. "onmousedown": U.UF.C.closure(function (obj) {
  992. //防止拖动图标即打开了桌面应用
  993. U.MD.D.click(this, obj);
  994. }, [_futianTeacherDeskIconInfo[i]]),
  995. "onclick": U.UF.C.closure(function (obj) {
  996. //防止拖动图标即打开了桌面应用
  997. U.MD.D.click(this, obj);
  998. }, [_futianTeacherDeskIconInfo[i]])
  999. }, _frag); //
  1000. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1001. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1002. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1003. }
  1004. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1005. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1006. _content = $$("div", {
  1007. className: "U_MD_D_KO",
  1008. "onmousedown": U.UF.C.closure(function (obj) {
  1009. //防止拖动图标即打开了桌面应用
  1010. U.MD.D.click(this, obj);
  1011. }, [_MingdeTeacherDeskIcon[i]]),
  1012. "onclick": U.UF.C.closure(function (obj) {
  1013. //防止拖动图标即打开了桌面应用
  1014. U.MD.D.click(this, obj);
  1015. }, [_MingdeTeacherDeskIcon[i]])
  1016. }, _frag); //
  1017. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1018. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1019. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1020. }
  1021. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1022. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1023. _content = $$("div", {
  1024. className: "U_MD_D_KO",
  1025. "onmousedown": U.UF.C.closure(function (obj) {
  1026. //防止拖动图标即打开了桌面应用
  1027. U.MD.D.click(this, obj);
  1028. }, [_lhsAdminDesktopIconInfo[i]]),
  1029. "onclick": U.UF.C.closure(function (obj) {
  1030. //防止拖动图标即打开了桌面应用
  1031. U.MD.D.click(this, obj);
  1032. }, [_lhsAdminDesktopIconInfo[i]])
  1033. }, _frag); //
  1034. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1035. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1036. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1037. }
  1038. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1039. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1040. _content = $$("div", {
  1041. className: "U_MD_D_KO",
  1042. "onmousedown": U.UF.C.closure(function (obj) {
  1043. //防止拖动图标即打开了桌面应用
  1044. U.MD.D.click(this, obj);
  1045. }, [_lhsteacherDesktopIconInfo[i]]),
  1046. "onclick": U.UF.C.closure(function (obj) {
  1047. //防止拖动图标即打开了桌面应用
  1048. U.MD.D.click(this, obj);
  1049. }, [_lhsteacherDesktopIconInfo[i]])
  1050. }, _frag); //
  1051. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1052. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1053. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1054. }
  1055. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1056. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1057. _content = $$("div", {
  1058. className: "U_MD_D_KO",
  1059. "onmousedown": U.UF.C.closure(function (obj) {
  1060. //防止拖动图标即打开了桌面应用
  1061. U.MD.D.click(this, obj);
  1062. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1063. "onclick": U.UF.C.closure(function (obj) {
  1064. //防止拖动图标即打开了桌面应用
  1065. U.MD.D.click(this, obj);
  1066. }, [_zhoujiateacherDesktopIconInfo[i]])
  1067. }, _frag); //
  1068. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1069. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1070. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1071. }
  1072. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1073. for (i = 0; i < _hanDeskIcon.length; i++) {
  1074. _content = $$("div", {
  1075. className: "U_MD_D_KO",
  1076. "onmousedown": U.UF.C.closure(function (obj) {
  1077. //防止拖动图标即打开了桌面应用
  1078. U.MD.D.click(this, obj);
  1079. }, [_hanDeskIcon[i]]),
  1080. "onclick": U.UF.C.closure(function (obj) {
  1081. //防止拖动图标即打开了桌面应用
  1082. U.MD.D.click(this, obj);
  1083. }, [_hanDeskIcon[i]])
  1084. }, _frag); //
  1085. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1086. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1087. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1088. }
  1089. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1090. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1091. _content = $$("div", {
  1092. className: "U_MD_D_KO",
  1093. "onmousedown": U.UF.C.closure(function (obj) {
  1094. //防止拖动图标即打开了桌面应用
  1095. U.MD.D.click(this, obj);
  1096. }, [_orgStemDeskIcon[i]]),
  1097. "onclick": U.UF.C.closure(function (obj) {
  1098. //防止拖动图标即打开了桌面应用
  1099. U.MD.D.click(this, obj);
  1100. }, [_orgStemDeskIcon[i]])
  1101. }, _frag); //
  1102. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1103. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1104. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1105. }
  1106. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1107. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1108. _content = $$("div", {
  1109. className: "U_MD_D_KO",
  1110. "onmousedown": U.UF.C.closure(function (obj) {
  1111. //防止拖动图标即打开了桌面应用
  1112. U.MD.D.click(this, obj);
  1113. }, [_szulsDeskIcon[i]]),
  1114. "onclick": U.UF.C.closure(function (obj) {
  1115. //防止拖动图标即打开了桌面应用
  1116. U.MD.D.click(this, obj);
  1117. }, [_szulsDeskIcon[i]])
  1118. }, _frag); //
  1119. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1120. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1121. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1122. }
  1123. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1124. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1125. _content = $$("div", {
  1126. className: "U_MD_D_KO",
  1127. "onmousedown": U.UF.C.closure(function (obj) {
  1128. //防止拖动图标即打开了桌面应用
  1129. U.MD.D.click(this, obj);
  1130. }, [_orgDesktopIconInfo[i]]),
  1131. "onclick": U.UF.C.closure(function (obj) {
  1132. //防止拖动图标即打开了桌面应用
  1133. U.MD.D.click(this, obj);
  1134. }, [_orgDesktopIconInfo[i]])
  1135. }, _frag); //
  1136. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1137. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1138. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1139. }
  1140. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1141. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1142. _content = $$("div", {
  1143. className: "U_MD_D_KO",
  1144. "onmousedown": U.UF.C.closure(function (obj) {
  1145. //防止拖动图标即打开了桌面应用
  1146. U.MD.D.click(this, obj);
  1147. }, [_schoolDesktopIconInfo[i]]),
  1148. "onclick": U.UF.C.closure(function (obj) {
  1149. //防止拖动图标即打开了桌面应用
  1150. U.MD.D.click(this, obj);
  1151. }, [_schoolDesktopIconInfo[i]])
  1152. }, _frag); //
  1153. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1154. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1155. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1156. }
  1157. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1158. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1159. _content = $$("div", {
  1160. className: "U_MD_D_KO",
  1161. "onmousedown": U.UF.C.closure(function (obj) {
  1162. //防止拖动图标即打开了桌面应用
  1163. U.MD.D.click(this, obj);
  1164. }, [_GMteacherDesktopIconInfo[i]]),
  1165. "onclick": U.UF.C.closure(function (obj) {
  1166. //防止拖动图标即打开了桌面应用
  1167. U.MD.D.click(this, obj);
  1168. }, [_GMteacherDesktopIconInfo[i]])
  1169. }, _frag); //
  1170. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1171. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1172. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1173. }
  1174. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1175. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1176. _content = $$("div", {
  1177. className: "U_MD_D_KO",
  1178. "onmousedown": U.UF.C.closure(function (obj) {
  1179. //防止拖动图标即打开了桌面应用
  1180. U.MD.D.click(this, obj);
  1181. }, [_SONGteacherDesktopIconInfo[i]]),
  1182. "onclick": U.UF.C.closure(function (obj) {
  1183. //防止拖动图标即打开了桌面应用
  1184. U.MD.D.click(this, obj);
  1185. }, [_SONGteacherDesktopIconInfo[i]])
  1186. }, _frag); //
  1187. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1188. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1189. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1190. }
  1191. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1192. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1193. _content = $$("div", {
  1194. className: "U_MD_D_KO",
  1195. "onmousedown": U.UF.C.closure(function (obj) {
  1196. //防止拖动图标即打开了桌面应用
  1197. U.MD.D.click(this, obj);
  1198. }, [_GMstudentDesktopIconInfo[i]]),
  1199. "onclick": U.UF.C.closure(function (obj) {
  1200. //防止拖动图标即打开了桌面应用
  1201. U.MD.D.click(this, obj);
  1202. }, [_GMstudentDesktopIconInfo[i]])
  1203. }, _frag); //
  1204. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1205. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1206. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1207. }
  1208. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1209. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1210. _content = $$("div", {
  1211. className: "U_MD_D_KO",
  1212. "onmousedown": U.UF.C.closure(function (obj) {
  1213. //防止拖动图标即打开了桌面应用
  1214. U.MD.D.click(this, obj);
  1215. }, [_tcTeacherDeskIconInfo[i]]),
  1216. "onclick": U.UF.C.closure(function (obj) {
  1217. //防止拖动图标即打开了桌面应用
  1218. U.MD.D.click(this, obj);
  1219. }, [_tcTeacherDeskIconInfo[i]])
  1220. }, _frag); //
  1221. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1222. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1223. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1224. }
  1225. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1226. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1227. _content = $$("div", {
  1228. className: "U_MD_D_KO",
  1229. "onmousedown": U.UF.C.closure(function (obj) {
  1230. //防止拖动图标即打开了桌面应用
  1231. U.MD.D.click(this, obj);
  1232. }, [_tcOrganizerDeskIconInfo[i]]),
  1233. "onclick": U.UF.C.closure(function (obj) {
  1234. //防止拖动图标即打开了桌面应用
  1235. U.MD.D.click(this, obj);
  1236. }, [_tcOrganizerDeskIconInfo[i]])
  1237. }, _frag); //
  1238. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1239. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1240. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1241. }
  1242. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1243. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1244. _content = $$("div", {
  1245. className: "U_MD_D_KO",
  1246. "onmousedown": U.UF.C.closure(function (obj) {
  1247. //防止拖动图标即打开了桌面应用
  1248. U.MD.D.click(this, obj);
  1249. }, [_szscTeacherDeskIconInfo[i]]),
  1250. "onclick": U.UF.C.closure(function (obj) {
  1251. //防止拖动图标即打开了桌面应用
  1252. U.MD.D.click(this, obj);
  1253. }, [_szscTeacherDeskIconInfo[i]])
  1254. }, _frag); //
  1255. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1256. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1257. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1258. }
  1259. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1260. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1261. _content = $$("div", {
  1262. className: "U_MD_D_KO",
  1263. "onmousedown": U.UF.C.closure(function (obj) {
  1264. //防止拖动图标即打开了桌面应用
  1265. U.MD.D.click(this, obj);
  1266. }, [_szscOrganizerDeskIconInfo[i]]),
  1267. "onclick": U.UF.C.closure(function (obj) {
  1268. //防止拖动图标即打开了桌面应用
  1269. U.MD.D.click(this, obj);
  1270. }, [_szscOrganizerDeskIconInfo[i]])
  1271. }, _frag); //
  1272. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1273. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1274. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1275. }
  1276. } else {
  1277. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1278. _content = $$("div", {
  1279. className: "U_MD_D_KO",
  1280. "onmousedown": U.UF.C.closure(function (obj) {
  1281. //防止拖动图标即打开了桌面应用
  1282. U.MD.D.click(this, obj);
  1283. }, [_teacherDesktopIconInfo[i]]),
  1284. "onclick": U.UF.C.closure(function (obj) {
  1285. //防止拖动图标即打开了桌面应用
  1286. U.MD.D.click(this, obj);
  1287. }, [_teacherDesktopIconInfo[i]])
  1288. }, _frag); //
  1289. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1290. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1291. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1292. }
  1293. }
  1294. } else {
  1295. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1296. _content = $$("div", {
  1297. className: "U_MD_D_KO",
  1298. style: { 'width': '124px', 'height': '145px' },
  1299. "onmousedown": U.UF.C.closure(function (obj) {
  1300. //防止拖动图标即打开了桌面应用
  1301. U.MD.D.click(this, obj);
  1302. }, [_easyDesktopIconInfo[i]]),
  1303. "onclick": U.UF.C.closure(function (obj) {
  1304. //防止拖动图标即打开了桌面应用
  1305. U.MD.D.click(this, obj);
  1306. }, [_easyDesktopIconInfo[i]])
  1307. }, _frag); //
  1308. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1309. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1310. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1311. }
  1312. }
  1313. if (type == 1) {
  1314. //加载好后给图标定位
  1315. U.MD.D.iconPostion($(_frag).Child());
  1316. } else {
  1317. //加载好后给图标定位
  1318. U.MD.D.iconPostion2($(_frag).Child());
  1319. }
  1320. //把图标加载到页面
  1321. el.appendChild(_frag);
  1322. }
  1323. /**
  1324. * 显示任务栏
  1325. *
  1326. * @param {element} 桌面元素
  1327. */
  1328. U.MD.D.I.displayTaskbar = function (el) {
  1329. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1330. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1331. //任务栏位置变化
  1332. U.selectEl(el).css({ "bottom": "0px" });
  1333. //桌面位置变话
  1334. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1335. }
  1336. }
  1337. //#region 桌面图标拖动逻辑
  1338. /**
  1339. * 桌面排列图标
  1340. *
  1341. * @param {element} 桌面元素
  1342. * @param {object} 上下相距的距离
  1343. * @param {object} 左右相距的距离
  1344. * @return {object} 命名空间
  1345. */
  1346. U.MD.D.iconPostion = function (childs, top, left) {
  1347. var i; //用于循环处理
  1348. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1349. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1350. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1351. for (i = 0; i < childs.length; i++) {
  1352. //如果竖排top超过了范围处理
  1353. if (top + 95 > US.height - 10) {
  1354. //left超过了页面范围处理,则向上重叠打印处理
  1355. if ((left + 180) > US.width) {
  1356. top -= 110;
  1357. left -= 90;
  1358. }
  1359. //没有超过范围,那么left+90添加到下一个竖排打印
  1360. else {
  1361. left += 90;
  1362. top = 15;
  1363. };
  1364. }
  1365. //给图标的位置赋值
  1366. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1367. if (i < childs.length - 1) {
  1368. //页面图标每次向下加95
  1369. top += 95;
  1370. }
  1371. }
  1372. //返回最后调用的图标的位置
  1373. return [top, left];
  1374. }
  1375. /**
  1376. * 桌面排列图标
  1377. *
  1378. * @param {element} 桌面元素
  1379. * @param {object} 上下相距的距离
  1380. * @param {object} 左右相距的距离
  1381. * @return {object} 命名空间
  1382. */
  1383. U.MD.D.iconPostion2 = function (childs, top, left) {
  1384. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1385. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1386. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1387. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1388. for (i = 0; i < childs.length; i++) {
  1389. //如果竖排top超过了范围处理
  1390. if (left + 150 > US.width - 10) {
  1391. //left超过了页面范围处理,则向上重叠打印处理
  1392. if ((top + 180) > US.Height) {
  1393. top -= 150;
  1394. left -= 150;
  1395. }
  1396. //没有超过范围,那么left+90添加到下一个竖排打印
  1397. else {
  1398. top += 150;
  1399. left = ol;
  1400. };
  1401. }
  1402. //给图标的位置赋值
  1403. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1404. if (i < childs.length - 1) {
  1405. //页面图标每次向下加95
  1406. left += 150;
  1407. }
  1408. }
  1409. //返回最后调用的图标的位置
  1410. return [top, left];
  1411. }
  1412. /**
  1413. * 桌面点击事件逻辑
  1414. *
  1415. * @param {element} 桌面元素
  1416. * @param {object} 上下相距的距离
  1417. * @param {object} 左右相距的距离
  1418. * @return {object} 命名空间
  1419. */
  1420. U.MD.D.click = function (el, obj) {
  1421. var _buttonnumber = event.button; //点击的按钮的事件值
  1422. var _userinfo = US.userInfo;
  1423. U.UF.EV.stopBubble(); //阻止向上冒泡
  1424. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1425. if (_buttonnumber < 2) {
  1426. //如果是click事件的处理
  1427. if (event.type == "click") {
  1428. //如果元素在mousemove事件中没有移动则出发click事件
  1429. if (!U.MD.D.I.IsDrag) {
  1430. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1431. U.alert("请先登录您的账号!");
  1432. setTimeout(() => {
  1433. U.MD.U.L.login();
  1434. }, 2000);
  1435. } else {
  1436. //打开应用处理
  1437. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1438. }
  1439. }
  1440. }
  1441. //如果是mouse事件的处理
  1442. else {
  1443. if (US.Config.type == '1') {
  1444. //拖动处理,添加拖动和拖动结束事件
  1445. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1446. }
  1447. }
  1448. U.MD.D.I.IsDrag = false;
  1449. }
  1450. }
  1451. /**
  1452. * 拖动的处理
  1453. *
  1454. */
  1455. U.MD.D.iconMove = function () {
  1456. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1457. U.MD.D.I.IsDrag = true;
  1458. }
  1459. /**
  1460. * 拖动结束后,这里是定位处理,以网状的形式定位
  1461. *
  1462. * @param {element} 拖动的元素
  1463. * @return {object} 命名空间
  1464. */
  1465. U.MD.D.iconUp = function (el) {
  1466. var _top = 15,
  1467. _left = 20,
  1468. _margin,
  1469. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1470. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1471. if (_positioninfo["OT"] > 15) {
  1472. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1473. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1474. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1475. }
  1476. if (_positioninfo["OL"] > 20) {
  1477. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1478. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1479. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1480. }
  1481. //while循环判断么一个重叠的元素
  1482. do {
  1483. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1484. _top = _positioninfo[0] + 95; //得到定位后的top
  1485. _left = _positioninfo[1]; //得到定位后的left
  1486. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1487. }
  1488. /**
  1489. * 判断拖动后图标是否重叠
  1490. *
  1491. * @param {element} 拖动的元素
  1492. * @param {element} 桌面所有的元素
  1493. * @param {array} 拖动元素的位置
  1494. ----------[0] 上 top
  1495. ----------[1] 左 left
  1496. * @return {object} 命名空间
  1497. */
  1498. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1499. //循环所有的图标
  1500. for (var i = 0; i < childs.length; i++) {
  1501. //判断有没有和该图标诶子重叠的元素
  1502. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1503. return childs[i]; //如果有返回
  1504. }
  1505. }
  1506. }
  1507. //#endregion
  1508. //#endregion
  1509. //#region 桌面应用
  1510. /**
  1511. * 打开应用
  1512. *
  1513. * @param {string} 类型
  1514. -----------------Disk 网盘系统
  1515. -----------------PDisk 学习系统网盘
  1516. -----------------Poto 图片
  1517. -----------------Video 视频
  1518. -----------------Music 音乐
  1519. -----------------Word word
  1520. -----------------Excel excel
  1521. -----------------Txt 记事本
  1522. -----------------PB 学习系统
  1523. -----------------Blog 朋友圈系统
  1524. -----------------FTP ftp系统
  1525. -----------------Group 好友群
  1526. -----------------SY 首页系统
  1527. -----------------Set 个人设置
  1528. -----------------XSet 系统设置
  1529. -----------------App 我们所有的app
  1530. -----------------BC c.1473.cn 平台
  1531. -----------------CWeb d.1473.cn 变成平台
  1532. -----------------其他的外联系统 我们统一用iframe打开
  1533. * @param {array} 类型
  1534. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1535. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1536. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1537. 如果第一个参数为其他,则无第二个参数
  1538. * @returns {array}
  1539. */
  1540. window.addEventListener('message', function (e) { // 监听 message 事件
  1541. // alert(e.data.type);
  1542. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1543. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1544. //3是展示全部阶段 2学生 1老师 4专家
  1545. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1546. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1547. //3是展示全部阶段 2学生 1老师 4专家
  1548. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1549. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1550. //3是展示全部阶段 2学生 1老师 4专家
  1551. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1552. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1553. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1554. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1555. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1556. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1557. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1558. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1559. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1560. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1561. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1562. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1563. //3是展示全部阶段 2学生 1老师 4专家
  1564. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1565. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1566. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1567. U.MD.D.I.selectUser();
  1568. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1569. var _formel = document.getElementById("study");
  1570. U.UF.F.windowZooming(_formel);
  1571. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1572. var _formel = document.getElementById("studyDetail");
  1573. U.UF.F.windowZooming(_formel);
  1574. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1575. var _formel = document.getElementById("studyDetail");
  1576. U.UF.F.windowZooming(_formel);
  1577. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1578. var _formel = document.getElementById("studentStudy");
  1579. U.UF.F.windowZooming(_formel);
  1580. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1581. // var _formel = document.getElementById("study");
  1582. //如果最大化了,那么就把他缩小
  1583. // if (_formel.ismaximize) {
  1584. // return;
  1585. // }
  1586. // U.UF.F.windowZooming(_formel);
  1587. // U.UF.F.topWindow(_formel);
  1588. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1589. // var _formel = document.getElementById("studyDetail");
  1590. //如果最大化了,那么就把他缩小
  1591. // if (_formel.ismaximize) {
  1592. // return;
  1593. // }
  1594. // U.UF.F.windowZooming(_formel);
  1595. // U.UF.F.topWindow(_formel);
  1596. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1597. // var _formel = document.getElementById("studentStudy");
  1598. // if (_formel.ismaximize) {
  1599. // return;
  1600. // }
  1601. // U.UF.F.windowZooming(_formel);
  1602. // U.UF.F.topWindow(_formel);
  1603. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1604. var _formel = document.getElementById("study");
  1605. // if (_formel.ismaximize) {
  1606. // return;
  1607. // }
  1608. // U.UF.F.windowZooming(_formel);
  1609. U.UF.F.topWindow(_formel);
  1610. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1611. var _formel = document.getElementById("studentIndex");
  1612. U.UF.F.windowZooming(_formel);
  1613. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1614. var _formel = document.getElementById("studyDetailS");
  1615. U.UF.F.windowZooming(_formel);
  1616. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1617. var _formel = document.getElementById("studioIndex");
  1618. U.UF.F.windowZooming(_formel);
  1619. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1620. var _formel = document.getElementById("studyDetailStudio");
  1621. U.UF.F.windowZooming(_formel);
  1622. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1623. var _formel = document.getElementById("studyDetailStudio");
  1624. U.UF.F.windowZooming(_formel);
  1625. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1626. var _formel = document.getElementById("studyDetailNT");
  1627. U.UF.F.windowZooming(_formel);
  1628. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1629. var _formel = document.getElementById("studyDetailS");
  1630. U.UF.F.windowZooming(_formel);
  1631. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1632. var _formel = document.getElementById("studyDetailS");
  1633. U.UF.F.topWindow(_formel);
  1634. } else if (e.data.tools && e.data.tools == "1") {
  1635. // U.MD.D.I.openApplication("whiteboard")
  1636. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1637. } else if (e.data.tools && e.data.tools == "2") {
  1638. U.MD.D.I.openApplication("note")
  1639. } else if (e.data.tools && e.data.tools == "3") {
  1640. // U.MD.D.I.openApplication("mind")
  1641. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1642. } else if (e.data.tools && e.data.tools == "4") {
  1643. U.MD.D.I.openApplication("investigation")
  1644. } else if (e.data.tools && e.data.tools == "6") {
  1645. // U.MD.D.I.openApplication("doc")
  1646. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1647. } else if (e.data.tools && e.data.tools == "7") {
  1648. // U.MD.D.I.openApplication("mindNetwork")
  1649. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1650. } else if (e.data.tools && e.data.tools == "8") {
  1651. U.MD.D.I.openApplication("library")
  1652. } else if (e.data.tools && e.data.tools == "17") {
  1653. U.MD.D.I.openApplication("stuLibrary")
  1654. } else if (e.data.tools && e.data.tools == "18") {
  1655. U.MD.D.I.openApplication("train")
  1656. } else if (e.data.tools && e.data.tools == "21") {
  1657. U.MD.D.I.openApplication("program")
  1658. } else if (e.data.tools && e.data.tools == "22") {
  1659. U.MD.D.I.openApplication("AIprogram2")
  1660. } else if (e.data.tools && e.data.tools == "23") {
  1661. U.MD.D.I.openApplication("Pythonprogram")
  1662. } else if (e.data.tools && e.data.tools == "24") {
  1663. U.MD.D.I.openApplication("AIprogram")
  1664. } else if (e.data.tools && e.data.tools == "25") {
  1665. U.MD.D.I.openApplication("sys")
  1666. } else if (e.data.tools && e.data.tools == "26") {
  1667. // U.MD.D.I.openApplication("courseDesign")
  1668. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1669. } else if (e.data.tools && e.data.tools == "31") {
  1670. U.MD.D.I.openApplication("netWorkPanel")
  1671. } else if (e.data.tools && e.data.tools == "32") {
  1672. U.MD.D.I.openApplication("codeEdit")
  1673. } else if (e.data.tools && e.data.tools == "57") {
  1674. U.MD.D.I.openApplication("CocoPi")
  1675. } else if (e.data.tools && e.data.tools == "63") {
  1676. U.MD.D.I.openApplication("Wood")
  1677. } else if (e.data.tools && e.data.tools == "58") {
  1678. U.MD.D.I.openApplication("car")
  1679. } else if (e.data.tools && e.data.tools == "59") {
  1680. U.MD.D.I.openApplication("lineSearch")
  1681. } else if (e.data.tools && e.data.tools == "60") {
  1682. U.MD.D.I.openApplication("deepLearning")
  1683. } else if (e.data.tools && e.data.tools == "61") {
  1684. U.MD.D.I.openApplication("allHistory")
  1685. } else if (e.data.tools && e.data.tools == "28") {
  1686. U.MD.D.I.openApplication("translation")
  1687. } else if (e.data.tools && e.data.tools == "37") {
  1688. U.MD.D.I.openApplication("mohe")
  1689. } else if (e.data.tools && e.data.tools == "38") {
  1690. U.MD.D.I.openApplication("24game")
  1691. } else if (e.data.tools && e.data.tools == "39") {
  1692. U.MD.D.I.openApplication("GeoGebra")
  1693. } else if (e.data.tools && e.data.tools == "43") {
  1694. U.MD.D.I.openApplication("studentEvaluate")
  1695. } else if (e.data.tools && e.data.tools == "44") {
  1696. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1697. } else if (e.data.tools && e.data.tools == "46") {
  1698. U.MD.D.I.openApplication("project")
  1699. } else if (e.data.tools && e.data.tools == "1s") {
  1700. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1701. } else if (e.data.tools && e.data.tools == "3s") {
  1702. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1703. } else if (e.data.tools && e.data.tools == "6s") {
  1704. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1705. } else if (e.data.tools && e.data.tools == "1studio") {
  1706. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1707. } else if (e.data.tools && e.data.tools == "3studio") {
  1708. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1709. } else if (e.data.tools && e.data.tools == "6studio") {
  1710. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1711. } else if (e.data.tools && e.data.tools == "3y") {
  1712. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1713. } else if (e.data.tools && e.data.tools == "1y") {
  1714. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1715. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1716. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1717. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1718. U.MD.D.I.openApplication("AIAnalyse")
  1719. } else if (e.data.tools && e.data.tools == "1teacher") {
  1720. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1721. } else if (e.data.tools && e.data.tools == "3teacher") {
  1722. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1723. } else if (e.data.tools && e.data.tools == "7teacher") {
  1724. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1725. } else if (e.data.tools && e.data.tools == "1teacherE") {
  1726. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1727. } else if (e.data.tools && e.data.tools == "3teacherE") {
  1728. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1729. } else if (e.data.tools && e.data.tools == "1E") {
  1730. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1731. } else if (e.data.tools && e.data.tools == "3E") {
  1732. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1733. } else if (e.data.tools && e.data.tools == "57y") {
  1734. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1735. } else if (e.data.tools && e.data.tools == "57u") {
  1736. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1737. } else if (e.data.tools && e.data.tools == "57teacher") {
  1738. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1739. }
  1740. });
  1741. U.MD.D.I.selectUser = function () {
  1742. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1743. if (res.value[0].length > 0) {
  1744. US.userInfo = res.value[0][0];
  1745. $(".userName")[0].innerHTML = US.userInfo.username;
  1746. }
  1747. }, [], { "type": "GET", "withCredentials": true });
  1748. }
  1749. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1750. var _userinfo = US.userInfo, //登录用户信息
  1751. _userid = US.userInfo.userid, //登录用户id
  1752. _oid = _userinfo.organizeid,
  1753. _type = US.userInfo.type,
  1754. _org = US.userInfo.org,
  1755. _role = US.userInfo.role,
  1756. _classId = US.userInfo.classid;
  1757. if (_type == 4) {
  1758. tType = 4
  1759. }
  1760. switch (str) {
  1761. case "studyDetailNT"://无终端模式
  1762. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1763. setTimeout(() => {
  1764. U.MD.U.L.login();
  1765. }, 2000);
  1766. } else {
  1767. _formdiv = new U.UF.UI.form(
  1768. "课程详情",
  1769. $$("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 }), {
  1770. "id": "studyDetailNT",
  1771. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1772. "onresize": function () { }
  1773. }, {
  1774. closecallback: function () { }
  1775. }, { "style": { "height": "36px" } }).form; //创建窗体
  1776. _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); } }
  1777. break;
  1778. }
  1779. case "studyDetail":
  1780. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1781. setTimeout(() => {
  1782. U.MD.U.L.login();
  1783. }, 2000);
  1784. } else {
  1785. _formdiv = new U.UF.UI.form(
  1786. "课程详情",
  1787. $$("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 }), {
  1788. "id": "studyDetail",
  1789. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1790. "onresize": function () { }
  1791. }, {
  1792. closecallback: function () { }
  1793. }, { "style": { "height": "36px" } }).form; //创建窗体
  1794. _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); } }
  1795. break;
  1796. }
  1797. case "studyDetailS":
  1798. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1799. setTimeout(() => {
  1800. U.MD.U.L.login();
  1801. }, 2000);
  1802. } else {
  1803. _formdiv = new U.UF.UI.form(
  1804. "项目详情",
  1805. $$("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 }), {
  1806. "id": "studyDetailS",
  1807. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1808. "onresize": function () { }
  1809. }, {
  1810. closecallback: function () { }
  1811. }, { "style": { "height": "36px" } }).form; //创建窗体
  1812. _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); } }
  1813. break;
  1814. }
  1815. case "studyDetailStudio":
  1816. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1817. setTimeout(() => {
  1818. U.MD.U.L.login();
  1819. }, 2000);
  1820. } else {
  1821. _formdiv = new U.UF.UI.form(
  1822. "工作详情",
  1823. $$("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 }), {
  1824. "id": "studyDetailStudio",
  1825. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1826. "onresize": function () { }
  1827. }, {
  1828. closecallback: function () { }
  1829. }, { "style": { "height": "36px" } }).form; //创建窗体
  1830. _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); } }
  1831. break;
  1832. }
  1833. case "studyDetailS5":
  1834. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1835. setTimeout(() => {
  1836. U.MD.U.L.login();
  1837. }, 2000);
  1838. } else {
  1839. _formdiv = new U.UF.UI.form(
  1840. "项目详情",
  1841. $$("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 }), {
  1842. "id": "studyDetailS",
  1843. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1844. "onresize": function () { }
  1845. }, {
  1846. closecallback: function () { }
  1847. }, { "style": { "height": "36px" } }).form; //创建窗体
  1848. _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); } }
  1849. break;
  1850. }
  1851. case "studyDetailGM":
  1852. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1853. setTimeout(() => {
  1854. U.MD.U.L.login();
  1855. }, 2000);
  1856. } else {
  1857. _formdiv = new U.UF.UI.form(
  1858. "课程详情",
  1859. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1860. "id": "studyDetail",
  1861. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1862. "onresize": function () { }
  1863. }, {
  1864. closecallback: function () { }
  1865. }, { "style": { "height": "36px" } }).form; //创建窗体
  1866. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1867. break;
  1868. }
  1869. case "hanUrl":
  1870. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1871. setTimeout(() => {
  1872. U.MD.U.L.login();
  1873. }, 2000);
  1874. } else {
  1875. _formdiv = new U.UF.UI.form(
  1876. "汉字宫",
  1877. $$("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" }), {
  1878. "id": "hanUrl",
  1879. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1880. "onresize": function () { }
  1881. }, {
  1882. closecallback: function () { }
  1883. }, { "style": { "height": "36px" } }).form; //创建窗体
  1884. _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); } }
  1885. break;
  1886. }
  1887. }
  1888. }
  1889. U.MD.D.I.openApplication = function (str, obj, info) {
  1890. obj = obj || {};
  1891. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1892. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1893. _userinfo = US.userInfo, //登录用户信息
  1894. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1895. _oid = obj.organizeid || _userinfo.organizeid,
  1896. _type = US.userInfo.type,
  1897. _org = US.userInfo.org,
  1898. _role = US.userInfo.role,
  1899. _classId = US.userInfo.classid,
  1900. _TscreenType = 1
  1901. _screenType = 2,
  1902. _SscreenType = 3;
  1903. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1904. return;
  1905. }
  1906. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1907. switch (str) {
  1908. case "studnetProject": //好友打开
  1909. _formdiv = new U.UF.UI.form(
  1910. "我的项目",
  1911. $$("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 }), {
  1912. "id": "studnetProject",
  1913. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1914. "onresize": function () { }
  1915. }, {
  1916. closecallback: function () { }
  1917. }, { "style": { "height": "36px" } }).form; //创建窗体
  1918. _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); } }
  1919. break;
  1920. case "studentEvaluate": //好友打开
  1921. _formdiv = new U.UF.UI.form(
  1922. "我的评价",
  1923. $$("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 }), {
  1924. "id": "studentEvaluate",
  1925. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1926. "onresize": function () { }
  1927. }, {
  1928. closecallback: function () { }
  1929. }, { "style": { "height": "36px" } }).form; //创建窗体
  1930. _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); } }
  1931. break;
  1932. case "my":
  1933. _formdiv = new U.UF.UI.form(
  1934. "我的资料",
  1935. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  1936. "id": "my",
  1937. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1938. "onresize": function () { }
  1939. }, {
  1940. closecallback: function () { }
  1941. }, { "style": { "height": "36px" } }).form; //创建窗体
  1942. _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); } }
  1943. break;
  1944. case "program":
  1945. _formdiv = new U.UF.UI.form(
  1946. "编程平台",
  1947. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1948. "id": "program",
  1949. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1950. "onresize": function () { }
  1951. }, {
  1952. closecallback: function () { }
  1953. }, { "style": { "height": "36px" } }).form; //创建窗体
  1954. _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); } }
  1955. break;
  1956. case "library":
  1957. _formdiv = new U.UF.UI.form(
  1958. "素材库",
  1959. $$("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 }), {
  1960. "id": "library",
  1961. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1962. "onresize": function () { }
  1963. }, {
  1964. closecallback: function () { }
  1965. }, { "style": { "height": "36px" } }).form; //创建窗体
  1966. _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); } }
  1967. break;
  1968. case "whiteboard":
  1969. _formdiv = new U.UF.UI.form(
  1970. "电子白板",
  1971. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1972. "id": "whiteboard",
  1973. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1974. "onresize": function () { }
  1975. }, {
  1976. closecallback: function () { }
  1977. }, { "style": { "height": "36px" } }).form; //创建窗体
  1978. _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); } }
  1979. break;
  1980. case "investigation":
  1981. _formdiv = new U.UF.UI.form(
  1982. "问卷调查",
  1983. $$("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 }), {
  1984. "id": "investigation",
  1985. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1986. "onresize": function () { }
  1987. }, {
  1988. closecallback: function () { }
  1989. }, { "style": { "height": "36px" } }).form; //创建窗体
  1990. _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); } }
  1991. break;
  1992. case "note":
  1993. _formdiv = new U.UF.UI.form(
  1994. "便签分类",
  1995. $$("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 }), {
  1996. "id": "note",
  1997. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1998. "onresize": function () { }
  1999. }, {
  2000. closecallback: function () { }
  2001. }, { "style": { "height": "36px" } }).form; //创建窗体
  2002. _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); } }
  2003. break;
  2004. // case "score":
  2005. // _formdiv = new U.UF.UI.form(
  2006. // "量规评分",
  2007. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2008. // "id": "score",
  2009. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2010. // "onresize": function() {}
  2011. // }, {
  2012. // closecallback: function() {}
  2013. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2014. // _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); } }
  2015. // break;
  2016. case "mind":
  2017. _formdiv = new U.UF.UI.form(
  2018. "思维导图",
  2019. $$("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"
  2020. "id": "mind",
  2021. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2022. "onresize": function () { }
  2023. }, {
  2024. closecallback: function () { }
  2025. }, { "style": { "height": "36px" } }).form; //创建窗体
  2026. _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); } }
  2027. break;
  2028. case "doc":
  2029. // U.MD.D.I.isRoom();
  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": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2033. "id": "doc",
  2034. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2035. "onresize": function () { }
  2036. }, {
  2037. closecallback: function () { }
  2038. }, { "style": { "height": "36px" } }).form; //创建窗体
  2039. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2040. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2041. // })
  2042. _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); } }
  2043. break;
  2044. case "studentStudy":
  2045. _formdiv = new U.UF.UI.form(
  2046. "课程中心",
  2047. $$("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
  2048. "id": "studentStudy",
  2049. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2050. "onresize": function () { }
  2051. }, {
  2052. closecallback: function () { }
  2053. }, { "style": { "height": "36px" } }).form; //创建窗体
  2054. _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); } }
  2055. break;
  2056. case "train": //好友打开
  2057. _formdiv = new U.UF.UI.form(
  2058. "训练平台",
  2059. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2060. "id": "train",
  2061. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2062. "onresize": function () { }
  2063. }, {
  2064. closecallback: function () { }
  2065. }, { "style": { "height": "36px" } }).form; //创建窗体
  2066. _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); } }
  2067. break;
  2068. case "mindNetwork": //好友打开
  2069. _formdiv = new U.UF.UI.form(
  2070. "思维网格",
  2071. $$("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 }), {
  2072. "id": "mindNetwork",
  2073. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2074. "onresize": function () { }
  2075. }, {
  2076. closecallback: function () { }
  2077. }, { "style": { "height": "36px" } }).form; //创建窗体
  2078. _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); } }
  2079. break;
  2080. case "studentClassRoom": //好友打开
  2081. _formdiv = new U.UF.UI.form(
  2082. "实时课堂",
  2083. $$("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 }), {
  2084. "id": "studentClassRoom",
  2085. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2086. "onresize": function () { }
  2087. }, {
  2088. closecallback: function () { }
  2089. }, { "style": { "height": "36px" } }).form; //创建窗体
  2090. _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); } }
  2091. setTimeout(() => {
  2092. U.UF.F.windowZooming(_formdiv)
  2093. }, 0);
  2094. break;
  2095. }
  2096. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2097. switch (str) {
  2098. case "studnetProject": //好友打开
  2099. _formdiv = new U.UF.UI.form(
  2100. "我的项目",
  2101. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  2102. "id": "studnetProject",
  2103. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2104. "onresize": function () { }
  2105. }, {
  2106. closecallback: function () { }
  2107. }, { "style": { "height": "36px" } }).form; //创建窗体
  2108. _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); } }
  2109. break;
  2110. case "studentEvaluate": //好友打开
  2111. _formdiv = new U.UF.UI.form(
  2112. "我的评价",
  2113. $$("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 }), {
  2114. "id": "studentEvaluate",
  2115. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2116. "onresize": function () { }
  2117. }, {
  2118. closecallback: function () { }
  2119. }, { "style": { "height": "36px" } }).form; //创建窗体
  2120. _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); } }
  2121. break;
  2122. case "my":
  2123. _formdiv = new U.UF.UI.form(
  2124. "我的资料",
  2125. $$("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 }), {
  2126. "id": "my",
  2127. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2128. "onresize": function () { }
  2129. }, {
  2130. closecallback: function () { }
  2131. }, { "style": { "height": "36px" } }).form; //创建窗体
  2132. _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); } }
  2133. break;
  2134. case "program":
  2135. _formdiv = new U.UF.UI.form(
  2136. "编程平台",
  2137. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2138. "id": "program",
  2139. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2140. "onresize": function () { }
  2141. }, {
  2142. closecallback: function () { }
  2143. }, { "style": { "height": "36px" } }).form; //创建窗体
  2144. _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); } }
  2145. break;
  2146. case "library":
  2147. _formdiv = new U.UF.UI.form(
  2148. "素材库",
  2149. $$("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 }), {
  2150. "id": "library",
  2151. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2152. "onresize": function () { }
  2153. }, {
  2154. closecallback: function () { }
  2155. }, { "style": { "height": "36px" } }).form; //创建窗体
  2156. _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); } }
  2157. break;
  2158. case "whiteboard":
  2159. _formdiv = new U.UF.UI.form(
  2160. "电子白板",
  2161. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2162. "id": "whiteboard",
  2163. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2164. "onresize": function () { }
  2165. }, {
  2166. closecallback: function () { }
  2167. }, { "style": { "height": "36px" } }).form; //创建窗体
  2168. _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); } }
  2169. break;
  2170. case "investigation":
  2171. _formdiv = new U.UF.UI.form(
  2172. "问卷调查",
  2173. $$("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 }), {
  2174. "id": "investigation",
  2175. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2176. "onresize": function () { }
  2177. }, {
  2178. closecallback: function () { }
  2179. }, { "style": { "height": "36px" } }).form; //创建窗体
  2180. _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); } }
  2181. break;
  2182. case "note":
  2183. _formdiv = new U.UF.UI.form(
  2184. "便签分类",
  2185. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  2186. "id": "note",
  2187. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2188. "onresize": function () { }
  2189. }, {
  2190. closecallback: function () { }
  2191. }, { "style": { "height": "36px" } }).form; //创建窗体
  2192. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2193. break;
  2194. // case "score":
  2195. // _formdiv = new U.UF.UI.form(
  2196. // "量规评分",
  2197. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2198. // "id": "score",
  2199. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2200. // "onresize": function() {}
  2201. // }, {
  2202. // closecallback: function() {}
  2203. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2204. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2205. // break;
  2206. case "mind":
  2207. _formdiv = new U.UF.UI.form(
  2208. "思维导图",
  2209. $$("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"
  2210. "id": "mind",
  2211. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2212. "onresize": function () { }
  2213. }, {
  2214. closecallback: function () { }
  2215. }, { "style": { "height": "36px" } }).form; //创建窗体
  2216. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2217. break;
  2218. case "doc":
  2219. // U.MD.D.I.isRoom();
  2220. _formdiv = new U.UF.UI.form(
  2221. "协同文档",
  2222. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2223. "id": "doc",
  2224. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2225. "onresize": function () { }
  2226. }, {
  2227. closecallback: function () { }
  2228. }, { "style": { "height": "36px" } }).form; //创建窗体
  2229. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2230. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2231. })
  2232. _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); } }
  2233. break;
  2234. case "train": //好友打开
  2235. _formdiv = new U.UF.UI.form(
  2236. "训练平台",
  2237. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2238. "id": "train",
  2239. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2240. "onresize": function () { }
  2241. }, {
  2242. closecallback: function () { }
  2243. }, { "style": { "height": "36px" } }).form; //创建窗体
  2244. _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); } }
  2245. break;
  2246. case "studentStudy":
  2247. _formdiv = new U.UF.UI.form(
  2248. "课程中心",
  2249. $$("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
  2250. "id": "studentStudy",
  2251. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2252. "onresize": function () { }
  2253. }, {
  2254. closecallback: function () { }
  2255. }, { "style": { "height": "36px" } }).form; //创建窗体
  2256. _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); } }
  2257. break;
  2258. case "mindNetwork": //好友打开
  2259. _formdiv = new U.UF.UI.form(
  2260. "思维网格",
  2261. $$("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 }), {
  2262. "id": "mindNetwork",
  2263. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2264. "onresize": function () { }
  2265. }, {
  2266. closecallback: function () { }
  2267. }, { "style": { "height": "36px" } }).form; //创建窗体
  2268. _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); } }
  2269. break;
  2270. case "studentClassRoom": //好友打开
  2271. _formdiv = new U.UF.UI.form(
  2272. "实时课堂",
  2273. $$("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 }), {
  2274. "id": "studentClassRoom",
  2275. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2276. "onresize": function () { }
  2277. }, {
  2278. closecallback: function () { }
  2279. }, { "style": { "height": "36px" } }).form; //创建窗体
  2280. _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); } }
  2281. setTimeout(() => {
  2282. U.UF.F.windowZooming(_formdiv)
  2283. }, 0);
  2284. break;
  2285. }
  2286. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2287. //选择应用处理
  2288. switch (str) {
  2289. case "project": //好友打开
  2290. _formdiv = new U.UF.UI.form(
  2291. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2292. $$("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 }), {
  2293. "id": "project",
  2294. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2295. "onresize": function () { }
  2296. }, {
  2297. closecallback: function () { }
  2298. }, { "style": { "height": "36px" } }).form; //创建窗体
  2299. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2300. break;
  2301. case "student":
  2302. _formdiv = new U.UF.UI.form(
  2303. "学生管理",
  2304. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  2305. "id": "student",
  2306. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2307. "onresize": function () { }
  2308. }, {
  2309. closecallback: function () { }
  2310. }, { "style": { "height": "36px" } }).form; //创建窗体
  2311. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2312. break;
  2313. case "evaluate":
  2314. _formdiv = new U.UF.UI.form(
  2315. "学生评价",
  2316. $$("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 }), {
  2317. "id": "evaluate",
  2318. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2319. "onresize": function () { }
  2320. }, {
  2321. closecallback: function () { }
  2322. }, { "style": { "height": "36px" } }).form; //创建窗体
  2323. _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); } }
  2324. break;
  2325. case "sys":
  2326. _formdiv = new U.UF.UI.form(
  2327. "目标管理",
  2328. $$("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 }), {
  2329. "id": "sys",
  2330. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2331. "onresize": function () { }
  2332. }, {
  2333. closecallback: function () { }
  2334. }, { "style": { "height": "36px" } }).form; //创建窗体
  2335. _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); } }
  2336. break;
  2337. case "courseDesign":
  2338. _formdiv = new U.UF.UI.form(
  2339. "项目设计",
  2340. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2341. "id": "courseDesign",
  2342. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2343. "onresize": function () { }
  2344. }, {
  2345. closecallback: function () { }
  2346. }, { "style": { "height": "36px" } }).form; //创建窗体
  2347. _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); } }
  2348. break;
  2349. case "program":
  2350. _formdiv = new U.UF.UI.form(
  2351. "编程平台",
  2352. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2353. "id": "program",
  2354. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2355. "onresize": function () { }
  2356. }, {
  2357. closecallback: function () { }
  2358. }, { "style": { "height": "36px" } }).form; //创建窗体
  2359. _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); } }
  2360. break;
  2361. case "class":
  2362. _formdiv = new U.UF.UI.form(
  2363. "班级管理",
  2364. $$("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 }), {
  2365. "id": "class",
  2366. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2367. "onresize": function () { }
  2368. }, {
  2369. closecallback: function () { }
  2370. }, { "style": { "height": "36px" } }).form; //创建窗体
  2371. _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); } }
  2372. break;
  2373. case "my":
  2374. _formdiv = new U.UF.UI.form(
  2375. "我的资料",
  2376. $$("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 }), {
  2377. "id": "my",
  2378. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2379. "onresize": function () { }
  2380. }, {
  2381. closecallback: function () { }
  2382. }, { "style": { "height": "36px" } }).form; //创建窗体
  2383. _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); } }
  2384. break;
  2385. case "notice":
  2386. _formdiv = new U.UF.UI.form(
  2387. "通知公告",
  2388. $$("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 }), {
  2389. "id": "notice",
  2390. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2391. "onresize": function () { }
  2392. }, {
  2393. closecallback: function () { }
  2394. }, { "style": { "height": "36px" } }).form; //创建窗体
  2395. _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); } }
  2396. break;
  2397. case "library":
  2398. _formdiv = new U.UF.UI.form(
  2399. "素材库",
  2400. $$("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 }), {
  2401. "id": "library",
  2402. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2403. "onresize": function () { }
  2404. }, {
  2405. closecallback: function () { }
  2406. }, { "style": { "height": "36px" } }).form; //创建窗体
  2407. _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); } }
  2408. break;
  2409. case "whiteboard":
  2410. _formdiv = new U.UF.UI.form(
  2411. "电子白板",
  2412. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2413. "id": "whiteboard",
  2414. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2415. "onresize": function () { }
  2416. }, {
  2417. closecallback: function () { }
  2418. }, { "style": { "height": "36px" } }).form; //创建窗体
  2419. _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); } }
  2420. break;
  2421. case "investigation":
  2422. _formdiv = new U.UF.UI.form(
  2423. "问卷调查",
  2424. $$("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 }), {
  2425. "id": "investigation",
  2426. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2427. "onresize": function () { }
  2428. }, {
  2429. closecallback: function () { }
  2430. }, { "style": { "height": "36px" } }).form; //创建窗体
  2431. _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); } }
  2432. break;
  2433. case "note":
  2434. _formdiv = new U.UF.UI.form(
  2435. "便签分类",
  2436. $$("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 }), {
  2437. "id": "note",
  2438. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2439. "onresize": function () { }
  2440. }, {
  2441. closecallback: function () { }
  2442. }, { "style": { "height": "36px" } }).form; //创建窗体
  2443. _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); } }
  2444. break;
  2445. // case "score":
  2446. // _formdiv = new U.UF.UI.form(
  2447. // "量规评分",
  2448. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2449. // "id": "score",
  2450. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2451. // "onresize": function() {}
  2452. // }, {
  2453. // closecallback: function() {}
  2454. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2455. // _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); } }
  2456. // break;
  2457. case "mind":
  2458. _formdiv = new U.UF.UI.form(
  2459. "思维导图",
  2460. $$("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"
  2461. "id": "mind",
  2462. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2463. "onresize": function () { }
  2464. }, {
  2465. closecallback: function () { }
  2466. }, { "style": { "height": "36px" } }).form; //创建窗体
  2467. _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); } }
  2468. break;
  2469. case "doc":
  2470. // U.MD.D.I.isRoom();
  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": "/Office/Word/WordEditArea.htm" }), {
  2474. "id": "doc",
  2475. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2476. "onresize": function () { }
  2477. }, {
  2478. closecallback: function () { }
  2479. }, { "style": { "height": "36px" } }).form; //创建窗体
  2480. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2481. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2482. })
  2483. _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); } }
  2484. break;
  2485. case "study":
  2486. _formdiv = new U.UF.UI.form(
  2487. "课程中心",
  2488. $$("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
  2489. "id": "study",
  2490. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2491. "onresize": function () { }
  2492. }, {
  2493. closecallback: function () { }
  2494. }, { "style": { "height": "36px" } }).form; //创建窗体
  2495. _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); } }
  2496. break;
  2497. case "mindNetwork": //好友打开
  2498. _formdiv = new U.UF.UI.form(
  2499. "思维网格",
  2500. $$("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 }), {
  2501. "id": "mindNetwork",
  2502. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2503. "onresize": function () { }
  2504. }, {
  2505. closecallback: function () { }
  2506. }, { "style": { "height": "36px" } }).form; //创建窗体
  2507. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2508. break;
  2509. case "train": //好友打开
  2510. _formdiv = new U.UF.UI.form(
  2511. "训练平台",
  2512. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2513. "id": "mindNetwork",
  2514. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2515. "onresize": function () { }
  2516. }, {
  2517. closecallback: function () { }
  2518. }, { "style": { "height": "36px" } }).form; //创建窗体
  2519. _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); } }
  2520. break;
  2521. case "teacherClassRoom": //好友打开
  2522. _formdiv = new U.UF.UI.form(
  2523. "实时课堂",
  2524. $$("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 }), {
  2525. "id": "teacherClassRoom",
  2526. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2527. "onresize": function () { }
  2528. }, {
  2529. closecallback: function () { }
  2530. }, { "style": { "height": "36px" } }).form; //创建窗体
  2531. _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); } }
  2532. setTimeout(() => {
  2533. U.UF.F.windowZooming(_formdiv)
  2534. }, 0);
  2535. break;
  2536. }
  2537. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2538. switch (str) {
  2539. case "project": //好友打开
  2540. _formdiv = new U.UF.UI.form(
  2541. "课程管理",
  2542. $$("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 }), {
  2543. "id": "project",
  2544. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2545. "onresize": function () { }
  2546. }, {
  2547. closecallback: function () { }
  2548. }, { "style": { "height": "36px" } }).form; //创建窗体
  2549. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2550. break;
  2551. case "evaluate":
  2552. _formdiv = new U.UF.UI.form(
  2553. "学生评价",
  2554. $$("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 }), {
  2555. "id": "evaluate",
  2556. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2557. "onresize": function () { }
  2558. }, {
  2559. closecallback: function () { }
  2560. }, { "style": { "height": "36px" } }).form; //创建窗体
  2561. _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); } }
  2562. break;
  2563. case "notice":
  2564. _formdiv = new U.UF.UI.form(
  2565. "通知公告",
  2566. $$("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 }), {
  2567. "id": "notice",
  2568. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2569. "onresize": function () { }
  2570. }, {
  2571. closecallback: function () { }
  2572. }, { "style": { "height": "36px" } }).form; //创建窗体
  2573. _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); } }
  2574. break;
  2575. case "stuLibrary":
  2576. _formdiv = new U.UF.UI.form(
  2577. "学习资料",
  2578. $$("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 }), {
  2579. "id": "stuLibrary",
  2580. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2581. "onresize": function () { }
  2582. }, {
  2583. closecallback: function () { }
  2584. }, { "style": { "height": "36px" } }).form; //创建窗体
  2585. _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); } }
  2586. break;
  2587. case "program":
  2588. _formdiv = new U.UF.UI.form(
  2589. "编程平台",
  2590. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2591. "id": "program",
  2592. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2593. "onresize": function () { }
  2594. }, {
  2595. closecallback: function () { }
  2596. }, { "style": { "height": "36px" } }).form; //创建窗体
  2597. _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); } }
  2598. break;
  2599. case "whiteboard":
  2600. _formdiv = new U.UF.UI.form(
  2601. "电子白板",
  2602. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2603. "id": "whiteboard",
  2604. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2605. "onresize": function () { }
  2606. }, {
  2607. closecallback: function () { }
  2608. }, { "style": { "height": "36px" } }).form; //创建窗体
  2609. _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); } }
  2610. break;
  2611. case "investigation":
  2612. _formdiv = new U.UF.UI.form(
  2613. "问卷调查",
  2614. $$("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 }), {
  2615. "id": "investigation",
  2616. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2617. "onresize": function () { }
  2618. }, {
  2619. closecallback: function () { }
  2620. }, { "style": { "height": "36px" } }).form; //创建窗体
  2621. _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); } }
  2622. break;
  2623. case "mind":
  2624. _formdiv = new U.UF.UI.form(
  2625. "思维导图",
  2626. $$("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"
  2627. "id": "mind",
  2628. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2629. "onresize": function () { }
  2630. }, {
  2631. closecallback: function () { }
  2632. }, { "style": { "height": "36px" } }).form; //创建窗体
  2633. _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); } }
  2634. break;
  2635. case "doc":
  2636. // U.MD.D.I.isRoom();
  2637. _formdiv = new U.UF.UI.form(
  2638. "协同文档",
  2639. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2640. "id": "doc",
  2641. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2642. "onresize": function () { }
  2643. }, {
  2644. closecallback: function () { }
  2645. }, { "style": { "height": "36px" } }).form; //创建窗体
  2646. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2647. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2648. })
  2649. _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); } }
  2650. break;
  2651. case "study":
  2652. _formdiv = new U.UF.UI.form(
  2653. "课程中心",
  2654. $$("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
  2655. "id": "study",
  2656. "style": { "width": "100%", "height": "100%", "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/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2662. break;
  2663. case "mindNetwork": //好友打开
  2664. _formdiv = new U.UF.UI.form(
  2665. "思维网格",
  2666. $$("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 }), {
  2667. "id": "mindNetwork",
  2668. "style": { "width": "90%", "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/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2674. break;
  2675. case "train": //好友打开
  2676. _formdiv = new U.UF.UI.form(
  2677. "训练平台",
  2678. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2679. "id": "train",
  2680. "style": { "width": "90%", "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/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2686. break;
  2687. case "sys":
  2688. _formdiv = new U.UF.UI.form(
  2689. "目标管理",
  2690. $$("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 }), {
  2691. "id": "sys",
  2692. "style": { "width": "90%", "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/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2698. break;
  2699. case "courseDesign":
  2700. _formdiv = new U.UF.UI.form(
  2701. "项目设计",
  2702. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2703. "id": "courseDesign",
  2704. "style": { "width": "90%", "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/courseDesign.png)" }, "name": "项目设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2710. break;
  2711. }
  2712. } else if (!_type) {
  2713. switch (str) {
  2714. case "my":
  2715. _formdiv = new U.UF.UI.form(
  2716. "我的资料",
  2717. $$("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 }), {
  2718. "id": "my",
  2719. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2720. "onresize": function () { }
  2721. }, {
  2722. closecallback: function () { }
  2723. }, { "style": { "height": "36px" } }).form; //创建窗体
  2724. _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); } }
  2725. break;
  2726. }
  2727. }
  2728. switch (str) {
  2729. // AIprogram2 AI体验 aihub.cocorobo.cn
  2730. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2731. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2732. case "AIprogram2": //AI体验
  2733. _formdiv = new U.UF.UI.form(
  2734. "AI体验",
  2735. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2736. "id": "AIprogram2",
  2737. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2738. "onresize": function () { }
  2739. }, {
  2740. closecallback: function () { }
  2741. }, { "style": { "height": "36px" } }).form; //创建窗体
  2742. _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); } }
  2743. break;
  2744. case "Pythonprogram": //python编程
  2745. _formdiv = new U.UF.UI.form(
  2746. "Python编程",
  2747. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2748. "id": "Pythonprogram",
  2749. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2750. "onresize": function () { }
  2751. }, {
  2752. closecallback: function () { }
  2753. }, { "style": { "height": "36px" } }).form; //创建窗体
  2754. _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); } }
  2755. break;
  2756. case "AIprogram": //ai编程
  2757. _formdiv = new U.UF.UI.form(
  2758. "AI编程平台",
  2759. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2760. "id": "AIprogram",
  2761. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2762. "onresize": function () { }
  2763. }, {
  2764. closecallback: function () { }
  2765. }, { "style": { "height": "36px" } }).form; //创建窗体
  2766. _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); } }
  2767. break;
  2768. case "CocoPi": //CocoPi
  2769. _formdiv = new U.UF.UI.form(
  2770. "CocoPi",
  2771. $$("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" }), {
  2772. "id": "CocoPi",
  2773. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2774. "onresize": function () { }
  2775. }, {
  2776. closecallback: function () { }
  2777. }, { "style": { "height": "36px" } }).form; //创建窗体
  2778. _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); } }
  2779. break;
  2780. case "Wood": //Wood
  2781. _formdiv = new U.UF.UI.form(
  2782. "海龟编程",
  2783. $$("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/" }), {
  2784. "id": "Wood",
  2785. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2786. "onresize": function () { }
  2787. }, {
  2788. closecallback: function () { }
  2789. }, { "style": { "height": "36px" } }).form; //创建窗体
  2790. _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); } }
  2791. break;
  2792. case "car": //模拟驾驶
  2793. _formdiv = new U.UF.UI.form(
  2794. "模拟驾驶",
  2795. $$("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/" }), {
  2796. "id": "car",
  2797. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2798. "onresize": function () { }
  2799. }, {
  2800. closecallback: function () { }
  2801. }, { "style": { "height": "36px" } }).form; //创建窗体
  2802. _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); } }
  2803. break;
  2804. case "lineSearch": //路径搜索
  2805. _formdiv = new U.UF.UI.form(
  2806. "路径搜索",
  2807. $$("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/" }), {
  2808. "id": "lineSearch",
  2809. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2810. "onresize": function () { }
  2811. }, {
  2812. closecallback: function () { }
  2813. }, { "style": { "height": "36px" } }).form; //创建窗体
  2814. _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); } }
  2815. break;
  2816. case "deepLearning": //深度学习
  2817. _formdiv = new U.UF.UI.form(
  2818. "深度学习",
  2819. $$("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/#" }), {
  2820. "id": "deepLearning",
  2821. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2822. "onresize": function () { }
  2823. }, {
  2824. closecallback: function () { }
  2825. }, { "style": { "height": "36px" } }).form; //创建窗体
  2826. _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); } }
  2827. break;
  2828. case "allHistory": //深度学习
  2829. _formdiv = new U.UF.UI.form(
  2830. "全历史",
  2831. $$("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/" }), {
  2832. "id": "allHistory",
  2833. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2834. "onresize": function () { }
  2835. }, {
  2836. closecallback: function () { }
  2837. }, { "style": { "height": "36px" } }).form; //创建窗体
  2838. _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); } }
  2839. break;
  2840. case "chatPDF": //ai编程
  2841. _formdiv = new U.UF.UI.form(
  2842. "chatPDF",
  2843. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2844. "id": "chatPDF",
  2845. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2846. "onresize": function () { }
  2847. }, {
  2848. closecallback: function () { }
  2849. }, { "style": { "height": "36px" } }).form; //创建窗体
  2850. _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); } }
  2851. break;
  2852. case "resources": //国家教育
  2853. _formdiv = new U.UF.UI.form(
  2854. "国家教育",
  2855. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2856. "id": "resources",
  2857. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2858. "onresize": function () { }
  2859. }, {
  2860. closecallback: function () { }
  2861. }, { "style": { "height": "36px" } }).form; //创建窗体
  2862. _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); } }
  2863. break;
  2864. case "codeEdit": //源码编辑
  2865. _formdiv = new U.UF.UI.form(
  2866. "源码编辑",
  2867. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2868. "id": "codeEdit",
  2869. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2870. "onresize": function () { }
  2871. }, {
  2872. closecallback: function () { }
  2873. }, { "style": { "height": "36px" } }).form; //创建窗体
  2874. _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); } }
  2875. break; //
  2876. case "MindMap": //MindMap
  2877. _formdiv = new U.UF.UI.form(
  2878. "MindMap",
  2879. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2880. "id": "MindMap",
  2881. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2882. "onresize": function () { }
  2883. }, {
  2884. closecallback: function () { }
  2885. }, { "style": { "height": "36px" } }).form; //创建窗体
  2886. _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); } }
  2887. break;
  2888. case "netWorkPanel": //netWorkPanel
  2889. _formdiv = new U.UF.UI.form(
  2890. "netWorkPanel",
  2891. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2892. "id": "netWorkPanel",
  2893. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2894. "onresize": function () { }
  2895. }, {
  2896. closecallback: function () { }
  2897. }, { "style": { "height": "36px" } }).form; //创建窗体
  2898. _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); } }
  2899. break;
  2900. case "GeoGebra": //GeoGebra
  2901. _formdiv = new U.UF.UI.form(
  2902. "GeoGebra",
  2903. $$("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" }), {
  2904. "id": "GeoGebra",
  2905. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2906. "onresize": function () { }
  2907. }, {
  2908. closecallback: function () { }
  2909. }, { "style": { "height": "36px" } }).form; //创建窗体
  2910. _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); } }
  2911. break;
  2912. case "translation": //翻译
  2913. _formdiv = new U.UF.UI.form(
  2914. "翻译",
  2915. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2916. "id": "translation",
  2917. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2918. "onresize": function () { }
  2919. }, {
  2920. closecallback: function () { }
  2921. }, { "style": { "height": "36px" } }).form; //创建窗体
  2922. _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); } }
  2923. break;
  2924. case "mohe": //魔盒
  2925. _formdiv = new U.UF.UI.form(
  2926. "魔盒识字",
  2927. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2928. "id": "mohe",
  2929. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2930. "onresize": function () { }
  2931. }, {
  2932. closecallback: function () { }
  2933. }, { "style": { "height": "36px" } }).form; //创建窗体
  2934. _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); } }
  2935. break;
  2936. case "24game": //24点
  2937. _formdiv = new U.UF.UI.form(
  2938. "24点",
  2939. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2940. "id": "24game",
  2941. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2942. "onresize": function () { }
  2943. }, {
  2944. closecallback: function () { }
  2945. }, { "style": { "height": "36px" } }).form; //创建窗体
  2946. _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); } }
  2947. break;
  2948. case "case":
  2949. _formdiv = new U.UF.UI.form(
  2950. "课程进展",
  2951. $$("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 }), {
  2952. "id": "case",
  2953. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2954. "onresize": function () { }
  2955. }, {
  2956. closecallback: function () { }
  2957. }, { "style": { "height": "36px" } }).form; //创建窗体
  2958. _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); } }
  2959. break;
  2960. case "snf":
  2961. _formdiv = new U.UF.UI.form(
  2962. "赛诺梵",
  2963. $$("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" }), {
  2964. "id": "snf",
  2965. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2966. "onresize": function () { }
  2967. }, {
  2968. closecallback: function () { }
  2969. }, { "style": { "height": "36px" } }).form; //创建窗体
  2970. _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); } }
  2971. break;
  2972. case "hanFamily":
  2973. _formdiv = new U.UF.UI.form(
  2974. "汉字家族",
  2975. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2976. "id": "hanFamily",
  2977. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2978. "onresize": function () { }
  2979. }, {
  2980. closecallback: function () { }
  2981. }, { "style": { "height": "36px" } }).form; //创建窗体
  2982. _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); } }
  2983. break;
  2984. case "hanClassics":
  2985. _formdiv = new U.UF.UI.form(
  2986. "国学经典",
  2987. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2988. "id": "hanClassics",
  2989. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2990. "onresize": function () { }
  2991. }, {
  2992. closecallback: function () { }
  2993. }, { "style": { "height": "36px" } }).form; //创建窗体
  2994. _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); } }
  2995. break;
  2996. case "hanTraining":
  2997. _formdiv = new U.UF.UI.form(
  2998. "笔画训练",
  2999. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3000. "id": "hanTraining",
  3001. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3002. "onresize": function () { }
  3003. }, {
  3004. closecallback: function () { }
  3005. }, { "style": { "height": "36px" } }).form; //创建窗体
  3006. _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); } }
  3007. break;
  3008. case "hanClass":
  3009. _formdiv = new U.UF.UI.form(
  3010. "书法课堂",
  3011. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3012. "id": "hanClass",
  3013. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3014. "onresize": function () { }
  3015. }, {
  3016. closecallback: function () { }
  3017. }, { "style": { "height": "36px" } }).form; //创建窗体
  3018. _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); } }
  3019. break;
  3020. case "han":
  3021. _formdiv = new U.UF.UI.form(
  3022. "汉字宫",
  3023. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3024. "id": "han",
  3025. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3026. "onresize": function () { }
  3027. }, {
  3028. closecallback: function () { }
  3029. }, { "style": { "height": "36px" } }).form; //创建窗体
  3030. _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); } }
  3031. break;
  3032. case "projectGM": //课程管理
  3033. _formdiv = new U.UF.UI.form(
  3034. "课程管理",
  3035. $$("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 }), {
  3036. "id": "projectGM",
  3037. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3038. "onresize": function () { }
  3039. }, {
  3040. closecallback: function () { }
  3041. }, { "style": { "height": "36px" } }).form; //创建窗体
  3042. _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); } }
  3043. break;
  3044. case "studyGM"://课程中心
  3045. _formdiv = new U.UF.UI.form(
  3046. "课程中心",
  3047. $$("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
  3048. "id": "study",
  3049. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3050. "onresize": function () { }
  3051. }, {
  3052. closecallback: function () { }
  3053. }, { "style": { "height": "36px" } }).form; //创建窗体
  3054. _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); } }
  3055. break;
  3056. // studentGM
  3057. case "studentGM"://学生管理
  3058. _formdiv = new U.UF.UI.form(
  3059. "学生管理",
  3060. $$("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 }), {
  3061. "id": "studentGM",
  3062. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3063. "onresize": function () { }
  3064. }, {
  3065. closecallback: function () { }
  3066. }, { "style": { "height": "36px" } }).form; //创建窗体
  3067. _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); } }
  3068. break;
  3069. case "evaluateGM"://学生评价
  3070. _formdiv = new U.UF.UI.form(
  3071. "学生评价",
  3072. $$("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 }), {
  3073. "id": "evaluateGM",
  3074. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3075. "onresize": function () { }
  3076. }, {
  3077. closecallback: function () { }
  3078. }, { "style": { "height": "36px" } }).form; //创建窗体
  3079. _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); } }
  3080. break;
  3081. // classGM
  3082. case "classGM"://班级管理
  3083. _formdiv = new U.UF.UI.form(
  3084. "班级管理",
  3085. $$("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 }), {
  3086. "id": "classGM",
  3087. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3088. "onresize": function () { }
  3089. }, {
  3090. closecallback: function () { }
  3091. }, { "style": { "height": "36px" } }).form; //创建窗体
  3092. _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); } }
  3093. break;
  3094. // dataGM
  3095. case "dataGM":
  3096. _formdiv = new U.UF.UI.form(
  3097. "我的资料",
  3098. $$("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 }), {
  3099. "id": "dataGM",
  3100. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3101. "onresize": function () { }
  3102. }, {
  3103. closecallback: function () { }
  3104. }, { "style": { "height": "36px" } }).form; //创建窗体
  3105. _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); } }
  3106. break;
  3107. // caseGM
  3108. case "caseGM"://课程进展
  3109. _formdiv = new U.UF.UI.form(
  3110. "课程进展",
  3111. $$("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 }), {
  3112. "id": "caseGM",
  3113. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3114. "onresize": function () { }
  3115. }, {
  3116. closecallback: function () { }
  3117. }, { "style": { "height": "36px" } }).form; //创建窗体
  3118. _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); } }
  3119. break;
  3120. // meterialGM
  3121. case "meterialGM"://素材库
  3122. _formdiv = new U.UF.UI.form(
  3123. "素材库",
  3124. $$("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 }), {
  3125. "id": "meterialGM",
  3126. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3127. "onresize": function () { }
  3128. }, {
  3129. closecallback: function () { }
  3130. }, { "style": { "height": "36px" } }).form; //创建窗体
  3131. _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); } }
  3132. break;
  3133. // evaluateSGM
  3134. case "evaluateSGM": //我的评价
  3135. _formdiv = new U.UF.UI.form(
  3136. "我的评价",
  3137. $$("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 }), {
  3138. "id": "evaluateSGM",
  3139. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3140. "onresize": function () { }
  3141. }, {
  3142. closecallback: function () { }
  3143. }, { "style": { "height": "36px" } }).form; //创建窗体
  3144. _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); } }
  3145. break;
  3146. case "jupyter": //jupyter
  3147. _formdiv = new U.UF.UI.form(
  3148. "jupyter",
  3149. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3150. "id": "jupyter",
  3151. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3152. "onresize": function () { }
  3153. }, {
  3154. closecallback: function () { }
  3155. }, { "style": { "height": "36px" } }).form; //创建窗体
  3156. _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); } }
  3157. break;
  3158. case "number": //数字实验室
  3159. _formdiv = new U.UF.UI.form(
  3160. "数字实验室",
  3161. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3162. "id": "number",
  3163. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3164. "onresize": function () { }
  3165. }, {
  3166. closecallback: function () { }
  3167. }, { "style": { "height": "36px" } }).form; //创建窗体
  3168. _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); } }
  3169. break;
  3170. case "studentCourse": //项目管理 学生
  3171. _formdiv = new U.UF.UI.form(
  3172. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3173. $$("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 }), {
  3174. "id": "studentCourse",
  3175. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3176. "onresize": function () { }
  3177. }, {
  3178. closecallback: function () { }
  3179. }, { "style": { "height": "36px" } }).form; //创建窗体
  3180. _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); } }
  3181. break;
  3182. case "studentCourseS": //项目管理 老师
  3183. _formdiv = new U.UF.UI.form(
  3184. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3185. $$("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 }), {
  3186. "id": "studentCourseS",
  3187. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3188. "onresize": function () { }
  3189. }, {
  3190. closecallback: function () { }
  3191. }, { "style": { "height": "36px" } }).form; //创建窗体
  3192. _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); } }
  3193. break;
  3194. case "studentIndex": //项目中心
  3195. _formdiv = new U.UF.UI.form(
  3196. "项目中心",
  3197. $$("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 }), {
  3198. "id": "studentIndex",
  3199. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3200. "onresize": function () { }
  3201. }, {
  3202. closecallback: function () { }
  3203. }, { "style": { "height": "36px" } }).form; //创建窗体
  3204. _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); } }
  3205. break;
  3206. case "CaseDesignS":
  3207. _formdiv = new U.UF.UI.form(
  3208. "项目进展",
  3209. $$("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 }), {
  3210. "id": "case",
  3211. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3212. "onresize": function () { }
  3213. }, {
  3214. closecallback: function () { }
  3215. }, { "style": { "height": "36px" } }).form; //创建窗体
  3216. _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); } }
  3217. break;
  3218. case "tcStudent": //腾讯学生管理
  3219. _formdiv = new U.UF.UI.form(
  3220. "学生管理",
  3221. $$("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 }), {
  3222. "id": "tcStudent",
  3223. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3224. "onresize": function () { }
  3225. }, {
  3226. closecallback: function () { }
  3227. }, { "style": { "height": "36px" } }).form; //创建窗体
  3228. _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); } }
  3229. break;
  3230. case "tcSchool": //腾讯学校管理
  3231. _formdiv = new U.UF.UI.form(
  3232. "学校管理",
  3233. $$("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 }), {
  3234. "id": "tcSchool",
  3235. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3236. "onresize": function () { }
  3237. }, {
  3238. closecallback: function () { }
  3239. }, { "style": { "height": "36px" } }).form; //创建窗体
  3240. _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); } }
  3241. break;
  3242. case "tcTeacher": //腾讯学校管理
  3243. _formdiv = new U.UF.UI.form(
  3244. "教师管理",
  3245. $$("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 }), {
  3246. "id": "tcTeacher",
  3247. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3248. "onresize": function () { }
  3249. }, {
  3250. closecallback: function () { }
  3251. }, { "style": { "height": "36px" } }).form; //创建窗体
  3252. _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); } }
  3253. break;
  3254. case "tcData": //腾讯我的资料
  3255. _formdiv = new U.UF.UI.form(
  3256. "我的资料",
  3257. $$("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 }), {
  3258. "id": "tcData",
  3259. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3260. "onresize": function () { }
  3261. }, {
  3262. closecallback: function () { }
  3263. }, { "style": { "height": "36px" } }).form; //创建窗体
  3264. _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); } }
  3265. break;
  3266. case "tcNotice": //腾讯消息通知
  3267. _formdiv = new U.UF.UI.form(
  3268. "消息通知",
  3269. $$("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 }), {
  3270. "id": "tcNotice",
  3271. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3272. "onresize": function () { }
  3273. }, {
  3274. closecallback: function () { }
  3275. }, { "style": { "height": "36px" } }).form; //创建窗体
  3276. _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); } }
  3277. break;
  3278. case "myReport": //好友打开
  3279. _formdiv = new U.UF.UI.form(
  3280. "我的评价",
  3281. $$("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 }), {
  3282. "id": "myReport",
  3283. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3284. "onresize": function () { }
  3285. }, {
  3286. closecallback: function () { }
  3287. }, { "style": { "height": "36px" } }).form; //创建窗体
  3288. _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); } }
  3289. break;
  3290. case "learnAna": //好友打开
  3291. _formdiv = new U.UF.UI.form(
  3292. "学习分析",
  3293. $$("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 }), {
  3294. "id": "learnAna",
  3295. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3296. "onresize": function () { }
  3297. }, {
  3298. closecallback: function () { }
  3299. }, { "style": { "height": "36px" } }).form; //创建窗体
  3300. _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); } }
  3301. break;
  3302. case "AIChat": //AI共创
  3303. _formdiv = new U.UF.UI.form(
  3304. "AI共创",
  3305. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3306. "id": "AIChat",
  3307. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3308. "onresize": function () { }
  3309. }, {
  3310. istop: true,
  3311. closecallback: function () { $("#aichat_icon").remove(); },
  3312. narrowcallback: function () {
  3313. if (!$("#aichat_icon")[0]) {
  3314. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3315. }
  3316. },
  3317. }, { "style": { "height": "36px" } }).form; //创建窗体
  3318. _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); } }
  3319. break;
  3320. case "AIAnalyse": //AI共创
  3321. _formdiv = new U.UF.UI.form(
  3322. "AI分析",
  3323. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3324. "id": "AIAnalyse",
  3325. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3326. "onresize": function () { }
  3327. }, {
  3328. closecallback: function () { }
  3329. }, { "style": { "height": "36px" } }).form; //创建窗体
  3330. _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); } }
  3331. break;
  3332. case "studioCourse": //AI共创
  3333. _formdiv = new U.UF.UI.form(
  3334. "工作管理",
  3335. $$("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 }), {
  3336. "id": "studioCourse",
  3337. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3338. "onresize": function () { }
  3339. }, {
  3340. closecallback: function () { }
  3341. }, { "style": { "height": "36px" } }).form; //创建窗体
  3342. _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); } }
  3343. break;
  3344. case "studioIndex": //AI共创
  3345. _formdiv = new U.UF.UI.form(
  3346. "工作中心",
  3347. $$("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 }), {
  3348. "id": "studioIndex",
  3349. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3350. "onresize": function () { }
  3351. }, {
  3352. closecallback: function () { }
  3353. }, { "style": { "height": "36px" } }).form; //创建窗体
  3354. _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); } }
  3355. break;
  3356. case "source":
  3357. _formdiv = new U.UF.UI.form(
  3358. "教学资源",
  3359. $$("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 }), {
  3360. "id": "source",
  3361. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3362. "onresize": function () { }
  3363. }, {
  3364. closecallback: function () { }
  3365. }, { "style": { "height": "36px" } }).form; //创建窗体
  3366. _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); } }
  3367. break;
  3368. }
  3369. //U.MD.D.I.openClick(str);
  3370. //如果有任务栏信息
  3371. if (_taskbar) {
  3372. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3373. }
  3374. }
  3375. // U.MD.D.I.openClick = function(str){
  3376. // var click = '';
  3377. // switch(str){
  3378. // case 'friend':
  3379. // click = '我的好友';
  3380. // break;
  3381. // case 'domain':
  3382. // click = '域名管理';
  3383. // break;
  3384. // case 'disk':
  3385. // click = '我的云盘';
  3386. // break;
  3387. // case 'word':
  3388. // click = 'Word';
  3389. // break;
  3390. // case 'excel':
  3391. // click = 'Execl';
  3392. // break;
  3393. // case 'txt':
  3394. // click = '文本文件';
  3395. // break;
  3396. // case 'lookupFriend':
  3397. // click = '查找好友';
  3398. // break;
  3399. // case 'ftp':
  3400. // click = 'FTP';
  3401. // break;
  3402. // case 'group':
  3403. // click = '群组';
  3404. // break;
  3405. // case 'set':
  3406. // click = '我的设置';
  3407. // break;
  3408. // case 'systemSet':
  3409. // click = '系统设置';
  3410. // break;
  3411. // case 'boomYun':
  3412. // click = '互联办公';
  3413. // break;
  3414. // case 'xz':
  3415. // click = '云端下载';
  3416. // break;
  3417. // case 'client':
  3418. // click = '有思浏览器';
  3419. // break;
  3420. // case 'backEndProgramming':
  3421. // click = '在线后台编程';
  3422. // break;
  3423. // case 'frontEndProgramming':
  3424. // click = '在线前端编程';
  3425. // break;
  3426. // default: break;
  3427. // }
  3428. // if(U.MD.D.I.Ip && click){
  3429. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3430. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3431. // })
  3432. // }
  3433. // }
  3434. /**
  3435. *函数作用:ajax简易函数,使用post格式
  3436. *@param url {data} 后台地址
  3437. *@param data {data} 参数json
  3438. *@param fn {data} 回调函数
  3439. *
  3440. */
  3441. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3442. // var xhr = new XMLHttpRequest();
  3443. // xhr.open("GET",url,true);
  3444. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3445. // xhr.onreadystatechange = function(){
  3446. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3447. // fn.call(this,xhr.responseText);
  3448. // }
  3449. // };
  3450. // xhr.send();
  3451. // }
  3452. /*判断是否是内网IP*/
  3453. // U.MD.D.I.isInnerIPFn = function(str){
  3454. // var curPageUrl = str;
  3455. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3456. // curPageUrl =curPageUrl.replace(reg1,'');
  3457. // // console.log('curPageUrl-1 '+curPageUrl);
  3458. // var reg2 = /\:+/g;//替换冒号为一点
  3459. // curPageUrl =curPageUrl.replace(reg2,'.');
  3460. // // console.log('curPageUrl-2 '+curPageUrl);
  3461. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3462. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3463. // if(curPageUrl[2] != '16'){
  3464. // return ipAddress;
  3465. // }else{
  3466. // return false;
  3467. // }
  3468. // }
  3469. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3470. // //compatibility for firefox and chrome
  3471. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3472. // var pc = new myPeerConnection({
  3473. // iceServers: []
  3474. // }),
  3475. // noop = function() {},
  3476. // localIPs = {},
  3477. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3478. // key;
  3479. // function iterateIP(ip) {
  3480. // if (!localIPs[ip]) onNewIP(ip);
  3481. // localIPs[ip] = true;
  3482. // }
  3483. // //create a bogus data channel
  3484. // pc.createDataChannel("");
  3485. // // create offer and set local description
  3486. // pc.createOffer().then(function(sdp) {
  3487. // sdp.sdp.split('\n').forEach(function(line) {
  3488. // if (line.indexOf('candidate') < 0) return;
  3489. // line.match(ipRegex).forEach(iterateIP);
  3490. // });
  3491. // pc.setLocalDescription(sdp, noop, noop);
  3492. // }).catch(function(reason) {
  3493. // // An error occurred, so handle the failure to connect
  3494. // });
  3495. // //sten for candidate events
  3496. // pc.onicecandidate = function(ice) {
  3497. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3498. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3499. // };
  3500. // }
  3501. // U.MD.D.I.getUserIpBool = function(callback){
  3502. // U.MD.D.I.getUserIP(function(ip){
  3503. // alert("Got IP! :" + ip);
  3504. // });
  3505. //}
  3506. //#endregion
  3507. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3508. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3509. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3510. _userinfo = US.userInfo, //登录用户信息
  3511. _userid = US.userInfo.userid //登录用户id
  3512. let _iframe;
  3513. let _cid = cid,
  3514. _stage = stage,
  3515. _task = task,
  3516. _tool = tool;
  3517. var _jie = $$("div", {
  3518. "style": {
  3519. "position": "absolute",
  3520. "bottom": "50px",
  3521. "right": "50px",
  3522. "zIndex": "9999",
  3523. "backgroundColor": "#2268bc",
  3524. "color": "#fff",
  3525. "padding": "12px 20px",
  3526. "cursor": "pointer",
  3527. "borderRadius": "4px",
  3528. },
  3529. "innerHTML": "提交作业"
  3530. })
  3531. let aTool = ''
  3532. let _loading = document.createElement('div')
  3533. _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;"
  3534. // _loading.id = "";
  3535. let _lchild = document.createElement('div')
  3536. let _limg = document.createElement('img')
  3537. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3538. _limg.style = "width: 26px;margin-right: 10px;"
  3539. _lchild.appendChild(_limg)
  3540. let _lspan = document.createElement('span')
  3541. _lspan.innerHTML = "上传中..."
  3542. _lchild.appendChild(_lspan)
  3543. _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%);"
  3544. _loading.appendChild(_lchild)
  3545. var _box = $$('div', {
  3546. "style": {
  3547. "position": "relative",
  3548. "width": "100%",
  3549. "height": "100%",
  3550. },
  3551. })
  3552. _box.appendChild(_loading)
  3553. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool+_userid
  3554. switch (str) {
  3555. case "whiteboard":
  3556. aTool = 1;
  3557. _iframe = $$("iframe", {
  3558. "frameborder": "no",
  3559. "border": "0",
  3560. "scrolling ": "no",
  3561. "style": {
  3562. "cssText": "border:0;width:100%;height:100%"
  3563. },
  3564. "src": "https://iwb.cocorobo.cn/"
  3565. })
  3566. _box.appendChild(_iframe);
  3567. _box.appendChild(_jie);
  3568. _formdiv = new U.UF.UI.form(
  3569. "电子白板",
  3570. _box, {
  3571. "id": "whiteboard" + cid + stage + task + tool,
  3572. "style": {
  3573. "width": "90%",
  3574. "height": "90%",
  3575. "overflow": 'hidden'
  3576. },
  3577. "onresize": function () { }
  3578. }, {
  3579. closecallback: function () { }
  3580. }, {
  3581. "style": {
  3582. "height": "36px"
  3583. }
  3584. }).form; //创建窗体
  3585. _taskbar = {
  3586. "id": str + _formdiv.id,
  3587. "style": {
  3588. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3589. },
  3590. "name": "电子白板",
  3591. "forms": _formdiv,
  3592. "click": function () {
  3593. U.MD.D.I.openApplication(str, obj, info);
  3594. }
  3595. }
  3596. break;
  3597. case "mind":
  3598. aTool = 3;
  3599. _iframe = $$("iframe", {
  3600. "frameborder": "no",
  3601. "border": "0",
  3602. "scrolling ": "no",
  3603. "style": {
  3604. "cssText": "border:0;width:100%;height:100%"
  3605. },
  3606. "src": "/kityminder-editor/dist/index.html"
  3607. })
  3608. _box.appendChild(_iframe);
  3609. _box.appendChild(_jie);
  3610. _formdiv = new U.UF.UI.form(
  3611. "思维导图",
  3612. _box, { //"/jsmind/example/demo.html"
  3613. "id": "mind" + cid + stage + task + tool,
  3614. "style": {
  3615. "width": "90%",
  3616. "height": "90%",
  3617. "overflow": 'hidden'
  3618. },
  3619. "onresize": function () { }
  3620. }, {
  3621. closecallback: function () { }
  3622. }, {
  3623. "style": {
  3624. "height": "36px"
  3625. }
  3626. }).form; //创建窗体
  3627. _taskbar = {
  3628. "id": str + _formdiv.id,
  3629. "style": {
  3630. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3631. },
  3632. "name": "思维导图",
  3633. "forms": _formdiv,
  3634. "click": function () {
  3635. U.MD.D.I.openApplication(str, obj, info);
  3636. }
  3637. }
  3638. break;
  3639. case "MindMap":
  3640. aTool = 3;
  3641. _iframe = $$("iframe", {
  3642. "frameborder": "no",
  3643. "border": "0",
  3644. "scrolling ": "no",
  3645. "style": {
  3646. "cssText": "border:0;width:100%;height:100%"
  3647. },
  3648. "src": "//cloud.cocorobo.cn/mind/"
  3649. })
  3650. _box.appendChild(_iframe);
  3651. _box.appendChild(_jie);
  3652. _formdiv = new U.UF.UI.form(
  3653. "思维导图",
  3654. _box, { //"/jsmind/example/demo.html"
  3655. "id": "mind" + cid + stage + task + tool,
  3656. "style": {
  3657. "width": "90%",
  3658. "height": "90%",
  3659. "overflow": 'hidden'
  3660. },
  3661. "onresize": function () { }
  3662. }, {
  3663. closecallback: function () { }
  3664. }, {
  3665. "style": {
  3666. "height": "36px"
  3667. }
  3668. }).form; //创建窗体
  3669. _taskbar = {
  3670. "id": str + _formdiv.id,
  3671. "style": {
  3672. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3673. },
  3674. "name": "思维导图",
  3675. "forms": _formdiv,
  3676. "click": function () {
  3677. U.MD.D.I.openApplication(str, obj, info);
  3678. }
  3679. }
  3680. break;
  3681. case "doc":
  3682. aTool = 6;
  3683. _iframe = $$("iframe", {
  3684. "frameborder": "no",
  3685. "border": "0",
  3686. "scrolling ": "no",
  3687. "style": {
  3688. "cssText": "border:0;width:100%;height:100%"
  3689. },
  3690. "src": "/Office/Word/WordEditArea.htm"
  3691. })
  3692. _box.appendChild(_iframe);
  3693. _box.appendChild(_jie);
  3694. _formdiv = new U.UF.UI.form(
  3695. "协同文档",
  3696. _box, {
  3697. "id": "doc" + cid + stage + task + tool,
  3698. "style": {
  3699. "width": "90%",
  3700. "height": "90%",
  3701. "overflow": 'hidden'
  3702. },
  3703. "onresize": function () { }
  3704. }, {
  3705. closecallback: function () { }
  3706. }, {
  3707. "style": {
  3708. "height": "36px"
  3709. }
  3710. }).form; //创建窗体
  3711. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3712. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3713. })
  3714. _taskbar = {
  3715. "id": str + _formdiv.id,
  3716. "style": {
  3717. "backgroundImage": "url(/img/icon/doc.png)"
  3718. },
  3719. "name": "协同文档",
  3720. "forms": _formdiv,
  3721. "click": function () {
  3722. U.MD.D.I.openApplication(str, obj, info);
  3723. }
  3724. }
  3725. break;
  3726. case "mindNetwork": //好友打开
  3727. aTool = 7;
  3728. _iframe = $$("iframe", {
  3729. "webkitallowfullscreen": "",
  3730. "mozallowfullscreen": "",
  3731. "allowfullscreen": "",
  3732. "frameborder": "no",
  3733. "border": "0",
  3734. "scrolling ": "no",
  3735. "style": {
  3736. "cssText": "border:0; width:100%; height:100%;"
  3737. },
  3738. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3739. })
  3740. _box.appendChild(_iframe);
  3741. _box.appendChild(_jie);
  3742. _formdiv = new U.UF.UI.form(
  3743. "思维网格",
  3744. _box, {
  3745. "id": "mindNetwork" + cid + stage + task + tool,
  3746. "style": {
  3747. "width": "90%",
  3748. "height": "90%",
  3749. "overflow": 'hidden'
  3750. },
  3751. "onresize": function () { }
  3752. }, {
  3753. closecallback: function () { }
  3754. }, {
  3755. "style": {
  3756. "height": "36px"
  3757. }
  3758. }).form; //创建窗体
  3759. _taskbar = {
  3760. "id": str + _formdiv.id,
  3761. "style": {
  3762. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3763. },
  3764. "name": "思维网格",
  3765. "forms": _formdiv,
  3766. "click": function () {
  3767. U.MD.D.I.openApplication(str, obj, info);
  3768. }
  3769. }
  3770. break;
  3771. case "courseDesign":
  3772. _iframe = $$("iframe", {
  3773. "webkitallowfullscreen": "",
  3774. "mozallowfullscreen": "",
  3775. "allowfullscreen": "",
  3776. "frameborder": "no",
  3777. "border": "0",
  3778. "scrolling ": "no",
  3779. "style": {
  3780. "cssText": "border:0; width:100%; height:100%;"
  3781. },
  3782. "src": "/course-design-vue"
  3783. })
  3784. _box.appendChild(_iframe);
  3785. _box.appendChild(_jie);
  3786. _formdiv = new U.UF.UI.form(
  3787. "项目设计",
  3788. _box, {
  3789. "id": "courseDesign" + cid + stage + task + tool,
  3790. "style": {
  3791. "width": "90%",
  3792. "height": "90%",
  3793. "overflow": 'hidden'
  3794. },
  3795. "onresize": function () { }
  3796. }, {
  3797. closecallback: function () { }
  3798. }, {
  3799. "style": {
  3800. "height": "36px"
  3801. }
  3802. }).form; //创建窗体
  3803. _taskbar = {
  3804. "id": str + _formdiv.id,
  3805. "style": {
  3806. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3807. },
  3808. "name": "项目设计",
  3809. "forms": _formdiv,
  3810. "click": function () {
  3811. U.MD.D.I.openApplication(str, obj, info);
  3812. }
  3813. }
  3814. break;
  3815. }
  3816. const script1 = document.createElement("script");
  3817. script1.type = "text/javascript";
  3818. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3819. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3820. const script2 = document.createElement("script");
  3821. script2.type = "text/javascript";
  3822. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3823. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3824. const script3 = document.createElement("script");
  3825. script3.type = "text/javascript";
  3826. script3.charset = "UTF-8";
  3827. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3828. const script4 = document.createElement("script");
  3829. script4.type = "text/javascript";
  3830. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3831. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3832. if (_iframe) {
  3833. if (str == 'doc') {
  3834. _iframe = _formdiv.querySelector('iframe')
  3835. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3836. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3837. _iframe.contentWindow.document.body.appendChild(script1);
  3838. _iframe.contentWindow.document.body.appendChild(script2);
  3839. // _iframe.contentWindow.document.body.appendChild(script3);
  3840. _iframe.contentWindow.document.body.appendChild(script4);
  3841. })
  3842. if (onloadListener) {
  3843. _iframe.contentDocument.location.reload()
  3844. } else {
  3845. _iframe.contentDocument.location.reload()
  3846. }
  3847. } else if (str == 'courseDesign') {
  3848. U.UF.DL.iframeLoad(_iframe, function () {
  3849. // _iframe.contentWindow.U.MD.O.W.load();
  3850. // _iframe.contentWindow.document.body.appendChild(script1);
  3851. _iframe.contentWindow.document.body.appendChild(script2);
  3852. _iframe.contentWindow.document.body.appendChild(script4);
  3853. })
  3854. } else if (str == 'mind') {
  3855. _iframe = _formdiv.querySelector('iframe')
  3856. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3857. //
  3858. _iframe.contentWindow.document.body.appendChild(script1);
  3859. _iframe.contentWindow.document.body.appendChild(script2);
  3860. _iframe.contentWindow.document.body.appendChild(script4);
  3861. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3862. })
  3863. if (onloadListener) {
  3864. _iframe.contentDocument.location.reload()
  3865. } else {
  3866. _iframe.contentDocument.location.reload()
  3867. }
  3868. } else if (str == 'whiteboard') {
  3869. _iframe = _formdiv.querySelector('iframe')
  3870. let onloadListener = _iframe.onload = () => {
  3871. _iframe.contentWindow.document.body.appendChild(script1);
  3872. _iframe.contentWindow.document.body.appendChild(script2);
  3873. _iframe.contentWindow.document.body.appendChild(script4);
  3874. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3875. };
  3876. if (onloadListener) {
  3877. _iframe.contentDocument.location.reload()
  3878. } else {
  3879. _iframe.contentDocument.location.reload()
  3880. }
  3881. } else {
  3882. _iframe.onload = () => {
  3883. _iframe.contentWindow.document.body.appendChild(script1);
  3884. _iframe.contentWindow.document.body.appendChild(script2);
  3885. // _iframe.contentWindow.document.body.appendChild(script3);
  3886. _iframe.contentWindow.document.body.appendChild(script4);
  3887. };
  3888. }
  3889. _jie.onclick = async () => {
  3890. let text = ''
  3891. if (aTool == 1) {
  3892. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3893. } else if (aTool == 6) {
  3894. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3895. } else if (aTool == 3) {
  3896. text = await U.MD.D.I.getEditorContent(_iframe);
  3897. }
  3898. _loading.style.display = 'flex'
  3899. console.log(_loading);
  3900. var _ajs = _iframe.contentWindow.document.createElement("script");
  3901. _ajs.type = "text/javascript";
  3902. _ajs.innerHTML =
  3903. // 'console.log(' + _loading + ');\n' +
  3904. 'var _js = document.createElement("script");\n' +
  3905. '_js.type="text/javascript";\n' +
  3906. '_js.charset="UTF-8";\n' +
  3907. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3908. "_js.onload = function(){\n" +
  3909. ' var a = document.getElementsByTagName("img")\n' +
  3910. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3911. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3912. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3913. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3914. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3915. "beforeUpload_shishi(file," +
  3916. "'" +
  3917. _userid +
  3918. "'" +
  3919. ", " +
  3920. "'" +
  3921. _cid +
  3922. "'" +
  3923. ", " +
  3924. "'" +
  3925. _stage +
  3926. "'" +
  3927. ", " +
  3928. "'" +
  3929. _task +
  3930. "'" +
  3931. ", " +
  3932. "'" +
  3933. _tool +
  3934. "'" +
  3935. ", " +
  3936. "'" +
  3937. (str + '_loadLi_Jie' + cid + stage + task + tool+_userid) +
  3938. "'" +
  3939. ", " +
  3940. "'" +
  3941. aTool +
  3942. "'" +
  3943. ", " +
  3944. "`" +
  3945. text +
  3946. "`" +
  3947. ")\n" +
  3948. " });\n" +
  3949. "}\n" +
  3950. "document.head.appendChild(_js);\n";
  3951. _iframe.contentWindow.document.head.appendChild(_ajs);
  3952. }
  3953. }
  3954. //U.MD.D.I.openClick(str);
  3955. //如果有任务栏信息
  3956. // if (_taskbar) {
  3957. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3958. // }
  3959. }
  3960. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  3961. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3962. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3963. _userinfo = US.userInfo, //登录用户信息
  3964. _userid = US.userInfo.userid //登录用户id
  3965. let _iframe;
  3966. let _cid = cid,
  3967. _stage = stage,
  3968. _task = task,
  3969. _tool = tool;
  3970. var _jie = $$("div", {
  3971. "style": {
  3972. "position": "absolute",
  3973. "bottom": "50px",
  3974. "right": "50px",
  3975. "zIndex": "9999",
  3976. "backgroundColor": "#2268bc",
  3977. "color": "#fff",
  3978. "padding": "12px 20px",
  3979. "cursor": "pointer",
  3980. "borderRadius": "4px",
  3981. },
  3982. "innerHTML": "提交作业"
  3983. })
  3984. let aTool = ''
  3985. let _loading = document.createElement('div')
  3986. _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;"
  3987. // _loading.id = "";
  3988. let _lchild = document.createElement('div')
  3989. let _limg = document.createElement('img')
  3990. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3991. _limg.style = "width: 26px;margin-right: 10px;"
  3992. _lchild.appendChild(_limg)
  3993. let _lspan = document.createElement('span')
  3994. _lspan.innerHTML = "上传中..."
  3995. _lchild.appendChild(_lspan)
  3996. _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%);"
  3997. _loading.appendChild(_lchild)
  3998. var _box = $$('div', {
  3999. "style": {
  4000. "position": "relative",
  4001. "width": "100%",
  4002. "height": "100%",
  4003. },
  4004. })
  4005. _box.appendChild(_loading)
  4006. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool+_userid
  4007. switch (str) {
  4008. case "whiteboard":
  4009. aTool = 1;
  4010. _iframe = $$("iframe", {
  4011. "frameborder": "no",
  4012. "border": "0",
  4013. "scrolling ": "no",
  4014. "style": {
  4015. "cssText": "border:0;width:100%;height:100%"
  4016. },
  4017. "src": "https://iwb.cocorobo.cn/"
  4018. })
  4019. _box.appendChild(_iframe);
  4020. _box.appendChild(_jie);
  4021. _formdiv = new U.UF.UI.form(
  4022. "电子白板",
  4023. _box, {
  4024. "id": "whiteboard" + cid + stage + task + tool,
  4025. "style": {
  4026. "width": "90%",
  4027. "height": "90%",
  4028. "overflow": 'hidden'
  4029. },
  4030. "onresize": function () { }
  4031. }, {
  4032. closecallback: function () { }
  4033. }, {
  4034. "style": {
  4035. "height": "36px"
  4036. }
  4037. }).form; //创建窗体
  4038. _taskbar = {
  4039. "id": str + _formdiv.id,
  4040. "style": {
  4041. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4042. },
  4043. "name": "电子白板",
  4044. "forms": _formdiv,
  4045. "click": function () {
  4046. U.MD.D.I.openApplication(str, obj, info);
  4047. }
  4048. }
  4049. break;
  4050. case "mind":
  4051. aTool = 3;
  4052. _iframe = $$("iframe", {
  4053. "frameborder": "no",
  4054. "border": "0",
  4055. "scrolling ": "no",
  4056. "style": {
  4057. "cssText": "border:0;width:100%;height:100%"
  4058. },
  4059. "src": "/kityminder-editor/dist/index.html"
  4060. })
  4061. _box.appendChild(_iframe);
  4062. _box.appendChild(_jie);
  4063. _formdiv = new U.UF.UI.form(
  4064. "思维导图",
  4065. _box, { //"/jsmind/example/demo.html"
  4066. "id": "mind" + cid + stage + task + tool,
  4067. "style": {
  4068. "width": "90%",
  4069. "height": "90%",
  4070. "overflow": 'hidden'
  4071. },
  4072. "onresize": function () { }
  4073. }, {
  4074. closecallback: function () { }
  4075. }, {
  4076. "style": {
  4077. "height": "36px"
  4078. }
  4079. }).form; //创建窗体
  4080. _taskbar = {
  4081. "id": str + _formdiv.id,
  4082. "style": {
  4083. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4084. },
  4085. "name": "思维导图",
  4086. "forms": _formdiv,
  4087. "click": function () {
  4088. U.MD.D.I.openApplication(str, obj, info);
  4089. }
  4090. }
  4091. break;
  4092. case "MindMap":
  4093. aTool = 3;
  4094. _iframe = $$("iframe", {
  4095. "frameborder": "no",
  4096. "border": "0",
  4097. "scrolling ": "no",
  4098. "style": {
  4099. "cssText": "border:0;width:100%;height:100%"
  4100. },
  4101. "src": "//cloud.cocorobo.cn/mind/"
  4102. })
  4103. _box.appendChild(_iframe);
  4104. _box.appendChild(_jie);
  4105. _formdiv = new U.UF.UI.form(
  4106. "思维导图",
  4107. _box, { //"/jsmind/example/demo.html"
  4108. "id": "mind" + cid + stage + task + tool,
  4109. "style": {
  4110. "width": "90%",
  4111. "height": "90%",
  4112. "overflow": 'hidden'
  4113. },
  4114. "onresize": function () { }
  4115. }, {
  4116. closecallback: function () { }
  4117. }, {
  4118. "style": {
  4119. "height": "36px"
  4120. }
  4121. }).form; //创建窗体
  4122. _taskbar = {
  4123. "id": str + _formdiv.id,
  4124. "style": {
  4125. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4126. },
  4127. "name": "思维导图",
  4128. "forms": _formdiv,
  4129. "click": function () {
  4130. U.MD.D.I.openApplication(str, obj, info);
  4131. }
  4132. }
  4133. break;
  4134. case "doc":
  4135. aTool = 6;
  4136. _iframe = $$("iframe", {
  4137. "frameborder": "no",
  4138. "border": "0",
  4139. "scrolling ": "no",
  4140. "style": {
  4141. "cssText": "border:0;width:100%;height:100%"
  4142. },
  4143. "src": "/Office/Word/WordEditArea.htm"
  4144. })
  4145. _box.appendChild(_iframe);
  4146. _box.appendChild(_jie);
  4147. _formdiv = new U.UF.UI.form(
  4148. "协同文档",
  4149. _box, {
  4150. "id": "doc" + cid + stage + task + tool,
  4151. "style": {
  4152. "width": "90%",
  4153. "height": "90%",
  4154. "overflow": 'hidden'
  4155. },
  4156. "onresize": function () { }
  4157. }, {
  4158. closecallback: function () { }
  4159. }, {
  4160. "style": {
  4161. "height": "36px"
  4162. }
  4163. }).form; //创建窗体
  4164. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4165. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4166. })
  4167. _taskbar = {
  4168. "id": str + _formdiv.id,
  4169. "style": {
  4170. "backgroundImage": "url(/img/icon/doc.png)"
  4171. },
  4172. "name": "协同文档",
  4173. "forms": _formdiv,
  4174. "click": function () {
  4175. U.MD.D.I.openApplication(str, obj, info);
  4176. }
  4177. }
  4178. break;
  4179. case "mindNetwork": //好友打开
  4180. aTool = 7;
  4181. _iframe = $$("iframe", {
  4182. "webkitallowfullscreen": "",
  4183. "mozallowfullscreen": "",
  4184. "allowfullscreen": "",
  4185. "frameborder": "no",
  4186. "border": "0",
  4187. "scrolling ": "no",
  4188. "style": {
  4189. "cssText": "border:0; width:100%; height:100%;"
  4190. },
  4191. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4192. })
  4193. _box.appendChild(_iframe);
  4194. _box.appendChild(_jie);
  4195. _formdiv = new U.UF.UI.form(
  4196. "思维网格",
  4197. _box, {
  4198. "id": "mindNetwork" + cid + stage + task + tool,
  4199. "style": {
  4200. "width": "90%",
  4201. "height": "90%",
  4202. "overflow": 'hidden'
  4203. },
  4204. "onresize": function () { }
  4205. }, {
  4206. closecallback: function () { }
  4207. }, {
  4208. "style": {
  4209. "height": "36px"
  4210. }
  4211. }).form; //创建窗体
  4212. _taskbar = {
  4213. "id": str + _formdiv.id,
  4214. "style": {
  4215. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4216. },
  4217. "name": "思维网格",
  4218. "forms": _formdiv,
  4219. "click": function () {
  4220. U.MD.D.I.openApplication(str, obj, info);
  4221. }
  4222. }
  4223. break;
  4224. case "courseDesign":
  4225. _iframe = $$("iframe", {
  4226. "webkitallowfullscreen": "",
  4227. "mozallowfullscreen": "",
  4228. "allowfullscreen": "",
  4229. "frameborder": "no",
  4230. "border": "0",
  4231. "scrolling ": "no",
  4232. "style": {
  4233. "cssText": "border:0; width:100%; height:100%;"
  4234. },
  4235. "src": "/course-design-vue"
  4236. })
  4237. _box.appendChild(_iframe);
  4238. _box.appendChild(_jie);
  4239. _formdiv = new U.UF.UI.form(
  4240. "项目设计",
  4241. _box, {
  4242. "id": "courseDesign" + cid + stage + task + tool,
  4243. "style": {
  4244. "width": "90%",
  4245. "height": "90%",
  4246. "overflow": 'hidden'
  4247. },
  4248. "onresize": function () { }
  4249. }, {
  4250. closecallback: function () { }
  4251. }, {
  4252. "style": {
  4253. "height": "36px"
  4254. }
  4255. }).form; //创建窗体
  4256. _taskbar = {
  4257. "id": str + _formdiv.id,
  4258. "style": {
  4259. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4260. },
  4261. "name": "项目设计",
  4262. "forms": _formdiv,
  4263. "click": function () {
  4264. U.MD.D.I.openApplication(str, obj, info);
  4265. }
  4266. }
  4267. break;
  4268. }
  4269. const script1 = document.createElement("script");
  4270. script1.type = "text/javascript";
  4271. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4272. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4273. const script2 = document.createElement("script");
  4274. script2.type = "text/javascript";
  4275. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4276. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4277. const script3 = document.createElement("script");
  4278. script3.type = "text/javascript";
  4279. script3.charset = "UTF-8";
  4280. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4281. const script4 = document.createElement("script");
  4282. script4.type = "text/javascript";
  4283. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4284. script4.src = window.origin + "/js/Common/jietu2E.js";
  4285. if (_iframe) {
  4286. if (str == 'doc') {
  4287. _iframe = _formdiv.querySelector('iframe')
  4288. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4289. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4290. _iframe.contentWindow.document.body.appendChild(script1);
  4291. _iframe.contentWindow.document.body.appendChild(script2);
  4292. // _iframe.contentWindow.document.body.appendChild(script3);
  4293. _iframe.contentWindow.document.body.appendChild(script4);
  4294. })
  4295. if (onloadListener) {
  4296. _iframe.contentDocument.location.reload()
  4297. } else {
  4298. _iframe.contentDocument.location.reload()
  4299. }
  4300. } else if (str == 'courseDesign') {
  4301. U.UF.DL.iframeLoad(_iframe, function () {
  4302. // _iframe.contentWindow.U.MD.O.W.load();
  4303. // _iframe.contentWindow.document.body.appendChild(script1);
  4304. _iframe.contentWindow.document.body.appendChild(script2);
  4305. _iframe.contentWindow.document.body.appendChild(script4);
  4306. })
  4307. } else if (str == 'mind') {
  4308. _iframe = _formdiv.querySelector('iframe')
  4309. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4310. //
  4311. _iframe.contentWindow.document.body.appendChild(script1);
  4312. _iframe.contentWindow.document.body.appendChild(script2);
  4313. _iframe.contentWindow.document.body.appendChild(script4);
  4314. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4315. })
  4316. if (onloadListener) {
  4317. _iframe.contentDocument.location.reload()
  4318. } else {
  4319. _iframe.contentDocument.location.reload()
  4320. }
  4321. } else if (str == 'whiteboard') {
  4322. _iframe = _formdiv.querySelector('iframe')
  4323. let onloadListener = _iframe.onload = () => {
  4324. _iframe.contentWindow.document.body.appendChild(script1);
  4325. _iframe.contentWindow.document.body.appendChild(script2);
  4326. _iframe.contentWindow.document.body.appendChild(script4);
  4327. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4328. };
  4329. if (onloadListener) {
  4330. _iframe.contentDocument.location.reload()
  4331. } else {
  4332. _iframe.contentDocument.location.reload()
  4333. }
  4334. } else {
  4335. _iframe.onload = () => {
  4336. _iframe.contentWindow.document.body.appendChild(script1);
  4337. _iframe.contentWindow.document.body.appendChild(script2);
  4338. // _iframe.contentWindow.document.body.appendChild(script3);
  4339. _iframe.contentWindow.document.body.appendChild(script4);
  4340. };
  4341. }
  4342. _jie.onclick = async () => {
  4343. let text = ''
  4344. if (aTool == 1) {
  4345. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4346. } else if (aTool == 6) {
  4347. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4348. } else if (aTool == 3) {
  4349. text = await U.MD.D.I.getEditorContent(_iframe);
  4350. }
  4351. _loading.style.display = 'flex'
  4352. console.log(_loading);
  4353. var _ajs = _iframe.contentWindow.document.createElement("script");
  4354. _ajs.type = "text/javascript";
  4355. _ajs.innerHTML =
  4356. // 'console.log(' + _loading + ');\n' +
  4357. 'var _js = document.createElement("script");\n' +
  4358. '_js.type="text/javascript";\n' +
  4359. '_js.charset="UTF-8";\n' +
  4360. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4361. "_js.onload = function(){\n" +
  4362. ' var a = document.getElementsByTagName("img")\n' +
  4363. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4364. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4365. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4366. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4367. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4368. "beforeUpload_shishi(file," +
  4369. "'" +
  4370. _userid +
  4371. "'" +
  4372. ", " +
  4373. "'" +
  4374. _cid +
  4375. "'" +
  4376. ", " +
  4377. "'" +
  4378. _stage +
  4379. "'" +
  4380. ", " +
  4381. "'" +
  4382. _task +
  4383. "'" +
  4384. ", " +
  4385. "'" +
  4386. _tool +
  4387. "'" +
  4388. ", " +
  4389. "'" +
  4390. (str + '_loadLi_JieE' + cid + stage + task + tool+_userid) +
  4391. "'" +
  4392. ", " +
  4393. "'" +
  4394. aTool +
  4395. "'" +
  4396. ", " +
  4397. "`" +
  4398. text +
  4399. "`" +
  4400. ")\n" +
  4401. " });\n" +
  4402. "}\n" +
  4403. "document.head.appendChild(_js);\n";
  4404. _iframe.contentWindow.document.head.appendChild(_ajs);
  4405. }
  4406. }
  4407. //U.MD.D.I.openClick(str);
  4408. //如果有任务栏信息
  4409. // if (_taskbar) {
  4410. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4411. // }
  4412. }
  4413. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4414. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4415. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4416. _userid = student.userid, //登录用户id
  4417. _username = student.student //用户名字
  4418. let _iframe;
  4419. let _cid = cid,
  4420. _stage = stage,
  4421. _task = task,
  4422. _tool = tool;
  4423. var _jie = $$("div", {
  4424. "style": {
  4425. "position": "absolute",
  4426. "bottom": "50px",
  4427. "right": "50px",
  4428. "zIndex": "9999",
  4429. "backgroundColor": "#2268bc",
  4430. "color": "#fff",
  4431. "padding": "12px 20px",
  4432. "cursor": "pointer",
  4433. "borderRadius": "4px",
  4434. },
  4435. "innerHTML": "提交作业"
  4436. })
  4437. let aTool = ''
  4438. let _loading = document.createElement('div')
  4439. _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;"
  4440. // _loading.id = "";
  4441. let _lchild = document.createElement('div')
  4442. let _limg = document.createElement('img')
  4443. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4444. _limg.style = "width: 26px;margin-right: 10px;"
  4445. _lchild.appendChild(_limg)
  4446. let _lspan = document.createElement('span')
  4447. _lspan.innerHTML = "上传中..."
  4448. _lchild.appendChild(_lspan)
  4449. _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%);"
  4450. _loading.appendChild(_lchild)
  4451. var _box = $$('div', {
  4452. "style": {
  4453. "position": "relative",
  4454. "width": "100%",
  4455. "height": "100%",
  4456. },
  4457. })
  4458. _box.appendChild(_loading)
  4459. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid
  4460. switch (str) {
  4461. case "whiteboard":
  4462. aTool = 1;
  4463. _iframe = $$("iframe", {
  4464. "frameborder": "no",
  4465. "border": "0",
  4466. "scrolling ": "no",
  4467. "style": {
  4468. "cssText": "border:0;width:100%;height:100%"
  4469. },
  4470. "src": "https://iwb.cocorobo.cn/"
  4471. })
  4472. _box.appendChild(_iframe);
  4473. _box.appendChild(_jie);
  4474. _formdiv = new U.UF.UI.form(
  4475. "电子白板-" + _username,
  4476. _box, {
  4477. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4478. "style": {
  4479. "width": "90%",
  4480. "height": "90%",
  4481. "overflow": 'hidden'
  4482. },
  4483. "onresize": function () { }
  4484. }, {
  4485. closecallback: function () { }
  4486. }, {
  4487. "style": {
  4488. "height": "36px"
  4489. }
  4490. }).form; //创建窗体
  4491. _taskbar = {
  4492. "id": str + _formdiv.id,
  4493. "style": {
  4494. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4495. },
  4496. "name": "电子白板",
  4497. "forms": _formdiv,
  4498. "click": function () {
  4499. U.MD.D.I.openApplication(str, obj, info);
  4500. }
  4501. }
  4502. break;
  4503. case "mind":
  4504. aTool = 3;
  4505. _iframe = $$("iframe", {
  4506. "frameborder": "no",
  4507. "border": "0",
  4508. "scrolling ": "no",
  4509. "style": {
  4510. "cssText": "border:0;width:100%;height:100%"
  4511. },
  4512. "src": "/kityminder-editor/dist/index.html"
  4513. })
  4514. _box.appendChild(_iframe);
  4515. _box.appendChild(_jie);
  4516. _formdiv = new U.UF.UI.form(
  4517. "思维导图-" + _username,
  4518. _box, { //"/jsmind/example/demo.html"
  4519. "id": "mind" + cid + stage + task + tool + _userid,
  4520. "style": {
  4521. "width": "90%",
  4522. "height": "90%",
  4523. "overflow": 'hidden'
  4524. },
  4525. "onresize": function () { }
  4526. }, {
  4527. closecallback: function () { }
  4528. }, {
  4529. "style": {
  4530. "height": "36px"
  4531. }
  4532. }).form; //创建窗体
  4533. _taskbar = {
  4534. "id": str + _formdiv.id,
  4535. "style": {
  4536. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4537. },
  4538. "name": "思维导图",
  4539. "forms": _formdiv,
  4540. "click": function () {
  4541. U.MD.D.I.openApplication(str, obj, info);
  4542. }
  4543. }
  4544. break;
  4545. case "MindMap":
  4546. aTool = 3;
  4547. _iframe = $$("iframe", {
  4548. "frameborder": "no",
  4549. "border": "0",
  4550. "scrolling ": "no",
  4551. "style": {
  4552. "cssText": "border:0;width:100%;height:100%"
  4553. },
  4554. "src": "//cloud.cocorobo.cn/mind/"
  4555. })
  4556. _box.appendChild(_iframe);
  4557. _box.appendChild(_jie);
  4558. _formdiv = new U.UF.UI.form(
  4559. "思维导图-" + _username,
  4560. _box, { //"/jsmind/example/demo.html"
  4561. "id": "mind" + cid + stage + task + tool + _userid,
  4562. "style": {
  4563. "width": "90%",
  4564. "height": "90%",
  4565. "overflow": 'hidden'
  4566. },
  4567. "onresize": function () { }
  4568. }, {
  4569. closecallback: function () { }
  4570. }, {
  4571. "style": {
  4572. "height": "36px"
  4573. }
  4574. }).form; //创建窗体
  4575. _taskbar = {
  4576. "id": str + _formdiv.id,
  4577. "style": {
  4578. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4579. },
  4580. "name": "思维导图",
  4581. "forms": _formdiv,
  4582. "click": function () {
  4583. U.MD.D.I.openApplication(str, obj, info);
  4584. }
  4585. }
  4586. break;
  4587. case "doc":
  4588. aTool = 6;
  4589. _iframe = $$("iframe", {
  4590. "frameborder": "no",
  4591. "border": "0",
  4592. "scrolling ": "no",
  4593. "style": {
  4594. "cssText": "border:0;width:100%;height:100%"
  4595. },
  4596. "src": "/Office/Word/WordEditArea.htm"
  4597. })
  4598. _box.appendChild(_iframe);
  4599. _box.appendChild(_jie);
  4600. _formdiv = new U.UF.UI.form(
  4601. "协同文档-" + _username,
  4602. _box, {
  4603. "id": "doc" + cid + stage + task + tool + _userid,
  4604. "style": {
  4605. "width": "90%",
  4606. "height": "90%",
  4607. "overflow": 'hidden'
  4608. },
  4609. "onresize": function () { }
  4610. }, {
  4611. closecallback: function () { }
  4612. }, {
  4613. "style": {
  4614. "height": "36px"
  4615. }
  4616. }).form; //创建窗体
  4617. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4618. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4619. })
  4620. _taskbar = {
  4621. "id": str + _formdiv.id,
  4622. "style": {
  4623. "backgroundImage": "url(/img/icon/doc.png)"
  4624. },
  4625. "name": "协同文档",
  4626. "forms": _formdiv,
  4627. "click": function () {
  4628. U.MD.D.I.openApplication(str, obj, info);
  4629. }
  4630. }
  4631. break;
  4632. case "mindNetwork": //好友打开
  4633. aTool = 7;
  4634. _iframe = $$("iframe", {
  4635. "webkitallowfullscreen": "",
  4636. "mozallowfullscreen": "",
  4637. "allowfullscreen": "",
  4638. "frameborder": "no",
  4639. "border": "0",
  4640. "scrolling ": "no",
  4641. "style": {
  4642. "cssText": "border:0; width:100%; height:100%;"
  4643. },
  4644. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4645. })
  4646. _box.appendChild(_iframe);
  4647. _box.appendChild(_jie);
  4648. _formdiv = new U.UF.UI.form(
  4649. "思维网格-" + _username,
  4650. _box, {
  4651. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4652. "style": {
  4653. "width": "90%",
  4654. "height": "90%",
  4655. "overflow": 'hidden'
  4656. },
  4657. "onresize": function () { }
  4658. }, {
  4659. closecallback: function () { }
  4660. }, {
  4661. "style": {
  4662. "height": "36px"
  4663. }
  4664. }).form; //创建窗体
  4665. _taskbar = {
  4666. "id": str + _formdiv.id,
  4667. "style": {
  4668. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4669. },
  4670. "name": "思维网格",
  4671. "forms": _formdiv,
  4672. "click": function () {
  4673. U.MD.D.I.openApplication(str, obj, info);
  4674. }
  4675. }
  4676. break;
  4677. case "courseDesign":
  4678. _iframe = $$("iframe", {
  4679. "webkitallowfullscreen": "",
  4680. "mozallowfullscreen": "",
  4681. "allowfullscreen": "",
  4682. "frameborder": "no",
  4683. "border": "0",
  4684. "scrolling ": "no",
  4685. "style": {
  4686. "cssText": "border:0; width:100%; height:100%;"
  4687. },
  4688. "src": "/course-design-vue"
  4689. })
  4690. _box.appendChild(_iframe);
  4691. _box.appendChild(_jie);
  4692. _formdiv = new U.UF.UI.form(
  4693. "项目设计-" + _username,
  4694. _box, {
  4695. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4696. "style": {
  4697. "width": "90%",
  4698. "height": "90%",
  4699. "overflow": 'hidden'
  4700. },
  4701. "onresize": function () { }
  4702. }, {
  4703. closecallback: function () { }
  4704. }, {
  4705. "style": {
  4706. "height": "36px"
  4707. }
  4708. }).form; //创建窗体
  4709. _taskbar = {
  4710. "id": str + _formdiv.id,
  4711. "style": {
  4712. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4713. },
  4714. "name": "项目设计",
  4715. "forms": _formdiv,
  4716. "click": function () {
  4717. U.MD.D.I.openApplication(str, obj, info);
  4718. }
  4719. }
  4720. break;
  4721. }
  4722. const script1 = document.createElement("script");
  4723. script1.type = "text/javascript";
  4724. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4725. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4726. const script2 = document.createElement("script");
  4727. script2.type = "text/javascript";
  4728. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4729. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4730. const script3 = document.createElement("script");
  4731. script3.type = "text/javascript";
  4732. script3.charset = "UTF-8";
  4733. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4734. const script4 = document.createElement("script");
  4735. script4.type = "text/javascript";
  4736. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4737. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4738. if (_iframe) {
  4739. if (str == 'doc') {
  4740. _iframe = _formdiv.querySelector('iframe')
  4741. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4742. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4743. _iframe.contentWindow.document.body.appendChild(script1);
  4744. _iframe.contentWindow.document.body.appendChild(script2);
  4745. // _iframe.contentWindow.document.body.appendChild(script3);
  4746. _iframe.contentWindow.document.body.appendChild(script4);
  4747. })
  4748. if (onloadListener) {
  4749. _iframe.contentDocument.location.reload()
  4750. } else {
  4751. _iframe.contentDocument.location.reload()
  4752. }
  4753. } else if (str == 'courseDesign') {
  4754. U.UF.DL.iframeLoad(_iframe, function () {
  4755. // _iframe.contentWindow.U.MD.O.W.load();
  4756. // _iframe.contentWindow.document.body.appendChild(script1);
  4757. _iframe.contentWindow.document.body.appendChild(script2);
  4758. _iframe.contentWindow.document.body.appendChild(script4);
  4759. })
  4760. } else if (str == 'mind') {
  4761. _iframe = _formdiv.querySelector('iframe')
  4762. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4763. //
  4764. _iframe.contentWindow.document.body.appendChild(script1);
  4765. _iframe.contentWindow.document.body.appendChild(script2);
  4766. _iframe.contentWindow.document.body.appendChild(script4);
  4767. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4768. })
  4769. if (onloadListener) {
  4770. _iframe.contentDocument.location.reload()
  4771. } else {
  4772. _iframe.contentDocument.location.reload()
  4773. }
  4774. } else if (str == 'whiteboard') {
  4775. _iframe = _formdiv.querySelector('iframe')
  4776. let onloadListener = _iframe.onload = () => {
  4777. _iframe.contentWindow.document.body.appendChild(script1);
  4778. _iframe.contentWindow.document.body.appendChild(script2);
  4779. _iframe.contentWindow.document.body.appendChild(script4);
  4780. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4781. };
  4782. if (onloadListener) {
  4783. _iframe.contentDocument.location.reload()
  4784. } else {
  4785. _iframe.contentDocument.location.reload()
  4786. }
  4787. } else {
  4788. _iframe.onload = () => {
  4789. _iframe.contentWindow.document.body.appendChild(script1);
  4790. _iframe.contentWindow.document.body.appendChild(script2);
  4791. // _iframe.contentWindow.document.body.appendChild(script3);
  4792. _iframe.contentWindow.document.body.appendChild(script4);
  4793. };
  4794. }
  4795. _jie.onclick = async () => {
  4796. let text = ''
  4797. if (aTool == 1) {
  4798. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4799. } else if (aTool == 6) {
  4800. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4801. } else if (aTool == 3) {
  4802. text = await U.MD.D.I.getEditorContent(_iframe);
  4803. }
  4804. _loading.style.display = 'flex'
  4805. console.log(_loading);
  4806. var _ajs = _iframe.contentWindow.document.createElement("script");
  4807. _ajs.type = "text/javascript";
  4808. _ajs.innerHTML =
  4809. // 'console.log(' + _loading + ');\n' +
  4810. 'var _js = document.createElement("script");\n' +
  4811. '_js.type="text/javascript";\n' +
  4812. '_js.charset="UTF-8";\n' +
  4813. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4814. "_js.onload = function(){\n" +
  4815. ' var a = document.getElementsByTagName("img")\n' +
  4816. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4817. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4818. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4819. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4820. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4821. "beforeUpload_shishi(file," +
  4822. "'" +
  4823. _userid +
  4824. "'" +
  4825. ", " +
  4826. "'" +
  4827. _cid +
  4828. "'" +
  4829. ", " +
  4830. "'" +
  4831. _stage +
  4832. "'" +
  4833. ", " +
  4834. "'" +
  4835. _task +
  4836. "'" +
  4837. ", " +
  4838. "'" +
  4839. _tool +
  4840. "'" +
  4841. ", " +
  4842. "'" +
  4843. (str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid) +
  4844. "'" +
  4845. ", " +
  4846. "'" +
  4847. aTool +
  4848. "'" +
  4849. ", " +
  4850. "`" +
  4851. text +
  4852. "`" +
  4853. ")\n" +
  4854. " });\n" +
  4855. "}\n" +
  4856. "document.head.appendChild(_js);\n";
  4857. _iframe.contentWindow.document.head.appendChild(_ajs);
  4858. }
  4859. }
  4860. }
  4861. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  4862. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4863. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4864. _userid = student.userid, //登录用户id
  4865. _username = student.student //用户名字
  4866. let _iframe;
  4867. let _cid = cid,
  4868. _stage = stage,
  4869. _task = task,
  4870. _tool = tool;
  4871. var _jie = $$("div", {
  4872. "style": {
  4873. "position": "absolute",
  4874. "bottom": "50px",
  4875. "right": "50px",
  4876. "zIndex": "9999",
  4877. "backgroundColor": "#2268bc",
  4878. "color": "#fff",
  4879. "padding": "12px 20px",
  4880. "cursor": "pointer",
  4881. "borderRadius": "4px",
  4882. },
  4883. "innerHTML": "提交作业"
  4884. })
  4885. let aTool = ''
  4886. let _loading = document.createElement('div')
  4887. _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;"
  4888. // _loading.id = "";
  4889. let _lchild = document.createElement('div')
  4890. let _limg = document.createElement('img')
  4891. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4892. _limg.style = "width: 26px;margin-right: 10px;"
  4893. _lchild.appendChild(_limg)
  4894. let _lspan = document.createElement('span')
  4895. _lspan.innerHTML = "上传中..."
  4896. _lchild.appendChild(_lspan)
  4897. _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%);"
  4898. _loading.appendChild(_lchild)
  4899. var _box = $$('div', {
  4900. "style": {
  4901. "position": "relative",
  4902. "width": "100%",
  4903. "height": "100%",
  4904. },
  4905. })
  4906. _box.appendChild(_loading)
  4907. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  4908. switch (str) {
  4909. case "whiteboard":
  4910. aTool = 1;
  4911. _iframe = $$("iframe", {
  4912. "frameborder": "no",
  4913. "border": "0",
  4914. "scrolling ": "no",
  4915. "style": {
  4916. "cssText": "border:0;width:100%;height:100%"
  4917. },
  4918. "src": "https://iwb.cocorobo.cn/"
  4919. })
  4920. _box.appendChild(_iframe);
  4921. _box.appendChild(_jie);
  4922. _formdiv = new U.UF.UI.form(
  4923. "电子白板-" + _username,
  4924. _box, {
  4925. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4926. "style": {
  4927. "width": "90%",
  4928. "height": "90%",
  4929. "overflow": 'hidden'
  4930. },
  4931. "onresize": function () { }
  4932. }, {
  4933. closecallback: function () { }
  4934. }, {
  4935. "style": {
  4936. "height": "36px"
  4937. }
  4938. }).form; //创建窗体
  4939. _taskbar = {
  4940. "id": str + _formdiv.id,
  4941. "style": {
  4942. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4943. },
  4944. "name": "电子白板",
  4945. "forms": _formdiv,
  4946. "click": function () {
  4947. U.MD.D.I.openApplication(str, obj, info);
  4948. }
  4949. }
  4950. break;
  4951. case "mind":
  4952. aTool = 3;
  4953. _iframe = $$("iframe", {
  4954. "frameborder": "no",
  4955. "border": "0",
  4956. "scrolling ": "no",
  4957. "style": {
  4958. "cssText": "border:0;width:100%;height:100%"
  4959. },
  4960. "src": "/kityminder-editor/dist/index.html"
  4961. })
  4962. _box.appendChild(_iframe);
  4963. _box.appendChild(_jie);
  4964. _formdiv = new U.UF.UI.form(
  4965. "思维导图-" + _username,
  4966. _box, { //"/jsmind/example/demo.html"
  4967. "id": "mind" + cid + stage + task + tool + _userid,
  4968. "style": {
  4969. "width": "90%",
  4970. "height": "90%",
  4971. "overflow": 'hidden'
  4972. },
  4973. "onresize": function () { }
  4974. }, {
  4975. closecallback: function () { }
  4976. }, {
  4977. "style": {
  4978. "height": "36px"
  4979. }
  4980. }).form; //创建窗体
  4981. _taskbar = {
  4982. "id": str + _formdiv.id,
  4983. "style": {
  4984. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4985. },
  4986. "name": "思维导图",
  4987. "forms": _formdiv,
  4988. "click": function () {
  4989. U.MD.D.I.openApplication(str, obj, info);
  4990. }
  4991. }
  4992. break;
  4993. case "MindMap":
  4994. aTool = 3;
  4995. _iframe = $$("iframe", {
  4996. "frameborder": "no",
  4997. "border": "0",
  4998. "scrolling ": "no",
  4999. "style": {
  5000. "cssText": "border:0;width:100%;height:100%"
  5001. },
  5002. "src": "//cloud.cocorobo.cn/mind/"
  5003. })
  5004. _box.appendChild(_iframe);
  5005. _box.appendChild(_jie);
  5006. _formdiv = new U.UF.UI.form(
  5007. "思维导图-" + _username,
  5008. _box, { //"/jsmind/example/demo.html"
  5009. "id": "mind" + cid + stage + task + tool + _userid,
  5010. "style": {
  5011. "width": "90%",
  5012. "height": "90%",
  5013. "overflow": 'hidden'
  5014. },
  5015. "onresize": function () { }
  5016. }, {
  5017. closecallback: function () { }
  5018. }, {
  5019. "style": {
  5020. "height": "36px"
  5021. }
  5022. }).form; //创建窗体
  5023. _taskbar = {
  5024. "id": str + _formdiv.id,
  5025. "style": {
  5026. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5027. },
  5028. "name": "思维导图",
  5029. "forms": _formdiv,
  5030. "click": function () {
  5031. U.MD.D.I.openApplication(str, obj, info);
  5032. }
  5033. }
  5034. break;
  5035. case "doc":
  5036. aTool = 6;
  5037. _iframe = $$("iframe", {
  5038. "frameborder": "no",
  5039. "border": "0",
  5040. "scrolling ": "no",
  5041. "style": {
  5042. "cssText": "border:0;width:100%;height:100%"
  5043. },
  5044. "src": "/Office/Word/WordEditArea.htm"
  5045. })
  5046. _box.appendChild(_iframe);
  5047. _box.appendChild(_jie);
  5048. _formdiv = new U.UF.UI.form(
  5049. "协同文档-" + _username,
  5050. _box, {
  5051. "id": "doc" + cid + stage + task + tool + _userid,
  5052. "style": {
  5053. "width": "90%",
  5054. "height": "90%",
  5055. "overflow": 'hidden'
  5056. },
  5057. "onresize": function () { }
  5058. }, {
  5059. closecallback: function () { }
  5060. }, {
  5061. "style": {
  5062. "height": "36px"
  5063. }
  5064. }).form; //创建窗体
  5065. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5066. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5067. })
  5068. _taskbar = {
  5069. "id": str + _formdiv.id,
  5070. "style": {
  5071. "backgroundImage": "url(/img/icon/doc.png)"
  5072. },
  5073. "name": "协同文档",
  5074. "forms": _formdiv,
  5075. "click": function () {
  5076. U.MD.D.I.openApplication(str, obj, info);
  5077. }
  5078. }
  5079. break;
  5080. case "mindNetwork": //好友打开
  5081. aTool = 7;
  5082. _iframe = $$("iframe", {
  5083. "webkitallowfullscreen": "",
  5084. "mozallowfullscreen": "",
  5085. "allowfullscreen": "",
  5086. "frameborder": "no",
  5087. "border": "0",
  5088. "scrolling ": "no",
  5089. "style": {
  5090. "cssText": "border:0; width:100%; height:100%;"
  5091. },
  5092. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5093. })
  5094. _box.appendChild(_iframe);
  5095. _box.appendChild(_jie);
  5096. _formdiv = new U.UF.UI.form(
  5097. "思维网格-" + _username,
  5098. _box, {
  5099. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5100. "style": {
  5101. "width": "90%",
  5102. "height": "90%",
  5103. "overflow": 'hidden'
  5104. },
  5105. "onresize": function () { }
  5106. }, {
  5107. closecallback: function () { }
  5108. }, {
  5109. "style": {
  5110. "height": "36px"
  5111. }
  5112. }).form; //创建窗体
  5113. _taskbar = {
  5114. "id": str + _formdiv.id,
  5115. "style": {
  5116. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5117. },
  5118. "name": "思维网格",
  5119. "forms": _formdiv,
  5120. "click": function () {
  5121. U.MD.D.I.openApplication(str, obj, info);
  5122. }
  5123. }
  5124. break;
  5125. case "courseDesign":
  5126. _iframe = $$("iframe", {
  5127. "webkitallowfullscreen": "",
  5128. "mozallowfullscreen": "",
  5129. "allowfullscreen": "",
  5130. "frameborder": "no",
  5131. "border": "0",
  5132. "scrolling ": "no",
  5133. "style": {
  5134. "cssText": "border:0; width:100%; height:100%;"
  5135. },
  5136. "src": "/course-design-vue"
  5137. })
  5138. _box.appendChild(_iframe);
  5139. _box.appendChild(_jie);
  5140. _formdiv = new U.UF.UI.form(
  5141. "项目设计-" + _username,
  5142. _box, {
  5143. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5144. "style": {
  5145. "width": "90%",
  5146. "height": "90%",
  5147. "overflow": 'hidden'
  5148. },
  5149. "onresize": function () { }
  5150. }, {
  5151. closecallback: function () { }
  5152. }, {
  5153. "style": {
  5154. "height": "36px"
  5155. }
  5156. }).form; //创建窗体
  5157. _taskbar = {
  5158. "id": str + _formdiv.id,
  5159. "style": {
  5160. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5161. },
  5162. "name": "项目设计",
  5163. "forms": _formdiv,
  5164. "click": function () {
  5165. U.MD.D.I.openApplication(str, obj, info);
  5166. }
  5167. }
  5168. break;
  5169. }
  5170. const script1 = document.createElement("script");
  5171. script1.type = "text/javascript";
  5172. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5173. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5174. const script2 = document.createElement("script");
  5175. script2.type = "text/javascript";
  5176. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5177. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5178. const script3 = document.createElement("script");
  5179. script3.type = "text/javascript";
  5180. script3.charset = "UTF-8";
  5181. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5182. const script4 = document.createElement("script");
  5183. script4.type = "text/javascript";
  5184. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5185. script4.src = window.origin + "/js/Common/jietu2E.js";
  5186. if (_iframe) {
  5187. if (str == 'doc') {
  5188. _iframe = _formdiv.querySelector('iframe')
  5189. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5190. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5191. _iframe.contentWindow.document.body.appendChild(script1);
  5192. _iframe.contentWindow.document.body.appendChild(script2);
  5193. // _iframe.contentWindow.document.body.appendChild(script3);
  5194. _iframe.contentWindow.document.body.appendChild(script4);
  5195. })
  5196. if (onloadListener) {
  5197. _iframe.contentDocument.location.reload()
  5198. } else {
  5199. _iframe.contentDocument.location.reload()
  5200. }
  5201. } else if (str == 'courseDesign') {
  5202. U.UF.DL.iframeLoad(_iframe, function () {
  5203. // _iframe.contentWindow.U.MD.O.W.load();
  5204. // _iframe.contentWindow.document.body.appendChild(script1);
  5205. _iframe.contentWindow.document.body.appendChild(script2);
  5206. _iframe.contentWindow.document.body.appendChild(script4);
  5207. })
  5208. } else if (str == 'mind') {
  5209. _iframe = _formdiv.querySelector('iframe')
  5210. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5211. //
  5212. _iframe.contentWindow.document.body.appendChild(script1);
  5213. _iframe.contentWindow.document.body.appendChild(script2);
  5214. _iframe.contentWindow.document.body.appendChild(script4);
  5215. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5216. })
  5217. if (onloadListener) {
  5218. _iframe.contentDocument.location.reload()
  5219. } else {
  5220. _iframe.contentDocument.location.reload()
  5221. }
  5222. } else if (str == 'whiteboard') {
  5223. _iframe = _formdiv.querySelector('iframe')
  5224. let onloadListener = _iframe.onload = () => {
  5225. _iframe.contentWindow.document.body.appendChild(script1);
  5226. _iframe.contentWindow.document.body.appendChild(script2);
  5227. _iframe.contentWindow.document.body.appendChild(script4);
  5228. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5229. };
  5230. if (onloadListener) {
  5231. _iframe.contentDocument.location.reload()
  5232. } else {
  5233. _iframe.contentDocument.location.reload()
  5234. }
  5235. } else {
  5236. _iframe.onload = () => {
  5237. _iframe.contentWindow.document.body.appendChild(script1);
  5238. _iframe.contentWindow.document.body.appendChild(script2);
  5239. // _iframe.contentWindow.document.body.appendChild(script3);
  5240. _iframe.contentWindow.document.body.appendChild(script4);
  5241. };
  5242. }
  5243. _jie.onclick = async () => {
  5244. let text = ''
  5245. if (aTool == 1) {
  5246. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5247. } else if (aTool == 6) {
  5248. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5249. } else if (aTool == 3) {
  5250. text = await U.MD.D.I.getEditorContent(_iframe);
  5251. }
  5252. _loading.style.display = 'flex'
  5253. console.log(_loading);
  5254. var _ajs = _iframe.contentWindow.document.createElement("script");
  5255. _ajs.type = "text/javascript";
  5256. _ajs.innerHTML =
  5257. // 'console.log(' + _loading + ');\n' +
  5258. 'var _js = document.createElement("script");\n' +
  5259. '_js.type="text/javascript";\n' +
  5260. '_js.charset="UTF-8";\n' +
  5261. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5262. "_js.onload = function(){\n" +
  5263. ' var a = document.getElementsByTagName("img")\n' +
  5264. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5265. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5266. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5267. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5268. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5269. "beforeUpload_shishi(file," +
  5270. "'" +
  5271. _userid +
  5272. "'" +
  5273. ", " +
  5274. "'" +
  5275. _cid +
  5276. "'" +
  5277. ", " +
  5278. "'" +
  5279. _stage +
  5280. "'" +
  5281. ", " +
  5282. "'" +
  5283. _task +
  5284. "'" +
  5285. ", " +
  5286. "'" +
  5287. _tool +
  5288. "'" +
  5289. ", " +
  5290. "'" +
  5291. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool+_userid) +
  5292. "'" +
  5293. ", " +
  5294. "'" +
  5295. aTool +
  5296. "'" +
  5297. ", " +
  5298. "`" +
  5299. text +
  5300. "`" +
  5301. ")\n" +
  5302. " });\n" +
  5303. "}\n" +
  5304. "document.head.appendChild(_js);\n";
  5305. _iframe.contentWindow.document.head.appendChild(_ajs);
  5306. }
  5307. }
  5308. }
  5309. U.MD.D.I.getEditorContent = function (iframe) {
  5310. return new Promise((resolve, reject) => {
  5311. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5312. console.log(content);
  5313. resolve(content)
  5314. });
  5315. });
  5316. }
  5317. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5318. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5319. // if (res.value[0].length > 0) {
  5320. // // resolve(res.value[0][0].text);
  5321. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5322. // $(fileInput).val('');
  5323. // });
  5324. // }
  5325. // }, [], { "type": "GET", "withCredentials": true });
  5326. var xmlhttp;
  5327. var Mac, Sn, DeviceId
  5328. if (window.XMLHttpRequest) {
  5329. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5330. xmlhttp = new XMLHttpRequest();
  5331. }
  5332. else {
  5333. // IE6, IE5 浏览器执行代码
  5334. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5335. }
  5336. xmlhttp.onreadystatechange = function () {
  5337. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5338. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5339. // resolve(res.value[0][0].text);
  5340. if (type == '2') {
  5341. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  5342. } else if (type == '3') {
  5343. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5344. }
  5345. } else {
  5346. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5347. }
  5348. }
  5349. }
  5350. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5351. xmlhttp.send();
  5352. }
  5353. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5354. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5355. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5356. _userinfo = US.userInfo, //登录用户信息
  5357. _userid = US.userInfo.userid //登录用户id
  5358. let _iframe;
  5359. let _cid = cid,
  5360. _stage = stage,
  5361. _task = task,
  5362. _tool = tool;
  5363. var _jie = $$("div", {
  5364. "style": {
  5365. "position": "absolute",
  5366. "bottom": "50px",
  5367. "right": "50px",
  5368. "zIndex": "9999",
  5369. "backgroundColor": "#2268bc",
  5370. "color": "#fff",
  5371. "padding": "12px 20px",
  5372. "cursor": "pointer",
  5373. "borderRadius": "4px",
  5374. },
  5375. "innerHTML": "确认并提交"
  5376. })
  5377. let aTool = ''
  5378. let _loading = document.createElement('div')
  5379. _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;"
  5380. // _loading.id = "";
  5381. let _lchild = document.createElement('div')
  5382. let _limg = document.createElement('img')
  5383. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5384. _limg.style = "width: 26px;margin-right: 10px;"
  5385. _lchild.appendChild(_limg)
  5386. let _lspan = document.createElement('span')
  5387. _lspan.innerHTML = "上传中..."
  5388. _lchild.appendChild(_lspan)
  5389. _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%);"
  5390. _loading.appendChild(_lchild)
  5391. var _box = $$('div', {
  5392. "style": {
  5393. "position": "relative",
  5394. "width": "100%",
  5395. "height": "100%",
  5396. },
  5397. })
  5398. _box.appendChild(_loading)
  5399. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool+_userid
  5400. switch (str) {
  5401. case "whiteboard":
  5402. aTool = 1;
  5403. _iframe = $$("iframe", {
  5404. "frameborder": "no",
  5405. "border": "0",
  5406. "scrolling ": "no",
  5407. "style": {
  5408. "cssText": "border:0;width:100%;height:100%"
  5409. },
  5410. "src": "https://iwb.cocorobo.cn/"
  5411. })
  5412. _box.appendChild(_iframe);
  5413. _box.appendChild(_jie);
  5414. _formdiv = new U.UF.UI.form(
  5415. "电子白板",
  5416. _box, {
  5417. "id": "whiteboards" + cid + stage + task + tool,
  5418. "style": {
  5419. "width": "90%",
  5420. "height": "90%",
  5421. "overflow": 'hidden'
  5422. },
  5423. "onresize": function () { }
  5424. }, {
  5425. closecallback: function () { }
  5426. }, {
  5427. "style": {
  5428. "height": "36px"
  5429. }
  5430. }).form; //创建窗体
  5431. _taskbar = {
  5432. "id": str + _formdiv.id,
  5433. "style": {
  5434. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5435. },
  5436. "name": "电子白板",
  5437. "forms": _formdiv,
  5438. "click": function () {
  5439. U.MD.D.I.openApplication(str, obj, info);
  5440. }
  5441. }
  5442. break;
  5443. case "mind":
  5444. aTool = 3;
  5445. _iframe = $$("iframe", {
  5446. "frameborder": "no",
  5447. "border": "0",
  5448. "scrolling ": "no",
  5449. "style": {
  5450. "cssText": "border:0;width:100%;height:100%"
  5451. },
  5452. "src": "/kityminder-editor/dist/index.html"
  5453. });
  5454. _box.appendChild(_iframe);
  5455. _box.appendChild(_jie);
  5456. _formdiv = new U.UF.UI.form(
  5457. "思维导图",
  5458. _box, { //"/jsmind/example/demo.html"
  5459. "id": "minds" + cid + stage + task + tool,
  5460. "style": {
  5461. "width": "90%",
  5462. "height": "90%",
  5463. "overflow": 'hidden'
  5464. },
  5465. "onresize": function () { }
  5466. }, {
  5467. closecallback: function () { }
  5468. }, {
  5469. "style": {
  5470. "height": "36px"
  5471. }
  5472. }).form; //创建窗体
  5473. _taskbar = {
  5474. "id": str + _formdiv.id,
  5475. "style": {
  5476. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5477. },
  5478. "name": "思维导图",
  5479. "forms": _formdiv,
  5480. "click": function () {
  5481. U.MD.D.I.openApplication(str, obj, info);
  5482. }
  5483. }
  5484. break;
  5485. case "doc":
  5486. aTool = 6;
  5487. _iframe = $$("iframe", {
  5488. "frameborder": "no",
  5489. "border": "0",
  5490. "scrolling ": "no",
  5491. "style": {
  5492. "cssText": "border:0;width:100%;height:100%"
  5493. },
  5494. "src": "/Office/Word/WordEditArea.htm"
  5495. })
  5496. _box.appendChild(_iframe);
  5497. _box.appendChild(_jie);
  5498. _formdiv = new U.UF.UI.form(
  5499. "协同文档",
  5500. _box, {
  5501. "id": "docs" + cid + stage + task + tool,
  5502. "style": {
  5503. "width": "90%",
  5504. "height": "90%",
  5505. "overflow": 'hidden'
  5506. },
  5507. "onresize": function () { }
  5508. }, {
  5509. closecallback: function () { }
  5510. }, {
  5511. "style": {
  5512. "height": "36px"
  5513. }
  5514. }).form; //创建窗体
  5515. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5516. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5517. })
  5518. _taskbar = {
  5519. "id": str + _formdiv.id,
  5520. "style": {
  5521. "backgroundImage": "url(/img/icon/doc.png)"
  5522. },
  5523. "name": "协同文档",
  5524. "forms": _formdiv,
  5525. "click": function () {
  5526. U.MD.D.I.openApplication(str, obj, info);
  5527. }
  5528. }
  5529. break;
  5530. }
  5531. const script1 = document.createElement("script");
  5532. script1.type = "text/javascript";
  5533. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5534. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5535. const script2 = document.createElement("script");
  5536. script2.type = "text/javascript";
  5537. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5538. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5539. const script3 = document.createElement("script");
  5540. script3.type = "text/javascript";
  5541. script3.charset = "UTF-8";
  5542. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5543. const script4 = document.createElement("script");
  5544. script4.type = "text/javascript";
  5545. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5546. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5547. if (_iframe) {
  5548. if (str == 'doc') {
  5549. _iframe = _formdiv.querySelector('iframe')
  5550. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5551. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5552. _iframe.contentWindow.document.body.appendChild(script1);
  5553. _iframe.contentWindow.document.body.appendChild(script2);
  5554. // _iframe.contentWindow.document.body.appendChild(script3);
  5555. _iframe.contentWindow.document.body.appendChild(script4);
  5556. })
  5557. if (onloadListener) {
  5558. _iframe.contentDocument.location.reload()
  5559. } else {
  5560. _iframe.contentDocument.location.reload()
  5561. }
  5562. } else if (str == 'mind') {
  5563. _iframe = _formdiv.querySelector('iframe')
  5564. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5565. _iframe.contentWindow.document.body.appendChild(script1);
  5566. _iframe.contentWindow.document.body.appendChild(script2);
  5567. _iframe.contentWindow.document.body.appendChild(script4);
  5568. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5569. })
  5570. if (onloadListener) {
  5571. _iframe.contentDocument.location.reload()
  5572. } else {
  5573. _iframe.contentDocument.location.reload()
  5574. }
  5575. } else {
  5576. _iframe.onload = () => {
  5577. _iframe.contentWindow.document.body.appendChild(script1);
  5578. _iframe.contentWindow.document.body.appendChild(script2);
  5579. // _iframe.contentWindow.document.body.appendChild(script3);
  5580. _iframe.contentWindow.document.body.appendChild(script4);
  5581. };
  5582. }
  5583. _jie.onclick = async () => {
  5584. let text = ''
  5585. if (aTool == 6) {
  5586. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5587. } else if (aTool == 3) {
  5588. text = await U.MD.D.I.getEditorContent(_iframe);
  5589. }
  5590. _loading.style.display = 'flex'
  5591. console.log(_loading);
  5592. var _ajs = _iframe.contentWindow.document.createElement("script");
  5593. _ajs.type = "text/javascript";
  5594. _ajs.innerHTML =
  5595. // 'console.log(' + _loading + ');\n' +
  5596. 'var _js = document.createElement("script");\n' +
  5597. '_js.type="text/javascript";\n' +
  5598. '_js.charset="UTF-8";\n' +
  5599. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5600. "_js.onload = function(){\n" +
  5601. ' var a = document.getElementsByTagName("img")\n' +
  5602. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5603. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5604. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5605. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5606. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5607. "beforeUpload_shishi(file," +
  5608. "'" +
  5609. _userid +
  5610. "'" +
  5611. ", " +
  5612. "'" +
  5613. _cid +
  5614. "'" +
  5615. ", " +
  5616. "'" +
  5617. _stage +
  5618. "'" +
  5619. ", " +
  5620. "'" +
  5621. _task +
  5622. "'" +
  5623. ", " +
  5624. "'" +
  5625. _tool +
  5626. "'" +
  5627. ", " +
  5628. "'" +
  5629. (str + '_loadLi_JieS' + cid + stage + task + tool+_userid) +
  5630. "'" +
  5631. ", " +
  5632. "'" +
  5633. aTool +
  5634. "'" +
  5635. ", " +
  5636. "`" +
  5637. text +
  5638. "`" +
  5639. ")\n" +
  5640. " });\n" +
  5641. "}\n" +
  5642. "document.head.appendChild(_js);\n";
  5643. _iframe.contentWindow.document.head.appendChild(_ajs);
  5644. }
  5645. }
  5646. //U.MD.D.I.openClick(str);
  5647. //如果有任务栏信息
  5648. // if (_taskbar) {
  5649. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5650. // }
  5651. }
  5652. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  5653. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5654. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5655. _userinfo = US.userInfo, //登录用户信息
  5656. _userid = US.userInfo.userid //登录用户id
  5657. let _iframe;
  5658. let _cid = cid,
  5659. _stage = stage,
  5660. _task = task,
  5661. _tool = tool;
  5662. var _jie = $$("div", {
  5663. "style": {
  5664. "position": "absolute",
  5665. "bottom": "50px",
  5666. "right": "50px",
  5667. "zIndex": "9999",
  5668. "backgroundColor": "#2268bc",
  5669. "color": "#fff",
  5670. "padding": "12px 20px",
  5671. "cursor": "pointer",
  5672. "borderRadius": "4px",
  5673. },
  5674. "innerHTML": "确认并提交"
  5675. })
  5676. let aTool = ''
  5677. let _loading = document.createElement('div')
  5678. _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;"
  5679. // _loading.id = "";
  5680. let _lchild = document.createElement('div')
  5681. let _limg = document.createElement('img')
  5682. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5683. _limg.style = "width: 26px;margin-right: 10px;"
  5684. _lchild.appendChild(_limg)
  5685. let _lspan = document.createElement('span')
  5686. _lspan.innerHTML = "上传中..."
  5687. _lchild.appendChild(_lspan)
  5688. _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%);"
  5689. _loading.appendChild(_lchild)
  5690. var _box = $$('div', {
  5691. "style": {
  5692. "position": "relative",
  5693. "width": "100%",
  5694. "height": "100%",
  5695. },
  5696. })
  5697. _box.appendChild(_loading)
  5698. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid
  5699. switch (str) {
  5700. case "whiteboard":
  5701. aTool = 1;
  5702. _iframe = $$("iframe", {
  5703. "frameborder": "no",
  5704. "border": "0",
  5705. "scrolling ": "no",
  5706. "style": {
  5707. "cssText": "border:0;width:100%;height:100%"
  5708. },
  5709. "src": "https://iwb.cocorobo.cn/"
  5710. })
  5711. _box.appendChild(_iframe);
  5712. _box.appendChild(_jie);
  5713. _formdiv = new U.UF.UI.form(
  5714. "电子白板",
  5715. _box, {
  5716. "id": "whiteboards" + cid + stage + task + tool,
  5717. "style": {
  5718. "width": "90%",
  5719. "height": "90%",
  5720. "overflow": 'hidden'
  5721. },
  5722. "onresize": function () { }
  5723. }, {
  5724. closecallback: function () { }
  5725. }, {
  5726. "style": {
  5727. "height": "36px"
  5728. }
  5729. }).form; //创建窗体
  5730. _taskbar = {
  5731. "id": str + _formdiv.id,
  5732. "style": {
  5733. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5734. },
  5735. "name": "电子白板",
  5736. "forms": _formdiv,
  5737. "click": function () {
  5738. U.MD.D.I.openApplication(str, obj, info);
  5739. }
  5740. }
  5741. break;
  5742. case "mind":
  5743. aTool = 3;
  5744. _iframe = $$("iframe", {
  5745. "frameborder": "no",
  5746. "border": "0",
  5747. "scrolling ": "no",
  5748. "style": {
  5749. "cssText": "border:0;width:100%;height:100%"
  5750. },
  5751. "src": "/kityminder-editor/dist/index.html"
  5752. });
  5753. _box.appendChild(_iframe);
  5754. _box.appendChild(_jie);
  5755. _formdiv = new U.UF.UI.form(
  5756. "思维导图",
  5757. _box, { //"/jsmind/example/demo.html"
  5758. "id": "minds" + cid + stage + task + tool,
  5759. "style": {
  5760. "width": "90%",
  5761. "height": "90%",
  5762. "overflow": 'hidden'
  5763. },
  5764. "onresize": function () { }
  5765. }, {
  5766. closecallback: function () { }
  5767. }, {
  5768. "style": {
  5769. "height": "36px"
  5770. }
  5771. }).form; //创建窗体
  5772. _taskbar = {
  5773. "id": str + _formdiv.id,
  5774. "style": {
  5775. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5776. },
  5777. "name": "思维导图",
  5778. "forms": _formdiv,
  5779. "click": function () {
  5780. U.MD.D.I.openApplication(str, obj, info);
  5781. }
  5782. }
  5783. break;
  5784. case "doc":
  5785. aTool = 6;
  5786. _iframe = $$("iframe", {
  5787. "frameborder": "no",
  5788. "border": "0",
  5789. "scrolling ": "no",
  5790. "style": {
  5791. "cssText": "border:0;width:100%;height:100%"
  5792. },
  5793. "src": "/Office/Word/WordEditArea.htm"
  5794. })
  5795. _box.appendChild(_iframe);
  5796. _box.appendChild(_jie);
  5797. _formdiv = new U.UF.UI.form(
  5798. "协同文档",
  5799. _box, {
  5800. "id": "docs" + cid + stage + task + tool,
  5801. "style": {
  5802. "width": "90%",
  5803. "height": "90%",
  5804. "overflow": 'hidden'
  5805. },
  5806. "onresize": function () { }
  5807. }, {
  5808. closecallback: function () { }
  5809. }, {
  5810. "style": {
  5811. "height": "36px"
  5812. }
  5813. }).form; //创建窗体
  5814. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5815. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5816. })
  5817. _taskbar = {
  5818. "id": str + _formdiv.id,
  5819. "style": {
  5820. "backgroundImage": "url(/img/icon/doc.png)"
  5821. },
  5822. "name": "协同文档",
  5823. "forms": _formdiv,
  5824. "click": function () {
  5825. U.MD.D.I.openApplication(str, obj, info);
  5826. }
  5827. }
  5828. break;
  5829. }
  5830. const script1 = document.createElement("script");
  5831. script1.type = "text/javascript";
  5832. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5833. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5834. const script2 = document.createElement("script");
  5835. script2.type = "text/javascript";
  5836. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5837. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5838. const script3 = document.createElement("script");
  5839. script3.type = "text/javascript";
  5840. script3.charset = "UTF-8";
  5841. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5842. const script4 = document.createElement("script");
  5843. script4.type = "text/javascript";
  5844. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5845. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  5846. if (_iframe) {
  5847. if (str == 'doc') {
  5848. _iframe = _formdiv.querySelector('iframe')
  5849. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5850. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5851. _iframe.contentWindow.document.body.appendChild(script1);
  5852. _iframe.contentWindow.document.body.appendChild(script2);
  5853. // _iframe.contentWindow.document.body.appendChild(script3);
  5854. _iframe.contentWindow.document.body.appendChild(script4);
  5855. })
  5856. if (onloadListener) {
  5857. _iframe.contentDocument.location.reload()
  5858. } else {
  5859. _iframe.contentDocument.location.reload()
  5860. }
  5861. } else if (str == 'mind') {
  5862. _iframe = _formdiv.querySelector('iframe')
  5863. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5864. _iframe.contentWindow.document.body.appendChild(script1);
  5865. _iframe.contentWindow.document.body.appendChild(script2);
  5866. _iframe.contentWindow.document.body.appendChild(script4);
  5867. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5868. })
  5869. if (onloadListener) {
  5870. _iframe.contentDocument.location.reload()
  5871. } else {
  5872. _iframe.contentDocument.location.reload()
  5873. }
  5874. } else {
  5875. _iframe.onload = () => {
  5876. _iframe.contentWindow.document.body.appendChild(script1);
  5877. _iframe.contentWindow.document.body.appendChild(script2);
  5878. // _iframe.contentWindow.document.body.appendChild(script3);
  5879. _iframe.contentWindow.document.body.appendChild(script4);
  5880. };
  5881. }
  5882. _jie.onclick = async () => {
  5883. let text = ''
  5884. if (aTool == 6) {
  5885. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5886. } else if (aTool == 3) {
  5887. text = await U.MD.D.I.getEditorContent(_iframe);
  5888. }
  5889. _loading.style.display = 'flex'
  5890. console.log(_loading);
  5891. var _ajs = _iframe.contentWindow.document.createElement("script");
  5892. _ajs.type = "text/javascript";
  5893. _ajs.innerHTML =
  5894. // 'console.log(' + _loading + ');\n' +
  5895. 'var _js = document.createElement("script");\n' +
  5896. '_js.type="text/javascript";\n' +
  5897. '_js.charset="UTF-8";\n' +
  5898. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5899. "_js.onload = function(){\n" +
  5900. ' var a = document.getElementsByTagName("img")\n' +
  5901. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5902. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5903. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5904. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5905. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5906. "beforeUpload_shishi(file," +
  5907. "'" +
  5908. _userid +
  5909. "'" +
  5910. ", " +
  5911. "'" +
  5912. _cid +
  5913. "'" +
  5914. ", " +
  5915. "'" +
  5916. _stage +
  5917. "'" +
  5918. ", " +
  5919. "'" +
  5920. _task +
  5921. "'" +
  5922. ", " +
  5923. "'" +
  5924. _tool +
  5925. "'" +
  5926. ", " +
  5927. "'" +
  5928. (str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid) +
  5929. "'" +
  5930. ", " +
  5931. "'" +
  5932. aTool +
  5933. "'" +
  5934. ", " +
  5935. "`" +
  5936. text +
  5937. "`" +
  5938. ")\n" +
  5939. " });\n" +
  5940. "}\n" +
  5941. "document.head.appendChild(_js);\n";
  5942. _iframe.contentWindow.document.head.appendChild(_ajs);
  5943. }
  5944. }
  5945. //U.MD.D.I.openClick(str);
  5946. //如果有任务栏信息
  5947. // if (_taskbar) {
  5948. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5949. // }
  5950. }
  5951. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  5952. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5953. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5954. _userinfo = US.userInfo, //登录用户信息
  5955. _userid = US.userInfo.userid //登录用户id
  5956. let _iframe;
  5957. let _cid = cid,
  5958. _stage = stage,
  5959. _task = task,
  5960. _tool = tool;
  5961. var _jie = $$("div", {
  5962. "style": {
  5963. "position": "absolute",
  5964. "bottom": "50px",
  5965. "right": "50px",
  5966. "zIndex": "9999",
  5967. "backgroundColor": "#2268bc",
  5968. "color": "#fff",
  5969. "padding": "12px 20px",
  5970. "cursor": "pointer",
  5971. "borderRadius": "4px",
  5972. },
  5973. "innerHTML": "上传模板"
  5974. })
  5975. let aTool = ''
  5976. let _loading = document.createElement('div')
  5977. _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;"
  5978. // _loading.id = "";
  5979. let _lchild = document.createElement('div')
  5980. let _limg = document.createElement('img')
  5981. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5982. _limg.style = "width: 26px;margin-right: 10px;"
  5983. _lchild.appendChild(_limg)
  5984. let _lspan = document.createElement('span')
  5985. _lspan.innerHTML = "上传中..."
  5986. _lchild.appendChild(_lspan)
  5987. _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%);"
  5988. _loading.appendChild(_lchild)
  5989. var _box = $$('div', {
  5990. "style": {
  5991. "position": "relative",
  5992. "width": "100%",
  5993. "height": "100%",
  5994. },
  5995. })
  5996. _box.appendChild(_loading)
  5997. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool+_userid
  5998. switch (str) {
  5999. case "whiteboard":
  6000. aTool = 1;
  6001. _iframe = $$("iframe", {
  6002. "frameborder": "no",
  6003. "border": "0",
  6004. "scrolling ": "no",
  6005. "style": {
  6006. "cssText": "border:0;width:100%;height:100%"
  6007. },
  6008. "src": "https://iwb.cocorobo.cn/"
  6009. })
  6010. _box.appendChild(_iframe);
  6011. _box.appendChild(_jie);
  6012. _formdiv = new U.UF.UI.form(
  6013. "电子白板",
  6014. _box, {
  6015. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6016. "style": {
  6017. "width": "90%",
  6018. "height": "90%",
  6019. "overflow": 'hidden'
  6020. },
  6021. "onresize": function () { }
  6022. }, {
  6023. closecallback: function () { }
  6024. }, {
  6025. "style": {
  6026. "height": "36px"
  6027. }
  6028. }).form; //创建窗体
  6029. _taskbar = {
  6030. "id": str + _formdiv.id,
  6031. "style": {
  6032. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6033. },
  6034. "name": "电子白板",
  6035. "forms": _formdiv,
  6036. "click": function () {
  6037. U.MD.D.I.openApplication(str, obj, info);
  6038. }
  6039. }
  6040. break;
  6041. case "mind":
  6042. aTool = 3;
  6043. _iframe = $$("iframe", {
  6044. "frameborder": "no",
  6045. "border": "0",
  6046. "scrolling ": "no",
  6047. "style": {
  6048. "cssText": "border:0;width:100%;height:100%"
  6049. },
  6050. "src": "/kityminder-editor/dist/index.html"
  6051. });
  6052. _box.appendChild(_iframe);
  6053. _box.appendChild(_jie);
  6054. _formdiv = new U.UF.UI.form(
  6055. "思维导图",
  6056. _box, { //"/jsmind/example/demo.html"
  6057. "id": "minds_Yu" + cid + stage + task + tool,
  6058. "style": {
  6059. "width": "90%",
  6060. "height": "90%",
  6061. "overflow": 'hidden'
  6062. },
  6063. "onresize": function () { }
  6064. }, {
  6065. closecallback: function () { }
  6066. }, {
  6067. "style": {
  6068. "height": "36px"
  6069. }
  6070. }).form; //创建窗体
  6071. _taskbar = {
  6072. "id": str + _formdiv.id,
  6073. "style": {
  6074. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6075. },
  6076. "name": "思维导图",
  6077. "forms": _formdiv,
  6078. "click": function () {
  6079. U.MD.D.I.openApplication(str, obj, info);
  6080. }
  6081. }
  6082. break;
  6083. case "doc":
  6084. aTool = 6;
  6085. _iframe = $$("iframe", {
  6086. "frameborder": "no",
  6087. "border": "0",
  6088. "scrolling ": "no",
  6089. "style": {
  6090. "cssText": "border:0;width:100%;height:100%"
  6091. },
  6092. "src": "/Office/Word/WordEditArea.htm"
  6093. })
  6094. _box.appendChild(_iframe);
  6095. _box.appendChild(_jie);
  6096. _formdiv = new U.UF.UI.form(
  6097. "协同文档",
  6098. _box, {
  6099. "id": "docs_Yu" + cid + stage + task + tool,
  6100. "style": {
  6101. "width": "90%",
  6102. "height": "90%",
  6103. "overflow": 'hidden'
  6104. },
  6105. "onresize": function () { }
  6106. }, {
  6107. closecallback: function () { }
  6108. }, {
  6109. "style": {
  6110. "height": "36px"
  6111. }
  6112. }).form; //创建窗体
  6113. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6114. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6115. })
  6116. _taskbar = {
  6117. "id": str + _formdiv.id,
  6118. "style": {
  6119. "backgroundImage": "url(/img/icon/doc.png)"
  6120. },
  6121. "name": "协同文档",
  6122. "forms": _formdiv,
  6123. "click": function () {
  6124. U.MD.D.I.openApplication(str, obj, info);
  6125. }
  6126. }
  6127. break;
  6128. case "CocoPi":
  6129. aTool = 57;
  6130. _iframe = $$("iframe", {
  6131. "allowpaymentrequest":"allowpaymentrequest",
  6132. "allow": "camera *; microphone *;display-capture;usb",
  6133. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6134. "frameborder": "no",
  6135. "border": "0",
  6136. "scrolling ": "no",
  6137. "style": {
  6138. "cssText": "border:0;width:100%;height:100%"
  6139. },
  6140. "src": "https://beta.v.cocorobo.cn/"
  6141. })
  6142. _box.appendChild(_iframe);
  6143. _box.appendChild(_jie);
  6144. _formdiv = new U.UF.UI.form(
  6145. "CocoPi",
  6146. _box, {
  6147. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6148. "style": {
  6149. "width": "90%",
  6150. "height": "90%",
  6151. "overflow": 'hidden'
  6152. },
  6153. "onresize": function () { }
  6154. }, {
  6155. closecallback: function () { }
  6156. }, {
  6157. "style": {
  6158. "height": "36px"
  6159. }
  6160. }).form; //创建窗体
  6161. _taskbar = {
  6162. "id": str + _formdiv.id,
  6163. "style": {
  6164. "backgroundImage": "url(/img/icon/cocopi.png)"
  6165. },
  6166. "name": "CocoPi",
  6167. "forms": _formdiv,
  6168. "click": function () {
  6169. U.MD.D.I.openApplication(str, obj, info);
  6170. }
  6171. }
  6172. break;
  6173. }
  6174. if (_iframe) {
  6175. if (str == 'doc') {
  6176. _iframe = _formdiv.querySelector('iframe')
  6177. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6178. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6179. })
  6180. if (onloadListener) {
  6181. _iframe.contentDocument.location.reload()
  6182. } else {
  6183. _iframe.contentDocument.location.reload()
  6184. }
  6185. } else if (str == 'mind') {
  6186. _iframe = _formdiv.querySelector('iframe')
  6187. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6188. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6189. })
  6190. if (onloadListener) {
  6191. _iframe.contentDocument.location.reload()
  6192. } else {
  6193. _iframe.contentDocument.location.reload()
  6194. }
  6195. } else if (str == 'whiteboard') {
  6196. _iframe = _formdiv.querySelector('iframe')
  6197. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6198. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6199. })
  6200. if (onloadListener) {
  6201. _iframe.contentDocument.location.reload()
  6202. } else {
  6203. _iframe.contentDocument.location.reload()
  6204. }
  6205. } else if (str == 'CocoPi') {
  6206. _iframe = _formdiv.querySelector('iframe')
  6207. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6208. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6209. })
  6210. if (onloadListener) {
  6211. _iframe.contentDocument.location.reload()
  6212. } else {
  6213. _iframe.contentDocument.location.reload()
  6214. }
  6215. } else {
  6216. _iframe.onload = () => {
  6217. };
  6218. }
  6219. _jie.onclick = async () => {
  6220. let text = ''
  6221. let type = '2'
  6222. if (aTool == 1) {
  6223. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6224. type = '3'
  6225. } else if (aTool == 6) {
  6226. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6227. type = '1'
  6228. } else if (aTool == 3) {
  6229. text = await U.MD.D.I.getEditorContent(_iframe);
  6230. type = '2'
  6231. } else if (aTool == 57) {
  6232. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6233. type = '4'
  6234. }
  6235. _loading.style.display = 'flex'
  6236. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6237. }
  6238. }
  6239. //U.MD.D.I.openClick(str);
  6240. //如果有任务栏信息
  6241. // if (_taskbar) {
  6242. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6243. // }
  6244. }
  6245. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6246. var xmlhttp;
  6247. var Mac, Sn, DeviceId
  6248. if (window.XMLHttpRequest) {
  6249. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6250. xmlhttp = new XMLHttpRequest();
  6251. }
  6252. else {
  6253. // IE6, IE5 浏览器执行代码
  6254. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6255. }
  6256. xmlhttp.onreadystatechange = function () {
  6257. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6258. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6259. // resolve(res.value[0][0].text);
  6260. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6261. }
  6262. }
  6263. }
  6264. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6265. xmlhttp.send();
  6266. }
  6267. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6268. var xmlhttp;
  6269. var Mac, Sn, DeviceId
  6270. if (window.XMLHttpRequest) {
  6271. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6272. xmlhttp = new XMLHttpRequest();
  6273. }
  6274. else {
  6275. // IE6, IE5 浏览器执行代码
  6276. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6277. }
  6278. xmlhttp.onreadystatechange = function () {
  6279. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6280. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6281. // resolve(res.value[0][0].text);
  6282. if (type == '2') {
  6283. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6284. } else if (type == '3') {
  6285. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6286. } else if (type == '4') {
  6287. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  6288. }
  6289. } else {
  6290. if (type == '2') {
  6291. iframe.contentWindow.editor.minder.importData('json', '')
  6292. } else if (type == '3') {
  6293. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6294. } else if (type == '4') {
  6295. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6296. }
  6297. }
  6298. }
  6299. }
  6300. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6301. xmlhttp.send();
  6302. }
  6303. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6304. var xmlhttp;
  6305. var Mac, Sn, DeviceId
  6306. if (window.XMLHttpRequest) {
  6307. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6308. xmlhttp = new XMLHttpRequest();
  6309. }
  6310. else {
  6311. // IE6, IE5 浏览器执行代码
  6312. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6313. }
  6314. xmlhttp.onreadystatechange = function () {
  6315. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6316. if (xmlhttp.response) {
  6317. // resolve(res.value[0][0].text);
  6318. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6319. // $(fileInput).val('');
  6320. // });
  6321. span.innerHTML = '上传成功'
  6322. setTimeout(() => {
  6323. loading.style.display = 'none'
  6324. }, 1000);
  6325. }
  6326. }
  6327. }
  6328. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6329. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6330. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6331. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6332. // 设置请求头,表示请求体的编码格式
  6333. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  6334. // 设置请求体,使用url-encoded格式的数据
  6335. }
  6336. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  6337. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6338. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6339. _userinfo = US.userInfo, //登录用户信息
  6340. _userid = US.userInfo.userid //登录用户id
  6341. let _iframe;
  6342. let _cid = cid,
  6343. _stage = stage,
  6344. _task = task,
  6345. _tool = tool;
  6346. var _jie = $$("div", {
  6347. "style": {
  6348. "position": "absolute",
  6349. "bottom": "50px",
  6350. "right": "50px",
  6351. "zIndex": "9999",
  6352. "backgroundColor": "#2268bc",
  6353. "color": "#fff",
  6354. "padding": "12px 20px",
  6355. "cursor": "pointer",
  6356. "borderRadius": "4px",
  6357. },
  6358. "innerHTML": "提交作业"
  6359. })
  6360. let aTool = ''
  6361. let _loading = document.createElement('div')
  6362. _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;"
  6363. // _loading.id = "";
  6364. let _lchild = document.createElement('div')
  6365. let _limg = document.createElement('img')
  6366. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6367. _limg.style = "width: 26px;margin-right: 10px;"
  6368. _lchild.appendChild(_limg)
  6369. let _lspan = document.createElement('span')
  6370. _lspan.innerHTML = "上传中..."
  6371. _lchild.appendChild(_lspan)
  6372. _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%);"
  6373. _loading.appendChild(_lchild)
  6374. var _box = $$('div', {
  6375. "style": {
  6376. "position": "relative",
  6377. "width": "100%",
  6378. "height": "100%",
  6379. },
  6380. })
  6381. _box.appendChild(_loading)
  6382. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool+_userid
  6383. switch (str) {
  6384. case "CocoPi":
  6385. aTool = 57;
  6386. _iframe = $$("iframe", {
  6387. "allowpaymentrequest":"allowpaymentrequest",
  6388. "allow": "camera *; microphone *;display-capture;usb",
  6389. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6390. "frameborder": "no",
  6391. "border": "0",
  6392. "scrolling ": "no",
  6393. "style": {
  6394. "cssText": "border:0;width:100%;height:100%"
  6395. },
  6396. "src": "https://beta.v.cocorobo.cn/"
  6397. })
  6398. _box.appendChild(_iframe);
  6399. _box.appendChild(_jie);
  6400. _formdiv = new U.UF.UI.form(
  6401. "CocoPi",
  6402. _box, {
  6403. "id": "CocoPi_Upload" + cid + stage + task + tool,
  6404. "style": {
  6405. "width": "90%",
  6406. "height": "90%",
  6407. "overflow": 'hidden'
  6408. },
  6409. "onresize": function () { }
  6410. }, {
  6411. closecallback: function () { }
  6412. }, {
  6413. "style": {
  6414. "height": "36px"
  6415. }
  6416. }).form; //创建窗体
  6417. _taskbar = {
  6418. "id": str + _formdiv.id,
  6419. "style": {
  6420. "backgroundImage": "url(/img/icon/cocopi.png)"
  6421. },
  6422. "name": "CocoPi",
  6423. "forms": _formdiv,
  6424. "click": function () {
  6425. U.MD.D.I.openApplication(str, obj, info);
  6426. }
  6427. }
  6428. break;
  6429. }
  6430. if (_iframe) {
  6431. if (str == 'CocoPi') {
  6432. _iframe = _formdiv.querySelector('iframe')
  6433. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6434. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6435. })
  6436. if (onloadListener) {
  6437. _iframe.contentDocument.location.reload()
  6438. } else {
  6439. _iframe.contentDocument.location.reload()
  6440. }
  6441. }
  6442. _jie.onclick = async () => {
  6443. let text = ''
  6444. if (aTool == 57) {
  6445. text = _iframe.contentWindow.getLoadXmlStr()
  6446. }
  6447. _loading.style.display = 'flex'
  6448. console.log(_loading);
  6449. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6450. _loading.style.display = 'none'
  6451. let _div = document.createElement('div')
  6452. _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
  6453. let _inner = document.createElement('div')
  6454. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6455. _inner.innerHTML = "上传成功"
  6456. _div.appendChild(_inner)
  6457. _iframe.contentWindow.window.document.body.appendChild(_div)
  6458. _div.onclick = () => {
  6459. _iframe.contentWindow.window.document.body.removeChild(_div)
  6460. }
  6461. setTimeout(() => {
  6462. _iframe.contentWindow.window.document.body.removeChild(_div)
  6463. }, 1000);
  6464. }, [], { "type": "POST", "withCredentials": true });
  6465. }
  6466. }
  6467. }
  6468. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  6469. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6470. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6471. _userid = student.userid, //登录用户id
  6472. _username = student.student //用户名字
  6473. let _iframe;
  6474. let _cid = cid,
  6475. _stage = stage,
  6476. _task = task,
  6477. _tool = tool;
  6478. var _jie = $$("div", {
  6479. "style": {
  6480. "position": "absolute",
  6481. "bottom": "50px",
  6482. "right": "50px",
  6483. "zIndex": "9999",
  6484. "backgroundColor": "#2268bc",
  6485. "color": "#fff",
  6486. "padding": "12px 20px",
  6487. "cursor": "pointer",
  6488. "borderRadius": "4px",
  6489. },
  6490. "innerHTML": "提交作业"
  6491. })
  6492. let aTool = ''
  6493. let _loading = document.createElement('div')
  6494. _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;"
  6495. // _loading.id = "";
  6496. let _lchild = document.createElement('div')
  6497. let _limg = document.createElement('img')
  6498. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6499. _limg.style = "width: 26px;margin-right: 10px;"
  6500. _lchild.appendChild(_limg)
  6501. let _lspan = document.createElement('span')
  6502. _lspan.innerHTML = "上传中..."
  6503. _lchild.appendChild(_lspan)
  6504. _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%);"
  6505. _loading.appendChild(_lchild)
  6506. var _box = $$('div', {
  6507. "style": {
  6508. "position": "relative",
  6509. "width": "100%",
  6510. "height": "100%",
  6511. },
  6512. })
  6513. _box.appendChild(_loading)
  6514. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool+_userid
  6515. switch (str) {
  6516. case "CocoPi":
  6517. aTool = 57;
  6518. _iframe = $$("iframe", {
  6519. "allowpaymentrequest":"allowpaymentrequest",
  6520. "allow": "camera *; microphone *;display-capture;usb",
  6521. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6522. "frameborder": "no",
  6523. "border": "0",
  6524. "scrolling ": "no",
  6525. "style": {
  6526. "cssText": "border:0;width:100%;height:100%"
  6527. },
  6528. "src": "https://beta.v.cocorobo.cn/"
  6529. })
  6530. _box.appendChild(_iframe);
  6531. _box.appendChild(_jie);
  6532. _formdiv = new U.UF.UI.form(
  6533. "CocoPi-" + _username,
  6534. _box, {
  6535. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  6536. "style": {
  6537. "width": "90%",
  6538. "height": "90%",
  6539. "overflow": 'hidden'
  6540. },
  6541. "onresize": function () { }
  6542. }, {
  6543. closecallback: function () { }
  6544. }, {
  6545. "style": {
  6546. "height": "36px"
  6547. }
  6548. }).form; //创建窗体
  6549. _taskbar = {
  6550. "id": str + _formdiv.id,
  6551. "style": {
  6552. "backgroundImage": "url(/img/icon/cocopi.png)"
  6553. },
  6554. "name": "CocoPi",
  6555. "forms": _formdiv,
  6556. "click": function () {
  6557. U.MD.D.I.openApplication(str, obj, info);
  6558. }
  6559. }
  6560. break;
  6561. }
  6562. if (_iframe) {
  6563. if (str == 'CocoPi') {
  6564. _iframe = _formdiv.querySelector('iframe')
  6565. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6566. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6567. })
  6568. if (onloadListener) {
  6569. _iframe.contentDocument.location.reload()
  6570. } else {
  6571. _iframe.contentDocument.location.reload()
  6572. }
  6573. }
  6574. _jie.onclick = async () => {
  6575. let text = ''
  6576. if (aTool == 57) {
  6577. text = _iframe.contentWindow.getLoadXmlStr()
  6578. }
  6579. _loading.style.display = 'flex'
  6580. console.log(_loading);
  6581. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6582. _loading.style.display = 'none'
  6583. let _div = document.createElement('div')
  6584. _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
  6585. let _inner = document.createElement('div')
  6586. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6587. _inner.innerHTML = "上传成功"
  6588. _div.appendChild(_inner)
  6589. _iframe.contentWindow.window.document.body.appendChild(_div)
  6590. _div.onclick = () => {
  6591. _iframe.contentWindow.window.document.body.removeChild(_div)
  6592. }
  6593. setTimeout(() => {
  6594. _iframe.contentWindow.window.document.body.removeChild(_div)
  6595. }, 1000);
  6596. }, [], { "type": "POST", "withCredentials": true });
  6597. }
  6598. }
  6599. }
  6600. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  6601. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  6602. if (res.value[0].length > 0) {
  6603. if (atool == 57) {
  6604. iframe.contentWindow.loadingXml(res.value[0][0].content)
  6605. }
  6606. } else {
  6607. if (atool == 57) {
  6608. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  6609. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6610. }
  6611. }
  6612. }, [], { "type": "POST", "withCredentials": true });
  6613. }