"If I were you I would do it." This refers to the future. The person still has the choice to do or not do "it". It could be interpreted as "You should do it."
"If I were you I would have done it." This refers to the past. "It" has or has not been done, but in either case, it's over with. Depending on the context, it could be interpreted as "You should have done it."