Commit 60d875a8 by luyt

feat:tab定位问题

1 parent 229cfbab
...@@ -68,9 +68,10 @@ Page({ ...@@ -68,9 +68,10 @@ Page({
// navbar高度设置 // navbar高度设置
navbarReady(e) { navbarReady(e) {
let { height, statusBarHeight } = e.detail let { height, statusBarHeight } = e.detail
console.log('height, statusBarHeight : ', height, statusBarHeight );
this.setData({ this.setData({
headerHeight: height / 2 + statusBarHeight // headerHeight: height / 2 + statusBarHeight
// headerHeight: height / 2 + statusBarHeight, headerHeight: height * 2
// headerHeight: height / 2 + statusBarHeight + 88 * 2, // headerHeight: height / 2 + statusBarHeight + 88 * 2,
}) })
// console.log(e) // console.log(e)
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</view> --> </view> -->
<!-- style="padding-top:{{headerHeight}}px" --> <!-- style="padding-top:{{headerHeight}}px" -->
<product stickyTop="{{headerHeight *2}}" class="productCon" isAuthphone="{{isAuthphone}}" actNum="{{actNum}}" wrapactiveNavIdx="{{activeNavIdx}}" senceData="{{senceData}}" outshowVideo="{{outshowVideo}}" isShare="{{isShare}}" isShow="{{isShow}}" bindauthorized="authorizedFn" phone="{{share_phone}}" /> <product stickyTop="{{headerHeight}}" class="productCon" isAuthphone="{{isAuthphone}}" actNum="{{actNum}}" wrapactiveNavIdx="{{activeNavIdx}}" senceData="{{senceData}}" outshowVideo="{{outshowVideo}}" isShare="{{isShare}}" isShow="{{isShow}}" bindauthorized="authorizedFn" phone="{{share_phone}}" />
<!-- 分享弹框 --> <!-- 分享弹框 -->
<!-- <view class="share-wrap" wx:if="{{isShow}}"> <!-- <view class="share-wrap" wx:if="{{isShow}}">
<view class="img-wrap"> <view class="img-wrap">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!