flat: nav

This commit is contained in:
Apcallover
2024-03-08 19:48:52 +08:00
parent d6cb4f1f68
commit 4c243ac785

View File

@@ -28,8 +28,10 @@
} }
}, },
created() { created() {
// #ifdef MP-WEIXIN
let menuButtonInfo = uni.getMenuButtonBoundingClientRect() let menuButtonInfo = uni.getMenuButtonBoundingClientRect()
const { top, width, height, right } = menuButtonInfo const { top, width, height, right } = menuButtonInfo
console.log(top)
const that = this const that = this
uni.getSystemInfo({ uni.getSystemInfo({
success: function (res) { success: function (res) {
@@ -42,6 +44,7 @@
that._data.searchWidth= right - width - 30 that._data.searchWidth= right - width - 30
} }
}) })
// #endif
}, },
methods: { methods: {
back() { back() {