Method for preparing composite material coated with silver on surface through dopamine