Shanghai will require everyone entering the city from countries with “relatively serious virus conditions” to submit to 14 days of quarantine, an official said on Tuesday.