fix: 修改个人中心页、导航栏bug
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { NAV_INNER_PX } from '../../utils/navMetrics';
|
||||
import { getNavInnerPx } from '../../utils/navMetrics';
|
||||
|
||||
const HOME_TAB_URL = '/pages/home/home';
|
||||
const HOME_ROUTE = 'pages/home/home';
|
||||
@@ -19,6 +19,7 @@ Component({
|
||||
},
|
||||
data: {
|
||||
statusBarHeight: 0,
|
||||
navInnerHeight: 44,
|
||||
navBlockHeight: 0,
|
||||
leftActionType: 'none' as 'none' | 'back' | 'home' | 'brand',
|
||||
/** 仅首页(Tab 根页)在 logo 旁展示「涂鸦丫」;其余主 Tab 只展示 logo */
|
||||
@@ -27,9 +28,11 @@ Component({
|
||||
lifetimes: {
|
||||
attached() {
|
||||
const { statusBarHeight } = wx.getWindowInfo();
|
||||
const navInnerHeight = getNavInnerPx();
|
||||
this.setData({
|
||||
statusBarHeight,
|
||||
navBlockHeight: statusBarHeight + NAV_INNER_PX,
|
||||
navInnerHeight,
|
||||
navBlockHeight: statusBarHeight + navInnerHeight,
|
||||
});
|
||||
this.syncLeftAction();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user