Handheld massager with infrared heating function