Przeglądaj źródła

热卖推荐页面隐藏

yangc 8 lat temu
rodzic
commit
108d2fcc51
3 zmienionych plików z 6 dodań i 6 usunięć
  1. 2 2
      components/home/Nav.vue
  2. 2 2
      components/home/News.vue
  3. 2 2
      components/main/Nav.vue

+ 2 - 2
components/home/Nav.vue

@@ -16,9 +16,9 @@
       <nuxt-link to="/provider/home" class="item">
         <span>代理经销</span>
       </nuxt-link>
-      <nuxt-link to="/product/original" class="item">
+     <!-- <nuxt-link to="/product/original" class="item">
         <span>热卖推荐</span>
-      </nuxt-link>
+      </nuxt-link>-->
       <nuxt-link to="/product" class="item" target="_blank">
         <span>库存寄售</span>
       </nuxt-link>

+ 2 - 2
components/home/News.vue

@@ -43,12 +43,12 @@
         return this.$store.state.news.snapshot
       },
       news3 () {
-        if (this.news.data) {
+        if (this.news.data.content) {
           return this.news.data.content.slice(0, 3)
         }
       },
       news5 () {
-        if (this.news.data) {
+        if (this.news.data.content) {
           return this.news.data.content.slice(0, 5)
         }
       }

+ 2 - 2
components/main/Nav.vue

@@ -16,9 +16,9 @@
       <nuxt-link to="/provider/home" class="item">
         <span>代理经销</span>
       </nuxt-link>
-      <nuxt-link to="/product/original" class="item">
+     <!-- <nuxt-link to="/product/original" class="item">
         <span>热卖推荐</span>
-      </nuxt-link>
+      </nuxt-link>-->
       <nuxt-link target="_blank" :to="{ name: 'store-uuid', params: { uuid: '33069557578d44e69bd91ad12d28a8d4' } }" class="item">
         <span>库存寄售</span>
       </nuxt-link>