|
|
|
@ -9,25 +9,29 @@ let state = { |
|
|
|
name: 'home', |
|
|
|
text: '首页', |
|
|
|
icon: 'icon-xianxingicon-03', |
|
|
|
path: '/pages/index/index/index' |
|
|
|
path: '/pages/index/index/index', |
|
|
|
show: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'brand', |
|
|
|
text: '品牌', |
|
|
|
icon: 'icon-pinpailiebiao', |
|
|
|
path: '/pages/index/category/category' |
|
|
|
path: '/pages/index/category/category', |
|
|
|
show: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'find', |
|
|
|
text: '发现', |
|
|
|
icon: 'icon-faxian', |
|
|
|
path: '/pages/discover/discover' |
|
|
|
path: '/pages/discover/discover', |
|
|
|
show: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'my', |
|
|
|
text: '会员中心', |
|
|
|
icon: 'icon-icon', |
|
|
|
path: '/pages/user/my/center' |
|
|
|
path: '/pages/user/my/center', |
|
|
|
show: true |
|
|
|
} |
|
|
|
], |
|
|
|
isShowTabBar: true |
|
|
|
@ -45,6 +49,11 @@ let mutations = { |
|
|
|
// 隐藏tabbar
|
|
|
|
hideTabBar(state, data){ |
|
|
|
state.isShowTabBar = false; |
|
|
|
}, |
|
|
|
// 设置某个tabbar项显示隐藏
|
|
|
|
setTabbarItemShow(state, data){ |
|
|
|
let { index, is_show } = data; |
|
|
|
state.tabbars[index].show = is_show; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|