Pesticide residues pose a serious threat to the ecological environment and human health, highlighting an urgent need for rapid, sensitive, and on-site detection technologies. This paper presents a novel three-dimensional TiO2/MoO3/Ag heterojunction array as a surface-enhanced Raman scattering (SERS) sensor to achieve high sensitivity and stability for the detection of multiple pesticide residues. The TiO2/MoO3 heterojunction was prepared on an FTO substrate via a two-step hydrothermal method, followed by the loading of Ag nanoparticles through a silver mirror reaction. This ternary heterostructure significantly enhanced SERS performance through the synergistic effect of electromagnetic enhancement and chemical enhancement. The optimized substrate achieved a detection limit (LOD) as low as 2.25×10-11 M for the probe molecule 4-MBA, with an enhancement factor (EF) of 1.45 ×107 and a relative standard deviation of less than 10%, demonstrating excellent sensitivity and signal uniformity. Using thiram, triazophos, and diquat as target pesticides, the substrate successfully enabled trace detection of these three pesticides with detection limits reaching 10-7 M and exhibited a good linear detection range (R2 ≥ 0.94). More importantly, the substrate effectively distinguished multiple pesticide components in mixed systems, demonstrating the capability for simultaneous multi-component detection. For practical applications, pesticide residues on cherry surfaces were successfully detected using a portable Raman instrument, validating the feasibility of on-site rapid detection. This method successfully utilizes SERS technology, providing a nimble SERS substrate for on-site food safety monitoring.