Browse Source

首页:顶部导航新增购物入口

panyong 2 years ago
parent
commit
78fe100a55

+ 2 - 1
htmldev/cps/src/App.vue

@@ -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
         }

+ 1 - 0
htmldev/cps/src/router/index.js

@@ -152,6 +152,7 @@ const routes = [
         name: 'CategoryIndex',
         component: _import('views/category/index/index'),
         meta: {
+          showTabbar: true,
           isUseCache: false,
           keepAlive: true
         }

+ 1 - 1
htmldev/cps/src/views/category/index/index.vue

@@ -187,7 +187,7 @@ export default {
   left: 0;
   top: 0;
   right: 0;
-  bottom: 0;
+  bottom: 50px;
   width: 100%;
 }