Yeah, if you deal with the hairspray in a proper way, your eyeglasses will not be ruined. Although the hairspray is difficult to be gotten rid of, you could use the the proper amount of solvent to make the hairspray out of the lenses of the eyeglasses. Then clean the eyeglasses with the cloth.
Obviously, it can be not sure, you should also provide more detail information. Normally, use industrial alcohol, take cotton swab stained with a little alcohol, and then wipe the lenses back and forth, if you really do like this, I'm sure that you can solve your problem. In addition, you can go to the l optical shop and get help which it's free of charge. But, all things are exceptions. If you do use the method above to deal with, but the effect is still not obvious. So, I estimate that maybe the film has been damaged. That is to say, the hairspray ruin your eyeglasses.
Well, in fact, I gotta say, hair spray does not have anything to do with glasses lenses. Indeed , your concern is very natural since hair spray really look weird. Generally speaking, hair spray will not ruin your lenses, unless you put your lenses soak in the spray, but I believe fools will do that experimet. Perhaps a little hair spray will help clean your lenses. So, don't have to be worried. Anyway, definitely not.