Intense retail competition has led old standbys, such as Sears, to close dozens of stores. Walmart is venturing online more. And Amazon is expanding offline, opening stores and buying Whole Foods. The fight for retail dollars is fierce, and the battleground will soon migrate into the palms of customers’ hands – via apps on their smartphones.