The invention provides a gluing mechanism, comprising a support, glue conveying cylinders, a non-return valve, a joint, an air cylinder, a connection support, a sleeve plate and a gluing panel, wherein the glue conveying cylinders are installed on the support, the upper end of each glue conveying cylinder is an input end, the lower end of each glue conveying cylinder is an output end, a dispensing machine is connected with the input ends of the glue conveying cylinders, the input end of the non-return valve is connected with the output ends of the glue conveying cylinders, the output end of the non-return valve is connected with the joint, the joint is mounted on the sleeve plate, the air cylinder is installed on the support, the connection support is connected with the air cylinder, the sleeve plate is mounted on the connection support, and the gluing panel is threadedly fixed with the sleeve plate. The gluing mechanism provided by the invention can realize uniform gluing; a glue solution does not flow back in the process of gluing, repeated conveying is avoided, energy is saved, and power consumption is reduced; through switching between the double glue conveying cylinders, there is sufficient time for filling of the glue conveying cylinders with the glue solution; the residual amount of the glue solution in the cylinders can be sensed. The gluing mechanism has a simple structure and good practicality.