Browse Source

店铺搜索

huangb 7 years ago
parent
commit
a322f4229b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      components/provider/Suppliers.vue
  2. 1 1
      pages/mobile/shop/index.vue

+ 1 - 1
components/provider/Suppliers.vue

@@ -98,7 +98,7 @@ export default {
       this.pageParams.type = this.storeType === 'factory' ? 'ORIGINAL_FACTORY' : 'AGENCY-DISTRIBUTION'
       this.pageParams.type = this.storeType === 'factory' ? 'ORIGINAL_FACTORY' : 'AGENCY-DISTRIBUTION'
       this.pageParams.page = 1
       this.pageParams.page = 1
       this.pageParams.keyword = obj.keyword === '' ? null : obj.keyword
       this.pageParams.keyword = obj.keyword === '' ? null : obj.keyword
-      this.pageParams.field = obj.type && obj.type !== 'store' ? 'similar' : null
+      this.pageParams.field = obj.type && obj.type !== 'store' ? obj.type : null
       this.pageCommodity(this.pageParams)
       this.pageCommodity(this.pageParams)
     },
     },
     showLittleDescription (description) {
     showLittleDescription (description) {

+ 1 - 1
pages/mobile/shop/index.vue

@@ -238,7 +238,7 @@
       },
       },
       onSearch: function (keyObj) {
       onSearch: function (keyObj) {
         this.keyword = keyObj.keyword
         this.keyword = keyObj.keyword
-        this.field = keyObj.type && keyObj.type !== 'store' ? 'similar' : null
+        this.field = keyObj.type && keyObj.type !== 'store' ? obj.type : null
         this.onDown('ORIGINAL_FACTORY-DISTRIBUTION-AGENCY-CONSIGNMENT')
         this.onDown('ORIGINAL_FACTORY-DISTRIBUTION-AGENCY-CONSIGNMENT')
         this.down = false
         this.down = false
       }
       }