The country’s online giants are pouring cash into local services like taxi-hailing and takeaway food. Baidu invests mostly in wholly-owned units, while Tencent takes minority stakes. Alibaba does…