Battery pack gluing and packaging method