Question: what is the difference between did you and have you?
Answer: "Have you seen" implies that the person saw your glasses sometime in the recent past right up to the present moment. "Did you see" is asking if the person has ever seen your glasses, at any time in the past. It makes a big difference if you're looking for a lost pair of glasses.