Two new copper-based coordination polymers (CPs), {[CuI(H2PO4)(dpe)]5(dpe)0.5(H2O)7}n (Cu-dpe(I)) and {[CuII(HPO4)(dpe)(H2O)](H2O)3}n (Cu-dpe(II)) (dpe = 1,2-di(4-pyridyl)ethylene), had been successfully constructed by hydrothermal method and ball milling method respectively. The crystal structures of two coordination polymers were determined by single crystal X-ray diffraction. The synthetic temperature caused their structure differences. The differences of structure and properties between these two coordination polymers were discussed. In this work, they both exhibit excellent photocatalytic activity toward the degradation of methylene blue (MB) under visible light. Among them, Cu-dpe(I) and Cu-dpe(II) could degrade MB more than 88.1% in 120 minutes under visible light. Some active free radicals such as ·OH, ·O2-, e-played an important role in degradation of MB. In addition, luminescent experiment revealed Cu-dpe(I) exhibits a relatively high sensitive and selective detection of Fe3+ ions in water solution. Experimental results show that the fluorescence quenching was caused by competitive absorption of excitation wavelength energy between Fe3+ and Cu-dpe(I).