Lou
2024-03-19 8d8ae4c1189baadd5b8267a9643af674bd4786c0
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)
         }
      }
   }