The invention discloses an online detecting device for the liquid flow of a gas-liquid mixture. The device comprises a liquid inlet
pipe, a second valve, a first valve, a third valve, a second switch,a first switch, a first soft
rope, a first floating ball, a second soft
rope, a second floating ball, a detection oil box, a fifth valve, an exhausting
pipe, a seventh valve, a sixth valve, an auxiliary oil box, a fourth floating ball, a fourth soft
rope, a third floating ball, a third soft rope, a third switch, a fourth switch, a fourth valve and a liquid drainage
pipe. According to the device,oil feeding and liquid drainage of the detection oil box and the auxiliary oil box are controlled by controlling the open and closed states of the valves, the switches are triggered through the floating balls and the soft ropes, then the liquid levels in the oil boxes are detected, and the open and closed states of the valves are controlled according to the liquid levels. The device has the main advantages that the liquid flow in produced liquid is measured in a mechanical mode through coordination action of the switches and the valves, so that effects of the adhesivity of gas and
crude oil inthe produced liquid on the measurement result are avoided, the measurement principle is simple, and the result is accurate.