The heads of Apple’s online retail and information-systems operations are leaving the company, part of a series of high-profile departures from the tech giant. According...