From 7a4b8764b68e0dbaeb90e292a8a4bd47cb379e68 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期一, 27 四月 2026 17:26:02 +0800
Subject: [PATCH] 小程序端和PC端bug修复

---
 small-program/components/custom-tabbar/custom-tabbar.vue |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/small-program/components/custom-tabbar/custom-tabbar.vue b/small-program/components/custom-tabbar/custom-tabbar.vue
index ca09a2a..b1147d9 100644
--- a/small-program/components/custom-tabbar/custom-tabbar.vue
+++ b/small-program/components/custom-tabbar/custom-tabbar.vue
@@ -59,7 +59,7 @@
 					},
 					{
 						text: '娑堟伅',
-						pagePath: '/pages/message/message',
+						pagePath: '/shop/pages/message/message',
 						iconPath: '/static/icon/nav_xiaoxi@2x.png',
 						selectedIconPath: '/static/icon/nav_xiaoxi_sel@2x.png'
 					},
@@ -99,10 +99,21 @@
 			},
 			switchTab(item) {
 				const currentPath = getCurrentPages()[getCurrentPages().length - 1].$page.fullPath
-				if (currentPath !== item.pagePath) {
-					uni.switchTab({
-						url: item.pagePath
-					})
+				if (this.userType === 1) {
+					if (currentPath !== item.pagePath) {
+						uni.redirectTo({
+							url: item.pagePath
+						})
+					}
+				} else {
+					if (currentPath !== item.pagePath) {
+						if(item.pagePath ==='/pages/itinerary/itinerary'){
+							uni.setStorageSync("orderStatus",-1)
+						}
+						uni.switchTab({
+							url: item.pagePath
+						})
+					}
 				}
 			}
 		}

--
Gitblit v1.9.3