From 0058be3dde9082e8b634c9fcc8e5c9d0afc992f2 Mon Sep 17 00:00:00 2001 From: Burt <1020103647@qq.com> Date: Sat, 23 Dec 2023 10:06:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(weixin):=20=E4=BF=AE=E5=A4=8D=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E4=B8=8D=E8=83=BD=E4=BD=BF=E7=94=A8v-bind()?= =?UTF-8?q?=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/manifest.json | 1 + src/pages/index/index.vue | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/src/manifest.json b/src/manifest.json index c38e717..35cc907 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -54,6 +54,7 @@ "setting": { "urlCheck": false }, + "styleIsolation": "shared", "usingComponents": true }, "mp-alipay": { diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index f37a8c7..c1a2a88 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -17,6 +17,14 @@ import { useCountStore } from '@/store/count' const countStore = useCountStore() const title = ref('Hello') + +// 获取屏幕边界到安全区域距离 +const { safeAreaInsets } = uni.getSystemInfoSync() +console.log(safeAreaInsets) +const rect = { + top: `${safeAreaInsets.top}px`, + bottom: `${safeAreaInsets.bottom}px`, +}