|
@@ -10,6 +10,7 @@
|
|
|
v-model="active"
|
|
|
v-if="$route.meta.showTabbar">
|
|
|
<van-tabbar-item replace to="/" icon="wap-home-o" name="MarketingSave">首页</van-tabbar-item>
|
|
|
+ <van-tabbar-item to="/category" icon="shop-o" name="CategoryIndex">购物</van-tabbar-item>
|
|
|
<van-tabbar-item replace to="/invite" icon="gold-coin-o" name="Invite">分享赚钱</van-tabbar-item>
|
|
|
<van-tabbar-item replace to="/mine" icon="user-o" name="Mine">我的</van-tabbar-item>
|
|
|
</van-tabbar>
|
|
@@ -36,7 +37,7 @@ export default {
|
|
|
watch: {
|
|
|
'$route.name': {
|
|
|
handler: function (newVal) {
|
|
|
- const condition = ['PaymentCode', 'ShareMiddle', 'CategoryIndex', 'CategoryDetail'].findIndex(item => item === newVal) === -1
|
|
|
+ const condition = ['PaymentCode', 'ShareMiddle', 'CategoryIndex', 'CategoryDetail', 'Search'].findIndex(item => item === newVal) === -1
|
|
|
if (!newVal) {
|
|
|
return
|
|
|
}
|