In the context of the new power system, virtual power plants participate in various market-oriented transactions by integrating distributed energy resources, energy storage devices and adjustable loads, and use the price mechanism to ensure energy security. This paper proposes a two-stage bidding model for virtual power plant (VPP) under the joint electricity-carbon market. First, VPP submits a day-ahead market bidding strategy to the dispatching agency in Phase 1, considering the impact of electric vehicles and incentive-based demand responses. Subsequently, the auction results of Phase 1 are transferred to Phase 2, considering the impact of carbon market and green certificate market revenue on the bidding strategy of virtual power plants, and real-time joint market bidding strategies are formulated on a time-by-time basis. Finally, the CPLEX solver is used to solve the constructed mixed integer linear programming problem. The simulation of VPP in Lingang area of Pudong, Shanghai, shows that the model can maximize the benefits and minimize the cost of VPP in the bidding process of the joint electricity-carbon market, and meet the environmental protection and sustainability goals. It provides a basis for building a business model with virtual power plant bidding transactions as the core.