"classical" Doppler effect is a result of the changing distance between observer and source (it also relies on a medium, so it makes a difference as to whether it is the source or observer which is moving relative to the medium.)
Relativistic Doppler effect also has a component which depends on the changing distance between observer and source. The difference is that with classical Doppler shift, if you factor out the effect caused by changing distance, you end up with no net time difference, but with Relativistic Doppler effect, when you factor the changing distance out, you are still left with a time difference, which is the time dilation.