修改页面tabbar
This commit is contained in:
20
main.js
20
main.js
@ -461,31 +461,25 @@ Vue.prototype.setTabBarLinks = function(vars, theme) {
|
||||
]
|
||||
uni.setTabBarStyle({
|
||||
color: '#333333',
|
||||
selectedColor: color[theme],
|
||||
selectedColor: '#365A9A',
|
||||
})
|
||||
uni.setTabBarItem({
|
||||
index: 0,
|
||||
text: '首页',
|
||||
iconPath: 'static/tabbar/home.png',
|
||||
selectedIconPath: 'static/tabbar/home_' + theme + '.png'
|
||||
iconPath: 'static/tabbar/home_7.png',
|
||||
selectedIconPath: 'static/tabbar/home_8.png'
|
||||
})
|
||||
uni.setTabBarItem({
|
||||
index: 1,
|
||||
text: '分类',
|
||||
iconPath: 'static/tabbar/category.png',
|
||||
selectedIconPath: 'static/tabbar/category_' + theme + '.png'
|
||||
iconPath: 'static/tabbar/category_7.png',
|
||||
selectedIconPath: 'static/tabbar/category_8.png'
|
||||
})
|
||||
uni.setTabBarItem({
|
||||
index: 2,
|
||||
text: '购物车',
|
||||
iconPath: 'static/tabbar/cart.png',
|
||||
selectedIconPath: 'static/tabbar/cart_' + theme + '.png'
|
||||
})
|
||||
uni.setTabBarItem({
|
||||
index: 3,
|
||||
text: '我的',
|
||||
iconPath: 'static/tabbar/user.png',
|
||||
selectedIconPath: 'static/tabbar/user_' + theme + '.png'
|
||||
iconPath: 'static/tabbar/user_7.png',
|
||||
selectedIconPath: 'static/tabbar/user_8.png'
|
||||
})
|
||||
} else {
|
||||
uni.hideTabBar();
|
||||
|
||||
Reference in New Issue
Block a user