From 500078714411487af00161e01bd7e0b5efdc3414 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期四, 07 八月 2025 13:32:32 +0800
Subject: [PATCH] add:热门景点
---
components/tabbar/top-tab-bar.vue | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/components/tabbar/top-tab-bar.vue b/components/tabbar/top-tab-bar.vue
index 0ba089b..4b503fa 100644
--- a/components/tabbar/top-tab-bar.vue
+++ b/components/tabbar/top-tab-bar.vue
@@ -16,16 +16,16 @@
<!-- 左侧图标 + 标题 -->
<view class="left">
<up-icon name="/static/images/tabbar/line-Film.png" size="40rpx" color="#fff" />
- <text class="title">光影旅程</text>
+ <text class="title">影游四方</text>
</view>
<!-- 右侧按钮 -->
<view class="right">
- <view class="login-view" @click="goLogin">
+ <view class="login-view" @click="goLogin" v-if="!isLoggedIn">
<up-icon name="/static/images/tabbar/user.png" size="30rpx" />
<text class="login-text">登录</text>
</view>
- <up-icon name="list" size="40rpx" color="#fff" @click="openMenu" />
+<!-- <up-icon name="list" size="40rpx" color="#fff" @click="openMenu" />-->
</view>
</view>
</view>
@@ -33,10 +33,12 @@
</template>
<script setup lang="ts">
-import { ref, onMounted } from 'vue'
-
-const CustomBar = ref<number>(uni.getStorageSync('CustomBar') || 0)
-const StatusBar = ref<number>(uni.getStorageSync('StatusBar') || 0)
+import { ref, onMounted ,computed} from 'vue'
+import { useUserStore } from '@/store/user'
+const userStore = useUserStore()
+const isLoggedIn = computed(() => userStore.hasLogin)
+console.log("登录状态")
+console.log(isLoggedIn.value)
// 可选:自动获取系统信息进行替代
onMounted(() => {
--
Gitblit v1.9.3