An in-situ strategy to construct uracil-conjugated covalent organic frameworks with tunable fluorescence/recognition characteristics for sensitive and selective Mercury(II) detection.