From 790f0c19fb288d03d05dbcb43154ed07c92337c3 Mon Sep 17 00:00:00 2001 From: zzc <1761997216@qq.com> Date: Sat, 31 Jan 2026 23:44:00 +0800 Subject: [PATCH] fix: navbar commpontents --- components/NavBar/NavBar.vue | 8 ++++-- pages/fortune/detail.vue | 2 +- pages/fortune/index.vue | 50 ++++-------------------------------- 3 files changed, 12 insertions(+), 48 deletions(-) diff --git a/components/NavBar/NavBar.vue b/components/NavBar/NavBar.vue index af6234c..65e8ea0 100644 --- a/components/NavBar/NavBar.vue +++ b/components/NavBar/NavBar.vue @@ -2,7 +2,7 @@ @@ -14,7 +14,7 @@ :style="{ height: navBarHeight + 'px', paddingTop: statusBarHeight + 'px', - backgroundColor: background, + backgroundColor: transparent ? 'transparent' : background, color: color }" > @@ -60,6 +60,10 @@ const props = defineProps({ type: Boolean, default: true, }, + transparent: { + type: Boolean, + default: false, + }, }); const navBarHeight = ref(64); diff --git a/pages/fortune/detail.vue b/pages/fortune/detail.vue index 579bc48..daf2bc0 100644 --- a/pages/fortune/detail.vue +++ b/pages/fortune/detail.vue @@ -1,6 +1,6 @@