From 55fb9617fdf794c86fc89476ecbe348b0a61e2cc Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Tue, 21 Oct 2025 19:04:18 +0800
Subject: [PATCH] feat: 动态渲染底部按钮
---
src/pages/map/index.vue | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/pages/map/index.vue b/src/pages/map/index.vue
index 37500a6..e15117d 100644
--- a/src/pages/map/index.vue
+++ b/src/pages/map/index.vue
@@ -19,7 +19,6 @@
import WebViewPlus from "@/components/WebViewPlus.vue";
const viewUrl = getWebViewUrl("/defaultMap");
-
const onPostMessage = (data) => {
if (data.type === "scanCode") {
@@ -42,7 +41,12 @@
}
};
-onLoad(() => {});
+onShow(()=>{
+ uni.setTabBarItem({
+ index: 2, // Tab 的索引(从0开始)
+ visible: false,
+ })
+})
</script>
<style scoped lang="scss">
--
Gitblit v1.9.3