Browse Source

搜索页面调整

yangc 8 years ago
parent
commit
843c9c1e95
2 changed files with 3 additions and 3 deletions
  1. 1 1
      components/search/GoodList.vue
  2. 2 2
      pages/product/brand/_code.vue

+ 1 - 1
components/search/GoodList.vue

@@ -191,7 +191,7 @@
           this.sorting = {'GO_RESERVE': 'DESC', 'GO_SEARCH': 'DESC'}
           this.sorting = {'GO_RESERVE': 'DESC', 'GO_SEARCH': 'DESC'}
           this.activeTag = 'normal1'
           this.activeTag = 'normal1'
         } else if (param === 'normal2') {
         } else if (param === 'normal2') {
-          this.sorting = {'GO_SEARCH': 'DESC', 'GO_RESERVE': 'DESC'}
+          this.sorting = {'GO_RESERVE': 'DESC', 'GO_SEARCH': 'DESC'}
           this.activeTag = 'normal2'
           this.activeTag = 'normal2'
         } else if (param === 'type') {
         } else if (param === 'type') {
           this.sorting = {'GO_SEARCH': 'DESC', 'GO_RESERVE': 'DESC'}
           this.sorting = {'GO_SEARCH': 'DESC', 'GO_RESERVE': 'DESC'}

+ 2 - 2
pages/product/brand/_code.vue

@@ -21,12 +21,12 @@
     fetch ({ store, params }) {
     fetch ({ store, params }) {
       return Promise.all([
       return Promise.all([
         store.dispatch('loadBrandDetail', {id: params.code}),
         store.dispatch('loadBrandDetail', {id: params.code}),
-        store.dispatch('brandComponent', {page: 1})
+        store.dispatch('loadBrandComponent', {page: 1})
       ])
       ])
     },
     },
     methods: {
     methods: {
       listenChild: function (parm) {
       listenChild: function (parm) {
-        this.store.dispatch('brandComponent', {page: parm})
+        this.store.dispatch('loadBrandComponent', {page: parm})
       }
       }
     }
     }
   }
   }