|
...
|
...
|
@@ -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;
|
...
|
...
|
|