Preparation and application of macromolecules with a fluorescence effect in polymer processing