From 915424730f27445da2e8de13b62e77179cc1a15a Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 18 八月 2025 17:07:39 +0800
Subject: [PATCH] fix: 关闭移动充值渠道,打开电信充值渠道
---
apps/taro/src/stores/modules/system.ts | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/apps/taro/src/stores/modules/system.ts b/apps/taro/src/stores/modules/system.ts
index d19b6a9..65d531c 100644
--- a/apps/taro/src/stores/modules/system.ts
+++ b/apps/taro/src/stores/modules/system.ts
@@ -86,8 +86,14 @@
setNavigationBarHeight(systemInfo: Taro.getSystemInfoSync.Result) {
try {
- const { right, height, width, top } = Taro.getMenuButtonBoundingClientRect();
+ if (!isWeb) {
+ const { right, height, width, top } = Taro.getMenuButtonBoundingClientRect();
+ this.menuButtonHeight = height;
+ this.menuButtonWidth = width;
+ this.menuButtonTop = top;
+ this.menuButtonRightDistance = systemInfo.screenWidth - right;
+ }
let navigationBarHeight = 0;
if (systemInfo.platform === 'android') {
@@ -95,10 +101,6 @@
} else {
navigationBarHeight = 44;
}
- this.menuButtonHeight = height;
- this.menuButtonWidth = width;
- this.menuButtonTop = top;
- this.menuButtonRightDistance = systemInfo.screenWidth - right;
this.navigationBarHeight = navigationBarHeight;
} catch (error) {}
},
--
Gitblit v1.9.1