From 4c243ac785b7db0224c2138ba548eeec4f07652d Mon Sep 17 00:00:00 2001 From: Apcallover <1503963513@qq.com> Date: Fri, 8 Mar 2024 19:48:52 +0800 Subject: [PATCH] flat: nav --- components/CustomNavbar/navbar.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/CustomNavbar/navbar.vue b/components/CustomNavbar/navbar.vue index 8131279..c39707f 100644 --- a/components/CustomNavbar/navbar.vue +++ b/components/CustomNavbar/navbar.vue @@ -28,8 +28,10 @@ } }, created() { + // #ifdef MP-WEIXIN let menuButtonInfo = uni.getMenuButtonBoundingClientRect() const { top, width, height, right } = menuButtonInfo + console.log(top) const that = this uni.getSystemInfo({ success: function (res) { @@ -42,6 +44,7 @@ that._data.searchWidth= right - width - 30 } }) + // #endif }, methods: { back() {