| | |
| | | <u-tabbar class="custom-tabbar" zIndex="100" :value="current" :fixed="true" :active-color="activeColor" |
| | | :inactive-color="inactiveColor" @change='change'> |
| | | <u-tabbar-item v-for="(item,index) in curTabList" :icon="item.icon" :key="index" :text="item.name"> |
| | | <image class="tabbar-icon" slot="active-icon" :src="iconPathSelected"></image> |
| | | <image class="tabbar-icon" slot="inactive-icon" :src="iconPath"></image> |
| | | </u-tabbar-item> |
| | | <u-tabbar-item v-for="(item,index) in curTabList" :icon="item.icon" :key="index" :text="item.name"> |
| | | <image class="tabbar-icon" slot="active-icon" :src="iconPathSelected"></image> |
| | | <image class="tabbar-icon" slot="inactive-icon" :src="iconPath"></image> |
| | | </u-tabbar-item> |
| | | <u-tabbar-item text="驾驶舱"> |
| | | <image class="tabbar-icon" slot="active-icon" :src="iconPathSelected"></image> |
| | | <image class="tabbar-icon" slot="inactive-icon" :src="iconPath"></image> |
| | | </u-tabbar-item> |
| | | <u-tabbar-item text="个人中心"> |
| | | <image class="tabbar-icon" slot="active-icon" :src="iconPathSelected"></image> |
| | | <image class="tabbar-icon" slot="inactive-icon" :src="iconPath"></image> |
| | | </u-tabbar-item> |
| | | </u-tabbar> |
| | | </view> |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .u-page_item_slot_icon { |
| | | .tabbar-icon { |
| | | width: 40rpx; |
| | | height: 40rpx; |
| | | } |