JD.com Inc. is launching in the UK and other European countries, part of an overseas expansion as China’s answer to Amazon faces intense competition in its home market.