Authored by yyq

fix

... ... @@ -35,20 +35,9 @@ export default store => {
function setStatusBar(width, height) {
// 仅支持ios
if (yoho.isYohoBuy && yoho.isiOS) {
const scale = height / width;
let barHeight = 0;
if (scale > 2.1) {
barHeight = 44;
} else if (scale > 2) {
barHeight = 22;
}
if (barHeight) {
store.commit('SET_STATUS_BAR_HEIGHT', {
height: barHeight
});
}
store.commit('SET_STATUS_BAR_HEIGHT', {
height: (height / width) > 2.1 ? 44 : 22
});
}
}
... ...