In the assembly workshops of some heavy special equipment, the bridge cranes for payload lifting often needs to be located frequently. However, the locating position is often determined by the operator, which is random and results in significant payload oscillation and difficulties in trolley positioning. Furthermore, in practice, the bridge crane always exhibits more complicated double-pendulum dynamics compared with single-pendulum crane. To solve these problems, this paper establishes the double-pendulum model of bridge crane. Derived from the proportional-derivative (PD) control, the single closed-loop is designed based on the hook oscillation during acceleration and transporting; when locating, the double closed-loop is presented by utilizing the position and the hook oscillation. Combining the two control methods, a single and double closed-loop compound anti-sway control (SDCAC) method for the bridge crane is proposed. On this basis, to improve the performance of the SDCAC system, the sequential quadratic optimization (SQP) method is adopted to optimize PD parameters. Besides, a novel bumpless transfer control method is proposed to realize the smooth transition between the two control modes. Finally, the simulations and experiments are conducted. The results demonstrate the effectiveness of the proposed method.