Aiming to achieve the flexible operation of distribution network (ADN), an energy management strategy of ADN with integrated distributed wind power and smart buildings is proposed in this study. First, based on the thermal storage characteristics of buildings, the resistor-capacitor model is used to develop an energy consumption prediction model of smart buildings. Second, the smart buildings are modelled as flexible resources of ADN. A multi-objective ADN model is further formulated based on analytic hierarchy process (AHP) by comprehensively considering constraints of power grid and smart buildings. Then, the unified model of ADN is transformed by second-order conic relaxation to guarantee the global optimal solution. Finally, the scheduling results for the unified model of ADN under different control methods for heating ventilation and air-conditioning (HVAC) systems are compared in the winter heating scenario. In addition, the impact of the demand response capability for smart buildings on the economic and secure operation of the ADN is further analysed. Numerical studies demonstrate that the proposed method can increase the penetration of local wind power, reduce peak-valley load difference and network loss of the grid while ensuring the comfort temperature of customers, and further achieve the flexible operation of ADN.