Spectrality of self-similar measures with product-form digits