To address the epidemic, such as COVID-19, the government may implement the home quarantine policy for the infected residents. The logistics company is required to control the risk of epidemic spreading while delivering goods to residents. In this case, the logistics company often uses vehicles and unmanned aerial vehicles (UAVs) for delivery. This paper studies the distribution issue of cold chain logistics by integrating UAV logistics with epidemic risk management innovatively. At first, a "vehicle-UAV" joint distribution mode including vehicles, small UAVs and large UAVs, is proposed. The green cost for vehicles and UAVs is calculated, respectively. The formula for infection risk due to large numbers of residents gathering at distribution centers to pick up goods is then derived. Furthermore, based on the control of infection risk, an optimization model is developed to minimize the total logistics cost. A modified ant colony algorithm is designed to solve the model. The numerical results show that the maximum acceptable risk and the crowd management level of distribution centers both have significant effects on the distribution network, logistics cost and number of new infections. Our study provides a new management method and technical idea for ensuring the needs of residents during the epidemic.