From 2359a38efc2a90a2776e2a45afcecda1fb0065a3 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 18 九月 2023 16:31:35 +0800
Subject: [PATCH] 111
---
minipro_standard/store/index.js | 29 ++++++++++++++++-------------
1 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/minipro_standard/store/index.js b/minipro_standard/store/index.js
index 897b26f..0b2d826 100644
--- a/minipro_standard/store/index.js
+++ b/minipro_standard/store/index.js
@@ -86,19 +86,22 @@
}
},
// 鑾峰彇鐘舵�侀珮搴�
- 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({})
--
Gitblit v1.9.3