Recently, luminescent covalent organic polymers (LCOPs) are garnering more and more attention owing to their excellent emissive properties. However, the precise control of LCOPs’ luminescence behaviors remains a formidable challenge. Here, a dual-emissive CP-(BTxTD100-x) COP which was composited of CP, BT and TD (x is the added molar ratio of BT to total feed aldehyde) were synthesized by Knoevenagel condensation reaction between 1,3,5-tri(4-cyano-methylbenzene) benzene (CP) and 2,7-dibenzaldehyde-benthiadiazole (BT)/1,4-bis(4-aldehyde phenyl)benzene (TD). The luminescent behaviors of CP-(BTxTD100-x) COP could be precisely tuned by the ratio of CP, BT and TD as well as excitation wavelength. The CP-(BT33TD67) COP emitted white light (0.3012, 0.3207) when excited at 310 nm. A ratiometric fluorescence sensor was developed for detecting furacillin using CP-(BT33TD67) COP, showing a detection limit of 8.23 ng mL−1. Based on the excitation-depending behaviors of CP-(BT33TD67) COP, combined with CP-(BT100TD0) COP, a kind of security and information encryption image in the form of a quick response was designed. The discoveries provide a new idea for the design of dual-emission LCOPs by regulating the ratio of monomers and excitation wavelengths. The findings also extend the potential applications of dual-emission LCOPs.