Man, one wonders where they manage to cram even enough fuel for just a few km range. It's as if there's less than a meter of space between the terminal projectile and the engine, for fuel. That's likely less than 200 liters of fuel (160 kg). I don't believe the frontal "hollow shell" part of the missile can hold much if any fuel, as it has to be structurally beefy to hold the terminal projectile in place.
Then again, Tomahawk is usually said to hold 350 to 450 kg of fuel. And allegedly covers 1800 to 2500 km.
So... imagine if YJ18 somehow had 50% beefier fuel tank...
The picture doesn't capture the later version like you see on the parade where the large spine that supports the rocket could be containing its own fuel.
The frontal part of the missile is a solid fuel rocket of its own. Once it detaches from the cruise missile stage, the rocket ignites and zooms toward the target. Given its size, I don't think the rocket detaches only at terminal stage which 30 to 40km once the missile reaches the visible or clear line of sight, radar horizon of its target. The rocket may detach way before that, perhaps even half way of its total range. Its like an S-300 SAM missile heading towards you low.
If you don't have a rocket, and the YJ-18 is a single stage, subsonic only cruise missile that's like a Tomahawk, then the potential range is much greater as the space for the rocket is now mostly fuel, warhead and guidance system.