This paper takes the electricity-gas integrated energy system with power-to-gas devices as the research object. Based on the introduction of time-sharing energy prices to guide users to adjust energy consumption, an optimal dispatch model is established that takes into account energy consumption behavior of price-sensitive users and Constraint of customer satisfaction. Energy suppliers guide users to adjust their energy consumption while also taking into account the energy experience level of users. The model takes the minimum comprehensive operating cost that includes compensation for user load reduction as the decision-making goal to optimize the system globally. Taking the integrated energy system composed of the improved IEEE 39-bus power system and the Belgian 20-bus natural gas system as an example, it is verified that the optimal dispatch model improves the system economy.