A single-inductance double-output switch power supply based on ripple control comprises a power level module, a filter and voltage sampling module, a secondary voltage sampling module, a secondary ripple control module, a primary voltage sampling module, a primary control module and a driving module, wherein the output of the power level module is connected with the filter and voltage sampling module, the output of the filter and voltage sampling module is connected with each of the secondary voltage sampling module and the primary voltage sampling module, the output of the secondary voltage sampling module is connected with the secondary ripple control module, the output of the primary voltage sampling module is connected with the primary control module, the outputs of the secondary ripple control module and the primary control module are connected with the driving module, and the output of the driving module is connected with the power level module and the secondary ripple control module and also outputs a slope compensation power source Islope signal to the secondary voltage sampling module.