From b099e758396f61b39d24cf5fa6be7bb0d10c2b4d Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 18 五月 2026 19:16:26 +0800
Subject: [PATCH] 提交

---
 small-program/components/custom-tabbar/custom-tabbar.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/small-program/components/custom-tabbar/custom-tabbar.vue b/small-program/components/custom-tabbar/custom-tabbar.vue
index b1147d9..534bf28 100644
--- a/small-program/components/custom-tabbar/custom-tabbar.vue
+++ b/small-program/components/custom-tabbar/custom-tabbar.vue
@@ -7,17 +7,18 @@
 			</view>
 		</view>
 		<view class="tabbar-placeholder" :style="{ height: '100px' }"></view>
+		<auth-login :show="showLogin" @close="showLogin = false"></auth-login>
 	</view>
 </template>
 
 <script>
 	import { mapState } from 'vuex'
-
 	export default {
 		name: 'CustomTabbar',
 		data() {
 			return {
 				safeAreaBottom: 0,
+				showLogin: false,
 				memberTabList: [
 					{
 						text: '棣栭〉',
@@ -73,7 +74,7 @@
 			}
 		},
 		computed: {
-			...mapState(['userType']),
+			...mapState(['userType', 'token']),
 			currentIndex() {
 				const pages = getCurrentPages()
 				const currentPage = pages[pages.length - 1]
@@ -98,6 +99,10 @@
 				this.safeAreaBottom = systemInfo.safeAreaInsets.bottom || 0
 			},
 			switchTab(item) {
+				if (item.pagePath === '/pages/itinerary/itinerary' && !this.token) {
+					this.showLogin = true
+					return
+				}
 				const currentPath = getCurrentPages()[getCurrentPages().length - 1].$page.fullPath
 				if (this.userType === 1) {
 					if (currentPath !== item.pagePath) {

--
Gitblit v1.9.3