Commit 9c528797f2261f0c6bfd814382cfded2099bc76c

Authored by wangfan
1 parent 5f71ff03

fixui

Showing 1 changed file with 4 additions and 1 deletions
... ... @@ -140,13 +140,16 @@ Page({
this.hasOnLoad=false;
//导航栏自适应
let systemInfo = wx.getSystemInfoSync();
console.log('systemInfo:',systemInfo)
let reg = /ios/i;
let pt = 20;//导航状态栏上内边距
let h = 44;//导航状态栏高度
if(reg.test(systemInfo.system)){
pt = systemInfo.statusBarHeight;
h = 44;
//this.transverseViewHeight=transverseViewHeight+26;
if(systemInfo.pixelRatio>2){
this.transverseViewHeight=transverseViewHeight+26;
}
}else{
if(/xiaomi/i.test(systemInfo.brand)){
this.transverseViewHeight=transverseViewHeight+15;
... ...