Browse Source

二级页面搜索

huangb 7 years ago
parent
commit
28295bcecd

+ 1 - 1
components/provider/Suppliers.vue

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

+ 1 - 1
components/supplier/merchant.vue

@@ -122,7 +122,7 @@
       search (type) {
         this.pageParams.page = 1
         this.searchCode = type.keyword
-        this.type = type.type
+        this.type = type.type && type.type !== 'store' ? type.type : null
         this.handleCurrentChange(1)
       },
       goodsSearch (type) {

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

@@ -237,9 +237,8 @@
         return str && str.trim() !== ''
       },
       onSearch: function (keyObj) {
-//        console.log(keyObj)
         this.keyword = keyObj.keyword
-        // this.field = keyObj.type ? 'similar' : null
+        this.field = keyObj.type && keyObj.type !== 'store' ? 'similar' : null
         this.onDown('ORIGINAL_FACTORY-DISTRIBUTION-AGENCY-CONSIGNMENT')
         this.down = false
       }