We present a unified formalism about spatial and angular Goos-Hänchen (GH) and Imbert-Fedorov (IF) shifts. When a horizontally polarized Gaussian beam is reflected from guided-wave resonance structure, the photonic spin Hall effect (PSHE) caused by both spatial and angular IF shifts is theoretically investigated with consideration of beam propagation. When PSHE is observed at Rayleigh range of the reflected beam, the maximum total IF shift is larger than the maximum spatial IF shift. Meanwhile, total IF shift varies faster with the incident angle than the spatial IF shift. The formalism also shows that the spatial and angular IF shifts increase with the increase of the width of the resonant absorption dip. Theoretical predictions agree well with numerical calculations. Those results provide a new way to improve PSHE and have potential application of improving the accuracy of sensors based on PSHE of this structure.