A floating chemical dispenser, comprising: a body portion having a first chamber for receiving solid chemicals, a second chamber for receiving a floating member, and at least one first hole for communicating the first chamber with an external environment, an opening is disposed at one end of the body portion, and the opening is communicated with the first chamber; and a cover, configured to close the opening of the body portion; wherein the cover is detachably connected with the body portion via a first locking mechanism, and the first locking mechanism has a locking position and an unlocking position, and is configured to move between the locking position and the unlocking position via pressing and rotating the cover by a user, so as to control locking or unlocking of the cover and the body portion, characterized in that, the first locking mechanism comprises: a first hook, an elastic structure and a first slot; wherein the first hook is disposed on the cover, the elastic structure and the first slot are disposed on a housing (121, 122) of the body portion near the opening, width of a first end of the first slot is greater than width of a second end of the first slot, the first hook is configured to be inserted into the first slot from the first end of the first slot, to slide to the second end of the first slot and to be hooked to an inner surface of the body portion, the elastic structure is configured to apply an upward force to the cover, the first locking mechanism is in the unlocking position when the first hook is positioned at the first end of the first slot, and the first locking mechanism is in the locking position when the first hook is positioned at the second end of the first slot. a body portion having a first chamber for receiving solid chemicals, a second chamber for receiving a floating member, and at least one first hole for communicating the first chamber with an external environment, an opening is disposed at one end of the body portion, and the opening is communicated with the first chamber; and a cover, configured to close the opening of the body portion; wherein the cover is detachably connected with the body portion via a first locking mechanism, and the first locking mechanism has a locking position and an unlocking position, and is configured to move between the locking position and the unlocking position via pressing and rotating the cover by a user, so as to control locking or unlocking of the cover and the body portion, characterized in that, the first locking mechanism comprises: a first hook, an elastic structure and a first slot; wherein the first hook is disposed on the cover, the elastic structure and the first slot are disposed on a housing (121, 122) of the body portion near the opening, width of a first end of the first slot is greater than width of a second end of the first slot, the first hook is configured to be inserted into the first slot from the first end of the first slot, to slide to the second end of the first slot and to be hooked to an inner surface of the body portion, the elastic structure is configured to apply an upward force to the cover, the first locking mechanism is in the unlocking position when the first hook is positioned at the first end of the first slot, and the first locking mechanism is in the locking position when the first hook is positioned at the second end of the first slot.