From 8d8ae4c1189baadd5b8267a9643af674bd4786c0 Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Tue, 19 Mar 2024 11:50:49 +0800
Subject: [PATCH] 更新
---
components/tabBar/tabBar.vue | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/components/tabBar/tabBar.vue b/components/tabBar/tabBar.vue
index 0690421..1f140bb 100644
--- a/components/tabBar/tabBar.vue
+++ b/components/tabBar/tabBar.vue
@@ -1,9 +1,9 @@
<template>
<view>
- <u-tabbar class="custom-tabbar" zIndex="100" :value="current" :fixed="true" :active-color="activeColor"
+ <u-tabbar class="custom-tabbar" zIndex="9999" :value="current" :fixed="true" :active-color="activeColor"
:inactive-color="inactiveColor">
- <u-tabbar-item :text="item.name" @click="changeTabbar(item.url,index)" v-for="(item,index) in tabbarList"
- :key="index">
+ <u-tabbar-item :text="item.name" @click="changeTabbar(item.url,index,item.name)"
+ v-for="(item,index) in tabbarList" :key="index">
<image class="tabbar-icon" slot="active-icon" :src="item.iconPathSelected"></image>
<image class="tabbar-icon" slot="inactive-icon" :src="item.iconPath"></image>
</u-tabbar-item>
@@ -45,7 +45,7 @@
uni.switchTab({
url
})
- this.$emit("change", index)
+ this.$emit("change", name)
}
}
}
--
Gitblit v1.9.3