| | |
| | | <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> |
| | |
| | | uni.switchTab({ |
| | | url |
| | | }) |
| | | this.$emit("change", index) |
| | | this.$emit("change", name) |
| | | } |
| | | } |
| | | } |