Spectral analysis of the weighted Laplacian in slip and no-slip flows