Commit 4df2ef295bd09870d73c13c163fd404438706bce

Authored by wangfan
1 parent b7216f70

seller nav

... ... @@ -25,6 +25,7 @@ Component({
disHome:false,
disBack:false,
},
barHeight:68,
attached(){
let disBack = false;
let disHome = false;
... ... @@ -39,9 +40,10 @@ Component({
}
}
this.setData({
statusBarHeight: getApp().system.statusBarHeight,
statusBarHeight: getApp().system.statusBarHeight*getApp().system.pixelRatio,
disHome: disHome,
disBack: disBack,
statusBarHeightFull:68 + getApp().system.statusBarHeight*getApp().system.pixelRatio,
})
console.log('this.setData',this.data);
},
... ...
<!--components/nav/nav.wxml-->
<view class="nav-main" style="background-color: {{backgroundColor}};color:{{color}};">
<view class="nav" style="padding-top: {{statusBarHeight*2}}rpx;">
<view class="nav" style="margin-top: {{statusBarHeight}}rpx;">
<view class="flex-lr part">
<view class="opt flex-ll">
<view class="back flex-vc" bindtap="back" wx:if="{{disBack}}">
... ... @@ -20,4 +20,4 @@
</view>
</view>
<view class="nav-main-space" style="height: {{statusBarHeight*2+68}}rpx;"></view>
<view class="nav-main-space" style="height: {{statusBarHeightFull}}rpx;"></view>
... ...
... ... @@ -13,7 +13,6 @@
background-color: #ffffff;
line-height: 68rpx;
height: 68rpx;
margin-top: 10rpx;
text-align: center;
}
... ...