Regarding the problem of epidemic outbreak prevention and control, infectious disease dynamics models cannot support urban managers in reducing urban-scale healthcare costs through community-scale control measures, as they usually have difficulty meeting the requirements for simulation at different scales. In this paper, we propose combining contact networks at different spatial scales to study the COVID-19 outbreak in Shanghai from March to July 2022, calculate the initialRtthrough the number of cases at the beginning of the outbreak, and evaluate the effectiveness of dynamic non-pharmaceutical interventions (NPIs) adopted at different time periods in Shanghai using our proposed approach. In particular, our proposed contact network is a three-layer multi-scale network that is used to distinguish social interactions occurring in areas of different sizes, as well as to distinguish between intensive and non-intensive population contacts. This susceptible–exposure–infection–quarantine–recovery (SEIQR) epidemic model constructed based on a multi-scale network can more effectively assess the feasibility of small-scale control measures, such as assessing community quarantine measures and mobility restrictions at different moments and phases of an epidemic. Our experimental results show that this model can meet the simulation needs at different scales, and our further discussion and analysis show that the spread of the epidemic in Shanghai from March to July 2022 can be successfully controlled by implementing a strict long-term dynamic NPI strategy.