From 1f4e7d0f73a73e7350cf5a1df279d5f30904c5d5 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 06 十二月 2023 08:41:32 +0800
Subject: [PATCH] bug
---
minipro_standard/store/index.js | 29 +++++++++++++----------------
1 files changed, 13 insertions(+), 16 deletions(-)
diff --git a/minipro_standard/store/index.js b/minipro_standard/store/index.js
index 0b2d826..897b26f 100644
--- a/minipro_standard/store/index.js
+++ b/minipro_standard/store/index.js
@@ -86,22 +86,19 @@
}
},
// 鑾峰彇鐘舵�侀珮搴�
- 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
-
+ 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
+ })
},
async getUpcomingNum(context) {
let res = await pageCount({})
--
Gitblit v1.9.3