A charging apparatus for a device that includes a charging port, the charging apparatus comprising: an accommodating case with an opening at a surface of the accommodating case, the opening being configured to allow the device to slide into the accommodating case through the opening under an action of gravity; and a charging assembly (320, 410, 510) configured to be disposed within the accommodating case, the charging assembly comprises a body and a charging head, a base assembly (330, 420) connected to a bottom of the accommodating case, wherein the base assembly (330, 420) includes: a guiding component, wherein the charging assembly (320, 410, 510) penetrates through the guiding component and is configured to move relative to the guiding component, the body of the charging assembly (320, 410, 510) is accommodated in the guiding component, and the charging head of the charging assembly (320, 410, 510) extends out of the guiding component; a connecting component (526, 422) connected to a bottom of the guiding component and the bottom of the accommodating case, respectively; and an elastic component configured to elastically connect the body of the charging assembly (320, 410, 510) and the connecting component (526, 422) of the base assembly (330, 420); wherein the charging apparatus is configured such that when the device slides into the accommodating case through the opening, if a side of the device with the charging port faces the charging assembly (320, 410, 510), the charging head of the charging assembly (320, 410, 510) is configured to be plugged into the charging port; or if a side of the device without the charging port faces the charging assembly (320, 410, 510), the elastic component is configured to be compressed and retracted such that the charging assembly (320, 410, 510) is compressed by the device an accommodating case with an opening at a surface of the accommodating case, the opening being configured to allow the device to slide into the accommodating case through the opening under an action of gravity; and a charging assembly (320, 410, 510) configured to be disposed within the accommodating case, the charging assembly comprises a body and a charging head, a base assembly (330, 420) connected to a bottom of the accommodating case, wherein the base assembly (330, 420) includes: a guiding component, wherein the charging assembly (320, 410, 510) penetrates through the guiding component and is configured to move relative to the guiding component, the body of the charging assembly (320, 410, 510) is accommodated in the guiding component, and the charging head of the charging assembly (320, 410, 510) extends out of the guiding component; a connecting component (526, 422) connected to a bottom of the guiding component and the bottom of the accommodating case, respectively; and an elastic component configured to elastically connect the body of the charging assembly (320, 410, 510) and the connecting component (526, 422) of the base assembly (330, 420); a guiding component, wherein the charging assembly (320, 410, 510) penetrates through the guiding component and is configured to move relative to the guiding component, the body of the charging assembly (320, 410, 510) is accommodated in the guiding component, and the charging head of the charging assembly (320, 410, 510) extends out of the guiding component; a connecting component (526, 422) connected to a bottom of the guiding component and the bottom of the accommodating case, respectively; and an elastic component configured to elastically connect the body of the charging assembly (320, 410, 510) and the connecting component (526, 422) of the base assembly (330, 420); wherein the charging apparatus is configured such that when the device slides into the accommodating case through the opening, if a side of the device with the charging port faces the charging assembly (320, 410, 510), the charging head of the charging assembly (320, 410, 510) is configured to be plugged into the charging port; or if a side of the device without the charging port faces the charging assembly (320, 410, 510), the elastic component is configured to be compressed and retracted such that the charging assembly (320, 410, 510) is compressed by the device if a side of the device with the charging port faces the charging assembly (320, 410, 510), the charging head of the charging assembly (320, 410, 510) is configured to be plugged into the charging port; or if a side of the device without the charging port faces the charging assembly (320, 410, 510), the elastic component is configured to be compressed and retracted such that the charging assembly (320, 410, 510) is compressed by the device