This application provides a housing
assembly and an electronic device. The housing
assembly includes a housing body, at least partially comprising a light-transmitting area. This light-transmitting area overlaps at least with the
orthographic projection of an
optical module of the electronic device in the direction of the mid-frame. The
optical module includes an emitting
optical module and / or an incident optical module. The light-transmitting area allows light emitted by the emitting optical module to pass through, and / or allows light to pass through the housing body and be received by the incident optical module. The light-transmitting area includes a first surface disposed opposite to the electronic device body and a second surface disposed adjacent to the electronic device body. A protective layer is disposed on the first surface, corresponding at least to the optical module, and the Mohs
hardness of the protective layer is greater than that of the housing body. Therefore, the housing body of the housing
assembly adopts a transparent design, and by providing a protective layer on the outer surface of the light-transmitting area corresponding to the optical module, the problem of easy
scratching and abrasion on the housing body is solved.