From 2a5d15b7701549299296e94178498124337fe0d9 Mon Sep 17 00:00:00 2001 From: FengHui Date: Wed, 4 Feb 2026 10:49:25 +0800 Subject: [PATCH] =?UTF-8?q?tabbar=20AI=20=E5=9B=BE=E6=A0=87=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CustomTabBar/CustomTabBar.vue | 84 +++++++++++++++++------ pages/mine/company-mine.vue | 14 ++++ pages/mine/mine.vue | 14 ++++ static/tabbar/robot2.png | Bin 0 -> 48408 bytes 4 files changed, 92 insertions(+), 20 deletions(-) create mode 100644 static/tabbar/robot2.png diff --git a/components/CustomTabBar/CustomTabBar.vue b/components/CustomTabBar/CustomTabBar.vue index a393352..87f988e 100644 --- a/components/CustomTabBar/CustomTabBar.vue +++ b/components/CustomTabBar/CustomTabBar.vue @@ -4,14 +4,17 @@ class="tabbar-item" v-for="(item, index) in tabbarList" :key="index" + :class="{ 'center-item': item.centerItem }" @click.stop="switchTab(item, index)" @tap.stop="switchTab(item, index)" > - + + + {{ item.badge }} @@ -59,22 +62,13 @@ const generateTabbarList = () => { }, { id: 2, - text: '智能客服', + text: '', path: '/pages/chat/chat', - iconPath: '/static/tabbar/logo3.png', - selectedIconPath: '/static/tabbar/logo3.png', + iconPath: '/static/tabbar/robot2.png', + selectedIconPath: '/static/tabbar/robot2.png', centerItem: true, badge: readMsg.badges[2]?.count || 0, }, - { - id: 3, - text: '消息', - path: '/pages/msglog/msglog', - iconPath: '/static/tabbar/chat4.png', - selectedIconPath: '/static/tabbar/chat4ed.png', - centerItem: false, - badge: readMsg.badges[3]?.count || 0, - }, { id: 4, text: '我的', @@ -275,6 +269,34 @@ onMounted(() => { diff --git a/pages/mine/company-mine.vue b/pages/mine/company-mine.vue index dc075ec..5794734 100644 --- a/pages/mine/company-mine.vue +++ b/pages/mine/company-mine.vue @@ -34,6 +34,15 @@ {{ companyInfo.isVerified ? '已通过' : '未认证' }} + + + + 消息 + + + + + @@ -83,6 +92,11 @@ function goToCompanyInfo() { navTo('/pages/mine/company-info'); } +// 跳转到消息页面 +function goToMessage() { + navTo('/pages/msglog/msglog'); +} + function logOut() { popup.value.open(); } diff --git a/pages/mine/mine.vue b/pages/mine/mine.vue index 041a4ad..ee7bcba 100644 --- a/pages/mine/mine.vue +++ b/pages/mine/mine.vue @@ -96,6 +96,15 @@ + + + + 消息 + + + + + @@ -218,6 +227,11 @@ function goCaAI(){ navTo(`/packageCa/search/AIAudition?name=${userInfo.name}&userId=${userInfo.idCard}`); } +// 跳转到消息页面 +function goToMessage(){ + navTo('/pages/msglog/msglog'); +} +