The utility model discloses a
handrail lock which comprises a lock shell, an unlocking hook, a pawl, a lock shaft, a
ratchet wheel and a limiting piece, the unlocking hook, the pawl, the lock shaft, the
ratchet wheel and the limiting piece are arranged in the lock shell, the unlocking hook, the pawl and the lock shaft are all rotationally connected in the lock shell, the
ratchet wheel is sleeved and fixedly connected to the lock shaft, the pawl is arranged between the unlocking hook and the ratchet wheel, and the limiting piece is arranged on one side of the ratchet wheel; the lock shaft extends out of the lock shell and is fixedly connected with the
handrail, and the axis of the lock shaft is coaxial with the rotating axis of the
handrail; a limiting hook is arranged on the pawl; a first limiting tongue and a second limiting tongue are arranged on the ratchet wheel, and the limiting piece is located on a rotating path of the first limiting tongue and the second limiting tongue; when the armrest is folded, the limiting hook is matched with the first limiting tongue to limit the ratchet wheel to rotate towards the opening direction, and the limiting piece is matched with the second limiting tongue to limit the ratchet wheel to rotate towards the folding direction; the unlocking hook is in driving connection with the pawl and used for driving the pawl to rotate away from the ratchet wheel so as to relieve limiting of rotation of the ratchet wheel in the opening direction, and the limiting piece is matched with the first limiting tongue to limit the handrail after the handrail is opened.