diff --git a/main.js b/main.js index fc088a9..0761454 100644 --- a/main.js +++ b/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(); diff --git a/pages/index/index.vue b/pages/index/index.vue index 9686035..8184222 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -572,31 +572,25 @@ export default { let color = ['#ff5704', '#19ad57', '#ffcc00', '#1774ff', '#e4e4e4', '#c8ba97', '#623ceb']; 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 { setTimeout(function() { diff --git a/static/tabbar/category_7.png b/static/tabbar/category_7.png new file mode 100644 index 0000000..8b21129 Binary files /dev/null and b/static/tabbar/category_7.png differ diff --git a/static/tabbar/category_8.png b/static/tabbar/category_8.png new file mode 100644 index 0000000..0973708 Binary files /dev/null and b/static/tabbar/category_8.png differ diff --git a/static/tabbar/home_7.png b/static/tabbar/home_7.png new file mode 100644 index 0000000..d803b94 Binary files /dev/null and b/static/tabbar/home_7.png differ diff --git a/static/tabbar/home_8.png b/static/tabbar/home_8.png new file mode 100644 index 0000000..b58ac34 Binary files /dev/null and b/static/tabbar/home_8.png differ diff --git a/static/tabbar/user_7.png b/static/tabbar/user_7.png new file mode 100644 index 0000000..4af19ed Binary files /dev/null and b/static/tabbar/user_7.png differ diff --git a/static/tabbar/user_8.png b/static/tabbar/user_8.png new file mode 100644 index 0000000..7467d0e Binary files /dev/null and b/static/tabbar/user_8.png differ