The invention discloses a window-type air conditioner, which comprises an indoor panel, a case, an evaporator, an indoor fan, a condenser, an outdoor fan, a motor, a compressor and a base plate, wherein an elastic bump is arranged at the tail end of a lower motor shaft; and a groove matched with the elastic bump is formed on the inner wall of a lower fan shaft which is combined with a lower centrifugal fan and the lower motor shaft. When the lower motor shaft and the lower centrifugal fan are arranged, the elastic bump is used for clamping the groove in the lower fan shaft and fixing the lower centrifugal fan and the lower motor shaft, so that the lower centrifugal fan is firmly fixed with the lower motor shaft together; the elastic bump is arranged on a flat part at the tail end of the lower motor shaft, so that the transmission of power to the lower centrifugal fan through the lower motor shaft can be ensured, and the accuracy of a fixed position can be ensured; and when the centrifugal fan is required to be detached, only a button on the lower motor shaft is required to be pushed, so that the elastic bump is retracted towards the inside of the lower motor shaft, namely the elastic bump can be separated from the groove, and the lower centrifugal fan can be conveniently separated from the lower motor shaft.