DeskTop.js 354 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400
  1. /*
  2. 此处为桌面系统启动应用区域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面应用处理
  5. //判断图片是否在拖拽,如果是拖拽图标的过程是不会打开图片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教师桌面图标的全局变量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  17. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  18. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  19. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  20. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  21. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  22. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  23. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  24. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  25. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  26. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  27. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  28. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  29. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  30. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  31. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  32. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  33. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  34. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  35. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  36. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  37. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  38. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  39. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  40. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  41. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  42. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  43. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  44. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  45. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  46. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  47. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  48. ];
  49. //极简模式
  50. U.MD.D.I.easyDeskIcon = [
  51. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  52. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  55. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  56. ];
  57. //教师桌面图标的全局变量
  58. U.MD.D.I.teacherDeskIcon2 = [
  59. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  60. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  61. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  62. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  63. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  64. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  65. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  66. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  67. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  68. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  69. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  70. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  71. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  72. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  73. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  74. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  75. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  76. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  77. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  78. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  79. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  80. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  81. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  82. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  83. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  84. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  85. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  86. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  87. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  88. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  89. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  90. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  91. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  92. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  93. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  94. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  95. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  96. ];
  97. U.MD.D.I.studentDeskIcon = [
  98. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  99. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  100. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  101. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  102. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  103. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  104. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  105. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  106. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  107. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  108. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  109. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  110. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  111. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  112. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  113. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  114. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  115. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  116. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  117. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  118. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  119. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  120. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  121. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  122. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  123. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  124. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  125. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  126. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  127. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  128. ];
  129. U.MD.D.I.studentDeskIcon2 = [
  130. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  131. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  132. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  133. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  134. ]
  135. U.MD.D.I.studentDeskIcon3 = [
  136. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  137. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  138. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  139. ]
  140. U.MD.D.I.schoolDeskIcon = [
  141. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  142. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  144. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  145. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  146. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  147. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  148. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  149. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  150. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  151. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  152. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  153. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  154. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  155. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  156. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  157. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  158. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  159. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  160. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  161. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  162. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  163. ];
  164. U.MD.D.I.orgDeskIcon = [
  165. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  166. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  167. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  168. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  169. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  170. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  171. ];
  172. U.MD.D.I.orgStemDeskIcon = [
  173. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  174. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  175. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  176. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  177. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  178. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  179. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  180. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  181. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  182. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  183. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  184. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  185. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  186. ];
  187. U.MD.D.I.szulsDeskIcon = [
  188. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  189. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  190. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  191. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  192. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  193. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  194. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  195. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  196. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  197. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  198. ];
  199. U.MD.D.I.hanDeskIcon = [
  200. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  201. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  202. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  203. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  204. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  205. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  206. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  207. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  208. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  209. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  210. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  211. ];
  212. U.MD.D.I.GMteacherDeskIcon = [
  213. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  214. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  215. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  216. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  217. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  218. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  219. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  220. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  221. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  222. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  223. ];
  224. U.MD.D.I.GMstudentDeskIcon = [
  225. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  226. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  227. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  228. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  229. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  230. ];
  231. //北师大
  232. U.MD.D.I.BSDNSteacherDeskIcon = [
  233. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  234. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  235. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  236. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  237. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  238. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  239. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  240. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  241. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  242. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  243. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  244. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  245. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  246. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  247. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  248. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  249. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  250. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  251. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  252. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  253. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  254. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  255. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  256. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  257. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  258. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  259. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  260. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  261. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  262. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  263. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  264. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  265. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  266. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  267. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  268. ];
  269. //松山湖
  270. U.MD.D.I.SONGteacherDeskIcon = [
  271. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  272. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  273. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  274. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  275. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  276. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  277. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  278. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  279. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  280. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  281. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  282. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  283. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  284. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  285. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  286. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  287. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  288. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  289. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  290. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  291. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  292. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  293. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  294. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  295. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  296. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  297. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  298. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  299. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  300. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  301. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  302. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  303. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  304. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  305. ];
  306. U.MD.D.I.tcStudentDeskIcon = [
  307. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  308. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  309. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  310. ];
  311. U.MD.D.I.tcTeacherDeskIcon = [
  312. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  313. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  314. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  315. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  316. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  317. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  318. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  319. ];
  320. U.MD.D.I.tcOrganizerDeskIcon = [
  321. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  322. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  323. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  324. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  325. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  326. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  327. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  328. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  329. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  330. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  331. ];
  332. U.MD.D.I.szscStudentDeskIcon = [
  333. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  334. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  335. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. ];
  338. U.MD.D.I.szscTeacherDeskIcon = [
  339. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  340. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  341. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  342. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  343. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  344. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  345. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  346. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  347. ];
  348. U.MD.D.I.szscOrganizerDeskIcon = [
  349. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  350. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  351. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  352. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  353. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  354. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  355. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  356. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  357. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  358. ];
  359. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  360. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  361. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  362. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  363. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  364. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  365. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  366. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  367. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  368. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  369. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  370. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  371. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  372. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  373. ];
  374. U.MD.D.I.wankeAdminDeskIcon = [
  375. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  376. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  377. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  378. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  379. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  380. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  381. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  382. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  383. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  384. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  385. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  386. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  387. ];
  388. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  389. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  390. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  391. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  392. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  393. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  394. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  395. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  396. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  397. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  398. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  399. ];
  400. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  401. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  402. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  403. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  404. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  405. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  406. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  407. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  408. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  409. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  410. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  411. ];
  412. //明德教师桌面图标的全局变量
  413. U.MD.D.I.MingdeTeacherDeskIcon = [
  414. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  415. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  416. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  417. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  418. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  419. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  420. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  421. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  422. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  423. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  424. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  425. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  426. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  427. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  428. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  429. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  430. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  431. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  432. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  433. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  434. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  435. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  436. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  437. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  438. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  439. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  440. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  441. ];
  442. //97c4ee8b-d010-4042-986d-e9d3c217264f
  443. //教师桌面图标的全局变量
  444. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  445. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  446. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  447. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  448. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  449. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  450. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  451. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  452. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  453. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  454. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  455. ];
  456. //福田
  457. U.MD.D.I.futianTeacherDeskIcon = [
  458. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  459. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  460. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  461. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  462. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  463. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  464. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  465. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  466. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  467. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  468. ];
  469. //福田
  470. U.MD.D.I.futianAdminDeskIcon = [
  471. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  472. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  473. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  474. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  475. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  476. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  477. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  478. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  479. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  480. ];
  481. //lotech
  482. U.MD.D.I.lotechTeacherDeskIcon = [
  483. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  484. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  485. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  486. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  487. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  488. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  489. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  490. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  491. ];
  492. //龙华中心小学教师桌面图标的全局变量
  493. U.MD.D.I.longhuateacherDeskIcon = [
  494. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  495. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  496. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  497. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  498. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  499. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  500. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  501. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  502. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  503. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  504. ];
  505. //教科院实小教师桌面图标的全局变量
  506. U.MD.D.I.siesteacherDeskIcon = [
  507. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  508. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  509. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  510. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  511. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  512. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  513. // { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  514. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  515. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  516. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  517. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  518. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  519. ];
  520. //#region 桌面初始化a
  521. /**
  522. * 初始化桌面的起始函数
  523. *
  524. */
  525. U.MD.D.I.init = function () {
  526. if ($("#U_MD_D_K")[0]) {
  527. //初始化桌面图标
  528. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  529. // var clickUrl = ':12588/requestIp.php';
  530. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  531. // U.MD.D.I.Ip = data;
  532. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  533. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  534. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  535. // })
  536. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  537. // })
  538. }
  539. }
  540. /**
  541. * 模式切换
  542. *
  543. */
  544. U.MD.D.I.ModeCheck = function (type) {
  545. if (US.Config.type == type) {
  546. return
  547. }
  548. US.Config.type = type
  549. $('.U_PBL_Check .active')[0].className = ''
  550. if (type == 1) {
  551. $('.U_PBL_Check div')[0].className = 'active'
  552. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  553. } else {
  554. $('.U_PBL_Check div')[1].className = 'active'
  555. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  556. }
  557. //初始化桌面图标
  558. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  559. if(type == 2){
  560. U.MD.D.I.openApplication("project")
  561. }
  562. }
  563. /**
  564. * 隐藏任务栏
  565. *
  566. * @param {element} 桌面元素
  567. */
  568. U.MD.D.I.hiddenTaskbar = function (el) {
  569. //任务栏位置变小
  570. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  571. //桌面的位置变大
  572. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  573. }
  574. /**
  575. * 隐藏任务栏
  576. *
  577. * @param {element} 桌面元素
  578. */
  579. U.MD.D.I.hiddenTaskbarout = function (el) {
  580. //任务栏位置变小
  581. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  582. //任务栏位置变化
  583. U.selectEl(el).css({ "bottom": "-60px" });
  584. //桌面的位置变大
  585. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  586. }
  587. }
  588. /**
  589. * 初始化打印桌面图标
  590. *
  591. * @param {element} 桌面元素
  592. */
  593. U.MD.D.I.initDesktopIcons = function (el, type) {
  594. var i, //用于循环
  595. _content, //桌面图标元素
  596. _iconcontent, //桌面图标元素
  597. _frag = $$("frag"), //定义一个碎片元素
  598. _type = US.userInfo.type,
  599. _org = US.userInfo.org,
  600. _oid = US.userInfo.organizeid,
  601. _role = US.userInfo.role,
  602. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  603. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  604. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  605. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  606. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  607. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  608. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  609. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  610. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  611. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  612. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  613. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  614. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  615. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  616. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  617. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  618. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  619. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  620. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  621. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  622. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  623. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  624. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  625. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  626. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  627. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  628. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
  629. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龙华中心
  630. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  631. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  632. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  633. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  634. 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'];
  635. 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'];
  636. //清楚桌面图标
  637. el.innerHTML = "";
  638. 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") {
  639. _teacherDesktopIconInfo.push(
  640. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  641. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  642. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  643. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  644. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  645. )
  646. _easyDesktopIconInfo.push(
  647. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  648. )
  649. }
  650. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  651. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  652. if(el.Name == '项目管理'){
  653. el.Name = 'PBL项目'
  654. }
  655. return el
  656. })
  657. }
  658. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  659. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  660. return el.Name != '魔盒识字' && el.Name != '24点'
  661. })
  662. }
  663. 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) {
  664. _studentDesktopIconInfo.push(
  665. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  666. )
  667. }
  668. //循环创建桌面图标
  669. if (type == 1) {
  670. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  671. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  672. _content = $$("div", {
  673. className: "U_MD_D_KO",
  674. "onmousedown": U.UF.C.closure(function (obj) {
  675. //防止拖动图标即打开了桌面应用
  676. U.MD.D.click(this, obj);
  677. }, [_studentDesktopIconInfo[i]]),
  678. "onclick": U.UF.C.closure(function (obj) {
  679. //防止拖动图标即打开了桌面应用
  680. U.MD.D.click(this, obj);
  681. }, [_studentDesktopIconInfo[i]])
  682. }, _frag); //
  683. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  684. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  685. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  686. }
  687. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  688. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  689. _content = $$("div", {
  690. className: "U_MD_D_KO",
  691. "onmousedown": U.UF.C.closure(function (obj) {
  692. //防止拖动图标即打开了桌面应用
  693. U.MD.D.click(this, obj);
  694. }, [_studentDesktopIconInfo[i]]),
  695. "onclick": U.UF.C.closure(function (obj) {
  696. //防止拖动图标即打开了桌面应用
  697. U.MD.D.click(this, obj);
  698. }, [_studentDesktopIconInfo[i]])
  699. }, _frag); //
  700. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  701. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  702. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  703. }
  704. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  705. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  706. _content = $$("div", {
  707. className: "U_MD_D_KO",
  708. "onmousedown": U.UF.C.closure(function (obj) {
  709. //防止拖动图标即打开了桌面应用
  710. U.MD.D.click(this, obj);
  711. }, [_tcStudentDeskIconInfo[i]]),
  712. "onclick": U.UF.C.closure(function (obj) {
  713. //防止拖动图标即打开了桌面应用
  714. U.MD.D.click(this, obj);
  715. }, [_tcStudentDeskIconInfo[i]])
  716. }, _frag); //
  717. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  718. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  719. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  720. }
  721. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  722. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  723. _content = $$("div", {
  724. className: "U_MD_D_KO",
  725. "onmousedown": U.UF.C.closure(function (obj) {
  726. //防止拖动图标即打开了桌面应用
  727. U.MD.D.click(this, obj);
  728. }, [_szscStudentDeskIconInfo[i]]),
  729. "onclick": U.UF.C.closure(function (obj) {
  730. //防止拖动图标即打开了桌面应用
  731. U.MD.D.click(this, obj);
  732. }, [_szscStudentDeskIconInfo[i]])
  733. }, _frag); //
  734. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  735. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  736. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  737. }
  738. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  739. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  740. _content = $$("div", {
  741. className: "U_MD_D_KO",
  742. "onmousedown": U.UF.C.closure(function (obj) {
  743. //防止拖动图标即打开了桌面应用
  744. U.MD.D.click(this, obj);
  745. }, [_studentDesktopIconInfo3[i]]),
  746. "onclick": U.UF.C.closure(function (obj) {
  747. //防止拖动图标即打开了桌面应用
  748. U.MD.D.click(this, obj);
  749. }, [_studentDesktopIconInfo3[i]])
  750. }, _frag); //
  751. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  752. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  753. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  754. }
  755. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  756. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  757. _content = $$("div", {
  758. className: "U_MD_D_KO",
  759. "onmousedown": U.UF.C.closure(function (obj) {
  760. //防止拖动图标即打开了桌面应用
  761. U.MD.D.click(this, obj);
  762. }, [_studentDesktopIconInfo2[i]]),
  763. "onclick": U.UF.C.closure(function (obj) {
  764. //防止拖动图标即打开了桌面应用
  765. U.MD.D.click(this, obj);
  766. }, [_studentDesktopIconInfo2[i]])
  767. }, _frag); //
  768. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  769. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  770. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  771. }
  772. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  773. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  774. _content = $$("div", {
  775. className: "U_MD_D_KO",
  776. "onmousedown": U.UF.C.closure(function (obj) {
  777. //防止拖动图标即打开了桌面应用
  778. U.MD.D.click(this, obj);
  779. }, [_wanketeacherDesktopIconInfo[i]]),
  780. "onclick": U.UF.C.closure(function (obj) {
  781. //防止拖动图标即打开了桌面应用
  782. U.MD.D.click(this, obj);
  783. }, [_wanketeacherDesktopIconInfo[i]])
  784. }, _frag); //
  785. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  786. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  787. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  788. }
  789. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  790. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  791. _content = $$("div", {
  792. className: "U_MD_D_KO",
  793. "onmousedown": U.UF.C.closure(function (obj) {
  794. //防止拖动图标即打开了桌面应用
  795. U.MD.D.click(this, obj);
  796. }, [_wankeAdminDesktopIconInfo[i]]),
  797. "onclick": U.UF.C.closure(function (obj) {
  798. //防止拖动图标即打开了桌面应用
  799. U.MD.D.click(this, obj);
  800. }, [_wankeAdminDesktopIconInfo[i]])
  801. }, _frag); //
  802. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  803. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  804. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  805. }
  806. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  807. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  808. _content = $$("div", {
  809. className: "U_MD_D_KO",
  810. "onmousedown": U.UF.C.closure(function (obj) {
  811. //防止拖动图标即打开了桌面应用
  812. U.MD.D.click(this, obj);
  813. }, [_teacherDesktopIconInfo2[i]]),
  814. "onclick": U.UF.C.closure(function (obj) {
  815. //防止拖动图标即打开了桌面应用
  816. U.MD.D.click(this, obj);
  817. }, [_teacherDesktopIconInfo2[i]])
  818. }, _frag); //
  819. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  820. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  821. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  822. }
  823. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  824. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  825. _content = $$("div", {
  826. className: "U_MD_D_KO",
  827. "onmousedown": U.UF.C.closure(function (obj) {
  828. //防止拖动图标即打开了桌面应用
  829. U.MD.D.click(this, obj);
  830. }, [_lotechTeacherDeskIconInfo[i]]),
  831. "onclick": U.UF.C.closure(function (obj) {
  832. //防止拖动图标即打开了桌面应用
  833. U.MD.D.click(this, obj);
  834. }, [_lotechTeacherDeskIconInfo[i]])
  835. }, _frag); //
  836. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  837. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  838. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  839. }
  840. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  841. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  842. _content = $$("div", {
  843. className: "U_MD_D_KO",
  844. "onmousedown": U.UF.C.closure(function (obj) {
  845. //防止拖动图标即打开了桌面应用
  846. U.MD.D.click(this, obj);
  847. }, [_siesTeacherDeskIconInfo[i]]),
  848. "onclick": U.UF.C.closure(function (obj) {
  849. //防止拖动图标即打开了桌面应用
  850. U.MD.D.click(this, obj);
  851. }, [_siesTeacherDeskIconInfo[i]])
  852. }, _frag); //
  853. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  854. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  855. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  856. }
  857. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  858. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  859. _content = $$("div", {
  860. className: "U_MD_D_KO",
  861. "onmousedown": U.UF.C.closure(function (obj) {
  862. //防止拖动图标即打开了桌面应用
  863. U.MD.D.click(this, obj);
  864. }, [_longhuaTeacherDeskIconInfo[i]]),
  865. "onclick": U.UF.C.closure(function (obj) {
  866. //防止拖动图标即打开了桌面应用
  867. U.MD.D.click(this, obj);
  868. }, [_longhuaTeacherDeskIconInfo[i]])
  869. }, _frag); //
  870. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  871. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  872. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  873. }
  874. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  875. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  876. _content = $$("div", {
  877. className: "U_MD_D_KO",
  878. "onmousedown": U.UF.C.closure(function (obj) {
  879. //防止拖动图标即打开了桌面应用
  880. U.MD.D.click(this, obj);
  881. }, [_futianAdminDeskIconInfo[i]]),
  882. "onclick": U.UF.C.closure(function (obj) {
  883. //防止拖动图标即打开了桌面应用
  884. U.MD.D.click(this, obj);
  885. }, [_futianAdminDeskIconInfo[i]])
  886. }, _frag); //
  887. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  888. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  889. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  890. }
  891. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  892. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  893. _content = $$("div", {
  894. className: "U_MD_D_KO",
  895. "onmousedown": U.UF.C.closure(function (obj) {
  896. //防止拖动图标即打开了桌面应用
  897. U.MD.D.click(this, obj);
  898. }, [_futianTeacherDeskIconInfo[i]]),
  899. "onclick": U.UF.C.closure(function (obj) {
  900. //防止拖动图标即打开了桌面应用
  901. U.MD.D.click(this, obj);
  902. }, [_futianTeacherDeskIconInfo[i]])
  903. }, _frag); //
  904. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  905. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  906. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  907. }
  908. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  909. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  910. _content = $$("div", {
  911. className: "U_MD_D_KO",
  912. "onmousedown": U.UF.C.closure(function (obj) {
  913. //防止拖动图标即打开了桌面应用
  914. U.MD.D.click(this, obj);
  915. }, [_MingdeTeacherDeskIcon[i]]),
  916. "onclick": U.UF.C.closure(function (obj) {
  917. //防止拖动图标即打开了桌面应用
  918. U.MD.D.click(this, obj);
  919. }, [_MingdeTeacherDeskIcon[i]])
  920. }, _frag); //
  921. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  922. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  923. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  924. }
  925. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  926. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  927. _content = $$("div", {
  928. className: "U_MD_D_KO",
  929. "onmousedown": U.UF.C.closure(function (obj) {
  930. //防止拖动图标即打开了桌面应用
  931. U.MD.D.click(this, obj);
  932. }, [_lhsAdminDesktopIconInfo[i]]),
  933. "onclick": U.UF.C.closure(function (obj) {
  934. //防止拖动图标即打开了桌面应用
  935. U.MD.D.click(this, obj);
  936. }, [_lhsAdminDesktopIconInfo[i]])
  937. }, _frag); //
  938. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  939. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  940. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  941. }
  942. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  943. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  944. _content = $$("div", {
  945. className: "U_MD_D_KO",
  946. "onmousedown": U.UF.C.closure(function (obj) {
  947. //防止拖动图标即打开了桌面应用
  948. U.MD.D.click(this, obj);
  949. }, [_lhsteacherDesktopIconInfo[i]]),
  950. "onclick": U.UF.C.closure(function (obj) {
  951. //防止拖动图标即打开了桌面应用
  952. U.MD.D.click(this, obj);
  953. }, [_lhsteacherDesktopIconInfo[i]])
  954. }, _frag); //
  955. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  956. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  957. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  958. }
  959. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  960. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  961. _content = $$("div", {
  962. className: "U_MD_D_KO",
  963. "onmousedown": U.UF.C.closure(function (obj) {
  964. //防止拖动图标即打开了桌面应用
  965. U.MD.D.click(this, obj);
  966. }, [_zhoujiateacherDesktopIconInfo[i]]),
  967. "onclick": U.UF.C.closure(function (obj) {
  968. //防止拖动图标即打开了桌面应用
  969. U.MD.D.click(this, obj);
  970. }, [_zhoujiateacherDesktopIconInfo[i]])
  971. }, _frag); //
  972. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  973. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  974. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  975. }
  976. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  977. for (i = 0; i < _hanDeskIcon.length; i++) {
  978. _content = $$("div", {
  979. className: "U_MD_D_KO",
  980. "onmousedown": U.UF.C.closure(function (obj) {
  981. //防止拖动图标即打开了桌面应用
  982. U.MD.D.click(this, obj);
  983. }, [_hanDeskIcon[i]]),
  984. "onclick": U.UF.C.closure(function (obj) {
  985. //防止拖动图标即打开了桌面应用
  986. U.MD.D.click(this, obj);
  987. }, [_hanDeskIcon[i]])
  988. }, _frag); //
  989. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  990. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  991. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  992. }
  993. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  994. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  995. _content = $$("div", {
  996. className: "U_MD_D_KO",
  997. "onmousedown": U.UF.C.closure(function (obj) {
  998. //防止拖动图标即打开了桌面应用
  999. U.MD.D.click(this, obj);
  1000. }, [_orgStemDeskIcon[i]]),
  1001. "onclick": U.UF.C.closure(function (obj) {
  1002. //防止拖动图标即打开了桌面应用
  1003. U.MD.D.click(this, obj);
  1004. }, [_orgStemDeskIcon[i]])
  1005. }, _frag); //
  1006. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1007. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1008. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1009. }
  1010. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1011. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1012. _content = $$("div", {
  1013. className: "U_MD_D_KO",
  1014. "onmousedown": U.UF.C.closure(function (obj) {
  1015. //防止拖动图标即打开了桌面应用
  1016. U.MD.D.click(this, obj);
  1017. }, [_szulsDeskIcon[i]]),
  1018. "onclick": U.UF.C.closure(function (obj) {
  1019. //防止拖动图标即打开了桌面应用
  1020. U.MD.D.click(this, obj);
  1021. }, [_szulsDeskIcon[i]])
  1022. }, _frag); //
  1023. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1024. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1025. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1026. }
  1027. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1028. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1029. _content = $$("div", {
  1030. className: "U_MD_D_KO",
  1031. "onmousedown": U.UF.C.closure(function (obj) {
  1032. //防止拖动图标即打开了桌面应用
  1033. U.MD.D.click(this, obj);
  1034. }, [_orgDesktopIconInfo[i]]),
  1035. "onclick": U.UF.C.closure(function (obj) {
  1036. //防止拖动图标即打开了桌面应用
  1037. U.MD.D.click(this, obj);
  1038. }, [_orgDesktopIconInfo[i]])
  1039. }, _frag); //
  1040. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1041. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1042. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1043. }
  1044. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1045. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1046. _content = $$("div", {
  1047. className: "U_MD_D_KO",
  1048. "onmousedown": U.UF.C.closure(function (obj) {
  1049. //防止拖动图标即打开了桌面应用
  1050. U.MD.D.click(this, obj);
  1051. }, [_schoolDesktopIconInfo[i]]),
  1052. "onclick": U.UF.C.closure(function (obj) {
  1053. //防止拖动图标即打开了桌面应用
  1054. U.MD.D.click(this, obj);
  1055. }, [_schoolDesktopIconInfo[i]])
  1056. }, _frag); //
  1057. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1058. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1059. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1060. }
  1061. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1062. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1063. _content = $$("div", {
  1064. className: "U_MD_D_KO",
  1065. "onmousedown": U.UF.C.closure(function (obj) {
  1066. //防止拖动图标即打开了桌面应用
  1067. U.MD.D.click(this, obj);
  1068. }, [_GMteacherDesktopIconInfo[i]]),
  1069. "onclick": U.UF.C.closure(function (obj) {
  1070. //防止拖动图标即打开了桌面应用
  1071. U.MD.D.click(this, obj);
  1072. }, [_GMteacherDesktopIconInfo[i]])
  1073. }, _frag); //
  1074. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1075. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1076. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1077. }
  1078. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1079. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1080. _content = $$("div", {
  1081. className: "U_MD_D_KO",
  1082. "onmousedown": U.UF.C.closure(function (obj) {
  1083. //防止拖动图标即打开了桌面应用
  1084. U.MD.D.click(this, obj);
  1085. }, [_SONGteacherDesktopIconInfo[i]]),
  1086. "onclick": U.UF.C.closure(function (obj) {
  1087. //防止拖动图标即打开了桌面应用
  1088. U.MD.D.click(this, obj);
  1089. }, [_SONGteacherDesktopIconInfo[i]])
  1090. }, _frag); //
  1091. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1092. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1093. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1094. }
  1095. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1096. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1097. _content = $$("div", {
  1098. className: "U_MD_D_KO",
  1099. "onmousedown": U.UF.C.closure(function (obj) {
  1100. //防止拖动图标即打开了桌面应用
  1101. U.MD.D.click(this, obj);
  1102. }, [_GMstudentDesktopIconInfo[i]]),
  1103. "onclick": U.UF.C.closure(function (obj) {
  1104. //防止拖动图标即打开了桌面应用
  1105. U.MD.D.click(this, obj);
  1106. }, [_GMstudentDesktopIconInfo[i]])
  1107. }, _frag); //
  1108. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1109. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1110. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1111. }
  1112. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1113. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1114. _content = $$("div", {
  1115. className: "U_MD_D_KO",
  1116. "onmousedown": U.UF.C.closure(function (obj) {
  1117. //防止拖动图标即打开了桌面应用
  1118. U.MD.D.click(this, obj);
  1119. }, [_tcTeacherDeskIconInfo[i]]),
  1120. "onclick": U.UF.C.closure(function (obj) {
  1121. //防止拖动图标即打开了桌面应用
  1122. U.MD.D.click(this, obj);
  1123. }, [_tcTeacherDeskIconInfo[i]])
  1124. }, _frag); //
  1125. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1126. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1127. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1128. }
  1129. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1130. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1131. _content = $$("div", {
  1132. className: "U_MD_D_KO",
  1133. "onmousedown": U.UF.C.closure(function (obj) {
  1134. //防止拖动图标即打开了桌面应用
  1135. U.MD.D.click(this, obj);
  1136. }, [_tcOrganizerDeskIconInfo[i]]),
  1137. "onclick": U.UF.C.closure(function (obj) {
  1138. //防止拖动图标即打开了桌面应用
  1139. U.MD.D.click(this, obj);
  1140. }, [_tcOrganizerDeskIconInfo[i]])
  1141. }, _frag); //
  1142. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1143. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1144. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1145. }
  1146. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1147. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1148. _content = $$("div", {
  1149. className: "U_MD_D_KO",
  1150. "onmousedown": U.UF.C.closure(function (obj) {
  1151. //防止拖动图标即打开了桌面应用
  1152. U.MD.D.click(this, obj);
  1153. }, [_szscTeacherDeskIconInfo[i]]),
  1154. "onclick": U.UF.C.closure(function (obj) {
  1155. //防止拖动图标即打开了桌面应用
  1156. U.MD.D.click(this, obj);
  1157. }, [_szscTeacherDeskIconInfo[i]])
  1158. }, _frag); //
  1159. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1160. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1161. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1162. }
  1163. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1164. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1165. _content = $$("div", {
  1166. className: "U_MD_D_KO",
  1167. "onmousedown": U.UF.C.closure(function (obj) {
  1168. //防止拖动图标即打开了桌面应用
  1169. U.MD.D.click(this, obj);
  1170. }, [_szscOrganizerDeskIconInfo[i]]),
  1171. "onclick": U.UF.C.closure(function (obj) {
  1172. //防止拖动图标即打开了桌面应用
  1173. U.MD.D.click(this, obj);
  1174. }, [_szscOrganizerDeskIconInfo[i]])
  1175. }, _frag); //
  1176. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1177. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1178. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1179. }
  1180. } else {
  1181. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1182. _content = $$("div", {
  1183. className: "U_MD_D_KO",
  1184. "onmousedown": U.UF.C.closure(function (obj) {
  1185. //防止拖动图标即打开了桌面应用
  1186. U.MD.D.click(this, obj);
  1187. }, [_teacherDesktopIconInfo[i]]),
  1188. "onclick": U.UF.C.closure(function (obj) {
  1189. //防止拖动图标即打开了桌面应用
  1190. U.MD.D.click(this, obj);
  1191. }, [_teacherDesktopIconInfo[i]])
  1192. }, _frag); //
  1193. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1194. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1195. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1196. }
  1197. }
  1198. } else {
  1199. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1200. _content = $$("div", {
  1201. className: "U_MD_D_KO",
  1202. style: { 'width': '124px', 'height': '145px' },
  1203. "onmousedown": U.UF.C.closure(function (obj) {
  1204. //防止拖动图标即打开了桌面应用
  1205. U.MD.D.click(this, obj);
  1206. }, [_easyDesktopIconInfo[i]]),
  1207. "onclick": U.UF.C.closure(function (obj) {
  1208. //防止拖动图标即打开了桌面应用
  1209. U.MD.D.click(this, obj);
  1210. }, [_easyDesktopIconInfo[i]])
  1211. }, _frag); //
  1212. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1213. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1214. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1215. }
  1216. }
  1217. if (type == 1) {
  1218. //加载好后给图标定位
  1219. U.MD.D.iconPostion($(_frag).Child());
  1220. } else {
  1221. //加载好后给图标定位
  1222. U.MD.D.iconPostion2($(_frag).Child());
  1223. }
  1224. //把图标加载到页面
  1225. el.appendChild(_frag);
  1226. }
  1227. /**
  1228. * 显示任务栏
  1229. *
  1230. * @param {element} 桌面元素
  1231. */
  1232. U.MD.D.I.displayTaskbar = function (el) {
  1233. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1234. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1235. //任务栏位置变化
  1236. U.selectEl(el).css({ "bottom": "0px" });
  1237. //桌面位置变话
  1238. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1239. }
  1240. }
  1241. //#region 桌面图标拖动逻辑
  1242. /**
  1243. * 桌面排列图标
  1244. *
  1245. * @param {element} 桌面元素
  1246. * @param {object} 上下相距的距离
  1247. * @param {object} 左右相距的距离
  1248. * @return {object} 命名空间
  1249. */
  1250. U.MD.D.iconPostion = function (childs, top, left) {
  1251. var i; //用于循环处理
  1252. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1253. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1254. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1255. for (i = 0; i < childs.length; i++) {
  1256. //如果竖排top超过了范围处理
  1257. if (top + 95 > US.height - 10) {
  1258. //left超过了页面范围处理,则向上重叠打印处理
  1259. if ((left + 180) > US.width) {
  1260. top -= 110;
  1261. left -= 90;
  1262. }
  1263. //没有超过范围,那么left+90添加到下一个竖排打印
  1264. else {
  1265. left += 90;
  1266. top = 15;
  1267. };
  1268. }
  1269. //给图标的位置赋值
  1270. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1271. if (i < childs.length - 1) {
  1272. //页面图标每次向下加95
  1273. top += 95;
  1274. }
  1275. }
  1276. //返回最后调用的图标的位置
  1277. return [top, left];
  1278. }
  1279. /**
  1280. * 桌面排列图标
  1281. *
  1282. * @param {element} 桌面元素
  1283. * @param {object} 上下相距的距离
  1284. * @param {object} 左右相距的距离
  1285. * @return {object} 命名空间
  1286. */
  1287. U.MD.D.iconPostion2 = function (childs, top, left) {
  1288. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1289. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1290. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1291. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1292. for (i = 0; i < childs.length; i++) {
  1293. //如果竖排top超过了范围处理
  1294. if (left + 150 > US.width - 10) {
  1295. //left超过了页面范围处理,则向上重叠打印处理
  1296. if ((top + 180) > US.Height) {
  1297. top -= 150;
  1298. left -= 150;
  1299. }
  1300. //没有超过范围,那么left+90添加到下一个竖排打印
  1301. else {
  1302. top += 150;
  1303. left = ol;
  1304. };
  1305. }
  1306. //给图标的位置赋值
  1307. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1308. if (i < childs.length - 1) {
  1309. //页面图标每次向下加95
  1310. left += 150;
  1311. }
  1312. }
  1313. //返回最后调用的图标的位置
  1314. return [top, left];
  1315. }
  1316. /**
  1317. * 桌面点击事件逻辑
  1318. *
  1319. * @param {element} 桌面元素
  1320. * @param {object} 上下相距的距离
  1321. * @param {object} 左右相距的距离
  1322. * @return {object} 命名空间
  1323. */
  1324. U.MD.D.click = function (el, obj) {
  1325. var _buttonnumber = event.button; //点击的按钮的事件值
  1326. var _userinfo = US.userInfo;
  1327. U.UF.EV.stopBubble(); //阻止向上冒泡
  1328. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1329. if (_buttonnumber < 2) {
  1330. //如果是click事件的处理
  1331. if (event.type == "click") {
  1332. //如果元素在mousemove事件中没有移动则出发click事件
  1333. if (!U.MD.D.I.IsDrag) {
  1334. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1335. U.alert("请先登录您的账号!");
  1336. setTimeout(() => {
  1337. U.MD.U.L.login();
  1338. }, 2000);
  1339. } else {
  1340. //打开应用处理
  1341. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1342. }
  1343. }
  1344. }
  1345. //如果是mouse事件的处理
  1346. else {
  1347. if (US.Config.type == '1') {
  1348. //拖动处理,添加拖动和拖动结束事件
  1349. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1350. }
  1351. }
  1352. U.MD.D.I.IsDrag = false;
  1353. }
  1354. }
  1355. /**
  1356. * 拖动的处理
  1357. *
  1358. */
  1359. U.MD.D.iconMove = function () {
  1360. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1361. U.MD.D.I.IsDrag = true;
  1362. }
  1363. /**
  1364. * 拖动结束后,这里是定位处理,以网状的形式定位
  1365. *
  1366. * @param {element} 拖动的元素
  1367. * @return {object} 命名空间
  1368. */
  1369. U.MD.D.iconUp = function (el) {
  1370. var _top = 15,
  1371. _left = 20,
  1372. _margin,
  1373. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1374. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1375. if (_positioninfo["OT"] > 15) {
  1376. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1377. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1378. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1379. }
  1380. if (_positioninfo["OL"] > 20) {
  1381. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1382. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1383. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1384. }
  1385. //while循环判断么一个重叠的元素
  1386. do {
  1387. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1388. _top = _positioninfo[0] + 95; //得到定位后的top
  1389. _left = _positioninfo[1]; //得到定位后的left
  1390. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1391. }
  1392. /**
  1393. * 判断拖动后图标是否重叠
  1394. *
  1395. * @param {element} 拖动的元素
  1396. * @param {element} 桌面所有的元素
  1397. * @param {array} 拖动元素的位置
  1398. ----------[0] 上 top
  1399. ----------[1] 左 left
  1400. * @return {object} 命名空间
  1401. */
  1402. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1403. //循环所有的图标
  1404. for (var i = 0; i < childs.length; i++) {
  1405. //判断有没有和该图标诶子重叠的元素
  1406. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1407. return childs[i]; //如果有返回
  1408. }
  1409. }
  1410. }
  1411. //#endregion
  1412. //#endregion
  1413. //#region 桌面应用
  1414. /**
  1415. * 打开应用
  1416. *
  1417. * @param {string} 类型
  1418. -----------------Disk 网盘系统
  1419. -----------------PDisk 学习系统网盘
  1420. -----------------Poto 图片
  1421. -----------------Video 视频
  1422. -----------------Music 音乐
  1423. -----------------Word word
  1424. -----------------Excel excel
  1425. -----------------Txt 记事本
  1426. -----------------PB 学习系统
  1427. -----------------Blog 朋友圈系统
  1428. -----------------FTP ftp系统
  1429. -----------------Group 好友群
  1430. -----------------SY 首页系统
  1431. -----------------Set 个人设置
  1432. -----------------XSet 系统设置
  1433. -----------------App 我们所有的app
  1434. -----------------BC c.1473.cn 平台
  1435. -----------------CWeb d.1473.cn 变成平台
  1436. -----------------其他的外联系统 我们统一用iframe打开
  1437. * @param {array} 类型
  1438. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1439. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1440. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1441. 如果第一个参数为其他,则无第二个参数
  1442. * @returns {array}
  1443. */
  1444. window.addEventListener('message', function (e) { // 监听 message 事件
  1445. // alert(e.data.type);
  1446. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1447. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1448. //3是展示全部阶段 2学生 1老师 4专家
  1449. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1450. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1451. //3是展示全部阶段 2学生 1老师 4专家
  1452. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1453. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1454. //3是展示全部阶段 2学生 1老师 4专家
  1455. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1456. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1457. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1458. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1459. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1460. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1461. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1462. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1463. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1464. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1465. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1466. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1467. //3是展示全部阶段 2学生 1老师 4专家
  1468. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1469. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1470. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1471. U.MD.D.I.selectUser();
  1472. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1473. var _formel = document.getElementById("study");
  1474. U.UF.F.windowZooming(_formel);
  1475. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1476. var _formel = document.getElementById("studyDetail");
  1477. U.UF.F.windowZooming(_formel);
  1478. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1479. var _formel = document.getElementById("studyDetail");
  1480. U.UF.F.windowZooming(_formel);
  1481. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1482. var _formel = document.getElementById("studentStudy");
  1483. U.UF.F.windowZooming(_formel);
  1484. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1485. // var _formel = document.getElementById("study");
  1486. //如果最大化了,那么就把他缩小
  1487. // if (_formel.ismaximize) {
  1488. // return;
  1489. // }
  1490. // U.UF.F.windowZooming(_formel);
  1491. // U.UF.F.topWindow(_formel);
  1492. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1493. // var _formel = document.getElementById("studyDetail");
  1494. //如果最大化了,那么就把他缩小
  1495. // if (_formel.ismaximize) {
  1496. // return;
  1497. // }
  1498. // U.UF.F.windowZooming(_formel);
  1499. // U.UF.F.topWindow(_formel);
  1500. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1501. // var _formel = document.getElementById("studentStudy");
  1502. // if (_formel.ismaximize) {
  1503. // return;
  1504. // }
  1505. // U.UF.F.windowZooming(_formel);
  1506. // U.UF.F.topWindow(_formel);
  1507. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1508. var _formel = document.getElementById("study");
  1509. // if (_formel.ismaximize) {
  1510. // return;
  1511. // }
  1512. // U.UF.F.windowZooming(_formel);
  1513. U.UF.F.topWindow(_formel);
  1514. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1515. var _formel = document.getElementById("studentIndex");
  1516. U.UF.F.windowZooming(_formel);
  1517. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1518. var _formel = document.getElementById("studyDetailS");
  1519. U.UF.F.windowZooming(_formel);
  1520. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1521. var _formel = document.getElementById("studioIndex");
  1522. U.UF.F.windowZooming(_formel);
  1523. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1524. var _formel = document.getElementById("studyDetailStudio");
  1525. U.UF.F.windowZooming(_formel);
  1526. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1527. var _formel = document.getElementById("studyDetailStudio");
  1528. U.UF.F.windowZooming(_formel);
  1529. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1530. var _formel = document.getElementById("studyDetailNT");
  1531. U.UF.F.windowZooming(_formel);
  1532. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1533. var _formel = document.getElementById("studyDetailS");
  1534. U.UF.F.windowZooming(_formel);
  1535. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1536. var _formel = document.getElementById("studyDetailS");
  1537. U.UF.F.topWindow(_formel);
  1538. } else if (e.data.tools && e.data.tools == "1") {
  1539. // U.MD.D.I.openApplication("whiteboard")
  1540. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1541. } else if (e.data.tools && e.data.tools == "2") {
  1542. U.MD.D.I.openApplication("note")
  1543. } else if (e.data.tools && e.data.tools == "3") {
  1544. // U.MD.D.I.openApplication("mind")
  1545. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1546. } else if (e.data.tools && e.data.tools == "4") {
  1547. U.MD.D.I.openApplication("investigation")
  1548. } else if (e.data.tools && e.data.tools == "6") {
  1549. // U.MD.D.I.openApplication("doc")
  1550. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1551. } else if (e.data.tools && e.data.tools == "7") {
  1552. // U.MD.D.I.openApplication("mindNetwork")
  1553. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1554. } else if (e.data.tools && e.data.tools == "8") {
  1555. U.MD.D.I.openApplication("library")
  1556. } else if (e.data.tools && e.data.tools == "17") {
  1557. U.MD.D.I.openApplication("stuLibrary")
  1558. } else if (e.data.tools && e.data.tools == "18") {
  1559. U.MD.D.I.openApplication("train")
  1560. } else if (e.data.tools && e.data.tools == "21") {
  1561. U.MD.D.I.openApplication("program")
  1562. } else if (e.data.tools && e.data.tools == "22") {
  1563. U.MD.D.I.openApplication("AIprogram2")
  1564. } else if (e.data.tools && e.data.tools == "23") {
  1565. U.MD.D.I.openApplication("Pythonprogram")
  1566. } else if (e.data.tools && e.data.tools == "24") {
  1567. U.MD.D.I.openApplication("AIprogram")
  1568. } else if (e.data.tools && e.data.tools == "25") {
  1569. U.MD.D.I.openApplication("sys")
  1570. } else if (e.data.tools && e.data.tools == "26") {
  1571. // U.MD.D.I.openApplication("courseDesign")
  1572. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1573. } else if (e.data.tools && e.data.tools == "31") {
  1574. U.MD.D.I.openApplication("netWorkPanel")
  1575. } else if (e.data.tools && e.data.tools == "32") {
  1576. U.MD.D.I.openApplication("codeEdit")
  1577. } else if (e.data.tools && e.data.tools == "57") {
  1578. U.MD.D.I.openApplication("CocoPi")
  1579. } else if (e.data.tools && e.data.tools == "63") {
  1580. U.MD.D.I.openApplication("Wood")
  1581. } else if (e.data.tools && e.data.tools == "58") {
  1582. U.MD.D.I.openApplication("car")
  1583. } else if (e.data.tools && e.data.tools == "59") {
  1584. U.MD.D.I.openApplication("lineSearch")
  1585. } else if (e.data.tools && e.data.tools == "60") {
  1586. U.MD.D.I.openApplication("deepLearning")
  1587. } else if (e.data.tools && e.data.tools == "61") {
  1588. U.MD.D.I.openApplication("allHistory")
  1589. } else if (e.data.tools && e.data.tools == "28") {
  1590. U.MD.D.I.openApplication("translation")
  1591. } else if (e.data.tools && e.data.tools == "37") {
  1592. U.MD.D.I.openApplication("mohe")
  1593. } else if (e.data.tools && e.data.tools == "38") {
  1594. U.MD.D.I.openApplication("24game")
  1595. } else if (e.data.tools && e.data.tools == "39") {
  1596. U.MD.D.I.openApplication("GeoGebra")
  1597. } else if (e.data.tools && e.data.tools == "43") {
  1598. U.MD.D.I.openApplication("studentEvaluate")
  1599. } else if (e.data.tools && e.data.tools == "44") {
  1600. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1601. } else if (e.data.tools && e.data.tools == "46") {
  1602. U.MD.D.I.openApplication("project")
  1603. } else if (e.data.tools && e.data.tools == "1s") {
  1604. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1605. } else if (e.data.tools && e.data.tools == "3s") {
  1606. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1607. } else if (e.data.tools && e.data.tools == "6s") {
  1608. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1609. } else if (e.data.tools && e.data.tools == "1studio") {
  1610. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1611. } else if (e.data.tools && e.data.tools == "3studio") {
  1612. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1613. } else if (e.data.tools && e.data.tools == "6studio") {
  1614. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1615. } else if (e.data.tools && e.data.tools == "3y") {
  1616. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1617. } else if (e.data.tools && e.data.tools == "1y") {
  1618. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1619. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1620. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1621. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1622. U.MD.D.I.openApplication("AIAnalyse")
  1623. } else if (e.data.tools && e.data.tools == "1teacher") {
  1624. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1625. } else if (e.data.tools && e.data.tools == "3teacher") {
  1626. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1627. } else if (e.data.tools && e.data.tools == "7teacher") {
  1628. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1629. } else if (e.data.tools && e.data.tools == "1teacherE") {
  1630. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1631. } else if (e.data.tools && e.data.tools == "3teacherE") {
  1632. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1633. } else if (e.data.tools && e.data.tools == "1E") {
  1634. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1635. } else if (e.data.tools && e.data.tools == "3E") {
  1636. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1637. }
  1638. });
  1639. U.MD.D.I.selectUser = function () {
  1640. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1641. if (res.value[0].length > 0) {
  1642. US.userInfo = res.value[0][0];
  1643. $(".userName")[0].innerHTML = US.userInfo.username;
  1644. }
  1645. }, [], { "type": "GET", "withCredentials": true });
  1646. }
  1647. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1648. var _userinfo = US.userInfo, //登录用户信息
  1649. _userid = US.userInfo.userid, //登录用户id
  1650. _oid = _userinfo.organizeid,
  1651. _type = US.userInfo.type,
  1652. _org = US.userInfo.org,
  1653. _role = US.userInfo.role,
  1654. _classId = US.userInfo.classid;
  1655. if (_type == 4) {
  1656. tType = 4
  1657. }
  1658. switch (str) {
  1659. case "studyDetailNT"://无终端模式
  1660. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1661. setTimeout(() => {
  1662. U.MD.U.L.login();
  1663. }, 2000);
  1664. } else {
  1665. _formdiv = new U.UF.UI.form(
  1666. "课程详情",
  1667. $$("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 }), {
  1668. "id": "studyDetailNT",
  1669. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1670. "onresize": function () { }
  1671. }, {
  1672. closecallback: function () { }
  1673. }, { "style": { "height": "36px" } }).form; //创建窗体
  1674. _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); } }
  1675. break;
  1676. }
  1677. case "studyDetail":
  1678. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1679. setTimeout(() => {
  1680. U.MD.U.L.login();
  1681. }, 2000);
  1682. } else {
  1683. _formdiv = new U.UF.UI.form(
  1684. "课程详情",
  1685. $$("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 }), {
  1686. "id": "studyDetail",
  1687. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1688. "onresize": function () { }
  1689. }, {
  1690. closecallback: function () { }
  1691. }, { "style": { "height": "36px" } }).form; //创建窗体
  1692. _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); } }
  1693. break;
  1694. }
  1695. case "studyDetailS":
  1696. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1697. setTimeout(() => {
  1698. U.MD.U.L.login();
  1699. }, 2000);
  1700. } else {
  1701. _formdiv = new U.UF.UI.form(
  1702. "项目详情",
  1703. $$("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 }), {
  1704. "id": "studyDetailS",
  1705. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1706. "onresize": function () { }
  1707. }, {
  1708. closecallback: function () { }
  1709. }, { "style": { "height": "36px" } }).form; //创建窗体
  1710. _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); } }
  1711. break;
  1712. }
  1713. case "studyDetailStudio":
  1714. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1715. setTimeout(() => {
  1716. U.MD.U.L.login();
  1717. }, 2000);
  1718. } else {
  1719. _formdiv = new U.UF.UI.form(
  1720. "工作详情",
  1721. $$("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 }), {
  1722. "id": "studyDetailStudio",
  1723. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1724. "onresize": function () { }
  1725. }, {
  1726. closecallback: function () { }
  1727. }, { "style": { "height": "36px" } }).form; //创建窗体
  1728. _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); } }
  1729. break;
  1730. }
  1731. case "studyDetailS5":
  1732. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1733. setTimeout(() => {
  1734. U.MD.U.L.login();
  1735. }, 2000);
  1736. } else {
  1737. _formdiv = new U.UF.UI.form(
  1738. "项目详情",
  1739. $$("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 }), {
  1740. "id": "studyDetailS",
  1741. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1742. "onresize": function () { }
  1743. }, {
  1744. closecallback: function () { }
  1745. }, { "style": { "height": "36px" } }).form; //创建窗体
  1746. _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); } }
  1747. break;
  1748. }
  1749. case "studyDetailGM":
  1750. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1751. setTimeout(() => {
  1752. U.MD.U.L.login();
  1753. }, 2000);
  1754. } else {
  1755. _formdiv = new U.UF.UI.form(
  1756. "课程详情",
  1757. $$("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 }), {
  1758. "id": "studyDetail",
  1759. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1760. "onresize": function () { }
  1761. }, {
  1762. closecallback: function () { }
  1763. }, { "style": { "height": "36px" } }).form; //创建窗体
  1764. _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); } }
  1765. break;
  1766. }
  1767. case "hanUrl":
  1768. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1769. setTimeout(() => {
  1770. U.MD.U.L.login();
  1771. }, 2000);
  1772. } else {
  1773. _formdiv = new U.UF.UI.form(
  1774. "汉字宫",
  1775. $$("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" }), {
  1776. "id": "hanUrl",
  1777. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1778. "onresize": function () { }
  1779. }, {
  1780. closecallback: function () { }
  1781. }, { "style": { "height": "36px" } }).form; //创建窗体
  1782. _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); } }
  1783. break;
  1784. }
  1785. }
  1786. }
  1787. U.MD.D.I.openApplication = function (str, obj, info) {
  1788. obj = obj || {};
  1789. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1790. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1791. _userinfo = US.userInfo, //登录用户信息
  1792. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1793. _oid = obj.organizeid || _userinfo.organizeid,
  1794. _type = US.userInfo.type,
  1795. _org = US.userInfo.org,
  1796. _role = US.userInfo.role,
  1797. _classId = US.userInfo.classid,
  1798. _TscreenType = 1
  1799. _screenType = 2,
  1800. _SscreenType = 3;
  1801. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1802. return;
  1803. }
  1804. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1805. switch (str) {
  1806. case "studnetProject": //好友打开
  1807. _formdiv = new U.UF.UI.form(
  1808. "我的项目",
  1809. $$("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 }), {
  1810. "id": "studnetProject",
  1811. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1812. "onresize": function () { }
  1813. }, {
  1814. closecallback: function () { }
  1815. }, { "style": { "height": "36px" } }).form; //创建窗体
  1816. _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); } }
  1817. break;
  1818. case "studentEvaluate": //好友打开
  1819. _formdiv = new U.UF.UI.form(
  1820. "我的评价",
  1821. $$("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 }), {
  1822. "id": "studentEvaluate",
  1823. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1824. "onresize": function () { }
  1825. }, {
  1826. closecallback: function () { }
  1827. }, { "style": { "height": "36px" } }).form; //创建窗体
  1828. _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); } }
  1829. break;
  1830. case "my":
  1831. _formdiv = new U.UF.UI.form(
  1832. "我的资料",
  1833. $$("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 }), {
  1834. "id": "my",
  1835. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1836. "onresize": function () { }
  1837. }, {
  1838. closecallback: function () { }
  1839. }, { "style": { "height": "36px" } }).form; //创建窗体
  1840. _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); } }
  1841. break;
  1842. case "program":
  1843. _formdiv = new U.UF.UI.form(
  1844. "编程平台",
  1845. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1846. "id": "program",
  1847. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1848. "onresize": function () { }
  1849. }, {
  1850. closecallback: function () { }
  1851. }, { "style": { "height": "36px" } }).form; //创建窗体
  1852. _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); } }
  1853. break;
  1854. case "library":
  1855. _formdiv = new U.UF.UI.form(
  1856. "素材库",
  1857. $$("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 }), {
  1858. "id": "library",
  1859. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1860. "onresize": function () { }
  1861. }, {
  1862. closecallback: function () { }
  1863. }, { "style": { "height": "36px" } }).form; //创建窗体
  1864. _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); } }
  1865. break;
  1866. case "whiteboard":
  1867. _formdiv = new U.UF.UI.form(
  1868. "电子白板",
  1869. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1870. "id": "whiteboard",
  1871. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1872. "onresize": function () { }
  1873. }, {
  1874. closecallback: function () { }
  1875. }, { "style": { "height": "36px" } }).form; //创建窗体
  1876. _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); } }
  1877. break;
  1878. case "investigation":
  1879. _formdiv = new U.UF.UI.form(
  1880. "问卷调查",
  1881. $$("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 }), {
  1882. "id": "investigation",
  1883. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1884. "onresize": function () { }
  1885. }, {
  1886. closecallback: function () { }
  1887. }, { "style": { "height": "36px" } }).form; //创建窗体
  1888. _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); } }
  1889. break;
  1890. case "note":
  1891. _formdiv = new U.UF.UI.form(
  1892. "便签分类",
  1893. $$("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 }), {
  1894. "id": "note",
  1895. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1896. "onresize": function () { }
  1897. }, {
  1898. closecallback: function () { }
  1899. }, { "style": { "height": "36px" } }).form; //创建窗体
  1900. _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); } }
  1901. break;
  1902. // case "score":
  1903. // _formdiv = new U.UF.UI.form(
  1904. // "量规评分",
  1905. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  1906. // "id": "score",
  1907. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1908. // "onresize": function() {}
  1909. // }, {
  1910. // closecallback: function() {}
  1911. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1912. // _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); } }
  1913. // break;
  1914. case "mind":
  1915. _formdiv = new U.UF.UI.form(
  1916. "思维导图",
  1917. $$("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"
  1918. "id": "mind",
  1919. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1920. "onresize": function () { }
  1921. }, {
  1922. closecallback: function () { }
  1923. }, { "style": { "height": "36px" } }).form; //创建窗体
  1924. _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); } }
  1925. break;
  1926. case "doc":
  1927. // U.MD.D.I.isRoom();
  1928. _formdiv = new U.UF.UI.form(
  1929. "协同文档",
  1930. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1931. "id": "doc",
  1932. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1933. "onresize": function () { }
  1934. }, {
  1935. closecallback: function () { }
  1936. }, { "style": { "height": "36px" } }).form; //创建窗体
  1937. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1938. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1939. // })
  1940. _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); } }
  1941. break;
  1942. case "studentStudy":
  1943. _formdiv = new U.UF.UI.form(
  1944. "课程中心",
  1945. $$("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
  1946. "id": "studentStudy",
  1947. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1948. "onresize": function () { }
  1949. }, {
  1950. closecallback: function () { }
  1951. }, { "style": { "height": "36px" } }).form; //创建窗体
  1952. _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); } }
  1953. break;
  1954. case "train": //好友打开
  1955. _formdiv = new U.UF.UI.form(
  1956. "训练平台",
  1957. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1958. "id": "train",
  1959. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1960. "onresize": function () { }
  1961. }, {
  1962. closecallback: function () { }
  1963. }, { "style": { "height": "36px" } }).form; //创建窗体
  1964. _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); } }
  1965. break;
  1966. case "mindNetwork": //好友打开
  1967. _formdiv = new U.UF.UI.form(
  1968. "思维网格",
  1969. $$("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 }), {
  1970. "id": "mindNetwork",
  1971. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1972. "onresize": function () { }
  1973. }, {
  1974. closecallback: function () { }
  1975. }, { "style": { "height": "36px" } }).form; //创建窗体
  1976. _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); } }
  1977. break;
  1978. case "studentClassRoom": //好友打开
  1979. _formdiv = new U.UF.UI.form(
  1980. "实时课堂",
  1981. $$("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 }), {
  1982. "id": "studentClassRoom",
  1983. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1984. "onresize": function () { }
  1985. }, {
  1986. closecallback: function () { }
  1987. }, { "style": { "height": "36px" } }).form; //创建窗体
  1988. _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); } }
  1989. setTimeout(() => {
  1990. U.UF.F.windowZooming(_formdiv)
  1991. }, 0);
  1992. break;
  1993. }
  1994. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1995. switch (str) {
  1996. case "studnetProject": //好友打开
  1997. _formdiv = new U.UF.UI.form(
  1998. "我的项目",
  1999. $$("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 }), {
  2000. "id": "studnetProject",
  2001. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2002. "onresize": function () { }
  2003. }, {
  2004. closecallback: function () { }
  2005. }, { "style": { "height": "36px" } }).form; //创建窗体
  2006. _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); } }
  2007. break;
  2008. case "studentEvaluate": //好友打开
  2009. _formdiv = new U.UF.UI.form(
  2010. "我的评价",
  2011. $$("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 }), {
  2012. "id": "studentEvaluate",
  2013. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2014. "onresize": function () { }
  2015. }, {
  2016. closecallback: function () { }
  2017. }, { "style": { "height": "36px" } }).form; //创建窗体
  2018. _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); } }
  2019. break;
  2020. case "my":
  2021. _formdiv = new U.UF.UI.form(
  2022. "我的资料",
  2023. $$("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 }), {
  2024. "id": "my",
  2025. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2026. "onresize": function () { }
  2027. }, {
  2028. closecallback: function () { }
  2029. }, { "style": { "height": "36px" } }).form; //创建窗体
  2030. _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); } }
  2031. break;
  2032. case "program":
  2033. _formdiv = new U.UF.UI.form(
  2034. "编程平台",
  2035. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2036. "id": "program",
  2037. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2038. "onresize": function () { }
  2039. }, {
  2040. closecallback: function () { }
  2041. }, { "style": { "height": "36px" } }).form; //创建窗体
  2042. _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); } }
  2043. break;
  2044. case "library":
  2045. _formdiv = new U.UF.UI.form(
  2046. "素材库",
  2047. $$("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 }), {
  2048. "id": "library",
  2049. "style": { "width": "90%", "height": "90%", "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/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2055. break;
  2056. case "whiteboard":
  2057. _formdiv = new U.UF.UI.form(
  2058. "电子白板",
  2059. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2060. "id": "whiteboard",
  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/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2067. break;
  2068. case "investigation":
  2069. _formdiv = new U.UF.UI.form(
  2070. "问卷调查",
  2071. $$("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 }), {
  2072. "id": "investigation",
  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/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2079. break;
  2080. case "note":
  2081. _formdiv = new U.UF.UI.form(
  2082. "便签分类",
  2083. $$("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 }), {
  2084. "id": "note",
  2085. "style": { "width": "20%", "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/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2091. break;
  2092. // case "score":
  2093. // _formdiv = new U.UF.UI.form(
  2094. // "量规评分",
  2095. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2096. // "id": "score",
  2097. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2098. // "onresize": function() {}
  2099. // }, {
  2100. // closecallback: function() {}
  2101. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2102. // _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); } }
  2103. // break;
  2104. case "mind":
  2105. _formdiv = new U.UF.UI.form(
  2106. "思维导图",
  2107. $$("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"
  2108. "id": "mind",
  2109. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2110. "onresize": function () { }
  2111. }, {
  2112. closecallback: function () { }
  2113. }, { "style": { "height": "36px" } }).form; //创建窗体
  2114. _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); } }
  2115. break;
  2116. case "doc":
  2117. // U.MD.D.I.isRoom();
  2118. _formdiv = new U.UF.UI.form(
  2119. "协同文档",
  2120. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2121. "id": "doc",
  2122. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2123. "onresize": function () { }
  2124. }, {
  2125. closecallback: function () { }
  2126. }, { "style": { "height": "36px" } }).form; //创建窗体
  2127. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2128. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2129. })
  2130. _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); } }
  2131. break;
  2132. case "train": //好友打开
  2133. _formdiv = new U.UF.UI.form(
  2134. "训练平台",
  2135. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2136. "id": "train",
  2137. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2138. "onresize": function () { }
  2139. }, {
  2140. closecallback: function () { }
  2141. }, { "style": { "height": "36px" } }).form; //创建窗体
  2142. _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); } }
  2143. break;
  2144. case "studentStudy":
  2145. _formdiv = new U.UF.UI.form(
  2146. "课程中心",
  2147. $$("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
  2148. "id": "studentStudy",
  2149. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2150. "onresize": function () { }
  2151. }, {
  2152. closecallback: function () { }
  2153. }, { "style": { "height": "36px" } }).form; //创建窗体
  2154. _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); } }
  2155. break;
  2156. case "mindNetwork": //好友打开
  2157. _formdiv = new U.UF.UI.form(
  2158. "思维网格",
  2159. $$("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 }), {
  2160. "id": "mindNetwork",
  2161. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2162. "onresize": function () { }
  2163. }, {
  2164. closecallback: function () { }
  2165. }, { "style": { "height": "36px" } }).form; //创建窗体
  2166. _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); } }
  2167. break;
  2168. case "studentClassRoom": //好友打开
  2169. _formdiv = new U.UF.UI.form(
  2170. "实时课堂",
  2171. $$("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 }), {
  2172. "id": "studentClassRoom",
  2173. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2174. "onresize": function () { }
  2175. }, {
  2176. closecallback: function () { }
  2177. }, { "style": { "height": "36px" } }).form; //创建窗体
  2178. _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); } }
  2179. setTimeout(() => {
  2180. U.UF.F.windowZooming(_formdiv)
  2181. }, 0);
  2182. break;
  2183. }
  2184. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2185. //选择应用处理
  2186. switch (str) {
  2187. case "project": //好友打开
  2188. _formdiv = new U.UF.UI.form(
  2189. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2190. $$("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 }), {
  2191. "id": "project",
  2192. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2193. "onresize": function () { }
  2194. }, {
  2195. closecallback: function () { }
  2196. }, { "style": { "height": "36px" } }).form; //创建窗体
  2197. _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); } }
  2198. break;
  2199. case "student":
  2200. _formdiv = new U.UF.UI.form(
  2201. "学生管理",
  2202. $$("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 }), {
  2203. "id": "student",
  2204. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2205. "onresize": function () { }
  2206. }, {
  2207. closecallback: function () { }
  2208. }, { "style": { "height": "36px" } }).form; //创建窗体
  2209. _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); } }
  2210. break;
  2211. case "evaluate":
  2212. _formdiv = new U.UF.UI.form(
  2213. "学生评价",
  2214. $$("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 }), {
  2215. "id": "evaluate",
  2216. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2217. "onresize": function () { }
  2218. }, {
  2219. closecallback: function () { }
  2220. }, { "style": { "height": "36px" } }).form; //创建窗体
  2221. _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); } }
  2222. break;
  2223. case "sys":
  2224. _formdiv = new U.UF.UI.form(
  2225. "目标管理",
  2226. $$("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 }), {
  2227. "id": "sys",
  2228. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2229. "onresize": function () { }
  2230. }, {
  2231. closecallback: function () { }
  2232. }, { "style": { "height": "36px" } }).form; //创建窗体
  2233. _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); } }
  2234. break;
  2235. case "courseDesign":
  2236. _formdiv = new U.UF.UI.form(
  2237. "项目设计",
  2238. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2239. "id": "courseDesign",
  2240. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2241. "onresize": function () { }
  2242. }, {
  2243. closecallback: function () { }
  2244. }, { "style": { "height": "36px" } }).form; //创建窗体
  2245. _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); } }
  2246. break;
  2247. case "program":
  2248. _formdiv = new U.UF.UI.form(
  2249. "编程平台",
  2250. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2251. "id": "program",
  2252. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2253. "onresize": function () { }
  2254. }, {
  2255. closecallback: function () { }
  2256. }, { "style": { "height": "36px" } }).form; //创建窗体
  2257. _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); } }
  2258. break;
  2259. case "class":
  2260. _formdiv = new U.UF.UI.form(
  2261. "班级管理",
  2262. $$("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 }), {
  2263. "id": "class",
  2264. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2265. "onresize": function () { }
  2266. }, {
  2267. closecallback: function () { }
  2268. }, { "style": { "height": "36px" } }).form; //创建窗体
  2269. _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); } }
  2270. break;
  2271. case "my":
  2272. _formdiv = new U.UF.UI.form(
  2273. "我的资料",
  2274. $$("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 }), {
  2275. "id": "my",
  2276. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2277. "onresize": function () { }
  2278. }, {
  2279. closecallback: function () { }
  2280. }, { "style": { "height": "36px" } }).form; //创建窗体
  2281. _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); } }
  2282. break;
  2283. case "notice":
  2284. _formdiv = new U.UF.UI.form(
  2285. "通知公告",
  2286. $$("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 }), {
  2287. "id": "notice",
  2288. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2289. "onresize": function () { }
  2290. }, {
  2291. closecallback: function () { }
  2292. }, { "style": { "height": "36px" } }).form; //创建窗体
  2293. _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); } }
  2294. break;
  2295. case "library":
  2296. _formdiv = new U.UF.UI.form(
  2297. "素材库",
  2298. $$("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 }), {
  2299. "id": "library",
  2300. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2301. "onresize": function () { }
  2302. }, {
  2303. closecallback: function () { }
  2304. }, { "style": { "height": "36px" } }).form; //创建窗体
  2305. _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); } }
  2306. break;
  2307. case "whiteboard":
  2308. _formdiv = new U.UF.UI.form(
  2309. "电子白板",
  2310. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2311. "id": "whiteboard",
  2312. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2313. "onresize": function () { }
  2314. }, {
  2315. closecallback: function () { }
  2316. }, { "style": { "height": "36px" } }).form; //创建窗体
  2317. _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); } }
  2318. break;
  2319. case "investigation":
  2320. _formdiv = new U.UF.UI.form(
  2321. "问卷调查",
  2322. $$("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 }), {
  2323. "id": "investigation",
  2324. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2325. "onresize": function () { }
  2326. }, {
  2327. closecallback: function () { }
  2328. }, { "style": { "height": "36px" } }).form; //创建窗体
  2329. _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); } }
  2330. break;
  2331. case "note":
  2332. _formdiv = new U.UF.UI.form(
  2333. "便签分类",
  2334. $$("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 }), {
  2335. "id": "note",
  2336. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2337. "onresize": function () { }
  2338. }, {
  2339. closecallback: function () { }
  2340. }, { "style": { "height": "36px" } }).form; //创建窗体
  2341. _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); } }
  2342. break;
  2343. // case "score":
  2344. // _formdiv = new U.UF.UI.form(
  2345. // "量规评分",
  2346. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2347. // "id": "score",
  2348. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2349. // "onresize": function() {}
  2350. // }, {
  2351. // closecallback: function() {}
  2352. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2353. // _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); } }
  2354. // break;
  2355. case "mind":
  2356. _formdiv = new U.UF.UI.form(
  2357. "思维导图",
  2358. $$("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"
  2359. "id": "mind",
  2360. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2361. "onresize": function () { }
  2362. }, {
  2363. closecallback: function () { }
  2364. }, { "style": { "height": "36px" } }).form; //创建窗体
  2365. _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); } }
  2366. break;
  2367. case "doc":
  2368. // U.MD.D.I.isRoom();
  2369. _formdiv = new U.UF.UI.form(
  2370. "协同文档",
  2371. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2372. "id": "doc",
  2373. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2374. "onresize": function () { }
  2375. }, {
  2376. closecallback: function () { }
  2377. }, { "style": { "height": "36px" } }).form; //创建窗体
  2378. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2379. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2380. })
  2381. _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); } }
  2382. break;
  2383. case "study":
  2384. _formdiv = new U.UF.UI.form(
  2385. "课程中心",
  2386. $$("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
  2387. "id": "study",
  2388. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2389. "onresize": function () { }
  2390. }, {
  2391. closecallback: function () { }
  2392. }, { "style": { "height": "36px" } }).form; //创建窗体
  2393. _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); } }
  2394. break;
  2395. case "mindNetwork": //好友打开
  2396. _formdiv = new U.UF.UI.form(
  2397. "思维网格",
  2398. $$("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 }), {
  2399. "id": "mindNetwork",
  2400. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2401. "onresize": function () { }
  2402. }, {
  2403. closecallback: function () { }
  2404. }, { "style": { "height": "36px" } }).form; //创建窗体
  2405. _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); } }
  2406. break;
  2407. case "train": //好友打开
  2408. _formdiv = new U.UF.UI.form(
  2409. "训练平台",
  2410. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2411. "id": "mindNetwork",
  2412. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2413. "onresize": function () { }
  2414. }, {
  2415. closecallback: function () { }
  2416. }, { "style": { "height": "36px" } }).form; //创建窗体
  2417. _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); } }
  2418. break;
  2419. case "teacherClassRoom": //好友打开
  2420. _formdiv = new U.UF.UI.form(
  2421. "实时课堂",
  2422. $$("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 }), {
  2423. "id": "teacherClassRoom",
  2424. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2425. "onresize": function () { }
  2426. }, {
  2427. closecallback: function () { }
  2428. }, { "style": { "height": "36px" } }).form; //创建窗体
  2429. _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); } }
  2430. setTimeout(() => {
  2431. U.UF.F.windowZooming(_formdiv)
  2432. }, 0);
  2433. break;
  2434. }
  2435. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2436. switch (str) {
  2437. case "project": //好友打开
  2438. _formdiv = new U.UF.UI.form(
  2439. "课程管理",
  2440. $$("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 }), {
  2441. "id": "project",
  2442. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2443. "onresize": function () { }
  2444. }, {
  2445. closecallback: function () { }
  2446. }, { "style": { "height": "36px" } }).form; //创建窗体
  2447. _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); } }
  2448. break;
  2449. case "evaluate":
  2450. _formdiv = new U.UF.UI.form(
  2451. "学生评价",
  2452. $$("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 }), {
  2453. "id": "evaluate",
  2454. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2455. "onresize": function () { }
  2456. }, {
  2457. closecallback: function () { }
  2458. }, { "style": { "height": "36px" } }).form; //创建窗体
  2459. _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); } }
  2460. break;
  2461. case "notice":
  2462. _formdiv = new U.UF.UI.form(
  2463. "通知公告",
  2464. $$("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 }), {
  2465. "id": "notice",
  2466. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2467. "onresize": function () { }
  2468. }, {
  2469. closecallback: function () { }
  2470. }, { "style": { "height": "36px" } }).form; //创建窗体
  2471. _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); } }
  2472. break;
  2473. case "stuLibrary":
  2474. _formdiv = new U.UF.UI.form(
  2475. "学习资料",
  2476. $$("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 }), {
  2477. "id": "stuLibrary",
  2478. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2479. "onresize": function () { }
  2480. }, {
  2481. closecallback: function () { }
  2482. }, { "style": { "height": "36px" } }).form; //创建窗体
  2483. _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); } }
  2484. break;
  2485. case "program":
  2486. _formdiv = new U.UF.UI.form(
  2487. "编程平台",
  2488. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2489. "id": "program",
  2490. "style": { "width": "70%", "height": "90%", "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/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2496. break;
  2497. case "whiteboard":
  2498. _formdiv = new U.UF.UI.form(
  2499. "电子白板",
  2500. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2501. "id": "whiteboard",
  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/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2508. break;
  2509. case "investigation":
  2510. _formdiv = new U.UF.UI.form(
  2511. "问卷调查",
  2512. $$("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 }), {
  2513. "id": "investigation",
  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/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2520. break;
  2521. case "mind":
  2522. _formdiv = new U.UF.UI.form(
  2523. "思维导图",
  2524. $$("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"
  2525. "id": "mind",
  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/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2532. break;
  2533. case "doc":
  2534. // U.MD.D.I.isRoom();
  2535. _formdiv = new U.UF.UI.form(
  2536. "协同文档",
  2537. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2538. "id": "doc",
  2539. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2540. "onresize": function () { }
  2541. }, {
  2542. closecallback: function () { }
  2543. }, { "style": { "height": "36px" } }).form; //创建窗体
  2544. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2545. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2546. })
  2547. _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); } }
  2548. break;
  2549. case "study":
  2550. _formdiv = new U.UF.UI.form(
  2551. "课程中心",
  2552. $$("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
  2553. "id": "study",
  2554. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2555. "onresize": function () { }
  2556. }, {
  2557. closecallback: function () { }
  2558. }, { "style": { "height": "36px" } }).form; //创建窗体
  2559. _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); } }
  2560. break;
  2561. case "mindNetwork": //好友打开
  2562. _formdiv = new U.UF.UI.form(
  2563. "思维网格",
  2564. $$("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 }), {
  2565. "id": "mindNetwork",
  2566. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2567. "onresize": function () { }
  2568. }, {
  2569. closecallback: function () { }
  2570. }, { "style": { "height": "36px" } }).form; //创建窗体
  2571. _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); } }
  2572. break;
  2573. case "train": //好友打开
  2574. _formdiv = new U.UF.UI.form(
  2575. "训练平台",
  2576. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2577. "id": "train",
  2578. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2579. "onresize": function () { }
  2580. }, {
  2581. closecallback: function () { }
  2582. }, { "style": { "height": "36px" } }).form; //创建窗体
  2583. _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); } }
  2584. break;
  2585. case "sys":
  2586. _formdiv = new U.UF.UI.form(
  2587. "目标管理",
  2588. $$("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 }), {
  2589. "id": "sys",
  2590. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2591. "onresize": function () { }
  2592. }, {
  2593. closecallback: function () { }
  2594. }, { "style": { "height": "36px" } }).form; //创建窗体
  2595. _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); } }
  2596. break;
  2597. case "courseDesign":
  2598. _formdiv = new U.UF.UI.form(
  2599. "项目设计",
  2600. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2601. "id": "courseDesign",
  2602. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2603. "onresize": function () { }
  2604. }, {
  2605. closecallback: function () { }
  2606. }, { "style": { "height": "36px" } }).form; //创建窗体
  2607. _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); } }
  2608. break;
  2609. }
  2610. } else if (!_type) {
  2611. switch (str) {
  2612. case "my":
  2613. _formdiv = new U.UF.UI.form(
  2614. "我的资料",
  2615. $$("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 }), {
  2616. "id": "my",
  2617. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2618. "onresize": function () { }
  2619. }, {
  2620. closecallback: function () { }
  2621. }, { "style": { "height": "36px" } }).form; //创建窗体
  2622. _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); } }
  2623. break;
  2624. }
  2625. }
  2626. switch (str) {
  2627. // AIprogram2 AI体验 aihub.cocorobo.cn
  2628. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2629. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2630. case "AIprogram2": //AI体验
  2631. _formdiv = new U.UF.UI.form(
  2632. "AI体验",
  2633. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2634. "id": "AIprogram2",
  2635. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2636. "onresize": function () { }
  2637. }, {
  2638. closecallback: function () { }
  2639. }, { "style": { "height": "36px" } }).form; //创建窗体
  2640. _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); } }
  2641. break;
  2642. case "Pythonprogram": //python编程
  2643. _formdiv = new U.UF.UI.form(
  2644. "Python编程",
  2645. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2646. "id": "Pythonprogram",
  2647. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2648. "onresize": function () { }
  2649. }, {
  2650. closecallback: function () { }
  2651. }, { "style": { "height": "36px" } }).form; //创建窗体
  2652. _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); } }
  2653. break;
  2654. case "AIprogram": //ai编程
  2655. _formdiv = new U.UF.UI.form(
  2656. "AI编程平台",
  2657. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2658. "id": "AIprogram",
  2659. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2660. "onresize": function () { }
  2661. }, {
  2662. closecallback: function () { }
  2663. }, { "style": { "height": "36px" } }).form; //创建窗体
  2664. _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); } }
  2665. break;
  2666. case "CocoPi": //CocoPi
  2667. _formdiv = new U.UF.UI.form(
  2668. "CocoPi",
  2669. $$("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" }), {
  2670. "id": "CocoPi",
  2671. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2672. "onresize": function () { }
  2673. }, {
  2674. closecallback: function () { }
  2675. }, { "style": { "height": "36px" } }).form; //创建窗体
  2676. _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); } }
  2677. break;
  2678. case "Wood": //Wood
  2679. _formdiv = new U.UF.UI.form(
  2680. "海龟编程",
  2681. $$("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/" }), {
  2682. "id": "Wood",
  2683. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2684. "onresize": function () { }
  2685. }, {
  2686. closecallback: function () { }
  2687. }, { "style": { "height": "36px" } }).form; //创建窗体
  2688. _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); } }
  2689. break;
  2690. case "car": //模拟驾驶
  2691. _formdiv = new U.UF.UI.form(
  2692. "模拟驾驶",
  2693. $$("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/" }), {
  2694. "id": "car",
  2695. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2696. "onresize": function () { }
  2697. }, {
  2698. closecallback: function () { }
  2699. }, { "style": { "height": "36px" } }).form; //创建窗体
  2700. _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); } }
  2701. break;
  2702. case "lineSearch": //路径搜索
  2703. _formdiv = new U.UF.UI.form(
  2704. "路径搜索",
  2705. $$("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/" }), {
  2706. "id": "lineSearch",
  2707. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2708. "onresize": function () { }
  2709. }, {
  2710. closecallback: function () { }
  2711. }, { "style": { "height": "36px" } }).form; //创建窗体
  2712. _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); } }
  2713. break;
  2714. case "deepLearning": //深度学习
  2715. _formdiv = new U.UF.UI.form(
  2716. "深度学习",
  2717. $$("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/#" }), {
  2718. "id": "deepLearning",
  2719. "style": { "width": "70%", "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/deepLearning.png)" }, "name": "深度学习", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2725. break;
  2726. case "allHistory": //深度学习
  2727. _formdiv = new U.UF.UI.form(
  2728. "全历史",
  2729. $$("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/" }), {
  2730. "id": "allHistory",
  2731. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2732. "onresize": function () { }
  2733. }, {
  2734. closecallback: function () { }
  2735. }, { "style": { "height": "36px" } }).form; //创建窗体
  2736. _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); } }
  2737. break;
  2738. case "chatPDF": //ai编程
  2739. _formdiv = new U.UF.UI.form(
  2740. "chatPDF",
  2741. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2742. "id": "chatPDF",
  2743. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2744. "onresize": function () { }
  2745. }, {
  2746. closecallback: function () { }
  2747. }, { "style": { "height": "36px" } }).form; //创建窗体
  2748. _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); } }
  2749. break;
  2750. case "resources": //国家教育
  2751. _formdiv = new U.UF.UI.form(
  2752. "国家教育",
  2753. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2754. "id": "resources",
  2755. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2756. "onresize": function () { }
  2757. }, {
  2758. closecallback: function () { }
  2759. }, { "style": { "height": "36px" } }).form; //创建窗体
  2760. _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); } }
  2761. break;
  2762. case "codeEdit": //源码编辑
  2763. _formdiv = new U.UF.UI.form(
  2764. "源码编辑",
  2765. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2766. "id": "codeEdit",
  2767. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2768. "onresize": function () { }
  2769. }, {
  2770. closecallback: function () { }
  2771. }, { "style": { "height": "36px" } }).form; //创建窗体
  2772. _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); } }
  2773. break; //
  2774. case "MindMap": //MindMap
  2775. _formdiv = new U.UF.UI.form(
  2776. "MindMap",
  2777. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2778. "id": "MindMap",
  2779. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2780. "onresize": function () { }
  2781. }, {
  2782. closecallback: function () { }
  2783. }, { "style": { "height": "36px" } }).form; //创建窗体
  2784. _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); } }
  2785. break;
  2786. case "netWorkPanel": //netWorkPanel
  2787. _formdiv = new U.UF.UI.form(
  2788. "netWorkPanel",
  2789. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2790. "id": "netWorkPanel",
  2791. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2792. "onresize": function () { }
  2793. }, {
  2794. closecallback: function () { }
  2795. }, { "style": { "height": "36px" } }).form; //创建窗体
  2796. _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); } }
  2797. break;
  2798. case "GeoGebra": //GeoGebra
  2799. _formdiv = new U.UF.UI.form(
  2800. "GeoGebra",
  2801. $$("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" }), {
  2802. "id": "GeoGebra",
  2803. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2804. "onresize": function () { }
  2805. }, {
  2806. closecallback: function () { }
  2807. }, { "style": { "height": "36px" } }).form; //创建窗体
  2808. _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); } }
  2809. break;
  2810. case "translation": //翻译
  2811. _formdiv = new U.UF.UI.form(
  2812. "翻译",
  2813. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2814. "id": "translation",
  2815. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2816. "onresize": function () { }
  2817. }, {
  2818. closecallback: function () { }
  2819. }, { "style": { "height": "36px" } }).form; //创建窗体
  2820. _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); } }
  2821. break;
  2822. case "mohe": //魔盒
  2823. _formdiv = new U.UF.UI.form(
  2824. "魔盒识字",
  2825. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2826. "id": "mohe",
  2827. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2828. "onresize": function () { }
  2829. }, {
  2830. closecallback: function () { }
  2831. }, { "style": { "height": "36px" } }).form; //创建窗体
  2832. _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); } }
  2833. break;
  2834. case "24game": //24点
  2835. _formdiv = new U.UF.UI.form(
  2836. "24点",
  2837. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2838. "id": "24game",
  2839. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2840. "onresize": function () { }
  2841. }, {
  2842. closecallback: function () { }
  2843. }, { "style": { "height": "36px" } }).form; //创建窗体
  2844. _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); } }
  2845. break;
  2846. case "case":
  2847. _formdiv = new U.UF.UI.form(
  2848. "课程进展",
  2849. $$("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 }), {
  2850. "id": "case",
  2851. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2852. "onresize": function () { }
  2853. }, {
  2854. closecallback: function () { }
  2855. }, { "style": { "height": "36px" } }).form; //创建窗体
  2856. _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); } }
  2857. break;
  2858. case "snf":
  2859. _formdiv = new U.UF.UI.form(
  2860. "赛诺梵",
  2861. $$("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" }), {
  2862. "id": "snf",
  2863. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2864. "onresize": function () { }
  2865. }, {
  2866. closecallback: function () { }
  2867. }, { "style": { "height": "36px" } }).form; //创建窗体
  2868. _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); } }
  2869. break;
  2870. case "hanFamily":
  2871. _formdiv = new U.UF.UI.form(
  2872. "汉字家族",
  2873. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2874. "id": "hanFamily",
  2875. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2876. "onresize": function () { }
  2877. }, {
  2878. closecallback: function () { }
  2879. }, { "style": { "height": "36px" } }).form; //创建窗体
  2880. _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); } }
  2881. break;
  2882. case "hanClassics":
  2883. _formdiv = new U.UF.UI.form(
  2884. "国学经典",
  2885. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2886. "id": "hanClassics",
  2887. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2888. "onresize": function () { }
  2889. }, {
  2890. closecallback: function () { }
  2891. }, { "style": { "height": "36px" } }).form; //创建窗体
  2892. _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); } }
  2893. break;
  2894. case "hanTraining":
  2895. _formdiv = new U.UF.UI.form(
  2896. "笔画训练",
  2897. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2898. "id": "hanTraining",
  2899. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2900. "onresize": function () { }
  2901. }, {
  2902. closecallback: function () { }
  2903. }, { "style": { "height": "36px" } }).form; //创建窗体
  2904. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanTraining.png)" }, "name": "笔画训练", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2905. break;
  2906. case "hanClass":
  2907. _formdiv = new U.UF.UI.form(
  2908. "书法课堂",
  2909. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2910. "id": "hanClass",
  2911. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2912. "onresize": function () { }
  2913. }, {
  2914. closecallback: function () { }
  2915. }, { "style": { "height": "36px" } }).form; //创建窗体
  2916. _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); } }
  2917. break;
  2918. case "han":
  2919. _formdiv = new U.UF.UI.form(
  2920. "汉字宫",
  2921. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2922. "id": "han",
  2923. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2924. "onresize": function () { }
  2925. }, {
  2926. closecallback: function () { }
  2927. }, { "style": { "height": "36px" } }).form; //创建窗体
  2928. _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); } }
  2929. break;
  2930. case "projectGM": //课程管理
  2931. _formdiv = new U.UF.UI.form(
  2932. "课程管理",
  2933. $$("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 }), {
  2934. "id": "projectGM",
  2935. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2936. "onresize": function () { }
  2937. }, {
  2938. closecallback: function () { }
  2939. }, { "style": { "height": "36px" } }).form; //创建窗体
  2940. _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); } }
  2941. break;
  2942. case "studyGM"://课程中心
  2943. _formdiv = new U.UF.UI.form(
  2944. "课程中心",
  2945. $$("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
  2946. "id": "study",
  2947. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2948. "onresize": function () { }
  2949. }, {
  2950. closecallback: function () { }
  2951. }, { "style": { "height": "36px" } }).form; //创建窗体
  2952. _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); } }
  2953. break;
  2954. // studentGM
  2955. case "studentGM"://学生管理
  2956. _formdiv = new U.UF.UI.form(
  2957. "学生管理",
  2958. $$("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 }), {
  2959. "id": "studentGM",
  2960. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2961. "onresize": function () { }
  2962. }, {
  2963. closecallback: function () { }
  2964. }, { "style": { "height": "36px" } }).form; //创建窗体
  2965. _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); } }
  2966. break;
  2967. case "evaluateGM"://学生评价
  2968. _formdiv = new U.UF.UI.form(
  2969. "学生评价",
  2970. $$("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 }), {
  2971. "id": "evaluateGM",
  2972. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2973. "onresize": function () { }
  2974. }, {
  2975. closecallback: function () { }
  2976. }, { "style": { "height": "36px" } }).form; //创建窗体
  2977. _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); } }
  2978. break;
  2979. // classGM
  2980. case "classGM"://班级管理
  2981. _formdiv = new U.UF.UI.form(
  2982. "班级管理",
  2983. $$("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 }), {
  2984. "id": "classGM",
  2985. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2986. "onresize": function () { }
  2987. }, {
  2988. closecallback: function () { }
  2989. }, { "style": { "height": "36px" } }).form; //创建窗体
  2990. _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); } }
  2991. break;
  2992. // dataGM
  2993. case "dataGM":
  2994. _formdiv = new U.UF.UI.form(
  2995. "我的资料",
  2996. $$("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 }), {
  2997. "id": "dataGM",
  2998. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2999. "onresize": function () { }
  3000. }, {
  3001. closecallback: function () { }
  3002. }, { "style": { "height": "36px" } }).form; //创建窗体
  3003. _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); } }
  3004. break;
  3005. // caseGM
  3006. case "caseGM"://课程进展
  3007. _formdiv = new U.UF.UI.form(
  3008. "课程进展",
  3009. $$("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 }), {
  3010. "id": "caseGM",
  3011. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3012. "onresize": function () { }
  3013. }, {
  3014. closecallback: function () { }
  3015. }, { "style": { "height": "36px" } }).form; //创建窗体
  3016. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/case.png)" }, "name": "课程进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3017. break;
  3018. // meterialGM
  3019. case "meterialGM"://素材库
  3020. _formdiv = new U.UF.UI.form(
  3021. "素材库",
  3022. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/libraryGM?userid=" + _userid + "&org=" + _org }), {
  3023. "id": "meterialGM",
  3024. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3025. "onresize": function () { }
  3026. }, {
  3027. closecallback: function () { }
  3028. }, { "style": { "height": "36px" } }).form; //创建窗体
  3029. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/material.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3030. break;
  3031. // evaluateSGM
  3032. case "evaluateSGM": //我的评价
  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-student-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3036. "id": "evaluateSGM",
  3037. "style": { "width": "70%", "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/evaluate.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3043. break;
  3044. case "jupyter": //jupyter
  3045. _formdiv = new U.UF.UI.form(
  3046. "jupyter",
  3047. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3048. "id": "jupyter",
  3049. "style": { "width": "90%", "height": "90%", "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/jupyter.png)" }, "name": "jupyter", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3055. break;
  3056. case "number": //数字实验室
  3057. _formdiv = new U.UF.UI.form(
  3058. "数字实验室",
  3059. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3060. "id": "number",
  3061. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3062. "onresize": function () { }
  3063. }, {
  3064. closecallback: function () { }
  3065. }, { "style": { "height": "36px" } }).form; //创建窗体
  3066. _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); } }
  3067. break;
  3068. case "studentCourse": //项目管理 学生
  3069. _formdiv = new U.UF.UI.form(
  3070. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3071. $$("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 }), {
  3072. "id": "studentCourse",
  3073. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3074. "onresize": function () { }
  3075. }, {
  3076. closecallback: function () { }
  3077. }, { "style": { "height": "36px" } }).form; //创建窗体
  3078. _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); } }
  3079. break;
  3080. case "studentCourseS": //项目管理 老师
  3081. _formdiv = new U.UF.UI.form(
  3082. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3083. $$("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 }), {
  3084. "id": "studentCourseS",
  3085. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3086. "onresize": function () { }
  3087. }, {
  3088. closecallback: function () { }
  3089. }, { "style": { "height": "36px" } }).form; //创建窗体
  3090. _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); } }
  3091. break;
  3092. case "studentIndex": //项目中心
  3093. _formdiv = new U.UF.UI.form(
  3094. "项目中心",
  3095. $$("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 }), {
  3096. "id": "studentIndex",
  3097. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3098. "onresize": function () { }
  3099. }, {
  3100. closecallback: function () { }
  3101. }, { "style": { "height": "36px" } }).form; //创建窗体
  3102. _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); } }
  3103. break;
  3104. case "CaseDesignS":
  3105. _formdiv = new U.UF.UI.form(
  3106. "项目进展",
  3107. $$("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 }), {
  3108. "id": "case",
  3109. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3110. "onresize": function () { }
  3111. }, {
  3112. closecallback: function () { }
  3113. }, { "style": { "height": "36px" } }).form; //创建窗体
  3114. _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); } }
  3115. break;
  3116. case "tcStudent": //腾讯学生管理
  3117. _formdiv = new U.UF.UI.form(
  3118. "学生管理",
  3119. $$("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 }), {
  3120. "id": "tcStudent",
  3121. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3122. "onresize": function () { }
  3123. }, {
  3124. closecallback: function () { }
  3125. }, { "style": { "height": "36px" } }).form; //创建窗体
  3126. _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); } }
  3127. break;
  3128. case "tcSchool": //腾讯学校管理
  3129. _formdiv = new U.UF.UI.form(
  3130. "学校管理",
  3131. $$("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 }), {
  3132. "id": "tcSchool",
  3133. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3134. "onresize": function () { }
  3135. }, {
  3136. closecallback: function () { }
  3137. }, { "style": { "height": "36px" } }).form; //创建窗体
  3138. _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); } }
  3139. break;
  3140. case "tcTeacher": //腾讯学校管理
  3141. _formdiv = new U.UF.UI.form(
  3142. "教师管理",
  3143. $$("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 }), {
  3144. "id": "tcTeacher",
  3145. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3146. "onresize": function () { }
  3147. }, {
  3148. closecallback: function () { }
  3149. }, { "style": { "height": "36px" } }).form; //创建窗体
  3150. _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); } }
  3151. break;
  3152. case "tcData": //腾讯我的资料
  3153. _formdiv = new U.UF.UI.form(
  3154. "我的资料",
  3155. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcData?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3156. "id": "tcData",
  3157. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3158. "onresize": function () { }
  3159. }, {
  3160. closecallback: function () { }
  3161. }, { "style": { "height": "36px" } }).form; //创建窗体
  3162. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3163. break;
  3164. case "tcNotice": //腾讯消息通知
  3165. _formdiv = new U.UF.UI.form(
  3166. "消息通知",
  3167. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcNotice?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3168. "id": "tcNotice",
  3169. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3170. "onresize": function () { }
  3171. }, {
  3172. closecallback: function () { }
  3173. }, { "style": { "height": "36px" } }).form; //创建窗体
  3174. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "消息通知", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3175. break;
  3176. case "myReport": //好友打开
  3177. _formdiv = new U.UF.UI.form(
  3178. "我的评价",
  3179. $$("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 }), {
  3180. "id": "myReport",
  3181. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3182. "onresize": function () { }
  3183. }, {
  3184. closecallback: function () { }
  3185. }, { "style": { "height": "36px" } }).form; //创建窗体
  3186. _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); } }
  3187. break;
  3188. case "learnAna": //好友打开
  3189. _formdiv = new U.UF.UI.form(
  3190. "学习分析",
  3191. $$("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 }), {
  3192. "id": "learnAna",
  3193. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3194. "onresize": function () { }
  3195. }, {
  3196. closecallback: function () { }
  3197. }, { "style": { "height": "36px" } }).form; //创建窗体
  3198. _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); } }
  3199. break;
  3200. case "AIChat": //AI共创
  3201. _formdiv = new U.UF.UI.form(
  3202. "AI共创",
  3203. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3204. "id": "AIChat",
  3205. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3206. "onresize": function () { }
  3207. }, {
  3208. istop: true,
  3209. closecallback: function () { $("#aichat_icon").remove(); },
  3210. narrowcallback: function () {
  3211. if (!$("#aichat_icon")[0]) {
  3212. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3213. }
  3214. },
  3215. }, { "style": { "height": "36px" } }).form; //创建窗体
  3216. _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); } }
  3217. break;
  3218. case "AIAnalyse": //AI共创
  3219. _formdiv = new U.UF.UI.form(
  3220. "AI分析",
  3221. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3222. "id": "AIAnalyse",
  3223. "style": { "width": "100%", "height": "100%", "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/AIChat.png)" }, "name": "AI分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3229. break;
  3230. case "studioCourse": //AI共创
  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/#/studioCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3234. "id": "studioCourse",
  3235. "style": { "width": "100%", "height": "100%", "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/studioCourse.png)" }, "name": "工作管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3241. break;
  3242. case "studioIndex": //AI共创
  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-student-table/dist/#/studioIndex?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType + "&role=" + _role }), {
  3246. "id": "studioIndex",
  3247. "style": { "width": "100%", "height": "100%", "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/studioIndex.png)" }, "name": "工作中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3253. break;
  3254. case "source":
  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/#/teacherSource?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3258. "id": "source",
  3259. "style": { "width": "80%", "height": "80%", "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/source.png)" }, "name": "教学资源", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3265. break;
  3266. }
  3267. //U.MD.D.I.openClick(str);
  3268. //如果有任务栏信息
  3269. if (_taskbar) {
  3270. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3271. }
  3272. }
  3273. // U.MD.D.I.openClick = function(str){
  3274. // var click = '';
  3275. // switch(str){
  3276. // case 'friend':
  3277. // click = '我的好友';
  3278. // break;
  3279. // case 'domain':
  3280. // click = '域名管理';
  3281. // break;
  3282. // case 'disk':
  3283. // click = '我的云盘';
  3284. // break;
  3285. // case 'word':
  3286. // click = 'Word';
  3287. // break;
  3288. // case 'excel':
  3289. // click = 'Execl';
  3290. // break;
  3291. // case 'txt':
  3292. // click = '文本文件';
  3293. // break;
  3294. // case 'lookupFriend':
  3295. // click = '查找好友';
  3296. // break;
  3297. // case 'ftp':
  3298. // click = 'FTP';
  3299. // break;
  3300. // case 'group':
  3301. // click = '群组';
  3302. // break;
  3303. // case 'set':
  3304. // click = '我的设置';
  3305. // break;
  3306. // case 'systemSet':
  3307. // click = '系统设置';
  3308. // break;
  3309. // case 'boomYun':
  3310. // click = '互联办公';
  3311. // break;
  3312. // case 'xz':
  3313. // click = '云端下载';
  3314. // break;
  3315. // case 'client':
  3316. // click = '有思浏览器';
  3317. // break;
  3318. // case 'backEndProgramming':
  3319. // click = '在线后台编程';
  3320. // break;
  3321. // case 'frontEndProgramming':
  3322. // click = '在线前端编程';
  3323. // break;
  3324. // default: break;
  3325. // }
  3326. // if(U.MD.D.I.Ip && click){
  3327. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3328. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3329. // })
  3330. // }
  3331. // }
  3332. /**
  3333. *函数作用:ajax简易函数,使用post格式
  3334. *@param url {data} 后台地址
  3335. *@param data {data} 参数json
  3336. *@param fn {data} 回调函数
  3337. *
  3338. */
  3339. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3340. // var xhr = new XMLHttpRequest();
  3341. // xhr.open("GET",url,true);
  3342. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3343. // xhr.onreadystatechange = function(){
  3344. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3345. // fn.call(this,xhr.responseText);
  3346. // }
  3347. // };
  3348. // xhr.send();
  3349. // }
  3350. /*判断是否是内网IP*/
  3351. // U.MD.D.I.isInnerIPFn = function(str){
  3352. // var curPageUrl = str;
  3353. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3354. // curPageUrl =curPageUrl.replace(reg1,'');
  3355. // // console.log('curPageUrl-1 '+curPageUrl);
  3356. // var reg2 = /\:+/g;//替换冒号为一点
  3357. // curPageUrl =curPageUrl.replace(reg2,'.');
  3358. // // console.log('curPageUrl-2 '+curPageUrl);
  3359. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3360. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3361. // if(curPageUrl[2] != '16'){
  3362. // return ipAddress;
  3363. // }else{
  3364. // return false;
  3365. // }
  3366. // }
  3367. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3368. // //compatibility for firefox and chrome
  3369. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3370. // var pc = new myPeerConnection({
  3371. // iceServers: []
  3372. // }),
  3373. // noop = function() {},
  3374. // localIPs = {},
  3375. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3376. // key;
  3377. // function iterateIP(ip) {
  3378. // if (!localIPs[ip]) onNewIP(ip);
  3379. // localIPs[ip] = true;
  3380. // }
  3381. // //create a bogus data channel
  3382. // pc.createDataChannel("");
  3383. // // create offer and set local description
  3384. // pc.createOffer().then(function(sdp) {
  3385. // sdp.sdp.split('\n').forEach(function(line) {
  3386. // if (line.indexOf('candidate') < 0) return;
  3387. // line.match(ipRegex).forEach(iterateIP);
  3388. // });
  3389. // pc.setLocalDescription(sdp, noop, noop);
  3390. // }).catch(function(reason) {
  3391. // // An error occurred, so handle the failure to connect
  3392. // });
  3393. // //sten for candidate events
  3394. // pc.onicecandidate = function(ice) {
  3395. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3396. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3397. // };
  3398. // }
  3399. // U.MD.D.I.getUserIpBool = function(callback){
  3400. // U.MD.D.I.getUserIP(function(ip){
  3401. // alert("Got IP! :" + ip);
  3402. // });
  3403. //}
  3404. //#endregion
  3405. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3406. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3407. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3408. _userinfo = US.userInfo, //登录用户信息
  3409. _userid = US.userInfo.userid //登录用户id
  3410. let _iframe;
  3411. let _cid = cid,
  3412. _stage = stage,
  3413. _task = task,
  3414. _tool = tool;
  3415. var _jie = $$("div", {
  3416. "style": {
  3417. "position": "absolute",
  3418. "bottom": "50px",
  3419. "right": "50px",
  3420. "zIndex": "9999",
  3421. "backgroundColor": "#2268bc",
  3422. "color": "#fff",
  3423. "padding": "12px 20px",
  3424. "cursor": "pointer",
  3425. "borderRadius": "4px",
  3426. },
  3427. "innerHTML": "提交作业"
  3428. })
  3429. let aTool = ''
  3430. let _loading = document.createElement('div')
  3431. _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;"
  3432. // _loading.id = "";
  3433. let _lchild = document.createElement('div')
  3434. let _limg = document.createElement('img')
  3435. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3436. _limg.style = "width: 26px;margin-right: 10px;"
  3437. _lchild.appendChild(_limg)
  3438. let _lspan = document.createElement('span')
  3439. _lspan.innerHTML = "上传中..."
  3440. _lchild.appendChild(_lspan)
  3441. _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%);"
  3442. _loading.appendChild(_lchild)
  3443. var _box = $$('div', {
  3444. "style": {
  3445. "position": "relative",
  3446. "width": "100%",
  3447. "height": "100%",
  3448. },
  3449. })
  3450. _box.appendChild(_loading)
  3451. _box.id = str + '_loadLi'
  3452. switch (str) {
  3453. case "whiteboard":
  3454. aTool = 1;
  3455. _iframe = $$("iframe", {
  3456. "frameborder": "no",
  3457. "border": "0",
  3458. "scrolling ": "no",
  3459. "style": {
  3460. "cssText": "border:0;width:100%;height:100%"
  3461. },
  3462. "src": "https://iwb.cocorobo.cn/"
  3463. })
  3464. _box.appendChild(_iframe);
  3465. _box.appendChild(_jie);
  3466. _formdiv = new U.UF.UI.form(
  3467. "电子白板",
  3468. _box, {
  3469. "id": "whiteboard" + cid + stage + task + tool,
  3470. "style": {
  3471. "width": "90%",
  3472. "height": "90%",
  3473. "overflow": 'hidden'
  3474. },
  3475. "onresize": function () { }
  3476. }, {
  3477. closecallback: function () { }
  3478. }, {
  3479. "style": {
  3480. "height": "36px"
  3481. }
  3482. }).form; //创建窗体
  3483. _taskbar = {
  3484. "id": str + _formdiv.id,
  3485. "style": {
  3486. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3487. },
  3488. "name": "电子白板",
  3489. "forms": _formdiv,
  3490. "click": function () {
  3491. U.MD.D.I.openApplication(str, obj, info);
  3492. }
  3493. }
  3494. break;
  3495. case "mind":
  3496. aTool = 3;
  3497. _iframe = $$("iframe", {
  3498. "frameborder": "no",
  3499. "border": "0",
  3500. "scrolling ": "no",
  3501. "style": {
  3502. "cssText": "border:0;width:100%;height:100%"
  3503. },
  3504. "src": "/kityminder-editor/dist/index.html"
  3505. })
  3506. _box.appendChild(_iframe);
  3507. _box.appendChild(_jie);
  3508. _formdiv = new U.UF.UI.form(
  3509. "思维导图",
  3510. _box, { //"/jsmind/example/demo.html"
  3511. "id": "mind" + cid + stage + task + tool,
  3512. "style": {
  3513. "width": "90%",
  3514. "height": "90%",
  3515. "overflow": 'hidden'
  3516. },
  3517. "onresize": function () { }
  3518. }, {
  3519. closecallback: function () { }
  3520. }, {
  3521. "style": {
  3522. "height": "36px"
  3523. }
  3524. }).form; //创建窗体
  3525. _taskbar = {
  3526. "id": str + _formdiv.id,
  3527. "style": {
  3528. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3529. },
  3530. "name": "思维导图",
  3531. "forms": _formdiv,
  3532. "click": function () {
  3533. U.MD.D.I.openApplication(str, obj, info);
  3534. }
  3535. }
  3536. break;
  3537. case "MindMap":
  3538. aTool = 3;
  3539. _iframe = $$("iframe", {
  3540. "frameborder": "no",
  3541. "border": "0",
  3542. "scrolling ": "no",
  3543. "style": {
  3544. "cssText": "border:0;width:100%;height:100%"
  3545. },
  3546. "src": "//cloud.cocorobo.cn/mind/"
  3547. })
  3548. _box.appendChild(_iframe);
  3549. _box.appendChild(_jie);
  3550. _formdiv = new U.UF.UI.form(
  3551. "思维导图",
  3552. _box, { //"/jsmind/example/demo.html"
  3553. "id": "mind" + cid + stage + task + tool,
  3554. "style": {
  3555. "width": "90%",
  3556. "height": "90%",
  3557. "overflow": 'hidden'
  3558. },
  3559. "onresize": function () { }
  3560. }, {
  3561. closecallback: function () { }
  3562. }, {
  3563. "style": {
  3564. "height": "36px"
  3565. }
  3566. }).form; //创建窗体
  3567. _taskbar = {
  3568. "id": str + _formdiv.id,
  3569. "style": {
  3570. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3571. },
  3572. "name": "思维导图",
  3573. "forms": _formdiv,
  3574. "click": function () {
  3575. U.MD.D.I.openApplication(str, obj, info);
  3576. }
  3577. }
  3578. break;
  3579. case "doc":
  3580. aTool = 6;
  3581. _iframe = $$("iframe", {
  3582. "frameborder": "no",
  3583. "border": "0",
  3584. "scrolling ": "no",
  3585. "style": {
  3586. "cssText": "border:0;width:100%;height:100%"
  3587. },
  3588. "src": "/Office/Word/WordEditArea.htm"
  3589. })
  3590. _box.appendChild(_iframe);
  3591. _box.appendChild(_jie);
  3592. _formdiv = new U.UF.UI.form(
  3593. "协同文档",
  3594. _box, {
  3595. "id": "doc" + cid + stage + task + tool,
  3596. "style": {
  3597. "width": "90%",
  3598. "height": "90%",
  3599. "overflow": 'hidden'
  3600. },
  3601. "onresize": function () { }
  3602. }, {
  3603. closecallback: function () { }
  3604. }, {
  3605. "style": {
  3606. "height": "36px"
  3607. }
  3608. }).form; //创建窗体
  3609. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3610. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3611. })
  3612. _taskbar = {
  3613. "id": str + _formdiv.id,
  3614. "style": {
  3615. "backgroundImage": "url(/img/icon/doc.png)"
  3616. },
  3617. "name": "协同文档",
  3618. "forms": _formdiv,
  3619. "click": function () {
  3620. U.MD.D.I.openApplication(str, obj, info);
  3621. }
  3622. }
  3623. break;
  3624. case "mindNetwork": //好友打开
  3625. aTool = 7;
  3626. _iframe = $$("iframe", {
  3627. "webkitallowfullscreen": "",
  3628. "mozallowfullscreen": "",
  3629. "allowfullscreen": "",
  3630. "frameborder": "no",
  3631. "border": "0",
  3632. "scrolling ": "no",
  3633. "style": {
  3634. "cssText": "border:0; width:100%; height:100%;"
  3635. },
  3636. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3637. })
  3638. _box.appendChild(_iframe);
  3639. _box.appendChild(_jie);
  3640. _formdiv = new U.UF.UI.form(
  3641. "思维网格",
  3642. _box, {
  3643. "id": "mindNetwork" + cid + stage + task + tool,
  3644. "style": {
  3645. "width": "90%",
  3646. "height": "90%",
  3647. "overflow": 'hidden'
  3648. },
  3649. "onresize": function () { }
  3650. }, {
  3651. closecallback: function () { }
  3652. }, {
  3653. "style": {
  3654. "height": "36px"
  3655. }
  3656. }).form; //创建窗体
  3657. _taskbar = {
  3658. "id": str + _formdiv.id,
  3659. "style": {
  3660. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3661. },
  3662. "name": "思维网格",
  3663. "forms": _formdiv,
  3664. "click": function () {
  3665. U.MD.D.I.openApplication(str, obj, info);
  3666. }
  3667. }
  3668. break;
  3669. case "courseDesign":
  3670. _iframe = $$("iframe", {
  3671. "webkitallowfullscreen": "",
  3672. "mozallowfullscreen": "",
  3673. "allowfullscreen": "",
  3674. "frameborder": "no",
  3675. "border": "0",
  3676. "scrolling ": "no",
  3677. "style": {
  3678. "cssText": "border:0; width:100%; height:100%;"
  3679. },
  3680. "src": "/course-design-vue"
  3681. })
  3682. _box.appendChild(_iframe);
  3683. _box.appendChild(_jie);
  3684. _formdiv = new U.UF.UI.form(
  3685. "项目设计",
  3686. _box, {
  3687. "id": "courseDesign" + cid + stage + task + tool,
  3688. "style": {
  3689. "width": "90%",
  3690. "height": "90%",
  3691. "overflow": 'hidden'
  3692. },
  3693. "onresize": function () { }
  3694. }, {
  3695. closecallback: function () { }
  3696. }, {
  3697. "style": {
  3698. "height": "36px"
  3699. }
  3700. }).form; //创建窗体
  3701. _taskbar = {
  3702. "id": str + _formdiv.id,
  3703. "style": {
  3704. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3705. },
  3706. "name": "项目设计",
  3707. "forms": _formdiv,
  3708. "click": function () {
  3709. U.MD.D.I.openApplication(str, obj, info);
  3710. }
  3711. }
  3712. break;
  3713. }
  3714. const script1 = document.createElement("script");
  3715. script1.type = "text/javascript";
  3716. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3717. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3718. const script2 = document.createElement("script");
  3719. script2.type = "text/javascript";
  3720. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3721. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3722. const script3 = document.createElement("script");
  3723. script3.type = "text/javascript";
  3724. script3.charset = "UTF-8";
  3725. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3726. const script4 = document.createElement("script");
  3727. script4.type = "text/javascript";
  3728. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3729. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3730. if (_iframe) {
  3731. if (str == 'doc') {
  3732. _iframe = _formdiv.querySelector('iframe')
  3733. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3734. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3735. _iframe.contentWindow.document.body.appendChild(script1);
  3736. _iframe.contentWindow.document.body.appendChild(script2);
  3737. // _iframe.contentWindow.document.body.appendChild(script3);
  3738. _iframe.contentWindow.document.body.appendChild(script4);
  3739. })
  3740. if (onloadListener) {
  3741. _iframe.contentDocument.location.reload()
  3742. } else {
  3743. _iframe.contentDocument.location.reload()
  3744. }
  3745. } else if (str == 'courseDesign') {
  3746. U.UF.DL.iframeLoad(_iframe, function () {
  3747. // _iframe.contentWindow.U.MD.O.W.load();
  3748. // _iframe.contentWindow.document.body.appendChild(script1);
  3749. _iframe.contentWindow.document.body.appendChild(script2);
  3750. _iframe.contentWindow.document.body.appendChild(script4);
  3751. })
  3752. } else if (str == 'mind') {
  3753. _iframe = _formdiv.querySelector('iframe')
  3754. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3755. //
  3756. _iframe.contentWindow.document.body.appendChild(script1);
  3757. _iframe.contentWindow.document.body.appendChild(script2);
  3758. _iframe.contentWindow.document.body.appendChild(script4);
  3759. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3760. })
  3761. if (onloadListener) {
  3762. _iframe.contentDocument.location.reload()
  3763. } else {
  3764. _iframe.contentDocument.location.reload()
  3765. }
  3766. } else if (str == 'whiteboard') {
  3767. _iframe = _formdiv.querySelector('iframe')
  3768. let onloadListener = _iframe.onload = () => {
  3769. _iframe.contentWindow.document.body.appendChild(script1);
  3770. _iframe.contentWindow.document.body.appendChild(script2);
  3771. _iframe.contentWindow.document.body.appendChild(script4);
  3772. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3773. };
  3774. if (onloadListener) {
  3775. _iframe.contentDocument.location.reload()
  3776. } else {
  3777. _iframe.contentDocument.location.reload()
  3778. }
  3779. } else {
  3780. _iframe.onload = () => {
  3781. _iframe.contentWindow.document.body.appendChild(script1);
  3782. _iframe.contentWindow.document.body.appendChild(script2);
  3783. // _iframe.contentWindow.document.body.appendChild(script3);
  3784. _iframe.contentWindow.document.body.appendChild(script4);
  3785. };
  3786. }
  3787. _jie.onclick = async () => {
  3788. let text = ''
  3789. if (aTool == 1) {
  3790. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3791. } else if (aTool == 6) {
  3792. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3793. } else if (aTool == 3) {
  3794. text = await U.MD.D.I.getEditorContent(_iframe);
  3795. }
  3796. _loading.style.display = 'flex'
  3797. console.log(_loading);
  3798. var _ajs = _iframe.contentWindow.document.createElement("script");
  3799. _ajs.type = "text/javascript";
  3800. _ajs.innerHTML =
  3801. // 'console.log(' + _loading + ');\n' +
  3802. 'var _js = document.createElement("script");\n' +
  3803. '_js.type="text/javascript";\n' +
  3804. '_js.charset="UTF-8";\n' +
  3805. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3806. "_js.onload = function(){\n" +
  3807. ' var a = document.getElementsByTagName("img")\n' +
  3808. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3809. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3810. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3811. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3812. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3813. "beforeUpload_shishi(file," +
  3814. "'" +
  3815. _userid +
  3816. "'" +
  3817. ", " +
  3818. "'" +
  3819. _cid +
  3820. "'" +
  3821. ", " +
  3822. "'" +
  3823. _stage +
  3824. "'" +
  3825. ", " +
  3826. "'" +
  3827. _task +
  3828. "'" +
  3829. ", " +
  3830. "'" +
  3831. _tool +
  3832. "'" +
  3833. ", " +
  3834. "'" +
  3835. str + '_loadLi' +
  3836. "'" +
  3837. ", " +
  3838. "'" +
  3839. aTool +
  3840. "'" +
  3841. ", " +
  3842. "`" +
  3843. text +
  3844. "`" +
  3845. ")\n" +
  3846. " });\n" +
  3847. "}\n" +
  3848. "document.head.appendChild(_js);\n";
  3849. _iframe.contentWindow.document.head.appendChild(_ajs);
  3850. }
  3851. }
  3852. //U.MD.D.I.openClick(str);
  3853. //如果有任务栏信息
  3854. // if (_taskbar) {
  3855. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3856. // }
  3857. }
  3858. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  3859. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3860. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3861. _userinfo = US.userInfo, //登录用户信息
  3862. _userid = US.userInfo.userid //登录用户id
  3863. let _iframe;
  3864. let _cid = cid,
  3865. _stage = stage,
  3866. _task = task,
  3867. _tool = tool;
  3868. var _jie = $$("div", {
  3869. "style": {
  3870. "position": "absolute",
  3871. "bottom": "50px",
  3872. "right": "50px",
  3873. "zIndex": "9999",
  3874. "backgroundColor": "#2268bc",
  3875. "color": "#fff",
  3876. "padding": "12px 20px",
  3877. "cursor": "pointer",
  3878. "borderRadius": "4px",
  3879. },
  3880. "innerHTML": "提交作业"
  3881. })
  3882. let aTool = ''
  3883. let _loading = document.createElement('div')
  3884. _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;"
  3885. // _loading.id = "";
  3886. let _lchild = document.createElement('div')
  3887. let _limg = document.createElement('img')
  3888. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3889. _limg.style = "width: 26px;margin-right: 10px;"
  3890. _lchild.appendChild(_limg)
  3891. let _lspan = document.createElement('span')
  3892. _lspan.innerHTML = "上传中..."
  3893. _lchild.appendChild(_lspan)
  3894. _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%);"
  3895. _loading.appendChild(_lchild)
  3896. var _box = $$('div', {
  3897. "style": {
  3898. "position": "relative",
  3899. "width": "100%",
  3900. "height": "100%",
  3901. },
  3902. })
  3903. _box.appendChild(_loading)
  3904. _box.id = str + '_loadLi'
  3905. switch (str) {
  3906. case "whiteboard":
  3907. aTool = 1;
  3908. _iframe = $$("iframe", {
  3909. "frameborder": "no",
  3910. "border": "0",
  3911. "scrolling ": "no",
  3912. "style": {
  3913. "cssText": "border:0;width:100%;height:100%"
  3914. },
  3915. "src": "https://iwb.cocorobo.cn/"
  3916. })
  3917. _box.appendChild(_iframe);
  3918. _box.appendChild(_jie);
  3919. _formdiv = new U.UF.UI.form(
  3920. "电子白板",
  3921. _box, {
  3922. "id": "whiteboard" + cid + stage + task + tool,
  3923. "style": {
  3924. "width": "90%",
  3925. "height": "90%",
  3926. "overflow": 'hidden'
  3927. },
  3928. "onresize": function () { }
  3929. }, {
  3930. closecallback: function () { }
  3931. }, {
  3932. "style": {
  3933. "height": "36px"
  3934. }
  3935. }).form; //创建窗体
  3936. _taskbar = {
  3937. "id": str + _formdiv.id,
  3938. "style": {
  3939. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3940. },
  3941. "name": "电子白板",
  3942. "forms": _formdiv,
  3943. "click": function () {
  3944. U.MD.D.I.openApplication(str, obj, info);
  3945. }
  3946. }
  3947. break;
  3948. case "mind":
  3949. aTool = 3;
  3950. _iframe = $$("iframe", {
  3951. "frameborder": "no",
  3952. "border": "0",
  3953. "scrolling ": "no",
  3954. "style": {
  3955. "cssText": "border:0;width:100%;height:100%"
  3956. },
  3957. "src": "/kityminder-editor/dist/index.html"
  3958. })
  3959. _box.appendChild(_iframe);
  3960. _box.appendChild(_jie);
  3961. _formdiv = new U.UF.UI.form(
  3962. "思维导图",
  3963. _box, { //"/jsmind/example/demo.html"
  3964. "id": "mind" + cid + stage + task + tool,
  3965. "style": {
  3966. "width": "90%",
  3967. "height": "90%",
  3968. "overflow": 'hidden'
  3969. },
  3970. "onresize": function () { }
  3971. }, {
  3972. closecallback: function () { }
  3973. }, {
  3974. "style": {
  3975. "height": "36px"
  3976. }
  3977. }).form; //创建窗体
  3978. _taskbar = {
  3979. "id": str + _formdiv.id,
  3980. "style": {
  3981. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3982. },
  3983. "name": "思维导图",
  3984. "forms": _formdiv,
  3985. "click": function () {
  3986. U.MD.D.I.openApplication(str, obj, info);
  3987. }
  3988. }
  3989. break;
  3990. case "MindMap":
  3991. aTool = 3;
  3992. _iframe = $$("iframe", {
  3993. "frameborder": "no",
  3994. "border": "0",
  3995. "scrolling ": "no",
  3996. "style": {
  3997. "cssText": "border:0;width:100%;height:100%"
  3998. },
  3999. "src": "//cloud.cocorobo.cn/mind/"
  4000. })
  4001. _box.appendChild(_iframe);
  4002. _box.appendChild(_jie);
  4003. _formdiv = new U.UF.UI.form(
  4004. "思维导图",
  4005. _box, { //"/jsmind/example/demo.html"
  4006. "id": "mind" + cid + stage + task + tool,
  4007. "style": {
  4008. "width": "90%",
  4009. "height": "90%",
  4010. "overflow": 'hidden'
  4011. },
  4012. "onresize": function () { }
  4013. }, {
  4014. closecallback: function () { }
  4015. }, {
  4016. "style": {
  4017. "height": "36px"
  4018. }
  4019. }).form; //创建窗体
  4020. _taskbar = {
  4021. "id": str + _formdiv.id,
  4022. "style": {
  4023. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4024. },
  4025. "name": "思维导图",
  4026. "forms": _formdiv,
  4027. "click": function () {
  4028. U.MD.D.I.openApplication(str, obj, info);
  4029. }
  4030. }
  4031. break;
  4032. case "doc":
  4033. aTool = 6;
  4034. _iframe = $$("iframe", {
  4035. "frameborder": "no",
  4036. "border": "0",
  4037. "scrolling ": "no",
  4038. "style": {
  4039. "cssText": "border:0;width:100%;height:100%"
  4040. },
  4041. "src": "/Office/Word/WordEditArea.htm"
  4042. })
  4043. _box.appendChild(_iframe);
  4044. _box.appendChild(_jie);
  4045. _formdiv = new U.UF.UI.form(
  4046. "协同文档",
  4047. _box, {
  4048. "id": "doc" + cid + stage + task + tool,
  4049. "style": {
  4050. "width": "90%",
  4051. "height": "90%",
  4052. "overflow": 'hidden'
  4053. },
  4054. "onresize": function () { }
  4055. }, {
  4056. closecallback: function () { }
  4057. }, {
  4058. "style": {
  4059. "height": "36px"
  4060. }
  4061. }).form; //创建窗体
  4062. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4063. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4064. })
  4065. _taskbar = {
  4066. "id": str + _formdiv.id,
  4067. "style": {
  4068. "backgroundImage": "url(/img/icon/doc.png)"
  4069. },
  4070. "name": "协同文档",
  4071. "forms": _formdiv,
  4072. "click": function () {
  4073. U.MD.D.I.openApplication(str, obj, info);
  4074. }
  4075. }
  4076. break;
  4077. case "mindNetwork": //好友打开
  4078. aTool = 7;
  4079. _iframe = $$("iframe", {
  4080. "webkitallowfullscreen": "",
  4081. "mozallowfullscreen": "",
  4082. "allowfullscreen": "",
  4083. "frameborder": "no",
  4084. "border": "0",
  4085. "scrolling ": "no",
  4086. "style": {
  4087. "cssText": "border:0; width:100%; height:100%;"
  4088. },
  4089. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4090. })
  4091. _box.appendChild(_iframe);
  4092. _box.appendChild(_jie);
  4093. _formdiv = new U.UF.UI.form(
  4094. "思维网格",
  4095. _box, {
  4096. "id": "mindNetwork" + cid + stage + task + tool,
  4097. "style": {
  4098. "width": "90%",
  4099. "height": "90%",
  4100. "overflow": 'hidden'
  4101. },
  4102. "onresize": function () { }
  4103. }, {
  4104. closecallback: function () { }
  4105. }, {
  4106. "style": {
  4107. "height": "36px"
  4108. }
  4109. }).form; //创建窗体
  4110. _taskbar = {
  4111. "id": str + _formdiv.id,
  4112. "style": {
  4113. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4114. },
  4115. "name": "思维网格",
  4116. "forms": _formdiv,
  4117. "click": function () {
  4118. U.MD.D.I.openApplication(str, obj, info);
  4119. }
  4120. }
  4121. break;
  4122. case "courseDesign":
  4123. _iframe = $$("iframe", {
  4124. "webkitallowfullscreen": "",
  4125. "mozallowfullscreen": "",
  4126. "allowfullscreen": "",
  4127. "frameborder": "no",
  4128. "border": "0",
  4129. "scrolling ": "no",
  4130. "style": {
  4131. "cssText": "border:0; width:100%; height:100%;"
  4132. },
  4133. "src": "/course-design-vue"
  4134. })
  4135. _box.appendChild(_iframe);
  4136. _box.appendChild(_jie);
  4137. _formdiv = new U.UF.UI.form(
  4138. "项目设计",
  4139. _box, {
  4140. "id": "courseDesign" + cid + stage + task + tool,
  4141. "style": {
  4142. "width": "90%",
  4143. "height": "90%",
  4144. "overflow": 'hidden'
  4145. },
  4146. "onresize": function () { }
  4147. }, {
  4148. closecallback: function () { }
  4149. }, {
  4150. "style": {
  4151. "height": "36px"
  4152. }
  4153. }).form; //创建窗体
  4154. _taskbar = {
  4155. "id": str + _formdiv.id,
  4156. "style": {
  4157. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4158. },
  4159. "name": "项目设计",
  4160. "forms": _formdiv,
  4161. "click": function () {
  4162. U.MD.D.I.openApplication(str, obj, info);
  4163. }
  4164. }
  4165. break;
  4166. }
  4167. const script1 = document.createElement("script");
  4168. script1.type = "text/javascript";
  4169. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4170. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4171. const script2 = document.createElement("script");
  4172. script2.type = "text/javascript";
  4173. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4174. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4175. const script3 = document.createElement("script");
  4176. script3.type = "text/javascript";
  4177. script3.charset = "UTF-8";
  4178. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4179. const script4 = document.createElement("script");
  4180. script4.type = "text/javascript";
  4181. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4182. script4.src = window.origin + "/js/Common/jietu2E.js";
  4183. if (_iframe) {
  4184. if (str == 'doc') {
  4185. _iframe = _formdiv.querySelector('iframe')
  4186. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4187. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4188. _iframe.contentWindow.document.body.appendChild(script1);
  4189. _iframe.contentWindow.document.body.appendChild(script2);
  4190. // _iframe.contentWindow.document.body.appendChild(script3);
  4191. _iframe.contentWindow.document.body.appendChild(script4);
  4192. })
  4193. if (onloadListener) {
  4194. _iframe.contentDocument.location.reload()
  4195. } else {
  4196. _iframe.contentDocument.location.reload()
  4197. }
  4198. } else if (str == 'courseDesign') {
  4199. U.UF.DL.iframeLoad(_iframe, function () {
  4200. // _iframe.contentWindow.U.MD.O.W.load();
  4201. // _iframe.contentWindow.document.body.appendChild(script1);
  4202. _iframe.contentWindow.document.body.appendChild(script2);
  4203. _iframe.contentWindow.document.body.appendChild(script4);
  4204. })
  4205. } else if (str == 'mind') {
  4206. _iframe = _formdiv.querySelector('iframe')
  4207. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4208. //
  4209. _iframe.contentWindow.document.body.appendChild(script1);
  4210. _iframe.contentWindow.document.body.appendChild(script2);
  4211. _iframe.contentWindow.document.body.appendChild(script4);
  4212. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4213. })
  4214. if (onloadListener) {
  4215. _iframe.contentDocument.location.reload()
  4216. } else {
  4217. _iframe.contentDocument.location.reload()
  4218. }
  4219. } else if (str == 'whiteboard') {
  4220. _iframe = _formdiv.querySelector('iframe')
  4221. let onloadListener = _iframe.onload = () => {
  4222. _iframe.contentWindow.document.body.appendChild(script1);
  4223. _iframe.contentWindow.document.body.appendChild(script2);
  4224. _iframe.contentWindow.document.body.appendChild(script4);
  4225. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4226. };
  4227. if (onloadListener) {
  4228. _iframe.contentDocument.location.reload()
  4229. } else {
  4230. _iframe.contentDocument.location.reload()
  4231. }
  4232. } else {
  4233. _iframe.onload = () => {
  4234. _iframe.contentWindow.document.body.appendChild(script1);
  4235. _iframe.contentWindow.document.body.appendChild(script2);
  4236. // _iframe.contentWindow.document.body.appendChild(script3);
  4237. _iframe.contentWindow.document.body.appendChild(script4);
  4238. };
  4239. }
  4240. _jie.onclick = async () => {
  4241. let text = ''
  4242. if (aTool == 1) {
  4243. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4244. } else if (aTool == 6) {
  4245. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4246. } else if (aTool == 3) {
  4247. text = await U.MD.D.I.getEditorContent(_iframe);
  4248. }
  4249. _loading.style.display = 'flex'
  4250. console.log(_loading);
  4251. var _ajs = _iframe.contentWindow.document.createElement("script");
  4252. _ajs.type = "text/javascript";
  4253. _ajs.innerHTML =
  4254. // 'console.log(' + _loading + ');\n' +
  4255. 'var _js = document.createElement("script");\n' +
  4256. '_js.type="text/javascript";\n' +
  4257. '_js.charset="UTF-8";\n' +
  4258. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4259. "_js.onload = function(){\n" +
  4260. ' var a = document.getElementsByTagName("img")\n' +
  4261. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4262. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4263. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4264. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4265. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4266. "beforeUpload_shishi(file," +
  4267. "'" +
  4268. _userid +
  4269. "'" +
  4270. ", " +
  4271. "'" +
  4272. _cid +
  4273. "'" +
  4274. ", " +
  4275. "'" +
  4276. _stage +
  4277. "'" +
  4278. ", " +
  4279. "'" +
  4280. _task +
  4281. "'" +
  4282. ", " +
  4283. "'" +
  4284. _tool +
  4285. "'" +
  4286. ", " +
  4287. "'" +
  4288. str + '_loadLi' +
  4289. "'" +
  4290. ", " +
  4291. "'" +
  4292. aTool +
  4293. "'" +
  4294. ", " +
  4295. "`" +
  4296. text +
  4297. "`" +
  4298. ")\n" +
  4299. " });\n" +
  4300. "}\n" +
  4301. "document.head.appendChild(_js);\n";
  4302. _iframe.contentWindow.document.head.appendChild(_ajs);
  4303. }
  4304. }
  4305. //U.MD.D.I.openClick(str);
  4306. //如果有任务栏信息
  4307. // if (_taskbar) {
  4308. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4309. // }
  4310. }
  4311. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4312. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4313. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4314. _userid = student.userid, //登录用户id
  4315. _username = student.student //用户名字
  4316. let _iframe;
  4317. let _cid = cid,
  4318. _stage = stage,
  4319. _task = task,
  4320. _tool = tool;
  4321. var _jie = $$("div", {
  4322. "style": {
  4323. "position": "absolute",
  4324. "bottom": "50px",
  4325. "right": "50px",
  4326. "zIndex": "9999",
  4327. "backgroundColor": "#2268bc",
  4328. "color": "#fff",
  4329. "padding": "12px 20px",
  4330. "cursor": "pointer",
  4331. "borderRadius": "4px",
  4332. },
  4333. "innerHTML": "提交作业"
  4334. })
  4335. let aTool = ''
  4336. let _loading = document.createElement('div')
  4337. _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;"
  4338. // _loading.id = "";
  4339. let _lchild = document.createElement('div')
  4340. let _limg = document.createElement('img')
  4341. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4342. _limg.style = "width: 26px;margin-right: 10px;"
  4343. _lchild.appendChild(_limg)
  4344. let _lspan = document.createElement('span')
  4345. _lspan.innerHTML = "上传中..."
  4346. _lchild.appendChild(_lspan)
  4347. _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%);"
  4348. _loading.appendChild(_lchild)
  4349. var _box = $$('div', {
  4350. "style": {
  4351. "position": "relative",
  4352. "width": "100%",
  4353. "height": "100%",
  4354. },
  4355. })
  4356. _box.appendChild(_loading)
  4357. _box.id = str + '_loadLi' + _userid
  4358. switch (str) {
  4359. case "whiteboard":
  4360. aTool = 1;
  4361. _iframe = $$("iframe", {
  4362. "frameborder": "no",
  4363. "border": "0",
  4364. "scrolling ": "no",
  4365. "style": {
  4366. "cssText": "border:0;width:100%;height:100%"
  4367. },
  4368. "src": "https://iwb.cocorobo.cn/"
  4369. })
  4370. _box.appendChild(_iframe);
  4371. _box.appendChild(_jie);
  4372. _formdiv = new U.UF.UI.form(
  4373. "电子白板-" + _username,
  4374. _box, {
  4375. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4376. "style": {
  4377. "width": "90%",
  4378. "height": "90%",
  4379. "overflow": 'hidden'
  4380. },
  4381. "onresize": function () { }
  4382. }, {
  4383. closecallback: function () { }
  4384. }, {
  4385. "style": {
  4386. "height": "36px"
  4387. }
  4388. }).form; //创建窗体
  4389. _taskbar = {
  4390. "id": str + _formdiv.id,
  4391. "style": {
  4392. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4393. },
  4394. "name": "电子白板",
  4395. "forms": _formdiv,
  4396. "click": function () {
  4397. U.MD.D.I.openApplication(str, obj, info);
  4398. }
  4399. }
  4400. break;
  4401. case "mind":
  4402. aTool = 3;
  4403. _iframe = $$("iframe", {
  4404. "frameborder": "no",
  4405. "border": "0",
  4406. "scrolling ": "no",
  4407. "style": {
  4408. "cssText": "border:0;width:100%;height:100%"
  4409. },
  4410. "src": "/kityminder-editor/dist/index.html"
  4411. })
  4412. _box.appendChild(_iframe);
  4413. _box.appendChild(_jie);
  4414. _formdiv = new U.UF.UI.form(
  4415. "思维导图-" + _username,
  4416. _box, { //"/jsmind/example/demo.html"
  4417. "id": "mind" + cid + stage + task + tool + _userid,
  4418. "style": {
  4419. "width": "90%",
  4420. "height": "90%",
  4421. "overflow": 'hidden'
  4422. },
  4423. "onresize": function () { }
  4424. }, {
  4425. closecallback: function () { }
  4426. }, {
  4427. "style": {
  4428. "height": "36px"
  4429. }
  4430. }).form; //创建窗体
  4431. _taskbar = {
  4432. "id": str + _formdiv.id,
  4433. "style": {
  4434. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4435. },
  4436. "name": "思维导图",
  4437. "forms": _formdiv,
  4438. "click": function () {
  4439. U.MD.D.I.openApplication(str, obj, info);
  4440. }
  4441. }
  4442. break;
  4443. case "MindMap":
  4444. aTool = 3;
  4445. _iframe = $$("iframe", {
  4446. "frameborder": "no",
  4447. "border": "0",
  4448. "scrolling ": "no",
  4449. "style": {
  4450. "cssText": "border:0;width:100%;height:100%"
  4451. },
  4452. "src": "//cloud.cocorobo.cn/mind/"
  4453. })
  4454. _box.appendChild(_iframe);
  4455. _box.appendChild(_jie);
  4456. _formdiv = new U.UF.UI.form(
  4457. "思维导图-" + _username,
  4458. _box, { //"/jsmind/example/demo.html"
  4459. "id": "mind" + cid + stage + task + tool + _userid,
  4460. "style": {
  4461. "width": "90%",
  4462. "height": "90%",
  4463. "overflow": 'hidden'
  4464. },
  4465. "onresize": function () { }
  4466. }, {
  4467. closecallback: function () { }
  4468. }, {
  4469. "style": {
  4470. "height": "36px"
  4471. }
  4472. }).form; //创建窗体
  4473. _taskbar = {
  4474. "id": str + _formdiv.id,
  4475. "style": {
  4476. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4477. },
  4478. "name": "思维导图",
  4479. "forms": _formdiv,
  4480. "click": function () {
  4481. U.MD.D.I.openApplication(str, obj, info);
  4482. }
  4483. }
  4484. break;
  4485. case "doc":
  4486. aTool = 6;
  4487. _iframe = $$("iframe", {
  4488. "frameborder": "no",
  4489. "border": "0",
  4490. "scrolling ": "no",
  4491. "style": {
  4492. "cssText": "border:0;width:100%;height:100%"
  4493. },
  4494. "src": "/Office/Word/WordEditArea.htm"
  4495. })
  4496. _box.appendChild(_iframe);
  4497. _box.appendChild(_jie);
  4498. _formdiv = new U.UF.UI.form(
  4499. "协同文档-" + _username,
  4500. _box, {
  4501. "id": "doc" + cid + stage + task + tool + _userid,
  4502. "style": {
  4503. "width": "90%",
  4504. "height": "90%",
  4505. "overflow": 'hidden'
  4506. },
  4507. "onresize": function () { }
  4508. }, {
  4509. closecallback: function () { }
  4510. }, {
  4511. "style": {
  4512. "height": "36px"
  4513. }
  4514. }).form; //创建窗体
  4515. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4516. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4517. })
  4518. _taskbar = {
  4519. "id": str + _formdiv.id,
  4520. "style": {
  4521. "backgroundImage": "url(/img/icon/doc.png)"
  4522. },
  4523. "name": "协同文档",
  4524. "forms": _formdiv,
  4525. "click": function () {
  4526. U.MD.D.I.openApplication(str, obj, info);
  4527. }
  4528. }
  4529. break;
  4530. case "mindNetwork": //好友打开
  4531. aTool = 7;
  4532. _iframe = $$("iframe", {
  4533. "webkitallowfullscreen": "",
  4534. "mozallowfullscreen": "",
  4535. "allowfullscreen": "",
  4536. "frameborder": "no",
  4537. "border": "0",
  4538. "scrolling ": "no",
  4539. "style": {
  4540. "cssText": "border:0; width:100%; height:100%;"
  4541. },
  4542. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4543. })
  4544. _box.appendChild(_iframe);
  4545. _box.appendChild(_jie);
  4546. _formdiv = new U.UF.UI.form(
  4547. "思维网格-" + _username,
  4548. _box, {
  4549. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4550. "style": {
  4551. "width": "90%",
  4552. "height": "90%",
  4553. "overflow": 'hidden'
  4554. },
  4555. "onresize": function () { }
  4556. }, {
  4557. closecallback: function () { }
  4558. }, {
  4559. "style": {
  4560. "height": "36px"
  4561. }
  4562. }).form; //创建窗体
  4563. _taskbar = {
  4564. "id": str + _formdiv.id,
  4565. "style": {
  4566. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4567. },
  4568. "name": "思维网格",
  4569. "forms": _formdiv,
  4570. "click": function () {
  4571. U.MD.D.I.openApplication(str, obj, info);
  4572. }
  4573. }
  4574. break;
  4575. case "courseDesign":
  4576. _iframe = $$("iframe", {
  4577. "webkitallowfullscreen": "",
  4578. "mozallowfullscreen": "",
  4579. "allowfullscreen": "",
  4580. "frameborder": "no",
  4581. "border": "0",
  4582. "scrolling ": "no",
  4583. "style": {
  4584. "cssText": "border:0; width:100%; height:100%;"
  4585. },
  4586. "src": "/course-design-vue"
  4587. })
  4588. _box.appendChild(_iframe);
  4589. _box.appendChild(_jie);
  4590. _formdiv = new U.UF.UI.form(
  4591. "项目设计-" + _username,
  4592. _box, {
  4593. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4594. "style": {
  4595. "width": "90%",
  4596. "height": "90%",
  4597. "overflow": 'hidden'
  4598. },
  4599. "onresize": function () { }
  4600. }, {
  4601. closecallback: function () { }
  4602. }, {
  4603. "style": {
  4604. "height": "36px"
  4605. }
  4606. }).form; //创建窗体
  4607. _taskbar = {
  4608. "id": str + _formdiv.id,
  4609. "style": {
  4610. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4611. },
  4612. "name": "项目设计",
  4613. "forms": _formdiv,
  4614. "click": function () {
  4615. U.MD.D.I.openApplication(str, obj, info);
  4616. }
  4617. }
  4618. break;
  4619. }
  4620. const script1 = document.createElement("script");
  4621. script1.type = "text/javascript";
  4622. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4623. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4624. const script2 = document.createElement("script");
  4625. script2.type = "text/javascript";
  4626. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4627. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4628. const script3 = document.createElement("script");
  4629. script3.type = "text/javascript";
  4630. script3.charset = "UTF-8";
  4631. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4632. const script4 = document.createElement("script");
  4633. script4.type = "text/javascript";
  4634. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4635. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4636. if (_iframe) {
  4637. if (str == 'doc') {
  4638. _iframe = _formdiv.querySelector('iframe')
  4639. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4640. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4641. _iframe.contentWindow.document.body.appendChild(script1);
  4642. _iframe.contentWindow.document.body.appendChild(script2);
  4643. // _iframe.contentWindow.document.body.appendChild(script3);
  4644. _iframe.contentWindow.document.body.appendChild(script4);
  4645. })
  4646. if (onloadListener) {
  4647. _iframe.contentDocument.location.reload()
  4648. } else {
  4649. _iframe.contentDocument.location.reload()
  4650. }
  4651. } else if (str == 'courseDesign') {
  4652. U.UF.DL.iframeLoad(_iframe, function () {
  4653. // _iframe.contentWindow.U.MD.O.W.load();
  4654. // _iframe.contentWindow.document.body.appendChild(script1);
  4655. _iframe.contentWindow.document.body.appendChild(script2);
  4656. _iframe.contentWindow.document.body.appendChild(script4);
  4657. })
  4658. } else if (str == 'mind') {
  4659. _iframe = _formdiv.querySelector('iframe')
  4660. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4661. //
  4662. _iframe.contentWindow.document.body.appendChild(script1);
  4663. _iframe.contentWindow.document.body.appendChild(script2);
  4664. _iframe.contentWindow.document.body.appendChild(script4);
  4665. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4666. })
  4667. if (onloadListener) {
  4668. _iframe.contentDocument.location.reload()
  4669. } else {
  4670. _iframe.contentDocument.location.reload()
  4671. }
  4672. } else if (str == 'whiteboard') {
  4673. _iframe = _formdiv.querySelector('iframe')
  4674. let onloadListener = _iframe.onload = () => {
  4675. _iframe.contentWindow.document.body.appendChild(script1);
  4676. _iframe.contentWindow.document.body.appendChild(script2);
  4677. _iframe.contentWindow.document.body.appendChild(script4);
  4678. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4679. };
  4680. if (onloadListener) {
  4681. _iframe.contentDocument.location.reload()
  4682. } else {
  4683. _iframe.contentDocument.location.reload()
  4684. }
  4685. } else {
  4686. _iframe.onload = () => {
  4687. _iframe.contentWindow.document.body.appendChild(script1);
  4688. _iframe.contentWindow.document.body.appendChild(script2);
  4689. // _iframe.contentWindow.document.body.appendChild(script3);
  4690. _iframe.contentWindow.document.body.appendChild(script4);
  4691. };
  4692. }
  4693. _jie.onclick = async () => {
  4694. let text = ''
  4695. if (aTool == 1) {
  4696. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4697. } else if (aTool == 6) {
  4698. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4699. } else if (aTool == 3) {
  4700. text = await U.MD.D.I.getEditorContent(_iframe);
  4701. }
  4702. _loading.style.display = 'flex'
  4703. console.log(_loading);
  4704. var _ajs = _iframe.contentWindow.document.createElement("script");
  4705. _ajs.type = "text/javascript";
  4706. _ajs.innerHTML =
  4707. // 'console.log(' + _loading + ');\n' +
  4708. 'var _js = document.createElement("script");\n' +
  4709. '_js.type="text/javascript";\n' +
  4710. '_js.charset="UTF-8";\n' +
  4711. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4712. "_js.onload = function(){\n" +
  4713. ' var a = document.getElementsByTagName("img")\n' +
  4714. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4715. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4716. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4717. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4718. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4719. "beforeUpload_shishi(file," +
  4720. "'" +
  4721. _userid +
  4722. "'" +
  4723. ", " +
  4724. "'" +
  4725. _cid +
  4726. "'" +
  4727. ", " +
  4728. "'" +
  4729. _stage +
  4730. "'" +
  4731. ", " +
  4732. "'" +
  4733. _task +
  4734. "'" +
  4735. ", " +
  4736. "'" +
  4737. _tool +
  4738. "'" +
  4739. ", " +
  4740. "'" +
  4741. str + '_loadLi' + _userid +
  4742. "'" +
  4743. ", " +
  4744. "'" +
  4745. aTool +
  4746. "'" +
  4747. ", " +
  4748. "`" +
  4749. text +
  4750. "`" +
  4751. ")\n" +
  4752. " });\n" +
  4753. "}\n" +
  4754. "document.head.appendChild(_js);\n";
  4755. _iframe.contentWindow.document.head.appendChild(_ajs);
  4756. }
  4757. }
  4758. }
  4759. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  4760. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4761. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4762. _userid = student.userid, //登录用户id
  4763. _username = student.student //用户名字
  4764. let _iframe;
  4765. let _cid = cid,
  4766. _stage = stage,
  4767. _task = task,
  4768. _tool = tool;
  4769. var _jie = $$("div", {
  4770. "style": {
  4771. "position": "absolute",
  4772. "bottom": "50px",
  4773. "right": "50px",
  4774. "zIndex": "9999",
  4775. "backgroundColor": "#2268bc",
  4776. "color": "#fff",
  4777. "padding": "12px 20px",
  4778. "cursor": "pointer",
  4779. "borderRadius": "4px",
  4780. },
  4781. "innerHTML": "提交作业"
  4782. })
  4783. let aTool = ''
  4784. let _loading = document.createElement('div')
  4785. _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;"
  4786. // _loading.id = "";
  4787. let _lchild = document.createElement('div')
  4788. let _limg = document.createElement('img')
  4789. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4790. _limg.style = "width: 26px;margin-right: 10px;"
  4791. _lchild.appendChild(_limg)
  4792. let _lspan = document.createElement('span')
  4793. _lspan.innerHTML = "上传中..."
  4794. _lchild.appendChild(_lspan)
  4795. _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%);"
  4796. _loading.appendChild(_lchild)
  4797. var _box = $$('div', {
  4798. "style": {
  4799. "position": "relative",
  4800. "width": "100%",
  4801. "height": "100%",
  4802. },
  4803. })
  4804. _box.appendChild(_loading)
  4805. _box.id = str + '_loadLi' + _userid
  4806. switch (str) {
  4807. case "whiteboard":
  4808. aTool = 1;
  4809. _iframe = $$("iframe", {
  4810. "frameborder": "no",
  4811. "border": "0",
  4812. "scrolling ": "no",
  4813. "style": {
  4814. "cssText": "border:0;width:100%;height:100%"
  4815. },
  4816. "src": "https://iwb.cocorobo.cn/"
  4817. })
  4818. _box.appendChild(_iframe);
  4819. _box.appendChild(_jie);
  4820. _formdiv = new U.UF.UI.form(
  4821. "电子白板-" + _username,
  4822. _box, {
  4823. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4824. "style": {
  4825. "width": "90%",
  4826. "height": "90%",
  4827. "overflow": 'hidden'
  4828. },
  4829. "onresize": function () { }
  4830. }, {
  4831. closecallback: function () { }
  4832. }, {
  4833. "style": {
  4834. "height": "36px"
  4835. }
  4836. }).form; //创建窗体
  4837. _taskbar = {
  4838. "id": str + _formdiv.id,
  4839. "style": {
  4840. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4841. },
  4842. "name": "电子白板",
  4843. "forms": _formdiv,
  4844. "click": function () {
  4845. U.MD.D.I.openApplication(str, obj, info);
  4846. }
  4847. }
  4848. break;
  4849. case "mind":
  4850. aTool = 3;
  4851. _iframe = $$("iframe", {
  4852. "frameborder": "no",
  4853. "border": "0",
  4854. "scrolling ": "no",
  4855. "style": {
  4856. "cssText": "border:0;width:100%;height:100%"
  4857. },
  4858. "src": "/kityminder-editor/dist/index.html"
  4859. })
  4860. _box.appendChild(_iframe);
  4861. _box.appendChild(_jie);
  4862. _formdiv = new U.UF.UI.form(
  4863. "思维导图-" + _username,
  4864. _box, { //"/jsmind/example/demo.html"
  4865. "id": "mind" + cid + stage + task + tool + _userid,
  4866. "style": {
  4867. "width": "90%",
  4868. "height": "90%",
  4869. "overflow": 'hidden'
  4870. },
  4871. "onresize": function () { }
  4872. }, {
  4873. closecallback: function () { }
  4874. }, {
  4875. "style": {
  4876. "height": "36px"
  4877. }
  4878. }).form; //创建窗体
  4879. _taskbar = {
  4880. "id": str + _formdiv.id,
  4881. "style": {
  4882. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4883. },
  4884. "name": "思维导图",
  4885. "forms": _formdiv,
  4886. "click": function () {
  4887. U.MD.D.I.openApplication(str, obj, info);
  4888. }
  4889. }
  4890. break;
  4891. case "MindMap":
  4892. aTool = 3;
  4893. _iframe = $$("iframe", {
  4894. "frameborder": "no",
  4895. "border": "0",
  4896. "scrolling ": "no",
  4897. "style": {
  4898. "cssText": "border:0;width:100%;height:100%"
  4899. },
  4900. "src": "//cloud.cocorobo.cn/mind/"
  4901. })
  4902. _box.appendChild(_iframe);
  4903. _box.appendChild(_jie);
  4904. _formdiv = new U.UF.UI.form(
  4905. "思维导图-" + _username,
  4906. _box, { //"/jsmind/example/demo.html"
  4907. "id": "mind" + cid + stage + task + tool + _userid,
  4908. "style": {
  4909. "width": "90%",
  4910. "height": "90%",
  4911. "overflow": 'hidden'
  4912. },
  4913. "onresize": function () { }
  4914. }, {
  4915. closecallback: function () { }
  4916. }, {
  4917. "style": {
  4918. "height": "36px"
  4919. }
  4920. }).form; //创建窗体
  4921. _taskbar = {
  4922. "id": str + _formdiv.id,
  4923. "style": {
  4924. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4925. },
  4926. "name": "思维导图",
  4927. "forms": _formdiv,
  4928. "click": function () {
  4929. U.MD.D.I.openApplication(str, obj, info);
  4930. }
  4931. }
  4932. break;
  4933. case "doc":
  4934. aTool = 6;
  4935. _iframe = $$("iframe", {
  4936. "frameborder": "no",
  4937. "border": "0",
  4938. "scrolling ": "no",
  4939. "style": {
  4940. "cssText": "border:0;width:100%;height:100%"
  4941. },
  4942. "src": "/Office/Word/WordEditArea.htm"
  4943. })
  4944. _box.appendChild(_iframe);
  4945. _box.appendChild(_jie);
  4946. _formdiv = new U.UF.UI.form(
  4947. "协同文档-" + _username,
  4948. _box, {
  4949. "id": "doc" + cid + stage + task + tool + _userid,
  4950. "style": {
  4951. "width": "90%",
  4952. "height": "90%",
  4953. "overflow": 'hidden'
  4954. },
  4955. "onresize": function () { }
  4956. }, {
  4957. closecallback: function () { }
  4958. }, {
  4959. "style": {
  4960. "height": "36px"
  4961. }
  4962. }).form; //创建窗体
  4963. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4964. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4965. })
  4966. _taskbar = {
  4967. "id": str + _formdiv.id,
  4968. "style": {
  4969. "backgroundImage": "url(/img/icon/doc.png)"
  4970. },
  4971. "name": "协同文档",
  4972. "forms": _formdiv,
  4973. "click": function () {
  4974. U.MD.D.I.openApplication(str, obj, info);
  4975. }
  4976. }
  4977. break;
  4978. case "mindNetwork": //好友打开
  4979. aTool = 7;
  4980. _iframe = $$("iframe", {
  4981. "webkitallowfullscreen": "",
  4982. "mozallowfullscreen": "",
  4983. "allowfullscreen": "",
  4984. "frameborder": "no",
  4985. "border": "0",
  4986. "scrolling ": "no",
  4987. "style": {
  4988. "cssText": "border:0; width:100%; height:100%;"
  4989. },
  4990. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4991. })
  4992. _box.appendChild(_iframe);
  4993. _box.appendChild(_jie);
  4994. _formdiv = new U.UF.UI.form(
  4995. "思维网格-" + _username,
  4996. _box, {
  4997. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4998. "style": {
  4999. "width": "90%",
  5000. "height": "90%",
  5001. "overflow": 'hidden'
  5002. },
  5003. "onresize": function () { }
  5004. }, {
  5005. closecallback: function () { }
  5006. }, {
  5007. "style": {
  5008. "height": "36px"
  5009. }
  5010. }).form; //创建窗体
  5011. _taskbar = {
  5012. "id": str + _formdiv.id,
  5013. "style": {
  5014. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5015. },
  5016. "name": "思维网格",
  5017. "forms": _formdiv,
  5018. "click": function () {
  5019. U.MD.D.I.openApplication(str, obj, info);
  5020. }
  5021. }
  5022. break;
  5023. case "courseDesign":
  5024. _iframe = $$("iframe", {
  5025. "webkitallowfullscreen": "",
  5026. "mozallowfullscreen": "",
  5027. "allowfullscreen": "",
  5028. "frameborder": "no",
  5029. "border": "0",
  5030. "scrolling ": "no",
  5031. "style": {
  5032. "cssText": "border:0; width:100%; height:100%;"
  5033. },
  5034. "src": "/course-design-vue"
  5035. })
  5036. _box.appendChild(_iframe);
  5037. _box.appendChild(_jie);
  5038. _formdiv = new U.UF.UI.form(
  5039. "项目设计-" + _username,
  5040. _box, {
  5041. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5042. "style": {
  5043. "width": "90%",
  5044. "height": "90%",
  5045. "overflow": 'hidden'
  5046. },
  5047. "onresize": function () { }
  5048. }, {
  5049. closecallback: function () { }
  5050. }, {
  5051. "style": {
  5052. "height": "36px"
  5053. }
  5054. }).form; //创建窗体
  5055. _taskbar = {
  5056. "id": str + _formdiv.id,
  5057. "style": {
  5058. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5059. },
  5060. "name": "项目设计",
  5061. "forms": _formdiv,
  5062. "click": function () {
  5063. U.MD.D.I.openApplication(str, obj, info);
  5064. }
  5065. }
  5066. break;
  5067. }
  5068. const script1 = document.createElement("script");
  5069. script1.type = "text/javascript";
  5070. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5071. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5072. const script2 = document.createElement("script");
  5073. script2.type = "text/javascript";
  5074. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5075. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5076. const script3 = document.createElement("script");
  5077. script3.type = "text/javascript";
  5078. script3.charset = "UTF-8";
  5079. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5080. const script4 = document.createElement("script");
  5081. script4.type = "text/javascript";
  5082. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5083. script4.src = window.origin + "/js/Common/jietu2E.js";
  5084. if (_iframe) {
  5085. if (str == 'doc') {
  5086. _iframe = _formdiv.querySelector('iframe')
  5087. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5088. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5089. _iframe.contentWindow.document.body.appendChild(script1);
  5090. _iframe.contentWindow.document.body.appendChild(script2);
  5091. // _iframe.contentWindow.document.body.appendChild(script3);
  5092. _iframe.contentWindow.document.body.appendChild(script4);
  5093. })
  5094. if (onloadListener) {
  5095. _iframe.contentDocument.location.reload()
  5096. } else {
  5097. _iframe.contentDocument.location.reload()
  5098. }
  5099. } else if (str == 'courseDesign') {
  5100. U.UF.DL.iframeLoad(_iframe, function () {
  5101. // _iframe.contentWindow.U.MD.O.W.load();
  5102. // _iframe.contentWindow.document.body.appendChild(script1);
  5103. _iframe.contentWindow.document.body.appendChild(script2);
  5104. _iframe.contentWindow.document.body.appendChild(script4);
  5105. })
  5106. } else if (str == 'mind') {
  5107. _iframe = _formdiv.querySelector('iframe')
  5108. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5109. //
  5110. _iframe.contentWindow.document.body.appendChild(script1);
  5111. _iframe.contentWindow.document.body.appendChild(script2);
  5112. _iframe.contentWindow.document.body.appendChild(script4);
  5113. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5114. })
  5115. if (onloadListener) {
  5116. _iframe.contentDocument.location.reload()
  5117. } else {
  5118. _iframe.contentDocument.location.reload()
  5119. }
  5120. } else if (str == 'whiteboard') {
  5121. _iframe = _formdiv.querySelector('iframe')
  5122. let onloadListener = _iframe.onload = () => {
  5123. _iframe.contentWindow.document.body.appendChild(script1);
  5124. _iframe.contentWindow.document.body.appendChild(script2);
  5125. _iframe.contentWindow.document.body.appendChild(script4);
  5126. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5127. };
  5128. if (onloadListener) {
  5129. _iframe.contentDocument.location.reload()
  5130. } else {
  5131. _iframe.contentDocument.location.reload()
  5132. }
  5133. } else {
  5134. _iframe.onload = () => {
  5135. _iframe.contentWindow.document.body.appendChild(script1);
  5136. _iframe.contentWindow.document.body.appendChild(script2);
  5137. // _iframe.contentWindow.document.body.appendChild(script3);
  5138. _iframe.contentWindow.document.body.appendChild(script4);
  5139. };
  5140. }
  5141. _jie.onclick = async () => {
  5142. let text = ''
  5143. if (aTool == 1) {
  5144. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5145. } else if (aTool == 6) {
  5146. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5147. } else if (aTool == 3) {
  5148. text = await U.MD.D.I.getEditorContent(_iframe);
  5149. }
  5150. _loading.style.display = 'flex'
  5151. console.log(_loading);
  5152. var _ajs = _iframe.contentWindow.document.createElement("script");
  5153. _ajs.type = "text/javascript";
  5154. _ajs.innerHTML =
  5155. // 'console.log(' + _loading + ');\n' +
  5156. 'var _js = document.createElement("script");\n' +
  5157. '_js.type="text/javascript";\n' +
  5158. '_js.charset="UTF-8";\n' +
  5159. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5160. "_js.onload = function(){\n" +
  5161. ' var a = document.getElementsByTagName("img")\n' +
  5162. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5163. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5164. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5165. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5166. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5167. "beforeUpload_shishi(file," +
  5168. "'" +
  5169. _userid +
  5170. "'" +
  5171. ", " +
  5172. "'" +
  5173. _cid +
  5174. "'" +
  5175. ", " +
  5176. "'" +
  5177. _stage +
  5178. "'" +
  5179. ", " +
  5180. "'" +
  5181. _task +
  5182. "'" +
  5183. ", " +
  5184. "'" +
  5185. _tool +
  5186. "'" +
  5187. ", " +
  5188. "'" +
  5189. str + '_loadLi' + _userid +
  5190. "'" +
  5191. ", " +
  5192. "'" +
  5193. aTool +
  5194. "'" +
  5195. ", " +
  5196. "`" +
  5197. text +
  5198. "`" +
  5199. ")\n" +
  5200. " });\n" +
  5201. "}\n" +
  5202. "document.head.appendChild(_js);\n";
  5203. _iframe.contentWindow.document.head.appendChild(_ajs);
  5204. }
  5205. }
  5206. }
  5207. U.MD.D.I.getEditorContent = function (iframe) {
  5208. return new Promise((resolve, reject) => {
  5209. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5210. console.log(content);
  5211. resolve(content)
  5212. });
  5213. });
  5214. }
  5215. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5216. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5217. // if (res.value[0].length > 0) {
  5218. // // resolve(res.value[0][0].text);
  5219. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5220. // $(fileInput).val('');
  5221. // });
  5222. // }
  5223. // }, [], { "type": "GET", "withCredentials": true });
  5224. var xmlhttp;
  5225. var Mac, Sn, DeviceId
  5226. if (window.XMLHttpRequest) {
  5227. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5228. xmlhttp = new XMLHttpRequest();
  5229. }
  5230. else {
  5231. // IE6, IE5 浏览器执行代码
  5232. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5233. }
  5234. xmlhttp.onreadystatechange = function () {
  5235. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5236. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5237. // resolve(res.value[0][0].text);
  5238. if (type == '2') {
  5239. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5240. $(fileInput).val('');
  5241. });
  5242. } else if (type == '3') {
  5243. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5244. }
  5245. } else {
  5246. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5247. }
  5248. }
  5249. }
  5250. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5251. xmlhttp.send();
  5252. }
  5253. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5254. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5255. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5256. _userinfo = US.userInfo, //登录用户信息
  5257. _userid = US.userInfo.userid //登录用户id
  5258. let _iframe;
  5259. let _cid = cid,
  5260. _stage = stage,
  5261. _task = task,
  5262. _tool = tool;
  5263. var _jie = $$("div", {
  5264. "style": {
  5265. "position": "absolute",
  5266. "bottom": "50px",
  5267. "right": "50px",
  5268. "zIndex": "9999",
  5269. "backgroundColor": "#2268bc",
  5270. "color": "#fff",
  5271. "padding": "12px 20px",
  5272. "cursor": "pointer",
  5273. "borderRadius": "4px",
  5274. },
  5275. "innerHTML": "确认并提交"
  5276. })
  5277. let aTool = ''
  5278. let _loading = document.createElement('div')
  5279. _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;"
  5280. // _loading.id = "";
  5281. let _lchild = document.createElement('div')
  5282. let _limg = document.createElement('img')
  5283. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5284. _limg.style = "width: 26px;margin-right: 10px;"
  5285. _lchild.appendChild(_limg)
  5286. let _lspan = document.createElement('span')
  5287. _lspan.innerHTML = "上传中..."
  5288. _lchild.appendChild(_lspan)
  5289. _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%);"
  5290. _loading.appendChild(_lchild)
  5291. var _box = $$('div', {
  5292. "style": {
  5293. "position": "relative",
  5294. "width": "100%",
  5295. "height": "100%",
  5296. },
  5297. })
  5298. _box.appendChild(_loading)
  5299. _box.id = str + '_loadLi'
  5300. switch (str) {
  5301. case "whiteboard":
  5302. aTool = 1;
  5303. _iframe = $$("iframe", {
  5304. "frameborder": "no",
  5305. "border": "0",
  5306. "scrolling ": "no",
  5307. "style": {
  5308. "cssText": "border:0;width:100%;height:100%"
  5309. },
  5310. "src": "https://iwb.cocorobo.cn/"
  5311. })
  5312. _box.appendChild(_iframe);
  5313. _box.appendChild(_jie);
  5314. _formdiv = new U.UF.UI.form(
  5315. "电子白板",
  5316. _box, {
  5317. "id": "whiteboards" + cid + stage + task + tool,
  5318. "style": {
  5319. "width": "90%",
  5320. "height": "90%",
  5321. "overflow": 'hidden'
  5322. },
  5323. "onresize": function () { }
  5324. }, {
  5325. closecallback: function () { }
  5326. }, {
  5327. "style": {
  5328. "height": "36px"
  5329. }
  5330. }).form; //创建窗体
  5331. _taskbar = {
  5332. "id": str + _formdiv.id,
  5333. "style": {
  5334. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5335. },
  5336. "name": "电子白板",
  5337. "forms": _formdiv,
  5338. "click": function () {
  5339. U.MD.D.I.openApplication(str, obj, info);
  5340. }
  5341. }
  5342. break;
  5343. case "mind":
  5344. aTool = 3;
  5345. _iframe = $$("iframe", {
  5346. "frameborder": "no",
  5347. "border": "0",
  5348. "scrolling ": "no",
  5349. "style": {
  5350. "cssText": "border:0;width:100%;height:100%"
  5351. },
  5352. "src": "/kityminder-editor/dist/index.html"
  5353. });
  5354. _box.appendChild(_iframe);
  5355. _box.appendChild(_jie);
  5356. _formdiv = new U.UF.UI.form(
  5357. "思维导图",
  5358. _box, { //"/jsmind/example/demo.html"
  5359. "id": "minds" + cid + stage + task + tool,
  5360. "style": {
  5361. "width": "90%",
  5362. "height": "90%",
  5363. "overflow": 'hidden'
  5364. },
  5365. "onresize": function () { }
  5366. }, {
  5367. closecallback: function () { }
  5368. }, {
  5369. "style": {
  5370. "height": "36px"
  5371. }
  5372. }).form; //创建窗体
  5373. _taskbar = {
  5374. "id": str + _formdiv.id,
  5375. "style": {
  5376. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5377. },
  5378. "name": "思维导图",
  5379. "forms": _formdiv,
  5380. "click": function () {
  5381. U.MD.D.I.openApplication(str, obj, info);
  5382. }
  5383. }
  5384. break;
  5385. case "doc":
  5386. aTool = 6;
  5387. _iframe = $$("iframe", {
  5388. "frameborder": "no",
  5389. "border": "0",
  5390. "scrolling ": "no",
  5391. "style": {
  5392. "cssText": "border:0;width:100%;height:100%"
  5393. },
  5394. "src": "/Office/Word/WordEditArea.htm"
  5395. })
  5396. _box.appendChild(_iframe);
  5397. _box.appendChild(_jie);
  5398. _formdiv = new U.UF.UI.form(
  5399. "协同文档",
  5400. _box, {
  5401. "id": "docs" + cid + stage + task + tool,
  5402. "style": {
  5403. "width": "90%",
  5404. "height": "90%",
  5405. "overflow": 'hidden'
  5406. },
  5407. "onresize": function () { }
  5408. }, {
  5409. closecallback: function () { }
  5410. }, {
  5411. "style": {
  5412. "height": "36px"
  5413. }
  5414. }).form; //创建窗体
  5415. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5416. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5417. })
  5418. _taskbar = {
  5419. "id": str + _formdiv.id,
  5420. "style": {
  5421. "backgroundImage": "url(/img/icon/doc.png)"
  5422. },
  5423. "name": "协同文档",
  5424. "forms": _formdiv,
  5425. "click": function () {
  5426. U.MD.D.I.openApplication(str, obj, info);
  5427. }
  5428. }
  5429. break;
  5430. }
  5431. const script1 = document.createElement("script");
  5432. script1.type = "text/javascript";
  5433. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5434. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5435. const script2 = document.createElement("script");
  5436. script2.type = "text/javascript";
  5437. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5438. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5439. const script3 = document.createElement("script");
  5440. script3.type = "text/javascript";
  5441. script3.charset = "UTF-8";
  5442. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5443. const script4 = document.createElement("script");
  5444. script4.type = "text/javascript";
  5445. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5446. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5447. if (_iframe) {
  5448. if (str == 'doc') {
  5449. _iframe = _formdiv.querySelector('iframe')
  5450. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5451. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5452. _iframe.contentWindow.document.body.appendChild(script1);
  5453. _iframe.contentWindow.document.body.appendChild(script2);
  5454. // _iframe.contentWindow.document.body.appendChild(script3);
  5455. _iframe.contentWindow.document.body.appendChild(script4);
  5456. })
  5457. if (onloadListener) {
  5458. _iframe.contentDocument.location.reload()
  5459. } else {
  5460. _iframe.contentDocument.location.reload()
  5461. }
  5462. } else if (str == 'mind') {
  5463. _iframe = _formdiv.querySelector('iframe')
  5464. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5465. _iframe.contentWindow.document.body.appendChild(script1);
  5466. _iframe.contentWindow.document.body.appendChild(script2);
  5467. _iframe.contentWindow.document.body.appendChild(script4);
  5468. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5469. })
  5470. if (onloadListener) {
  5471. _iframe.contentDocument.location.reload()
  5472. } else {
  5473. _iframe.contentDocument.location.reload()
  5474. }
  5475. } else {
  5476. _iframe.onload = () => {
  5477. _iframe.contentWindow.document.body.appendChild(script1);
  5478. _iframe.contentWindow.document.body.appendChild(script2);
  5479. // _iframe.contentWindow.document.body.appendChild(script3);
  5480. _iframe.contentWindow.document.body.appendChild(script4);
  5481. };
  5482. }
  5483. _jie.onclick = async () => {
  5484. let text = ''
  5485. if (aTool == 6) {
  5486. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5487. } else if (aTool == 3) {
  5488. text = await U.MD.D.I.getEditorContent(_iframe);
  5489. }
  5490. _loading.style.display = 'flex'
  5491. console.log(_loading);
  5492. var _ajs = _iframe.contentWindow.document.createElement("script");
  5493. _ajs.type = "text/javascript";
  5494. _ajs.innerHTML =
  5495. // 'console.log(' + _loading + ');\n' +
  5496. 'var _js = document.createElement("script");\n' +
  5497. '_js.type="text/javascript";\n' +
  5498. '_js.charset="UTF-8";\n' +
  5499. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5500. "_js.onload = function(){\n" +
  5501. ' var a = document.getElementsByTagName("img")\n' +
  5502. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5503. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5504. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5505. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5506. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5507. "beforeUpload_shishi(file," +
  5508. "'" +
  5509. _userid +
  5510. "'" +
  5511. ", " +
  5512. "'" +
  5513. _cid +
  5514. "'" +
  5515. ", " +
  5516. "'" +
  5517. _stage +
  5518. "'" +
  5519. ", " +
  5520. "'" +
  5521. _task +
  5522. "'" +
  5523. ", " +
  5524. "'" +
  5525. _tool +
  5526. "'" +
  5527. ", " +
  5528. "'" +
  5529. str + '_loadLi' +
  5530. "'" +
  5531. ", " +
  5532. "'" +
  5533. aTool +
  5534. "'" +
  5535. ", " +
  5536. "`" +
  5537. text +
  5538. "`" +
  5539. ")\n" +
  5540. " });\n" +
  5541. "}\n" +
  5542. "document.head.appendChild(_js);\n";
  5543. _iframe.contentWindow.document.head.appendChild(_ajs);
  5544. }
  5545. }
  5546. //U.MD.D.I.openClick(str);
  5547. //如果有任务栏信息
  5548. // if (_taskbar) {
  5549. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5550. // }
  5551. }
  5552. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  5553. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5554. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5555. _userinfo = US.userInfo, //登录用户信息
  5556. _userid = US.userInfo.userid //登录用户id
  5557. let _iframe;
  5558. let _cid = cid,
  5559. _stage = stage,
  5560. _task = task,
  5561. _tool = tool;
  5562. var _jie = $$("div", {
  5563. "style": {
  5564. "position": "absolute",
  5565. "bottom": "50px",
  5566. "right": "50px",
  5567. "zIndex": "9999",
  5568. "backgroundColor": "#2268bc",
  5569. "color": "#fff",
  5570. "padding": "12px 20px",
  5571. "cursor": "pointer",
  5572. "borderRadius": "4px",
  5573. },
  5574. "innerHTML": "确认并提交"
  5575. })
  5576. let aTool = ''
  5577. let _loading = document.createElement('div')
  5578. _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;"
  5579. // _loading.id = "";
  5580. let _lchild = document.createElement('div')
  5581. let _limg = document.createElement('img')
  5582. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5583. _limg.style = "width: 26px;margin-right: 10px;"
  5584. _lchild.appendChild(_limg)
  5585. let _lspan = document.createElement('span')
  5586. _lspan.innerHTML = "上传中..."
  5587. _lchild.appendChild(_lspan)
  5588. _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%);"
  5589. _loading.appendChild(_lchild)
  5590. var _box = $$('div', {
  5591. "style": {
  5592. "position": "relative",
  5593. "width": "100%",
  5594. "height": "100%",
  5595. },
  5596. })
  5597. _box.appendChild(_loading)
  5598. _box.id = str + '_loadLi'
  5599. switch (str) {
  5600. case "whiteboard":
  5601. aTool = 1;
  5602. _iframe = $$("iframe", {
  5603. "frameborder": "no",
  5604. "border": "0",
  5605. "scrolling ": "no",
  5606. "style": {
  5607. "cssText": "border:0;width:100%;height:100%"
  5608. },
  5609. "src": "https://iwb.cocorobo.cn/"
  5610. })
  5611. _box.appendChild(_iframe);
  5612. _box.appendChild(_jie);
  5613. _formdiv = new U.UF.UI.form(
  5614. "电子白板",
  5615. _box, {
  5616. "id": "whiteboards" + cid + stage + task + tool,
  5617. "style": {
  5618. "width": "90%",
  5619. "height": "90%",
  5620. "overflow": 'hidden'
  5621. },
  5622. "onresize": function () { }
  5623. }, {
  5624. closecallback: function () { }
  5625. }, {
  5626. "style": {
  5627. "height": "36px"
  5628. }
  5629. }).form; //创建窗体
  5630. _taskbar = {
  5631. "id": str + _formdiv.id,
  5632. "style": {
  5633. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5634. },
  5635. "name": "电子白板",
  5636. "forms": _formdiv,
  5637. "click": function () {
  5638. U.MD.D.I.openApplication(str, obj, info);
  5639. }
  5640. }
  5641. break;
  5642. case "mind":
  5643. aTool = 3;
  5644. _iframe = $$("iframe", {
  5645. "frameborder": "no",
  5646. "border": "0",
  5647. "scrolling ": "no",
  5648. "style": {
  5649. "cssText": "border:0;width:100%;height:100%"
  5650. },
  5651. "src": "/kityminder-editor/dist/index.html"
  5652. });
  5653. _box.appendChild(_iframe);
  5654. _box.appendChild(_jie);
  5655. _formdiv = new U.UF.UI.form(
  5656. "思维导图",
  5657. _box, { //"/jsmind/example/demo.html"
  5658. "id": "minds" + cid + stage + task + tool,
  5659. "style": {
  5660. "width": "90%",
  5661. "height": "90%",
  5662. "overflow": 'hidden'
  5663. },
  5664. "onresize": function () { }
  5665. }, {
  5666. closecallback: function () { }
  5667. }, {
  5668. "style": {
  5669. "height": "36px"
  5670. }
  5671. }).form; //创建窗体
  5672. _taskbar = {
  5673. "id": str + _formdiv.id,
  5674. "style": {
  5675. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5676. },
  5677. "name": "思维导图",
  5678. "forms": _formdiv,
  5679. "click": function () {
  5680. U.MD.D.I.openApplication(str, obj, info);
  5681. }
  5682. }
  5683. break;
  5684. case "doc":
  5685. aTool = 6;
  5686. _iframe = $$("iframe", {
  5687. "frameborder": "no",
  5688. "border": "0",
  5689. "scrolling ": "no",
  5690. "style": {
  5691. "cssText": "border:0;width:100%;height:100%"
  5692. },
  5693. "src": "/Office/Word/WordEditArea.htm"
  5694. })
  5695. _box.appendChild(_iframe);
  5696. _box.appendChild(_jie);
  5697. _formdiv = new U.UF.UI.form(
  5698. "协同文档",
  5699. _box, {
  5700. "id": "docs" + cid + stage + task + tool,
  5701. "style": {
  5702. "width": "90%",
  5703. "height": "90%",
  5704. "overflow": 'hidden'
  5705. },
  5706. "onresize": function () { }
  5707. }, {
  5708. closecallback: function () { }
  5709. }, {
  5710. "style": {
  5711. "height": "36px"
  5712. }
  5713. }).form; //创建窗体
  5714. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5715. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5716. })
  5717. _taskbar = {
  5718. "id": str + _formdiv.id,
  5719. "style": {
  5720. "backgroundImage": "url(/img/icon/doc.png)"
  5721. },
  5722. "name": "协同文档",
  5723. "forms": _formdiv,
  5724. "click": function () {
  5725. U.MD.D.I.openApplication(str, obj, info);
  5726. }
  5727. }
  5728. break;
  5729. }
  5730. const script1 = document.createElement("script");
  5731. script1.type = "text/javascript";
  5732. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5733. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5734. const script2 = document.createElement("script");
  5735. script2.type = "text/javascript";
  5736. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5737. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5738. const script3 = document.createElement("script");
  5739. script3.type = "text/javascript";
  5740. script3.charset = "UTF-8";
  5741. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5742. const script4 = document.createElement("script");
  5743. script4.type = "text/javascript";
  5744. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5745. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  5746. if (_iframe) {
  5747. if (str == 'doc') {
  5748. _iframe = _formdiv.querySelector('iframe')
  5749. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5750. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5751. _iframe.contentWindow.document.body.appendChild(script1);
  5752. _iframe.contentWindow.document.body.appendChild(script2);
  5753. // _iframe.contentWindow.document.body.appendChild(script3);
  5754. _iframe.contentWindow.document.body.appendChild(script4);
  5755. })
  5756. if (onloadListener) {
  5757. _iframe.contentDocument.location.reload()
  5758. } else {
  5759. _iframe.contentDocument.location.reload()
  5760. }
  5761. } else if (str == 'mind') {
  5762. _iframe = _formdiv.querySelector('iframe')
  5763. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5764. _iframe.contentWindow.document.body.appendChild(script1);
  5765. _iframe.contentWindow.document.body.appendChild(script2);
  5766. _iframe.contentWindow.document.body.appendChild(script4);
  5767. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5768. })
  5769. if (onloadListener) {
  5770. _iframe.contentDocument.location.reload()
  5771. } else {
  5772. _iframe.contentDocument.location.reload()
  5773. }
  5774. } else {
  5775. _iframe.onload = () => {
  5776. _iframe.contentWindow.document.body.appendChild(script1);
  5777. _iframe.contentWindow.document.body.appendChild(script2);
  5778. // _iframe.contentWindow.document.body.appendChild(script3);
  5779. _iframe.contentWindow.document.body.appendChild(script4);
  5780. };
  5781. }
  5782. _jie.onclick = async () => {
  5783. let text = ''
  5784. if (aTool == 6) {
  5785. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5786. } else if (aTool == 3) {
  5787. text = await U.MD.D.I.getEditorContent(_iframe);
  5788. }
  5789. _loading.style.display = 'flex'
  5790. console.log(_loading);
  5791. var _ajs = _iframe.contentWindow.document.createElement("script");
  5792. _ajs.type = "text/javascript";
  5793. _ajs.innerHTML =
  5794. // 'console.log(' + _loading + ');\n' +
  5795. 'var _js = document.createElement("script");\n' +
  5796. '_js.type="text/javascript";\n' +
  5797. '_js.charset="UTF-8";\n' +
  5798. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5799. "_js.onload = function(){\n" +
  5800. ' var a = document.getElementsByTagName("img")\n' +
  5801. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5802. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5803. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5804. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5805. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5806. "beforeUpload_shishi(file," +
  5807. "'" +
  5808. _userid +
  5809. "'" +
  5810. ", " +
  5811. "'" +
  5812. _cid +
  5813. "'" +
  5814. ", " +
  5815. "'" +
  5816. _stage +
  5817. "'" +
  5818. ", " +
  5819. "'" +
  5820. _task +
  5821. "'" +
  5822. ", " +
  5823. "'" +
  5824. _tool +
  5825. "'" +
  5826. ", " +
  5827. "'" +
  5828. str + '_loadLi' +
  5829. "'" +
  5830. ", " +
  5831. "'" +
  5832. aTool +
  5833. "'" +
  5834. ", " +
  5835. "`" +
  5836. text +
  5837. "`" +
  5838. ")\n" +
  5839. " });\n" +
  5840. "}\n" +
  5841. "document.head.appendChild(_js);\n";
  5842. _iframe.contentWindow.document.head.appendChild(_ajs);
  5843. }
  5844. }
  5845. //U.MD.D.I.openClick(str);
  5846. //如果有任务栏信息
  5847. // if (_taskbar) {
  5848. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5849. // }
  5850. }
  5851. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  5852. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5853. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5854. _userinfo = US.userInfo, //登录用户信息
  5855. _userid = US.userInfo.userid //登录用户id
  5856. let _iframe;
  5857. let _cid = cid,
  5858. _stage = stage,
  5859. _task = task,
  5860. _tool = tool;
  5861. var _jie = $$("div", {
  5862. "style": {
  5863. "position": "absolute",
  5864. "bottom": "50px",
  5865. "right": "50px",
  5866. "zIndex": "9999",
  5867. "backgroundColor": "#2268bc",
  5868. "color": "#fff",
  5869. "padding": "12px 20px",
  5870. "cursor": "pointer",
  5871. "borderRadius": "4px",
  5872. },
  5873. "innerHTML": "上传模板"
  5874. })
  5875. let aTool = ''
  5876. let _loading = document.createElement('div')
  5877. _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;"
  5878. // _loading.id = "";
  5879. let _lchild = document.createElement('div')
  5880. let _limg = document.createElement('img')
  5881. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5882. _limg.style = "width: 26px;margin-right: 10px;"
  5883. _lchild.appendChild(_limg)
  5884. let _lspan = document.createElement('span')
  5885. _lspan.innerHTML = "上传中..."
  5886. _lchild.appendChild(_lspan)
  5887. _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%);"
  5888. _loading.appendChild(_lchild)
  5889. var _box = $$('div', {
  5890. "style": {
  5891. "position": "relative",
  5892. "width": "100%",
  5893. "height": "100%",
  5894. },
  5895. })
  5896. _box.appendChild(_loading)
  5897. _box.id = str + '_loadLi'
  5898. switch (str) {
  5899. case "whiteboard":
  5900. aTool = 1;
  5901. _iframe = $$("iframe", {
  5902. "frameborder": "no",
  5903. "border": "0",
  5904. "scrolling ": "no",
  5905. "style": {
  5906. "cssText": "border:0;width:100%;height:100%"
  5907. },
  5908. "src": "https://iwb.cocorobo.cn/"
  5909. })
  5910. _box.appendChild(_iframe);
  5911. _box.appendChild(_jie);
  5912. _formdiv = new U.UF.UI.form(
  5913. "电子白板",
  5914. _box, {
  5915. "id": "whiteboards" + cid + stage + task + tool,
  5916. "style": {
  5917. "width": "90%",
  5918. "height": "90%",
  5919. "overflow": 'hidden'
  5920. },
  5921. "onresize": function () { }
  5922. }, {
  5923. closecallback: function () { }
  5924. }, {
  5925. "style": {
  5926. "height": "36px"
  5927. }
  5928. }).form; //创建窗体
  5929. _taskbar = {
  5930. "id": str + _formdiv.id,
  5931. "style": {
  5932. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5933. },
  5934. "name": "电子白板",
  5935. "forms": _formdiv,
  5936. "click": function () {
  5937. U.MD.D.I.openApplication(str, obj, info);
  5938. }
  5939. }
  5940. break;
  5941. case "mind":
  5942. aTool = 3;
  5943. _iframe = $$("iframe", {
  5944. "frameborder": "no",
  5945. "border": "0",
  5946. "scrolling ": "no",
  5947. "style": {
  5948. "cssText": "border:0;width:100%;height:100%"
  5949. },
  5950. "src": "/kityminder-editor/dist/index.html"
  5951. });
  5952. _box.appendChild(_iframe);
  5953. _box.appendChild(_jie);
  5954. _formdiv = new U.UF.UI.form(
  5955. "思维导图",
  5956. _box, { //"/jsmind/example/demo.html"
  5957. "id": "minds" + cid + stage + task + tool,
  5958. "style": {
  5959. "width": "90%",
  5960. "height": "90%",
  5961. "overflow": 'hidden'
  5962. },
  5963. "onresize": function () { }
  5964. }, {
  5965. closecallback: function () { }
  5966. }, {
  5967. "style": {
  5968. "height": "36px"
  5969. }
  5970. }).form; //创建窗体
  5971. _taskbar = {
  5972. "id": str + _formdiv.id,
  5973. "style": {
  5974. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5975. },
  5976. "name": "思维导图",
  5977. "forms": _formdiv,
  5978. "click": function () {
  5979. U.MD.D.I.openApplication(str, obj, info);
  5980. }
  5981. }
  5982. break;
  5983. case "doc":
  5984. aTool = 6;
  5985. _iframe = $$("iframe", {
  5986. "frameborder": "no",
  5987. "border": "0",
  5988. "scrolling ": "no",
  5989. "style": {
  5990. "cssText": "border:0;width:100%;height:100%"
  5991. },
  5992. "src": "/Office/Word/WordEditArea.htm"
  5993. })
  5994. _box.appendChild(_iframe);
  5995. _box.appendChild(_jie);
  5996. _formdiv = new U.UF.UI.form(
  5997. "协同文档",
  5998. _box, {
  5999. "id": "docs" + cid + stage + task + tool,
  6000. "style": {
  6001. "width": "90%",
  6002. "height": "90%",
  6003. "overflow": 'hidden'
  6004. },
  6005. "onresize": function () { }
  6006. }, {
  6007. closecallback: function () { }
  6008. }, {
  6009. "style": {
  6010. "height": "36px"
  6011. }
  6012. }).form; //创建窗体
  6013. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6014. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6015. })
  6016. _taskbar = {
  6017. "id": str + _formdiv.id,
  6018. "style": {
  6019. "backgroundImage": "url(/img/icon/doc.png)"
  6020. },
  6021. "name": "协同文档",
  6022. "forms": _formdiv,
  6023. "click": function () {
  6024. U.MD.D.I.openApplication(str, obj, info);
  6025. }
  6026. }
  6027. break;
  6028. }
  6029. if (_iframe) {
  6030. if (str == 'doc') {
  6031. _iframe = _formdiv.querySelector('iframe')
  6032. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6033. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6034. })
  6035. if (onloadListener) {
  6036. _iframe.contentDocument.location.reload()
  6037. } else {
  6038. _iframe.contentDocument.location.reload()
  6039. }
  6040. } else if (str == 'mind') {
  6041. _iframe = _formdiv.querySelector('iframe')
  6042. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6043. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6044. })
  6045. if (onloadListener) {
  6046. _iframe.contentDocument.location.reload()
  6047. } else {
  6048. _iframe.contentDocument.location.reload()
  6049. }
  6050. } else if (str == 'whiteboard') {
  6051. _iframe = _formdiv.querySelector('iframe')
  6052. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6053. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6054. })
  6055. if (onloadListener) {
  6056. _iframe.contentDocument.location.reload()
  6057. } else {
  6058. _iframe.contentDocument.location.reload()
  6059. }
  6060. } else {
  6061. _iframe.onload = () => {
  6062. };
  6063. }
  6064. _jie.onclick = async () => {
  6065. let text = ''
  6066. let type = '2'
  6067. if (aTool == 1) {
  6068. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6069. type = '3'
  6070. } else if (aTool == 6) {
  6071. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6072. type = '1'
  6073. } else if (aTool == 3) {
  6074. text = await U.MD.D.I.getEditorContent(_iframe);
  6075. type = '2'
  6076. }
  6077. _loading.style.display = 'flex'
  6078. U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading, _lspan)
  6079. }
  6080. }
  6081. //U.MD.D.I.openClick(str);
  6082. //如果有任务栏信息
  6083. // if (_taskbar) {
  6084. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6085. // }
  6086. }
  6087. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6088. var xmlhttp;
  6089. var Mac, Sn, DeviceId
  6090. if (window.XMLHttpRequest) {
  6091. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6092. xmlhttp = new XMLHttpRequest();
  6093. }
  6094. else {
  6095. // IE6, IE5 浏览器执行代码
  6096. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6097. }
  6098. xmlhttp.onreadystatechange = function () {
  6099. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6100. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6101. // resolve(res.value[0][0].text);
  6102. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6103. $(fileInput).val('');
  6104. });
  6105. }
  6106. }
  6107. }
  6108. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6109. xmlhttp.send();
  6110. }
  6111. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6112. var xmlhttp;
  6113. var Mac, Sn, DeviceId
  6114. if (window.XMLHttpRequest) {
  6115. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6116. xmlhttp = new XMLHttpRequest();
  6117. }
  6118. else {
  6119. // IE6, IE5 浏览器执行代码
  6120. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6121. }
  6122. xmlhttp.onreadystatechange = function () {
  6123. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6124. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6125. // resolve(res.value[0][0].text);
  6126. if (type == '2') {
  6127. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6128. $(fileInput).val('');
  6129. });
  6130. } else if (type == '3') {
  6131. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6132. }
  6133. } else {
  6134. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6135. }
  6136. }
  6137. }
  6138. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6139. xmlhttp.send();
  6140. }
  6141. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6142. var xmlhttp;
  6143. var Mac, Sn, DeviceId
  6144. if (window.XMLHttpRequest) {
  6145. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6146. xmlhttp = new XMLHttpRequest();
  6147. }
  6148. else {
  6149. // IE6, IE5 浏览器执行代码
  6150. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6151. }
  6152. xmlhttp.onreadystatechange = function () {
  6153. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6154. if (xmlhttp.response) {
  6155. // resolve(res.value[0][0].text);
  6156. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6157. // $(fileInput).val('');
  6158. // });
  6159. span.innerHTML = '上传成功'
  6160. setTimeout(() => {
  6161. loading.style.display = 'none'
  6162. }, 1000);
  6163. }
  6164. }
  6165. }
  6166. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6167. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6168. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6169. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6170. // 设置请求头,表示请求体的编码格式
  6171. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
  6172. // 设置请求体,使用url-encoded格式的数据
  6173. }