Luminescent coordination polymers (LCPs) represent an emerging class of materials for visual analyte detection. In this study, we propose a method to introduce the aggregation-induced emission (AIE) linker pyrazine-tetracarboxylic acid (H4tcpp: 4,4',4″,4″'-(pyrazine-2,3,5,6-tetrayl) tetrabenzoic acid) into LCPs. By incorporating two N-containing ligands (Bpmh: 1,2-bis(pyridin-4-ylmethylene) hydrazine; Bpmh:1,4-bis((1H-imidazol-1-yl) methyl) benzene) with different flexibilities and adopting a mixed-ligand strategy, we successfully constructed two coordination polymers (CP1 and CP2) with distinct topological structures. Furthermore, it was revealed that both CPs present excellent sensitivity and selectivity to sense Fe3+, nitro explosives (4-nitrophenol, 4-NP; 2,4,6-trinitrophenol: TNP) and antibiotics (nitrofurazone: NFZ; nitrofurantoin: NFT) in aqueous solution through fluorescence quenching. The AIE linker and auxiliary ligands with different flexibilities simultaneously control the structure, regulate the porosity and enhance the emission intensity. This strategy significantly enhances the sensitivity, selectivity. In addition, the effective sensing mechanism was fully verified by spectral analysis and density functional theory (DFT), which revealed that collaborative effects of PET, FRET, CA and the weak intermolecular forces between CPs and the analytes are essential for the quenching of the CP's fluorescence signal. In addition, we demonstrate an instant, portable smartphone-assisted intelligent visual detection method for trinitrophenol (TNP) by integrating a smartphone as the signal output terminal.