From 4dc08d5c2904c2d1f0ca95f7ba41970c2a8145c0 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Fri, 27 Oct 2023 11:28:40 +0800
Subject: [PATCH] Merge branch 'master'

---
 components/tabBar/tabBar.vue |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/components/tabBar/tabBar.vue b/components/tabBar/tabBar.vue
index e68027a..0949fdb 100644
--- a/components/tabBar/tabBar.vue
+++ b/components/tabBar/tabBar.vue
@@ -2,7 +2,7 @@
 	<view>
 		<u-tabbar class="custom-tabbar" zIndex="100" :value="currentTab" :fixed="true" :active-color="activeColor"
 			:inactive-color="inactiveColor" @change='change'>
-			<u-tabbar-item v-for="(item,index) in tabList" :key="index" :text="item.name"
+			<u-tabbar-item v-for="(item,index) in curTabList" :key="index" :text="item.name"
 				:badge="item.badge>0?item.badge:0">
 				<image class="u-page_item_slot_icon" slot="active-icon" :src="item.iconPathSelected" />
 				<image class="u-page_item_slot_icon" slot="inactive-icon" :src="item.iconPath" />
@@ -28,7 +28,22 @@
 				inactiveColor: '#909399',
 				activeColor: '#328CFA',
 				//10分钟
-				getMessageTime: 1000 * 60 * 10
+				getMessageTime: 1000 * 60 * 10,
+				
+				curTabList: [
+					{
+						name: '首页',
+						iconPathSelected: '',
+						iconPath: '',
+						url: '/pages/home/index'
+					},
+					{
+						name: '个人中心',
+						iconPathSelected: '',
+						iconPath: '',
+						url: '/pages/user/center'
+					}
+				]
 			}
 		},
 		watch: {
@@ -59,7 +74,7 @@
 		methods: {
 			change(e) {
 				this.$store.commit("SET_TABBAT_INDEX", e)
-				this.$emit("change", e)
+				this.$emit("change", this.curTabList[e].url)
 				let params = {
 					recipient: this.userInfo.user_id,
 					status: 0

--
Gitblit v1.9.3