Queqiao carries two cameras:
According to this Xinhua report (Chinese) following the launch, Queqiao, "carries two cameras, one large and one small. The small one will observe how the satellite antenna opens, and the large one can take group photos of the Moon and the Earth."
Annotated version of your first photo:
So this photo is from the engineering camera. The light-colored structure at the top is probably the antenna. That means the camera looks along the outside of the stowed antenna. This places the camera somewhere near the base of the antenna, but I can't figure out where exactly.
The box at bottom right is annotated NCLE, but it doesn't seem to match what I've been able to find about NCLE: the NCLE antennas are not on the same face as the parabolic antenna.
I've annotated this diagram to show the NCLE antennas. You can also see the curved shape of the spars that support the dish antenna.
The Longjiang-2 satellite also carries a camera:
One of the two Longjiang ('dragon river') microsatellites that launched with Queqiao but set to operate together in lunar orbit, carries an optical microcamera (Arabic) developed by the King Abdulaziz City for Science and Technology (KACST) of Saudi Arabia.
The instrument weighs around 630 g and is capable providing images of the Moon with a resolution of 38 m per pixel at a perilune of 300 km away the lunar surface.
And there's a second camera, for use by amateur astronomers:
Longjiang-2 carries a camera developed by KACST of Saudi Arabia, accounting for the final of four internationally-provided payloads for Chang’e-4, which sent back these cool images of the Earth and Moon.
Another onboard imager developed by students at the Harbin Institute of Technology (HIT) in northeast China has allowed radio operators to download images. Here is one such image, of Mare Nubium on the near side of the Moon.
One photo made by Longjiang-2:
I don't think this one took the Moon&Earth photo from the question, it orbits too close to the Moon to get that shot.
(work in progress)