| | |
| | | }
|
| | | },
|
| | | // 获取状态高度
|
| | | getHeight(context) {
|
| | | let res = uni.getMenuButtonBoundingClientRect()
|
| | | let status = uni.getSystemInfoSync()
|
| | | let menuButtonWidth = res.width
|
| | | let height = res.height
|
| | | let statusbarHeight = status.statusBarHeight
|
| | | let navHeight = res.height + (res.top - statusbarHeight) * 2;
|
| | | context.commit('setHeight', {
|
| | | statusbarHeight,
|
| | | navHeight,
|
| | | height,
|
| | | menuButtonWidth
|
| | | })
|
| | | getHeight(context) { |
| | | // #ifdef MP-WEIXIN |
| | | let res = uni.getMenuButtonBoundingClientRect() |
| | | let status = uni.getSystemInfoSync() |
| | | let menuButtonWidth = res.width |
| | | let height = res.height |
| | | let statusbarHeight = status.statusBarHeight |
| | | let navHeight = res.height + (res.top - statusbarHeight) * 2; |
| | | context.commit('setHeight', { |
| | | statusbarHeight, |
| | | navHeight, |
| | | height, |
| | | menuButtonWidth |
| | | }) |
| | | // #endif
|
| | | |
| | | },
|
| | | async getUpcomingNum(context) {
|
| | | let res = await pageCount({})
|