The invention discloses a preparation method and a use of N-(1-naphthoyl)-N'-[
rhodamine B-9-(2-benzoyl)]hydrazine. N-(1-naphthoyl)-N'-[
rhodamine B-9-(2-benzoyl)]hydrazine is shown in the
structural formula I. A
rhodamine dye is an excellent optical fluorescent probe matrix. The preparation method realizes the preparation of a double (
rhodamine B) acylhydrazine derivative having a 1-naphthoyl
substituent group and a spiro structure first. Under acidic conditions, the spiro structure of N-(1-naphthoyl)-N'-[
rhodamine B-9-(2-benzoyl)]hydrazine is transformed into an open state from a
closed state and simultaneously, the change from an achromatic color to a
pink color is produced in a molecular spectrum of N-(1-naphthoyl)-N'-[
rhodamine B-9-(2-benzoyl)]hydrazine; and under the action of exciting light having a certain
wavelength, N-(1-naphthoyl)-N'-[rhodamine B-9-(2-benzoyl)]hydrazine produces
fluorescent light. After being adsorbed on a
silica gel plate, N-(1-naphthoyl)-N'-[rhodamine B-9-(2-benzoyl)]hydrazine shown in the
structural formula I can produce visible light and a fluorescent or chroma response under the action of volatile
acid gas. N-(1-naphthoyl)-N'-[rhodamine B-9-(2-benzoyl)]hydrazine shown in the
structural formula I can be used for
naked eye chromogenic identification and fluorescent identification probes of acid mist.