Investors in shares of JD.com Inc. face a gut check in next week’s earnings report from the online retailer as it girds for battle in the food-delivery space currently dominated by Meituan.